Tuesday, April 26, 2011

Money Speech

Have you read the "Atlas Shrugged" by Ayn Rand? Well, I'm sad I never finished because of my neck issue. But I kept remembering a speech on Money by one of the lead characters. It really puts all I think and agree about money. I'm sure most people I know/like will agree with me. You can read it here http://www.freerepublic.com/focus/news/2158115/posts

Saturday, April 16, 2011

Fixing Hindi on Android

Recently I rooted and moded my Spica to Android 2.2 froyo by Cyanogenmod but it looks like they haven't put much thought to Hindi/Nepali fonts.
Even earlier the vowel signs were all messed up.

But I couldn't find any fix for this instead I found a work around in opera mini.

First let me tell you one thing, opera mini is a must app.

Open opera mini, in the address bar type


In the bottom, there is an option

Use bitmap fonts for complex fonts

Set it to YES

And it will work only in opera mini. Well something is better than nothing.

Tuesday, April 12, 2011

Upside down skype video on Fedora 14 64bit

Yes that happens on my laptop:

Laptop: Asus K40AB
Web-cam: Chicony CNF7129

It seems Asus mounted the camera upside down in the laptop. The windows driver internally inverts the image and displays it.

Here's a simple trick that I learnt from the ubuntu forums.
If you run skype with:

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype
It fixes the issue. But running it that way always isn't a fun.

There are two things to fix this situation:

1. The boring way: Create a shortcut on the desktop, with the above line as the executing application. This fixes the issue for only one user and cannot be invoked by the run command.

2. The fun way:
i. Log in to the super user
$ su
Enter the password
ii. Go to /usr/bin
# cd /usr/bin
iii. Rename skype to skype.main
# mv skype skype.main
iv. Create a new file skype with the below content:
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype.main
# echo "LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype.main" > skype
v. Make the new skype executable
# chmod 755 skype

And you are done. Now running skype will call the above script which has a fix thus the video is displayed correctly.

Still facing an issue? Post a comment.

Update: having issues with LD_PRELOAD, check updated article on my new blog here.

Sunday, April 10, 2011

No sound through headphones in Fedora 14

Sometimes there is no audio from the headphones. In that case, open a terminal, run alsamixer, i.e.

$ alsamixer

The alsamixer window is displayed.
Press F6 button and select "HDA ATI SB" from the list of sound cards and press enter.

Check that none of the mixers are mute (MM is shown below them if they are mute). If none are mute and are at high level but still you can hear no sound, go to the Front Mic, press up-arrow key and then the down-arrow key.

This works for me all the time.

Still have a problem, drop a comment.

Thursday, April 7, 2011