Archive for the ‘HowTo’ Category

VIM : Enable syntax highlighting for other file extensisons

Couple of days back i came to know about JavaScript code modules. Such files have an extension of .jsm and are not highlighted in Vim by default. Running the command set filetype=javascript everytime is not the best way to do things. So, now we just need to check if the file extension is .jsm and [...]

Right click menu, awesomeness

If you have not seen this effect in action, i recommend you to visit akismet.com and right click on their logo, else here is a Demo that i made. I’ve got to say seeing this in the akismet site was quite inspiring. Well, isn’t it a cool effect and I have got to say they [...]

Don’t focus on me, Dim others. Cool effect via CSS3 or jQuery

In this effect, instead of the element in focus having some changes, rest of the elements go DIM or have a decreased opacity so that the elements outstands. Here is a Demo and a basic code for the effect can be found below The HTML <div id="navigation"> <ul> <li><a href="http://blog.avinash.com.np">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> <li><a [...]

Nifty navigation effect using jQuery and CSS

Designing navigation is one of the most important part of the web development cycle. It becomes more important because each site requires its own type of navigation and not to forget, people do like to see something different in their website. Here’s an example of the navigation in action To start with, the only tricky [...]

Lavalamp effect using jQuery

Before i start on how to get the effect, here is the final outcome . Lava Lamp effect The most important concept for this effect is the absolute positioning and the morphing of the element. The HTML <div id="navigation"> <ul> <li id="selected"><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> <li><a href="#">Details</a></li> <li><a href="#">Feedback</a></li> </ul> <div id="blob"></div> </div> [...]

Rails2 and Rails3 side by side

It was just couple of days back, when i started using Rails 3 and started getting the niche of it when a client wanted some job done on rails 2.3.8 . So, even i had no idea how do i downgrade to 2.3.8 or run them simultaneously. After so searching and digging this is what [...]

Setup Ruby on rails on ubuntu 10.04

Pretty easy, sequence of commands and we’re done First, update all repositories sudo apt-get update Installing the default ruby stack apt-get install irb ruby rdoc libopenssl-ruby ruby-dev Download rubygems from http://rubyforge.org/frs/?group_id=126 then install as below tar xzvf rubygems-1.3.7.tgz cd rubygems-1.3.7 sudo ruby setup.rb have gem point to the 1.8 binary sudo update-alternatives –install /usr/bin/gem gem [...]

Rails 2.3.8 on Instanrails

Instantrails is the best way to setup rails server on windows as it is very easy install and setup .No hassles at all. Installing Instantrails is just an extraction operation. Updating it to the latest version is just easy as installing. Here is how we do it Open up a ruby console via the instantrails [...]

phpmyadmin login with no password

Really easy solution edit the file /etc/phpmyadmin/config.inc.php and uncomment $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

iPhone voicemail hack for Tata Docomo …

Basically, if you have an unlocked iphone then the voice mail button would take you to a page saying “your voice mail is not configured”. If you know the voice mail number for your carrier (09029090290 in my case. ie for tata docomo), here’s a work around. Make a call to *5005*86*09029090290# and we are [...]