Skip to content

confusion on road

2009-07-02 12:48:39

Got a babe in an auto on the left. And a Jaguar on the right. Now, where do I turn.

Firefox 3.5 is out

2009-07-02 12:24:56

Shock me, baby! Firefox 3.5 is out

OMFG, spammers sure are creative

2009-06-30 23:07:53

Just noticed a whole lot of ‘nancy’s and ‘chloe’s on the list of followers on twitter. Spam bots which behave like humans. Sending in arbid tweets every now and then, and pushing in links on the sly. Check this out..
Twitter spam

National ID Cards, Ye :)

2009-06-30 08:09:06

India to launch ‘ID card’ scheme

The Indian government has begun moves to provide a Unique Identification (UID) number to its citizens, the central government has announced.

Cards?? What the fuck. Why cant they just put an RFID chip into everyone’s head? What a total lack of creativity. Shyte.

Hopefully, in another five (or fifty) years I would not have to carry a dozen documents to prove who I am. And, please please dont fck it up like that (joke of a) voter’s id-card.

2009-06-12 00:41:49

And then I totally surprise myself with a full 11.2km in 61min 31secs. The walk back home was the weirdest feeling. Legs were worked out beyond pain, and felt like i was floating :P

workoholism

2009-06-08 06:14:40

You dont call it ‘workoholism’ when you dont have a choice do you?

I saw the dusk last evening from my desk. I ran a 8k in the middle of the night just to make sure my limbs havent ceased to function because of lack of movement. More than three liters of coffee has gone down. And, I am still at the desk looking at dawn break wide open, reminding me that time is running out. Every crossed out task opens up two more new ones. At the exponential rate its growing, seems like there is no end. Maybe I should just stop being a perfectionist. Maybe I need someone to tell me that I am at the raw end of the deal, and perfectionism is just not what is required at the moment. But that glitch is such a sore to the eye. And, if my brain simply wont move coz of it, am I to blame. OCD?

Havent cleaned my room in weeks. Have been missing phone calls, weddings of friends. Havent replied to emails.

Shyte.

Code reuse == Orgasmic

2009-05-10 19:23:20

By ‘orgasmic’, I mean ‘literally orgasmic’. No joke. Check the following python method:

    def _readData(self,data,pos,maxLen=0):
        """I read bytes from the given 'data' stream from position=pos
        bytes until I get a byte stream of length maxLen. If the given
        data-stream was not enough, I return a tuple saying so. I
        should be called with more chunks of data till get the
        required stream length.

        When the given data-stream did not have enough bytes, I return
        a (False, new-position, None).

        Once I get all the required bytes, I return a (True,
        new-position, byte-stream)

        @param data: data stream to read data from

        @param pos: position from which data should be read

        @param maxLen: The maximum length of the bytestream that I
        should gather

        @return tuple (bool, int, str): I return a tuple containing
        the following: (1) boolean saying whether I have collected the
        byte-stream completely or whether I would need more data. (2)
        int saying the new-position from where the next read should be
        done. (3) byte-stream containing the requested bytestream
        collection after I have finished reading the entire length."""

        left = len(data) - pos
        assert left > 0

        if self._Buffer is None:
            self._Buffer = []
            assert maxLen != 0
            self._bufferRequiredLen = maxLen

        if self._bufferRequiredLen > left:
            npos = pos + left
            self._Buffer.append(data[pos:npos])
            self._bufferRequiredLen -= left
            return (False, npos, None)
        else:
            npos = pos + self._bufferRequiredLen
            self._Buffer.append(data[pos:npos])
            b = ''.join(self._Buffer)
            self._Buffer = None
            self._bufferRequiredLen = 0
            return (True, npos, b)

Its a fairly trivial piece of code. Does no jing-bang stuff. It just accumulates buffers in pieces till it gets a defined total-length, and returns the whole thing as one single buffer.

I wrote the above method for a project back in Oct. 2007. Since then, I have copied this method ‘as is’ umpteen number of times for every protocol implementation (be it on twisted, or plain python sockets) thereafter. And, every time I slurp-plonk it into a new project, I feel this happiness deep within. I cannot explain exactly why/what. It definitely is not rocket science. Its just something about the relief that I dont have to do that ‘collect the buffers’ thingy again. Maybe I am lazy to the extent that I am orgasmic, for not having to do something _yet_ again. :P

15 days, 11 runs and finally a full 5k

2009-05-06 00:48:01

The title explained it all :) The stitch comes around every run. Guess I have to fix my breathing pattern.

2009-04-14 09:51:59

Cut myself open wide
Reach inside
Help yourself
To all I have to give
And then you help yourself again
And then complain that
You didn’t like the way
I put the knife in wrong
You didn’t like the way
My blood spilled on your brand new floor

work, compromises, etc.

2009-04-09 05:32:17

Another twelve hours to pack my bags to Ooty for the hash. A well deserved break after some mad working frenzy over the past couple of weeks. But, with the deadline still looming around the corner, I am quite unsure what to do.

I dont want to miss the break. I dont want to miss the deadline. Does it justify to flex the deadline a bit if it got so stressed up for no fault of mine? Can I even shrug it off when it is me who is responsible for it? Should I compromise the break to keep the deadline which I doubt will still be met. :-S I dont want to keep compromising every single thing. But, this is my one last opportunity. And, I do not want to regret later.

Shyte. What do I do now :-S

Three pots of coffee have gone since 2:00, and a tangible result still seems far away.