How to add an icon in the right side of the taskbar with batch

Does anyone know how I can create a new icon on the right side of the taskbar? But not as a program, I want to create a normal icon such as teamspeak3, and if possible with options. And also, if possible with batch, it will be great

ajax – JS batch progress bar: possible to force refresh more often than every 1500 ms?

After initiating a batch based on js with batch_set (), and for batch redirection, the JS refresh interval is every 1500 ms by default. The status message and the progress bar are only updated every 1 1/2 seconds. For a specific application, I need the refresh to be faster, say every 500 ms. I did not find anything in batch_set () to set the refresh interval.

I believe that the D8 kernel decides in file core / misc / ajax.es6.js that the default refresh interval should be 1500 ms, if nothing else is specified:

if (this.progress.url) {
progressBar.startMonitoring (
this.progress.url,
this.progress.interval || 1500,
)

I could be wrong though and this code is only related to Ajax and other launchers. The Ajax API form seems to have a way to pass #interval but I could not find anything for the batch API.

Anyway, my question is how to set my own custom refresh interval in a file. batch_set (), or if not, is there any other way to replace the 1500 ms?

Thank you!

How to run batch script lines as root or user on different lines

I have a line

echo & # 39;[Service] nExecStart =  nExecStart = - / sbin / agetty --autologin ft --noclear% I 38400 linux # /etc/systemd/system/getty@tty1.service.d/autologin.conf;

but also from other lines of the script where I want to run as the current user.

The above with sudo, sudo su -c seems to run only if you run the script as sudo with a script sudo sh myscript.sh

But then I assume that all lines will have a high privilege
such as

    npx npmc @ last installation; npm install acorn @ latest; npm install stylelint @ latest; audit patch npm;

while this should be executed as the current user.

Apols like totally useless with bash and scripts

GET – Sarah Titus – Best Batch of Blogs | NewProxyLists

Uploader: imwarrior / Category: IM / Seeders: 3 / Leechers: 0 / Size: 238.47 MB ​​/ Ripped: 1 time

Sarah Titus – Best Batch of Blogs

[​IMG]

You CAN earn a lot of money by working less hours AND keeping your integrity and honesty as a blogger.

This is a compilation of 11 books, 2 binders and over 650 photos of bloggers (commercial license).

Many of these books have been ranked first among the best sellers. One of the included books is sold to over 9,200 copies!

It's the best of the best. Do not waste your time. This is a type of package not to be missed.

You will receive:

1) Blogging Binder

You can download and print at any time. All months are included and are not specific to the year. There is no need to buy back each year like other products, saving you money! Get the corresponding stickers for this workbook here.

2) blogger statistics workbook

You can not just watch a blogger and compare his current position with the current situation. They are ahead of you, so this is not a fair comparison! This 30-page binder helps you visualize your entire journey. You can compare the month of your career to that of the publication of your blog. Information collected over the years, directly from the source (revenue reports, webinars, etc.) Binder includes four high-level bloggers and exhaustively analyzes the details of their entire blog journal. That's what I use to compare my own growth with theirs to see if I'm on track or not, and for the first time in my life, she's at your disposal!

3) Make Money Blogging: How to Find Ideas That Fit You

With a circulation of 4,300 copies worldwide in the first month after publication, this book answers a question of concern to everyone: how much money does a blogger make?

4) How to turn your blog into a six-digit slot machine

Less than 12 months after the start of my blog, I had a traffic of nearly one million and earned $ 10,000 a month. This book gives you the roadmap I've created to accomplish this and more!

5) How to work less and create killer content

The biggest question I ask myself is how to balance life, a very successful blog and single kids. This book explains in detail how I work less hours than most bloggers while creating content that kills and balances everything in my life!

6) How to boost your Alexa score in an organic way

This book describes the exact steps I have followed to move from an Alexa score of 16,520 410 to 367,728 in less than two months!

7) How to make money as a virtual assistant

You want to earn some legitimate money at home to help your family. Being a virtual assistant is, in my opinion, the easiest, fastest and most fun way to make money in the world of blogs.

8) Find your reason: the process that changes your life to find meaning

It's one of the most valuable books of all this together. Whether you've been blogging for a long time or starting out, you've never heard that information that is so essential to building an empire right from the start! This is the secret of my success and no one teaches it correctly online !!!

9) Tools to build a strong foundation

There are sneaky ways to generate traffic that you do not even know. Things you can do without trying. All the tips and tools you NEED to create a successful and profitable blog. You can spend a year looking for all this information. online, OR … you can grab everything right now in this book and move quickly to wealth creation.

10) How to get people to see your content

SEO is not as complicated as everyone seems to do it. This book directly addresses all technical aspects and breaks it down step by step to show you how I get more than 40,000 pages viewed by Google alone, every month. You'll also learn what to do to make a message viral and what to do to really be seen before online clutter.

11) How to easily earn money on your blog today

This book delves deeply into how to make money from your blog, including ads, sponsors, affiliates and even products. Once you have this information in your toolbox, you are ready to switch to the world and earn money easily. The sale becomes second nature and everything comes from someone who makes money selling online for over 20 years!

12) How to make money when blogs are slow

ANY business model you choose has ups and downs. In this book, I will show you how to plan ahead so that you always have a length ahead of the game and what to do during the low season, never to be left behind.

13) Why do not you make money like pro-bloggers

Written by someone who makes 7 digits a year, there are very different things that Pro-Bloggers do and that you most likely miss. But I am a bit of an analyst and I really like getting to the bottom of things. Once at the root, I can tell you exactly what all pro bloggers do, what you are not, and why you do not create numbers at 6 and 7 like them.

GET COMPLETE ACCESS

UI – Selecting Batch Processing in New Design for Gmail Media

I am confused as I try to understand the new "compact" Gmail style user interface. This is the view in which a checkbox is left at the two-line representation of the e-mail. I can not really understand the presentation of the user interface of "selection". Please, take a look at these four screenshots.

  1. Selected and verified

    selected and verified

  2. Selected but unchecked

    selected but unchecked

  3. Verified but not selected?

    checked but not selected?

  4. Selected and unverified, but different from (2)

    selected, unchecked but different from 2

It is clear (from the operation at the top of the screen) that 1, 2 and 4 are selections. Why is the user interface different in these cases? As clear as 3 is do not selection … but a check box has a mark, and normally used to means the selection for a later operation.

So, I am totally confused, what the user interface is trying to tell me. Could you please enlighten us a little bit

  • check box (marked and unmarked state)
  • colorful background
  • thick and thin frame of the check box

does it mean in the context of email selection?

beginner – Batch file to copy and rename folders and content

My goal is to automatically archive the folders by copy, rename them and the files they contain, then clean the old files.

  1. Copy target folders in _COMPLETED directory
  2. Date of update of the files using the format Last name_date of the day (MMDDYY)
  3. Updating INDD files in folders using the format Current name - Today's date (MMDDYY)
  4. Delete all VPS and PDF files within target folders

That's my code up to now:

@ Echo off
for / f "skip = 1" %% x in (wmic os get localdatetime) make undefined MyDate set MyDate = %% x
set today =% MyDate: ~ 0.4% -% MyDate: ~ 4.2% -% MyDate: ~ 6.2%
xcopy / s / e / q / y G:  ...  Annual_ * G:  ...  _ DONE 
xcopy / s / e / q / y G:  ...  Life_ * G:  ...  _ DONE 
MOVE G:  ...  Annual_ * G:  ...  Annual_today
MOVE G:  ...  Life_ * G:  ...  Life_today
for / M * .indd / C "cmd / c rename @file " @fname - today.indd  ""
del / s * .pdf
del / s * .vps

My ultimate goal is to be able to edit directories and reuse this script for multiple recurring tasks.

I am not sure if my method is correct because of the naming structure of my files.
Annual / Life_XXX_XXX_MMDDYY is the file format and I just want to replace the MMDDYY at the end of each file with the current MMDDYY.

development – Can powdered chemicals be blended in small quantities or do you have to mix the whole batch?

One of the benefits of powdered chemicals is their long life. But once you have mixed, the countdown begins. I was wondering if it was possible to buy a larger quantity of powdered chemicals and mix as needed, taking care to weigh the amount of powder and use the appropriate amount of water to maintain accurate reports .

Some problems that I could foresee with this are:

  • A single-powder mixture may actually consist of different constituents that are not evenly distributed in the bag. This could be the case for the developer B + W.
  • The good water / powder ratio is not a linear relationship.
  • A multi-powder blend may require different powder ratios if it is not used in full (non-linear relationship between the parts). For example, C-41 kits that typically have 3 parts for the developer.
  • My assumption about the shelf life is wrong and the powder will oxidize over a limited period (eg several years).

Is this really the case? Are specific process chemicals more sensitive (developer, fixer, bleach)? Or is it a non-problem?

kernel – Number of processes in text mode (batch)

I have access to the server in tex mode with Mathematica
the mathematical session parameters are:

In[1]: = $ ProcessorCount
Outside[1]= 12
In[2]: = $MaxLicenseProcesses
Outside[2]= 2
In[3]: = $ MaxLicenseSubprocesses
Outside[3]= 8

When I try to run more than 2 batch treatments, I have the license limit error.

math <file1.m & OK
to sleep 5
math <file2.m & OK
to sleep 5
math <file3.m & Error

Is there a way to use Subprocess instead of Process (in batch mode)?

The next question is: Why should I use sleep? If I did not use it, I had the license error in the second process

as regards, Olaf

performance – Batch upload to file or memory

This is probably my first useful piece of Rust code. You plan to put it in the box. It works.

#[macro_use]
failure of the outer box;

use std :: collections :: HashMap;
use std :: fs :: File;
use std :: io :: prelude :: *;
use std :: path :: path;
use std :: env :: temp_dir;

use mio :: {Events, Poll};
use mio_httpc :: {CallBuilder, Httpc, HttpcCfg, SimpleCall};

use url :: Url;

use failure :: Error;

fn do_call (htp: & mut Httpc, poll: & poll, call mut: SimpleCall) -> Result {
let mutbo: Option;
let to = :: std :: time :: Duration :: from_millis (100);
let mut events = Events :: with_capacity (8);
& # 39; outer: loop {
poll.poll (& mut events, Some (to)). unwrap ();
for cref in htp.timeout (). into_iter () {
if call.is_ref (cref) {
return Err (format_err! ("Request expired"));
}
}

for ev in events.iter () {
Let cref = htp.event (& ev);

if call.is_call (& cref) && call.perform (htp, & poll) .expect ("Call failed") {
let (resp, body) = call.finish (). expect ("No answer");
println! ("done req = {}", resp.status);
for h in resp.headers () {
println! ("Header = {}", h);
}
match String :: from_utf8 (body.clone ()) {
Ok (s) => buf = A few,
Err (_) => {
return Err (format_err! ("Non-utf8 body: {}", body.len ()));
}
}
break outside;
}
}
}
match buf {
Anything => Ok (s),
None => Err (format_err! ("Empty response")),
}
}

base name pub fn (path: & str) -> String {
match path.rsplit (std :: path :: MAIN_SEPARATOR) .next () {
Some (p) => p.to_string (),
None => path.into (),
}
}

pub fn download (dir: Option<&str>, urls: Vec<&str>) -> Result <HashMap, Error> {
let mut url2response: HashMap = HashMap :: new ();

let poll = Poll :: new ()?;

let cfg = match HttpcCfg :: certs_from_path (".") {
Ok (cfg) => cfg,
Err (_) => Default :: default (),
};
let mut htp = Httpc :: new (10, Some (cfg));

for i in 0..urls.len () {
let call = CallBuilder :: get ()
.url (urls[i])? // .expect ("Invalid URL")
.timeout_ms (10000)
// .insecure_do_not_verify_domain ()
.simple_call (& mut htp, & poll)?; // .expect ("Failed to start the call");

leave the error mut: Option = None;
let download_path: Option = if dir.is_some () {
let uri_opt = corresponds to Url :: parse (urls[i]) {
Ok (uri) => Some (uri),
Err (e) => {
error = Some (format_err! ("{}", e.to_string ()));
No
}
};
if uri_opt.is_none () {
No
} other {
let p = Path :: new (& dir.unwrap ())
.join (Path: new (& basename (uri_opt.unwrap (). path ())))
.to_string_lossy ()
.into_owned ();
if p.is_empty () {
error = Some (format_err!
"Conversion to file name failed for: {: #?}",
the urls[i]
                    ));
No
} other {
Some (p)
}
}
} other {
No
};

if error.is_some () {
return Err (error.unwrap ());
}

if download_path.is_none () && dir.is_some () {
return Err (format_err! ("No detectable file name from the URL"));
}

is do_call (& mut htp, & poll, call) {
Ok (response_string) => url2response.insert (
the urls[i].in(),
String :: from (if dir.is_some () {
let dp = unload_path.unwrap ();
write_file (Path :: new (& dp), response_string)?
dp
} other {
chaîne_réponse
}),
)
Err (e) => return Err (format_err! ("{}", E)),
};

println! ("Open connections = {}", htp.open_connections ());
}

Ok (answer url2)
}

pub fn write_file (path: & Path, content: String) -> Result<(), Error> {
leave display = path.display ();
let mut file = match File :: create (& path) {
Err (why) => Err (format_err! (
"can not create {}: {: #?}",
display,
why.kind ()
)),
Ok (file) => Ok (file),
}?
corresponds to file.write_all (content.as_bytes ()) {
Err (why) => Err (format_err! (
"can not write to {}: {: #?}",
display,
why.kind ()
)),
Ok (_) => Ok (()),
}
}

pub fn env_or (key: & str, default: std :: ffi :: OsString) -> std :: ffi :: OsString {
corresponds to std :: env :: var_os (key) {
Some (val) => val,
None => default,
}
}

#[cfg(test)]
model tests {
use super :: *;

Const URL: & & # 39; static [&'static str] = &["http://detectportal.firefox.com/success.txt"];

#[test]
    fn download_to_dir () {
let _td = temp_dir ();
let _td_cow = _td.to_string_lossy ();
let tmp_dir = _td_cow.as_ref ();
match download (Some (tmp_dir), URLS.to_vec ()) {
Ok (answer url2) => {
for (url, answer) in & url2response {
assert_eq! (url, URLS[0])
assert_eq! (Path :: new (response), Path :: new (tmp_dir) .join ("success.txt"))
}
}
Err (e) => panic! (E),
}
}

#[test]
    fn download_to_mem () {
match download (None, URLS.to_vec ()) {
Ok (answer url2) => {
for (url, answer) in & url2response {
assert_eq! (url, URLS[0])
assert_eq! (answer, "success  n")
}
}
Err (e) => panic! (E),
}
}
}

Annoyed though, it's about 200 lines of code, not particularly readable, a lot of type conversions, I'm not sure I should be:

  • borrow and use implicit conversions with Of on function definitions and / or AsRef allow different types of collections;
    • Example: Can I support tables, slices, queues, vectors, and stacks? – maybe rewrite using iterator?
  • using radius as well as mio_httpc, so I can get simple multithreading and multiprocessing
  • using async / wait and embedding it in mio_httpc to clean the code
  • error management in a better way?
    • On this note, I guess I should also test the error branches?
  • What could I do better?

Google Drive action script to find and replace a batch of csv files in a specific folder

I want to set up a hotfolder in Google Drive. All csv files loaded in this folder must be modified by searching for and replacing multiple text entries.

For example, search for "aaa", replace it with "bbb", then "aab" and replace it with "bbb" etc. Then save to a csv file with ; split into another folder and delete the source file later.

I what possible?