Nov 30, 2007

Getting Relational(Designer) view in Phpmyadmin

Its just simple....
just go to the phpmyadmin folder
In my case i am using lampp and and the path to phpmyadmin is:

open the file:
Note: You should be root (or use sudo command) to open the file.

Find the line:
$cfg['Servers'][$i]['pmadb'] = '';
Edit it to:
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
and save the file.
And also conform the the following lines exists and exactly same as below:
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

Reopen phpmyadmin and you will get, what you are searching for.

Nov 29, 2007

Limiting the power of Sudoers

Basically in linux, a default user "root" have full access to any kind of file (every thing is file in linux, yes! even device!!!). Sometimes it is necessary for other users in the same system to access some file which are inaccessible for him by default. Command "sudo" helps to solve this problem. It is used as follows:

$sudo <command-inacessable_by_default arguments_if_any>

This Sudo command limits the user's power on the basis of the configuration made on the file "/etc/sudoers".
Generally in default case you might see something like this:
root ALL=(ALL) ALL
Above, you can see ALL 3 times. But what does it mean?
The first ALL: Run from any(all) host
The Second ALL: From any Terminal
The third ALL: Can Run any command

So, the line means the "root" run any command from any terminal from any host.
Now, how to change this? Dont ever attempt to change the power of root :) any thing may happen to your system. I cannot predict what will happen, but it is not obviously going to be good.

Yes, but you can add another user to sudoers list and limit his authority(power).Lets kick off:

Let me add another user "foo" which can have full acess to "ifconfig" command from current host.


what do you think? will it work. Obviously not.

What does HOST and COMMAND mean?
HOST is just an alias to host(s), which i defined here.
Similarly COMMAND is a alias to command(s)

We should also define these aliases in the same file (etc/sudoers)

Host_Alias HOST =
Cmnd_Alias COMMAND =/sbin/ifconfig

If you want to give "foo" to access other commands too. you can simply append the line line with a seperator comma(,). ie:
Cmnd_Alias COMMAND =/sbin/ifconfig, <path to other command(1)>,<path to other command(2)>...

In similar fashion you can also add add other hosts too.
Further there are other 2 more types of aliases you can define:

I hope you got it...

you can find a detailed info by running the following line in console:
man sudoers

A visual defination of sudo: :)


Nov 28, 2007

Tux in Text

Have you ever seen Text-Art of linux?
In either case you must visit this site, . This site contains a text picture of the Penguin (the icon of linux).
Great Art. I cannot stop myself to appreciate it.

If I am not mistaken,the text is the code of linux kernel (Obviously... not complete)

Visit it @

Nov 26, 2007

check your download speed online...

To check your download speed just click here

This site checks your download speed and even gives your ip. It also shows your download speed in graph, comparing with standard connection types.

Its also provides you to browse anonymously from

EDIT: This isnt working anymore.

Nov 25, 2007

This is what sudo is.


Configuring Netbeans to new look and feel

Everybody wants to be unique. Isn't it...
I too want. I changed the default look and feel of the netbeans.

Adding theme
<path to netbeans>/netbeans -cp:p ${substance}\substance.jar
-laf org.jvnet.substance.SubstanceLookAndFeel

Adding Watermark
"<path to netbeans>/netbeans" -J-Dsubstancelaf.watermark = org.jvnet.substance.watermark.SubstanceKatakanaWatermark

Changing buttons laf
"<path to netbeans>/netbeans"

Note: I am using the substance look and feel. You can download it from

And finally here is what i am using recently,
/opt/netbeans-5.5/bin/netbeans" -cp:p /opt/mymodules/substance/lib/substance.jar -laf org.jvnet.substance.SubstanceLookAndFeel -J -Dsubstancelaf.watermark = org.jvnet.substance.watermark.SubstanceBinaryWatermark

Yea I have my netbeans in /opt folder and i run linux in my system.

With similar options you can also change java's default laf.

for more detail info:laf@netbeans

Opening file as root with just few clicks...

[I tested it in ubuntu]
For basic user, I hope need not to go to terminal for any of of the region beside editing a file as root. You might feel bored about this. Here's a handy shortcut... ( yea, you wont need to go to terminal each time.)

First goto to the following directory create a file.

create a file with name "Open as root"
and copy and paste all this code into the file:
gksudo "gnome-open $a" &

and save that.

and its done...

Right click on any file/ folder while browsing from "nautilus" and goto the Scripts menu and select "Open as root" .... give your password to open it.

Note: You should be in sudo-ers list to accomplish this.

Nov 19, 2007

!0 mins email

yea an email-address for only 10 mins. Is this of any use. yea, let me explain.
Have you ever registered for any site, that require an email address for just verification purpose. Obviously it will verify you, but beside this you end up getting spam-email in your inbox too. For this case you can use the e-mail address given by You can check the mail received and reply too. If required you can even extend the lifetime of the email for 10 more mins.

Get a 10-min email-address at: