Home

01
Dec

I just stumbled across a new factoid regarding javascript. Occasionally JS will throw unneeded decimal places on to float multiplication. For example: 

0.1 * 0.2  // will show 0.020000000000000004

This can be remedied by a couple libraries such as BigDecimal and BigNumber. If you aren't too concerned with exact fractions then it's probably easier to use a Math.round

written by jackson | comments(0)
30
Oct

I've been doing a lot of IOS on the weekends lately and today I ran into two problems in regard to String Format Specifiers. I found out that if I don't use them correctly then xcode gives me runtime errors that look like they are related to bad memory management, but it's just because I used the wrong specifier. I wrestled with this for a few hours, but someone was able to answer it quickly for me on Stack Overflow.

written by jackson | comments(0)
11
Oct

Recently I stumbled upon a talented AS3 developer. I was reading an article on "like" buttons from within flash and when I was sent to a page of his that covered Facebook Oauth connections in Flash. He has some fun projects on there and the header of his page is p2p drawing in flash. Pretty cool.

And yes, the thumbnail for this post is a picture of Jozef Chúťka that I "borrowed" from his blog..

written by jackson | comments(0)
24
Sep

I added some code sharing tools recently and wanted to give you the scoop. I use two: One is Github's tools for sharing code and it's called Gist. The other is a pretty widely used markdown display tool that has a bunch of nice features (like coloring text and showing line numbers) which is Alex Gorbatchev's Syntax Highlighter. Hopefully one or both works for you too!

written by jackson | comments(0)
17
Sep

Have you ever been curious as to the common practices of others? I certainly have been. A friend of mine spotted a Google Javascript Style Guide the other day which gives a heads up for a lot of pre-defined practices that are being used. You'll likely be familiar with a few of these, but you might just pick up a thing or two (I did).

written by jackson | comments(0)
Syndicate content