All Posts

How to Reset the Root Password of MySql in Linux

I am posting this for my future reference. Also it my help passers by. If you are using CentOS 6 (maybe others too). To reset the root password use the following steps:- sudo service mysqld stop sudo service mysqld startsos mysql -u root Now you will be at mysql prompt. Here type:- UPDATE mysql.user SET […]

iFlickr PHP Script: Create mRSS feed of interesting pictures on Flickr.com

Did you notice the “Flickr Gallery” on top right corner of the home page of this blog? The picture slide show is provided by Google’s Ajax Slide Show, but this post is not about that. Google’s Slide Show needs a mRSS feed, which it parses to get the list of thumbnails it wants to present. […]

Script that notifies via email when your server has updates

If you are the administrator of a server then you definitely understand the importance of keeping your system updated always. The following script will send you a mail whenever your server needs an update. The content of the mail will list out all the available updates. The script Notes: This script has been tested on […]

Digit Math Application: Proving that all numbers ending with 5 are divisible by 5

Please read Digit Math: Introduction before you continue. The problem It seems I have developed a fascination for the number 5, so here we go again. Here I would be using Digit Math to prove that all integers  which end with digit 5 are always divisible by 5. The proof Case 1: Take a two […]

Digit Math Application: Proving the correctness of shortcut method to squaring numbers ending with 5

Please read Digit Math: Introduction before you continue. The problem Someday, somewhere I came to know that any number which ends with the digit 5 can be easily squared. The trick can be easily demonstrate using an example. Suppose we want to find the square of 25. Trick is to take the number before 5 […]

Digit Math Application: Proving that multiplying with 10**n puts n zeros at the end

Please read Digit Math: Introduction before you continue. The problem This is a very fundamental concept that we were taught when we were in junior schools. Now, think of it, what it says. If you add \(x\) ten times then you will get \(x\omega0\). If you add \(x\) hundred times then you will get \(x\omega00\); and so […]

Bertrand Russell (Famous Mathematician and Logician)

Digit Math: Introduction

The person in the above image is Bertrand Russell. Famous Mathematician and Logician.  An excellent graphic novel, Logicomix, is based around his life. That is a must read. First thing first. Even if you are not a Math demi-god, it is fine, Digit Math is still for you. In fact my academic track record shows that I […]

Access Ext3/Ext2 file system on Mac OSX Lion (10.7)

On Mac if you want to access ext3/etx2 filesystems, which are used by Linux systems, you will find lots of links on net but all are pretty outdate and they don’t work for Lion. So, here is the updated version, which works. At least for me. 😉 You will need two softwares:- OSXFuse – Download […]

NASA to launch inexpensive Android ‘phonesats’ into space

See the video to learn about it. Source: http://gov20.govfresh.com/nasa-to-launch-inexpensive-android-phonesats-into-space/

Can contact lens melt on the eye?

I believe no. This is yet another urban legend, spreading via mails and social networks. I decided to blog about it after seeing too many posts like – “A 21 year old guy had worn a pair of contact lenses during a barbecue party. After a few minutes, he started to scream for help and […]

CInk version 2 finally released!

Finally CInk version 2 has been released. Some key new things New website with complete API documentation and guides on how you can use CInk JS code. Finally released the full source code of CInk renderer and compiler. License – GPL v3. CInk finally supports all the features of original CFDG, including Paths. CInk has […]