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.”

There is too much. Let me sum up.

December 10, 2008, 10:12 am

A friend and former colleague asked me how I got to 666 Twitter followers so fast. The short answer: by trying.

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.

On the value of Twitter

October 10, 2008, 10:10 pm

About a month ago, I answered a question on LinkedIn about Twitter. Edward R. Gurney asked, “Do you get it?” At the time, I didn’t. Now, I think I do.

Ego-surfing, 2001 style!

October 10, 2008, 10:10 am

In honor of their 10th anniversary, Google have made available search as it was in 2001 (love the exclamation point on the logo, guys!).

Stack Overflow: I’m sold!

September 20, 2008, 5:17 pm

Joel Spolsky announced Stack Overflow a few days ago. After mostly lurking since then, I posted my first question a little bit ago. 35 minutes later, I had a drop-in solution to my problem. Crikey, that was fast!

V8: neither all that nor a bag of chips

September 11, 2008, 11:09 pm

I just got an interesting result comparing Google Chrome to the latest WebKit nightly build. WebKit was nearly twice as fast as Chrome at completing the little suite of JavaScript unit tests I keep here at work. Is V8—Chrome’s much-touted JavaScript engine—neither all that nor a bag of chips?

Playing to a browser’s strengths: Simple Templates 1.1

September 6, 2008, 11:11 pm

In the 3 days since I first published Simple Templates, I have released 1 bug fix and 1 minor upgrade. It’s a much better plugin than it was a couple of days ago. I guess this is why they say “Release early. Release often.”

Introducing jQuery Simple Templates

September 3, 2008, 9:03 pm

Overall, I love jQuery. One thing I have missed from my Prototype days was simple, built-in templating. Introducing jQuery Simple Templates.

Coda 1.5 is the bee’s knees

August 27, 2008, 1:11 pm

A long time ago, in a country far, far away, I wrote a blog post where I called skEdit The (Mostly) Perfect Text Editor. Coda, while itself not perfect, is even better.

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.

innerHTML versus the DOM: Can’t we all just get along?

April 19, 2008, 11:11 pm

Having tested the relative speed of innerHTML versus DOM node replacement myself, I read with interest When innerHTML isn’t Fast Enough. I have put together a test of my previous 2 techniques plus one inspired by that article.

The first 48 hours of PHP Function Reference, by the numbers

April 8, 2008, 11:00 am

I thought I had it all sorted. I thought I had put together a foolproof way to track exactly how many times my PHP Function Reference widget had been downloaded and from where. I was wrong.

PHP Function Reference 1.0

April 7, 2008, 4:07 pm

It’s done, finished, out the door, in the can. Version one-point-oh of my PHP Function Reference (aka, PHPfr) widget is officially available for download. And, oh my dog, it’s about time.

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.

Spitzer: Shot across the bow?

March 11, 2008, 3:11 am

The revelation today of Eliot Spitzer’s involvement with high-priced prostitutes constitutes a shot across the bow to politicians tempted to get cheeky this election season. Who’s in the cross-hairs next?

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.

Radiant JavaScript Singletons Freelance Down Under

February 28, 2008, 11:11 pm

It’s summer down under and I’ve spent the last 2 weeks on a self-styled “working holiday,” freelancing doing some fun work with Radiant CMS and rediscovering the beauty of JavaScript prototypes. I’ve also managed to relax a bit, going to the beach and swimming with my beautiful daughters. Not a bad way to spend some time off work.

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.

So Many Widgets, So Little Time

January 8, 2008, 8:01 am

How’s this for a New Year’s Resolution? I resolve to simplify my life by not pretending I have time to maintain 10+ Dashboard Widgets. Anyone want to take them over?