[SOLVED] ‘Unknown’ filesystem in gparted

I had a primary NTFS partition with windows 7 installed on it. Somehow, its bootloader went corrupt so I used install-mbr in ubuntu to fix that but it only made the problem worse. Now my system didn’t recognise the partition as NTFS partition and I couldn’t access the partition. I modified the partition ID using… Continue reading [SOLVED] ‘Unknown’ filesystem in gparted

[HOWTO] 5 methods to find out your linux distribution name and version through command line

There are lots of commands to find out your ditribution name and distribution version. Some work on some distros, some work on others. Here are some of the methods: lsb_release -a cat /etc/*release cat /etc/issue cat /proc/version uname -a One of these methods will surely tell you your linux distribution name and current version. Cheers!

Passing variable number of arguments to a function in PHP

We all know about functions and how we can pass arguments to it. But did you know that we can pass variable number of arguments in a function? Consider a function sum() which adds numbers passed into its arguments. Now we want it to add all the numbers passed onto the arguments. Eg; if we… Continue reading Passing variable number of arguments to a function in PHP

[HowTo] Optimize Mozilla Firefox for better performance

Firefox is getting very popular lately, mainly due to its customizability. I use firefox as my main browser and use all sorts of addons which help me in web-development. These addons make my firefox hungry but I can’t do without them. So, instead I tweaked around some settings in firefox which made it much responsive… Continue reading [HowTo] Optimize Mozilla Firefox for better performance

[HowTo] Suspend Ubuntu from terminal or keyboard shortcuts

When learning to make bash scripts, at one point or other you’d like to know how to suspend your computer from terminal. Well, there are quite some methods available for Ubuntu. You can choose whatever suits your needs. I prefer method 3 (look below). Method 1: sudo sh /etc/acpi/sleep.sh force Method 2: sudo pm-suspend This… Continue reading [HowTo] Suspend Ubuntu from terminal or keyboard shortcuts

[HOWTO] Delete all unstarred emails from Inbox or Label in GMail

Its easy to delete all mails from a label/folder or inbox, but sometimes we’d like to save our starred mails and delete all the rest. The search box in gmail comes in handy in such situations. Its really a very powerful tool with various operators to make the search more efficient. The gmail search really… Continue reading [HOWTO] Delete all unstarred emails from Inbox or Label in GMail

Extract almost any archive through terminal using a single command in linux

I came across this simple script on ubuntuforums which I thought was really very useful and worth sharing it on my blog. You can either make a function out of it and put it in .bashrc file or make an executable script and put it in /usr/bin/. Method 1: Open your ~/.bashrc file using any editor. gedit… Continue reading Extract almost any archive through terminal using a single command in linux

[How-To] Find windows live (hotmail) contacts on twitter

Twitter removed its hotmail/msn contact importer tool last year which was a very useful tool. However, there are few tricks which enables you to do just that. The easiest one is: Twitter allows you to import gmail contacts. Gmail allows you to import MSN contacts. Hence, you can indirectly import MSN contacts in twitter by… Continue reading [How-To] Find windows live (hotmail) contacts on twitter