Gary Haran.com


Goodbye Standout Jobs

Posted in garyharan.com by gary.haran on the September 29th, 2009

As Standout Jobs moves into a new phase of its life where hard core development is less important than sales and business execution, it made sense to move on to new challenges.

The team I worked with was not only the most talented but the most passionate I’ve ever worked with. I’ll miss the ones I won’t work with as closely but will continue to collaborate whenever life allows it.

Thankfully I don’t get to say goodbye to everyone. I am joining forces full time with Marc-André to build talker, a new chat tool that allows people to chat faster and in a more pleasant way.

Please sign up for the limited public beta due out really soon.

Comparing Javascript Arrays

Posted in Programming by gary.haran on the August 3rd, 2009

Here was a javascript question I saw through the twittersphere from a programmer friend of mine:

in JavaScript [2253] < [288] is TRUE (!) … any suggestion to sort an array of arrays?

I fired off an answer saying that he could use a comparison function:

my_array.sort(function(a,b){ return -1, 0 or 1 depending on need })

Then it dawned on me that there was an explanation for why the returned value of the original comparison was true rather than false.

>>> [2253] < [288]
true
>>> [2253] - [288]
1965
>>> 2253 < 288
false

Javascript converts the array to numerical values and then assesses wether that result is truth. Unfortunately when inside an array it converts only once and then sees wether the result is true. In Javascript any number is treated as true unless it is 0.

I guess for this my friend will have to write his own comparison function but at least we can understand how the types get switched around on us with this example.

I’m building a recipe site for foodies

Posted in garyharan.com, Food by gary.haran on the June 17th, 2009

Lots of recipe sites exist out there and plenty of them are great. I just feel as though all of them fall short in some way. Either they have huge annoying ads crowding the interface, are hard to navigate or are impossible to reach on mobile devices.

I’m not saying I’m the man with solutions for all these problems but if I can build a recipe site that caters to one niche of internet-savvy-foodie-technophiles I’ll be happy with that. I’ve got some trustworthy friends who fit the profile and are willing to add their dash of salt to the broth.

The recipe site I’m creating is called Melting Pan.

It’s being released early, even before I have comments, pictures or other fancy features. I’ve set aside some time every week to work and the next couple of features will be comments, cookbooks and eventually pictures.

If you want to help me out simply sign up and add a few of your favorite recipes.

First AtheistDrinks Meetup Announced

Posted in Religion by gary.haran on the March 16th, 2009

What: AtheistDrinks
When: March 31st at 6pm.
Where: Brutopia @ 1215 Crescent
How: RSVP on Facebook or Contact Me directly
Why: have a drink with like-minded individuals

Next Page »