About

I build companies. blog@e-huned.com
outdated: resume + portfolio
less outdated: linked in

readings

What I do

When someone asks what I do, I want to say that I use machines to make life better.
1pm on 07/21/10 | no comments |  

Creative Commons Terms of Service and Privacy Policy

Respekts to Automattic and Wordpress. Here they are:

3pm on 07/02/10 | no comments |  

How to calculate a simple moving average in Javascript

And use it like this:

>> [1,2,3,4,5,6,7,8,9,10].simple_moving_average(2)
[1, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5]
>> [1,2,3,4,5,6,7,8,9,10].simple_moving_average(3)
[1, 1.5, 2, 3, 4, 5, 6, 7, 8, 9]
>> [1,2,3,4,5,6,7,8,9,10].simple_moving_average(4)
[1, 1.5, 2, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5]

I wonder if this is buggy/wrong. It seems right, though.

8am on 05/29/10 | no comments |  

Download all your flickr photos with this ruby code. Bye flickr.

This is my very last use of flickr’s API. Use this script to download all your flickr photos + metadata (as provided by flickr.photos.getInfo).

It’s pretty rough around the edges but that’s okay because it’s a single-use chunk of code. You need a local mongodb server running. and your api key and auth token from flickr.

Do you want to migrate all your memories from flickr to picasa (or mobileme, or wherever)? Ask me how.

5pm on 05/24/10 | 1 comment |  

font-size: 72px

I feel like 72px is underrated. You’ve probably never seen it. So I made a sample for you to admire. Pretty, right?

p.s. – hi david :)

11am on 04/29/10 | no comments |  

omg

Frequency of occurrence of some internet-style abbreviations in a chat log.

10am on 04/05/10 | no comments |  

Monthly Archives