Klinky's Random Avatar

This forum is for actual topics of discussion that do not fit the above categories.
Locked
User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Wed Oct 30, 2002 11:32 pm

ErMaC wrote:It's a script that's encapsulated in a PNG file which randomly selects images.

Actually it's magic.


Actually I run a server here in my home. I was lazy and setup png files to be executed as scripts :p Then installed a perl script random image generator. The downside is that I can't have any png files on my server without php.exe trying to execute them :\ I don't use pngs or my web server much any more so it's not a problem :p


~klinky

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Wed Oct 30, 2002 11:33 pm

my bad, perl.exe not php.exe >_< vut was I thinkink.


~klinky

User avatar
Garylisk
Joined: Fri Aug 17, 2001 2:03 am
Status: Littlecolt
Location: USA
Contact:
Org Profile

Post by Garylisk » Thu Oct 31, 2002 4:00 am

wow, that kicks ass! I just thought he had too much time on his hands!
Alcohol, Drugs, Overdrive, Noise, Neon Lights, Party People, Revolution

User avatar
jonmartensen
Joined: Sat Aug 31, 2002 11:50 pm
Location: Gimmickville USA
Org Profile

Post by jonmartensen » Thu Oct 31, 2002 10:09 am

even at that, he still has to much time on his hands.
Image

User avatar
fyrtenheimer
Joined: Sun May 05, 2002 11:34 am
Org Profile

Post by fyrtenheimer » Thu Oct 31, 2002 12:05 pm

heh

i never even noticed

User avatar
Rozard
Joined: Wed Oct 31, 2001 10:39 pm
Org Profile

Post by Rozard » Thu Oct 31, 2002 1:33 pm

I still think that "perl.exe" is klinky's code for "1337 team of slave monkeys." :evil:
Image
RichLather: We are guests of this forum, and as such we do not make the rules.
BishounenStalker The freedom to suck is what makes the Internet rock.

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Thu Oct 31, 2002 1:37 pm

I currently have 21 Misato avatars in rotation :p

Image Image Image Image
Image Image Image Image
Image Image Image Image
Image Image Image Image
Image Image Image Image
Image

~klinky

User avatar
stormybaka
Joined: Sun Sep 15, 2002 3:26 am
Location: Eye of the storm...
Org Profile

Post by stormybaka » Thu Oct 31, 2002 2:04 pm

Imagehmm! looks like perl might take a little longer to learn than java and html... Image
Not sure how you did that yet, but I will work it out...If I knew this post was here it might have made things easier...The closest I have done is a random pic with Java script, but I am starting to learn perl now...
You couldn't say explain that better there Klinky...
Image

User avatar
stormybaka
Joined: Sun Sep 15, 2002 3:26 am
Location: Eye of the storm...
Org Profile

Post by stormybaka » Thu Oct 31, 2002 2:33 pm

hmm! *starts pulling out hair*
you know no sleep and trying to do something without the proper skill may not be bright...But here is my random pic attempt with eva pics I scanned.
http://www.stormybaka.net/stuff.html
Image

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Thu Oct 31, 2002 2:43 pm

Ha!

You struggle while klinky secretly holds the key to the fact that he didn't program the script he simply downloaded it. The hard part is getting a server that allows you to executre a script with the extension of png. Actually it would probably be better if I was using linux and could just do a chmod command on that single .png file :\ But alas I can't since I have winders. :p


Here's the script, it's quite simple :

Code: Select all

#!/usr/bin/perl

# Name: Random Image
# Author: ricocheting <ricocheting@hotmail.com>
# http://www.ricocheting.com/perl/
# Date: 02-20-00
#
#  HOW TO USE:
#    this file (randimg.cgi)
#        permission     = 755
#        type of upload = ASCII
#
#    randimg.txt (Create Yourself!)
#        permission     = 766
#        type of upload = ASCII, preferred.
#    To Use:
#	 List each "random" image on a separate line
#
#
# Image List (blah.txt, counter.dat, etc.log)
$image_file = "randimg.txt"; 


# open randimg
open(FILE, "$image_file") || die "error: $!";
@imagename=<FILE>;
close(FILE);

chomp @imagename;

print "Location: $imagename[int(rand($#imagename))]\n\n";

Hey so you're a chick who programs and comes from down unda... GRawwwllll :twisted:

<creepy tone>I need a picture..... What? What for.... it's for the collection......moi hahhhaah</creepy tone>


It's hell-o-ween after all. I haven't slept since 7pm last night and it's now 11:43am.


~klinky

Locked

Return to “General Off Topic”