A place for my personal musings, about programming, design or whatever come across my mind

I think it was late 2005, my wife used to work really late during those days, 8, 9 even 10pm at night, I have experienced a few even longer wait until 1 or 2 am, literally the next day. Sometimes I use this spare time to finish up my works, but I was still quite […]

Going through byte of python 3, I tried to make sense of staticmethod in the section talking about class and Object variables. In the Robot class, there is a howMany class method, declared as below def howMany(): print("we have {0:d} robots".format(Robot.population)) howMany = staticmethod(howMany)def howMany(): print("we have {0:d} robots".format(Robot.population)) howMany = staticmethod(howMany) or using decorator, […]

I tried to get Openshot working again. There are suggestion that locking libcairo2 at version 1.8 would fix the problem, but select libcairo and Ctrl + E in Synaptic didn’t give me option to choose and lock it at any particular version. Maybe I miss out some steps. So I figure maybe I should try […]

Due to the really diversified nature of my job, somehow I ended up being assigned to create a video for someone in higher management for a presentation which gonna happen pretty soon, in 2 weeks time to be exact. I do have some very basic experience with video editing stuff before, but nothing too complicated […]

Requested a free copy at about a month ago, finally “Version Control by Example” is here. Thank you so much, Eric. For a while I almost thought that it wouldn’t be coming, or the delivery might be lost somewhere in the process knowing the postal service in my country.

This is really useful, as I keep googling it everytime I wanna do this with the rails console… Part.find(:all).each{|p|p.destroy}Part.find(:all).each{|p|p.destroy} Got it from the comment section from this post A much shorter way of doing so, as comment by skim, Part.destroy_allPart.destroy_all

Here is how to clear screen when you are working in the python interactive shell mode, import os os.system(’cls’)import os os.system(‘cls’) A quick google actually yields a few solutions, I find this work best for me.

It has been a while I didn’t change anything on the site. For the past one month or so, I work on this on and off, locally, and finally now, finding the time to get the theme uploaded to the actual site. You’ll still find plenty of rough edges, in fact rough edges is just […]