Monthly Archives: January, 2009
Acceleration: slow down problem
Moving objects in computing can be handled easily keeping a speed variable, let’s say in pixels per second (object.speed.x = 10). Then, on every step of the animation, we change the object position with this amount divided by the number of frames per second we are processing (object.x += object.speed.x / fps). Acceleration can be [...]
Spinning Color Wheel: Mootools + Raphael + SVG
A couple of days ago I was playing at work with the RaphaelJS library to do some image rotation that we may end up using on a new project we are working on. At the end I ended up creating a spinning object with variable speed, similar to this demo I show you here. Using [...]
Moved research to enekoalonso.com
You shouldn’t notice it, but I have moved all my research demos from dev.enekoalonso.com/research to enekoalonso.com/research. It is just a little change, but will help keeping things more organized, I think. To avoid breaking old links, I have added a 301 redirect: Options +FollowSymLinks RewriteEngine on # For http://dev.enekoalonso.com/research RewriteCond %{REQUEST_URI} ^/research$ RewriteRule .* [...]
Repulsive force in Javascript with Mootools draggables
A couple of days ago I was reading about the Boids demo made by Ben from Coderholic. I though that was very interesting, specially since I hadn’t heard about boids before. I wanted to create my own version but instead I decided to play only with the repulsive force, making it interactive using Mootools drag [...]
Check your server status with email notification
I wanted to do this for a while and never really sit down and code it. Yesterday I came across this pretty nice script by Ben from Coderholic which does exactly that: check your server status and send you an email if it is other than 200 (OK). #!/bin/bash # Query a supplied [...]
Solving the 8 Queen Puzzle in Javascript
Eight Queens is a classic problem which consist on being able to place 8 queens on a chess board without leaving them in position of eating each other. More info on Wikipedia. See the 8 Queens demo in action. On this demo I have created 3 different Mootools classes: ChessBoard, Piece and EightQueen. ChessBoard and [...]