Error while upgrading from Ubuntu 10.10 (Maverick Meerkat) to 11.04 (Natty Narwhal)

May 6, 2011

Got this error while upgrading from Ubuntu 10.10 to 11.04>The disc drive for / is not ready yet or not present. Continue to wait, press S to skip or M for manual recovery.

Searched for solution and found this Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/udev/+bug/753853

Solution given was do run command

sudo apt-get install -f Reason given was

Broken branding-ubuntu package was causing apt to stop prematurely leaving the system in an inconsistent state.

Categories : Ubuntu   Linux

Making HP Deskjet 1050 All-in-One printer to work in Ubuntu 10.10

Apr 26, 2011

*Go to “HP Linux Imaging and Printing” project in SourceForge.net http://sourceforge.net/projects/hplip/

*Download the latest .tar.gz file *Follow the instruction given here http://hplipopensource.com/hplip-web/install/install/index.html to install

Categories : Ubuntu   Linux

Installing Kindle For PC on Ubuntu 10.10 Maverick Meerkat

Apr 17, 2011

I wanted to use Kindle For PC in Ubuntu 10.10 Maverick Meerkat using “Wine”, but got the below error while running install .exe

fixme:system:SetProcessDPIAware stub! After some Google search, found that upgrading Wine to latest version “Wine 1.3” will solve this problem. Follow the steps given in this link to upgrade Wine to 1.3 - http://www.winehq.org/download/ubuntu After that open Wine Configuration, and set Windows version to “Windows 98” . Now again run the Kindle installation exe to install and run Kindle without problems.

Categories : Linux   Ubuntu

Ubuntu Linux command line tool to Convert PDF to Image and from Image to PDF

Apr 7, 2011

To convert Convert PDF to Image and from Image to PDF, follow the below steps,*Install ImageMagick - https://help.ubuntu.com/community/ImageMagick

*For PDF to Image, from linux shell, type command

convert abc.pdf abc.jpg

*For Image to PDF, from linux shell, type command

convert *.jpg abc.pdf

Note- To get a higher quality image while converting from PDF to image, use options, like for example below

convert -quality 100 -density 600x600 multipage.pdf single%d.jpg

More about the options are available here - http://manpages.ubuntu.com/manpages/lucid/man1/convert.1.html

Categories : Linux   Ubuntu

XMLHTTP AJAX abort(), jQuery abort()

Mar 10, 2011

I was looking if there was a way to stop an already running AJAX request, like we can stop an http request using browser stop button. Yes there is a way to stop it using abort() method of the XMLHttpRequest object . More details about this here http://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_a_1.html

Categories : jQuery   JavaScript