Budget for Tax

Standard

While travelling in the sun today afternoon, I was thinking of how the tax we pay affect us. Maybe the heat took its toll on me, or I was right after all. See the chart to verify if your tax too is spent this way.

Budget for our Tax

Budget for taxes collected in TN

Essential Google Chrome Extensions

Standard
Google Chrome

Google Chrome

Google Chrome has become my browser of choice on Linux, although it seems to pale in comparison to the wide featureset of Mozilla Firefox. However, one can easily make Chrome as feature filled as Mozilla using the many extensions available for Chrome.

These are the Chrome extensions that I have installed:

* AdBlock: The popular ad blocker for Firefox in its Chrome avatar.

* Blocker: In Firefox, we can block images and other elements from specified domains, but Chrome doesn’t have this feature. This extension provides this functionality.

* Chromed Bird: The best twitter client on Chrome, and any browser for that matter.

* Docs PDF/PowerPoint Viewer: This allows us to view PDFs and other documents using Google docs, thus avoiding the many vulnerabilities common in PDF files.

* PlainClothes: This is a fun addon that lets you see how a webpage will look devoid of the ‘eye candy’

* RSS Subscription Extension: A much needed RSS Feed extension, this is among the first ones I install.

* XMarks Bookmarks Sync: Yes, Chrome already has a syncing option, but this is the best bet if you use multiple browsers on multiple distros.

* Developer Addons: I have several of these installed: XML Tree, View Selection Source, Web Developer(similar to the Firefox addon of the same name), Regular Expression Checker and JavaScript Tester.

* Webmail Ad Blocker: This extension, as the name suggests, blocks ads in GMail and other webmail clients.

Hope you enjoy the browsing experience with the new browser. Suggest more of your favourite addons in the comments.

My Triple-boot system

Triple Booting Fedora, Ubuntu and PC-BSD
Standard
Triple Booting Fedora, Ubuntu and PC-BSD

Triple Booting Fedora, Ubuntu and PC-BSD

I’ve been wanting to try a non-Linux OS for quite sometime, and managed to download PC-BSD today. My PC  already runs Fedora 13 and Ubuntu 10.04. I use Fedora’s GRUB to manage my boot process. After installing PC-BSD, I stuck with the same bootloader to manage the boot process.

I primarily use Fedora 13. The rest of the folks at home use Ubuntu or Fedora. I’ve messed around a lot with GRUB 2, but I do not like fiddling with a new version of the bootloader. So I remain loyal to the ‘legacy’ version of GRUB and will be using it until Fedora migrates to the new version.

You can also set up a triple boot (or any n-boot) system by using the older version GRUB. The process takes just a few steps.

Here’s how I did it:

1. I installed Fedora 13 first, and with it the GRUB to the MBR.

2. Later, I installed Ubuntu 10.04, but chose not to install the bootloader in the last step in the installer. You can do this by clicking on the Advanced button.

3. To add Ubuntu to Fedora’s GRUB, I just had to add the title, root and kernel entries for Lucid:


title Ubuntu 10.04

      root (hd0,2)
      kernel /vmlinuz ro quiet splash
      initrd /initrd.img

4. I installed PC-BSD, once again without the bootloader.

5. To add PC-BSD to the boot menu, I added just 3 lines:


title PC-BSD 8.0
      root (hd0,3)
      chainloader +1

An advantage of using GRUB 2 in one of the distros is that I never need to update the GRUB menu on Fedora. GRUB 2 automatically places a shortcut to the latest kernel in the / directory of the Ubuntu partition, so one doesn’t have to keep updating Fedora’s GRUB menu whenever Ubuntu’s kernel is updated.

Note: The logos in the image are copyright of their respective owners.

Playing with Python: Starting off with anagrams

Standard

I’m really into Python this summer, and thought I might share some of my work. I started off with a (simple enough) web application to connect to MySQL on Fedora 12, trying to make a cricket statistics site. It went off pretty well, but I got pretty bored and went off to do an Anagram generator. This morning I started off, with a basic tool to check if two strings are anagrams of one another.

The flow I thought of was:

1. Remove spaces from the strings, and sort them in ascending order.

2. Compare the sorted strings to see if they are equal. The two steps can be done in a single line.


return sorted(list(in1)) == sorted(list(in2))

This will show if the two strings are anagrams of each other.

I need to create a dictionary of words, and then think of a way to get the major anagram generation part going. I hope to complete that over the weekend. I also hope to check my code on Python 2 and 3, using Fedora 13′s parallel installable stacks.