2008.Sep.21
Filed under: Programming — jon @ 14:28

Trivial but handy utility/function to give you a subversion diff with paging and syntax coloring:

svndiff ()
{
  svn diff $* | colordiff | less -r
}

Pass it anything you’d pass to “svn diff”: e.g., “.” for the current directory, a list of filenames, or options like –no-diff-deleted.

2008.Sep.13
Filed under: Kubuntu, Programming — jon @ 18:24

Here in the underground bunker we have computers named after fruits:

  • lime
  • lemon
  • mango
  • cherry
  • indigo – not a fruit, but replaced “indulgence”
  • oreo – my wife has convinced me that Oreos are definitely a fruit

All machines run Ubuntu server or Kubuntu, and several dual-boot and/or virtualize XP.

Filed under: Programming — jon @ 18:07

The Wordpress RSS widget has two little flaws, in my opinion. Here are my fixes, in case they help anyone:

  1. For an article the widget will provide a “title” attribute that contains the whole content from the article. Since this site implements a tooltip-like hover box for links with a title element, that can get really ugly. The fix is trivial, and involves truncating post content at 500 characters.
  2. When given a feed from my Google Reader “shared items” list, the title of the blog is mashed against the end of the article title. I’ll get things like “Cat Stuck Up TreeRoanoke Times”, which is also really ugly. The fix is somewhat more complicated, and involves not including the “source” element in the article title.

Wordpress 2.6 also finally integrated the ability to log in and administer your blog over HTTPS, so that’s one less patch/plugin I need to track.

Happy hacking!

  • dreamhost.com logo
    Happily hosted by dreamhost.com
  • This site is green.
  • Bike Month
    miles biked47.50
    gallons saved1.36
    dollars saved$5.22
    pounds CO2 saved26.60
    calories burned1677