Revision Control Revision

June 1st, 2009

I’ve been using CVS for revision control for quite some time for a number of different things here, not the least of which being a public repository of scripts and miscellany that I have tossed into the Internet for public consumption. Recently I have started to feel the desire to change to one of the newer version control systems out there. Git and Hg smell a lot of ‘ooh shiny’ syndrome and we use Subversion at work so I was sort of naturally drawn towards Bazaar. It doesn’t help that I’m a huge fan of Canonical and Ubuntu, and as that seems to be the VCS du jour over there these days I figured that this would give me a good excuse to learn it.

The moral of this story as I’m sure no one cares why I chose which VCS is to say that any of the code hosted on my CVSweb and linked to in one of my previous posts is likely to have moved to the new loggerhead interface over at repo.ub3rgeek.net. If you happen to follow me on FriendFeed or watch the home page here, you will see updates from my bazaar commits as they happen.

Fancy, eh?

  

Processing my digital photos

December 21st, 2008

I’ve finally gotten to the point where I HAD to do something about my digital photos. The ~/Photos/lumix folder has over 1100 images in it and it’s just painful loading it up anymore. Nautilus takes like 45 seconds just loading the thumbnails for the folder during which time the scroll bar is jumping all over the place making navigation impossible.

So here is how I finally made this work out in a really manageable way.
1) I wrote a Python script image-process.py that moves the image file to a place in the format of CCYY/MM_Month/CCYY-MM-DD_HH-MM-SS_Exif Make-Exif_Model.jpg, so a photo from my Panasonic Lumix called P1020411.JPG gets moved to 2008/12_December/2008-12-21_19-08-17_Panasonic-DMC-FZ7.jpg

2) Setup Gnome to run my script upon mounting of a device:
Under Ubuntu, navigate to System -> Preferences -> Removable Drives and Media then under the Digital Camera section I enabled “Import digital photographs when connected” and pointed the Command to my script using the %m macro and my script’s -d flag. This passes the location that Gnome mounted my camera at to my script as a directory and lets it do the rest.

3) My laptop is backed up periodically to an external hard drive, so all my photos are more or less safe, barring a catastrophic failure of both my laptop’s hard drive and the external drive.

I am hoping to get bbtrack working on my BlackBerry so I can save GPS tracks, then using the Exif Capture Date and the GPS track my image-process.py can geolocate the photos automatically. I’m sure I will post an update if I ever get that working.

I’d be interested to hear how other people solve this particular problem. Also any suggestions of a decent photo viewing application for Gnome that I can point at my directory hierarchy, that won’t go through and try to move the photos into it’s own crap like F-Spot does?

  

mutt and your gmail contacts

December 14th, 2008

I was looking for contact sync alternatives for my BlackBerry and came across an announcement that Google Sync for the BlackBerry now includes two-way contact sync. I decided that was good enough reason to start using my GMail contacts, something I never did before since I don’t use the GMail web UI very often.

Other than the BlackBerry I use mutt as a mail user agent. I have a few scripts already written to hook mutt into GMail’s outgoing mail server and Google Calendar so I figured if I was going to use my GMail contacts on the BlackBerry I should shim it into mutt’s contacts as well. In my CVS Web is a small Python script that I wrote to do just that.

If anyone finds any of this useful I’d love to hear about it. Ditto for feature requests, bug reports, or patches.

  

6th photo 6th page

December 4th, 2008

6th photo 6th page

I’m such a nerd.

From Thomas Hawk, Via Benjamin Golub.

  

Why social networks are lying bastards.

November 17th, 2008

You’ve seen it I’m sure. Myspace purports “a place for friends”, Bebo says it “is a social media network where friends share their lives and explore great entertainment” and Facebook says it “helps you connect and share with the people in your life.”

They all are lying. Granted it may be a lie of omission, but that’s a lie just the same. What they are forgetting to tell you is that they are little islands of popularity that are only as useful as the percentage of your friends that they have already tempted onto their bosom. Which means that most of us are constantly taunted to join up to one or more of them to connect to our friends, and we can’t shake the nagging feeling that we’re missing out on re-connecting with what’s-her-name, the cutie you snogged back in grade 12 and have been wondering about lately when the lights are low. And pretty soon my friends we have 2 or 3 or 12 different sites maintaining lists of our ‘friends’ with varying (infuriating in some cases) levels of overlap and omission.

Everyone claims the web 2.0 is all about communities and openness and sharing and blah blah blah lies. What we really have is a bunch of people who see what they think is a problem. And they have this grandiose idea of how to organize us and the stream of information we generate daily into useful and manageable pieces. Granted some of these apps work great, but the problem is that they all either seek to lock your entire online world into their framework, or do one thing really well… but only that one thing. The sheer hubris of FaceBook and MySpace trying to lock your friends, and pictures, and videos all up inside their walls is staggering and yet the omission of anything other than the one thing that Flickr of Vimeo does leaves them somewhat lacking. Someday, probably soon; someone will come invent something better than whatever the social network site du-jour is and users will go running abandoning their old profiles to become husks as a snake shedding its used skin. That is life in the big bad void. MySpace becomes GeoCities becomes Prodigy and the cycle repeats.

What I want to see some pervasive, accepted way of having one giant friend list that is bound to me that I take from site to site so I don’t EVER have to rebuild it (or worse: harass my friends to join the new hotness so I can ‘friend’ them.)

I don’t care what it is under the covers be it FOAF, or XFN, or some other thing that someone else invents, or hell all of them. I just want one goddamn friend list that I can take everywhere.
Granted this means something like XFN is going to have to get into bed with something like OpenID, but damnit the technology is there and wouldn’t you rather keep all these little husks of Internet identities all tied together and relevant?

I started thinking about this a little while ago and was set off by an update by jwz on his livejournal. My irritation at this phenomenon became even worse when I started to organize all the profile pages I had out there. It is getting so cluttered that most of the information out there about me is old, unloved and abandoned.

Something really needs to be done.

PS, you can follow me on:

to name a few…

  
Mood : irritated

Edinburgh, London, and back in time to vote.

November 4th, 2008

What a whirlwind week, last Tuesday I flew from Rochester to Edinburgh to finally meet a friend from one of the IRC channels I frequent. So I landed early Wednesday morning and we spent some time wandering around Edinburgh. I can report in that in fact Haggis is actually pretty good, and in spite of what I’ve heard about the Guinness the USA gets being different from the real stuff, it’s really not.

Thursday morning we picked up the rental car, which was a pretty spiffy new Audi A4 Advant TDI (btw, the future is here folks, I got 42MPG in a wagon… gooo diesel) and promptly drove out of Edinburgh and headed south towards London. I admit that driving around the city was a bit of a white knuckle ride but once we got out on the A702 it was nothing but clear skies and beautiful countryside. We tossed on some awesome and classic tunes and bombed through the countryside zipping from classic English roadworks to classic English roadworks pausing only to eat shitty fast food at rest stops. We rolled into London at about 21:30 and checked into our hotel and flopped to sleep.

Friday we returned the rental, which taught me that London biker dudes (motor bike and pedal bike alike) have no fear at all and that the cars give exactly enough space to them and not a millimeter more. It was a bit harrowing but we made it through without any major problems. I am really glad we didn’t just fly or hop a train. After wandering around Camden a bit we scoped out the venue for the show and ate at a place called “The Diner.”

The show was amazing. It was crazy to see an electronic band pull out the stops like this. There were 2 guitars, a bass, a cellist, DJ, and flautist! Not to mention a crazy monk male dancer dude with eyes on his back, 3 go-go dancers, and a pair of costume-changing female vocalists who performed the chanting and wailing live. I’m not as much of a Shpongle fan as some in my group but I can tell you the show really impressed me. There wasn’t a single song I didn’t enjoy and it was just about 2x as thumpy and loud and insane as I’d expected. At one point during the encore they brought out a guy with a steel drum that sounded exactly like the the generic trance steel drum sample…. It was beyond amazing. The hoodie I bought says it all “I was Shpongled”

(From Wikipedia’s Shpongle article)

On October 31 2008, Shpongle played a sold out live concert at The Roundhouse venue in North London - this was reportedly only the third concert they had ever played together, although Simon Posford often plays Shpongle DJ sets. As well as Raja Ram and Simon Posford, the band featured Andy Gangadeen (drums), Nogera (percussion), Chris Taylor (bass), Pete Callard (guitar), cello and Dick Trevor (keyboards and programming); Michelle Adamson and Hari Om (voices), three dancers and for one song only Manu Delago on hang drum.

Saturday I got a taste of the official English weather. It was cold (about 5°C) and rainy. We did some more walking around Camden and I started to get sick. Later that night Stevie met up with his girlfriend and we took the tube up to London Bridge and wandered around a bit.

Sunday we got a nice day and spent it wandering around some of the more ‘historic’ parts of London. We went from the London Eye, past Parliament House, Big Ben, Westminster Abbey, Whitehall, and the Royal Horse guards. Then we walked up to Trafalgar Square, past Buckingham Palace, stopped to eat at Chinatown and then back to Camden. It was really awesome and I got a really neat sense of the city. There is an amazing feeling as you’re walking by monuments and buildings from ages long ago.

Monday morning we got up at 05:00, hopped on the tube at Camden, got to LHR at about 07:00, flew to JFK, chilled until 14:30 EST, then flew to Rochester arriving at about 16:00 EST. It was a whirlwind tour and I’m still trying to absorb how awesome it was. It was great to finally meet Stevie and it was really awesome to go visit the UK.

A whole bunch of pictures are up over at my Flickr page

There’s so much more I want to do and see in the UK, so I can’t wait to go back. Also Stevie needs to come see this side of the pond now.

I’m sure there is a ton of stuff I’m forgetting, but I need to watch more of the Comedy Channel election coverage…

  

twitterpy and lastfriends

October 21st, 2008

I keep forgetting to write something about these guys. I wrote a pair of Python scripts to watch my Last.FM and Twitter friends and pop up a little bubble when something new happens.

There are Ubuntu packages available in my PPA over on Launchpad for both of these guys that should work just fine on 8.04, and hopefully will be updated to 8.10.

For those of you not using Ubuntu, my CVS repository has the scripts themselves that you are welcome to try out.

~mernisse’s Launchpad PPA
my CVS web interface

  

Mutt and Google Calendar

October 20th, 2008

I’ve been meaning to throw this out there for a bit. I wrote a little python shim to connect mutt to Google Calendar. My particular use-case is as follows. I use fetchmail to connect to a Microsoft Exchange Server at work which delivers mail into an IMAP account that I check with mutt. Appointments and conference calls show up as .ics files attached to messages. I use Google Calendar connected to my BlackBerry to keep track of all the stuff I do so I need a quick and easy way to get those events out of mutt into my Google Calendar.

Enter ics-gcal.py.

I associate this script to the ics / vcs files and simply exec the attachment from within mutt. This adds it to my Google Calendar.

You can find the script in my CVS web repository.

I’d be super interested if anyone else finds this useful.

  

Sirius Radio on my PS3? Yes Please!

October 3rd, 2008

So it looks like the svn version of mediatomb (which will become 0.12.0) now supports streaming PCM audio to the PlayStation(R) 3! This is super good news. So I went and updated my Python shim between Sipie and Mediatomb to output PCM.

You can get mediatomb-sirius.py from my CVS repository by visiting this url:

http://bagend.ub3rgeek.net/cgi-bin/cvsweb.cgi/misc-scripts/mediatomb-sirius.py

Once I have the config sorted out, I will post more.

Edit:
I got FLAC streaming working, and shot a quick video of it in action.


Showing off Mediatomb transcoding FLAC to the PlayStation 3 from Matthew Ernisse on Vimeo.

Edit 2:
I got the sirius stuff working finally, had to overcome a few really annoying behaviours of all the bits involved, but it seems like it is working pretty well. You can head on over to the http://www.ub3rgeek.net/wp/sirius-on-the-playstation-3/ page for more details and another video.

  

Hepatitis sucks a lot, don’t get it.

September 27th, 2008

Words to live by I guess. I find out in 3 more weeks if I’m all better and back to normal and if I am allowed to imbibe alcohol again. I am just glad I’m not yellow and in a ton of pain anymore. I am glad it cleared up in time for the rest of my travel this year, though it did screw up PAX for me pretty bad. Maybe I’ll get a chance to go again, though not next year if both China and Australia work out.

(To be clear, I’m talking about this: http://en.wikipedia.org/wiki/Hepatitis being an injury to or inflammation of the liver, not the viral Hepatitis A-E strains) I find out in 3 more weeks if I’m all better and back to normal and if I am allowed to imbibe alcohol again.

  

Baby, I’m coming home…

September 22nd, 2008

I am almost done with my week here in San Francisco. It has been really good and most importantly relaxing. I got out a bit today and did the touristy stuff today down by the Fisherman’s Wharf. I took a few pictures.

Internet stalking update:

  

Things I demand…

September 22nd, 2008

Dear Roku / Sony
Hulu.com support now please. If the PS3 gets it first I may still buy a Roku box once NetFlix has a better selection of stream-able movies. Though if the Roku box gets Hulu first I’d buy the thing RIGHT NOW. And while I’m ranting, Sony, you still have to address all the other things I bitched about

BBC iPlayer Guys:
I would subscribe to get access to iPlayer right now. Please figure out a way to take my money!! I would also like PS3 streaming akin to the Wii one, it shouldn’t be hard, the dude at PS3 iPlayer made it work.

Also: a pony.

  

Relaxing in San Fran and a little play with HDR

September 21st, 2008

SFO HDR Composite It is now mid day 4 of my vacation here in San Fran and the last two days have been pretty relaxing so far. I got to hang out with mjw and jrrs a bit and got a belly full of yummy sea food and sushi for my birthday. I figure tomorrow I will do some random touristy stuff just to say I did before I have to fly out Tuesday afternoon. So far I think this is a pretty neat city if not a tad expensive but I guess most real cities are more expensive than home.

So I figured that I’d play around with taking a few pictures today while doing the relaxing thing, and the above is a 2 image ‘HDR’ composite of the view out of one of the windows of my gracious host’s apartment. I think it came out better than the 3 image version so I left the light mask off. This was taken with my Lumix DMC-FZ7 using a stack of hockey pucks as a tripod. The original image, and a larger copy of the composited version is on my flickr photostream. Hopefully tomorrow when I do the tourist thing I’ll grab a handful more snaps so I have some actual proof that I was here other than a credit card bill.

  

Yarrr

September 19th, 2008

talk like a pirate day

That is all.

  

I failed at Seattle, let’s try San Francisco

September 14th, 2008

So I tried to go to PAX in Seattle 2 weeks ago (the few pictures I took are at http://www.ub3rgeek.net/gallery/pax08) and ended up getting extremely ill and being basically unable to leave the hotel room the whole time. It is a testament to the Seattle Sheraton that I had as good of a time as I did, the hotel is gorgeous and the staff is extremely kind. Thankfully Tim got to go go PAX, so I expect he’ll have something posted over at midlifegamer.com. Of course by now everyone who wants to read about PAX probably has.

So the plan now is to go visit some people out in San Francisco this coming week which happens to be my birthday. I have been going through a bunch of medical tests to find out what I had over the last trip and to see if I am better, so depending on what the doctor says tomorrow we will see what happens. Hopefully he’ll clear me to travel… and clear me to drink again so I can enjoy my birthday with a bit of whisky.

So if all goes well, you can once again internet stalk me thanks to Flightaware

Wish me luck! The NetApp guys say I have to get down to Fisherman’s Wharf, I’d like to catch a show at DNA Lounge, and I hope rmance, or mjw can find me some yummy sushi.

  
  Music : Radiohead, In Rainbows BBC Radio 1 interview

…cause I’m leavin on a jet plane…

August 27th, 2008

Internet stalk me all the way to PAX’08 thanks to @nugget and FlightAware!

0610 US/Eastern August 28th: http://flightaware.com/live/flight/TRS586
1128 US/Eastern August 28th: http://flightaware.com/live/flight/TRS11

See you guys there!

  

Why the PlayStation Network is still flawed

August 17th, 2008

Let me first say that I have been a fan of the Sony PlayStation since it first came out and I’ve given Sony a lot of slack seeing as they are playing major catch up here. The PlayStation 2 came out before everyone realized that this online thing was important, so the XBox had a huge advantage getting late into the game. XBox Live is indeed the bar right now in online gaming on the console. Sony has come a long way towards catching up, but still has a long way to go. The ingame XMB is a big start, but here is what I see as the big drawbacks still

  • Very few games support the 2.41 features (trophies and custom soundtracks).
  • Downloads don’t continue during much of the activities (Watching DVDs, BDs, while turned off)
  • The PSN PID is a start, but no XML status feeds exposed to the public internet, so no real time badges, or web2.0 mashup services (like mygamercard.net)
  • Better than XBox 360 media support, but still very incomplete. (MKV, various DiVX profiles, various h.264 profiles unsupported)
  • The video store is a good start but the selection is weak, and there is no point when I have a NetFlix subscription. A monthly subscription model would go a long way here.
  • Content, while the XBLA gets games like Geometry Wars, and Braid, and to date there are no really notable 3rd party PSN titles. Sony truly needs to fix this. Home is not going to satiate us, we want content.
  • Japan gets a ton of PS1 titles on the PSN, we have what, 7? The only one we have that I care about would be Castlevania SOTN, the rest are lame. We want more.
  • Better “what you are doing” support. It only shows what game you are playing. I spend most of the time watching movies. It would be nice for my friends to know what I was watching or listening to.
  • The web browser is pretty sucky, the flash player is total crap. Having YouTube and maybe even Hulu support right from the XMB would be excellent.

I love the PlayStaton 3, I use it for hours a day… to watch videos… There have been a few really amazing titles for the platform, and a few more are coming out but for the most part I spend much more time using the PlayStation 3 as a media platform than a game platform. There have been very few PSN titles worth mentioning, versus the number of times that I am sad that I don’t have XBLA.

Come on Sony, please. This isn’t a huge laundry list, you can do even if you have to beg borrow and steal from XBL.

That is the bar you have to reach.

  

MPG Gloating

August 11th, 2008

I just reconciled the last two gas receipts for the Pennsic trip, going down: 317.4 miles on 8.825 gallons ($3.779/gallon $33.35) for 35.96 MPG and coming back: 328.0 miles on 9.63 gallons ($3.739/gallon $36.01) for 34.06 MPG. Not bad for a car with a EPA estimated 32 MPG highway (in 2003!)

  

I’m back. It is nice to be home.

August 9th, 2008

There are no words to describe the last week, relaxing in the woods with 10,000 other people, falling asleep every night to the sound of drums, waking up to the mournful drone of bagpipes. The people were extremely friendly and I felt at home from the very moment I arrived on site. To all my new friends thank you for a wonderful year.

I came home to a pile of mail and found that my badge for PAX at the end of the month. Time to unpack, relax and enjoy flushing toilets and municipal water. The few pictures I managed to take are in the gallery

  

To WAR!

August 1st, 2008

The car is packed, the house is locked up and everything is off. I have my map printed, my camera charged and my PTO scheduled! T-1 hour until I take off.

  

ub[3]rgeek.net is Digg proof thanks to caching by WP Super Cache!