Category: Programming


How To Generate Random Numbers In Linux?

Generating random numbers can be seem odd. But it is very important for security. In security field whatever best cipher or algorithm you use if you can’t generate random numbers it is useless from point of view of security. So how can we generate random numbers in Linux environment. Generate...


Introduction To Scapy Network Packet Generator

Scapy is a tool for network protocol, package generation and manipulation and showing them in a visual way with graphics and 3D images. There are tools equivalent like hping3 but scapy is very flexible against it. Scapy can manipulate all data of general protocols like IP, Ethernet, tcp, udp etc....


How To Set, Get and Change Bash Environment Variable?

Bash shell is used for a lot of things in Linux systems. Most of the applications run with bash. Bash is a shell but provides an environment that can be used to programming. Variables are core of the programming. Bash provides variables too. There are default variables as well as...


How To Create Fast Simple Database and Table With Php and Sqlite

Php is web programming language very popular among developers. Php is actually a scripting language which means there is no need to compile the code to run. So write and run is the motto of php language. Php scripts can be run on Linux systems like bash, Perl scripts too....


How To Check Java Version

Java is very popular programming language between open source community. Java is used for a lot of opensource projects. To run java applications it Java Run time Environment or Java Development Kit should be installed. We can check specific version java like below. Java Command Not Found

Oh there...


How To Check Whether A File Exists Using Python?

Python programming language provides different ways to check file existence. In this tutorial we will examine functions like isFile() and exists() to check file existence. Import os.path Module In order to use isFile() and exists() functions we need to import the os.path module which contains these functions.

isFile() Method isfile() is a function in...


How To Find Python Version?

I want to run some python scripts but want to learn version of the python installed on the system. How can I do that? This works almost all operating systems from Windows to Linux, from Mac OS to Bsd. Get Version Of Default Python Interpreter We can get default python...


How To Check If String Contains A Specific Word in PHP?

I have a string and want to check if the string provides some word I want to look. For example the string is like below

There are different way to archive this we will look them below. By Using strpos() Function strpos is a Php function used to find given...

Enjoy this blog? Please spread the word :)