Category Archives: TIP

Google Drive : Rumour Turns True

Today Google Launched Google Drive ! They also increased the Gmail quota to 10GB from the existing 7.5 GB. Now I will no more struggle with labnol’s tip to find the large emails and delete/forward them to save Gmail space.

Google Drive is giving 5GB initially and more space can be bought. I am still a Dropbox fan and will continue to use it. In fact Google docs is gone for me now. All my existing documents are under Google Drive and interface is same as Google Docs. May be the only difference is it has a desktop client which will have all the documents synced with Google Drive cloud automatically like Dropbox.

You can start using Google Drive now at

Let me know the feedback.

Source :

Update : 24-04-2012

Oh. Yes, I forgot to mention about Microsoft Like Sky Drive. They have been offering whopping 25GB. However they are going to limit it to 7GB apparently. But if you have an old account , you can still act upon and claim the 25GB free storage

Syncronize your web accounts with IFTTT

I just came across this wonderful service provided by the website . I always wanted to synchronize photos , links posted in various web accounts I have automatically. This website called “If This Then That” works pretty much like a cron job you define in Linux machines.

For example I share interesting links in Facebook and Twitter but forget to bookmark them for my future reference. Later I struggle a lot to dig down the link in my Facebook/Twitter steam history. I wish I would have bookmarked those links in my Diigo account.   Using this portal I can create a task which will be triggered whenever I post a link in Twitter or Facebook it gets saved in the social bookmarking site Diigo with appropriate tag , so that it can be searched easily later on.

Another example is that whenever I post photos in Facebook I wanted them to get backed up in my Dropbox account also this again helps retrieving Facebook photos for  printing later. Usually the best photos of mine goes to Facebook even if I forget to upload them in Picasa, so they are worth saving :)

Similarly this portal supports 36 different web accounts (they call them channels) and any of them can be used as the triggering event and acting event.

The above rules are called recipes and you can brows through many recipe ideas from the other users. I have share a rule in which Facebook photos gets uploaded in one of my Dropbox folder.

This is a very interesting service as it runs automatically in every 15 minutes and you can manually force it to run the rules whenever you want. Most of the tasks I have created till now has worked without any issues till now.

Another good news about this portal is that it uses OAuth for most of the user account credentials so that you don’t have to share your password with IFTTT for giving limited access.

Visit IF THIS THEN THAT and play around tasks now !

Current Running Status Of Train In Indian Railways : Official Source

Now there is a official way of knowing the current status of train in Indian railway. Three years back I had posted about the a third party site which gives you the best possible location of a running train. The IT department of Indian Railways has cleaned up there website and and redesigned in the new version.

You can get access to the beta version of the website at the following URL

Click on “Go to the new look” button to get to the following screen where there is a search with auto suggest box and you can search with the station names after which the train is named. Once you select your train it will show you the latest known position of the train and amount of time it is running late. I doubt you will see any train before time given the track record of Indian Railway.

It will be great to see the position in the map too , but they have done a great job by showing the relative distance covered in a slider.

I always has a feeling that Indian government websites are primarily designed for Internet Explorer but these days I see many websites including Indian Railway runs well in Firefox and Google Chrome. In fact few days back I got an email from IRCTC that there is a minimal version of website ( ) to book tickets specially designed for Tablets and Mobile Phones. The above website which gives the live running status also claims the same. It is great to see railways adopting technology for convenience of passenger.

One of the notable thing is the announcement where IRCTC appeals not to take the print out of the electronic ticket while traveling. They are encouraging to carry the electronic versionin Mobile and iPad. However one of my friends was asked to show the circular in which it says you may not bring the print out and show the electronic version instead. Refer to the official notice numbers at the bottom for the circular. You may want to quote the same in this kind of situation. In either case you have to carry the a valid photo ID card accepted by railway.

1) Railway Board Letter No.2008/TG-I/10/P/SMS dated 20.07.2011
2) Railway Board Letter No.2008/TG-I/10/P/SMS dated 01.02.2012

Installing Windows XP from USB Drive

I just bought bought a Samsung netbook (NP-NC108-A04IN). Like many of the netbooks of this price range it came with FreeDOS. Few price comparison revealed that the same model with Windows 7 basic license  costs  on an average 2500/- INR more that that of the once with FreeDOS.

While buying I was assuming that it must have boot from USB feature, otherwise it is very difficult to install operating systems like Windows or Linux without any optical drive. I could install Windows XP with the following steps.

  1. Downloaded WInToFlash
  2. Create the Windows XP ISO image file from the CD
  3. Use this guide to make a USB drive bootable with windows XP image.
  4. Now change the boot sequence of the notebook such that the USB drive takes preference over the internal hard disk (Where freeDOS is installed)

  5. Boot from the USB drive.
  6. Select the 1st Option in the following screen
  7. Continue with a fresh installation. Make sure you select a different location than the default one (which is the USB drive itself ). Typically you should select the Drive C: The first steps will be as usual text based installation.
  8. Windows setup will copy the files. For me this process was extremely slow. The reason is still unknown. It took whole evening to do so. SO have patience.
  9. After it reboots automatically , Now it should be booted again from the pen drive but this time select the 2nd option as follows
  10. Continue the graphical installation till it reboots again.
  11. Now windows  will start for the 1st time and as per documentation this time also it should be booted with the 2nd option like the previous step.
  12. After completing the start up Remove the USB drive and you are done.
  13. Optionally you can revert your boot sequence back.

I am also planning to have dual boot in the netbook with Ubuntu . This can be done using pendrivelinux.



setting up eclipse with github

For most of the project I use eclipse as it is very extendable with so many plugins but when I want to be lazy and let the IDE do everything I wish I use Netbeans (i.e at work :)). I wanted my project to be stored as repository at git and let eclipse handle all the source controlling jobs , so that I do not have to use shell or git bash for committing and pushing the local changed to remote  repository everytime. I managed to connect my repository in github to my eclipse project in the following way

1. Download and Install EGit eclipse plugin into your eclipse.

2. Copy the HTTP url from your github project. Here  is how to create a github repository

3. In Eclipse click on File-> Import and select “Projects from Git” under the the Git folder. On clicking next you might get a dialoge for Home environment variable not being set but you can ignore and click on OK.

4.Click on clone and paste the URL copied in step 2 and click next.

5. You will be asked for branch section, in my case I selected master and click next.

6.Then you will be asked to configure the local destination . You can give the a project directory iside your eclipse workspace.

7.Upon clicking next , You might get a message for master password recovery hint question.

8. Cancel the new project from git wizard and create a project from the existing source. Select the folder which we had given as the local destination in step 6.

9.Right click on the newly create project and click on “Team” — > “Share Project”. You can ignore the home environment variable dialog again and  select “git” in the share project window. next and check the “use or create repository in the parent folder of project” checkbox. Check the newly create git repository folder and click finish.

11. Now you will see the project folder icon is changed and small yellow cylinder icon has appeared next to all files and folder in the hierarchy of  the project which denotes that these are now version controlled.

Source control operations from Eclipse

After code changes you can right  click on any file or folder in the project hierarchy and click  ” Team –> Commit ” to commit the changes locally and finally right click on the project node and “Team -> Push to Upstream” for pushing the changes to the github server(remote)  repository

More documentation can be found at the EGit Documentation page. Also see setting up the Git

Taking Screen Shot of Samsung Galaxy Mobile

SC20110514-181447I just figured out how to take screenshot in Samsung Galaxy series mobiles running on Android , But I have only tested in my Samsung Galaxy Ace running on Android 2.2.1 .

1.Go to the screen in mobile , which you want to take screenshot of .

2.Press the back button on the bottom right and hold it.

3.Now press the bottom centre button and it should make a sound of camera shutter.

4.Go to Gallery app and you will find a new folder called Screen Capture where you can find the screenshot in png file format.

Print the Stack Trace of the Exception to log file

In Java, when an Exception occurres , the following code snippent can be used to print it in a log file

    public static String logStackTrace(Throwable t)
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw, true);
         nLog("exception  "+ sw.toString());

    public void nLog(String msg) {
    try {
        BufferedWriter out = new
            BufferedWriter(new FileWriter("/home/temp/ex.log",true));
        } catch (IOException e) {

Converting video from ameg to avi with ffmpeg

I have been using my Sony SCR SX 20 for quite a some time now. One of the the problem I see is that even though it does not record in High Definition (HD) , it consumes a lot of space.In fact for 22 Minutes of High Quality video it creates a .MPEG file with size 1.5 Gb. This is too large for uploading in any video sites like YouTube. I tried Linux GUI Tools like WinFF and Avidemux  but they elongated the video vertically and also sometimes conversion failed because of some library missing issue.

I found it can be done with ffmpeg and desired optimal quality can be achieved gaining some free space.

For best quality

ffmpeg -i 1.MPG -sameq 1.avi

For desired quality

ffmpeg -i infile.MPG -qmax 4 outfile.avi

Here the number 4 indicates that I need a moderate quality , higher the number lower is the quality and smaller is the output file size. You can hit and trial with a small file and choose your desired number. Same is applicable while converting MOV file to avi.

For Batch processing one can try

??for f in *.MPG; do ffmpeg -i “$f” -qmax 4 “${f%.MPG}.avi”; done