Tuesday, April 22, 2008
An amazing song from Lost Highway
My second favorite song from Lost Highway... This song is sooo amazing. Bon Jovi rocks!
Lyrics
It's pretty cold for late September
The autumn wind is creepin' in
The summer sun packed up it's long gone
There's a whole lot of leaving going on
I'll bet it's warm in California
I think it's time to hit the road
I just might call that band of gypsies
Go searching for our pot of gold
Seems like lately there's a whole lot of leaving goin on
Chorus:
I close my eyes and picture your hand in mine
I still hear your voice, it takes me back to that time
Where I can find a reason to be strong
Seems like lately there's a whole lot of leaving going on
Close the window, draw the curtains
You ain't the only one here hurtin'
No one's right, no one's wrong
Lately there's a whole lot of leaving going on
Chorus
Solo
You used to live to say you love me
Now you got one foot out the door
It's then you turn around and ask me
Do we got it anymore?
I close my eyes and picture your hand in mine
I still hear your voice, it takes me back to that time
When I need a reason to be strong
I close my eyes and picture your hand in mine
Yeah I walk the line
You'll never hear me say goodbye
So pretty baby please be strong
Seems like lately there's a whole lot of leaving goin on
19:05 Posted in Music | Permalink | Comments (0) | Email this | Tags: bon jovi, lost highway, whole lot of leaving
Friday, March 07, 2008
Vista look alike better than Vista!?
I have Vista on my laptop which ran extremely well 5 months back... but recently have been noticing extreme performance issues.
I was looking forward to install it on my office system as well, but just realised that a better idea was to rather mimic its looks on a XP system, which I indeed did, as you can see from the snapshot :-) I installed Vista Inspirat theme and Thoosje sidebar and have all I need for the Aero kinda looks. I a much happier person now!
BTW, nothing compares to the Vista sidebar.
16:06 Posted in Technology | Permalink | Comments (0) | Email this | Tags: vista, sidebar, xp, performance
Long lost Windows 95 Startup Sound
The Microsoft Sound, a term that will instantly remind you of the sound that plays on your Windows startup, and which happens to change with every new release of Windows (incase you already changed it manually)
I hardly ever care about the sound at my startup, all I care is the windows theme. But recently I had a strange urge to listen to the startup sound of Windows 95!!! I searched for its wav file, but didn't come across one. Then I found a youtube video that had all the Microsoft Sounds till date. I ripped it off for its Windows 95 startup sound... and hey! here it is for all of you to download :-)
I just came to realise that this had been the most blissful Microsoft Sound ever!
Cheers, Ron!
15:54 Posted in Technology | Permalink | Comments (0) | Email this | Tags: microsoft, sound, windows, 95, startup, download
Wednesday, December 05, 2007
Extension Methods in C# 3.0
One of the coolest features of C# 3.0 is Extension Methods. It allows you to extend existing types with new methods. Didn't get it? Well, say you got a class called Car. Now you want that a string variable should have a method that returns a Car object. Now for C#2.0, to do such a thing you must have access to source code. However with 3.0, you can write an extension method called string.ToCar() which returns an object of type Car.
Most people would argue that sub-classing (inheritence) would have been a better approach. Not at all. This is not a case of abstraction but rather context senstivity. In context of my project, a string can be directly convertible ToCar().
Also most would argue, why not have a Helper class like CarHelper.ToCar(string param). Now in my case, I am really losing my Desgin Pattern. However, with Extension methods I can get my work done as if I had the source code available.
So let's take a look at how to create one. The rule is, the class containing the extension method must be static. The extension method should be static. The first parameter should be pass along with the this keyword.
static class ExtensionMethods
{
static Car ToCar(this string name)
{
Car car = new Car();
car.name = name;
return car;
}
}
Pretty neat huh? Now whatever namespace contains the ExtensionMethods class will have this extension method available on its string variables.
To check out a much better critical analysis of this feature, visit this article:
http://www.interact-sw.co.uk/iangblog/2005/09/26/extensio...
12:10 Posted in Programming | Permalink | Comments (0) | Email this | Tags: C#, 3.0, Extension, methods, new, feature
Thursday, November 29, 2007
Learn LINQ with Microsoft Press's "Introducing Microsoft LINQ"
This is the most amazing book I could get hold of for learning the far more amazing technology called LINQ (Language Integrated Query) in C# 3.0. For those who don't know what LINQ is, check out the wikipedia article at http://en.wikipedia.org/wiki/LINQ
A quick and dirty intro to the topic is provided by Claudio at his blog Cool LINQ Stuff
So those of you wanting to really dive in deep should read the above mentioned book. Here is a link that I could get hold of.
http://files-upload.com/files/648872/Microsoft.Press.Introducing.Microsoft.LINQ.May.2007.chm
http://www.megaphile.com/file/12514/Microsoft-Press-Introducing-Microsoft-LINQ-May-2007-eBook-BBL-rar.html
18:05 Posted in Books , Programming | Permalink | Comments (1) | Email this | Tags: LINQ, eBook, Introducing
A function to convert Number to Words
I made this function a long time back to test my coding skills. It's written in C#, however the logic could be ported to any other programming language that supports recussion.
The function takes a double as input and returns a string. For example, if the input is 5532, the return would be a string “Five Thousand Five Hundred Thirty Two”. It takes a double as input and returns a string. Numbers up to Zillions are supported! Decimal numbers are also supported. The algorithm being highly scalable, you may add any representation scheme as and when required. As of now it follows American standards. But it can be scaled to the Indian standards of Lacs and Crores very easily. Even the Number system may be changed to any Base (Hexadecimal/Octal etc).
The C# code file has been attached. It won't compile directly. You need to add it to any existing project, and then call the function. Kindly change the extension to ".cs".
17:35 Posted in Programming | Permalink | Comments (0) | Email this | Tags: c#, conversion, number, to, words

