Monday, October 14

Stand and be counted

I'll admit taking pleasure from typing a bunch of nonsense into a computer and watching what it does in response is a bit odd. I really think "programmer" should be listed in the DSM IV. Or at least in my case.

It had been much too long since I've done some creative coding. Spending the weekend learning a new scripting language, Python, and getting it do something useful I find really gratifying. I also had to compile some modules for Python on OS X so it could interface with MySQL, which I also installed.

It was an all-around big-time geek weekend, if you haven't figured that out.

The result is a project of little importance, unless you play Clan LordWhat is Clan Lord? (which I don't even play any more). But being a statistics freak and a database junkie, it is a good toy project with some utility, albeit small.

I plan on using Python as the scripting system of a game I'm working on, in case you're wondering. Experience has shown me the best way to learn something is do something real with it. It doesn't hurt if the project is interesting too.

But if you wondering why someone would find compiling statistics on a game world interesting, remember who you're dealing with. I'm not normal.



Older entries

'; } else { if(stristr($filename,"archive")) { $dir=$_SERVER['DOCUMENT_ROOT']; $template='_01_archive.html'; $tail=strlen($template); $thisArchive=$filename; //$files=scandir($dir); $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); $earlyarch=""; $laterarch=""; $prevarch=""; $next=0; foreach($files as $file) { if (substr($file,-$tail)==$template) { if ($next==1) { $laterarch=$file; $earlyarch=$prevarch; $next=0; } if ($file==$thisArchive) { $next=1; } else { $prevarch=$file; $earlyarch=$prevarch; } } } $link=''; $divider=''; if(file_exists($earlyarch)) { $link='< Earlier Archive'; $divider=" | "; } if(file_exists($laterarch)) { $link=$link.$divider.'Later Archive >'; } $link=$link.'

'; } } echo($link); ?>