News for hackers. Stuff that matters.
Re:Xkcd “Self-Description” solved with python+pygame by ramchip on Thursday January 14, 2010 @03:29PM (#1053516)
Can someone upload the result for those of us who don't have Python & friends installed?
Re:Xkcd “Self-Description” solved with python+pygame by ars on Thursday January 14, 2010 @09:15PM (#1054079)
Here you go. It's a sequence of images:

http://yfrog.com/iyxkcd1p --- http://yfrog.com/iyxkcd2p --- http://yfrog.com/1sxkcd3p --- http://yfrog.com/jkxkcd4p --- http://yfrog.com/jkxkcd5p --- http://yfrog.com/jkxkcd6p --- http://yfrog.com/jqxkcd7p --- http://yfrog.com/jkxkcd8p --- http://yfrog.com/jqxkcd9p

And you can see how quickly it converges. In the actual program it flips back and forth with the real one so you can compare. But that actually makes it harder to see how it progresses.

And try this link: http://img710.imageshack.us/slideshow/webplayer.php?id=xkcd9... for a slideshow view.

Re:Xkcd “Self-Description” solved with python+pygame by ramchip on Friday January 15, 2010 @08:52PM (#1056334)
Thanks!
Re:Xkcd “Self-Description” solved with python+pygame by yungchin on Thursday January 14, 2010 @04:22PM (#1053624)
The result is (almost) exactly http://xkcd.com/688/

I loved that one before, but I didn't realise that the panels also described the xkcd logo itself. It's beautiful.

Re:Xkcd “Self-Description” solved with python+pygame by philh on Thursday January 14, 2010 @04:56PM (#1053684)
It doesn't describe the logo, that's just an arbitrary starting point for the iteration. You can begin with anything and after enough iterations it'll look pretty much exactly like the original.

[Disclaimer: I am not Phil Hassey.]

Re:Xkcd “Self-Description” solved with python+pygame by yungchin on Friday January 15, 2010 @07:27AM (#1054737)
Ah, that makes more sense! Thanks.
Re:Xkcd “Self-Description” solved with python+pygame by Raphael on Thursday January 14, 2010 @03:42PM (#1053546)
Especially considering the Pygame site is down.
Re:Xkcd “Self-Description” solved with python+pygame by eru on Thursday January 14, 2010 @06:53PM (#1053878)
I was sure there was a pygame-package for Ubuntu. But I can't find it. So it's probably just my bad memory that makes it up.

Pygame is a really nice library for 2d gaming, if a bit low-level. I like their approach to sprites and sprite-groups.

Re:Xkcd “Self-Description” solved with python+pygame by elcron on Thursday January 14, 2010 @07:20PM (#1053921)
"sudo aptitude install python-pygame" works for me in karmic.
Re:Xkcd “Self-Description” solved with python+pygame by eru on Friday January 15, 2010 @09:04AM (#1054874)
OK, so I just got the name wrong. I just tried `pygame' on its own.
Re:Xkcd “Self-Description” solved with python+pygame by tmountain on Thursday January 14, 2010 @03:48PM (#1053558)
It runs in an animated fashion, so it'd be difficult to upload. Those without pygame can rest knowing that the comic is very close to accurate (assuming the program is accurate).
Re:Xkcd “Self-Description” solved with python+pygame by bshep on Thursday January 14, 2010 @04:58PM (#1053685)
Any mirrors for the pygame library?