Generate a cookie python
http://infohost.nmt.edu/tcc/demo/pycgi/pycgi.pdf
I wrote about the solutions to some problems I found from programming and data analytics. They may help you on your work. Thank you.
ezoic
Thursday, July 12, 2018
Wednesday, July 11, 2018
A good youtube math and machine learning channel
Here is a good youtube math and machine learning channel.
https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw
And it has a video series, machine learning Neural network for recognizing numbers
https://www.youtube.com/watch?v=aircAruvnKk
https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw
And it has a video series, machine learning Neural network for recognizing numbers
https://www.youtube.com/watch?v=aircAruvnKk
Tuesday, July 10, 2018
Randomly generate user agents and ip in python
1. randomly generate user agent
installation:
pip install fake_useragent
usage:
from fake_useragent import UserAgent
ua=UserAgent()
ua.random
got a random user agent
2. randomly generate ip
'.'.join('%s'%random.randint(0, 255) for i in range(4))
installation:
pip install fake_useragent
usage:
from fake_useragent import UserAgent
ua=UserAgent()
ua.random
got a random user agent
2. randomly generate ip
'.'.join('%s'%random.randint(0, 255) for i in range(4))
Sunday, July 8, 2018
Thursday, July 5, 2018
How to send emails on linux.
I use ubuntu system. How to find out which system you use, command is "uname -a".
I tried to send out email on ubuntu.
I tried on command line first.
I first installed postfix:
sudo apt-get install postfix
Then I tried the command:
echo "test message" | mailx -s "test subject" XXXX@xxx.com
And I got the following:
I tried to send out email on ubuntu.
I tried on command line first.
I first installed postfix:
sudo apt-get install postfix
Then I tried the command:
echo "test message" | mailx -s "test subject" XXXX@xxx.com
And I got the following:
The program 'mailx' is currently not installed. You can install it by typing:
sudo apt-get install mailutils
So I installed mailx.
I got the message.
And I put it in a linux shell script. Got it done.
Monday, July 2, 2018
Subscribe to:
Posts (Atom)
R is not a simple programming language, and it does better on reading excel files than python
R is not a simple programming language, and it does better on reading excel files than python . tried to read excel files to python and R. i...
-
Previously, I wanted to install "script" on Atom to run PHP. And there was some problem, like the firewall. So I tried atom-runner...
-
I tried to commit script to bitbucket using sourcetree. I first cloned from bitbucket using SSH, and I got an error, "authentication ...
-
How to learn SQL quickly? SQL is an easy database language to pull data from database, and make calculations etc. on it. It has many edit...
