Command line – Microsoft Task Scheduler: Schtasks.exe can not register new task in Arabic operating system (locale)

I created a task in the MS Task Scheduler app with the simple XML command approach:

SCHTASKS / CREATE / SC DAILY / TN "TEST" / XML
"C: TEST.xml"

When I try to register the task in an Arabic regional operating system setting / machine, task registration fails.

Failed command_prompt (image)

XML (task):


  
    1441-04-07T11:33:39 
    TEST  
  
  
    
      1441-04-07T11:33:39-08:00
       ..

However, if I edit the date in this XML file in our default calendar 2019 (en-US based) instead of the Arabic year 1441 (Hijri calendar), the task is successfully registered:

Success command_prompt (image)


      
        2019-04-12T11:33:39
        TEST    
      
      
        
          2019-04-12T11:33:39-08:00
           ..

I am using this command from a Wpf UI application, so I can not put an unlocated date format in it. Please let me know how I can register this task on this localized computer! Many thanks.

Select a single line based on a condition

Hii Consider the following table structure

table structure

 Table "public.studenttable"
 Column  |  Type   | Modifiers 
---------+---------+-----------
 id      | integer | not null
 uid     | text    | not null
 subject | text    | 
Indexes:
    "studenttable_pkey" PRIMARY KEY, btree (id, uid)

Select * from the student table

 id | uid | subject 
----+-----+---------
  1 | S01 | Maths
  1 | S02 | Science
  1 | S03 | English
  2 | S02 | English

My goal is to get lines that only have English as the topic to return id = 2 row only, I have the following approaches in mind

  1. Return Subjects as a semicolon-delimited string for a specific ID and loop to assign violations.

Select id, (array_agg (subject), & # 39 ;; & # 39;) from the student table by ID

  1. The second approach is to self-associate with studenttable to ensure this id = 1 has only one topic.

I can not ask the final request. Is there an alternative?

Command Line Terminal will not start up in Double Commander after upgrading to Catalina 10.15.1

I just upgraded to Catalina 10.15.1 and had problems opening the Double Commander terminal

When I click on the terminal button that corresponds to these actions:
Enter image description here

Now the terminal is no longer displayed

Even if I press shift+enter suppose to open the terminal in the current dir I got this error

/var/tmp/doublecmd-Xwwn: line 5: /Users/A/.yarn: is a directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

Dec-03-2019-11-39-37.gif

And F9 does not work either.
I am on DC 0.9.6 beta.

Any ideas?

Command line – The flask shell does not open in ipython in pycharm

I'm working on a piston application in pycharm. I used to be able to open the bottle case in the Ipython console. But I messed up Python in my system and had to reinstall Python3.

Since then, I can not open the Flask shell in the Ipython console anymore. It will open in the default python console instead.
What can be wrong with my Ubuntu environment?

I make line drawings or black and white drawings for $ 10

I make line drawings or black and white drawings

Hi,
Sir / Mam
I am a professional illustrator,
In this performance I make every line drawing. Professionally create line or technical drawings. Also do any vector art or black and white design. Convert your image, sketch or idea creatively into line art. Convert your product into perfect technical drawings.

Services:

  • line art
  • line drawings
  • Line art illustration
  • Picture to line graphics
  • outline creation
  • Black and white drawing
  • Technical drawing
  • image tracking
  • vector persecution
  • chart design
  • card making
  • Manual design
  • And many more…

More for you:
Turn your ideas into hand scrapers then illustration
Create illustrations from any image or scratches

Why me:

> The work will be 100% clean and professional
> Unlimited revision
> On time delivery

#Please contact me before placing an order

typescript – TSLint: expression has the type "void". Put it as an instruction in a separate line

When I run firebase deploy The CLI app runs the TS compiler and TSLint triggers the error shown in the commented line:

express.get("/shopify/callback", async (req: Request, res: Response): Promise => {
 const {shop, code, state} = req.query;

 // parse the cookie string into an array. if state cookie is "", err
 const stateCookie = cookie.parse(req.headers.cookie as string || "").state;
 if (!stateCookie) return res.status(400).send("No state cookie");

 if (state !== stateCookie) return res.status(403).send('Cookie failed verification');

 const {hmac, ...params} = req.query;
 const queryParams = queryString.stringify(params);
 const hash = generateEncryptedHash(queryParams); // ERROR: /home/owner/PhpstormProjects/shopify/projectName/functions/src/index.ts:157:15 - Expression has type `void`. Put it on its own line as a statement.
 if (hash !== hmac) return res.status(400).send("HMAC validation failed");

I do not understand what change is desired. Does anyone know how to handle this error? Here's the helper function that runs in this line:

const generateEncryptedHash = (params: unknown) => {
 if (typeof  SHOPIFY_API_SECRET === "string") {
  crypto.createHmac("sha256", SHOPIFY_API_SECRET).update(params as DataView).digest('hex');
 } else {
  throw Error("during generateEncryptedHash() SHOPIFY_API_SECRET was not a string")
 }
};



The complete terminal error output is below:

$ firebase deploy --only functions

=== Deploying to 'projectName'...

i  deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint

> functions@ lint /home/owner/PhpstormProjects/shopify/projectName/functions
> tslint --project tsconfig.json


ERROR: /home/owner/PhpstormProjects/shopify/projectName/functions/src/index.ts:157:15 - Expression has type `void`. Put it on its own line as a statement.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ lint: `tslint --project tsconfig.json`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the functions@ lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/owner/.npm/_logs/2019-12-01T16_46_05_460Z-debug.log

Error: functions predeploy error: Command terminated with non-zero exit code2

Command Line – How to get a list of folders and number files in each folder next to each other in the current directory?

I am in the directory:
/home/john/my_test_files/
and under the directory are 100 folders:

folder1
folder2
folder3
...
folder100

Which command would I use to print the list of folders and the number of files of each next to each other. Something like that:

folder1     25
folder2     78
folder3     34
...
folder100   88

I am sure that this is something fundamental, but I could not find a good answer …