The W
Views: 100902880
Main | FAQ | Search: Y! / G | Calendar | Color chart | Log in for more!
27.11.14 0731
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(1288 newer) Next thread | Previous thread
User
Post (10 total)
James F'n X
Bockwurst








Since: 2.1.02
From: Seattle, WA

Since last post: 3121 days
Last activity: 3087 days
AIM:  
#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: 15 hours
Last activity: 4 hours
AIM:  
ICQ:  
Y!:
#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: 3121 days
Last activity: 3087 days
AIM:  
#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: 15 hours
Last activity: 4 hours
AIM:  
ICQ:  
Y!:
#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: 3121 days
Last activity: 3087 days
AIM:  
#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: 4516 days
Last activity: 4406 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: 15 hours
Last activity: 4 hours
AIM:  
ICQ:  
Y!:
#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: 3613 days
Last activity: 3214 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: 3121 days
Last activity: 3087 days
AIM:  
#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: 15 hours
Last activity: 4 hours
AIM:  
ICQ:  
Y!:
#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
(1288 newer) Next thread | Previous thread
And from one step further down on the food chain, the non-Zim mods are most definitely accountable to the Brothers Zim for their actions. If one of us gets out of line, the cattle prod comes out, so I wouldn't worry too much on that front.
- vsp, Fear of a black hat (2005)
The W - the-w.com Site Feedback - Question for CRZRegister and log in to post!

The W™ message board

ZimBoard
©2001-2014 Brothers Zim

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