Older blog entries for JuxtaPositionYou (starting at number 1)

3 Jun 2003 (updated 12 Jun 2003 at 00:47 UTC) »
what is it?
Implementation of the update TGM Status Script is a success. It queries a Soldier of Fortune 2 (really a Quake 3) server through UDP, then returns and formats server information. Sounds simple, but harder in practice.

Keeping with clean, object oriented style, I'm working on customizable countdown code. The countdown would announce the opening and closing time of the server, since some servers have specfic playing hours.

Here's a snippet:

class timeToPlay {

// takes a schedule object as an arg

var $milenkoTime; var $currentTime; var $secondsToGo; var $ttg; var $serverUp;

function timeToPlay($schedule) {} function getSecondsToGo() {} function getTimeToGo() {} function showSeconds() { echo $this->ttg["seconds"]; }

function showMinutes() { echo $this->ttg["minutes"]; }

function showHours() { echo $this->ttg["hours"]; }

function getIsUp() { return $this->serverUp; } }

Pretty ugly already (not like I recieved formal instruction).

So what exactly do I want to do? Time for an unordered list...

  • Display a "uptime" or "time to go" countdown for any specified date and time
  • Display a "downtime" countdown for any specific date and time
  • Allow a user to specific specific dates and time, schedules, or patterns (i.e. every Saturday and Sunday)
feedback
Suggestions, of course, are welcome. If I would ever get around to it, easiness would be a simple post on the FIN message board. But there's the next best thing (abet slightly more anonymous).

Send a suggestion (with some sort of indicator of the TGM Status Script) to http://benzene.ods.org/index.php?direct=feedback. If you feel more comfortable with your own client, my e-mail address is provided within the same link.

download
If you wish to download the latest version of TGM Status Script, which is easily modifiable for Q3 servers...

No mention of Chi thus far. It is a shame. A collection of stars; a quiet, distant warmth. She is the night sky.

3 Jun 2003 (updated 12 Jun 2003 at 00:46 UTC) »

This is a new experience. I wish to thank Advogato's powerful servers for recognizing my darty mail server, for recognizing the small, yet valid, MX record attached to it. Woo. Text formatting.

The last year of yearbooks. UFT (University of Toronto) Computer Science, or Engineering next year. Why can I not be with Chi? Distant.

Chi; I crave her mouth, her voice, her hair. Silent and starving, I prowl the halls.
No, not quite Pablo Neruda yet. Coding, art, the love of those are askew to the real love.

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!