Monthly Archives: December 2005

Ruby on Rails is 1.0!

Congrats to the entire Ruby on Rails team!

Also – if you want to try out a Rails-powered site and you are a music fan, check out FanConcert: Music News by Fans for Fans, which is a social concert and album notification service. It’s created by my friend Ryan. He’s still working on it (i.e. it is in public beta, Google-style) but he’s constantly improving it.

Technorati Tags: , , ,

How to fix certain SVN commit errors

If you’re getting an error message that looks like:

subversion/libsvn_client/commit.c:832: (apr_err=155005)
svn: Commit failed (details follow):

Then try backing up your project directory and re-check it out from Subversion using “svn co “.

If you then get something that looks like:

subversion/libsvn_wc/log.c:337: (apr_err=155009)
svn: In directory ‘YourProject/trunk/someDirectory’
subversion/libsvn_subr/io.c:565: (apr_err=2)
svn: Can’t copy ‘YourProject/trunk/someDirectory/.svn/tmp/text-base/foo.html.svn-base’ to ‘YourProject/trunk/someDirectory/foo.html.tmp’: No such file or directory

Then the problem may be that you have checked in both YourProject/trunk/someDirectory/foo.html and YourProject/trunk/someDirectory/Foo.html. Try to avoid this. This definitely causes problems on OS X and may on other systems.

To verify, execute “svn list /someDirectory/” and look for two versions of the file, but with different cases.

To fix, execute “svn remove /someDirectory/foo.html” or Foo.html, depending on which one you want to get rid of.

Poor Man’s FeedBurner

I wanted to get an idea of how many subscribers I had to my new blog MacHappy. It’s a blog I started to talk about Mac stuff and also the Mac apps I’m writing which I call Happy Apps.

I thought about using FeedBurner, but I really like hosting my own feeds. Plus I haven’t had the need for their wide array of services yet…except for the readership count.

So back to figuring out how many subscribers / readers for a blog. MacHappy is on WordPress and its feed is at, which means that the feeds all have “/blog/feed” in the URL. If you’re got a WordPress blog, you’ll have the same sort of setup. This blog is hosted on Movable Type, which is a bit different since usually you have atom.xml or whatever you call your feed template (usually ending in .xml). I’ve actually got two feeds here: a feed for everything and a feed just for Eclipse.

Then you download your log file from your ISP.

Then run this nice series of piped commands (for WordPress): grep /blog/feed yourLogFile | awk ‘{print $1}’ | sort | uniq | wc -l

(for Movable Type): grep .xml yourLogFile | awk ‘{print $1}’ | sort | uniq | wc -l

And for my eclipse.rss feed, something like grep .rss yourLogFile | awk ‘{print $1}’ | sort | uniq | wc -l

You should get a nice integer back, hopefully a nice big one. :)

It’s not exact since the same person could be checking from multiple locations throughout the day, but I think I’ll be using this to keep track of the trend.