Friday, November 21, 2014

Enable/Disable Synaptics Touchpad on Ubuntu

A day working from home brought out another problem the new Thinkpad. I did not have a spare mouse lying around and had to fall back to the flawed Touchpad/Trackpoint mechanism on the new T440. My original idea was to disable Touchpad completely through the conf files and rely on the Trackpoint. But it turns out that while Trackpoint navigation works fine, clicking only works for the left-click. For some strange reason I couldn't get right-click to work on the Touchpad upper button area.

Wednesday, November 19, 2014

Ubuntu 12.04 on Thinkpad T440

Being a slightly dated OS release, mating Ubuntu 12.04 to Thinkpad T440 hardware throws up a few challenges. This post lists these and how those can be worked around.

Thursday, June 26, 2014

Adding timedelta to a datetime.time

One of Python's strengths is its exhaustive library. And date and time management is an integral part of this, provided by the datetime module. datetime provides the classes datetime, date, time, timedelta and tzoffset.

Monday, June 23, 2014

Convert time string to datetime.time object

I'm still finding my way around the rather vast Python standard library. And today, I discovered a quick way to convert a pure time string (of format HH:MM[:SS]) into a standard datetime.time object.

Sunday, May 4, 2014

Why we choose to

Well, the context might look very obvious. But if you think a little deeper, you'll realize that there are many themes in life where this can be applied.

Making is fun
At least for most
Rearing is less fun
Except for most
Yet we want to
Yet we dare to
Out of need
Or wanton greed
Out of fear
Or is end near
For we have little to leave
When called to leave
So we choose to
So we don't have to not to.

Friday, May 2, 2014


Was out on labor day for a medical appointment and had a chance to wander around an underground mall by myself, for couple of hours. The key thing here is 'by myself' -- I haven't managed to do this for quite a while. At least not since the arrival of our daughter, which was 2 years ago!

Anyway having lunch at the mall, relishing the what was to be a short-lived experience of my single days, I was inspired to write a small poem, based on my observations around the mall during that hour. I call it as a poem, not knowing what qualifies as one. You be the judge.

It started with the first four lines, but slowly took the following form on the ride back home. Context is my decision to go for a KFC burger as lunch, giving in to the momentary temptation, that could be safely pursued in the absence of my better half.

A fleeting bliss
Derived from junk
Makes me wanna hiss
For what's inside is gunk.

Lovers locked in kiss
Hues of purple and pink
Intent is not to diss
But can't stomach the kink

At least they found their bliss
Seemed to last longer than my junk.

Stranger across is Cantonese
Heaving his chest, looks like a trunk
With wife and kids
In Taiwan for funk

Hope he finds his bliss
Would have to search through junk.

Thanks to Jobs and his trends
A train full of my ilk
With phones pasted to their eyes
Deep in their world sunk

Did they miss their bliss?
Having failed to notice THIS hunk.

Short lived was my bliss
Confined to the junk
At least I had my bliss
Though only for a blink.