Posts Photos Archives About

2009 February

  • You may have noticed the new color scheme and new "Theme Switcher" widget in the sidebar. I had done some CSS work during the past month in the office and it made me want to tweak the stylesheets on this site a bit. I figured I might as well make it easy to switch stylesheets, so I wrote a small Theme Switcher django app. (Well, it's more of a stylesheet switcher I guess) The model is simple: class Theme(models.Model): slug = models.SlugField() title = models.CharField(max_length=250) css_path = models.CharField(max_length=500) def __str__(self): return self.title I only needed one view -- to switch

    read more (406 words)

  • Fun little widget from Capcom allows you to put yourself into an SFIV battle video. Here's me as Ryu! Street Fighter IV is out next week, hopefully we'll be slinging fireballs by next weekend!
  • Excellent talk given at the Canadian University Software Engineering Conference (CUSEC) last year (2008). The presenter is Zed Shaw who's a famous Ruby guy or something. The video is around 70 minutes long. The first part of the talk is mostly about a Document Management System he worked on, kinda interesting, but the second part is better where he talks about people who program cool things as a hobby and how to avoid becoming just another corporate code. Oh, and I really just wanted to test my OEmbed implementation on this here Django-powered blog :p Got the video via Leah

    read more (101 words)

  • Amazingly, despite my work schedule I still managed to finish a rather old-school RPG. I finished Star ocean: Second Evolution for the PSP today, clocking in 30 hours of playtime. I have to say I quite enjoy playing RPGs on handhelds. RPGs are usually rather long games so it's nice being able to handle them in bite-sized chunks while commuting, et cetera. Star Ocean: The Second Story was probably one of the best Japanese RPGs to come out of the Playstation era, despite the lackluster translations of that time (hey, it was pre-year 2000, all translations were pretty bad then!)

    read more (337 words)

  • At the Conflux release event, we were given posters of the four planeswalkers fighting againt big, bad Nicol Bolas. It got a friend and I talking: could Nicol Bolas actually win against the four planeswalkers? The situation is: Player A controls Nicol Bolas, Planeswalker, at starting loyalty. Player B controls Ajani Vengeant, Tezzeret the Seeker, Elspeth, Knight-Errant and Sarkhan Vol, all at starting loyalty. Assuming each player has no other permanents and they cannot play any other spells. They can only use the planeswalker abilities. The goal is to destroy all planeswalkers on the opposing side. If player A goes

    read more (113 words)

  • I decided to attend the Conflux release event last Saturday, Feb 7 at Neutral Grounds Galleria. As usual, I still had to go to work first so I didn't make it in time for the first 32-man flight and had to wait for NG to restock on product for the second flight. Unfortunately, they were short on SoA boosters, so we would be playing sealed with 6 boosters of Conflux. Yes, six. Expect domain? I registered a mediocre pool and got passed one of roughly the same quality level. Here's my deck: Lands 5 Plains 1 Swamp 2 Mountain 6

    read more (645 words)

  • I was doing code reviews on an interface file-processing framework to be used in one of our projects. The code was workable and already being used by several programs, and I didn't see any major functional flaws. But design-wise I felt that it could stand for some improvements/refactoring to be "better object-oriented code" or "easier to maintain". The current design required a lot of inheritance -- the usual way of doing things in older Java code at work. I was thinking of a more dynamic, declarative design that would require a config file instead of more subclasses but eventually I

    read more (562 words)

  • It's my first Magic outing after more than a month of hibernation. Hopefully Conflux shakes up standard and makes Magic more fun again. Let's go! Usually I have to register an awesome pool and then get passed a mediocre one. I knew it was different this time around when the guy two seats to my right announced he was able to form a good Naya deck from the Shards of Alara packs alone! As fate would have it, we passed pools two seats to the left and I got that pool, which mostly built itself: Lands 1 Arcane Sanctum 1

    read more (1348 words)