≡ Menu

March 2010

April Fool’s Day Pranks for Geeks

Here is a list of few April Fool’s Day prank ideas to fool your friends. Some of them are very old and yet effective. What is your favorite April Fool’s Day prank? Take a screen-shot of the desktop and set it as their desktop background image. Disable the top/bottom panels on their desktop to make [...]

{ 5 comments }

UNIX / Linux: 10 Netstat Command Examples

Netstat command displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc., In this article, let us review 10 practical unix netstat command examples. 1. List All Ports (both listening and non listening ports) List all ports using netstat -a # netstat -a | more Active Internet [...]

{ 44 comments }

In our bash introduction article, we learned that a shell-script file contains list of commands to be executed by the shell interpreter. In this article let us review about shell commands and its internals. A command is a sequence of words. The first word indicates the command to be executed and remaining words are passed [...]

{ 4 comments }

Question: How do I executed PostgreSQL Commands inside a Linux / UNIX shell script? Answer: With the help of the psql interactive terminal, you can execute the psql commands from the shell script. For this purpose, you should enable the password less login by pg_hba.conf, or .pgpass. Syntax psql DBNAME USERNAME << EOF statement 1; [...]

{ 7 comments }

Sometimes Unix system administrators may end-up managing few Windows servers. If that ever happens to you, be prepared to do some basic administrative tasks on Windows. In this article, let us discuss how to sign microsoft executables and DLL. Why digitally sign executable and other windows files? You will get the following ‘Unknown Publisher’ message [...]

{ 4 comments }

Top 5 Best Databases

As part of the contest we conducted recently, we got 160+ comments from the geeky readers who choose their favorite database. Based on this data, the top spot goes to.. drum roll please.. MySQL If you are new to any of the top 5 database mentioned here, please read the rest of the article to [...]

{ 11 comments }

Question: I would like to understand the basics of how to write and execute Haskell program on Linux OS. Can you explain it with a simple example? Answer: In this article, let us review very quickly how to write a basic Hello World Haskell program and execute haskell program on Linux or Unix OS. Also, [...]

{ 3 comments }

9 Powerful Awk Built-in Functions for Numeric

Similar to awk built-in variables, awk also has lot of built-in functions for numeric, string, input, and ouput operations. Awk has the following three types of high level built-in function categories. Built-in functions for numeric operations Built-in functions for String operations Built-in functions for Input Output operations For those who are new to awk, please [...]

{ 4 comments }