Python Archive

How do you distribute python apps

Having created an exemplary application structure of a web site that uses flask, we can continue with taking the first step into preparing the distribution. Altering the Folder Structure In order to package our application well, we need to make some additions …

Here is Simple TensorFlow Application Go Programming Language

Download and extract the TensorFlow C library into /usr/local/lib by invoking the following shell commands:  TF_TYPE="cpu" # Change to "gpu" for GPU support  TARGET_DIRECTORY='/usr/local'  curl -L \    "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-${TF_TYPE}-$(go env GOOS)-x86_64-1.1.0.tar.gz" |  sudo tar -C $TARGET_DIRECTORY -xz The tar command extracts the …

How to create SSH BruteForcer in Python

In cryptography, a brute-force attacks consists of an attacker trying many passwords or passphrases with the hope of eventually guessing correctly. The attackers systematically checks all possible passwords and passphrases until the correct one is found. Alternatively, the attackers can attempt to …

What is the use of mutex lock for integer variables

As in many other computer architectures, in x86 memory access is fairly slow. To give you some perspectives, accessing register in CPU takes roughly .5 nano-second. Changing value in main memory take roughly 100 nano-seconds. That’s 200 times slower than usual. There is number …

How to do file handling in python

In this article we are going to discuss the basic file handling functions in python programming language. Read entire file: inputFileText = open("testit.txt", "r").read() print(inputFileText) In this case the “r” parameter means the file will be opened in read-only mode. Read certain …

Can we compare OOP of Python and Java

It’s true that OO programming can result in issue such as heap fragmentation or other non-deterministic platform states, such as performance deteriorations. Indeed, the issue of OO heap use was one reason why C++ took many years to replace C in embedded …

How to encrypt a file in python

Given the popularity of Python, at first I was disappointed that there was no complete answer to this question to be found. It took me a fair amount of reading different answers, as well as other resources, to get it right. I …

Like the article? please consider sharing it. Thank you

Advertisment ad adsense adlogger