The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Wednesday, December 26, 2007
Wednesday, December 12, 2007
Lovely December
I miss my dog. I don't know what state he is in now. Hope he is well. I loved him. When i used to hug him he used to make affectionate noises. The first time when he was brought to me in a bag, i marvelled at his existence. There was a creature which can think. He stared at me straight in my eye for minutes. He was shivering, more from fright than cold, even though it was a cold December. It was exactly two years before. There is something magical about Decembers for me. It was fun always. This year i am forgetting and and forgiving myself and just enjoying my existence.
Saturday, November 24, 2007
Nelson on facebook
An interesting bit from Nelson Minar on facebook. The day i signed on facebook, i knew that i will delete it very soon. So far i have only invited only two friends to join on facebook because i thought the feed feature coupled with the movie i watched would be interesting to them. I am sorry for my adrenaline.
Wednesday, November 07, 2007
Facebook Ads
So now Facebook is directly competing with Google with its new Social Ads. I like this concept and i wonder what Google will do now.
An interesting quote from Dave Winer
An interesting quote from Dave Winer
Long-term, however they both have problems because advertising is on its way to being obsolete. Facebook is just another step along the path. Advertising will get more and more targeted until it disappears, because perfectly targeted advertising is just information. And that's good!
Monday, November 05, 2007
Gym
Finally after one year I'm back to gym again. I ran for 1.5kms on the treadmill and was pretty happy about it. Then the instructor took some 7-8 of us and started doing some ground exercises. The guy almost killed everyone. All i could hear was groans and moans :). It was fun. With the help of this instructor and a paintbrush, i intend to become like SRK.

BTW, if you want real inspiration keep Daniel Craig in your mind while doing exercises (suggested by my ex roommate cum drinking partner)
Programming fonts
I use windows at work and use Courier New as the font for programming purpose. (It's the default in eclipse, visual studio 2005, idle etc). Now Microsoft has come up with Consolas, a monospace font for programming purpose. A monospace or a fixed width font is one whose characters have same width. Courier New is one such. A monospace font would look ordered and you can draw tables etc easily because all characters are of same size. Try setting your ide's font to Ariel or Verdana (which are not monospace) and see the difference. You won't be able to code in those fonts. One of the fonts which i loved coding was a monospaced font in Gnome Redhat 7.0. I believe the font was BitStream Vera. Anyway Consolas is the new font which i like in windows and it simply is the best. Try it out. Make sure that you have ClearType switched on. Below are some code in 3 different monospace fonts from my system. (blogger screwed the images totally, so better try it out in your system and see the difference).
Courier New

Consolas

BitStream Vera
Saturday, November 03, 2007
OpenSocial
So Google today released the OpenSocial apis. Funny that the google pages look very similar to facebook developer pages. Google is using the atom format for data exchange. It's time to look inside atom.
Friday, November 02, 2007
past
i ran
i ran with the memories of the past
for the past holds the heaven
and everything else is just nothing
-dog
i ran with the memories of the past
for the past holds the heaven
and everything else is just nothing
-dog
Battle without honor or humanity
From XKCD

That track ('Battle Without Honor or Humanity') -- like 'Ride of the Valkyries' -- improves *any* activity.
Wednesday, October 31, 2007
Within Temptation
I've been listening to Within Temptation's songs for last two days. Sharon Den Adel's voice feels like Evanescence's and to some extend Dolores O'Riordan's voice.
Here are some of their songs
Angel
Memories
And this is the song that got me introduced to them
somebody point me to more songs like these please :)
Here are some of their songs
Angel
Memories
And this is the song that got me introduced to them
somebody point me to more songs like these please :)
Monday, October 15, 2007
Thursday, September 27, 2007
Wednesday, September 26, 2007
Monday, September 24, 2007
substring bites
Last week i copied some string splitting logic from C# to Java and didn't bother to test much. Today i fired up one of the Duet appointments and typed max value in the location field (256) and it bombed! .. after debugging i found
C# substring is - substring(startIndex, length)
Java substring is - substring(startIndex, endIndex)
crap.. Java's is more like Python's where it's called slice syntax - str[startIndex:endIndex]
but we don't have slice syntax in Java or C# .. and i like C#'s better
C# substring is - substring(startIndex, length)
Java substring is - substring(startIndex, endIndex)
crap.. Java's is more like Python's where it's called slice syntax - str[startIndex:endIndex]
but we don't have slice syntax in Java or C# .. and i like C#'s better
Friday, September 07, 2007
random
Martin Fowler never ceases to amaze me. I was banging my head over timezone issues yesterday and today morning i see this. He gave Microsoft Office the worst timezone experience award. Interestingly i'm working on the exact same thing for one of the scenarios. I do think trying to be clever might ruin user experience. We have 3 major layers (outlook, java server, SAP backend) with each running in 3 different technologies (.Net, Java, ABAP) glued together using XML and proprietary protocols. The nuances of each of these technologies bundled with the bugs in them makes life a living hell.
I saw The number 23 yesterday. Neo ruined the movie unknowingly :) few years back. I'm also finding number 23 at many places. I look at my phone and its extension is 4739. Add it, you will get 23. Phone displays today is 07.09.07 again 23. My birth date is August 15 (15-08) again 23. My cubicle no is 23! Not so creepy anyway :)
I saw The number 23 yesterday. Neo ruined the movie unknowingly :) few years back. I'm also finding number 23 at many places. I look at my phone and its extension is 4739. Add it, you will get 23. Phone displays today is 07.09.07 again 23. My birth date is August 15 (15-08) again 23. My cubicle no is 23! Not so creepy anyway :)
Monday, August 13, 2007
QuakeCon 2007
QuakeCon went by and i didn't even know sigh :(
Id announced their new game Rage. It runs on Mac, PC, XBox 360 and PS3 from the same source base. The major technical feature is MegaTexture where artists now don't need to worry about the texture size and they can make surface as detailed as they want without performance hit.
The major announcement for me was that Quake 3 is going to be made a web game. It's called Quake Zero. Anyone will be able to connect to internet, download Quake Zero client(?) and start playing online for free. They will use advertisement business model. Id is now split into two teams and one team is doing this work. The other team is working on Rage.
You can download the keynote from here.
Id announced their new game Rage. It runs on Mac, PC, XBox 360 and PS3 from the same source base. The major technical feature is MegaTexture where artists now don't need to worry about the texture size and they can make surface as detailed as they want without performance hit.
The major announcement for me was that Quake 3 is going to be made a web game. It's called Quake Zero. Anyone will be able to connect to internet, download Quake Zero client(?) and start playing online for free. They will use advertisement business model. Id is now split into two teams and one team is doing this work. The other team is working on Rage.
You can download the keynote from here.
Thursday, July 19, 2007
Friday, July 13, 2007
Thursday, June 28, 2007
Hans Reiser
I try to avoid judging people. I do it anyway sometimes, but when i think it in larger context it makes no sense.
Hans Reiser: Once a Linux Visionary, Now Accused of Murder
Hans Reiser: Once a Linux Visionary, Now Accused of Murder
Sunday, June 24, 2007
Subscribe to:
Posts (Atom)