Archive for August, 2006

Starting a new subversion repository

Tuesday, August 29th, 2006

Because I can never remember:

svnadmin create /home/kylo/svnrepo

svn mkdir file:///home/kylo/svnrepo/trunk -m “Add trunk”

svn mkdir file:///home/kylo/svnrepo/branches -m “Add branches”

svn mkdir file:///home/kylo/svnrepo/tags -m “Add tags”

svn import /tmp/foo file:///home/kylo/svnrepo/trunk/foo -m “Import sample source from foo”

tracing a sed command

Friday, August 25th, 2006

I have long been happy to do the simplest of tasks with sed, or better yet to harvest other sed scripts for usable magic. Thought I’d figure it out a bit more this time.

Like why does

sed 'N;$!P;$!D;$d'

delete the last two lines of the input stream. (Downloaded here.)

sed operations that will take place:

  • First thing sed reads in the first line of the input stream (sans \n) into the pattern buffer, then it will execute the series of commands on the pattern buffer.
  • “N” appends a \n and the next line of the input stream (sans \n) into the pattern buffer. A prepended $ means: only perform this command on the last line.
  • A prepended $! means: only perform this command on all-but-the-last line.
  • A “P” means print the first line out of the pattern buffer.
  • A “D” means delete the first line out of the pattern buffer and iff the pattern buffer is non-empty don’t execute more commands but start the next pass.
  • A “d” means delete the pattern buffer.

So, take an input file with 4 lines:

1
2
3
4

Here’s what happens at each stage of the above command (boldface indicates printed text, non-bold indicates contents of the pattern buffer).

Pass # pattern buffer before first pass pattern buffer after “N” printed by “$!P” pattern buffer after “$!D” action of “$d”
1 “1″ “1\n2″ “1\n” “2″
2 “2\n3″ “2\n” “3″
3 “3\n4″ exit

Othello

Sunday, August 20th, 2006

Yep, never read Othello before and I decided it was high time. Unfortunately, I read it about a month ago and am just now getting around to writing on it. Ah well. Two main thoughts:

1) Not Shakespeare’s greatest. There are some good lines and you’ve got some potent themes of jealousy, class, race, etc, but the characters didn’t really grab me, and he’s done much better for tortured love, e.g. Troilus and Cressida. And he couldn’t even muster up a subplot or a wise jester character to spice it up. Iago is sufficiently villainous to cover that base, but honestly this was my least favorite in my recent mini Will-festival (also Midsummer Night’s Dream and Richard III). I’m curious what the history of Othello’s reception is.

2) Can I just say that I didn’t think this play was a whole lot about race? And to the extent it was I didn’t think it was about “black” men? I saw it as more about class if anything, with Othello being a sort of sexy construction worker for the time, with an Oriental exoticism. I’m sure there’s reams of scholarship on it, but I can read this highly historicized — did Elizabethan England have a conception of black-ness or other-ness anything like ours today? Probably not, and it would make some interesting sleuthing, but it’s going to be a stretch to read this as bearing on contemporary race relations in any but an abstract way. Or I can read this divorced from its historical context, in which case I see an Omar Sharif playing Othello, the basic significance is little more than swarthiness, and I go back to it’s more about class than race per se.

Ah well, there’s lots of other great Shakespeare to read. Back to the book pile ….

Quotations:

To mourn a mischief that is past and gone/Is the next way to draw new mischief on. (I,3,234-235)

Knavery’s plain face is enver seen till used. (II,1,334)

Alpine Trail, Oakridge

Wednesday, August 16th, 2006

Rode this today (August 16th, 2006). Super fun; the North Fork trail for the first 3 miles is fun but thorny in parts and plenty of poison oak (you could certainly skip this and ride the pavement on the other side to the bridge). The climb on 1910 seems neverending but it’s 8 miles and pretty reasonable — the first half is the steepest so keep gutting it out. At the Windy Pass, I kept riding up 1912, and then kept riding up 140. After a couple miles on 140, I decided I was getting tired of climbing; I looked around for the FS road that the map shows cutting over to Alpine but it’s gone now, so I rode back on 140 to 1912 and picked up Alpine Trail there (had to look a little). The first leg to Windy Pass is quite fine single track; shouldn’t be missed. Then down 1910/1911 for .6 miles to pick up the main attraction and bombed down the Alpine Trail. It’s actually quite an intermediate trail, but it is big fun and it does have a lot of exposure during some brief sections. Ultra classic westside single track.

North Umpqua Trail

Sunday, August 13th, 2006

When my company folded, I had a chance to ride the N Umpqua at last. However, since it was a last minute type thing I couldn’t coordinate a partner so had some shuttle logistics. I rode all but the Tioga segment over 3 days:

Day 1 (8/8/06):

My wife drove down to meet me the night before at Toketee Lake Campground and so I got a car shuttle this day. She was almost out of gas so she just dropped me on the Windigo Road. This is an easy gravel road down to the Lemolo segment. Lemolo was enjoyable, very narrow, gently rolling, narrow single track. I’d rate this Intermediate.

Dread and Terror was the next segment and I would rate this Advanced+. I give the plus not because it’s ever crazy technical, but the difficulty is increased by it’s being narrow, overgrown, and steep dropoffs. I did a couple of side flips off the trail when I tried to dab during a tricky spot and my foot went through the vegetation and just kept going so I somersaulted down the hillside. I chose good places to do this and only went a couple body lengths but in the wrong place this could be very dangerous. D&T also gets bonus points for the hornet’s nest I pissed off (3 stings).

Last segment of Day 1 was Hot Springs; short and straightforward, Intermediate. The eastmost bridge (near the Hot Springs) is out so I just rode FS 3401 down the next mile or so and picked the trail back up. The river is crossable there (we did it the night before to check out the springs — fun!) but it’s on a narrow log and I wouldn’t want to carry the bike across. Just before the Hot Springs I saw the only people of the day, camped across from the springs.

Day 2 (8/9/06):

Logistics: I dropped and locked my bike at the Toketee turnoff, drove down to Horseshoe Bend and left my car. Hitched back (got a ride in 10 minutes) to Toketee, rode back to the campground, changed, and then rode out to the trail.

Deer Leap segment was first and might be the best segment of the whole trail. Very enjoyable rolling terrain, intermediate difficulty, very quiet. You get up high above the river and really get a feel for the terrain; very nice.

Jessie Wright segment was next: very fun; I’d call it advanced for some rocky bits and a big steep climb. The transition at Soda Springs TH isn’t marked at first — turn R when you come onto the road and just ride the road downriver for a mile and a half.

Marsters segment: nice, intermediate; fun way to end the day. When you come out at Highway 138 looking for Marsters TH, turn upriver on the highway to cross the river — this is very clear on the FS brochure, obscured on the Treadmaps. I ran into my first cyclists of the day on the tail end of this segment. Western Spirit was running a guided group down this trail and someone flatted. They all seemed nice.

Day 3 (8/10/06):

This day I was feeling tired and didn’t want to hitch, so I decided to do Panther and Mott as a loop. I dropped my car at the Steamboat turnoff (midway) and rode up 138 to the Panther TH. 138 doesn’t have much shoulder but it doesn’t have much traffic either (9 cars passed me in 4.5 miles on the highway), so not bad for the only pavement of the trip. Panther segment was a nice moderate bit with some steep ups but highly rideable. I was the only one on the trail, but when I took a scenery/bio-break and chilled, the Western Spirit group started to catch up with me. I didn’t want to wait for 15 riders to pass, so I jumped in after the first group of 4 or 5. Riders get spaced out nicely so it was still pleasant.
Mott segment was enjoyable (and organized groups aren’t allowed to ride this bit); moderate — I cleaned the entire first half of it (rare for me) and only had to walk a couple short bits in the second half. When I got to 138 I went upriver to Bogus Creek CG and then took the Riverview Trail back to the car. This makes a nice loop; Riverview is a pleasant ride and even has some single-track-ish parts.

Overall:

Great ride! I’ll have to go back do the Tioga segment to be complete but it was fun riding. I’d say that McKenzie is a superior trail for packing more variety, more views, etc, but is also shorter and more travelled — other than that organized group, I saw *no one* anywhere on the trails, hikers or bikers, pretty cool.

Poison oak: lots of it on the lower segments, especially Panther/Mott, probably Tioga too. Maps: Treadmaps was useless; the trail is clearly signed, so the only navigational help needed is at the trailheads, and the Treadmaps map obscured these with a big TH symbol, whereas the free NFS brochure had blowup pix to make clear where to turn. Shuttling: I only hitched one day but it sure was quick; I bet it’s generally no problem.

Do it!