Category | Programming

An efficient UNIX shell-script…

Posted on 22 October 2008

If you use lot of Unix shellscripts in the VI editor, then here’s an efficient UNIX shell-script to compare two files & delete one of them if they are duplicates… Simple yet pretty handy, just check-up!

How to generate the magical Kaprekar’s number 6174

Posted on 21 September 2008

Are you aware of the fact that by taking any 4 digit number, & performing the following operations, the result converges to a constant magical number…

C code snippet to generate Kaprekar’s magical constant 6174

Posted on 21 September 2008

A handy C code snippet to generate the 4 digit Kaprekar’s constant 6174

XHTML Requirements

Posted on 15 September 2008

XHTML, the latest revision of HTML, adds another required element to your Web pages: the <!DOCTYPE> tag. This tag appears at the top of the file and identifies the file as an HTML document conforming to the XHTML requirements. If you were to create an XHTML-conforming document, it would look like the following:

Tags: ,

C# code snippet for demonstration of data casting!

Posted on 06 September 2008

A handy C# code snippet to demonstrate ways of achieve data typecasting like int -> double, int-> and so on…

C-code snippet to print a file by removing comments

Posted on 04 September 2008

If you have a file full of scraps and comments and you wanna print it by removing comments, then here’s a C-code snippet to do the task…

HTML Code for Redirection

Posted on 06 May 2007

I was working on a project last week and I wanted to redirect one website to another. Although I have designed quite a few websites, it was hard for me to recollect the syntax for redirection. So, I am just posting it on my website as an easy reference for next time and also for [...]

Howto : Crash Internet Explorer

Posted on 31 August 2006

The news of a single line of javascript code crashing internet explorer intermittently was like Yanni to my ears. This is very true, Stuart Brown has come up with a piece of code which is exactly 61 bytes long and it crashes IE but not Firefox. The piece of code throws an exception in IE [...]

Do not run this script, ever!

Posted on 27 August 2006

The recent flame war on ColdFusion brought to mind somthing that happened about 10 years ago.
I worked in a fairly large department that used a spreadsheet as the bug-submission-tracking “system”. Naturally, the person who assigned the work kept it open at all time, making it impossible for anyone to actually open it to enter a [...]

Top 10 Things You Need to Know About Java SE 6

Posted on 03 August 2006

Java platform 6 is currently in its beta 2 and is codenamed “mustang”. Sun website gives a list of 10 things that are native to Java 6. The website promises to give more details in its further articles. If you would like to download the beta 2, here is the link.

Site Sponsors

  • programming freak: And by the way thanks for those useful codes, i am surprised a site like this has C codes? and...
  • programming freak: Keep posting some codes man, i would be glad to find some c/c++/java/html/unix codes, sql queries...
  • programming freak: Hey thanks, good one!
  • Nathaniel Baker: its all good information.. but you forgot one very very important thing…. FAT32 can not...
  • om: Yeah sure it is.. :)

Older Posts

Ads

  • Advertise Here

Topics