M G Harish

Sunday, December 28, 2008

Random thoughts... about 2008

I have seen people who write in their Orkut profiles, "I'm cool" or "I'm hot". I've even seen some guy who has written both. I am neither hot guy, nor cool. My body temperature remains normal at 37°C, unless I'm sick. And I am still trying to understand the meaning of hot and cool. Guys (and girls, if there are any), help me out here!

When I stay alone, I think. Not that I don't when I'm with others, but I believe solitude is the time when I get time to introspect, think about myself. It's the time when I laugh at myself for my foolishness. It's the time when I realize my mistakes. It's the time I repent for my mischievous behaviours and misdeeds.

People change. Not because Barack Obama has asked for it, but they change for a reason. They change when they grow. They change when they get good marks in classes. They change when they get awards. They change when they get good jobs. People change when they get new friends. And they change, abruptly, when they get girlfriends. They change when they marry. Amidst all these changes, people remain friends.

About two and a half years back I, along with Suri, started blogging. Then, it was just like a collection of some interesting and funny mails which I was getting. After a couple of posts, I found it useless and I stopped blogging. But Suri was very serious about it. He was literally going through all sorts of websites, from Technorati to hit-counters, from problogger to pre-blogger. Every night (yes, not day. Courtesy: BSNL Sancharnet) we used to chat hours together. That's the time people started calling me Goobe (owl). I still wonder how Suri escaped from that title. He used to talk about blogging, blogging and blogging. Eventually he was able to pull me into it. So I restarted blogging in 2007, wishing everyone a happy new year. I started writing posts at the rate of one per day. Suri read it. After continuing it for two weeks, I started showing my laziness and procrastination. The frequency of my posts started decreasing.

In spite of all this, my blog has more than 75 feed readers and has recently crossed 50000 hits. Not an award-winning achievement, but I think it is quite decent for a blogger like me, who posts once in three months. I thank all my readers, friends and those who have supported and backed me during times, good and bad.

2008 to 2009
2008 has been a year when I started working as an engineer (well, although I joined in 2007, we just had training), something which I dreamt right from my childhood. Apart from that, this year has been a year of ups & downs, just like every other year. I'm sure 2009 will also be like that. But we have forget the bad, cherish the good, and move on.

I wish you a very happy new year.

Wednesday, December 03, 2008

Code for Factorial, without Recursion

After having been declared to be an impregnable procrastinator by all my close-circle friends, after being connoted to update it by those who I didn't even know were reading my blog and after being told "Enough is enough, now update it buddy" by a few friends, I am in the same situation as the Indian government after the Mumbai attacks. I have no other go than updating it, at least for the sake of hushing them up till the next terror attack near my house. So here I go...

As you might already be knowing, I prefer calling programming an art to calling it a process. That's the reason I enjoy it.

Coming to the point, my friend cum colleague was trying to write a program for generating Pascal Triangle. I decided to play along and wrote a code. In the process, I wrote a function to calculate factorial for a number in an unusual way, without recursion.

Generally an incremental loop is used from 2 to N. But I used decrementing loop and here is the outcome (Code written in C programming language):

unsigned int fact(unsigned int n)
{
unsigned int f=n;

while(n---2)
f*=n;
return f;
}

Main thing I wanted to convey in this code is the while loop, which uses the unusual "--" & "-" operator pair.

It works similar to this loop:

for(f=n;n>=2;n--)
f=f*n;

Not a great piece of code, but I found it to be a little interesting. Hence the post.

Sunday, September 21, 2008

Reviews - A Wednesday and Rock On!!

I never thought I would be writing a movie review in my blog. But after watching these two movies, Rock On!! and A Wednesday, (particularly the latter) I can't refrain myself from commenting on them. They are so good that you would regret if you don't watch them.

Rock On


Rock On!! is all about a music band called Magik. Four men with a common aim join their hands together to realize their dreams. But, being amiss on a small issue, they depart. How they reunite and how one can lose his felicity is the gist of the story. It reflects everyone's life because of its flash-backs which push everyone to his vernal days.

A wednesday


A wednesday, on the other side, is completely different. No hero, no heroine and no songs. Not a typical bollywood movie at all. However, it catches attention right from first scene to the last with its tight storyline and outstanding acting by every single artist. Naseeruddin Shah steals the show with his natural performance. This terrorism-based story revolves around Naseeruddin Shah, who calls Anupam Kher (police officer) with specific demands. It's a small movie (by bollywood standards, with only a runtime of around 95 minutes) but with a big impact. It reflects the minds of the Indians and despises the corrupted Indian administration system.

I don't want to spoil your interest by telling more about these movies. On a scale of 5, I would provide a rating of 3.5 to Rock On!! and 4.5 to A wednesday.

Tuesday, September 09, 2008

Face Recognition - Ultimate feature of Picasa

A picture speaks thousand words. The internet is becoming full of images. Google seems to have found future in the cutting edge face recognition for the images. It has introduced face recognition for the photos uploaded by the users. If you have not explored this feature, I say, the right time is NOW! I am balled over in the first attempt itself!!

  1. Select New Features at the top right.
  2. Select See name tags in action.
  3. Click Get started with name tags.
  4. Click Try It in the right pane.
  5. Click Start Processing photos.
Wait for some time. Picasa will scan all your photos and index all the faces found. It starts asking you the name of the person in the photos. The best thing is that it selects a bunch of photos, and all of them will be of the same person and its Suggestion is just marvellous. Most of the times, you don't even have to think before selecting the first suggestion. I can't explain the greatness of this feature in words here. Just use it and experience!!

PS: Google has already rolled out a hidden feature of face recognition in its image search. When you search for an image, say Sachin, the url of the image will be something like http://images.google.com/images?q=sachin. You can add &imgtype=face at the end of the URL, i.e., http://images.google.com/images?q=sachin&imgtype=face to find only images containing face.

Friday, July 25, 2008

Serial Bomb Blasts in Bangalore?

Bangalore was considered to be a safe place so far. But with the serial bomb blasts in Madiwala and surrounding places, I doubt it can continue to be so. News is spreading and details are not known.

Saturday, May 24, 2008

Top reason to adopt Firefox

We have been hearing, right from its introduction, that Firefox is the most secure browser. But many of us haven't bothered to know why is is deemed so. I am not going to explain about all those features which make it safer than other browsers, say Internet Explorer. I just thought I would share an experience which happened today, which can be considered to be the top reason to adopt Mozilla Firefox.

I got a mail from an unknown email id, pointing me to a blog. When I clicked that link, it redirected me to another site, http://www.posokei.com and to my surprise, a message popped up from the address bar, with title Suspecting Web Forgery.



It also provided a brief detail about the site and why that site has been classified as a phishing site. This means that the user is made fully aware of the site before he proceeds to browse it. Prevention is better than cure. Is it not be best reason to use firefox?

You can read about phishing protection in Firefox here

Tuesday, May 06, 2008

Google introduces Hindi translation

It has was a long wait, but well deserved. So far we were not able to dynamically translate text to any Indian language. Google has finally done it by introducing translation for Hindi. You can now translate any text or web page from English to Hindi or from Hindi to English. We can expect translation to and from other Indian languages also soon.

Although it is not perfect, I'm sure it will improve quickly. Be sure to improve the translation if you find a better word/sentence when you are using it!

Earlier introduced transliteration tool, which supported dynamic transliteration to Indian languages like Hindi, Kannada, Tamil, Telugu and Malayalam, which reduced the popularity of software based transliteration tools like Baraha.

I hope to see the translation expanded to include other languages also.