The W
June 7, 2009 - birthdaybritney.jpg
Views: 179009830
Main | FAQ | Search: Y! / G | Calendar | Color chart | Log in for more!
28.3.24 0959
The W - the-w.com Site Feedback - Question for CRZ
This thread has 10 referrals leading to it
Register and log in to post!
Pages: 1(1526 newer) Next thread | Previous thread
User
Post (10 total)
James F'n X
Bockwurst








Since: 2.1.02
From: Seattle, WA

Since last post: 6530 days
Last activity: 6496 days
#1 Posted on
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








Since: 9.12.01
From: ミネアポリス

Since last post: 8 days
Last activity: 3 days
ICQ:  
#2 Posted on
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








Since: 2.1.02
From: Seattle, WA

Since last post: 6530 days
Last activity: 6496 days
#3 Posted on
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








Since: 9.12.01
From: ミネアポリス

Since last post: 8 days
Last activity: 3 days
ICQ:  
#4 Posted on
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








Since: 2.1.02
From: Seattle, WA

Since last post: 6530 days
Last activity: 6496 days
#5 Posted on
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








Since: 2.1.02

Since last post: 7925 days
Last activity: 7815 days
#6 Posted on
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








Since: 9.12.01
From: ミネアポリス

Since last post: 8 days
Last activity: 3 days
ICQ:  
#7 Posted on
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








Since: 2.1.02
From: Wilmington, NC

Since last post: 7022 days
Last activity: 6623 days
#8 Posted on
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?



James F'n X
Bockwurst








Since: 2.1.02
From: Seattle, WA

Since last post: 6530 days
Last activity: 6496 days
#9 Posted on
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








Since: 9.12.01
From: ミネアポリス

Since last post: 8 days
Last activity: 3 days
ICQ:  
#10 Posted on
JFX, just send the pix. The script won't change as I've written it.

Fazzle, email me.



CRZ
Visit [slash] wrestling
Pages: 1Thread ahead: BUG!!
Next thread: JACKED IN?
Previous thread: Question For A Zim
(1526 newer) Next thread | Previous thread
The Yahoo! Slurp crawler picked up 53M. Closest user was djp. Recent millions (and how long it took to get there): 53M 23 Apr 2009 07:58:29 (50:09:45:32) 52M 03 Mar 2009 21:12:57 (51:08:25:58) 51M 11 Jan 2009 12:46:59 (61:20:17:01) 50M 10 Nov 2008 16:
The W - the-w.com Site Feedback - Question for CRZRegister and log in to post!

The W™ message board

ZimBoard
©2001-2024 Brothers Zim

This old hunk of junk rendered your page in 0.167 seconds.