The W
Views: 101472469
Main | FAQ | Search: Y! / G | Color chart | Log in for more!
20.12.07 0955
The 7 - the-w.com Site Feedback - Question for CRZ Register and log in to post!
(968 newer) Next thread | Previous thread
User
Post (10 total)
James F'n X
Bockwurst
Level: 52

Posts: 35/603
EXP: 1018893
For next: 64955

Since: 2.1.02
From: Seattle, WA

Since last post: 3144 days
Last activity: 3110 days
AIM:  
#1 Posted on 3.1.02 2023.24
Reposted on: 3.1.09 2026.19
Hey, CRZ, how do you do the random avatar thingamabobski there? That'd be really cool if it wasn't Pokemon.



"You won't cry, I won't SCREAM...."
Promote this thread!
CRZ
Big Brother
Administrator
Level: 214

Posts: 54/16400
EXP: 144880298
For next: 845122

Since: 9.12.01
From: ミネアポリス

Since last post: 19 hours
Last activity: 9 hours
AIM:  
ICQ:  
Y!:
#2 Posted on 4.1.02 0011.52
Reposted on: 4.1.09 0017.07
I wrote a little cgi script to return a random number, then I renamed all my Pokmon icons "001" to "251".

The link is http://imagen.slashwrestling.com/pokemon/new/random.cgi but if you click on it, you end up with a replacement of /026.gif or some other random number.

Basically, you need to be running your own server but if you have the ability to store cgi scripts from your provider, I could share my script with you - it's really simple and easily modified if you don't feel like renaming your pool of graphics files.



CRZ™
Visit [slash] wrestling
James F'n X
Bockwurst
Level: 52

Posts: 44/603
EXP: 1018893
For next: 64955

Since: 2.1.02
From: Seattle, WA

Since last post: 3144 days
Last activity: 3110 days
AIM:  
#3 Posted on 4.1.02 0019.58
Reposted on: 4.1.09 0020.15
Or I could just store the icons with you in another subdirectory, and you could drop the random script in that directory...correct?



"You won't cry, I won't SCREAM...."
CRZ
Big Brother
Administrator
Level: 214

Posts: 57/16400
EXP: 144880298
For next: 845122

Since: 9.12.01
From: ミネアポリス

Since last post: 19 hours
Last activity: 9 hours
AIM:  
ICQ:  
Y!:
#4 Posted on 4.1.02 0038.46
Reposted on: 4.1.09 0038.55
Well......for a long time close personal friend like you, MAYBE.

How much disk space would you need?

On second thought, just send me an email. ;-)



CRZ™
Visit [slash] wrestling
James F'n X
Bockwurst
Level: 52

Posts: 52/603
EXP: 1018893
For next: 64955

Since: 2.1.02
From: Seattle, WA

Since last post: 3144 days
Last activity: 3110 days
AIM:  
#5 Posted on 4.1.02 0049.33
Reposted on: 4.1.09 0049.37
I probably wouldn't need more than a meg, i don't have 251 interlaced GIF files like you.



"You won't cry, I won't SCREAM...."
A. H. Cretin
Chaurice
Level: 6

Posts: 4/5
EXP: 769
For next: 138

Since: 2.1.02

Since last post: 4539 days
Last activity: 4429 days
#6 Posted on 4.1.02 0407.46
Reposted on: 4.1.09 0438.43
Originally posted by CRZ
Basically, you need to be running your own server but if you have the ability to store cgi scripts from your provider, I could share my script with you - it's really simple and easily modified if you don't feel like renaming your pool of graphics files.



CRZ
Visit [slash] wrestling



Any chance we poor non-FoZ (Friend of Zim) types could get our grubby little hands on this? Sounds like a nice "intro to CGI" program as well as a good trick for the boards. (Yes, got my own CGI-capable space.) In any case, thanks; at worst I have an idea to play with.



-A Humorless Cretin
CRZ
Big Brother
Administrator
Level: 214

Posts: 59/16400
EXP: 144880298
For next: 845122

Since: 9.12.01
From: ミネアポリス

Since last post: 19 hours
Last activity: 9 hours
AIM:  
ICQ:  
Y!:
#7 Posted on 4.1.02 0414.17
Reposted on: 4.1.09 0438.46
It's just a simple (UNIX) shell script:
#!/bin/sh
echo Location: http://imagen.CRZ.net/pokemon/`echo . | /usr/local/bin/gawk 'sran
d ( ) {print 1 + int(rand() * 150)}' | awk '{printf ("%03d",$1)}'`.gif
echo
echo
You could also use an `ls *.gif *.jpg | head -rand | tail -1` to get a random filename if you weren't into using file numbers, or something clever like that.



CRZ
Visit [slash] wrestling
Fazzle
Kishke
Level: 43

Posts: 65/401
EXP: 552538
For next: 12513

Since: 2.1.02
From: Wilmington, NC

Since last post: 3636 days
Last activity: 3237 days
#8 Posted on 5.1.02 1252.26
Reposted on: 5.1.09 1254.29
Just in case CRZ doesn't check the football forums that often, I'll post it in the originating thread.

So, uh...I guess this is the point where I beg for the Z-Man to make a cgi for my pics.

So uh... *puppy dog eyes* pweeeease?



(image removed)
James F'n X
Bockwurst
Level: 52

Posts: 70/603
EXP: 1018893
For next: 64955

Since: 2.1.02
From: Seattle, WA

Since last post: 3144 days
Last activity: 3110 days
AIM:  
#9 Posted on 5.1.02 1514.52
Reposted on: 5.1.09 1516.11
Hey, CRZ, how theortically feasible would it be for me to, say, every few weeks or so, as I steal...*cough*...gather more bitchin avatars (Gotta plagarize them all!), that I send you an edited cgi script and the new pics? of coure, you'd have to let me in in the secrets of scripting. (You stomp with the punch, Al, and...)



"In our short film, we've come long ways..."
CRZ
Big Brother
Administrator
Level: 214

Posts: 79/16400
EXP: 144880298
For next: 845122

Since: 9.12.01
From: ミネアポリス

Since last post: 19 hours
Last activity: 9 hours
AIM:  
ICQ:  
Y!:
#10 Posted on 5.1.02 1800.54
Reposted on: 5.1.09 1909.54
JFX, just send the pix. The script won't change as I've written it.

Fazzle, email me.



CRZ
Visit [slash] wrestling
ALL ORIGINAL POSTS IN THIS THREAD ARE NOW AVAILABLE
Thread ahead: BUG!!
Next thread: JACKED IN?
Previous thread: Question For A Zim
(968 newer) Next thread | Previous thread
The 7 - the-w.com Site Feedback - Question for CRZRegister and log in to post!

The W™ message board - 7 year recycle

ZimBoard
©2001-2014 Brothers Zim
This old hunk of junk rendered your page in 0.391 seconds.