random page perl script

code :: CGI randomization

place this code in a file called index.cgi, chmod it to 775, and place it in a directory of html files. this script will pick one of the files in the specified directory at random, and print it to the screen. refresh the page for a new random one.

#!/usr/bin/perl
print "Content-type: text/html\n\n";
 
#print "<pre>";
$basep = "/wwwroot/path2/randomdir";
 
srand(time ^ $$);
#print "got random time...\n";
 
@files = `ls $basep/*.html`;
#print "got file list...\n";
#foreach (@files) { print "-----$_\n";}
 
$file = rand(@files);
#print "got random file...$phrase\n";
 
$nupath = "$files[$file]";
#print "got new path...$nupath\n";
 
open(LOG, $nupath) or die "$!\n"; 
while () 
{
  print $_;
}
close (LOG);
#print "</pre>";

exit;

happy halloweeeeeen!

random :: party at zac's house

monster xero

a few years ago, after almost getting arrested for trick-or-treating at age 19, our group of friends decided that we were going to start having a halloween soirees at peoples houses. this year the party was at the knight residence. all kinds of crazyness (like zac changing costumes 5 times) view the entire gallery here. (more photos in full post)

naughty nurse nina

Read: happy halloweeeeeen! »

molotov cocktail tattoo

random :: revolution

molotov cocktail tattoo

i finally got a decent picture of the molotov cocktail tattoo on the back of my right calf. it's totally finished now. it wraps around a little too much fer it to fit into one picture so i combined them. click the photo above for a larger view.

nu.tat2

random :: 4u.2c

new tattoo

so i got myself a new tattoo this weekend. it's a nu-skool skull and
cross bones, just below my black flag bars. it's sweet!
susane did it at new world tattoo in follensbee wv.

random quotes

random :: utter madness

well let's just say iv had a very strange week.
i'v been writing down quotes from our very, very, very stupid conversations.
here ya go:

i love you baby, every day my light is being swayed by your darkness...

nina

blaster baiter

xero

he's a clever hobbit

willy

Mike's a thick lipped bastard

nina

hell yeah! bring on the elvis bitchs!

will

so anywaze...

random :: kids these days

so the funniest thing ever happened last night, pete, nina, and myself were board last night and decided to see what was going down at k-mart. we were in the car talking when out of nowhere we heard insane screaming. we really thought that someone was being raped. but then we saw this little kid with his mom screaming! then out of nowhere he stopped, looked at his mom and said: "what are you doing mom? but... i wanted that game that i wanted!" then continued screaming... i guess you just had to be there.