4 More Hacks

Last week was a Mozilla Corporation all-hands, which is typically an exhaustingly generative time. Some of these bits fell out, in the interstices between working and sleeping; the drinking times.

Bugzilla History Jetpack

I put together a jetpack to annotate show_bug output with the bug’s activity, so that you can track flag changes, state changes, reviews, &c. The idea was all beltzner‘s originally, but I’ll take credit for the half-assed implementation, anyhow.

If you don’t yet have the jetpack engine installed, go get that first. Once you’ve got that, you can grab the bugzilla jetpack itself.

[N.B. Since that's just my generic bugzilla tweaks jetpack, you will get, for no extra charge, the one-liner that removes "Bug " from the start of bug titles, so that the bug number fits better in your tab strip. At some point I'll probably add it to the jetpack gallery without the ride along, but you want it NOW.]

Flic.kr Jetpack

I also fixed flickr so that photo pages which have a flic.kr shortform URL have that URL added just below the photo, for easy copying. It’s also a jetpack. This one I actually added to the gallery, grab it here.

EXIF in Flickr

One more jetpack. I wanted to play with flickr’s awesome, awesome API, and I want EXIF data for flickr photos without a separate page load and I didn’t want it to look very nice. Presto.

Jury-rigged IRC

On the flight home, we had an adhoc wifi network running, which enables 1-on-1 iChat but is no good for multi-party. None of us had an ircd kicking around, so I knocked this together. It mostly works, but I bet you can offer improvements. (yes, nc would have worked here too, but ncat is neat, and does SSL).

Server:
tail -f log1 | ncat -lk 2000 >> log1

Client:
cat - | sed -l "s/^/[`date +%H:%M`] < @johnath> /" | ncat 2000

Extra Credit

  1. Before making the history jetpack, I had it mostly working as a bookmarklet in 498 characters. Can you make it tweetable (140 chars)?
  2. The history jetpack is scraping the show_activity content instead of using the new REST API. Patches accepted?
  3. The EXIF jetpack should do a nicer job of highlighting what matters.
  4. Local echo on the chatroom was kind of annoying, we ended up opening two “clients” each – one for typing into, and the other for seeing the unmunged chat stream. Got a better one liner?

12 comments

  1. I should say that none of us had a ready-built ircd lying around. Chris AtLee and Jeff Muizelaar built one – on the flight.

  2. Surely you can drop the “cat – |”? Also, you could eliminate your echoed-back lines with:

    sed “s/^/[`date +%H:%M`] /” | ncat 2000 | grep -v ‘^[^ ]* ‘

    Although that leaves you with the unprefixed lines, sadly. My Unix-fu is too weak to remove those and let you keep the prefixed lines.

  3. Of course it ate my brackets instead of escaping them. Let’s try again:

    sed "s/^/[`date +%H:%M`] < @johnath> /" | grep -v '^[^ ]* < @johnath>'

  4. I’ve been suffering at the hands of nc for years, unaware of ncat. Thank you for pointing out its existence.

  5. meandering wildly » 4 More Hacks…

    Bugzilla History Jetpack I put together a jetpack to annotate show_bug output with the bug’s activity, so that you can track flag changes, state changes, reviews, &c. The idea was all beltzner’s originally, but I’ll take credit for the half-assed imple…

  6. thank you for spend time to share the good post.

  7. Hi I don’t know much about it, still learning to figure out how it work well. thank you for such great info.

  8. It’s also a jetpack. This one I actually added to the gallery.

  9. [...] while ago, Johnath unleashed the Bugzilla Tweaks jetpack, which implemented Beltzner's original idea.  This jetpack adds the information regarding the [...]

  10. [...] and productive.  If you have never heard about it, it would be a good idea to first read Johnath's original post and then my previous [...]

  11. I have made extensive comment related to this post on my blog http://mcepl.blogspot.com/2010/01/jetpack-which-turned-into-mid-range.html

  12. [...] to Johnathan Nightingale for starting the original version of this extension in form of a jetpack, and Steve Fink and Heather Arthur for their code [...]