Catfood: Earth and Follower

Updated on Saturday, July 18, 2020

I've been busy updating a couple of Catfood products.

Catfood Earth updates your desktop wallpaper to show day, night and cloud cover. It can also display earthquakes, time zones, places and US weather radar:

Catfood Earth

Catfood Follower is a Twitter tool that automatically follows people who follow you and/or removes friends who stop following you. I think it's most useful for business accounts:

Catfood Follower

With these two out the door my next project is overhauling the Catfood website. I'm kind of dreading it, but the current architecture is over six years old and it's definitely showing its age.

ESRI Shapefile Reader in .NET

Updated on Sunday, May 3, 2020

I've just released a .NET library for parsing ESRI shapefiles - see ESRI Shapefile Reader on Codeplex. The library and source code are available under the Microsoft Public License.

A Shapefile is actually at least three files: a main file containing shape data (*.shp), an index file for locating shape records in the main file (*.shx) and a database of metadata for each shape (*.dbf) in dBASE format.

I ended up writing the library in order to convert Eric Muller's time zone shapefile into a format I could use with Catfood Earth. I found other libraries that could read shape data but not metadata, or provided a very thin .NET wrapper on top of unmanaged code and so I decided that a fully managed library could be useful.

The library - Catfood.Shapefile.dll - provides read-only, forward-only access to shapes and shape metadata. Currently all 2D shapes are supported: Null, Point, MultiPoint, PolyLine and Polygon. I might add additional types in the future, or if you have a pressing need it would be easy to extend the library by looking at an existing shape subclass and the shapefile specification (PDF).

See the Codeplex project for sample code and documentation.

How many people don't read this blog?

Updated on Sunday, May 3, 2020
This is a joke metric that I first proudly displayed on Catfood Magazine back in 2007 1997 (it's broken on the archive of the site). Everyone had a hit counter back then, but as far as I know we were the first site with a non-hit counter.

The dirty secret was that the counter just showed the world population. The readership was a rounding error.

My new count of non-visitors uses the US Census Bureau's world population estimate and subtracts unique visitors from the Google Analytics API. The count is cached for an hour so it doesn't slow the page down too much.

How to get technical support without spending hours on the phone

Updated on Sunday, May 3, 2020
Them: Hello, my name is Phil, how can I help you today?

You: My DSL connection is slow.

Them: Okay, I can help you with that, have you...

You: My first thought was that the Linksys router that's been working perfectly for five years has gone wrong. So I connected my computer directly to your off-brand modem with the same result. I then thought that the problem must be with the computer, so I reinstalled it from the manufacturer discs and rebooted about seven times.

Them: Let me connect you to my supervisor...

Them: Tap, tap, tap, oh, we seem to have switched your service back to the basic package. Tap, tap, tap, fixed.
Sometimes it's fun to argue with support. Sometimes you just need to short-circuit the idiot script to get through to the person who can fix the problem.

I think it's time for CAPTGUAs or Completely Automated Public Turing test to tell Geeks and Users Apart. A quick puzzle or two that bypasses the first couple of levels of support.

Business of Software 2009

Updated on Sunday, May 3, 2020
I'm a Joel Spolsky stalker at the moment - after Stack Overflow DevDays last month I spent three days this week at the Business of Software conference in San Francisco.

It was an incredibly high value conference, in terms of both speakers and attendees. Next year it will be back in Boston, which sucks for me, but I'll make every effort to attend.

I was really excited to see Geoffrey Moore speak. An old boss once bought a crate of Crossing the Chasm for everyone in the division to read. It's still the best business book I've ever read. At the conference Moore spoke about innovation - specifically differentiation (get out of the competitive set), neutralization (get back in to the competitive set) and optimization (productivity gains). All three are essential, but you're shooting yourself in the foot if you spend too much time on neutralization - "Best of breed is a suckers game". His thesis was to do the bare minimum needed to stay competitive and then pour resources back into differentiation.

A theme of the conference was on motivating yourself and others - how to build a great company/culture. Several speakers talked about carving out time for creativity and fun. Carsonified evidently operates on a four day week. I've spent the last couple of years on a six day week... lots of food for thought here.

I convinced myself to attend this year after watching some of the videos from the 2008 conference. These are available on the Business of Software Ning - I'd recommend joining and checking them out. Hopefully videos from this year's conference will be posted soon.

Golden Gate Park - Stow Lake, Stawberry Hill and Museum Concourse

Updated on Saturday, July 18, 2020

Golden Gate Park - Stow Lake, Stawberry Hill and Museum Concourse

An alternative to our normal loop is another three mile walk starting from JFK and Transverse. Instead of heading towards the beach walk up under the bridge and take the first right to Stow Lake.

Stow Lake

Stow Lake surrounds Strawberry Hill. There's a path around the lake with two bridges leading to the hill. I normally walk to one bridge, cross and then up to the top of the hill. It's generally pretty quiet with great city and ocean views in between the trees.

Top of Strawberry Hill in the middle of Stow Lake

View from the top of Strawberry Hill. Rudy is in there somewhere, click for a larger version.

de Young Museum

After the hill I walk over to the Museum Concourse. The de Young rises through the trees like an implausibly stranded copper aircraft carrier. It hosts a range of paintings, decorative art, sculpture and modern art. You're bound to find something you like here.

de Young Museum (Side)

The copper cladding will turn green eventually, probably before the new Bay Bridge span is finished.

California Academy of Sciences

Opposite the de Young is the California Academy of Sciences. The Academy features an outstanding digital planetarium, a three story rainforest and an aquarium. It reopened last year after a major rebuild and it's insanely popular - get there first thing to snag the first come first served planetarium tickets.

Prayerbook Cross

On the way back I detoured up to Prayerbook Cross, donated in 1894 to commemorate the first English sermon on the pacific coast after Sir Francis Drake discovered Drake's Bay (a name which didn't stick).

(2.97 miles, total elevation gain 103 feet, 1 hours, 17 minutes, average 2.29 mph, view in Google Earth, view in Google Maps.)

Hike starts at: 37.770433, -122.479941.

StackOverflow DevDays

Updated on Saturday, July 18, 2020

Fort Mason, San Francisco

Just got back from the StackOverflow DevDays event in San Francisco. I was a bit worried that this would be overly focused on marketing FogBugz and StackOverflow. There were brief pitches on each (and I learned that FogCreek is launching hosted source control and code reviews called Kiln, now in beta and looking pretty nifty with tight integration with FogBugz) but this wasn't the focus.

I was also a little concerned that I'd be the only one there without a StackOverflow profile t-shirt. Luckily I didn't see any reputation toting pod people at the conference.

Happily the day was very code oriented, and very diverse. Spell checking in Python, smartphone development for iPhone, Nokia (via Qt) and Android, ASP.NET MVC and jQuery. I spend most of my time at the moment in C#/.NET and it was really valuable to spend a day briefly diving into different stacks and platforms.

Joel said that they'd be back next year and I'm hoping that it offers a similar diverse range of topics.

Do I need a Zumbox?

Updated on Saturday, July 18, 2020

Zumbox is trying to take the paper out of the postal system. It's a laudable goal, if it takes off it would stop me from feeling that I need to do this:

Junk Mail Solution

Signing up is easy. Enter your mailing address and Zumbox send you a letter with a verification code. Once verified you can start sending and receiving mail online. You can mail a few people for free, bulk mail is five cents per recipient.

Of course you'll only receive mail that has been sent to you via Zumbox. It's not a mail scanning service (like Earth Class Mail) so you end up with yet another mailbox to check.

Zumbox is trying to help businesses go paperless. This includes bills and other necessary communication. It also includes junk mail.

My experience so far is mainly junk mail. I did get a circular about recycling from Gavin Newsom but otherwise just a stream of special offers.

This is a big problem because Zumbox provides very little control over email notifications:

Zumbox Email Preferences

It's all or nothing. Either I get a daily email reminding me to go look at junk mail, or I get no notification at all (and might miss the next thrilling update from Gavin).

Most of my bills and statements are already paperless via email. This isn't as secure as Zumbox, but I'm not sure how much of an advantage this is as I really just need notification.

I really want to like Zumbox, but right now it's just another source of spam.

Blogger Classic Templates Bugs and XHTML

Updated on Sunday, May 3, 2020
I've just migrated this blog from catfood.net to its own domain. In the process I needed to port the template from classic ASP to ASP.NET and I also wanted to end up with valid XHTML.

If you're using blogger on your own domain then you're using the classic templates. There is a known issue with the template tag that causes Blogger to emit unwanted JavaScript - this causes havoc, especially if you're using the tag in the section of a page.

Google recommends using the <$BlogPageTitle$> tag in the page title. This works, but it's not great from a usability or SEO perspective. For item pages you get the post title after the blog name and you probably want to put the post title first - the earlier that keywords appear in the title the better for search engine ranking.

Luckily there's an easy fix - just comment out the closing Blogger tag:

This doesn't interfere with the template rendering correctly and the JavaScript is then commented out on the rendered page. It's still an unpleasant bug, so if you use the classic templates please report it here and also star or comment on this forum topic to encourage Google to fix it.

If you use labels then Blogger includes them in a paragraph rendered with <$BlogItemBody$>. This means that wrapping <$BlogItemBody$> in a paragraph will cause XHTML validation errors for posts with labels because you can't nest another block element inside the paragraph.

The other XHMTL nasty I fixed was the post comments link. My template used the recommended Blogger code:
<p><a href="<$BlogItemCommentCreate$>"
<$BlogItemCommentFormOnClick$>>Post a Commenta>p>

This renders as:
<p><a href="https://www.blogger.com/comment.g?blogID=12345678&postID=1234567890123456789"
location.href=https://www.blogger.com/comment.g?blogID=12345678&postID=1234567890123456789;>
Post a Commenta>p>
And you end up with a gazillion cascading XHTML errors, all caused by the illegal ampersand. I fixed this by constructing my own comment URL using the <$BlogItemNumber$> tag (this emits the unique Post ID):
<p><a href="https://www.blogger.com/comment.g?blogID=12345678&postID=<$BlogItemNumber$>">
Post a Commenta>p>

Lake Merced

Updated on Saturday, July 18, 2020

Lake Merced

Lake Merced is a natural lake near Fort Funston. It used to be San Francisco's main fresh water supply but is now the emergency reserve (somewhat worrying as a previous earthquake caused much of Lake Merced to drain into the Pacific).

The lake is also the site of the Terry/Broderick duel where in 1859 the Chief Justice of the California Supreme Court (Terry) killed a US Senator (Broderick) in an argument over slavery.

The loop around the lake is a flat five mile path, unfortunately marred by heavy traffic and constant gunfire from clay pigeon shooting and/or the SFPD firing range.

Rob and Rudy at Lake Merced

Rob and Rudy at Lake Merced.

Penguin's Prayer

Gill and Rudy next to a sculpture called "Penguin's Prayer". Given the latitude I expect the penguin is praying for the next ice age.

(4.85 miles, total elevation gain 0 feet, 1 hour, 39 minutes, average 2.93 mph, view in Google Earth, view in Google Maps.)

Hike starts at: 37.712302, -122.489232.