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 :)