Skip to main content

Posts

How to buy a laptop

Laptop is a  very specialized piece of equipment. It has to chosen carefully in order to suit your needs and not just by looking at benchmarks. That procedure is for desktops. I will not list laptop models or vendors here because the hardware and configurations change so fast that by next day it would be outdated. To figure which ones are topping the list go to pcmag.com, laptopreviews.com But remember the your final choice might be complete different than the ones they recommend. But if you sure that this is what I need then go ahead. Now let us see how to choose the right laptop. To select a laptop answer these first 1. Why do I need it ? 2. What do I expect from it? 3. How much spending can I afford ? 4. How much battery life I want? 5. How long do I want my laptop to be mainstream? CATEGORIES : A> Business - This means you have to make presentations with it. And travel a lot. Options : Business laptops are available to suit this niche. But personally I wo...

A simple laptop battery monitor script

The script displays alert when the battery falls below 20% or charges up beyond 80% which should be the optimal range of its working. The code is as below. Just copy and paste and save as any file name but preferably battery-notify.sh. The script can independent of what name it is given. Needs to have acpi  (default install) and  notify-send installed (sudo apt-get install notify-osd). ============================================ #!/bin/bash # battery-notify v1.2 by JOnes # It is a script to monitor battery and keep it between 20% to 80% the optimal battery working range. If the battery goe beyonds the set limit it gives pop-ups every 10 seconds. No sound warning as sound can easily be muted and ignored. # Things that could be added : 1> The flexibilty of range. But it is not recommended  hence not implemented. 2> Notification in form of email or sms. 3> Sound / beep for critical state of battery. # The script goes into background. To kill it at an...

How to choose a webcam

I am biased. I prefer Linux. So i am going to talk about webcams which work in Linux. The primary driver for webcam in Linux is the UVC driver. Goto the UVC site and look for the supported hardware - http://www.ideasonboard.org/uvc/#devices Other drivers available are SPCA drivers. The official website http://www.quickcamteam.net/software/linux/drivers/spca5xx-webcam-driver . describes the installation details. For supported hardware look at - http://mxhaard.free.fr/spca5xx.html . For step by step procedure, look at the video at http://www.linuxjournal.com/video/get-your-webcam-working-gspca . For Skype tested webcams - https://wiki.ubuntu.com/SkypeWebCams For more information go to https://help.ubuntu.com/community/Webcam To test my webcam and adjust its brightness I use vlc and v4l2ucp. Cheese and v4l2upc combo can also be used. Here's what I do. (vlc needs to be installed) vlc v4l2:///dev/video0 In another terminal open v4l2ucp, the Video 4 Linux v2...

Split djvu into jpg files

In order to convert a djvu file into a collection of jpg files two tools are needs. One is djvulibre and the other is Imagemagick. Install these first. One way to convert would be to follow these instructions from http://en.wikisource.org/wiki/Help:DjVu_files To extract images from a DjVu file, you can use ddjvu ddjvu -page=8 -format=tiff myfile.djvu myfile.tif If you done all the pages (without -page=** ) you can split the multi-page tiff into single pages png (or any other format) convert -limit area 1 myfile.tif myfile.png But if the djvu has more than 8 pages then all these pages would be included into the tiff. When Imagemagick tries to convert that tiff and splits it into jpgs then it runs out of cache with the following error. convert: unable to extend cache file.tif': @ error/cache.c/OpenPixelCache/4175. It could be remedied but I do not know how. The solution might to limit the memory map http://www.imagemagick.org/script/architecture.php#tera-pixel But instead a bash...

Make all output formats available in Kdenlive

In Kdenlive more often than not I had found that many render options are grayed out. Particularly the flv formats. It would say "unsupported video codec" when the mouse is hovered over each crossed and grayed out item. This means that these codes are unavailable in the system. Most probably all codecs are correctly installed but some are in the restricted section hence not installed by default. For example, the extra codecs. To install them first we have to turn on the "multiverse" and "Medibuntu" repos. See  medibuntu .org  to find out how to add that repo. (Medibuntu is not needed for what we are going to install now, but add it anyways as it has lot of good useful codecs). Then we can proceed to install all possible extra codecs needed by Kdenlive. Depending on the system or OS version the following must be installed libavcodec-extra-52 libavdevice-extra-52 libavfilter-extra-0 libavformat-extra-52 libavutil-extra-49 libpostproc-extra-51 libswscale-...

Latex in chat gmail and pidgin

We write equations in latex to collaborators but most of them have to be read and interpreted in latex. It is only too natural to have some interpreter which converts the latex code into graphical output in the communication mediums like email client and chat clients. I would describe three possible ways to share equations with collaborators. Gmail - To send equations in email had always been hassle. Either we had to send the raw latex codes or send copy paste of the output from some latex compiler. Now, latex codes could directly be compiled in gmail . Install, gmailtex http://alexeev.org/gmailtex.html . The site provides all information needed to get it working. I prefer the greasemonkey script method because no fonts etc. needs to be installed. But since it fetches fonts online you need to have good internet connections. For slow connections stick to local install methods. Note - Just remember to turn off rich text formatting for gmailtex to be able to compile. Gmail chat - htt...

Vertical scroll not working HP Pavilion dm3 Notebook Touchpad in Natty/Ubutnu

This is a generic issue and not tied with HP Pavilion dm3 Notebooks. Many notebook touchpads do not have a working edge scroll first time with Ubuntu. The key is to pass a option to the psmouse module. lsmod See if psmouse is running. If not running check here /lib/modules/`uname -r`/kernel/drivers/input/mouse Do a ls. If no psmouse.ko is present then it has to be recompiled with latest kernel headers. I would not go into that. Assuming psmouse is present. Then unload it by rmmod psmouse Then inject the following line sudo echo "options psmouse proto=imps" >> /etc/modprobe.d/psmouse.conf It might give an error if the file is not present. Then sudo echo "options psmouse proto=imps" > /etc/modprobe.d/psmouse.conf Reload the psmouse module modprobe psmouse The vertical scroll should work now.

Reinstalling GRUB Legacy after windows reinstall

After Windows reinstall the windows would overwrite the GRUB. If using Ubuntu 9.10 or later or have the GRUB2 installed then see here - 1. https://help.ubuntu.com/community/Grub2 2. https://help.ubuntu.com/community/DualBoot/Grub If using older GRUB legacy version then the situation is a little bit tricky but not hard. There are two ways to do this. A) Use older LiveCD, possibly of Jaunty. 1. Make a bootable USB. Use unetbootin and not the Startup disk creator otherwise you will have the error vesamenu.c32: not a com32r image ( https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/686041 ) 2. Boot into LiveCD. 3. Run grub sudo grub 4. Find where Grub is. grub> find /boot/grub/stage1 (hd0,5) This may or may not be the correct partition where grub resides. If there is /boot partition in addition to a root partition then there might two locations where grub is installed for e.g. /dev/sda5/boot/grub and /dev/sda6/boot/grub. The one that contains the menu.lst is the one that is ...