Asynchronously call a remote web page without the complexity of AJAX

Let me first give me my scenario where I needed such a thing, so that it may clear what I mean by the title of this post. Scenario:- For a J2EE Online Library project of mine I needed to display a list of books that can be issued. Each book’s entry had a corresponding check […]

Using Airtel Edge/GPRS Micromax MMX 610U USB device to surf the internet from Linux

This has been a major headache for me to reboot to Windows just to surf my net, and to update my Linux machine I had to forward the internet connection from a Windows computer to my Linux machine. None-the-less I eventually managed to make it work to day. 🙂 Note that I managed to make […]

Find the number of lines of code your project has.

After completing a big and satisfying project you may want to collect various stats about your project. One of them is the total number of lines of code your project has. As with all big projects it will probably have large number of files tucked into various directories and sub-directories and sub-sub-directories,…. you get the […]

magic_shutdown: Shutdown computer remotely using Magic Packet

The title says it all. If you don’t know what a Magic Packet is then read here. Below is the code of a shell script (I call magic_shutdown) that uses tcpdump to listen for Magic Packets. When it receives on then the shell script verifies its content to make sure that this packet was meant […]

Turn on (power on) your computer remotely

I was scanning the net today for ways to turn on any computer remotely. The solution I stumbled upon was Wake-On-LAN (WOL). (Read more) What’s more good, is that most of the computers sold today support this feature. To know if your system supports this feature or not run the following command sudo ethtool eth0 […]

Posting PHP codes on blog.

If you want to post PHP code on blog or any web page then its easy. Use the command:- php -s /path/to/your/php/script > The_Code_to_post This will generate a html code that you can directly paste in the web page’s code to display your code with syntax highlighting, but if you post this code in […]