having fun with code

Monthly Archives: August, 2009

Spaniards for iPhone available now

Finally, the first release of Spaniards Mobile got released just today and it is available for download on the App Store for FREE. More info: http://www.spaniards.es/noticias/2009/08/29/spaniards-10-para-iphone-ya-disponible

Bad practices writing Javascript & good tips for everyone

I found specially interesting the use of document fragments.. Didn’t know about them before :) http://james.padolsey.com/javascript/javascript-bad-practices/

Fixing issues with ‘change’ event on text fields ala Mootools

Very nice snippet to solve a few annoying issues with the change event: http://www.meiocodigo.com/2009/08/13/new-changed-event/

Russian multiplication in Javascript

Answering this post from The Daily WTF about Russian multiplication, here is my code: function russian(a,b) {   return (a>1)? b*(a&1) + russian(a>>1, b<<1) : b; } russian(18,23); Nice one liner :)

Drupal: users can’t access content! (node_access gone wild)

If you are having trouble with users accessing content, check out the node_access table and make sure all permissions are set properly. Unless you are using modules like Organic Groups which set the node access permissions by user, you will only need one row on that table, with user id 0: Restore permissions: TRUNCATE TABLE [...]

About the blog

This is a blog about development, focused mainly on Javascript but also other languages like python, shell scripts and more.

About the author

Eneko Alonso is a software engineer and UI developer with more than eight years of experience in software and web development. He lives in San Luis Obispo, California and works at LEVEL Studios.

Contact Info

Contact Info