December 29th, 2006

permalink Inddiethumpers!

Inddiethumpers came to Mood Indigo today. Man, were they awesome! Guess what? I joined them *wink*. Check me out in the video. I'm in the blue t-shirt at the end (second last bike when the 5 bullets stream out).

Video credit: Sheece Man

December 28th, 2006

permalink Limerick Generator – Part I

Synopsis

The following code demonstrates an alien limerick generator. Alien because it does not generate meaningful words. In part II, we'll see how we can add meaningful words.

Code

You can view the code and see it in action here.

Sample Output

orraxa iz hoxori upifoc awhapo ed
ceva ovat ujbazo arli du caded
uc iqek suenvo
zaek ammiip edbeuvo
moix beak kuefyo irogno iluyox xoiqged
December 23rd, 2006

permalink My mum’s losing her mind

comic strip

In her defence, I was out till 1 am. And I'm good at making silent entries. No wonder chicks fear me. :P

I met a bunch of school chums yesterday. Some of them I hadn't seen for 10 years now. It was FUN!

jwalant, kamal, pravin, harjiv, ryan
November 27th, 2006

permalink Teachers Remarks

Teacher's remarks 7th grade

Teacher's remarks 8th grade

Teacher's remarks 8th grade

Teacher's remarks 9th grade

November 5th, 2006

permalink Show me the way to go home

[Begin Chorus]
Show me the way to go home
I'm tired and I want to go to bed
I've had a little drink upon the Narrow Bow
And its gone right up to my head

No matter where I roam
Whether land or the sea or the foam
You'll always hear me singing this song
Show me the way to go home
[End Chorus]

Jack and Jill went up the hill
To fetch a pail of paani
Jack fell down and broke his crown
Jill said Kuch parwaa nahi

[Chorus]

Old King Cole was a merry old soul
And a merry old soul was he
He called for his wife in the middle of the night
And he gave her a cup of tea

[Chorus]

I was in the 6th grade and my class had organized a party for Christmas. Little kids sang christmas carols. Little me sang that.

And people wonder why I'm so messed up.

September 14th, 2006

permalink Scholarship

I just learnt that my little one got a scholarship yesterday. She's put in a lot of effort. I'm really proud of her.

P.S. My little brother is still annoying.

July 31st, 2006

permalink FindWindow Illustration

Synopsis

The following code illustrates the use of FindWindow API. This program blanks out the ad in Yahoo Messenger buddy window. It has been tested on Yahoo Messenger 7.5 and 8.0.

Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// This code illustrates hiding the Ad in the Buddy window of Yahoo Messenger
//
// Copyright (c) 2006, Pravin Paratey
// pravinp[at]gmail[dot]com (http://dustyant.com)
 
#include <windows.h>
 
int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpszArgs, int nCmdWnd)
{
	HWND hYahooWnd = FindWindowEx(NULL, NULL, "YahooBuddyMain", NULL);
 
	if(hYahooWnd) // Yahoo Messenger is running
	{
		HWND hAtlWnd = FindWindowEx(hYahooWnd, NULL, "ATL:00821BC0", NULL);
 
		if(hAtlWnd) // Found the window
		{
			HWND hShellWnd = FindWindowEx(hAtlWnd, NULL, "Shell Embedding", NULL);
			if(hShellWnd)
			{
				HWND hDocObjWnd = FindWindowEx(hShellWnd, NULL, "Shell DocObject View", NULL);
				if(hDocObjWnd) // This is the window we must hide
				{
					ShowWindow(hDocObjWnd, SW_HIDE);
				}
			}
		}
	}
	else
	{
		MessageBox(NULL, "No instances of Yahoo Messenger found", "Error", MB_OK);
	}
	return 0;
}

Download

You can download the source code or the binary.

Usage

Pretty straight forward. When yahoo messenger is running, double click the exe. The ads window will disappear :)

April 7th, 2006

permalink Implementing Emoticons in C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
public string Emotify(string inputText)
{
	#region Create Emote hashtable
	Hashtable htEmotes = new System.Collections.Hashtable(100);
	htEmotes.Add(":))", "21");
	htEmotes.Add(":)>-", "67");
	htEmotes.Add(":)", "1");
	htEmotes.Add(":-)", "1");
	htEmotes.Add(":((", "20");
	htEmotes.Add(":(", "2");
	// Add other Yahoo emotes
	#endregion
 
 
	StringBuilder sb = new StringBuilder(inputText.Length);
 
	for (int i = 0; i < inputText.Length; i++)
	{
		string strEmote = string.Empty;
		foreach (string emote in htEmotes.Keys)
		{
			if (inputText.Length - i >= emote.Length &&
				emote.Equals(inputText.Substring(i, emote.Length),
				StringComparison.InvariantCultureIgnoreCase))
			{
				strEmote = emote;
				break;
			}
		}
 
		if (strEmote.Length != 0)
		{
			sb.AppendFormat("<img src='images/{0}.gif' alt='{1}' />", htEmotes[strEmote], strEmote);
			i += strEmote.Length - 1;
		}
		else
		{
			sb.Append(inputText[i]);
		}
	}
	return sb.ToString();
}
February 4th, 2005

permalink HIPY PAPY BTHUTHDTH THUTHDA BTHUTHDY.

"I'm just saying 'A Happy Birthday'," said Owl carelessly.
"It's a nice long one," said Pooh, very much impressed.
"Well, actually, of course, I'm saying 'A Very Happy Birthday with Love from Pooh'. Naturally it takes a good deal of pencil to say a long thing like that."
(I wanted this to be my best post ever. Something that I couldn't possibly surpass. I ended up staring at the screen, typing, and then deleting what I've written. I did that for 2 whole days. Instead of using grand words and trying to be really clever and wacky, I decided to say it plain and straight.)
This is how we met.
(Drawn by me. Colored by Reiya.)
That's Reiya and me just sitting there happy and content.
(Colored by Reiya)
"Rivers know this: there is no hurry. We shall get there some day."
That's the apple boy, hogging on his apple.That's the apple girl.
"Promise me you'll never forget me because if I thought you would I'd never leave."
Thats the aquarius babyAnd that is babywawa
"I'll show you," said Tigger bravely, "and you can sit on my back and watch me." For of all the things which he had said Tiggers could do, the only one he felt really certain about suddenly was climbing trees.
That is Damita, Princess of BeironThe one on the right is Reiya, the cutest of the penguin people.
(Drawn n colored by me)
And the Small and Sorry Rabbit rushed through the mist at the noise, and it suddenly turned into Tigger; a Friendly Tigger, a Grand Tigger, a Large and Helpful Tigger, a Tigger who bounced, if he bounced at all, in just the beautiful way a Tigger ought to bounce.
That's her storyThis is mine
"If you live to be a hundred, I want to live to be a hundred minus one day so I never have to live without you."
Tweenie, Tigs, Damita and my little princess, you are a very special girl. My support system, you've always be there when I needed you. All those late night talks when I'd crib about everything and throw huge tantrums, while you patiently listened and sorted things out for me. They really made a difference. I'm really lucky to have you as my friend. Hope you have the best birthday ever!
March 24th, 2004

permalink Oh My!

Sometimes I feel Yahoo reads my mind. Take this ad for instance
Female Roommate
Well ... any takers?

About Me Pravin Paratey icon

Pravin Paratey Foto I'm your average, everyday chap who enjoys chocolate, free food and the occasional, dirty picture of Terry Farell. [ more ]

Navigation

Popular Posts

Blogroll