Skip over main section of the page and go to navigation links.

David Mandelberg — Blog — 2009 Archives

Polyball Bounce 0.2.1 Released, Goals for Future Release

Posted on October 4, 2009. Tags: technology. No comments.

I just released an update to Polyball Bounce. This release only makes minor changes, including making the paddles curved for better control.

For the next release, I plan to work on separating the game into a client and server, allowing multiplayer games over the network. I'm also considering switching from pygtk to OcempGUI for the configuration window.

Polyball Bounce 0.2.0 Released

Posted on September 29, 2009. Tags: technology. No comments.

I just released the second version of Polyball Bounce. This version is actually playable, but still rough around the edges. A screencast is available.

Polyball Bounce 0.2.0

Polyball Bounce 0.2.0: Configure

Polyball Bounce 0.1.0 Released

Posted on September 23, 2009. Tags: technology. No comments.

I just released version 0.1.0 alpha of a new game I'm working on, Polyball Bounce. To see what it looks like, check out the screencast.

It's currently in pretty early stages, but I plan to keep working on it till it's at least playable.

Student Union Elections (Server Side)

Posted on September 16, 2009. Tags: technology. No comments.

First, a bit of background info: I'm currently the primary administrator for xenon, an old server that I inherited from former members of COG. Xenon used to run a bunch of important things, but it currently only runs the Student Union website and some very low profile and unused personal and club sites. I've been pushing for the Union to move to something more manageable on a newer and better maintained server, and Yale Spector has been doing a lot of work to that effect. The new site is Almost There™, but we had to run another round of elections on xenon. Unfortunately, everybody who knew how to set up elections on the old site has left Brandeis.

After some effort, mostly on Yale's part, to figure out the election system, everything seemed to be working. If there were any random crashes, they were fixed automatically by a script I wrote after problems with last year's elections going down.

Towards the end of the election's time window, the list of candidates disappeared from the website and admins couldn't stay logged in. Fun times. Nobody could figure it out and I was unreachable, swing dancing and then hanging out with a friend in the gym, which has bad cell reception. I got back to my dorm to see some interesting messages.

After some digging around, I found that the relevant code for listing candidates does something like SELECT * FROM candidates WHERE election=12345 ORDER BY RAND(), which gave ERROR 1030: Got error 28 from table handler. When I removed the ORDER BY clause it worked fine, so I was about to accept non-random ordering of candidates until I could find out what's wrong or randomize the order in PHP instead.

Since I'm not familiar with the code, I decided to make an in-place backup copy before changing the relevant file. When I tried that, I got the dreaded no space left on device. Duh. MySQL must have been trying to use disk space to "sort" the table. The admin interface must have been trying to insert rows into MySQL or otherwise write session information to disk.

After a minute or two with du and sort, I found what looked like a safe file to delete. Magic, people can view candidates and make an informed decision before voting.

Hello World!

Posted on June 16, 2009. Tags: meta. 2 comments.

This is a blog post. I've read that the majority of blogs have no more posts after the first. We shall see if this is also the last post on this blog.