having fun with code

Tag Archives: javascript

Command line scripting with Node.js

I often write custom deploy scripts for the projects I work on. In most cases, I choose python. You can do pretty much everything with shell and system commands, but python dictionaries and lists make it very easy to manipulate data, lists of files, text, etc. Networking is also very easy in python (http, ftp, [...]

Titanium Studio and Titanium Mobile 1.7

Titanium Studio: will this change anything? It is a big step, and offers something I really missed while working with Titanium in the past: integrated debugging. I think I will rather stay with XCode and code native Objective-C. Link: Introducing Titanium Studio and Titanium Mobile 1.7.

location.hash is dead (on html5 browsers)

Pretty cool technique to actually change the url of the page (something until now impossible to do in Javascript for security reasons): http://badassjs.com/post/840846392/location-hash-is-dead-long-live-html5-pushstate Also good to read, the browser history MDC documentation: https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history And finally, pjax, a new script that combines the use oj Ajax calls and this technique to manipulate the url to achieve [...]

Angry Birds as a Web App

Really, really cool, Rovio has released Angry Birds (and all the game assets) as a web app, Javascript and Canvas based. I can’t wait to see clones of Angry Birds with custom assets, maps and sounds. via Angry Birds as a Web App.

Finding duplicate ID’s on an HTML page

Looks like sometimes we forgot element ID’s are meant to be unique on a HTML page. Here is a little bit of code I just wrote to find duplicate ID’s on a page (run the code on your browser’s javascript console): var idList = {}; var nodes = document.getElementsByClassName(''); for (var i in nodes) { [...]

Staying busy

Wow, I just realized my last post here was in October 2010. It’s been a while. Turns out, October was when we launched the last project I was working on at LEVEL Studios. I am still working on that project, but doing back end stuff in C#.Net. Besides a couple of days working on another [...]

Javascript console in the terminal (command line)

I’ve been looking for a command line Javascript console for a while. I have even thought of creating my own one, some hybrid between my fake Linux terminal and JSFiddle.net. Lately, I’ve been working with node.js lately on a little project just for fun. Never before I had done server side Javascript and it looks [...]

Date from ISO 8601 string

Javascript is full of surprises and browser compatibility is even more exciting. For some reason, I thought all browsers or Javascript engines had support for creating dates from ISO 8601 strings. Like this: var myDate = new Date("2010-09-21T02:57:00Z"); console.log(myDate); // Mon Sep 20 2010 19:57:00 GMT-0700 (Pacific Daylight Time) Turns out that does not work [...]

MooTools Core for Server and Mobile Development

One of the best things of MooTools is that it is very modular, from the core itself. This means you don’t need to include all core elements in your projects if you don’t want or don’t need some modules. For example, you may not want to include Array or Function, if you don’t need any [...]

Link: Whirlpool JS

Whirlpool is a very strong hashing algorithm (one way encryption) that encodes any text into a 128 character string (popular md5 generates a 32 byte string). Looking for the JavaScript version, I had to search on my email inbox for an email I received back in October 2009 to found the link where to download [...]

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

PromoteJS

JavaScript JS Documentation