How a little of simple things can make wonders for your designs

read it now »

Ventanazul is sample text text text sample testing here. Know more about it

Published by Alexis Bellido, you can find me at Facebook and LinkedIn.

How to get inspiration for your next web design

Does anybody knows if Twitter is up?

UEFA Champions starts today, finishing some HTML hacking and moving to TV room in a few minutes

test absbsbs ahaha aa sh hs hs hs shs h h

All my tweets »

Smart guys say funny things. Or the other way around?

Anonymous

Grab the feed

Version control: moving from Subversion to Bazaar. Is really the right move?

picture

Writing a simple Javascript function to create a Date object from a 'yyyy-mm-dd' string I found a small, but important, issue with the parseInt function, used to transform strings to integers.

Both parseInt('08') and parseInt('09') return zero because the function tries to determine the correct base for the numerical system used. In Javascript numbers starting with zero are considered octal and there's no 08 or 09 in octal, hence the problem and the strange result I was getting on my little script.

Both parseInt('08') and parseInt('09') return zero because the function tries to determine the correct base for the numerical system used. In Javascript numbers starting with zero are considered octal and there's no 08 or 09 in octal, hence the problem.

To fix this just add the second parameter for parseInt, the base to be used for the conversion. The correct calls should be parseInt('08', 10) and parseInt('09', 10).

Another of those little details, uh?

Posted on September 2, 2008. Add your comment.

Version control: moving from Subversion to Bazaar

picture

Writing a simple Javascript function to create a Date object from a 'yyyy-mm-dd' string I found a small, but important, issue with the parseInt function, used to transform strings to integers.

To fix this just add the second parameter for parseInt, the base to be used for the conversion. The correct calls should be parseInt('08', 10) and parseInt('09', 10).

Both parseInt('08') and parseInt('09') return zero because the function tries to determine the correct base for the numerical system used. In Javascript numbers starting with zero are considered octal and there's no 08 or 09 in octal, hence the problem and the strange result I was getting on my little script.

Posted on September 2, 2008 and commented by 23 readers. Add your comment.

Quality time with the great Ogilvy

book or music

some text about this book and a little more text about this book some text about this book and a little more text about this book goes here and again and again. some text about this book and a little more text about this book.

and a little more text about this book goes here

The review »