So doing order by RAND() limit 0,1 is pretty slow for big tables. So I came up with the following. Basically it uses the ID column to find a random id number between the lowest id in the table (usually it will be 1 since that’s where auto increment start; however, I lots of times [...]
Turing Machine
I was asked by Ian Bogost to make a Turing Machine program. The Turing Machine is a device that basically uses conditions to create some type of program.
You can make your own here. I think it’s a great way to teach someone the basics of computer programming and logic.
Initial Tape: PIG
1,_,1,_,>
1,P,2,_,>
2,I,3,P,>
3,G,4,I,>
4,_,5,G,<
5,I,6,I,<
6,P,2,_,>
6,_,1,_,>
My New Game: Obechi!
Click here to play my new game Obechi.
Here’s the description of the game written by Tim Halbert (who wrote the music to the game):
From the creators of the Flash sensation Boomshine comes a devious new game where hand/eye co-ordination and a lightning-quick reaction time spell the difference between success and failure. Hundreds of colorful particles [...]
New version of Picterizer
*Edit: Renamed app to Picterizer*
A new version of Picterizer has been uploaded. If you haven’t checked it out, this web application generates a picture of pictures (from flickr). Basically you upload your photo from your hard drive. The program uses Flickr to compile the picture. The new version now includes a “variance” factor as well [...]
EventManager 1.3
Dennin Dalke, a Brazillian Flash Developer emailed me a great method for the AS3 EventManager class (read the original post).
//adding multiple events at once.
EventManager.addEventListeners( loader.contentLoaderInfo, [
ProgressEvent.PROGRESS, onSiteLoad_Progress,
Event.OPEN, onSiteLoad_Open,
Event.COMPLETE, onSiteLoad_Complete,
IOErrorEvent.IO_ERROR, onSiteLoad_IOError
] );
It’s a great method to save retyping so many lines.
Get the updated class here. Also, if you have, are, or [...]
Nice Review of Boomshine
Here’s a nice review on Boomshine from CasinoGuide.com:
Brain Reaction
Lovers of Internet recreation have played all types of games, including first-person shooters, role-playing, pure action, gambling games via online casinos, mysteries, trivia, typing, and the list goes on and on. The gamers of the world are always looking for something a bit different. Enter Boomshine, a [...]