WTH

i'll listen to that tomorrow cause right now i'm busy listening to Golden Dawn, eating a pita with Nutella, and thinking instead of sleeping like i should be!
 
Yeah, and about 2½ thrash metal songs 2 of which are "One" and "Angel of Death", but that won't stop you from claiming to loathe all of thrash metal either :)
 
It doesn't use Audioscrobbler, it uses AMIP (they even do a plugin for XMMS, those crazy Linux fags). I've not looked into using Audioscrobbler, but I will now for fun and profit.

You can have one of these sigs if you like though, or you can wait a moment until I investigateth the Audioscrobbles.

Also, I've heard about ten jillion thrash songs and I hated every single one of them.
 
DUDE I don't care then, I'll just write my own scrobbler script, it's not hard but it won't be very flashy cause i don't have freetype2 in teh php =((
 
It'll be dead easy, just parse the RSS feed, set a time-out period of like 4 minutes or something to refresh it again, then output your horrifyingly ugly image.

It'd be even easier if my host had PHP 5 installed :(
 
Ifurin said:
It'll be dead easy, just parse the RSS feed, set a time-out period of like 4 minutes or something to refresh it again, then output your horrifyingly ugly image.

It'd be even easier if my host had PHP 5 installed :(
No need for the RSS feed. If there's plaintext available I will use it.

erik@rykros:~/public_html$ cat ec-scrobsig.php |wc -l
29
erik@rykros:~/public_html$

...and that's with SEVERELY UGLY CODE
 
where is plaintext

link please

edit: found it, christ i'm blind

I bet I can write it shorted than you!
 
Ifurin said:
where is plaintext

link please

edit: found it, christ i'm blind

I bet I can write it shorted than you!
I bet I use about 12 lines of text rendering code to get the black shadow under the white text :)
 
Fixed.

PHP:
<?php

$username = "egj";
$npstring = "Playing: ";
$font = 2;  

$line = file("http://ws.audioscrobbler.com/txt/recent/" . $username);
$line[1][strlen($line[1]) - 1] = '';

header("Content-type: image/gif");
$img_handle = ImageCreate(ImageFontWidth($font) * (strlen($line[1]) + strlen($npstring)) + 4, ImageFontHeight($font) + 4) or die ("Cannot Create image");
$back_color = ImageColorAllocate($img_handle, 255, 0, 255);
$shadow_color = ImageColorAllocate($img_handle, 0, 0, 0);
$txt_color = ImageColorAllocate($img_handle, 255, 255, 255);

for($x = 3; $x < 6; $x++) {
   for($y = 1; $y < 4; $y++) ImageString($img_handle, $font, $x, $y,  $npstring . $line[1], $shadow_color);  
}  

ImageString($img_handle, $font, 4, 2,  $npstring . $line[1], $txt_color);

ImageColorTransparent($img_handle, $back_color);
ImageGif($img_handle);

?>

I bet you could make it shorter but that would just be silly :)
 
scrob.php


24 lines with whitespace and caching:

Code:
<?php

$c = (file_get_contents('access.txt') > time() + 180) ? file('cache.txt') : file('http://ws.audioscrobbler.com/txt/recent/shittocks');
file_put_contents('cache.txt', $c);
file_put_contents('access.txt', time());
$s = trim($c[1]);

$im = imagecreatetruecolor(300, 40);

$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
$grey = imagecolorallocate($im, 33, 33, 33);

imagecolortransparent($im, $black);

imagestring($im, 2, 11, 26, $s, $grey);
imagestring($im, 2, 10, 25, $s, $white);

header('Content-type: image/png');

imagepng($im);
imagedestroy($im);

?>

I thought I could do it in less :(

Edit: Damn your fancy black outline :mad: