Sep 26, 2010

Move Ubuntu 10.04 Window Buttons from Left to Right with 1 Command

Move Ubuntu 10.04 Window Buttons from Left to Right with 1 Command: Perhaps the most annoying thing about Ubuntu 10.04 "Lucid Lynx" is the right-to-left window buttons (Minimize, Maximize and Close buttons) switch. The change has caused a lot of confusions, anger, and criticisms from even the most loyal Ubuntu enthusiasts.
I personally wasn't happy about it not really because Ubuntu was trying to be like Mac OS X, but mainly because I'm just not used to having those pesky buttons at the left side. I know a lot of those who have just upgraded or installed Ubuntu 10.04 feel the same way too and would immediately want to move the window buttons back to where they belong, so allow me to help you with the simplest way possible.

Here's how you can move the window buttons of Ubuntu 10.04 from left to right using a one-liner:

Run Application Dialog (Alt+F2) or open a terminal and execute this command:

gconftool-2 --set /apps/metacity/general/button_layout --type string menu:minimize,maximize,close

That should do the trick. I hope you are happy now and have stopped cursing already :-)

Aug 8, 2010

Files System Directories “Hierarchy”

"In this article I will explain what’s files system directories also it know as Hierarchy.

This article will be really helpful for beginners to know what’s the purpose of each directory and command inside Hierarchy.

So let’s begin,"

binEssential command binaries
bootStatic files of the boot loader
devDevice files
etcHost-specific system configuration
libEssential shared libraries and kernel modules
mediaMount point for removeable media
mntMount point for mounting a filesystem temporarily
optAdd-on application software packages
sbinEssential system binaries
srvData for services provided by this system
tmpTemporary files
usrSecondary hierarchy
varVariable data

1. bin

/bin contains commands that may be used by both the system administrator and by users, but which are required when no other filesystems are mounted (e.g. in single user mode). It may also contain commands which are used indirectly by scripts.

2. boot

/boot This directory contains everything required for the boot process except configuration files not needed at boot time and the map installer. Thus /boot stores data that is used before the kernel begins executing user-mode programs. This may include saved master boot sectors and sector map files.

3. dev

The /dev directory is the location of special or device files.

Devices treated like files to read and write it


  • /dev/cdrom
  • /dev/hda for first hard driver IDE

If it is possible that devices in /dev will need to be manually created, /dev must contain a command named MAKEDEV, which can create devices as needed. It may also contain a MAKEDEV.local for any local devices.

If required, MAKEDEV must have provisions for creating any device that may be found on the system, not just those that a particular implementation installs.

4. etc

The /etc hierarchy contains configuration files. A “configuration file” is a local file used to control the operation of a program; it must be static and cannot be an executable binary.

It can be edited by hand : ex:

  • /etc/fstab
  • /et

No binaries may be located under /etc.

The following directories, or symbolic links to directories are required in /etc:

optConfiguration for /opt
X11Configuration for the X Window system (optional)
sgmlConfiguration for SGML (optional)
xmlConfiguration for XML (optional)

Jun 5, 2010

Working with Zend

A few weeks back I got a change to use Zend for a project . I don't know if I should name it in my blog , anyways its called Hubbub mortgage oppurtunity builder. Its a huge and complicated site . Its complicated not only because of the requirement's complexity but because zend is not able to handle the complex nature of the project.
Before this project I have woked with Rails. During my whole time in this project I was think how easier it would have been if the site was in Rails. One of the reason behind my thought might be that I wasn't involved in the project from the beginning so working with other's code is a hard job to fullfill.
Along with the code complexity another frustrating thing was that I couldn't install zend in my machine. I tried with various blogs and google for 2 days but to no avail. Even the senior working on zend for some time couln't fix the issue. There might be come mistakes I had done but this does not hide the complexity of zend during the setup. One of the designer in the team was even saying it is impossible to install zend in Windows.
Overall, I found zend to be not so helpful framework atleast in comparision to Rails or even Spring MVC.

Jan 9, 2010

Rails Links

I have been working for around 8 months in Rails.I have gone through many sites for various materials .I quite often forget the useful link I visited 1 months ago.So I decided to list it out here .Hopefully it will be helpful.
First and foremost is very useful.Initially I started with tutorials form was useful then but when I look back it was actually a waste of time.Instead I could have used various screencasts widely found on web. The one site I look often for these Screencasts is
As resources are concerned I found useful.It publishes a very useful articles on rails .Also is a good one to visit .
If anyone reads this blog post and has his own set of useful rails link PLEASE post it as a comment, I will add the link later.

Dec 24, 2009

Useful GRE Links

Preparing for GRE is an arduous task. For a non native English speaker it's even harder to prepare. There as thousands of people like me and we all want some useful resources. any of the resources needs to be paid which is not a ideal thing for us.
I have collected some of the links for my own reference as I go on. If anyone goes through this post please add your links .
After all exams are conducted by ETS so it comes first in my list.I has got many of the useful resources for GRE.
Others that follows are

I will be adding more links as I practice for GRE myself.
Have a nice time.

Running the background task with cronjob

Background processes are a regular need for any website. Specially when there are emails to be sent to the administrator every evening 1t 7.
Many developers have contributed to develop the plugins for running background processes, but because of some reasons none could be executed in my computer. So I went to the traditional way and used cronjob to run my background process in my Ubunto 9.10 server.

Here are the steps I followed
1> First I coded a bash script so that later I could just run a single command to run all my tasks
( to run ruby on rails code you need to use script/runner or script/console)
2> then I set proper time to run my background process(crontab -e)

Some also suggested to use thread.As I had my job done with cronjob I didn't bother to research further.

Photo Upload with Paperclip

Here are the steps to install an use paperclip with Ruby on Rails:
1> Get the paperclip plugin along with imagemagick plugin
2> Get imagemagick and imagick installed through apt-get
3> Just use the example code from imagemagick
4> sudo apt-get install imagemagick