Saturday, September 21, 2013

RIP 'q' Key :-(

Recently, my colleague's thinkpad's 'q' key died. I am now thinking of digging up old xmodmap manual to use an unused key for 'q'. In the meantime, I am using the following method to input the 'q' character in gnome-terminal, firefox, etc.:

Control+Shift+u, then the hex Unicode value for the 'q' character (71)

... time to find the xmodmap manual... wait, I think I made a post about this a few years ago

Sunday, September 8, 2013

Aircel related info for my future reference

A few days ago, I had accidentally activated some Aircel service related to SMS (the service is called WBSMS1, the 1 part at the end is probably because it has validity of one day). I don't know what that service was, nor do I care. Since then every day, the service got auto renewed (that makes me angry), costing me Re.1/-

Today, I finally got fed up with it and try to call customer care number 121. Somehow it seems that I cannot talk to an aircel person using this number. For that I would have to call 198. So I called the person at the other end let me know that I am supposed to give the USSD command *122*01# to deactivate the service.

Tried it and finally the service is deactivated.

I just wanted to note the process so that I may refer back to it later.

Monday, March 11, 2013

Non-Linux Tip

To know any VAS (Value Added Services) you have activated on your BSNL mobile, the USSD code to use is *456*00#
For Airtel, it is *121*5#

Thursday, October 13, 2011

RIP Dennis Ritchie

Today is indeed a very sad day for me. We have lost a great mind. Dennis Ritchie was one of my heroes. RIP Dennis Ritchie.

Saturday, December 19, 2009

Skype in Linux

Recently I have started using Skype in Linux for video calls (calling home). My webcam (Logitech QuickCam Connect) works well in Linux but not directly under Skype (2.1.0.47). I am on Ubuntu 9.10. After some net surfing, I found two solutions that worked:

Solution#1:
Install gstfakevideo.
If webcam is at /dev/video0, then move it to, say /dev/video1 (gstfakevideo will use /dev/video0 for itself by default. This also means that in Skype Video settings, /dev/video0 is to be selected).
Start Skype as follows:
gstfakevideo v4l2src device=/dev/video1

Solution#2:
Install libv4l (in Ubuntu it is libv4l-0).
Start Skype as follows:
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype

(change the above path names depending on where the libv4l and skype are installed in your system)

Now that I got video working under Skype, I faced another problem. The video was too dark, and the current Skype version for Linux does not provide any option to change the brightness, contrast, etc. Again, some net surfing, and the solution that works for me turns out to be xawtv.

xawtv includes along with it a tool called v4lctl, which allows one to control brightness, contrast, etc. of the video stream from v4l devices. For me, a simple

v4lctl bright 250

from the terminal during a Skype video call solved the brightness problem. For other options that can be changed via v4lctl, do a

v4lctl list.

I can't exactly remember the URLs from where I collected those solutions, but I do remember that all of that info was from the Skype forums.