Archive for the 'Uncategorized' Category

Why my application can’t open more than 1024 or 4096 sockets in Linux

February 26, 2009

Typically socket “open” call doesn’t fail unless you have missed out closing the previous connections using “close” system call. Read Full Article.

Bash shell script to convert string from lower to upper case and vice versa

February 26, 2009

The “tr” command can be used to convert a string variable to upper or lower case. Read Full Article.

Why GNU Make always says `target’ is up to date

February 26, 2009

The GNU make expects the rule target to be files by default. That’s why it first checks the presense of a file/directory with the name specified in the rule. Read Full Article.

Why GNU Make always says `target’ is up to date

December 5, 2008

Sometimes GNU Make just says evrything is up to date without compiling any modified files.
Read Full Article

Find all links in a page using JavaScript

August 4, 2008

You can use “links” object array to traverse all the links present in an active document. Read complete article at TechPulp.com.
Read Full Article

How to use Secure Shell (SSH)

July 30, 2008

Secure shell (SSH) is a replacement for telnet. telnet uses plain text protocol so a man in the middle can see what is being exchanged between client and server including sensitive information like passwords. A more sophisticated hacker can even hijack your connection. Read more in “How to use Secure Shell (SSH)” article at Techpulp.com.
Complete [...]

Find how long a command takes to run

July 30, 2008

Some times it is required to know how long a command is taking to execute especially in case of huge scripts. There is a command called time which can be used to determine the time taken by a command or a script. Read more in “Find how long a command takes to run” article at [...]

Introduction

July 10, 2008

Here you can find some and tricks related to Linux, C, GNU Tools, Networking, Web Programming, MySQL etc. You can also find small snippets of code.