Sunday, November 30, 2008

UTP's new course registration system not cross browsers compatible

Sometimes I wonder why I'm such a freetard.

Sunday, November 16, 2008

Hacks: Replace yum's downloader with Axel

/!\ This is an ugly hack, use it at your own risk, 
I am not responsible for any breakage

P/S, your sysadmin might not gonna like this

Disclaimer aside, I really love Python.

So, I'm behind such a bad network which keep timing out, and downloading stuff using yum in this network is a real PITA. And so, I had enough of it and decided to hack around.

Axel is a CLI download accelerator thats lightweight and pretty fast. I've been using it quite frequently to get a bit more speed for my downloads. I think, why not just replace this urllib2 grabber with axel, so, I did. (I am such an evil guy)

After a few hours looking through yum code to find what to modify, I ended up with this

# file: /usr/lib/python2.5/site-packages/urlgrabber/

import grabber
import os

class AxelGrabber(grabber.URLGrabber):
def urlgrab(self, url, filename=None, **kwargs):
"""grab the file at and make a local copy at
If filename is none, the basename of the url is used.
urlgrab returns the filename of the local file, which may be
different from the passed-in filename if copy_local == 0.

opts = self.opts.derive(**kwargs)
(url,parts) = opts.urlparser.parse(url, opts)
(scheme, host, path, parm, query, frag) = parts

def retryfunc(opts, url, filename):
if os.environ.has_key('http_proxy'):
os.environ['HTTP_PROXY'] = os.environ['http_proxy']
os.system('/usr/bin/axel -a -o %s %s' % (filename,url))
return filename

return self._retry(opts, retryfunc, url, filename)

Make sure you put the file above at its path unless you are sure what you are doing. To make it usable with yum, some modification is needed in one of yum's source file.


from urlgrabber.grabber import URLGrabber

from urlgrabber.customgrabber import AxelGrabber as URLGrabber

and you are good to go. Do it at YOUR own risk remember.

Sunday, November 09, 2008 2008 Ended!

Everything has its end :). and 2008, ended a great SUCCESS!!.

It's been a fun roller coaster ride being a 2008 crew. All the rushing, stress, tears and blood to get things prepared before the event, and all the running all over APIIT during the event to keep everything ok, the lack of sleep and rest, losing the chance to hear most of the talks, etc, paid off when seeing everything went smoothly without any major noticable problems.

To be frank, I was quite scared during preparation day (Friday) considering soo many things not yet done such as tags, posters, signages, failure handling plans, etc. But all well ends well, we somehow managed to get most of them done in 24hours and prepared for the big day.

Can you believe that this came out of nowhere in 1 hour??!!.

I think I've been wearing quite a number of hats throughout the whole From being the publication guy for the posters and tags, to being a bit of tech support for some machines, to getting the slides to the TV system, and finally settling down to helping the lunch and tea break flow running smoothly, and also accompanying Pia Waugh to the cinema to watch James Bond latest movie after the speaker dinner, it was a really crazy 3 days, but fun nonetheless.

I only managed to hear the day1 closing keynote by Pia Waugh and part of the memcached talk by Toru Maesaka. Hoped to be able to hear more, but I guess I need to wait for the video recording (hopefully the recordings went well).

Sadly, I had to leave early today on 1pm before FOSS.my2008 totally ended, mainly because I will be having an exam tomorrow morning on 9am, and I need to travel back to my university, which is around 5 hours travel by bus. After quickly saying goodbye to a number of crew, and briefing yondie and the awesome food and beverages volunteers about what to do for lunch and tea break, I left APIIT to the bus station.

A bit of a regret, we the Fedora Malaysia ambassadors ended up abandoning our Fedora side session mainly due to all of us are busy as crew of But being a Fedoran, I believe it still doesn't end up in vain, as it syncs Fedora's spirit of prioritizing upstream. The organization behind is FOSS-SM afterall, of which we Fedora-My regards as our "upstream" organization. LiveCDs? .. only managed to burn 2 of them, and I wonder where they went, but James Morris from RH Australia took a pic of them (but I never had the chance to meet him):

Looking through pics tagged with on flicker, I also noticed that I also missed the crew lineup after the final closing keynote. T_T. I want to be there T_T.

I posted this on on my way back to my university, but I think I should post it again here:

i believe ended now. wish can still be there. lot of problems at prep day n 1st day but very happy that ended a success.

aizatto, angch, colin, ditesh, firdaus, yk, wariola, yondie, saleh and all #myoss guys. wouldnt have even started without y'all.

gurdip n APIIT staff, y'all rox!!. wouldnt have survived day 1 without all of your hard work the day before and during it speakers, thanks a lot for coming to help make a success. i hoped to be at the auditorium, but guess I was busy with lots of stuff volunteers, especially those who helped in food and beverages. y'all rox!. though i hoped that y'all were here to help during preparation. still, y'all rox!!

not to be forgotten attendees. without all of you wouldn't have be as awesome!!! : the world is just AWESOME!! 2008 was AWESOME!! .. Looking forward for 2009!!. Hope to see y'all again next year!!.

Great pics from attendees!!!
Locations of visitors to this page