How To

/How To

Articles containing useful examples

Install htpasswd On CentOS

Htpasswd is a tool used to manipulate flat files containing usernames and passwords for basic authentication of HTTP. In Cent OS htpasswd is part of httpd-tools pack. In order to install it, you must enter (root access required): yum install httpd-tools After entering the command you will see a result similar to the one shown [...]

By |2019-04-11T07:40:29+03:00May 13th, 2019|Categories: How To|Tags: , |0 Comments

Generate a Random Integer in Python

In this example we can see how to generate a random number in Python. import random x = random.randint(0,200) print x In the first row we import Python random module. It's contains different useful functions to generate random numbers. In the second row we use function randint from the imported module to generate integer between [...]

By |2019-04-07T14:09:05+03:00November 25th, 2017|Categories: How To|Tags: , |0 Comments

Install pip on Windows

What is pip? The pip command is a tool for installing and managing Python packages, such as those found in the Python Package Index. It makes the community's wealth of libraries accessible to everyone. New users are no longer excluded from using community libraries by the prohibitive difficulty of setup. It's a replacement for easy_install. When [...]

By |2019-04-07T15:48:11+03:00November 21st, 2017|Categories: How To|Tags: , |0 Comments

Flush DNS cache in Google Chrome

Chrome is a browser that uses its own DNS cache. To flush(clear) the existing cache, we need to complete the following steps: Navigate to chrome: // net-internals / # dns page Click "Clear host cache" button In some cases, clearing the DNS cache is not sufficient and you need to clear socket pool: Navigate to chrome: // net-internals / [...]

By |2018-12-03T22:41:10+03:00May 26th, 2017|Categories: How To|Tags: , |0 Comments

Mean Value with R

In this example I'll show you how to find the average value of a vector using R language. First we declare a vector with the numbers we want to find the average of and write in the variable a. The declaration of the vector is obtained by the command "c" (derived from "combine"). The assignment to [...]

By |2018-12-03T22:43:24+03:00May 8th, 2017|Categories: How To|Tags: , |0 Comments
We use cookies on this site to improve our service, perform analytics and remember website preference. By using the site, you consent to these cookies (Privacy policy). I consent to cookies