/Ivelin Kostov

About Ivelin Kostov

This author has not yet filled in any details.
So far Ivelin Kostov has created 4 blog entries.

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 |2017-11-25T22:19:08+00: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 |2017-11-25T17:10:07+00:00November 21st, 2017|Categories: How To|Tags: , |0 Comments

Adding an Options Page in WordPress Settings Menu

When you want to add an options page in WordPress, you need to use function add_options_page. This example will create one page containing a simple sting: add_action( 'admin_menu', 'my_menu' ); function my_menu() { add_options_page( 'Menu Title', 'Page Title', 'manage_options', 'page-slug', 'callback_fn' ); } function callback_fn() { echo "Some text"; } First part of the example adds [...]

By |2017-07-07T23:52:26+00:00July 7th, 2017|Categories: How To|Tags: , |0 Comments

Phonetic Algorithm Soundex

Soundex algorithm is used for encoding English words on the basis of their sound. The main purpose is to avoid spelling errors when recording the names of people in a census. Source code can be presented as a code of 4 characters in the form LDDD, where L is the first letter of the name [...]

By |2017-04-17T11:38:33+00:00July 9th, 2016|Categories: Explained Simply|Tags: |0 Comments