view counter

Linux Feed

Linux Support, Oracle Linux, Red Hat Enterprise Linux, SUSE, Oracle Unbreakable Enterprise Kernel and the Oracle Unbreakable Linux Support Program (ULN) resources, news, and support articles.

Python – remove newline from readlines

readlines() is a function in python used to read text file and convert it into list where each line in at file is a element in list with new line(\n) at the end of each element.
>>> filelist = open("file.txt").readlines()
['a\n', 'b\n', 'c\n', 'd\n']
If you want to remove new line(\n) at the end of all elements in list use read() and splitlines() functions as shown in below example.

Install the high performance Nginx web server on Ubuntu

Nginx and Android: A great on-the-go web dev tool

Building a firewall for a Debian web server

This post addresses how to configure the Linux firewall to protect a Debian-based web application server. While there are GUI tools for the job, we will focus on the command-line tool iptables. The scenario is that you have just installed Debian (or Ubuntu) on a server connected to the Internet. This will be used as a web server hosting your WordPress blog. I assume that you already have Apache, and WordPress installed.

Python – check if string starts with number

With the help of isdigit() function we can check if a string start with number or not.
Lets check with following examples:
>>> input = '1viewsby'
>>> input[0].isdigit()
Above example is returned true since input string is started with with number.
>>> input = 'viewsby'
>>> input[0].isdigit()
Since input is is not started with number above example returned false.

Accurately Time Your Parallel Loops in OpenMP

Learn how to use a wall clock timer that is included as part of the OpenMP library. Jeff Cogswell walks you through how. Taken from Accurately Time Your Parallel Loops in OpenMP which is found

Use GNU C++ and Intel Compilers with OpenMP

Most compilers today support OpenMP. Here is a video compilation of  of how Jeff Cogswell shows you how to compile OpenMP programs using both the Intel and GNU C++ compilers. Taken from Use GNU C++ and Intel Compilers with OpenMP from

iostat – installation and usage

The iostat command is used for monitoring system input/output device loading by observing the time the devices are active in relation to their average transfer rates.
The iostat command generates reports that can be used to change system configuration to better balance the input/output load between physicaldisks.
How to install iostat:
iostat is available in sysstat module, so to install iostat we need to install sysstat module.
Use following command to sysstat:

What is the ice bucket challenge?

The internet has gone viral with videos of celebrities and other popular personalities taking the "Ice Bucket challenge" and daring three others to do the same. Here is what you need to know about it:

view counter