andrew.hedges.name / blog

Archives: 2008

Defeat comment spam? Yes we can!

December 26, 2008, 12:26 pm

Thanks, but I’m not looking for a Russian bride and somehow I doubt yours is really a “trusted pharmacy.”

What will be your legacy?

November 24, 2008, 11:24 am

My mother died of pancreatic cancer 3 months ago, today. It doesn’t feel like it’s been that long. The experience has prompted in me some reflection on my own life, at the mid-way point.

Make long URLs short with tr.im.it

November 1, 2008, 12:34 pm

The best Dashboard widgets scratch an itch. I’m a big fan of tr.im for URL shortening, but even their excellent bookmarklet wasn’t quite convenient enough for me. Lucky for me that a) tr.im publish a public API, and b) I know how to build widgets.

Numerical array sorting in JavaScript

August 26, 2008, 8:26 pm

In these troubled times, it can be hard to know whom to trust. In looking for a numerical sort function, the first two articles I found both recommended the same syntax. Both of them were wrong.

Using Coda’s Terminal Tab Locally

August 22, 2008, 8:22 am

This might be pretty obvious, but it’s really simple to use Coda’s Terminal tab to interact with your local system from the command line. Here’s how…

Series on hold: What a surprise…

June 1, 2008, 12:12 pm

I told you that I didn’t have great luck with blog series. Maybe I jinxed myself, but soon after I penned entry 0, we had an announcement at work that’s thrown my life into a bit of disarray.

Widget JavaScript, the Un-series: Part 0 (Namespacing and the Module Pattern)

May 13, 2008, 3:45 pm

I’m not big on series of blog posts. Others have done it successfully, but personally I’ve promised this kind of thing before and not delivered. So, I’m not making any promises that this series will get past Part 0, but please know I have the best of intentions. If all goes as hoped, over the next however-many posts I will provide a few useful JavaScript code snippets that Dashboard widget authors can take and easily adapt to their own needs. This is based on my experience authoring nearly 20 widgets over the last 3 years. As you can imagine, some patterns have emerged. In this pre-series post, I will discuss a couple of concepts important to understanding my examples (you know, if I get around to posting them): namespacing and the module pattern.

New version of PHPfr in the works

March 30, 2008, 12:34 pm

There’ve been a couple of false starts over the 2 years that I’ve been developing this Dashboard widget, so excuse me if I didn’t want to say anything until I knew a release was close, but PHP Function Reference 1.0 is nearly done. w00+!

Ferraro: Taking one for the team?

March 12, 2008, 8:20 pm

OK, I know in my last post I said I rarely blog about politics, but here is another case where I feel the need to chime in. I suspect that Geraldine Ferraro’s recent comments about Barack Obama’s race and her subsequent “resignation” from her “honorary” post with the Clinton campaign was all a calculated political maneuver.

The Sincerest Form of Flattery

March 2, 2008, 3:33 pm

They say imitation is the sincerest form of flattery. They also say there is a fine line between imitation and inspiration. Gentle reader, I leave it for you to decide on which side of this line the following falls.

Handling Hash

February 12, 2008, 2:12 pm

No, I’m not talking about drug smuggling. I’m talking about the inconsistencies in how The Big 3 web browsers deal with window.location.hash.