klinky wrote:Actually i wasn't that bad a "necropost" if even that. Only a week or so. Not like... 6months, like a few have been.
gotta love em when threads from like a year ago are drug up. GRR.. almost as bad as derailing threads.. not that we would do that..
Rotating avatar >_> <_<. I became quite famous for my random misato avatar.

I should set that back up. I just used a random perl script

renamed as a .png file. Only problem is I can't serve up PNG files on my home webserver w/o perl trying to execute it.

. But oh well. It's worth it ;p
yea, its really fun when you get like 5 people who have their avatars linked to the same pool. completely screws with your head.
im sure i could get it working here if i REALLY wanted to, but requires more then 30 seconds of effort ^^; (alias, mod_rewrite an internal redirect, loadable apache module, etc etc etc) wish mod_python was more like mod_perl in its regard of ability to handle standalone py files.
BTW using Win2k w/ OmniHTTPd.
~Klinky
linux with apache2.
current perl code in index.cgi :
Code: Select all
opendir DIR, ".";
@files = grep { /\.(jpg|jpeg|gif|png)/i } readdir(DIR);
closedir DIR;
if(scalar @files == 0){
print "Content-type: text/plain\n\r\n\r";
print "need files k thx bai";
} else {
print "Location: " . $files[int(rand(scalar @files))] . "\n\r\n\r";
}