Suramya's Blog : Welcome to my crazy life…

July 6, 2006

IP subnetting made easy

Filed under: Knowledgebase,Tutorials — Suramya @ 10:06 AM

Good tutorial on IP Subnetting. Now it makes a bit more sense to me than it used to…

Check it out: IP subnetting made easy

– Suramya

March 8, 2006

An Introduction to awk

Filed under: Linux/Unix Related,Tutorials — Suramya @ 4:08 PM

A good introductory tutorial on awk. I have heard a lot about it, even used it a couple of times in shell scripts but never programmed using it. Check this article to learn more about it.


The awk programming language often gets overlooked for Perl, which is a more capable language. Out in the real world, however awk is found even more ubiquitously than Perl. It also has a smaller learning curve than Perl does, and awk can be used almost everywhere in system monitoring scripts, where efficiency is key. This brief tutorial is designed to help you get started in awk programming.

The awk language is a small, C-style language designed for the processing of regularly formatted text. This usually includes database dumps and system log files. It’s built around regular expressions and pattern handling, much like Perl is. In fact, Perl is considered to be a grandchild of the awk language.

Complete Article: An Introduction to awk

– Suramya

January 24, 2006

Mastering Ajax: Make asynchronous requests with JavaScript and Ajax

Filed under: Tutorials — Suramya @ 3:49 PM

Good tutorial by IBM that explains how to make asynchronous requests with JavaScript and Ajax.


Most Web applications use a request/response model that gets an entire HTML page from the server. The result is a back-and-forth that usually involves clicking a button, waiting for the server, clicking another button, and then waiting some more. With Ajax and the XMLHttpRequest object, you can use a request/response model that never leaves users waiting for a server to respond. In this article, Brett McLaughlin shows you how to create XMLHttpRequest instances in a cross-browser way, construct and send requests, and respond to the server.

Complete Article: Make asynchronous requests with JavaScript and Ajax

– Suramya

January 22, 2006

Extract a tar archive relative to the current directory

Filed under: Linux/Unix Related,Tutorials — Suramya @ 9:02 PM

How to extract a tar that looks like relative to the current directory:

$ tar -tvf MyArchive.tar
-rw-r–r– 100/100 58239140 Jan 20 05:17 2006 /home/suramya/bin/File1.dat
-rw-r–r– 100/100 56660587 Jan 19 16:07 2006 /home/suramya/bin/File2.dat

I don’t want to extract these files to /home/suramya/bin I want them relative to my current directory. The GNU tar program does this automatically but the Solaris version doesn’t. To fix this problem use the following command:

pax -r -s ',^/,,' -f MyArchive.tar

This will extract MyArchive.tar in the current directory (By creating a home/suramya/bin directory in the current directory)

Tip courtesy: Solaris IAOQ

– Suramya

December 9, 2005

Some Useful XEmacs Customizations

Filed under: Tutorials — Suramya @ 6:37 PM

A XEmacs customization tutorial:

In the past, any Unix system that did not have the vi editor was considered neutered. While many users still believe that, my opinion is the best Unix text editor is the one you know, and, today, many people do know Emacs. Scuttlebutt has it that even Bill Joy — the creator of vi — uses Emacs. With Emacs users in mind, Tom Benton presents some useful XEmacs customizations.

Complete Article: Some Useful XEmacs Customizations

– Suramya

December 8, 2005

AJAX: Instant Tutorial

Filed under: Tutorials — Suramya @ 11:29 PM

A really simple AJAX tutorial. Its quick, clean and easy to follow.

Source: Voyager I – WebDev – AJAX: Instant Tutorial

– Suramya

December 6, 2005

Easy Ajax with xajax

Filed under: Tutorials — Suramya @ 4:08 PM

xajax is an easy to use Ajax library for PHP. The site below has some good examples on how to use it to create ajax powered websites.

Complete Tutorial: The Net is Dead – Easy Ajax for the masses with xajax

– Suramya

November 30, 2005

Sed – An Introduction and Tutorial

Filed under: Tutorials — Suramya @ 8:47 AM

This is something I have been looking for a while. It is a really good tutorial on how to use sed.


How to use sed, a special editor for modifying files automatically. If you want to write a program to make changes in a file, sed is the tool to use.

There are a few programs that are the real workhorse in the Unix toolbox. These programs are simple to use for simple applications, yet have a rich set of commands for performing complex actions. Don’t let the complex potential of a program keep you from making use of the simpler aspects. This chapter, like all of the rest, start with the simple concepts and introduces the advanced topics later on.

Complete Tutorial: Sed – An Introduction and Tutorial

– Suramya

November 29, 2005

A Quick Start for Lsof

Filed under: Tutorials — Suramya @ 8:27 PM

A well written guide to using lsof (list of open files). lsof is a very useful tool that lists all open files on the system and the processes that have them open.

Check it out at: A Quick Start for Lsof

– Suramya

November 21, 2005

How to simulate fake connections

Filed under: Tutorials — Suramya @ 9:04 PM

Nice set of instructions on how to simulate fake connections using wget and/or Curl.

Extract from website:
In order to test one’s rulesets against all sort of user agents and – possibly – referrers or other HTTP headers, a quick and dirty simulation may be helpful. Wget and Curl are two applications that ship as default with most Linux distributions so they can be used in shell scripts for any sort of automation.

Complete Article: Know your enemy: How to simulate fake connections

– Suramya

« Newer PostsOlder Posts »

Powered by WordPress