The post Worth Reading: There is no “normal” in microservices appeared first on 'net work.
This post is the first one going through the Kirk Byers Python for Network Engineers class.
In the first class Kirk shows how to pipe data into Python by using the module fileinput with the following code(modified for Python3):
import fileinput for line in fileinput.input(): print(line.split("."))
I’ll show what this script outputs and then we’ll look at the code.
daniel@daniel-iperf3:~/python/Week1$ echo "192.168.1.1" | python3 stdin.py ['192', '168', '1', '1\n']
How did we get data into Python? We used “echo” to send data to stdin (standard input). The function “fileinput.input()” can take either files as arguments or if no files are listed it will read from stdin.
It’s possible to use “fileinput” to read from several files and print out the content. We used the following code:
import fileinput for line in fileinput.input():
Then we print out the text:
daniel@daniel-iperf3:~/python/Week1$ python3 stdin.py 1.txt 2.txt 1 2 3 4 5 6 7 8 9 10 daniel@daniel-iperf3:~/python/Week1$ cat 1.txt 1 2 3 4 5 daniel@daniel-iperf3:~/python/Week1$ cat 2.txt 6 7 8 9 10
Here we printed the contents of two files by sending them to “fileinput” We can see what Continue reading
A balanced discussion on the merits of the US H1B visa program. These programs exist in most developed nations, and the same issues apply.
As you would expect, the program is used to benefit some companies and abused by others:
Giants like Amazon, Apple, Google, Intel, and Microsoft were all among the top 20 H-1B employers in 2014, according to Ron Hira, professor of political science at Howard University who has testified before Congress on high-skill immigration. The other fifteen—which include IBM but also consulting firms such as Tata Consultancy, Wipro, and Infosys—used the visa program mainly for outsourcing jobs.
On the whole, modern IT is changing much faster and automation is replacing most of the tasks the outsourcing does today. The era of oursourcing ended about 3 years ago, it will take several years for the market at large to catch up to this fact though.
Four Ways to Tackle H-1B Visa Reform – IEEE Spectrum : http://spectrum.ieee.org/tech-talk/at-work/tech-careers/four-ways-to-tackle-h1b-visa-reform
The post Response: Four Ways to Tackle H-1B Visa Reform – IEEE Spectrum appeared first on EtherealMind.
We collect the top expert content in the infrastructure community and fire it along the priority queue.
Combined with DevOps, the rapid pace of digital service development creates challenges for enterprises.