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: <code><span class="pln"> TF_TYPE</span><span class="pun">=</span><span class="str">"cpu"</span> <span class="com"># Change to "gpu" for GPU support</span><span class="pln">  TARGET_DIRECTORY</span><span class="pun">=</span><span class="str">'/usr/local'</span><span class="pln">  curl </span><span class="pun">-</span><span class="pln">L </span><span class="pun">\</span><span class="pln">    </span><span class="str">"https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-${TF_TYPE}-$(go …

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: <span class="n">inputFileText</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="s2">"testit.txt"</span><span class="p">,</span> <span class="s2">"r"</span><span class="p">)</span><span class="o">.</span><span class="n">read</span><span class="p">()</span> <span class="k">print</span><span class="p">(</span><span class="n">inputFileText</span><span class="p">)</span> In this …

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 …

Like the article? please consider sharing it. Thank you

Advertisment ad adsense adlogger