Wednesday, September 20

The setting: last night.
The plan: write code.
The reality: have a major mental malfunction.

My obsessing about tech gear, including the recent purchase of a PC, seem to be a nice safe diversion. Life is so much more approachable if you can convince yourself "how cool it will be when I have a [insert-gadget-here]!"

I'm just running away from the problem, it seems. This is really very hard. I am finding it hard to believe it is going to get better.

I'm just tired of failure.

Oh, and I promise to set this up to archive weekly. Seems posting to my site is another great escape too, and my output is much more prodigious than I thought it would be. Illness loves an outlet.



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