Somewhat Daily Mutterings http://www.samoht.com/weblog/gemcast.rb Somewhat Daily Mutterings http://www.samoht.com/gemcast_images/header_portrait.jpg samoht.com http://www.samoht.com/weblog/gemcast.rb Ooooh, I'm Neo http://www.samoht.com/weblog/gemcast.rb/Miscellany/neo.html <p> <img src="http://images.quizilla.com/T/trinitykills/1052702439_esQuiz3neo.jpg" border="0" alt="You are Neo"><br>You are Neo, from "The Matrix." You<br>display a perfect fusion of heroism and<br>compassion. <br><br><a href="http://quizilla.com/users/trinitykills/quizzes/What%20Matrix%20Persona%20Are%20You%3F/"> <font size="-1">What Matrix Persona Are You?</font></a><BR> <font size="-3">brought to you by <a href="http://quizilla.com">Quizilla</a></font> </p> Very Weird Hack http://www.samoht.com/weblog/gemcast.rb/Miscellany/cute_trick.html <p> OK, so I think some genius figured out how to hack my <i>Recent Googles</i> feature. There is <i>no</i> content on my site that matches: </p> <p> "Santorum lube fecal matter anal sex" </p> <p> Yet, there's a referer_log entry indicating that Google referred just such a search to my site (to the <a href="http://www.samoht.com/weblog/gemcast.rb/Programming">Programming</a> category. I looked up the IP address of the searcher, and determined that it's from New Jersey. The genius must have faked referer headers to my site to make it look as though content matching the search was served from here. A cute trick. </p> FYI: Lines of Code for gemcast v0.0.4 http://www.samoht.com/weblog/gemcast.rb/Programming/Projects/Gemcast/loc.0.0.4.html <p>Stats produced by the 'loc' script included with the <b><i>gem</i>cast</b> distro: <pre> Including def/end 455 Excluding def/end 300 </pre> New gemcast Features! http://www.samoht.com/weblog/gemcast.rb/Programming/Projects/Gemcast/newstuff2.html <p> OK, I'm excited. I finally got around to adding a couple of new features to <b><i>gem</i>cast</b>. First, each entry's Category line is now a link so you can jump to that particular category and read only that category's content. I started implementing this in code when I realized that I could do it via the template if I'd only publish the site's base URL as an template replacement attribute. So, it still took an additional one line of code, but obviously nothing fancy. </p> <p> Secondly, I finally got around to "fixing" my Category sidebar box. Rather than show only the categories that are under the current category (which I think was a bit confusing), it now always shows <b>all</b> the categories available on the site, regardless of your location on the site. The result is that the site's structure much easier to see. This mainly took a little adjustment of the FileStore#getAllCategories method. Maybe one day I'll fix the display so it will look like a pretty hierarchy, instead of a filesystem dump (which is basically what it is). </p> <p> These changes comprise <b><i>gem</i>cast</b> v0.0.4. You can download the source <a href="http://www.samoht.com/weblog/gemcast.rb/Programming/Projects/gemcast">here</a>. </p> Red Rocks Ride http://www.samoht.com/weblog/gemcast.rb/Cycling/ride_to_red_rocks.html <p> Brian, Jason, and I did a fairly long ride up to Red Rocks today (for me it totalled 47.5 miles). This turned out to be a relatively arduous ride for me -- for some reason, my legs were just not working very well. Plus, Brian has been training on parts of this ride (including really hitting the hills hard), so he really smoked me a few times. I let him know he'd pay, and dearly, for dropping me on these climbs :-). </p> <p> Anyway, the ride up to Red Rocks is pretty much all a gentle climb except for the less gentle parts, and Red Rocks itself has some really intense, but short hills. My heart rate got up over 170 many times today, and over 180 on some climbs on the return trip, when I wanted to ensure that I didn't get dropped again (I led, but only barely). When I got home I was really toasted. </p> <p> Stats for the trip: 47.5 miles, 16.1 avg (sheesh), 148bpm avg heartrate for a 3:30 period. </p> Where do JDK 1.4 Preferences Go on OS X? http://www.samoht.com/weblog/gemcast.rb/Programming/Java/java_prefs_on_osx.html <p> In case you were wondering (I was), they go in a 'plist': <i>com.apple.java.util.prefs.plist</i> </p> iTerm - Terminal Replacement? http://www.samoht.com/weblog/gemcast.rb/Computing/Mac/iterm.html <p> I'm trying out a new OS X terminal emulator called <a href="http://iterm.sourceforge.net/">iTerm</a>. It has a nice tabbed interface, and supports the groovy transparency that is so very important these days. </p> <center> <img src="/weblog_img/iTerm.jpg"> <p class="caption">iTerm</p> </center> <p> It does have a few problems, specifically with cursor control and color text painting (nothing major). I also have to run my '.profile' by hand after entering a new shell. But the tabs are pretty handy, so I think I'll stick with it for a while. </p> BeanShell is Very Cool http://www.samoht.com/weblog/gemcast.rb/Programming/Java/beanshell.html <p> <div style="float: right"><a href="http://www.beanshell.org" border="0"> <img src="/weblog_img/beany2-200.jpg" border="0"></a> </div> <a href="http://www.beanshell.org">BeanShell</a> is a <b>very</b> cool Java application that basically provides a loosely-typed shell environment based on Java syntax. The shell has access to all the classes that are found in its classpath. All I've done so far is play with it a little, but the author, Pat Niemeyer, has put in so many options for running the interpreter (embedded, as a servlet, etc.) that it's a bit mind-boggling. I highly recommend that Java and/or scripting geeks check it out. </p> <img src="/weblog_img/BeanShell.jpg"> Blast from the Past! http://www.samoht.com/weblog/gemcast.rb/Miscellany/thunderbirds.html <p> I just watched the <i>Martian Invasion</i> episode of <i>Thunderbirds</i>, the 60's era marionette science fiction show that I loved as a kid (the episodes are on DVD now - I rented this one from <a href="http://www.netflix.com">Netflix</a>. While the character movement is as stilted as I remember, I still can get into the cool models that made up the sets and vehicles, and Thunderbird 2 is still the coolest of the Thunderbirds craft. </p> <center> <img src="/weblog_img/tb2fly.jpg" border="1"> <p class="caption">Thunderbird 2 In Flight</p> </center> Back Problems http://www.samoht.com/weblog/gemcast.rb/Miscellany/back_problems.html <p>I haven't ridden my bike since Monday due to a "tweak" in my back that happened Tuesday morning. There I was, nearly ready to go and lift weights, when I turned to grab a tissue, and <i>bro-o-o-i-i-n-g</i> my lower back tensed up without warning (I never injure my back when doing heavy lifting or exercise - it's always random like this). So, I tried not to panic and basically went about my business (except that I didn't lift). I went to work, and did generally OK, except for some stiffness after sitting for any period. But Wednesday morning, my back was <i>very</i> stiff, and I ended up not going to work. It wasn't totally debilitating - I just couldn't stand the idea of driving my car. By lunchtime, when I had loosened up, I really just didn't have an interest in going to work. It's been getting progressively better the last couple of days, but I still am avoiding any hardcore workouts (I've been walking quite a bit). I hope to get a bike ride in this weekend. </p> <p> All of this is much different than it used to be when I had a "back attack". I'd always miss at least a week of work, and would basically lay on the floor, flat on my back, watching TV or reading. It was always super-painful to stand up and move around. Well, a couple of things changed my mind about that sort of treatment. One, believe it or not, was Howard Stern, who reported how his doctor told him that his back pain was psycho-somatic and that his attitude had a lot to do with the pain. The other was a book I read at my in-laws a few years ago, I think it was called <i>The Back Book</i>, where the author said basically the same thing: so, you have a bad back -- deal with it. Don't let it freak you out. Accept it and move on. That's basically been my attitude ever since. I accept that I'm going to hose up my back occasionally, and when it happens I try to be as nonchalant about it as possible. I try to stay at least somewhat active. I think that works pretty well. I'm pretty sure that all my laying around when my back was messed up in the old days just contributed to the back being more stiff, and therefore more painful. Your mileage may vary. </p> Major <i>gem</i>cast Refactoring http://www.samoht.com/weblog/gemcast.rb/Programming/Projects/Gemcast/gemcast_refactor.html <p> I've been meaning to add new features to <b><i>gem</i>cast</b> (the engine that runs this weblog) for some time now. But in order to add the features, I've really needed to revisit the overall structure of the current code. That bit of work has held me back -- until today. I stayed home with a funky back (and therefore really wasn't up to driving), but later in the day I felt pretty OK, and decided to crack open <b><i>gem</i>cast</b> again and see what progress I could make toward future enhancements. </p> <p>It turned into a pretty major refactoring, with the introduction of a couple of new "modules" (not in the formal ruby sense, but in the sense of .rb files containing related classes - very loosely analagous to Java packages), and the deletion of a couple more, all in the interest of cohesion and dependency management. Over time, I've reflected on some problems that the original <b><i>gem</i>cast</b> had (and still has, to some degree), which allowed me to make some pretty decent changes. This release has no new functionality, but is cleaner than the previous release, and hopefully gives me some room to do what I want in the future. Version 0.0.3 is available <a href="/weblog/gemcast.rb/Programming/Projects/gemcast">here</a>. </p> <p> Here's a dependency graph of the new version of <b><i>gem</i>cast</b>: </p> <center> <p> <img src="/weblog_img/gemcast_dependencies.jpg" border="1"> </p> <p class="caption">Voila!!</p> </center> Something Worth Re-reading http://www.samoht.com/weblog/gemcast.rb/Programming/quality.html <p> I've been navigating around on my site, looking at old weblog archives, etc., when I (re)discovered this not-too-old <a href="http://www.samoht.com/blog/2003_01_01_arch.html">quote from <i>Zen and the Art of Motorcycle Maintenance</i></a> from my old weblog. It's worth revisiting now and then, because it is a very eloquent way of writing about quality, and is very much the way I approach my job. </p> First Service for the Goblin http://www.samoht.com/weblog/gemcast.rb/Motorcycling/20030706_service.html <center> <img src="/weblog_img/goblin_left.jpg" border=1> <p class="caption">The Green Goblin</p> </center> <p> I hit the 3000-mile point of my ownership of the Green Goblin (my "palmetto green" '95 BMW K1100RS) a couple of weeks ago, so I've been meaning to get him in for a service. Today started out very rainy and overcast, but once the clouds moved out it was absolutely perfect - about 65 degrees and sunny. So, I called the dealership and made sure that I could get a "drive-in" service. They could fit me in, so I took off. </p> <p> Here's what I had done: <ul> <li>Oil Change (even though BMW only calls for 6000-mile changes, I think I'll stick with 3000). <li>Brake system flush. My brakes had been feeling a bit spongy, and while it probably only required a bleeding, I decided to go for broke (literally), and get the flush. <li>Fork oil replaced with 10 weight (up from probably 7.5). I did this because the front end of my bike has seemed a bit mushy since I've had the opportunity to ride other bikes (the comparison may be unfair, however, since most of the other bikes have been BMWs with telelever front-ends). </ul> All of the above cost me about $160, and that's after my 10%-off BMW Club deal. At least the brake and fork service were elective. I hope not to pay that much on future visits. The bike immediately felt a bit more "solid" with the heavier fork oil. I'll have to do more riding to get a real feel for the change. While the lever response was very good, the brakes felt very weak on the first few applications, so I headed back to have the service manager look at them (I was afraid some oil had been spilled on the rotors). We couldn't really see anything obvious, but he cleaned the rotors anyway. I took off for home, and a few stoplights later, the Goblin was braking like I'm used to. </p> Heh heh heh http://www.samoht.com/weblog/gemcast.rb/Programming/vi_man.html <center> <a href="http://www.splange.freeserve.co.uk/misc/vi.html"> <img src="/weblog_img/viman.gif"> </a> </center>