I hiked out to this place last weekend. About 10 miles round trip, maybe 11, I had to backtrack a couple of times. This bridge was built in the 30s as part of a road that was going to cut through Angeles National Forest. A flood washed the road out before it was completed, and the project was abandoned, but the bridge still stands, reachable only on foot. Today the bridge itself is owned by a bungie jumping company, who lead trips to it on weekends. You can see someone dangling down there; watching people jump off this bridge was lots of fun.

I’m also using this post to test geotagging features on the site. There should be an embedded Google Map below with the bridge’s location, and the new Map page for the site should show markers for all geo-tagged posts, including this one and a few random others I went and tagged.
Tags: geotagging, Hiking, maps, Meta, pictures
Posted
July 28th, 2010 in Hiking
|
No Comments »
iTunes smart playlists are actually fairly complex boolean expressions (since iTunes 9, previous versions were not as robust). This page describing iTunes library management contains more text than the entire Lua 3.0 manual! (I’m cheating here, Lua is on v5.1, and the manual is more than twice as large these days, but the point still stands). Via dropdowns and text boxes you’re practically writing SQL WHERE clauses when creating a smart playlist.
Yet for all that complexity, there is STILL no way built into iTunes to make a Smart Playlist that can precisely select between High-def and standard-def TV Shows and movies.
My compromise is making a playlist that selects shows between 20 and 31 minutes that are greater than 500MB, and shows 39 minutes or longer that are greater than 900MB. Those numbers aren’t very precisely chosen, but they seemed to work properly for all but one episode in my library, there was one hour long episode that says it’s “HD” but is only 600MB, I ignored that one, but it illustrates why this is such a bad solution. There are standard def shows that are nearly 600MB in my library too.
The compromise some people come to is manually adding an HD Tag to the composer, description, comments, or some other field, but the whole point here is that I’m trying to avoid manually doing anything to differentiate them. I could just as easily add all the HD videos to a dumb playlist, and then select on that playlist in a smart playlist.
I’ve had this frustration for at least a year, since we first got an Apple TV. When, when, when will Apple fix it? Or if they have, then when, when, when someone on the internet figure out how to do it?
Since the thing I wanted this playlist for is already an Applescript that’s iterating TV Shows from a playlist, I suppose the “solution” in this case is to make the Applescript able to differentiate. The filename actually has an “(HD)” in it for HD episodes, and Applescript does have access to filenames, but iTunes proper can’t select on filename contents.
On the other hand, the horror of having to actually write more than a few lines of Applescript caused me to write just enough to be able to call out to a python script instead. So there’s a whole ‘nother rant about crappy Apple “programming languages” right there. I do realize that Python can use Applescript interfaces directly, but then it’s harder to just Download a script that almost does what I want and fix the parts that don’t.
Tags: Apple, applescript, itunes, Programming, python
Posted
May 16th, 2010 in Uncategorized
|
No Comments »
Yesterday, I managed to install the new version of emacs on the server that hosts this blog. I know what you’re thinking, amazing, right?! Well yeah, but I did it sitting on my mom’s couch (happy Mother’s Day, mom, don’t mind me while I sysadmin) with nothing but an iPad and iSSH. Not only did I install it, I can actually use it. And blog about it.

None of it as easy or as fast as it would be at a “real” computer, but I’m pretty happy I was able to do it.
I guess that’s hundreds of dollars spent in order to emulate a 32 year old dumb terminal. Sounds like a bargain to me!
The hardest part of all of the above? Getting the links and pictures in this post. The WordPress software for iPad really kind of sucks. I did this via the web based HTML Editor. I probably should’ve used emacs.
Tags: Emacs, iPad, unix
Posted
May 9th, 2010 in Uncategorized
|
No Comments »
I don’t really care if the world knows all this, I just resent Facebook making it ever harder for me to control. So my Facebook profile is now almost devoid of info besides a link to this site. Also It thinks I was born in 1992. You used to be able to edit your birthday, so I did, often, just to see what ads I got for different ages (and because they never let you leave the year blank). Now you can’t, so I’ll be 22 years younger forever since the last time I played with it I made myself 18.
Things Facebook used to know about me include:
I work at Blizzard
I live in San Clemente, CA
I attended UC Riverside and Dana Hills High School
I “like” Rock Sugar (the band), Bruce Campbell, Have’a Corn Chips, Swiss Army Knives, and half a dozen other random things
You can find various ways to contact me over there on the About/Contact page.
Also, this is my first post from an iPad. Typing on it really doesn’t suck!
Tags: facebook
Posted
May 3rd, 2010 in Uncategorized
|
No Comments »
Did this today:
03/13/2010 Route
The hardest (though not tallest) hill, had already walked down it, this picture was on the way back. The trail on the left and all along the ridge in the background to the hill at the right.

Posted
March 13th, 2010 in Hiking
|
1 Comment »
I sometimes have incoming high-def video in formats that are not directly compatible with AppleTV. I had been using iFlicks and an El Gato Turbo.264 HD encoder (a USB dongle with H.264 hardware innit), but lately that started producing bad output – I think the hardware was going bad as even the official software had the same results. It was great while it lasted, it allowed the poor overworked Mac Mini that was doing the encoding to do 720p transcodes faster than real-time. I should note that iFlicks’ author has actually recommended not using the El Gato thing, he mentions audio sync problems, but I never saw that, just frequent badly encoded video after mine started to go bad.
I’ve now switched back to software encoding using Handbrake. To that end, I wrote a tiny little daemon that watches for files in one directory, encodes them, then moves them to the folder that iFlicks is watching and trashes the original. iFlicks will then add meta-data (it searches thetvdb.com based on the file name), and finally send the file off to iTunes (which will then sync it to AppleTV. WHEW that’s a lot of steps, you see why I need to write myself things to help?)
iFlicks can do software encoding itself, but it just uses Quicktime, which is a whole hell of a lot slower than Handbrake. Handbrake still doesn’t do 720p at real-time on a Mac Mini, but it’s only about half real-time, as opposed to Quicktime, which was taking 4-8 hours to encode an hour of video.
The script also gives me Growl notifications, and I have the Prowl app on my phone, so I get push notifications when encodings start and finish too.
Code after the jump.
Read the rest of this entry »
Tags: encoding, iFlicks, iPhone, Programming, python, video
Posted
February 28th, 2010 in Uncategorized
|
No Comments »
I have a Kindle. I like it a lot, but it has some issues. The recent Macmillan vs. Amazon fight is one. Another is the DRM on every file purchased from Amazon. If I buy a book, I want to know that I can read it forever. Luckily, smart people figured out how to break the DRM on most Kindle books a long time ago. A few books are in another format called Topaz that until recently hadn’t been broken. I just found a book I wanted that was in that format, so I went and looked again, and it turns out someone finally cracked it about a month ago.
I’m not going to link to any of the actual tools here, but they shouldn’t be too hard to find. My contribution is an SConstruct file for the SCons build system that automatically copies all my books to my computer and removes the DRM all in one step. It’s not your typical use of a build system, but when I thought about what I was trying to do, I realized it was really just a simple dependency graph, something SCons is perfect for.
The complete process is:
- Plug Kindle into computer via USB
- In a shell, cd <path/where/this/file/lives>
- scons
This will automatically get any new books, and remove the DRM (and in Topaz’s case, convert them into svg files viewable in a browser)
Installation is not difficult either:
- Install SCons
- Put this SConstruct file in the directory where you want to save your books
- Get your Kindle’s PID and put it in the SConstruct file (the DRM tools will tell you how to do that)
- Edit the location your Kindle gets mounted to. The one I have in there is for a Mac, but except for that path I don’t see any reason this won’t all work on any OS
- Put the DRM tools in a tools subdirectory
SConstruct file after the jump
Read the rest of this entry »
Tags: amazon, drm, ebooks, kindle, Programming, python, scons
Posted
February 21st, 2010 in Uncategorized
|
2 Comments »
Lnorigb‘s been going nuts showing off our home improvements today. Yet somehow she forgot to show off the MOST IMPORTANT PART!
Here it is, the Casa Rumz server closet!

HELL YEAH!
And yes, the most powerful device in that whole thing is a Mac Mini.
Posted
February 20th, 2010 in Uncategorized
|
2 Comments »
Lnorigb‘s been bugging me to give her a thing in her calendar that tells her what day number each of her projects is on, so that her blog entries can be accurate. I finally wrote up this crappy little python script to do it. Requires the icalendar python package (easy_install icalendar). I just set up a file like:
Towner
90
2009/11/18
2009/12/25
2010/01/01
Which tells my script to create an iCal event every day for 90 work days named “Towner, Day ##”, and don’t count Christmas or New Year’s day as work days.
Not shown is the bit at the end that uploads the resulting .ics file to a web server, which then allows Lnorigb to simply subscribe to it in iCal. So if I make any changes in the output, like skipped days, increasing or decreasing the total count, or just general improvements, her calendar will automatically reflect the changes.
This is isn’t the best code I ever wrote, but it gave me an excuse to put a syntax highlighting plugin on the blog. And it’s not like I’m expecting to have to do a lot of maintenance work on it. Of course now that I’ve said that, it’s obviously going to cause me grief for many years. Eventually I suppose it will need a full fledged scheduling application, complete with payment calculators for her workers based on facial recogonition of the posted pictures on her blog, auto-blog posting, twitter updates, a related facebook application, and RSS feed generators. All of the above will be driven by the nine million state version of the stupid little state machine parser at the top of the script.
Yeah, don’t write code you’re not willing to maintain.
(Code follows after the break.)
Read the rest of this entry »
Tags: computers, lnorigb, Programming, python, Web
Posted
February 8th, 2010 in Uncategorized
|
No Comments »
Just walking around town pictures. This is one of my favorite stops. There’s an actual town right at the pier where the ship is docked, not an hour’s bus ride away like so many stops. And the town is nice and clean and beautiful. It is a tourist town, but at least it’s right here! Hurray!



Posted
December 30th, 2009 in Uncategorized
|
No Comments »