Wishing others on birthdays in facebook

I usually don’t wish others on their birthdays in Facebook. Normally a birthday wish is meant to show that you’ve remembered his/her birthday because him/her is special to you. But in Facebook you get a notification on who have the birthdays each day. Which renders such a wish useless.
If you really want your wish to stand out, be the first person to wish. (Even being the last will do). This may not be an easy thing to do. Especially being the first to wish is the hardest. Or you can send him/her a private message as a wish instead of writing on his/her wall.

What have I written? Okay, I should publish this.

Tabs in Vim

tabs in vimSince its 7th version, Vim has tabs functionality. You can open multiple files in tabs and do lots of wonderful things with them. To open multiple files from the console, just type:

vim -p filename1 filename2 …

Or if you’re already inside Vim, give the command,

:tabnew filename

to open a file in a new tab. You can traverse the tabs with the combinations gt and gT. To close a tab just use the exit command (:q).

There is a wide range of cool stuff you can do with tabs. To learn more, just type

:help tabs

in Vim or head to this page.

See you, bye!

Theists are stupid people

But Marge, what if we chose the wrong religion? Each week we just make God madder and madder.

– Homer Simpson

Theists are stupid. There’s no doubt about that. It would be okay if a 5-year-old child believed that there’s a superman up in the skies watching our every move and listening to our prayers. But if a grown up believes that, there’s something definitely wrong in him.
One thing many theists fail to understand is that no one’s sure who exactly the real god is. From Allah to Zeus there are thousands of gods being worshipped and everyone thinks that he or she is worshipping the right god. If you tell this to any of these theists, he’ll start coming up with the several pathetic arguments used to ‘prove’ there is in fact a god. Arguing over such a thing is a waste of time indeed, for such arguments have happened since thousands of years and nobody has won. It would only lead to broken egos, so let’s not argue again.
If you really think there is a god, okay, there is one. Go on with your prayers. Peace.

Chrome extensions you MUST have

I’m angry today. Very. And I will be writing about must-have Chrome extensions. Keyword: must-have. If you think they aren’t must-have, fucking leave already! Sorry, I won’t use swear words again.

1. AdBlock
It’s the first must-have. Why not? How the hell is one supposed to browse the web with all the colorful ads? You have to concentrate on the content, not the ads.

2. Evernote Clipper
When you find something interesting in a web page what do you do? Clip it to Evernote of course. You don’t use Evernote? Go fuck yourself. Sorry.

3. LastPass
What can you do without lastpass? Type in the usernames and passwords everytime manually? You browser saves them? That’s only temporary. You HAVE to use lastpass.

4. Mail Checker Plus for Gmail
How else would you get a notification when a mail comes? You don’t use Gmail? Dumb idiot!

5. RSS Subscription Extension
Without this how would you subscribe to blogs? How would you find the RSS links of a web site? This is an official Google extension, so you better install it now. Now.

6. Singreesi
It was developed by me. So all of you MUST install it. No excuses, please.

7. Wikipedia Companion
Everytime you want to check up a word, a name, or something what do you do? Open a wikipedia tab and do search. Stupid numbskull. Go install the Wikipedia Companion. It’s the super easy way to browse wikipedia.

Okay, that’s it for now. I’m going to kill someone and get rid of this anger. Kthxbai.

Boom!

Four thousand hungry children leave us per hour from starvation
While billions are spent on bombs creating death showers
The lines are from the song ‘Boom‘ by System of a Down. They were the lyrics that came to my mind when I heard today about the multi-million dollar nuke submarine that was being  imported to India from Russia and the whole multi-billion dollar submarine deal. India is home to many billionaires, but it’s also a country with billions of people below the poverty line. For how many days could the Indian government have fed those mouths if they hadn’t wasted the money on the stupid subs? Think of all the money they spend trying to win a piece of land in Kashmir. And to show the rest of the world that they’re a super power.
Why, India, why?
The answer, my friend, is blowing in the wind
The answer is blowing in the wind.
PS:  Wrote and compiled the whole post while on a Colombo-Matara bus. 🙂

Rebecca Black

So I thought of writing about Rebecca Black. Not a fan of hers, but I had nothing to write and Rebecca came to my mind and I thought why not? So here I am.

Rebecca BlackLike most of us, I got to know about Rebecca Black just after she released the Friday video in YouTube. Seven am I wake up in the morning, gotta be fresh gotta go down stairs, dun dun dun. No one disagrees that the lyrics are a bit um.. childish. But neither can one disagree with the fact that the song was more or less catchy. I played it two or three times in YouTube. Okay, I admit, it was more than half a dozen times. My subconscious even began humming the tune several times during the day.

Rebecca became an internet celebrity, and the video came to be the most disliked video on Youtube. People said that she was the worst thing happened to be on earth after Justin Beiber. Haters gonna hate. However, it was later announced that she was donating all the Friday’s proceedings to emergency relief efforts in Japan, making many mouths shut.

Rebecca then starred in Katy Perry’s Last Friday Night (TGIF) music video. She didn’t of course sing in it, but she looked real elegant and charming, and the video was a hit.

In July she released her second song and video ‘My Moment‘. The lyrics were like a slap in the faces of the haters. “Were you the one who said that I would be nothing.. well, I’m about to prove you wrong”. Anyway the new track wasn’t as catchy as the first. The lyrics weren’t bad, but the song was far from good. It was received with mixed reviews from the fans.

In the end, I’m neither an RB hater nor a lover. Whatever people’s reactions are, she is here to stay everyone will have to live with it.

Streamie – Not just another twitter client

StreamieWe’ve seen hundreds of twitter clients come and go. Only the fittest survive in this frenzy. And Streamie is going to be one of them.

Streamie is a browser-based twitter client, so it’s cross-platform from the outset. It’s timeline is real time, as in Tweetdeck. But these are not what make it stand among the rest.

Streamie strives to remove the unwanted bloat from the timeline. As seen in the screenshot below, only the the text of the tweet and user’s dp are displayed. Furthermore, it filters out long conversations (longer than 3). These filtered out tweets are shown as slim lines without text in the screenshot. If you want to see the hidden conversations, just click on those lines and they will appear. The result is a minimal timeline with less distractions and bloat.

Streamie twitter client

Streamie is still in its beta, so expect some minor glitches and sluggishness. There’s still no support for twitter lists, etc. However, the app is still good for a beta. Hope the developers will continue improving the web app and if properly developed Streamie has the potential to become one of the best web-based twitter clients out there.

Streamie in Chrome Web Store

Vodafone 945 – thoughts, rooting and installing sinhala

So finally I ditched my beloved Nokia E63 to an android, Vodafone 945. It isn’t a high-end device, but it’s as far as I can reach to an android right now.

Vodafone 945
Talking about the cons, the resolution (240×400) of the 3.2 inch screen is rather low, but one can live with that. Perhaps that’s the only major problem with this phone. The response time of the capacitative touch screen is quite satisfactory and it’s fast for a 600MHz device. There’s nothing to whine about the battery life too. The OS is Android 2.1 (Eclair). I’m still trying hard to get used to the touch keyboard. Badly miss the physical QWERTY keyboard of my E63.

The 5 megapixel camera works great. Here’s a snap I took this morning. (Click on the photo to view the original size)

Snap taken from the Vodafone 945 camera

Rooting
You can simply install the app z4root and root the device. I wasn’t able to do a permanent root, only the temporary one (which lasts till the next restart) worked. But it’s enough for the needs.

Installing Sinhala and the Ubuntu font
After rooting, install the app Root Explorer and copy these three fonts to the /system/fonts directory. You’ll have to enable R/W permissions for the directory. You won’t get complex scripting support for Sinhala unicode, but the outcome is readable.
Sinhala in Vodafone 945 (Android)
It’s also advisable to use Root App Remover to remove the stupid trial-ware that come pre-installed with the device.

Many thanks to Akila for walking me through rooting and installing Sinhala.

Adding captions to images with Python

So I wanted to add captions to a set of images and wrote some lines of Python. Python has some cool image libraries so the job was real easy. Have never used Python before except to write some kindergarten-level programs, so this may not be the best way to code the thing. But it does the job.

	import Image, ImageDraw, ImageFont, os

	pathz="/home/thameera/ws/img_caption/pics"
	if os.path.exists(pathz) and os.path.isdir(pathz):
		for name in os.listdir(pathz):
			print name
			fullname=pathz+'/'+name
			im = Image.open(fullname)
			namez=name[:-4]
			d = ImageDraw.Draw(im)
			f = ImageFont.truetype("Arial.ttf", 16)
			d.text((4,0), namez, font=f)
			im.save(fullname)

	else:
		print "Directory not found"
 

It scans the given images directory and adds the file name sans extension as a caption, as shown below:


Original:will.i.am_1.jpg
   
After adding the caption