curl – Sends a Python post request to multiple users

I would like to prepare a Python script that sends a mail request to 1000 users at once and updates them all via API call. I already have a locke.

Pyhton script

    Import sys
Import UUID
Import JSON
import requirements
import hashlib
import time
headers1 = {# X tenant key # 39: test1 # 39; X # tenant name # 39; # 39; test 39 # 39; & # 39; ; content
Type:: & # 39; application / json & # 39 ;, & # 39; Cache control?: & # 39; no-cache & # 39;}
count = 0
for the open line ("/ home / pallav / postpaid_restart.txt"):
columns = line.rstrip (& # 39; n & # 39;). split (& # 39; t & # 39;
if (len (columns) == 1):
UID = columns[0]

    To attempt:
url2 = & # 39; http: //something..../postpaid/restart/'+uid

count = count + 1
r3 = orders.post (url2, headers = headers1)
print count, uid, r3.status_code
time.sleep (0.05)
if count% 500 == 0:
Bedtime (3)
if count% 1000 == 0:
Bedtime (3)
except:
time.sleep (0.03)
continue

that is curious

                    Curls -X POST 
# Http: //something..../kyc/postpaid/restart? user_id =& # 39; 
-H & # 39; cache control: no cache & # 39; 
-H & # 39; Content Type: application / json & # 39; 
-H & quot; X-TENANT-KEY: test1 & # 39; 
-H & # 39; X-TENANT NAME: test & # 39;

PowerShell ISE – Is there a keyboard shortcut to comment out lines or multiple lines

In PowerShell ISE, I'd like to comment out one or more lines at the same time with a keyboard shortcut like Sublime Text.

Is this possible to add or remove # in the example below displayed via a keyboard shortcut?

[console]:: beep (350,400) < toggle betweeen these > #[console]:: beep (350,400)

google sheets – Simplify multiple OR statements in a QUERY using IMPORTRANGE

I'm trying to query values ​​from another sheet with an area from the current sheet. Is there a way to simplify the formula and get rid of all the surgeries? How about a FOR loop?

= QUERY (IMPORTRANGE ("https://docs.google.com/spreadsheets/d/sample", "Production! A: P"), "select Col1, Col6, Col8, Col16 where
(Col8 contains & # 39; "& Tracking! B2 &" & # 39;) or (Col8 contains & # 39; & Tracking! B3 & "& # 39;) or (Col8 contains & # 39;" & Tracking ! B4 & "?) Or (Col8 contains & # 39;" & Tracking! B5 & "?) Or (Col8 contains & # 39;" & Tracking! B6 & "& 39;) or (Col8 contains & # 39; "& Tracking! B7 &" 39) or (Col8 contains & # 39; "& Tracking! B8 &" 39) or (Col8 contains & # 39; & && 39; & Tracking B9 & "39) or (Col8 contains & # 39;" & Tracking! B10 & "39) or (Col8 contains & # 39;" & Tracking! B11 & "& 39;) or (& # 39; Col8 contains & # 39; "& Tracking! B12 &"; or (Col8 contains & # 39; "& Tracking! B13 &" 39) or (Col8 contains & # 39; "& Tracking! B14 &" & # 39;) or (Col8 contains & # 39; "& Tracking! B15 &" 39) or (Col8 contains & # 39; & Tracking! B16 & "& # 39;) or (Col8 contains & # 39; "& Tracking! B17 &"?) Or (Col8 contains & # 39; "& Tracking! B18 &"?) Or (Col8 contains & # 39; "& Tracking! B19 &" & # 39; or (Col8 contains & # 39; & Tracking! B20 & & quot; & quot;) or (Col8 contains & # 39; & Tract cking! B21 & "& # 39;) or (Col8 contains & # 39;" & Tracking! B22 & "39) or (Col8 contains & # 39;" & Tracking! B23 & "39) or (Col8 contains & # 39;" & Tracking! B24 & "& 39;) or (& # 39; Col8 contains & # 39; "& Tracking! B25 &";) or (Col8 contains & # 39; "& Tracking! B26 &") or (Col8 contains & # 39; & "tracking! B27 & "39) or (Col8 contains & # 39; & & quot; & Tracing! B28 & & quot;) or (Col8 contains & # 39; & Tracking! B29 & & gt; & gt;) or (& quot; Col8 contains & # 39; "& Tracking! B30 &" & # 39;
", 1)

sql – Query records that have relationships to multiple values

How do you query all students who attend the same course with all given students?


[Table:Students]



ID name
--- ----
1 S1
2 S2
3 S3
4 S4
5 S5

[Table:Course]
ID name
--- ----
1 CA
2 CB
3 CC

[Table:SC]
StudentId CourseId
--------- ---------
1 1
2 1
3 1
4 1
1 2
2 2
5 2
1 3
3 3

I would like to know who is in the same class with S1 and S2. In the above data, the result should be S3, S4 and S5 because:

   
   
   
   S3, S4: participate in CA, which has both S1 and S2
S5: Join CB, which has both S1 and S2

I tried to query with GROUP-BY-HAVING, but it seems ugly:

CHOOSE *
FROM [Students]
FROM WHERE [Id] IN THE
(
CHOOSE [StudentId]
    FROM [SC]
    FROM WHERE [CourseId] IN THE
(
CHOOSE [CourseId]
        FROM [SC]
        FROM WHERE [StudentId] IN THE
(
CHOOSE [Id] 
            FROM [Students]
            FROM WHERE [Name] IN (& # 39; S1 & # 39 ;, & # 39; S2 & # 39;)
)
GROUP BY [CourseId]
        HAVE COUNT (1) = 2
)
)
AND [Name] NOT IN (& # 39; S1 & # 39 ;, & # 39; S2 & # 39;) 

Somehow better? Many Thanks.

Multiple entry – Schengen visa limitation?

I have a Business Schengen visa issued by the Italian Embassy from 15 July to 22 October 2019. I am going to Italy to work in the office and come back to India on the 10th of August.
On 10th September I will go on holiday with my family to Europe. I applied for a tourist visa for my family members at the French Embassy, ​​as the longest stay in Paris will be. We plan to visit Paris, Zurich, Venice, Salzburg and Munich. We will return to India on the 24th of September.

My question is whether I also have to apply for a visa or whether my Schengen multiple visa is sufficient.

Do not move the desktop with multiple Chrome windows

I recently had a really annoying problem with Chrome.

I am using Mac OSX 10.14.5 Mojave with Chrome version 75.0.3770.142

Here is the problem. I have two Chrome windows and put each window like Chrome 1 for Desktop 1 and Chrome 2 for Desktop 2 on each desktop.

Of course, every desktop has other applications like Terminal, Acrobat Reader, and so on. Let's say I'm editing text with my terminal in Desktop 1, and I need to find something about Chrome in Desktop 1. If I change the application over Command + Tab (as usual) from the terminal to Chrome, then it suddenly switches to Chrome Window 2, which is in Desktop 2.

All other applications are ok, d. H. Switching apps to desktop 1 will only be done on desktop 1 (not when moving desktop 2).

Does anyone have a similar problem like this?

I turned off too Reorder the areas automatically according to the last used usage in Mission Control and quit the hole chrome windows, then repeat it. But everything was helpful.

Comments are welcome!

⚡ CloudXMAC ⚡ macOS VPS ⚡ Multiple locations ⚡ Only from 19.8 USD / month ⚡

GreenCloudVPS.com

More than 16,000 active customers from over 150 countries worldwide choose us, and you too can count on us!

Like us on Facebook
Follow us on Twitter

Why we?

– We have been working in the hosting area since 2013 and have many years of experience.
– Own enterprise hardware: We own all our hardware and network devices. We do not use consumer hardware but only trusted enterprise hardware from Supermicro, Dell, Intel, Samsung and Western Digital
– Fast ticket response with an average of 20 minutes.
– Professional support around the clock
– 99.9% network availability guaranteed
– 1 Gbps and 10 Gbps network connection
– 7 days money back guarantee

Our macOS VPS features:

– Latest Mac Pro hardware with E5 processor and Lightning Flash SSD
– Full root access via VNC / Screen Sharing or Teamviewer
– Latest MacOS High Sierra / MacOS Mojave
– High quality macOS VPS with incredible support from different locations around the world. You can connect to the macOS VPS from any device to use iMessage, develop iOS and Xcode applications, run any MAC software, and more!

promotions:

Use the coupon MAC 10% off recurring.

______________________________________________________________________________________

macOS VPS

Place: Los Angeles, CA / London, United Kingdom

Mirror:

Los Angeles, CA: http://lgca.greencloudvps.com
London, United Kingdom: http://lguk.greencloudvps.com

______________________________________________________________________________________

MAC 1: 22 USD / month
– 2 GB RAM
– 2 cores
– 40 GB SSD flash SSD
– IPv4: 1
– Connection: 1 Gbit / s
– Unmeasured bandwidth
ORDER HERE !

MAC 2: $ 40 / month
– 4 GB RAM
– 4 cores
– 80 GB SSD flash SSD
– IPv4: 1
– Connection: 1 Gbit / s
– Unmeasured bandwidth
ORDER HERE !

Further plans: https://cloudxmac.com

Do you need an individual package? Contact our Sales!

Payment method: Paypal, Credit Card, Perfect Money, Webmoney, Bitcoin, Alipay, Wechatpay, Unionpay, Qiwi, Bank Transfer

Contact us:

apache 2.2 – Multiple instances that map hosts to port

I'm trying to set up a development environment that I can step into:

project1.com in a browser and go to a specific directory. project2.com changes to another directory. The challenge is, I use laravel and directories set up with artisans are determined by port.

So I want to map something like this:

// I know this does not work, I'm just trying to show what I'm trying to do

127.0.0.1:8000 project1.com
127.0.0.1:8001 project2.com

Is there a way in combination with virtual hosts?





DocumentRoot "/ project1 /"
DirectoryIndex index.php
Server name project1
ServerAlias ​​www.laravel.test
    
    Options All
AllowOverride All
Order Allow, Deny
Allow of all



    



DocumentRoot "/ project2 /"
DirectoryIndex index.php
Server name project2
ServerAlias ​​www.laravel.test
    
    Options All
AllowOverride All
Order Allow, Deny
Allowing all