Posts

Add Pidgin to Ubuntu 12:10 notification menu

Image
I upgraded my ubuntu 12:04 to 12:10  couple of days And to my surprise the pidgin integration in notification menu had disappeared. I couldn't figure out why this people f**ked up such an important integration. After some research and logic I was able to do some juggad and get my original gnome 2 notification style menu in notification bar . Here are the steps I followed I did not want Empathy or gwibber so I removed then Now follow these steps carefully. Open dconf-editor Add 'pidgin.desktop' to applications  in  com > canonical > indicator > messages   Change value to 'all' in  system-whitelist  in  com > canonical > unity > panel   Now Logoff and Login again and you will be able to see the Pidgin in messages notification menu. Also it now shows the gnome classic style chat notification in notification tray.. Pidgin showing in notification tray. ...

Indian Independence day...!!!

Celebrating independence day is not merely remembering the brave one who fought for it.. it a day to keep remembering the pledge to make it better. A Warm Salute for all the one who contributed to the freedom and also salute to all the people with all their deeds (great or even small) feel to make it better.....!!  Happy Independence Day...!!!

ProxyPass issue

I was trying to ProxyPass the app to another server But ran into a strange problem. ProxyPass worked when I called http://10.0.11.95 but failed when any uri was added to root(10.0.11.95) Like http://10.0.11.95/login gave Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /login. Reason: DNS lookup failure for: 127.0.0.1:9051login Where we find the problem is: Code for ProxyPass: ProxyPass               / http://10.0.11.95 ProxyPassReverse        / http://10.0.11.95 Solution, I needed another slash at the final, so, it should be: Code: ProxyPass               / http://10.0.11.95/ ProxyPassReverse        / http://10.0.11.95/ Now it works \m/ .

rails migration like filename in linux

 Creating files with date like rails migrations with datetime in file name in linux

Modulo operation in Ruby

Today I was stumped by a very simple yet awesome problem by my friend Sandip What is the answer of   :  7 % -2  and to the surprise ruby irb printed it as :  -1  After some research I what I found about this and why here is explanation and links From Ruby Programming Language, O,really   Division, Modulo, and Negative Numbers When one (but not both) of the operands is negative, Ruby performs the integer division and modulo operations differently than languages like C, C++, and Java do (but the same as the languages Python and Tcl). Consider the quotient -7/3. The floating-point result is –2.33. The result of integer division must be an integer, however, so this number must be rounded. Ruby rounds toward negative infinity and returns –3. C and related languages round toward zero instead and return –2. (This is just one way to characterize the results; no floating-point division is actually done, of course.) An important corollary of...

Intalling and using rvm

Image
I have been using ruby from a while and like every other I find  rvm as a awesome tool to manage various ruby version in one system. Optional: You many need to install all libs not all but many of these will be need but its better to get installed in the system This is a very small explanation for rvm but I feel this is very enough to get kick started and enjoy coding ..... More help:  http://cheat.errtheblog.com/s/rvm/ https://rvm.io/rvm/   http://net.tutsplus.com/tutorials/why-you-should-use-rvm/

Italic font rendering issue in Ubuntu 11 04

In Ubuntu 11.04 I had to install ttf-dejavu-extra fonts for rendering italic fonts properly $ sudo apt-get install ttf-dejavu-extra This helped me find the solution -  http://support.mozilla.org/en-US/questions/886261 After installing it is now rendering italic characters properly :)