Skip to main content

Posts

Showing posts from April, 2011

Deals You Can't Miss

1 Year Subscription

How to disable gnome-ssh-askpass?

Today we had setup Git repo with access to it through corporate's LDAP authentication. From the client machines we can access it using the .netrc (where the machine, login and password are configured). However, for some wierd reason, upon trying to pull/push commits from/to the Git repository, the bash shell tries to open the gnome-ssh-askpass dialogue and it fails. I wanted to prevent the bash shell from attempting to launch the dialogue box. To do this, all I had to do is run the following command in the terminal: $ unset SSH_ASKPASS To prevent it in future, you can add the above line in your .bashrc or .bash_profile. Wish you trouble-free working!

No DHCPOFFERS received. No working leases in persistent database - sleeping.

I was getting this weird error " No DHCPOFFERS received. No working leases in persistent database - sleeping. ", when trying to connect to internet via WIFI in Ubuntu. After enough googling to no avail, and by sheer serendipity I solved this. This worked for me; may be it helps you too. Argh, I missed the point. So here is what you can try if you are stil having this issue. Step 1: Go to, System -> Preferences -> Network Connections Step 2: Select Wireless tab Step 3: Click "Edit" the wifi connection profile you have created Step 4: There are two connection modes - Ad hoc and Infrastructure. Choose the "Infrastructure" mode Step 5: Save and try connecting again. You are done...!

GVim, Vim, Vi key-board short-cuts

Switch between tabs      Ctrl+PageUp,   Ctrl+PageDown     Ctrl + Shift + UpArrow ,  Ctrl + Shift + DownArrow Move to Nth tab in gvim      gt, gT      Note: The advantage with using gt, gT keys are that you can move to [N]th tab. For eg., if you want to go to 3rd tab type 3gt Open a file in new tab from NERDTree while still remaining in NERDTree      T will open the selected file in new tab, without changing focus from NERDTree      t will open the selected file in new tab, and changes focus to that tab Recursively Open all child nodes          Activate the NERDTree and navigate to the directory whose all child nodes must open.     Now press O (capital) to expanded list of child nodes    Recursively Close all child nodes     Activate the NERDTree and navigate to the directory whose all child nodes must close.     Now press X (capital) to collapsed list of child nodes Close all tabs at once with a single command, when I have multiple tab