tag:blogger.com,1999:blog-57314520492173434702024-02-07T12:54:31.869-06:00BigJimmy's BrainIt is almost, but not quite, completely unlike tea.Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.comBlogger23125tag:blogger.com,1999:blog-5731452049217343470.post-12408611815875412342007-09-03T18:43:00.000-05:002007-09-03T18:51:09.910-05:00A mystery, solved!I love a good book. I tend to over-buy just a bit when it comes to books (as my shelves of not-yet-read volumes amply illustrates). I usually stay out of the old books, though, not knowing that much about them. One book that I've had for several years has always been a bit of an enigma for me, though. It's a slim paperback volume titled "The Pocket Book of Verse." Mine is a first printing from 1940, but it is in remarkably good condition for such an old paperback(!). I have read many of the poems within it, and I always wondered if this copy had a story to tell. Since it was produced in 1940, I imagined that it might have accompanied a young GI on his travels across the European continent. Alas, the only written note to be found in the entire book is a single word on the title page: "Poetry." Thanks, guys, really helpful. Today I hit a jackpot though, while doing research on a bunch of books I'm trying to tell. I googled for the exact title, and found a <a href="http://italophiles.com/pocketbook.htm\">page dedicated to this very book</a>. What more could you ask for? It turns out that the book was a white-hot seller from the moment it was released, selling through 23 print runs in 5 years. It was also a hot commodity among GIs, especially those confined to POW camps during the war. Mystery solved -- my guess about the book's past was probably correct. A history book is a fine thing, but a book with a history is even more interesting.Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com1tag:blogger.com,1999:blog-5731452049217343470.post-4545683267867728432007-08-16T08:53:00.000-05:002008-12-11T14:23:40.709-06:00A little visitor<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3zwMmGsqY0CMQtFviXYgftiCWoxLunvWc-L48ZoxLODPKZLHTSEFwUkXBYTo8aokikwMMuXfch-saeQe0zubqJrM5ZxlboLNiDwYZ4PCMavNYHoJvHwak8UTrtNseXP4MF4jtPDG76u_A/s1600-h/P1040183.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3zwMmGsqY0CMQtFviXYgftiCWoxLunvWc-L48ZoxLODPKZLHTSEFwUkXBYTo8aokikwMMuXfch-saeQe0zubqJrM5ZxlboLNiDwYZ4PCMavNYHoJvHwak8UTrtNseXP4MF4jtPDG76u_A/s320/P1040183.JPG" alt="" id="BLOGGER_PHOTO_ID_5099302259755651826" border="0" /></a><br />So I bought another bike last night. It's not mine (honestly!) though, it's for my dad. He has been looking for a dual sport with lower seat height, and I recently happened upon an older KLR 250 in the paper up here. Based on the color scheme, can you guess the year? I'll leave it a mystery for now. Wendy noted that it's not much smaller than my 650 (seen in the background). While it is a bit shorter, the radiator / fan assembly adds some bulk to counter the smaller engine size. Another clue for the age guessers: it's kick-start only. Now if it would just run... but that's for another blog post.Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-76241637554735289722007-07-29T22:12:00.000-05:002007-07-29T22:54:04.592-05:00Gear I Use: Aerostich Evap-o-Danna<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.aerostich.com/files/images/550.jpg"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 200px;" src="http://www.aerostich.com/files/images/550.jpg" border="0" alt="" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.aerostich.com/files/images/550.jpg"></a><div>When I'm doing research on the internets about stuff I want to buy, my favorite find is a personally written review of the product. Therefore, I figured I ought to write one or two of these things myself to give a little back. Enter the <a href="http://www.aerostich.com/catalog/US/Aerostich-Evap-O-Danna-p-16741.html">Evap-O-Danna</a> from <a href="http://www.aerostich.com/">Aerostich</a>. This item seems odd to me, since it's sold by a Minnesota company but is much more suited to the climate of the Southern United States (where I happen to be). It works like this: you soak the fabric in water (it holds a lot), wring it out, and attach it around your neck via velcro. As you ride, the water evaporates and cools off your neck (home to some big blood vessels, and therefore a good place to keep cool).<br /></div><div>I used to think one of those neck tube thingies would be neat, but they just look... girly. This looks more like something a cowboy would wear. My beloved wife bought me the competition model, which is double-layer and can hold ice between the layers. If you ride where it's hot, this is a handy item to have in your tankbag. Stay cool!</div>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-24841394633421126512007-07-23T13:21:00.000-05:002007-07-23T14:21:42.104-05:00Bikes and BordersYou might have seen this in my old blog, but I got a new bike (maybe I'll remember to post about it here sometime). Sadly, that meant that the old bike had to go. I finally found a buyer last week, with just one quirk -- he was in Canada. He said he'd handle the shipping and import/export stuff, so I figured it was just like a local sale for me. Ha. Ha. Ha.<br />The fun started last Friday afternoon, I got a call from the import broker. "Hey, the truck is 100 miles away and it'll be there in 2 hours, eh." Luckily I was already out of the office, so I finished prepping the bike and rode it to my old office (which has a semi-height loading dock). I got to the dock around 3:45, and waited for the driver to arrive. At 5, I hadn't heard from anyone so I called the shipping company, who said they'd have the driver contact me. He finally did -- and that was when I knew this wasn't a local sale. I'm pretty sure he said his name was Gennady, but beyond that I wasn't sure about 2 out of 3 words I heard (and I'm pretty good at decoding poor English). I eventually discerned that his computer wasn't giving him good directions and he wanted to know how to reach me. I tried to figure out where he was at the time, but that just didn't work so he asked for my ZIP code. Satisfied with that, he said he'd call me back.<br />Call back he did -- about 45 minutes later, to tell me that he was at "Pilot." It's about a mile from the office, so I was happy to give him simple directions from there to here. Unfortunately, simple is a relative thing -- he couldn't understand that he would be going <span style="font-style: italic;">under</span> the nearby interstate, rather than <span style="font-style: italic;">onto</span> it. 10 minutes of saying, "No, don't get ON, go UNDER" still left me with an uneasy feeling, but I figured I wasn't helping by keeping him on the phone. We said goodbye, and you can probably guess what happened next. 20 minutes later, he called to say that he was on the interstate and several miles south of the office. I resisted the urge to throw my phone in his general directions, and instead gave him the even simpler updated directions to our office (literally, exit and make 2 right turns). Another 15 minutes passed with no sign of the truck, so I walked to the corner for a look. I could see what looked like a trailer parked about half a mile away, going in the other direction. He called to say that he had taken a left instead of a right and was having some trouble turning around on the narrow road. I didn't have a lot of advice for him except that he was on the right road and needed to go in the other direction. Another 10 minutes and I finally saw the truck headed down the road towards me. I was cheering like Mickey for Rocky by this point, until I noticed something: the truck wasn't getting any closer. Cars were driving around it. WHAT??? He called, and I started yelling like a crazy man to "keep going, you're almost here." So, to cut the story off abruptly and for no reason, he finally showed up and we got the bike loaded into the truck. I left the dock around 7:15 -- 3.5 hours after I got there. Whew! <br /><br />Let this be a lesson to you, kids: when all else fails, blame Canada.Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com3tag:blogger.com,1999:blog-5731452049217343470.post-10491899483129917352007-07-15T22:30:00.000-05:002008-12-11T14:23:40.916-06:00good ole mom<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0n2Se3N-azVfkCLwn6Dpo0skyJm0PMb6049U5u5HZtL6jrfr1bpKnnmY483lAz3IcSl2YYegez8b4a7aQMqH5A5AWZoy0yQUI4Qkdf6wpHyfmb_vVS34MLrlyZwnmesXwUtsaghLbAF9r/s1600-h/scct.jpg"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0n2Se3N-azVfkCLwn6Dpo0skyJm0PMb6049U5u5HZtL6jrfr1bpKnnmY483lAz3IcSl2YYegez8b4a7aQMqH5A5AWZoy0yQUI4Qkdf6wpHyfmb_vVS34MLrlyZwnmesXwUtsaghLbAF9r/s320/scct.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5087638980302313202" /></a><br />Earlier tonight, I was reminded of a time when the greatest trauma I knew was waiting to have a splinter removed from my finger. β got a splinter in her finger while playing at a friend's house earlier tonight, and it fell to me to get it out. Remember that I ranked this as one of the greatest traumas of my young life, and this is one of my progeny. I will say this: for a girl, she put up a pretty good fight. In the end, though, sanity (and my stronger hands) won out and the splinter was removed. Oh, and she got rocky road ice cream as a reward. I don't remember that part from when I was a kid! I do, however, remember that Mom was pretty calm, and I usually ended up laughing because it tickled. Thanks, Mom -- I never knew how tough that part was.Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com1tag:blogger.com,1999:blog-5731452049217343470.post-51465185389653663002007-07-12T23:07:00.000-05:002008-12-11T14:23:41.116-06:00How to Lose Friends and Abuse People<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigIVKGA3mTVWErwJ58P6ze44yVXjIIZPni9AzD-g4WdXipkt4Lnvn-FYSfOX0bG-EZuJ4gDfSTfavfBbDRkmwH6sXBeQlOrWl2SrTK3xamLbdKcsNrfGIin5lWTj8gQuJZU3i2Il2_nIbU/s1600-h/drevil_million_dollars.jpg"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigIVKGA3mTVWErwJ58P6ze44yVXjIIZPni9AzD-g4WdXipkt4Lnvn-FYSfOX0bG-EZuJ4gDfSTfavfBbDRkmwH6sXBeQlOrWl2SrTK3xamLbdKcsNrfGIin5lWTj8gQuJZU3i2Il2_nIbU/s320/drevil_million_dollars.jpg" alt="" id="BLOGGER_PHOTO_ID_5086532167230133986" border="0" /></a><br />Steps are as follows:<br /><ol><li><a href="http://www.youtube.com/watch?v=uvAtvtcjqkI">Unzip</a></li><li><a href="http://www.joystiq.com/2007/04/11/guitar-hero-ii-song-packs-now-live-pricey/">Let 'er rip</a></li><li><a href="http://news.yahoo.com/s/nm/20070712/wr_nm/gamesexpo_activision_dc;_ylt=ApxJtTdQy_TT9_YHguMnK1MK77EF">Speak cheerfully</a> about the current rainy weather</li></ol>Party on, Wayne.<br /><br />Party on, Garth.Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-61594404738201502122007-07-12T22:12:00.000-05:002008-12-11T14:23:41.374-06:00Meet the new blog, same as the old blog<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAhZFmJi5iMC9I0MOOzkLOiJbBBozjcaSSDZkPnX39TUgDI-LTxoAsrUJhI8-ZaCLZjYKp_O6m1-LEr_1FsBUFpNc8yg2xmLDjTbtoACv7Pv97-8C4tWvunGnjkV67eM3MMLaO5XefvGCC/s1600-h/Wont_Get_Fooled_Again_label.gif"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAhZFmJi5iMC9I0MOOzkLOiJbBBozjcaSSDZkPnX39TUgDI-LTxoAsrUJhI8-ZaCLZjYKp_O6m1-LEr_1FsBUFpNc8yg2xmLDjTbtoACv7Pv97-8C4tWvunGnjkV67eM3MMLaO5XefvGCC/s320/Wont_Get_Fooled_Again_label.gif" border="0" alt="" id="BLOGGER_PHOTO_ID_5086515343843235522" /></a><br />This is the new blog. The old blog is done.<div> </div><div>After taking a little heat for guest blogging on <a href="http://wendy-thelittlethings.blogspot.com/">my wife's blog</a> whilst <a href="http://jim.eponym.com/">my personal blog</a> sat neglected, I decided to get my blog mojo in gear. The old blog will be going away soon (and with it the service from whence it sprang), so I've got new digs. Don't worry, you'll get the same mix of programmer nerd trivia, motorcycle stories, and general stupid humor you've grown accustomed to reading. Huzzah!</div>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-39331430512743650732007-05-19T18:03:00.000-05:002007-10-01T11:08:32.124-05:00Marching Bands and Camera Hate<p>Talks for today:</p> <ul> <li>Morning keynote by <a href="http://www.tbray.org/ongoing/">Tim Bray</a>. Great talk about where "we" ought to be headed with Ruby and Rails. Tim is proof that age and treachery can still beat youth and enthusiasm -- that makes me feel a lot better.</li> <li>Another talk about using helpers in Rails to clean up views, this time by <a href="http://www.vanderburg.org/Blog">Glenn Vanderburg</a>. I guess I felt like the lesson didn't take the first time -- there wasn't too much overlap between this and the Thursday tutorial of nearly the same name, so no wasted time.</li> <li><a href="http://developer.joyent.com/">Joyent Slingshot</a> -- a super-cool library that allows a Rails app to (with small modifications) run locally on a user's desktop, while still syncing with a remote data source. Wow. Writing a desktop app in Rails sounds like fun, I'll just have to think of a use for it.</li> <li>Xen and the Art of Rails Deployment -- <a href="http://brainspl.at/">Ezra Z</a> talked about the <a href="http://www.xensource.com/">Xen virtualization framework</a>, which allows you to turn one server into many "virtual servers." To my shame, I haven't played with this stuff at all, so I was glad for the summary. After seeing this and the Amazon EC2 presentation, I'm more convinced than ever that this is the way provisioning will happen in the very near future (<10 years for sure). I don't kill my own chicken for Sunday dinner anymore, why should I provision my own server?</li> <li>Practical Design for Developers -- A bit more high level than I was hoping for, but still plenty useful. <a href="http://www.adaptivepath.com/aboutus/david.php">David Verba</a> from <a href="http://www.adaptivepath.com/">AdaptivePath</a> (the MeasureMap guys) talked briefly about information architecture, and how to design an application that people will actually use. Isn't that what we all want?</li> </ul> <p>Before lunch, attendees were treated to a short performance from the <a href="http://www.extra-action.com/">Extra Action Marching Band</a>. I'm from a somewhat funky town, but seeing a marching band complete with a <a href="http://www.youtube.com/group/extraaction">platinum-wigged co-ed flag line</a> reminded me that funky is a <em>very</em> relative term. On a sad note, I had nearly 10 minutes of video showcasing the marching band but managed to corrupt / delete / burninate it while trying to pull it off my camera. Oh well.</p> <p><small>Tags: <a rel="tag" href="http://technorati.com/tag/railsconf07">railsconf07</a></small></p> <p></p>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.comtag:blogger.com,1999:blog-5731452049217343470.post-50835525828322954072007-05-19T09:25:00.000-05:002007-10-01T11:10:58.308-05:00Pictures, Pictures<p>A few more pictures from yesterday are flying through the internets towards <a href="http://www.flickr.com/photos/82179961@N00/sets/72157600225090804/">my photo stream</a> as I type. Thrill to the sight of... a dangerous chain of power strips. I wasn't close enough to get a good shot of <a href="http://www.zefrank.com/">Ze Frank</a> last night, but you can hit his site and get the general idea. His discourse on graphic design and airplane safety cards was priceless. I'll try to be more photophilic today (you know what I mean).</p>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.comtag:blogger.com,1999:blog-5731452049217343470.post-45636104228463226422007-05-18T22:22:00.000-05:002007-10-01T11:12:53.648-05:00Rails After Dark<p>So it's almost 8:30PM on a Friday evening, and I am sitting in a darkened room waiting to see <a href="http://www.zefrank.com/">Ze Frank</a> start his keynote. That's my nightlife, baby!</p> <p>[minutes pass...]</p> <p>Talk has started. </p> <p>Ze Frank is better than Leno. </p> <p>Why did this guy ever quit <a href="http://www.zefrank.com/theshow/">The Show</a>?</p>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.comtag:blogger.com,1999:blog-5731452049217343470.post-32512072554445300502007-05-18T21:58:00.000-05:002007-10-01T11:14:45.970-05:00Railsconf 2007, Day 2<p>No midday update today, as I just didn't find the time to sit down in a quiet place. Bits and pieces:</p> <ul> <li>If you're going to put your company's website name on the back of a truck where it will be glanced at by passerby, it should be something easy to read -- i.e. something other than <a href="http://www.dogsdigit.net/">www.dogsdigit.net</a>. Let's just say I had to read it twice to get it right.</li> <li>When you're the King of Web Frameworks, you can wear whatever the hell you want to. I spotted <a href="http://www.loudthinking.com/">DHH</a> this afternoon after his keynote, and he was sporting testarossa red shoes.</li> <li>Talk 1 this morning was on "Full-stack Web App Testing with <a href="http://www.openqa.org/selenium/">Selenium</a> and Rails." Geek out! This is a testing program that actually drives your web browser automatically, which makes it much better than forcing your kids to test your web app out (it doesn't cry or demand toys as payment).</li> <li>Talk 2 was more of a product pitch, about using Amazon's <a href="http://aws.amazon.com/ec2">EC2</a> service. While it is an incredibly cool service, the "testimonial" did mention a few kinks yet to be worked out. This is probably how we'll do all datacenter stuff in 10 years, and we'll wonder why we ever provisioned our own physical servers.</li> <li>Talk 3 was from <a href="http://www.workingwithrails.com/person/5288-evan-rabble-henshaw-plath">Rabble</a> (I have to call him that because I heard another speaker address him that way in casual conversation) about going back and adding tests to your "legacy" Rails apps. Legacy Rails apps. I feel old already! Basically he talked about how to reform your wayward programming practices and move toward proactive testing.</li> <li>Talk 4 was probably my favorite, "Standing on the Shoulders of Giants" by <a href="http://therealadam.com/">Adam Keys</a>. Adam spoke about the value of reading source code written by others, especially code written by the "cool kids" of the Rails community. This is an area I've meant to look into for awhile, but never got around to. No more procrastination! It looked like too much fun to miss.</li> <li>The last time slot of the day didn't have anything of interest, so I took the <a href="http://en.wikipedia.org/wiki/MAX_Light_Rail">MAX</a> into downtown and headed for Mecca, aka <a href="http://www.powells.com/">Powell's City of Books</a>. I should have set an alarm on my phone or something, but I didn't and so I spent a little over an hour and a half happily browsing the stacks. I almost bought the Bach and Beethoven action figures but couldn't figure out who would want them.</li> </ul> <p>Now tomorrow, you may be in for a real treat: I have been invited to a bout of the local Roller Derby league, the <a href="http://www.rosecityrollers.com/">Rose City Rollers</a>. Wait, what? The story of how I got to this point is too long to type, so just hold your breath and wait to see if I actually make it to the derby.</p> <p>Where are the pictures? Well, I left my USB cable in the hotel room. I'll have to post pix in the morning. You'll just have to let my words paint a picture in your head for now.</p> <p><small>Tags: <a rel="tag" href="http://technorati.com/tag/railsconf07+portland+rubyonrails">railsconf07 portland rubyonrails</a></small></p> <p></p>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.comtag:blogger.com,1999:blog-5731452049217343470.post-56520564869592855712007-05-17T22:09:00.000-05:002007-10-01T11:15:40.623-05:00I'm a winner!If your mom ever tells you you won't accomplish anything sitting on your rear end, tell her you know better. <a href="http://www.tanga.com/">Tanga</a> (think <a href="http://www.woot.com/">woot</a> with a less rigid schedule and, generally, more interesting products) offered up <a href="https://secure.tanga.com/blogs/877-Where-in-the-World-is-TangaJoe-">a challenge</a> on their blog this afternoon: find TangaJoe and get $25 in credit. This evening while I was lounging at the <a href="http://www.oregoncc.org/">OCC</a>, who should sit down across from me but the wanted man himself. I don't normally go around asking people if they are TangaJoe, so I used the comments section of his blog to see if I had him. Score! Thanks to TangaJoe (and Tanga the company) for being such a good sport. Now I can finally get that Microsoft wireless keyboard and fingerprint reader wait, what? Oh well, maybe tomorrow they'll have something better.<br>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.comtag:blogger.com,1999:blog-5731452049217343470.post-29946491873156725252007-05-17T15:04:00.000-05:002007-10-01T11:16:49.427-05:00Railsconf 2007, Day 1: so far<p>Quick thoughts while I munch:</p> <ul> <li>Apparently those symbols on restroom doors aren't as universal as I thought (saw an Asian-looking fellow hurriedly leaving a women's restroom).</li> <li>I have been surprised by the percentage of females here -- it's gotta be above 10%, and I can't remember another tech conference with anywhere near those numbers.</li> <li>Oh yeah, the tutorial: <a href="http://mir.aculo.us/">Thomas Fuchs</a> admitted that the documentation for <a href="http://script.aculo.us/">scriptaculous</a> "sucks." That was worth the price of admission for me.</li> <li>I'm currently eating a "Oregon Chicken Breast Sandwich." At the risk of getting in trouble back home... I've never seen a breast like this before.</li> <li>Someone is recording a podcast... in the main hall. During lunch. They deserve all the background noise they get (and if you hear someone blowing their nose really loudly in the background... yeah, that was me).</li> <li>I had several good lunch conversations, including one with a fellow whose badge said he was with <a href="http://www.realgirlsmedia.com/">Real Girls Media Networks</a>. I expected... something else.</li> <li>The weather in the Pacific Northwest is not at all like the weather in Northwest Arkansas. I probably should have taken this into account when packing.</li> </ul> <p>If you've ever wondered what a sea of nerds might look like... gaze upon the very thing:</p> <p><img style="margin: 5px;" alt="" src="http://farm1.static.flickr.com/191/502242814_183419f128.jpg"><small>Tags: <a rel="tag" href="http://technorati.com/tag/railsconf2007+rubyonrails">railsconf2007 rubyonrails</a></small></p> <p></p>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.comtag:blogger.com,1999:blog-5731452049217343470.post-90761831639604730512007-04-27T14:49:00.000-05:002007-10-01T11:18:03.841-05:00Rumors and HeresaySome nasty rumors have appeared on <a href="http://princessmaisy.blogspot.com/">a certain blog</a> regarding my behavior during <a href="http://princessmaisy.blogspot.com/2007/04/friendly-game-of-poker.html">a recent card game</a>. I won't stoop to comment on what may or may not have happened during the game, but I think the outcome speaks for itself.Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.comtag:blogger.com,1999:blog-5731452049217343470.post-31818172500365944402007-02-22T13:18:00.000-06:002007-10-01T11:19:50.133-05:00create vs. create! vs. new in RailsI've been spending a little time lately on updating The Secret App to remove cruft (Login / User Engine being the two main sources of said cruft). Now that I'm no longer locked into an old revision of edge, I have noticed that Rails's ActiveRecord behavior seems to have changed a bit. Before, I could get away with saying <br><code>@widget = current_user.widgets.create!(params[:widget])</code><br>Now, that gets me a big fat nil in @widget.user_id. Unfortunately,<br><code>@widget = current_user.widgets.new(params[:widget])</code><br>gives me the same darned thing. The only way I could get the user_id to fill properly was with<br><code>@widget = current_user.widgets.create(params[:widget])</code><br>Maybe it's something I am doing wrong, but I haven't found it yet. I wouldn't put much effort into it, but I really like the clean syntax I get from #create! and so it has gotten under my skin. Any ideas? Anyone? Bueller?<br>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-5922344440523554452006-12-05T11:32:00.000-06:002007-10-01T11:22:13.347-05:00Good reference for RESTful RailsI love a good cheat sheet; anything to condense a big ol' reference site into a page or so that I can flip to when I need it. However, no one has made a good cheat sheet (or even a good reference, period) for the new RESTful Rails stuff. The best one-post reference I've found is <a href="http://david.goodlad.ca/articles/2006/08/02/simply_restful-in-rails-core">simply_restful in Rails Core</a> on <a href="http://david.goodlad.ca/">David Goodlad's blog</a>. Plenty of bloggers rah-rahed about simply_restful and gave a few examples of how to set it up, but David includes something unique: a table of all the auto-generated named routes and how to use them. I swear, I must have spent half an hour looking for exactly that information. Ah, sweet spoonfeeding! Thanks again to Mr. Goodlad for putting that out there.<br />Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-34711260316809563582006-11-10T12:53:00.000-06:002007-10-01T11:24:01.739-05:00A nuanced viewHere's our governor-elect, <a href="http://www.mikebeebe.com/">Mike Beebe</a>, speaking on <a href="http://www.arkansasnews.com/archive/2006/11/10/News/338432.html">how he'd like to work with the legislature</a>:<br><div style="margin-left: 40px;"><font face="Verdana, Helvetica, Arial" size="2">"I expect I'll probably be a little more like Clinton," Beebe said. "I like members of the General Assembly. Virtually all of them are friends of mine. I was a product of the legislature, so I understand some of the nuisances of the way they think and act."</font><br></div>I think he meant to say <span style="font-style: italic;">nuances</span>, but you never know.<br>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-21780467551808274982006-11-08T09:56:00.000-06:002007-10-01T11:26:27.570-05:00That stinks!Watch this video with the knowledge that I had to be in the same building with this man later that same day.<br /><br /><object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/9Q5ipuxTHB8"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/9Q5ipuxTHB8" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"></embed></object><br />Man, even the <span style="font-style: italic;">camera</span> stunk.Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-87014374192620297822006-11-07T22:20:00.000-06:002007-10-01T11:28:07.863-05:00Diminishing returns<p>While browsing <a href="http://www.amazon.com/">Amazon</a> tonight for a new television, I was presented with the following offer:</p> <p><img style="margin: 5px;" alt="" src="http://jim.eponym.com/amazon%20better%20together.png" height="181" width="659" />Yes -- Amazon suggested that since I'm looking at a large-format television, I might be interested in buying <em>two</em> of them. First I was flattered, but now I'm starting to feel a bit patronized. Are they trying to make some kind of subtle statement about how many times I've looked at this TV on their site?</p> <p>This also brings up the question of how these "Better Together" offers are generated in the first place: is it via humans (obviously not very smart ones), or from past purchases... by people who impulse-buy a second television.</p> <p><small>Tags: <a rel="tag" href="http://technorati.com/tag/amazon">amazon</a>, <a rel="tag" href="http://technorati.com/tag/television">television</a>, <a rel="tag" href="http://technorati.com/tag/dlp">dlp</a></small></p>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-55216615878331582062006-10-31T00:02:00.000-06:002007-10-01T11:29:54.087-05:00Panning for gold<p><a href="http://www.flickr.com/photos/29007971@N00/265124509/"><img style="margin: 5px; float: right;" alt="Kananaskis Riverbed (Dave Ketchup, CCL)" src="http://jim.eponym.com/265124509_9cbf07a227.jpg" border="0" height="265" width="354"></a>Children make memories as a river makes stones; what appears at first to be a swirling mass of chaos reveals, on closer examination, countless specimens of exquisite beauty. The riverbed is our gold mine, each stone tumbled and polished to perfection. We sift and examine, and eventually decide that we want to take the whole riverbed home. We know that the river never stops moving, never stops changing, despite our wishes to the contrary. The best we can do is to gather a handful of our favorites to take home. I think I found a keeper this afternoon. On arriving home from work, I found α at her desk. I asked what she was up to, and she said, "I'm doing my work. My <em>homework</em>." Without missing a beat, she returned to her addition worksheets. This is a child who was too sick to go to school today. They don't even give her homework when she is at school, so she makes up her own assignments. To quote <a href="http://www.homestarrunner.com/">Homestar Runner</a>, "<a href="http://www.hrwiki.org/index.php/Fluffy_Puff_Commercial">I know, can you believe it?</a>" A child doing homework by choice, for the sheer joy of learning; I think I'll hang onto that one.</p> <p><small>Tags: <a rel="tag" href="http://technorati.com/tag/river">river</a>, <a rel="tag" href="http://technorati.com/tag/parenting">parenting</a>, <a rel="tag" href="http://technorati.com/tag/homestar+runner">homestar runner</a></small></p>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-21541315655882793692006-10-26T11:10:00.000-05:002007-10-01T11:30:57.298-05:00Bikes, Blues, and WHAT I CAN'T HEAR YOU<p> So this little motorcycle rally came to town a few weeks ago... maybe you've heard of it. Something like 75,000 motorcycles and 300,000 people converging on <span style="text-decoration: line-through;">one</span> <span style="text-decoration: line-through;">two</span> three small sections of our fair city. Luckily, our intrepid local bureaucrats were quick to educate the visitors on appropriate rally behavior. Signs were posted on most roads leading into down proudly proclaiming, "WELCOME TO FAYETTEVILLE, PLEASE RIDE QUIETLY." Uh huh. For most of the cruisers I see, this could only be accomplished by turning off the engine and coasting. But exhaust systems are a whole 'nother story.</p> <p><a href="http://www.flickr.com/photos/mrhsfan/257377343/"><img style="margin: 5px; float: left;" class="" alt="Happy/Rush Hour" src="http://jim.eponym.com/257377343_02f5bb1a9f.jpg" title="" border="0" height="500" width="417"></a>The focus of the rally revelry is Dickson Street, a 4-block entertainment district just east of the UA campus. Dickson was known for a few good restaurants/bars and too many smelly hippies when I was in school, but it has been "made up" significantly since those olden days. Most of the vacant buildings have been remodeled or torn down, and there are more restaurants than I could visit in a year. For the duration of the rally, the smelly hippies were replaced with smelly bikers (the latter are distinguished from the former by their slightly cleaner clothes).</p> <p>OK, so maybe I'm stretching the truth just a bit. As this was my first time to attend "the event" I wasn't quite sure what to expect. I was semi-familiar with what bikers expect to see at a rally, but what I ended up seeing was considerably tamer than my fevered predictions. The main activities of the crowd seemed to be walking, smoking, and attempting to enter any of the 5 bars on the street. All of the bars were filled to capacity, so the bouncers would throw out a few patrons every couple of minutes and drag a few more in to keep things in balance.</p> <p>If I had to sum up BB&BBQ in a word, it would be LOUD. Just loud. The internal-organ-vibrating thud of an endless string of bikes was a constant reminder that internal combustion engines are nothing more than a series of controlled explosions. Even if you're not into bikes, the rally still offers plenty to see and ingest. I'll be going again next year -- but I'll probably take along my earplugs.</p> <p><small>Tags: <a rel="tag" href="http://technorati.com/tag/bb%26bbq">bb&bbq</a>, <a rel="tag" href="http://technorati.com/tag/motorcycle">motorcycle</a>, <a rel="tag" href="http://technorati.com/tag/arkansas">arkansas</a></small></p>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-85396964771579421032006-10-24T12:33:00.000-05:002007-10-01T11:32:15.596-05:00Foreshadowing<p>While reliving some of my misspent youth in the <a href="http://cgw.filefront.com/">Computer Gaming World 80s archive</a> recently, I came across this innocuous quote about the 1988 <a href="http://www.cesweb.org/">CES</a>:</p> <blockquote> <p>Spectrum Holobyte... was demonstrating a Russian puzzle game involving fast moving shapes which have to be organized to fill up a limited space.</p> </blockquote> <p>Hmm. Who would want to play something like that?</p> <p><small>Tags: <a rel="tag" href="http://technorati.com/tag/tetris">tetris</a>, <a rel="tag" href="http://technorati.com/tag/cgw">cgw</a>, <a rel="tag" href="http://technorati.com/tag/ces">ces</a></small></p>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0tag:blogger.com,1999:blog-5731452049217343470.post-48715321355981131782006-10-01T11:20:00.000-05:002007-10-01T11:24:29.571-05:00A small change to Rails routing<p>A recent change in the way Rails deals with incoming requests caught me a bit off guard. I was used to being all loosey-goosey with my routes, like saying</p> <p><code>/categories/show/34-Detachable-Widgets.html</code></p> <p>and having Rails happyily translate that into a request for /categories/show/34. However, when I caught up to edge a few days ago, my tests started failing. Wah? Further investigation revealed that the culprit was that flagrant .html hanging there on the end (why? because I can). After a bit of digging on the Rails mailing list, I finally found my buried treasure: a <a href="http://www.ruby-forum.com/topic/75399">post by Jeremy Kemper</a> mentioning that Rails now considers . a "URL separator." Ergo, your route</p> <p><code>:controller/:action/:id</code></p> <p>becomes</p> <p><code>:controller/:action/:id.:format</code></p> <p>and all's right with the world again. This allows us to force a format just by using it as the extension (i.e. trigger a specific response via <code>responds_to</code>), so I don't mind the change. I just wish someone had mentioned it a bit more loudly... like I'm doing now.</p> <p><small>Tags: <a rel="tag" href="http://technorati.com/tag/ruby">ruby</a>, <a rel="tag" href="http://technorati.com/tag/rails">rails</a></small></p>Jim Kanehttp://www.blogger.com/profile/00884765355432337142noreply@blogger.com0