Monday, July 22

Speed of a glacier

I've been rolling up my sleeves and getting my hands dirty doing some PHP plumbing. I'm up to my eyeballs in links, so I'm cobbling together a system to organize and present them in a more useful way. I know there's a zillion libraries out there to do something like this, but none of them have the focus I want. When it's done, I'll be able to clean up these pages a bit, and have something that'll make keeping up with my local blogosphere a bit easier.

I also am keenly aware that the bloglossary links are a total turdfest in the XML feed and the emails. I now realize the way I implemented them was a lazy, stupid hack. I'm looking to clean up the bloglossary, improve the interface, and start giving the thing away. I probably get the most requests for that, and it's only vanity that keeps me from letting it out the door. Besides being some very clunky code, its usability from the blog-author standpoint is bad.

There's always something more to do.



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); ?>