Quote
Ruby how do you make your avatar change like that it is pretty neat


Oh, finally, somebody notices. <img src="/forums/images/graemlins/lol.gif" alt="" /> On my webserver, I have several avatar sized images. I just have a perl program running in the background that pseudo-randomly swaps one of these images for my current avatar every 5 seconds. <img src="/forums/images/graemlins/kewl.gif" alt="" />


Quote
#!/usr/bin/perl

use strict;
use File::Copy "cp";

my @images = <Img*.jpg>;

while (1) {
cp ("$images[rand scalar(@images)]", "/home/http/4x4wire/image/avatar.jpg");
@images = <Img*.jpg>;
sleep 5;
}


Jim


Isuzu Trooper, '91, 2.8L, 3" PA BL, coil sprung SAS, OX locker front, Detroit back, 5.38 gears...

Ruby's got a theme song!!! Sing-a-long