a few days ago my friend found an excellent game called manufactoria. You can play the game here: http://jayisgames.com/games/manufactoria/
It is kind of a cross between a Turing machine and befunge. To play you place your program onto the grid and a robot moves across it, with the operations determining how it will move and how its memory string will be affected.
This is my progress so far:

Images of my solutions so far and comments can be found after the break. Spoilers ahead!
(more…)
Posted in:
Uncategorized
by
bencoder
/
No Comments
There is now a twitter feed for the cyberpunk radio: @CyberpunkRadio
That should update you whenever there are live streams going on. I’ve also changed the fallback music a lot now to be more what I’m into at the moment.
You can listen to it here:
download the .m3u playlist
You’ll need a player capable of listening to vorbis streams (VLC, MPlayer, Winamp, FooBar all confirmed to work)
Posted in:
Cyberpunk, Music
by
bencoder
/
No Comments
2 weeks ago me and my friend made a game for pyweek 10 where you ride a unicycle.
You can see the project page here to download the game.
Voting ends tonight so we’ll be able to see how we did. You can see a video of the game here: http://www.youtube.com/watch?v=yQrzsNs6br4
Posted in:
code
by
bencoder
/
No Comments
If you need or want a cheap(free) remote backup option for a small website, consider using google’s generous mail service.
This script runs in the middle of the night each day:
#!/bin/bash
#Make dump of the database from mysql
mysqldump --user=dbuser --password=dbpass --databases dbname --opt --quote-names --complete-insert | bzip2 -c > /tmp/dbbackup.bz2
#Move yesterdays backup to .old, just in case we want to keep it for some reason
mv /home/user/backup.tar.gz /home/user/backup.tar.gz.old
#tar up all the files
tar -cf /home/user/backup.tar /path/to/some/data /path/to/more/data /tmp/dbbackup.bz2
#compress them
gzip -9 /home/user/backup.tar
#Split the files up into 5mb chunks called backup.aa, backup.ab, backup.ac etc.
split -b 5m /home/user/backup.tar.gz /home/user/pieces/backup.
cd /home/user/pieces
FILES="*.*"
for f in $FILES
do
#uuencode the file and send it as an attachment
uuencode $f $f | mail mybackupmailaddress@googlemail.com
done
Recovering your backups requires downloading all the pieces for that day(this is the longest part of the process) and performing:
cat backup.* > backup.tar.gz
Posted in:
code
by
bencoder
/
Tags: backup, bash, google, linux
No Comments