May 2, 2007
I have been working on a project in Adobe flash for the last few months. It basically does a ton of animation and math on every screen. So i put all the code in onEnterFrame, the standard way to run continuous code, so it ran on each frame. Over the months I [...]
Filed by shim at May 2nd, 2007 under Code
No comments on this post yet
January 13, 2007
I’m sure you have all heard about the problems with certain mp3 players and their ‘random’ play lists. Some people think they repeat some songs more than others. Well here a way to get a truly random shuffle of the list in constant time. That means it takes the same amount of [...]
Filed by shim at January 13th, 2007 under Code
No comments on this post yet
November 9, 2006
Given a set of n jugs of different sizes, how would you dump water between them to get a specific amount? If you have ever watched Diehard III, you might have seen this with 2 jugs. In the movie they are given 4 and 5 gallon jugs and are asked [...]
Filed by shim at November 9th, 2006 under Code
No comments on this post yet