[{"content":"Checking in on where I am with piano: this is a transcription of a Wynton Kelly solo where I learned the right hand but still working on the left. I\u0026rsquo;m happy with the way things are progressing.\n","permalink":"https://bobcopeland.com/blog/posts/west-coast-blues/","summary":"\u003cp\u003eChecking in on where I am with piano: this is a transcription of a\nWynton Kelly solo where I learned the right hand but still working\non the left.  I\u0026rsquo;m happy with the way things are progressing.\u003c/p\u003e\n\u003cdiv style=\"position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;\"\u003e\n\t\t\t\u003ciframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen\" loading=\"eager\" referrerpolicy=\"strict-origin-when-cross-origin\" src=\"https://www.youtube.com/embed/OZeEbR4jlVo?autoplay=0\u0026amp;controls=1\u0026amp;end=0\u0026amp;loop=0\u0026amp;mute=0\u0026amp;start=0\" style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;\" title=\"YouTube video\"\u003e\u003c/iframe\u003e\n\t\t\u003c/div\u003e","title":"West Coast Blues"},{"content":"With all the AI hackery going on and the fact that I post about twice a year now, I decided my blog doesn\u0026rsquo;t require php. So I\u0026rsquo;m giving Hugo a spin. This page started life as markdown and got magicked into the html you see before you.\nI spent an afternoon customizing PaperMod to kind of look like the existing theme so hopefully it\u0026rsquo;s not too drastically different. Search is a bit busted and no idea if RSS still works but I\u0026rsquo;ll clean up the issues over the next week or two.\n","permalink":"https://bobcopeland.com/blog/posts/static/","summary":"\u003cp\u003eWith all the AI hackery going on and the fact that I post about twice a\nyear now, I decided my blog doesn\u0026rsquo;t require php. So I\u0026rsquo;m giving Hugo a spin.\nThis page started life as markdown and got magicked into the html you see\nbefore you.\u003c/p\u003e\n\u003cp\u003eI spent an afternoon customizing PaperMod to kind of look like the existing\ntheme so hopefully it\u0026rsquo;s not too drastically different.  Search is a bit busted\nand no idea if RSS still works but I\u0026rsquo;ll clean up the issues over the next\nweek or two.\u003c/p\u003e","title":"Static"},{"content":"Welcome to 2026. Already??\nWinter break is now the one time of the year I can set aside dayjob demands for a moment and mess around on the old computizing device. This year\u0026rsquo;s theme was slop-slinging, since that is how we now do things in the late stages of my profession.\nTrained some wavenets as part of Neural Amp Modeler, with which you can plug your real guitar into fake software. I captured one of the sounds from my old Pod and it worked OK \u0026ndash; considering that I don\u0026rsquo;t have very high quality capture equipment and I wasn\u0026rsquo;t trying very hard \u0026ndash; but one of the more interesting experiments was to pass the capture signal through a vocoder to get what turned out to be a weird distortion effect. Wheels within wheels. Guitarix (Linux amp simulator app) can host NAM plugins and this has been my rig over the past 1-2 years.\nTrained a 2k parameter transformer, as an experiment in how small you can make an ML model that can do something (in this case, sort small numbers very inefficiently).\nSoldered together a 6-button USB-C keyboard (pictured below) using a pro-micro board and QMK firmware (no compilation necessary for this kind of simple build). This is for a taekwondo referee trainer, for which I vibe-coded a dumb rhythm game as a placeholder app to test it out. I guess you could make the argument that I built the world\u0026rsquo;s worst console in just about 2 days.\n","permalink":"https://bobcopeland.com/blog/2026/01/recent-experiments/","summary":"\u003cp\u003eWelcome to 2026. Already??\u003c/p\u003e\n\u003cp\u003eWinter break is now the one time of the year I can set aside dayjob demands for a moment and mess around on the old computizing device. This year\u0026rsquo;s theme was slop-slinging, since that is how we now do things in the late stages of my profession.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eTrained some wavenets as part of Neural Amp Modeler, with which you can plug your real guitar into fake software. I captured one of the sounds from my old Pod and it worked OK \u0026ndash; considering that I don\u0026rsquo;t have very high quality capture equipment and I wasn\u0026rsquo;t trying very hard \u0026ndash; but one of the more interesting experiments was to pass the capture signal through a vocoder to get what turned out to be a weird distortion effect. Wheels within wheels. Guitarix (Linux amp simulator app) can host NAM plugins and this has been my rig over the past 1-2 years.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eTrained a 2k parameter transformer, as an experiment in how small you can make an ML model that can do something (in this case, sort small numbers very inefficiently).\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eSoldered together a 6-button USB-C keyboard (pictured below) using a pro-micro board and QMK firmware (no compilation necessary for this kind of simple build). This is for a taekwondo referee trainer, for which I vibe-coded a dumb rhythm game as a placeholder app to test it out. I guess you could make the argument that I built the world\u0026rsquo;s worst console in just about 2 days.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e","title":"Recent experiments"},{"content":" A year ago I wrote about composing a solo on All the Things You Are and it still remains the jazz standard that I have the most comfort with. Since then, I also joined an online jazz community and have been upping my game a bit. When this standard came around again, I took the opportunity to find a good version to transcribe and landed on the version from Johnny Griffin, A Blowin\u0026rsquo; Session. This is a fairly ridiculous lineup with three (3) tenors at the top of their game: Johnny Griffin, John Coltrane, and Hank Mobley, along with Lee Morgan, Wynton Kelly, Paul Chambers and Art Blakey. Insane! I transcribed a chorus of Mobley\u0026rsquo;s solo mainly because it\u0026rsquo;s the chillest one, and I had the best chance of hearing it without a ton of slowing down the music. Transcription follows.\nQuick thoughts on this one: we have a fun jazz cliche in bar 6 over the ii-V; the descending figure around bar 29 going into the turnaround sounds a lot like some phrases in his Remember solo.\n","permalink":"https://bobcopeland.com/blog/2025/06/all-the-things-you-are-hank-mobley/","summary":"\u003cdiv style=\"position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;\"\u003e\n\t\t\t\u003ciframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen\" loading=\"eager\" referrerpolicy=\"strict-origin-when-cross-origin\" src=\"https://www.youtube.com/embed/daCaUemeEIk?autoplay=0\u0026amp;controls=1\u0026amp;end=0\u0026amp;loop=0\u0026amp;mute=0\u0026amp;start=0\" style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;\" title=\"YouTube video\"\u003e\u003c/iframe\u003e\n\t\t\u003c/div\u003e\n\n\u003cp\u003eA year ago I wrote about \u003ca href=\"/blog/2024/02/all-the-things-i-did/\"\u003ecomposing a solo on All the Things You Are\u003c/a\u003e and it still remains the jazz standard that I have the most comfort with. Since then, I also joined an online jazz community and have been upping my game a bit. When this standard came around again, I took the opportunity to find a good version to transcribe and landed on the version from Johnny Griffin, \u003cem\u003eA Blowin\u0026rsquo; Session\u003c/em\u003e. This is a fairly ridiculous lineup with \u003cstrong\u003ethree\u003c/strong\u003e (3) tenors at the top of their game: Johnny Griffin, John Coltrane, and Hank Mobley, along with Lee Morgan, Wynton Kelly, Paul Chambers and Art Blakey. Insane! I transcribed a chorus of Mobley\u0026rsquo;s solo mainly because it\u0026rsquo;s the chillest one, and I had the best chance of hearing it without a ton of slowing down the music. Transcription follows.\u003c/p\u003e","title":"All the Things You Are - Hank Mobley"},{"content":"Just to make it clear where I stand on this not at all difficult moral question: deporting people without due process is, in every case, wrong. Especially so when the clear intent is placing them in offshore torture prisons. If saying so gets me on a government list of some sort, I\u0026rsquo;ll wear that as a badge of honor.\n","permalink":"https://bobcopeland.com/blog/2025/04/scenes-from-democracy-in-decline/","summary":"\u003cp\u003eJust to make it clear where I stand on this not at all difficult moral question: \u003ca href=\"https://www.nytimes.com/2025/04/14/nyregion/columbia-student-palestinian-arrested-ice.html?unlocked_article_code=1._04._Min.FZktlmnqccJY\u0026amp;smid=url-share\"\u003edeporting people without due process\u003c/a\u003e is, in every case, wrong. Especially so when the clear intent is placing them in \u003ca href=\"https://www.nytimes.com/2025/04/14/us/politics/trump-bukele-prison-deported-migrants.html?unlocked_article_code=1._04.cJJ0.rgKuRPk4nOvP\u0026amp;smid=url-share\"\u003eoffshore torture prisons\u003c/a\u003e. If saying so gets me on a government list of some sort, I\u0026rsquo;ll wear that as a badge of honor.\u003c/p\u003e","title":"Scenes from democracy in decline"},{"content":"Latest transcription is Scrapple. The head and transcribed solo are fun to play, but I really struggled with improvising on this one, especially the A section where it stays in F almost the whole time. Parker, of course, makes it sound effortless. Fun finding on this one is the lick starting in bar 15 in the improvised bridge where Bird plays a G7 arpeggio to the F, then descends C mixolydian to the third over C7, then arpeggio back up to the 9th. This same lick appears twice in the solo, once at bar 34 and again in 47 (shifted left by a beat).\nNext up is probably a ballad.\n","permalink":"https://bobcopeland.com/blog/2024/11/scrapple-from-the-apple/","summary":"\u003cp\u003eLatest transcription is \u003cem\u003eScrapple\u003c/em\u003e. The head and transcribed solo are fun to play, but I really struggled with improvising on this one, especially the A section where it stays in F almost the whole time. Parker, of course, makes it sound effortless. Fun finding on this one is the lick starting in bar 15 in the improvised bridge where Bird plays a G7 arpeggio to the F, then descends C mixolydian to the third over C7, then arpeggio back up to the 9th. This same lick appears twice in the solo, once at bar 34 and again in 47 (shifted left by a beat).\u003c/p\u003e","title":"Scrapple from the Apple"},{"content":"I have been using a paid phone app that shall remain nameless for practicing outlining jazz chords on guitar. The app gives you the chords from a standard one at a time, and you play the intervals; the app marks each note completed as they are detected through the microphone. It works pretty well, but one thing I don\u0026rsquo;t like about it is that there are not that many built-in charts, and I really want to use it on the tunes I\u0026rsquo;m learning. The add-your-own-chords feature has been a todo list item since forever and I don\u0026rsquo;t see any new versions coming out, so I spent a weekend writing a clone in javascript.\nI set out some silly requirements for this: 1) no build step and no libraries, because I don\u0026rsquo;t want to build my javascript, just vi on the server and go like the old days \u0026ndash; or maybe cutting-edge \u0026ldquo;buildless\u0026rdquo; like the kids are doing these days; 2) host the entire thing in a single file (a bad idea honestly but I\u0026rsquo;m already committed to it); 3) let me just plop any old chord changes into a string variable, cutting-and-pasting them directly from lilypond source for the standard; 4) learn a little about signal processing and web audio.\nIt turns out that (single note) pitch detection is not so hard \u0026ndash; I took more than a bit of inspiration from this medium post and accompanying demo code. For this application and with a good audio interface, you do not need to be spot on the frequency, just within the range of the target note (any octave will do).\nHere it is, you can try it out yourself (the changes are for Scrapple from the Apple):\n","permalink":"https://bobcopeland.com/blog/2024/09/a-pitch-for-pitchy/","summary":"\u003cp\u003eI have been using a paid phone app that shall remain nameless for practicing outlining jazz chords on guitar. The app gives you the chords from a standard one at a time, and you play the intervals; the app marks each note completed as they are detected through the microphone. It works pretty well, but one thing I don\u0026rsquo;t like about it is that there are not that many built-in charts, and I really want to use it on the tunes I\u0026rsquo;m learning. The add-your-own-chords feature has been a todo list item since forever and I don\u0026rsquo;t see any new versions coming out, so I spent a weekend writing a clone in javascript.\u003c/p\u003e","title":"A pitch for pitchy"},{"content":"I forgot to mention in the previous post on On Green Dolphin Street that one reason I liked the song was due to a version on a Tito Puente compilation in which there is some stratospheric trumpet work. I used to play the horn but my embouchure atrophied years ago. Still, I love the sound of it, whether warm and sparse like Miles Davis or bright and blazing high like whoever was on this Puente record. Well, I finally looked it up, and it was Maynard Ferguson, so I guess that makes sense.\nWhen I bought Blue Train on a whim some 25 years ago, I was expecting some great Coltrane solos, but I was not prepared for the brass section burning it up on this album. I\u0026rsquo;d later learn that Lee Morgan did all the fast trumpet lines on the title track, and I\u0026rsquo;d go on to listen to his other hard bop work. Blue Train is still a banger.\nI transcribed the first three choruses so far and will probably get to the other two in the next week or so. There is also a complete transcription over on jazzomat in case you disagree with my choices.\nI really like the second chorus a bit more than the fast but patternistic 3rd and 4th choruses. The final phrase has everything: a decent amount of chromaticism, while still outlining the chords really well with nice voice leading. It has an interesting rhythmic variation with the triplet figure moving a beat earlier in each subsequent measure. It has that great sounding 3 to b9 arpeggio over the vi7b9 which, okay, I understand it is a cliche, but I love this cliche.\nHere I am playing along with the recording:\nI still haven\u0026rsquo;t tried playing any of it on trumpet but someday I\u0026rsquo;ll give it a go.\n","permalink":"https://bobcopeland.com/blog/2024/08/blue-train/","summary":"\u003cp\u003eI forgot to mention in the previous post on \u003cem\u003eOn Green Dolphin Street\u003c/em\u003e that one reason I liked the song was due to a version on a Tito Puente compilation in which there is some stratospheric trumpet work. I used to play the horn but my embouchure atrophied years ago. Still, I love the sound of it, whether warm and sparse like Miles Davis or bright and blazing high like whoever was on this Puente record. Well, I finally looked it up, and it was Maynard Ferguson, so I guess that makes sense.\u003c/p\u003e","title":"Blue Train"},{"content":"For the last month I\u0026rsquo;ve been working on and off on the transcription of Cannonball Adderly\u0026rsquo;s first chorus of On Green Dolphin Street. The phrasing is really nice in this solo. Adderly plays around a lot with the time feel, at times playing way behind the beat which made writing out the rhythms challenging. I don\u0026rsquo;t think I really nailed it but if you listen along to the recording you get the idea.\n","permalink":"https://bobcopeland.com/blog/2024/07/on-green-dolphin-street/","summary":"\u003cp\u003eFor the last month I\u0026rsquo;ve been working on and off on the transcription of Cannonball Adderly\u0026rsquo;s first chorus of On Green Dolphin Street. The phrasing is really nice in this solo. Adderly plays around a lot with the time feel, at times playing way behind the beat which made writing out the rhythms challenging. I don\u0026rsquo;t think I really nailed it but if you listen along to the recording you get the idea.\u003c/p\u003e","title":"On Green Dolphin Street"},{"content":"The album Sonny Side Up, featuring both Sonny Stitt and Sonny Rollins, is fire, and Sonny Stitt\u0026rsquo;s chorus from On the Sunny Side of the Street is hard to beat. I\u0026rsquo;ve had this whole album on repeat for the last month or so and there\u0026rsquo;s not a bad track.\nDizzy Gillespie sings on \u0026ldquo;Sunny\u0026rdquo; and there\u0026rsquo;s a video of him playing it with Stitt:\n\u0026amp;t=44s\nOn the recording, Stitt plays a bunch of rapid fire 16th note patterns over the bridge which makes it hard for me to play above 70% speed \u0026ndash; good patterns worth incorporating into the practice routine. But the last A section is the high point, especially the emphasis on chromatic progression from the G7 to Am7 near the end. Here\u0026rsquo;s my transcription.\n","permalink":"https://bobcopeland.com/blog/2024/05/on-the-sunny-side-of-the-street/","summary":"\u003cp\u003eThe album \u003cem\u003eSonny Side Up\u003c/em\u003e, featuring both Sonny Stitt and Sonny Rollins, is fire, and Sonny Stitt\u0026rsquo;s chorus from On the Sunny Side of the Street is hard to beat. I\u0026rsquo;ve had this whole album on repeat for the last month or so and there\u0026rsquo;s not a bad track.\u003c/p\u003e\n\u003cp\u003eDizzy Gillespie sings on \u0026ldquo;Sunny\u0026rdquo; and there\u0026rsquo;s a video of him playing it with Stitt:\u003c/p\u003e\n\u003cp\u003e\u003cdiv style=\"position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;\"\u003e\n\t\t\t\u003ciframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen\" loading=\"eager\" referrerpolicy=\"strict-origin-when-cross-origin\" src=\"https://www.youtube.com/embed/gFthzxtQ5KE?autoplay=0\u0026amp;controls=1\u0026amp;end=0\u0026amp;loop=0\u0026amp;mute=0\u0026amp;start=0\" style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;\" title=\"YouTube video\"\u003e\u003c/iframe\u003e\n\t\t\u003c/div\u003e\n\u0026amp;t=44s\u003c/p\u003e","title":"On the Sunny Side of the Street"},{"content":"\nThe path of totality of the April 8, 2024 eclipse just barely missed our house, so I did what any extremely normal person would do: booked a hotel 4 months in advance two hours west of here, pre-ordered a dozen eclipse glasses, and then took a day off of work to go watch it.\nTotally (ahem) worth it.\nMost folks in this area headed out to Niagara Falls, but I gambled on Kingston being less packed. I drove the boys out there the day before. We checked in, then spent a bit of time walking around the lakefront near a pop-up eclipse store selling eclipse merch and playing eclipse-themed songs \u0026ndash; of course \u0026ldquo;Total Eclipse of the Heart\u0026rdquo; and \u0026ldquo;Eclipse\u0026rdquo; from Dark Side of the Moon were featured, but I feel like there were still others? We had dinner in the chainiest of chains because any other restaurant was booked the whole night.\nThe weather forecast was cloudy, but we still expected crowds so we took the bus to the park \u0026ndash; an hour plus odyssey with a transfer to travel less than an unwalkable mile. It ruined public transportation for my children forever. But we arrived.\n\u0026hellip;to a swarm of bugs populating Fort Henry. If I could do one thing over, we would have packed bug spray. These insects did not bite but hovered, everywhere, presumably tasting badly as none of the local birds bothered reducing their numbers. We huddled face-down on the blanket for the first few hours. Then we bought some overpriced hamburgers, played a few lawn games, and swallowed some more bugs to pass the time.\nEventually the moment of first contact arrived, and the clouds rolled in, dense enough to make the eclipsing sun a blurry, barely visible, disappointing smudge as viewed through the glasses. Alex moaned about the unfairness of the universe.\nTen minutes in, the clouds thinned, and the universe was fair again. We had a spectacular view of the encroaching moon. \u0026ldquo;This is amazing; also, please don\u0026rsquo;t blind us!\u0026rdquo; ran my inner monologue. \u0026ldquo;It\u0026rsquo;s a pac-man!\u0026rdquo; enthused Sam.\nAs the sun narrowed to a sliver, the clouds showed up again and dimmed the sun. Then it got cold: jackets back on. Then it got a bit darker. The clouds abated once more. With just a minute more to go, Ian began chanting, \u0026ldquo;To-tal-i-ty! To-tal-i-ty! To-tal-i-ty!\u0026rdquo; The sun disappeared from view. And everyone began cheering.\nWe took off the glasses to see the hole in the sky. A ring of light, with red dots on the edges. We would read later that those dots were solar prominences, hundreds of thousands of miles long. Far larger than one\u0026rsquo;s own worries.\nI wouldn\u0026rsquo;t call the experience life-altering, but it is hard to describe. Reflecting a month later, my mind\u0026rsquo;s eye is incapable of fully reconstructing the image, but my brain supplies the deep chime of a carillon to underline the feeling of awe.\nThe moon continued on its way and the lights came back on to more cheering. Ian exclaimed, \u0026ldquo;that was the best three minutes of my life!\u0026rdquo; Alex hugged me euphorically. Sam said, \u0026ldquo;okay, now let\u0026rsquo;s get on the bus and go back home.\u0026rdquo; And so we did.\nOr we tried. The bus route was late, or changed, or cancelled, so we spent a few hours waiting and talking with other stranded folks, sun getting its revenge by burning our skin, until we all gradually gave up and Ubered back.\n","permalink":"https://bobcopeland.com/blog/2024/05/hole-in-the-sky/","summary":"\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2024/05/PXL_20240408_192403723-sm.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2024/05/PXL_20240408_192403723-sm.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThe path of totality of the April 8, 2024 eclipse just barely missed our house, so I did what any extremely normal person would do: booked a hotel 4 months in advance two hours west of here, pre-ordered a dozen eclipse glasses, and then took a day off of work to go watch it.\u003c/p\u003e\n\u003cp\u003eTotally (ahem) worth it.\u003c/p\u003e\n\u003cp\u003eMost folks in this area headed out to Niagara Falls, but I gambled on Kingston being less packed. I drove the boys out there the day before. We checked in, then spent a bit of time walking around the lakefront near a pop-up eclipse store selling eclipse merch and playing eclipse-themed songs \u0026ndash; of course \u0026ldquo;Total Eclipse of the Heart\u0026rdquo; and \u0026ldquo;Eclipse\u0026rdquo; from \u003cem\u003eDark Side of the Moon\u003c/em\u003e were featured, but I feel like there were still others? We had dinner in the chainiest of chains because any other restaurant was booked the whole night.\u003c/p\u003e","title":"Hole in the sky"},{"content":"New transcription: another Parker blues, Billie\u0026rsquo;s Bounce.\n","permalink":"https://bobcopeland.com/blog/2024/03/billies-bounce/","summary":"\u003cp\u003eNew transcription: another Parker blues, Billie\u0026rsquo;s Bounce.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/bcopeland/transcriptions/blob/main/billies_bounce.pdf\"\u003e\u003cimg alt=\"transcription of Billie\u0026rsquo;s Bounce\" loading=\"lazy\" src=\"https://raw.githubusercontent.com/bcopeland/transcriptions/main/billies_bounce.png\"\u003e\u003c/a\u003e\u003c/p\u003e","title":"Billie's Bounce"},{"content":"For a while I\u0026rsquo;ve been using Amazing Slow Downer on the phone and PlayItSlowly on Linux for transcribing fast passages and to practice playing along with a tempo that I can manage. However, I frequently would like to just repetitively play a section a boatload of times while gradually increasing the BPM \u0026ndash; without taking my hands off the fretboard to adjust a slider. So I wrote a thing.\n#!/bin/bash # play a segment of a song over and over, gradually # increasing the tempo file=$1 start=$2 end=$3 attempts=${4:-100} start_speed=${5:-.5} end_speed=${6:-1.0} step=$(echo \u0026#34;scale=4; ($end_speed - $start_speed)/$attempts\u0026#34;| bc -l) for t in $(seq $start_speed $step $end_speed); do echo \u0026#34;*** $t ***\u0026#34; mpv --no-video --start=$start --end=$end $file --o=/dev/stdout --of=ogg 2\u0026gt;/dev/null | gst-launch-1.0 fdsrc fd=0 ! decodebin ! pitch tempo=\u0026#34;$t\u0026#34; ! autoaudiosink \u0026gt;/dev/null 2\u0026gt;\u0026amp;1 done Run it like so:\n# between seconds 40 and 95, run 20 steps between half and full speed ./speedy.sh billies_bounce.ogg 40 95 20 .5 1 It would probably be nicer if the increase was logarithmic so you take smaller steps the faster it gets, but this worked out pretty well so far.\nIt\u0026rsquo;s kind of ridiculous to use mpv to segment the stream, but I couldn\u0026rsquo;t find a way to do windowing with just gst-launch (gnonlin seems to no longer be a thing) so, anyway, it works.\n","permalink":"https://bobcopeland.com/blog/2024/03/going-faster-slowly/","summary":"\u003cp\u003eFor a while I\u0026rsquo;ve been using Amazing Slow Downer on the phone and PlayItSlowly on Linux for transcribing fast passages and to practice playing along with a tempo that I can manage. However, I frequently would like to just repetitively play a section a boatload of times while gradually increasing the BPM \u0026ndash; without taking my hands off the fretboard to adjust a slider. So I wrote a thing.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#75715e\"\u003e#!/bin/bash\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#75715e\"\u003e# play a segment of a song over and over, gradually\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#75715e\"\u003e# increasing the tempo\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003efile\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e$1\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003estart\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e$2\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eend\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e$3\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eattempts\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e\u003cspan style=\"color:#e6db74\"\u003e${\u003c/span\u003e4\u003cspan style=\"color:#66d9ef\"\u003e:-\u003c/span\u003e100\u003cspan style=\"color:#e6db74\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003estart_speed\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e\u003cspan style=\"color:#e6db74\"\u003e${\u003c/span\u003e5\u003cspan style=\"color:#66d9ef\"\u003e:-\u003c/span\u003e.5\u003cspan style=\"color:#e6db74\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eend_speed\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e\u003cspan style=\"color:#e6db74\"\u003e${\u003c/span\u003e6\u003cspan style=\"color:#66d9ef\"\u003e:-\u003c/span\u003e1.0\u003cspan style=\"color:#e6db74\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003estep\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e\u003cspan style=\"color:#66d9ef\"\u003e$(\u003c/span\u003eecho \u003cspan style=\"color:#e6db74\"\u003e\u0026#34;scale=4; (\u003c/span\u003e$end_speed\u003cspan style=\"color:#e6db74\"\u003e - \u003c/span\u003e$start_speed\u003cspan style=\"color:#e6db74\"\u003e)/\u003c/span\u003e$attempts\u003cspan style=\"color:#e6db74\"\u003e\u0026#34;\u003c/span\u003e| bc -l\u003cspan style=\"color:#66d9ef\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#66d9ef\"\u003efor\u003c/span\u003e t in \u003cspan style=\"color:#66d9ef\"\u003e$(\u003c/span\u003eseq $start_speed $step $end_speed\u003cspan style=\"color:#66d9ef\"\u003e)\u003c/span\u003e; \u003cspan style=\"color:#66d9ef\"\u003edo\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    echo \u003cspan style=\"color:#e6db74\"\u003e\u0026#34;*** \u003c/span\u003e$t\u003cspan style=\"color:#e6db74\"\u003e ***\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    mpv --no-video --start\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e$start --end\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e$end $file --o\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e/dev/stdout --of\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003eogg 2\u0026gt;/dev/null |\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e        gst-launch-1.0 fdsrc fd\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e0\u003c/span\u003e ! decodebin ! pitch tempo\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e\u003cspan style=\"color:#e6db74\"\u003e\u0026#34;\u003c/span\u003e$t\u003cspan style=\"color:#e6db74\"\u003e\u0026#34;\u003c/span\u003e ! autoaudiosink \u0026gt;/dev/null 2\u0026gt;\u0026amp;\u003cspan style=\"color:#ae81ff\"\u003e1\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#66d9ef\"\u003edone\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eRun it like so:\u003c/p\u003e","title":"Going faster slowly"},{"content":"A belated happy 2024!\nMost of my blog visitors are just bots spamming it with SQL injection attacks so this one goes out to any humans left out there. My job has been sucked into the generative AI vortex so I now work in an AI group at Amazon. If you\u0026rsquo;re reading this after an LLM became sentient and began rampaging\u0026hellip; bwahahah, oh man, we\u0026rsquo;re nowhere near that\u0026hellip; unless of course you are an investor and then yes sir I can magic your problem away.\nAs both of my human readers will know, in 2023 I posted a lot of jazz transcriptions and videos of myself playing them badly. This was very intentional as I decided to stop marveling at how one could make up solos on the spot, and to take some steps to learn the trick myself. My last guitar teacher (Berklee-trained) was very scale oriented, and so my improv really sounded like I was playing scales: very linear, no chromaticism and quite boring. It turns out I had a lot of misconceptions about how one does the thing \u0026ndash; as I discovered, chord tones work better than scales; transcribing licks and solos by ear is not cheating but actually foundational; approach tones are key to getting the bebop sound. Besides transcribing, sitting down and working out all the arpeggios on a tune in one position, and composing a couple of solos really felt like they gave me a good boost in my playing. So I\u0026rsquo;m going to keep this going into 2024.\nAs a reference point, here\u0026rsquo;s where I am starting this year, on All the Things You Are in which the first chorus is composed and second half-chorus is improvised. Maybe I\u0026rsquo;ll check in again in 12 months and see how I improve.\n","permalink":"https://bobcopeland.com/blog/2024/02/all-the-things-i-did/","summary":"\u003cp\u003eA belated happy 2024!\u003c/p\u003e\n\u003cp\u003eMost of my blog visitors are just bots spamming it with SQL injection attacks so this one goes out to any humans left out there. My job has been sucked into the generative AI vortex so I now work in an AI group at Amazon. If you\u0026rsquo;re reading this after an LLM became sentient and began rampaging\u0026hellip; bwahahah, oh man, we\u0026rsquo;re nowhere near that\u0026hellip; unless of course you are an investor and then yes sir I can magic your problem away.\u003c/p\u003e","title":"All the things I did"},{"content":"November was a month to remember: we had Remembrance Day, and Guy Fawkes day, and well, just a whole lot of remembering things. I have been listening to a lot of hard bop, so naturally, I learned Remember, the Hank Mobley version.\nHere\u0026rsquo;s take 1230912, post-workout edition, where I never could land that Ebm9 arpeggio in bar 49. I intentionally learned this in 5th position rather than 9th just to get some practice in a different area of the fretboard.\n","permalink":"https://bobcopeland.com/blog/2023/12/remember/","summary":"\u003cp\u003eNovember was a month to remember: we had Remembrance Day, and Guy Fawkes day, and well, just a whole lot of remembering things. I have been listening to a lot of hard bop, so naturally, I learned Remember, the Hank Mobley version.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/bcopeland/transcriptions/blob/main/remember.pdf\"\u003e\u003cimg alt=\"remember\" loading=\"lazy\" src=\"https://raw.githubusercontent.com/bcopeland/transcriptions/main/remember.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eHere\u0026rsquo;s take 1230912, post-workout edition, where I never could land that Ebm9 arpeggio in bar 49. I intentionally learned this in 5th position rather than 9th just to get some practice in a different area of the fretboard.\u003c/p\u003e","title":"Remember"},{"content":"So I haven\u0026rsquo;t posted a transcription for September or October nor have I done much of anything this month, because I had COVID officially for the first time. Unofficially, who knows, probably at least twice by now?\nSomeone needs to let BillG know the 5G has worn off at this point and we all need a refill\u0026hellip; in 2-3 months time.\nAnyway, I finally learned first couple of choruses of Bloomdido from my transcription and here I can be seen playing it not quite correctly so enjoy!\n","permalink":"https://bobcopeland.com/blog/2023/10/invincible/","summary":"\u003cp\u003eSo I haven\u0026rsquo;t posted a transcription for September or October nor have I done much of anything this month, because I had COVID officially for the first time. Unofficially, who knows, probably at least twice by now?\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2023/10/covid.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2023/10/covid.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eSomeone needs to let BillG know the 5G has worn off at this point and we all need a refill\u0026hellip; in 2-3 months time.\u003c/p\u003e\n\u003cp\u003eAnyway, I finally learned first couple of choruses of Bloomdido from my transcription and here I can be seen playing it not quite correctly so enjoy!\u003c/p\u003e","title":"Invincible"},{"content":"August\u0026rsquo;s tune is another Parker blues: Bloomdido. I transcribed all four choruses this time around, which was educational in that Parker repeats the same licks at the same place in more than one chorus, for example the C minor pentatonic figure in bars 21, 33, and 57 resolving to the 3rd of the F7. In two of those cases, he leads into it with a descending G mixolydian b9 b13 scale using a 3rd to b9 (B to A flat) intervallic leap which sounds amazing. The tempo is whipping by, so I didn\u0026rsquo;t really notice those until breaking it down, but there are a number of sounds worth stealing here.\nI transcribed this tune by hand without my instrument during a 6 hour flight using a virtual piano and slow downer app; consequently I don\u0026rsquo;t actually know how to play it yet. I have maybe the first 2 choruses down at about half speed but will need a couple weeks of practice to memorize the rest and get it up to speed. So, no video yet!\n","permalink":"https://bobcopeland.com/blog/2023/09/bloomdido/","summary":"\u003cp\u003eAugust\u0026rsquo;s tune is another Parker blues: Bloomdido. I transcribed all four choruses this time around, which was educational in that Parker repeats the same licks at the same place in more than one chorus, for example the C minor pentatonic figure in bars 21, 33, and 57 resolving to the 3rd of the F7. In two of those cases, he leads into it with a descending G mixolydian b9 b13 scale using a 3rd to b9 (B to A flat) intervallic leap which sounds amazing. The tempo is whipping by, so I didn\u0026rsquo;t really notice those until breaking it down, but there are a number of sounds worth stealing here.\u003c/p\u003e","title":"Bloomdido"},{"content":"July\u0026rsquo;s video is short and sweet. Rather than transcribe a solo this time around, I learned the head without actually writing it down and then composed a single chorus. The changes are a very bare bones B-flat blues, so this was an opportunity to check up on my voice leading and whatever bebop licks have found their way into my fingers.\nA few observations on this process:\nmy composed chorus is, not surprisingly, better than my improvised solos (not shown), so more work to do here\ndespite this being a very straightforward I-IV-V, I initially wrote in a G7 arpeggio in bar 8, so I can see some progress in my ear anticipating common jazz harmonies, even if they aren\u0026rsquo;t actually there\nThe recording is solo with no backing track or metronome. There are a couple of places, especially during rests, where I rush the tempo, and there\u0026rsquo;s a bar where I obviously failed to get my pick and left hand in sync, but on the whole I think it\u0026rsquo;s alright.\n","permalink":"https://bobcopeland.com/blog/2023/08/straight-no-chaser/","summary":"\u003cp\u003eJuly\u0026rsquo;s video is short and sweet. Rather than transcribe a solo this time around, I learned the head without actually writing it down and then composed a single chorus. The changes are a very bare bones B-flat blues, so this was an opportunity to check up on my voice leading and whatever bebop licks have found their way into my fingers.\u003c/p\u003e\n\u003cp\u003eA few observations on this process:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003emy composed chorus is, not surprisingly, better than my improvised solos (not shown), so more work to do here\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003edespite this being a very straightforward I-IV-V, I initially wrote in a G7 arpeggio in bar 8, so I can see some progress in my ear anticipating common jazz harmonies, even if they aren\u0026rsquo;t actually there\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e","title":"Straight, No Chaser"},{"content":"Time to interrupt the music posts with a check-in on this year\u0026rsquo;s garden. Now that the beds are freshly weeded and mulched, I can look at it without wincing. This year I did tomatoes: Black Krim, San Marzano (new); peppers: sweet, jalapeno, habanero; corn (new); Kirby cucumbers; garlic; gai lan; kale; carrots; potatoes; snap peas; pole beans; arugula; raspberries (new); strawberries (new); herbs: thai and sweet basil, thyme, chocolate mint, rosemary; flowers: marigolds and nasturtiums. I also just tossed a few brussels sprouts seeds in a pot to see if I can get anything with those in the fall.\nRight now a few tomatoes have come in but most are still green. The corn just got its first set of silks. The berries aren\u0026rsquo;t doing anything at all. Last year\u0026rsquo;s A-frame trellis is holding up for the tomatoes and I made a small 3-post trellis for the cucumbers, which seem to be doing well (2 jars of refrigerator pickles so far). Loving straw as a mulch compared to grass clippings (weedy) and wood chips (doesn\u0026rsquo;t break down enough) that I\u0026rsquo;d used before.\n","permalink":"https://bobcopeland.com/blog/2023/07/garden-2023/","summary":"\u003cp\u003eTime to interrupt the music posts with a check-in on this year\u0026rsquo;s garden. Now that the beds are freshly weeded and mulched, I can look at it without wincing. This year I did tomatoes: Black Krim, San Marzano (new); peppers: sweet, jalapeno, habanero; corn (new); Kirby cucumbers; garlic; gai lan; kale; carrots; potatoes; snap peas; pole beans; arugula; raspberries (new); strawberries (new); herbs: thai and sweet basil, thyme, chocolate mint, rosemary; flowers: marigolds and nasturtiums. I also just tossed a few brussels sprouts seeds in a pot to see if I can get anything with those in the fall.\u003c/p\u003e","title":"Garden 2023"},{"content":"Here we go again, this time trying a Charlie Parker Jazz blues. I thought blues was easy. Wrong!\nI cut the video off early because I didn\u0026rsquo;t actually learn the 3rd chorus, just knew the next two bars or so.\nHere\u0026rsquo;s the transcription \u0026ndash; I know there are errors after having compared to the Omnibook but I\u0026rsquo;m going to leave it here for now. New month, new tune!\n","permalink":"https://bobcopeland.com/blog/2023/07/blues-for-alice/","summary":"\u003cp\u003eHere we go again, this time trying a Charlie Parker Jazz blues. I thought blues was easy. Wrong!\u003c/p\u003e\n\u003cdiv style=\"position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;\"\u003e\n\t\t\t\u003ciframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen\" loading=\"eager\" referrerpolicy=\"strict-origin-when-cross-origin\" src=\"https://www.youtube.com/embed/mHw7p-EG9NQ?autoplay=0\u0026amp;controls=1\u0026amp;end=0\u0026amp;loop=0\u0026amp;mute=0\u0026amp;start=0\" style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;\" title=\"YouTube video\"\u003e\u003c/iframe\u003e\n\t\t\u003c/div\u003e\n\n\u003cp\u003eI cut the video off early because I didn\u0026rsquo;t actually learn the 3rd chorus, just knew the next two bars or so.\u003c/p\u003e\n\u003cp\u003eHere\u0026rsquo;s the transcription \u0026ndash; I know there are errors after having compared to the Omnibook but I\u0026rsquo;m going to leave it here for now. New month, new tune!\u003c/p\u003e","title":"Blues For Alice"},{"content":"I didn\u0026rsquo;t get very far on a transcription this month, owing to having a new project at work and especially due to Return To Office commute erasing 3 hours daily of what might have been practice time. This month\u0026rsquo;s transcription is the first chorus of Miles Davis\u0026rsquo;s Four. Frankly, it still needs work and really wants the next few choruses to sound complete, but putting a pin in it for now as I am out of time.\nI didn\u0026rsquo;t record this one, either.\n","permalink":"https://bobcopeland.com/blog/2023/06/four/","summary":"\u003cp\u003eI didn\u0026rsquo;t get very far on a transcription this month, owing to having a new project at work and especially due to Return To Office commute erasing 3 hours daily of what might have been practice time. This month\u0026rsquo;s transcription is the first chorus of Miles Davis\u0026rsquo;s \u003cem\u003eFour\u003c/em\u003e. Frankly, it still needs work and really wants the next few choruses to sound complete, but putting a pin in it for now as I am out of time.\u003c/p\u003e","title":"Four"},{"content":"I\u0026rsquo;m transcribing and learning a jazz standard each month of 2023 to try and get better at internalizing jazz language. For the month of April, I went back to bebop and learned Charlie Parker\u0026rsquo;s Moose the Mooche, a song about Parker\u0026rsquo;s favorite drug dealer. I picked the version that\u0026rsquo;s in the omnibook to have a reference to check my transcription against, and while the omnibook is probably more accurate, my transcription is a bit simpler and amenable to guitar. How Aebersold \u0026amp; Slone hear all of those eighth notes in the middle is beyond me.\nThe first time this tune grabbed me was probably when hearing the version on Joshua Redman\u0026rsquo;s Wish and I just liked the syncopation and chromaticism on the head. That version is recorded as a trio with bass and drums and so has a bit more space, while still managing to bring the intensity.\nAnd here is me playing Parker\u0026rsquo;s head and solo. I stumble a bit around bar 14 where there is a fast position shift but overall it sounds OK, I guess.\nThe transcription:\n","permalink":"https://bobcopeland.com/blog/2023/04/moose-the-mooche/","summary":"\u003cp\u003eI\u0026rsquo;m transcribing and learning a jazz standard each month of 2023 to try and get better at internalizing jazz language. For the month of April, I went back to bebop and learned Charlie Parker\u0026rsquo;s \u003cem\u003eMoose the Mooche\u003c/em\u003e, a song about \u003ca href=\"https://en.wikipedia.org/wiki/Moose_the_Mooche\"\u003eParker\u0026rsquo;s favorite drug dealer\u003c/a\u003e. I picked the version that\u0026rsquo;s in the omnibook to have a reference to check my transcription against, and while the omnibook is probably more accurate, my transcription is a bit simpler and amenable to guitar. How Aebersold \u0026amp; Slone hear all of those eighth notes in the middle is beyond me.\u003c/p\u003e","title":"Moose the Mooche"},{"content":"I am continuing to transcribe and learn a jazz standard each month to try and get better at this genre. And recording myself to keep myself honest.\nMarch\u0026rsquo;s song is My One And Only Love because I thought, \u0026ldquo;why not try to learn a ballad?\u0026rdquo; I started by making a playlist (\u0026ldquo;My many one and only loves\u0026rdquo;) and listened to twenty versions of this song, settled on the version by Grant Green as the one to transcribe, and wrote it out (just melody this time \u0026ndash; most recorded solos are generally embellishments of the melody). Green\u0026rsquo;s version has a slightly different melody and chords than the standard, and is in Eb instead of C.\nI recently got a Focusrite Scarlett for recording and the audio quality difference is, unsurprisingly, night and day compared to just recording with my webcam mic. The guitar is straight into the Scarlett, then I am using Guitarix with a Fender Twin Reverb-like amp model to get the clean sound. The bass/drums are a JJazzlab midi track. I\u0026rsquo;m using pipewire in place of Jack to route and mix the audio sources. I\u0026rsquo;m really pleased with this setup, and after years of Linux audio being, well, Linux audio, it feels like pipewire finally got things right (even on the oldish version Debian stable ships that disclaims any responsibility).\nHere\u0026rsquo;s a full song with improvised solo.\nThings for me to work on after having watched myself:\nIt\u0026rsquo;s a bit shaky on the B7 -\u0026gt; Bdim -\u0026gt; Cm transition. I kept missing the b5. I got a bit behind the chords on the last chorus and had to play catch-up. The solo is generally in the right key centers but not outlining the chords very well or having much development. I tend to play way behind the beat, even though (I think) I have it clicking away in my head. This is something I\u0026rsquo;ll need to focus on because it makes the whole thing sound sluggish and weird. Although I still like the melody, I got bored of this one pretty early on, so next month I\u0026rsquo;ll pick another uptempo bebop standard to learn.\n","permalink":"https://bobcopeland.com/blog/2023/03/my-one-and-only-love/","summary":"\u003cp\u003eI am continuing to transcribe and learn a jazz standard each month to try and get better at this genre. And recording myself to keep myself honest.\u003c/p\u003e\n\u003cp\u003eMarch\u0026rsquo;s song is \u003cem\u003eMy One And Only Love\u003c/em\u003e because I thought, \u0026ldquo;why not try to learn a ballad?\u0026rdquo; I started by making a playlist (\u0026ldquo;My many one and only loves\u0026rdquo;) and listened to twenty versions of this song, settled on the version by Grant Green as the one to transcribe, and wrote it out (just melody this time \u0026ndash; most recorded solos are generally embellishments of the melody). Green\u0026rsquo;s version has a slightly different melody and chords than the standard, and is in Eb instead of C.\u003c/p\u003e","title":"My One and Only Love"},{"content":"I finished transcribing the first solo chorus to Confirmation and then went back and compared a few other transcriptions to fix some errors. I won\u0026rsquo;t claim mine is exact at this point, but it is as close as I can hear it. Meanwhile, I learned it on guitar and can kind of play it at about 80% tempo. There are some nice finger stretches and sweep picked arpeggios in this one. Parker\u0026rsquo;s swings way harder, of course.\nHave a listen below.\n","permalink":"https://bobcopeland.com/blog/2023/02/confirmation-part-2/","summary":"\u003cp\u003eI finished transcribing the \u003ca href=\"https://github.com/bcopeland/transcriptions/blob/main/confirmation.pdf\"\u003efirst solo chorus to Confirmation\u003c/a\u003e and then went back and compared a few other transcriptions to fix some errors. I won\u0026rsquo;t claim mine is exact at this point, but it is as close as I can hear it. Meanwhile, I learned it on guitar and can kind of play it at about 80% tempo. There are some nice finger stretches and sweep picked arpeggios in this one. Parker\u0026rsquo;s swings way harder, of course.\u003c/p\u003e","title":"Confirmation part 2"},{"content":"Continuing on my goal to transcribe and learn a tune each month, I set Groovin\u0026rsquo; High aside and transcribed the head of Parker\u0026rsquo;s Confirmation this weekend. On github as usual.\nI took a quick scan of the internets and my transcription is pretty close, at least as far as the rhythms go. There are a few places where we disagree on notes, on some of the 16th triplets and a few bars in the bridge. I\u0026rsquo;ll have another listen and fix these things up as I have time.\nThe intro comes from Al Haig on whichever version I happened to have. I worked it out in front of the piano and can just play it with my terrible piano skills. Not sure about the chromatic descending minor chords since I can really only hear the bass notes on the recording but it doesn\u0026rsquo;t sound too bad.\nAnyway, onto the solos\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2023/02/confirmation/","summary":"\u003cp\u003eContinuing on my goal to transcribe and learn a tune each month, I set \u003cem\u003eGroovin\u0026rsquo; High\u003c/em\u003e aside and transcribed the head of Parker\u0026rsquo;s \u003cem\u003eConfirmation\u003c/em\u003e this weekend. On \u003ca href=\"https://github.com/bcopeland/transcriptions\"\u003egithub\u003c/a\u003e as usual.\u003c/p\u003e\n\u003cp\u003eI took a quick scan of the internets and my transcription is pretty close, at least as far as the rhythms go. There are a few places where we disagree on notes, on some of the 16th triplets and a few bars in the bridge. I\u0026rsquo;ll have another listen and fix these things up as I have time.\u003c/p\u003e","title":"Confirmation"},{"content":"Since last time I have been working on transcribing the solo on the tune Groovin\u0026rsquo; High.\nAs a snapshot of where I am on this one, you can watch me creak my way through the solo over here:\nThere are a half dozen wrong notes and the last phrase is totally off, but, it\u0026rsquo;s getting there.\nWhile at it, I wrote an arpeggio study for the chord changes and tried out lilypond\u0026rsquo;s built-in tablature renderer for this. The automatic numbering works well enough. I work out the fingering first and then tell it which string to use (otherwise it will pick fairly random positions with open strings), but at least it\u0026rsquo;s less likely to make a typo when you give note names instead of fret numbers.\nCorrection to my previous post, the sax player on this recording was (I think) Ernie Henry, not Charlie Parker. I do have one of the versions with Parker on it, but the recording quality is not great so this one is easier to listen to. It comes from the album Dizzy in Greece that I had from a compilation, so it took a lot of googling to figure out when it was originally released and who played on it.\n","permalink":"https://bobcopeland.com/blog/2023/01/grooving-not-so-high/","summary":"\u003cp\u003eSince last time I have been working on transcribing the solo on the tune Groovin\u0026rsquo; High.\u003c/p\u003e\n\u003cp\u003eAs a snapshot of where I am on this one, you can watch me creak my way through the solo over here:\u003c/p\u003e\n\u003cdiv style=\"position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;\"\u003e\n\t\t\t\u003ciframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen\" loading=\"eager\" referrerpolicy=\"strict-origin-when-cross-origin\" src=\"https://www.youtube.com/embed/3wfch_x3ams?autoplay=0\u0026amp;controls=1\u0026amp;end=0\u0026amp;loop=0\u0026amp;mute=0\u0026amp;start=0\" style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;\" title=\"YouTube video\"\u003e\u003c/iframe\u003e\n\t\t\u003c/div\u003e\n\n\u003cp\u003eThere are a half dozen wrong notes and the last phrase is totally off, but, it\u0026rsquo;s getting there.\u003c/p\u003e","title":"Grooving not so high"},{"content":"I never really liked big band music as a genre, but I guess it\u0026rsquo;s hard to find fault when Dizzy and Bird are on the bandstand. And thus I\u0026rsquo;ve had Groovin\u0026rsquo; High going through my brain for weeks on end, so I finally sat down this morning to transcribe the head. It doesn\u0026rsquo;t appear in any of my real books so I did it the old fashioned way: listening, and then after I had a first draft down, cheating with image search. Mistakes are either my own or someone else\u0026rsquo;s.\nThis is fun to play on guitar: the arpeggios are all familiar shapes starting in 11th position and there are some interesting chromatic enclosures. It is not hard to play at tempo. Maybe I\u0026rsquo;ll keep going on this one and transcribe the solos at some point. Lilypond source in the link.\n","permalink":"https://bobcopeland.com/blog/2023/01/first-standard-of-2023/","summary":"\u003cp\u003eI never really liked big band music as a genre, but I guess it\u0026rsquo;s hard to find fault when Dizzy and Bird are on the bandstand. And thus I\u0026rsquo;ve had \u003cem\u003eGroovin\u0026rsquo; High\u003c/em\u003e going through my brain for weeks on end, so I finally sat down this morning to transcribe the head. It doesn\u0026rsquo;t appear in any of my real books so I did it the old fashioned way: listening, and then after I had a first draft down, cheating with image search. Mistakes are either my own or someone else\u0026rsquo;s.\u003c/p\u003e","title":"First Standard of 2023"},{"content":"Somewhere along the way this summer I quit doing crosswords for a while. Maybe my gardening hobby took over, or I didn\u0026rsquo;t want to touch the computer after work, or perhaps pandemic has been too much of a stressor, or maybe it just felt too much of an obligation to keep up with \u0026ndash; whatever the reason, I fell out of practice a bit. Visualized, my puzzling activity for 2022 looks like this:\nlegend: white = streak meaning I solved it the day of, gray = I did it (possibly much) later, black = still haven\u0026rsquo;t opened it\nI also skipped entirely the ACPT this year.\nRecently, though, an LWN story about Gnome Crosswords rekindled my interest a bit. A few of the puzzles from my website have been merged into this project, and I have another few sitting around that I will polish up and submit someday.\nThis was a good exercise to clean up some awkward fill:\nBOB / MAKO cross to BIB / MAKI; for this rejected-from-NYT puzzle, I still felt bad about putting my own name in it; also I guess MAKI is more common for anyone who has ever eaten sushi\nPETRE [Architect of Christchurch Basilica (?!)] / GAR to PETME / GAM in this puzzle. Although GAM feels objectifying, I clued it as bygone film noir slang. Anyway PETRE was so terrible that it had to go.\nSame puzzle, AKA / OKE [Just great, in old slang (?!)] to ADA / ODE. People running Linux are quite likely to know Ada Lovelace, besides which it is in mainstream puzzles by now, and OKE is very O_o.\nThere are still some lousy answers in both puzzles, driven by grid shape so fixing would require a lot of work, but these tiny tweaks make them a lot less bad.\nMeanwhile, I\u0026rsquo;ve completed most of the early-week puzzles over the last few weeks, chasing the 5-minute mark on Tuesday puzzles (personal best currently 5:07) and the 4-minute mark on Mondays (4:12).\nThe discussion in the LWN thread was about crossword file formats, and since Gnome crosswords uses ipuz, I dusted off XwordJS and added ipuz support, and even wrote a couple of test cases. For my money I still prefer XD, much the same as I prefer Markdown to HTML, which brings me back to the image at the beginning of the post.\nWhen I was a wee lad, we would write programs to make images, and all libraries sucked in these times so we would often roll our own. As an example of sucking, this is from a real-life comment in actual code:\n* We use C\u0026#39;s setjmp/longjmp facility to return control. This means that the * routine which calls the JPEG library must first execute a setjmp() call to * establish the return point. We want the replacement error_exit to do a * longjmp(). But we need to make the setjmp buffer accessible to the * error_exit routine. To do this, we make a private extension of the * standard JPEG error handler object. (If we were using C++, we\u0026#39;d say we * were making a subclass of the regular error handler.) Being poor students at the time, we could not afford to spend our hard-earned money on compression, decimal to binary conversion, or complex serializers, so we did the simplest possible thing that worked: we wrote out P[BGP]M text files (we were profligate when it came to disk). My little visualization was done just in this way: open up vim, a few macros later, a PGM file is born. I let gimp handle the hard work of rotating, scaling up, and converting to PNG, but ImageMagick probably would\u0026rsquo;ve worked just as well.\nP2 7 38 255 128 128 128 128 128 128 255 255 255 255 255 255 255 255 [...] There is a lot to be said for plain old text, and no, that does not include JSON.\n","permalink":"https://bobcopeland.com/blog/2022/09/the-latest-on-letters-in-squares/","summary":"\u003cp\u003eSomewhere along the way this summer I quit doing crosswords for a while. Maybe my gardening hobby took over, or I didn\u0026rsquo;t want to touch the computer after work, or perhaps pandemic has been too much of a stressor, or maybe it just felt too much of an obligation to keep up with \u0026ndash; whatever the reason, I fell out of practice a bit. Visualized, my puzzling activity for 2022 looks like this:\u003c/p\u003e","title":"The latest on letters in squares"},{"content":"It\u0026rsquo;s that time of year when all the fruits are ripening and we have more than we can reasonably eat.\nZucchini is new this year, and this used to be one of my favorite summer vegetables, but now I\u0026rsquo;m just trying to figure out how to use it all up. We ate it as tacos, parm, grilled, roasted, fried, donated to the food pantry, and we still have some in the fridge. Perhaps zucchini bread is in the offing.\nThe Black Krim tomatoes are delicious sliced on their own, but having several pounds on my hands at the peak of ripeness, I can\u0026rsquo;t make enough biscuits to go with them. So yesterday I made a couple of jars of pizza sauce (mix of fresh Romas, Black Krims, and a can of San Marzanos, some of my garden basil and garlic). Today we had freshly made sourdough pizzas topped with this sauce and, reader, I submit there is nothing better.\n","permalink":"https://bobcopeland.com/blog/2022/08/august-already/","summary":"\u003cp\u003eIt\u0026rsquo;s that time of year when all the fruits are ripening and we have more than we can reasonably eat.\u003c/p\u003e\n\u003cp\u003eZucchini is new this year, and this used to be one of my favorite summer vegetables, but now I\u0026rsquo;m just trying to figure out how to use it all up. We ate it as tacos, parm, grilled, roasted, fried, donated to the food pantry, and we still have some in the fridge. Perhaps zucchini bread is in the offing.\u003c/p\u003e","title":"August already"},{"content":"It\u0026rsquo;s once again that time of year where I have enough growing out in the garden that I can share a couple of photos. Pictured below: some marigolds, gai lan, sugar snap peas, and unripe tomatoes. Last week I made some garlic mayo from harvested garlic scapes \u0026ndash; a delicious addition to grilled burgers.\n","permalink":"https://bobcopeland.com/blog/2022/07/july-already/","summary":"\u003cp\u003eIt\u0026rsquo;s once again that time of year where I have enough growing out in the garden that I can share a couple of photos. Pictured below: some marigolds, gai lan, sugar snap peas, and unripe tomatoes. Last week I made some garlic mayo from harvested garlic scapes \u0026ndash; a delicious addition to grilled burgers.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2022/07/2022-marigolds.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2022/07/2022-marigolds.jpg\"\u003e\u003c/a\u003e\u003ca href=\"/blog/wp-content/uploads/2022/07/2022-gailan.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2022/07/2022-gailan.jpg\"\u003e\u003c/a\u003e\u003ca href=\"/blog/wp-content/uploads/2022/07/2022-peas.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2022/07/2022-peas.jpg\"\u003e\u003c/a\u003e\u003ca href=\"/blog/wp-content/uploads/2022/07/2022-tomatoes.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2022/07/2022-tomatoes.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e","title":"July already"},{"content":"Recently my Kindle (Paperwhite 3, 2015 edition) had a mishap wherein it took a trip through the washing machine. After it dried out, I tried booting it up again only to get a \u0026ldquo;you should really go repair this\u0026rdquo; graphic on the display and it was toast. I took the opportunity to upgrade to the more recent, somewhat waterproof edition.\nMeanwhile, I wondered if I could do something with the e-ink screen on this old one. After manhandling it open, I found I could get it back on after disconnecting and reconnecting the battery and shorting the traces where the power button used to be. So, naturally I rooted this thing.\nBesides trying out KOReader and the like, one possible use for the device would be as a very low power black-and-white photo frame, so here\u0026rsquo;s a picture of one of the kiddos on the screen. Perhaps encasing this in a better frame and setting up a cron job to cycle images every few days would make a nice build.\n","permalink":"https://bobcopeland.com/blog/2022/05/retrofuturism/","summary":"\u003cp\u003eRecently my Kindle (Paperwhite 3, 2015 edition) had a mishap wherein it took a trip through the washing machine. After it dried out, I tried booting it up again only to get a \u0026ldquo;you should really go repair this\u0026rdquo; graphic on the display and it was toast. I took the opportunity to upgrade to the more recent, somewhat waterproof edition.\u003c/p\u003e\n\u003cp\u003eMeanwhile, I wondered if I could do something with the e-ink screen on this old one. After manhandling it open, I found I could get it back on after disconnecting and reconnecting the battery and shorting the traces where the power button used to be. So, naturally I rooted this thing.\u003c/p\u003e","title":"Retrofuturism"},{"content":"This weekend I finished up an A-frame trellis for this year\u0026rsquo;s garden that I\u0026rsquo;m hoping will make it easier to grow tomatoes up a string and some pole beans or peas on a mesh on the outside. Last year\u0026rsquo;s better boys that I\u0026rsquo;d clipped along a piece of twine were by far the lowest maintenance tomatoes ever, so doubling down on that.\nI rigorously planned this trellis as you can see from the blueprint. Still, I made some last minute changes, like anchoring it to rebar with zip-ties instead of driving the posts in directly \u0026ndash; since I used the cheapest 1x2s ever made, it was highly likely that tapping them with a hammer would\u0026rsquo;ve resulted in catastrophic failure. Zip ties will likely be upgraded to a more permanent clamp at some point.\n","permalink":"https://bobcopeland.com/blog/2022/04/a-frame/","summary":"\u003cp\u003eThis weekend I finished up an A-frame trellis for this year\u0026rsquo;s garden that I\u0026rsquo;m hoping will make it easier to grow tomatoes up a string and some pole beans or peas on a mesh on the outside. Last year\u0026rsquo;s better boys that I\u0026rsquo;d clipped along a piece of twine were by far the lowest maintenance tomatoes ever, so doubling down on that.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2022/04/aframe-600.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2022/04/aframe-600.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eI rigorously planned this trellis as you can see from the blueprint. Still, I made some last minute changes, like anchoring it to rebar with zip-ties instead of driving the posts in directly \u0026ndash; since I used the cheapest 1x2s ever made, it was highly likely that tapping them with a hammer would\u0026rsquo;ve resulted in catastrophic failure. Zip ties will likely be upgraded to a more permanent clamp at some point.\u003c/p\u003e","title":"A-Frame"},{"content":"I \u0026ldquo;built\u0026rdquo; a cold frame this weekend to start hardening off the several gai lan plants I have under grow lights in the basement. I knew I was saving all of those furnace filters for a reason.\n","permalink":"https://bobcopeland.com/blog/2022/04/cold-frame/","summary":"\u003cp\u003eI \u0026ldquo;built\u0026rdquo; a cold frame this weekend to start hardening off the several gai lan plants I have under grow lights in the basement. I knew I was saving all of those furnace filters for a reason.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2022/04/coldframe.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2022/04/coldframe.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e","title":"Cold frame"},{"content":"My current jazz odyssey involves transcribing some tunes. So I played around with lilypond/lilyjazz for the first time while transcribing Sonny Rollins\u0026rsquo; solos on St. Thomas.\nLilyjazz is quite nice - the output really looks like the page was ripped out of the Real Book and much more readable than anything I have ever written out by hand.\nI admit to not knowing the rules about how best to spell notes or rhythms so a few things probably look weird, and I glossed over some of the fast parts. Still, it\u0026rsquo;s not terrible for a first try.\nAs for this solo, what caught my ear initially was how well one measure leads into the next, and there are plenty of examples of nice voice leading in here. But after writing it out, the quarter notes in bars 41-42 and 76 stand out to me \u0026ndash; just great examples of tension and release. I also missed on first hearing how Rollins returns to the opening motif at various points like bar 31, giving it a nice thematic completeness.\nAnyway, lilypond source and the second page are in my github. Corrections welcome.\nNote: I transcribed it in C for piano / guitar; lilypond can transpose automatically for other instruments. On guitar, I find 5th position is the most comfortable spot to play it. Although 8th position is a typical place for C major, I find the notes sound too muddy on the 5th and 6th strings.\n","permalink":"https://bobcopeland.com/blog/2022/01/transcription-st-thomas/","summary":"\u003cp\u003eMy current \u003ca href=\"https://www.youtube.com/watch?v=JtvGR8UX1L0\"\u003ejazz odyssey\u003c/a\u003e involves transcribing some tunes. So I played around with lilypond/lilyjazz for the first time while transcribing Sonny Rollins\u0026rsquo; solos on St. Thomas.\u003c/p\u003e\n\u003cp\u003eLilyjazz is quite nice - the output really looks like the page was ripped out of the Real Book and much more readable than anything I have ever written out by hand.\u003c/p\u003e\n\u003cp\u003eI admit to not knowing the rules about how best to spell notes or rhythms so a few things probably look weird, and I glossed over some of the fast parts. Still, it\u0026rsquo;s not terrible for a first try.\u003c/p\u003e","title":"Transcription: St. Thomas"},{"content":"2021 is in the books. Enough said here.\nThe family is doing fine, but understandably bored. We are fully vaxxed to the extent possible but maintaining caution under the current Omicron wave. Holding pattern continues unabated.\nNormally I would have spent the dead week between Christmas and New Year\u0026rsquo;s doing something computer-y outside of my day-to-day work, but this year I was just too tired to hack. So instead I started working my way through a jazz theory book and analyzed a few tunes from a real book. Last year, I discovered JJazzLab, which has been a fun tool for practicing improvisation on Linux. I play OK diatonically, but I still need a lot of work on playing outside and in melodic minor modes. It might be interesting to work up a half dozen tunes in 2022, recording them on both piano and guitar to track progress. We shall see if I can find time for that.\nLast year, I wanted to improve on my crossword solving times. I completed every 2021 NYT puzzle, improving my average times by 15-20% \u0026ndash; except on Fridays, where the average went up by a minute. Max streak was 95 days, lowest time was 4:30 (11-08-2021).\nSnow blankets the ground right now, prompting wistful thoughts of this year\u0026rsquo;s garden. I\u0026rsquo;ll order some seeds in the next few weeks. For now, I have a couple of overwintering habaneros wanting only longer, warmer days.\nJust like the rest of us.\n","permalink":"https://bobcopeland.com/blog/2022/01/its-2022/","summary":"\u003cp\u003e2021 is in the books. Enough said here.\u003c/p\u003e\n\u003cp\u003eThe family is doing fine, but understandably bored. We are fully vaxxed to the extent possible but maintaining caution under the current Omicron wave. Holding pattern continues unabated.\u003c/p\u003e\n\u003cp\u003eNormally I would have spent the dead week between Christmas and New Year\u0026rsquo;s doing something computer-y outside of my day-to-day work, but this year I was just too tired to hack. So instead I started working my way through a jazz theory book and analyzed a few tunes from a real book. Last year, I discovered JJazzLab, which has been a fun tool for practicing improvisation on Linux. I play OK diatonically, but I still need a lot of work on playing outside and in melodic minor modes. It might be interesting to work up a half dozen tunes in 2022, recording them on both piano and guitar to track progress. We shall see if I can find time for that.\u003c/p\u003e","title":"It's 2022."},{"content":"The garden was pretty successful this year - everything I planted produced in some way. We dined on a copiousness of kale, a pallet of peas, a torrent of tomatoes, a heap of habaneros, a barrage of beans, an overabundance of aubergines (an expanse of eggplants?), and more. Pumpkins were a fun addition but they used so much space (one entire bed, and still spilled onto the sidewalk) that I\u0026rsquo;ll give it a miss next year. At least the resident vole enjoyed snacking on them.\nAlthough I only got a couple of fruits from its container, the black krims were by far my favorite tomato variety, so next year they will get the top spot in the garden.\nI canned a few jars of salsa and a batch of habanero jam to keep us warm during the winter.\n","permalink":"https://bobcopeland.com/blog/2021/11/another-garden-dead-and-buried/","summary":"\u003cp\u003eThe garden was pretty successful this year - everything I planted produced in some way. We dined on a copiousness of kale, a pallet of peas, a torrent of tomatoes, a heap of habaneros, a barrage of beans, an overabundance of aubergines (an expanse of eggplants?), and more. Pumpkins were a fun addition but they used so much space (one entire bed, and still spilled onto the sidewalk) that I\u0026rsquo;ll give it a miss next year. At least the resident vole enjoyed snacking on them.\u003c/p\u003e","title":"Another garden dead and buried"},{"content":"One month of garden growth in 15 seconds. The pole beans (top right) really take off at the end.\nYour browser does not support the video element. ","permalink":"https://bobcopeland.com/blog/2021/07/time-lapse/","summary":"\u003cp\u003eOne month of garden growth in 15 seconds. The pole beans (top right) really take off at the end.\u003c/p\u003e\n\n\u003cvideo controls preload=\"metadata\"\u003e\n  \u003csource src=\"/images/garden.mp4\" type=\"video/mp4\"\u003e\n  Your browser does not support the video element.\n\u003c/video\u003e","title":"Time lapse"},{"content":"I\u0026rsquo;m nicely keeping to my two-post-a-year cadence with one of them being about gardening. Here\u0026rsquo;s the gardening one.\nThis year I got bored and built a bunch of bespoke structures out of 1x2s for trellising and to have an excuse to use my drill. Some of my tomatoes are thus growing in wood boxes and connected via clips to twine, while the others are using the more traditional tied-to-a-single-stake method. Have to say I prefer the former arrangement since it is super-easy to adjust as they get larger.\nIt also provided a nice place to mount a camera to catch various wildlife attacking the food, so I did.\nHere is a skunk(?) from when the camera was mounted at ground level (volume up):\nYour browser does not support the video element. Here is a rabbit from the bird\u0026rsquo;s eye view:\nYour browser does not support the video element. And one from when he was feeling a bit more bold:\nNew this year: peas and beans, kale, pumpkins, watermelon, Thai basil, cilantro, eggplant New but not thriving due to leaf miners: Swiss chard \u0026amp; beets Returning favorites: peppers (4), potatoes (12), tomatoes (9)\n","permalink":"https://bobcopeland.com/blog/2021/06/what-im-growing-this-year/","summary":"\u003cp\u003eI\u0026rsquo;m nicely keeping to my two-post-a-year cadence with one of them being about gardening. Here\u0026rsquo;s the gardening one.\u003c/p\u003e\n\u003cp\u003eThis year I got bored and built a bunch of bespoke structures out of 1x2s for trellising and to have an excuse to use my drill. Some of my tomatoes are thus growing in wood boxes and connected via clips to twine, while the others are using the more traditional tied-to-a-single-stake method. Have to say I prefer the former arrangement since it is super-easy to adjust as they get larger.\u003c/p\u003e","title":"What I'm growing this year"},{"content":"I am mostly keeping up my daily ritual of doing the NYT crossword and generally getting faster, with most of my solves now below my historical average, but it\u0026rsquo;s getting harder to set a personal best. Every once in a while a puzzle comes along that is abnormally easy for the day-of-the-week, so that my best times are fairly far from the mean. It would be interesting to see the whole distribution over time, but as far as I know that data is not available.\nAnyhow, determined to meet my entirely arbitrary goal of a sub-5 minute NYT crossword solve, I sat down today and did eleven Monday puzzles in a row. The eleventh (April 13, 2020) clocked in at 4:48. Success! When you do them back-to-back like this, it\u0026rsquo;s comical how frequently the same answer will appear from one to the next. Not just well-worn friends like ASEA, but slightly further out words: for example OKRA came up in almost the same grid location between this one and May 11, 2020. The other interesting thing about speed solving is how infrequently I\u0026rsquo;ll even notice the theme. I only just now went back to see the theme on this puzzle. DROPS/OCEAN were a nice touch.\n","permalink":"https://bobcopeland.com/blog/2021/06/sub-five/","summary":"\u003cp\u003eI am mostly keeping up my daily ritual of doing the NYT crossword and generally getting faster, with most of my solves now below my historical average, but it\u0026rsquo;s getting harder to set a personal best. Every once in a while a puzzle comes along that is abnormally easy for the day-of-the-week, so that my best times are fairly far from the mean. It would be interesting to see the whole distribution over time, but as far as I know that data is not available.\u003c/p\u003e","title":"Sub five"},{"content":"This weekend I burnished my geek CRED (clued as such in some puzzle) by participating in the virtualized 2021 American Crossword Puzzle Tournament. This year, they used Not-My-Software, which is a good thing because I would hate to be on tech support the year everyone that had to do virtual crosswording for the first time. I solved 6/8 puzzles cleanly which is enough to land just above the bottom 20% of the entrants! Of the misses, puzzle 5 was a beast, while puzzle 7 was pretty nice, but I didn\u0026rsquo;t get the theme quickly enough and lost five or ten minutes feeding the youngster breakfast during the solve. My fastest time was 6:58 on the (unscored) final which is no great shakes compared to the field but pretty good for me.\nIn other news, github thinks that I helped make the Mars helicopter fly. I\u0026rsquo;ve no delusions that my meager contributions to Linux are even compiled into whatever image that drone is actually running, but all the same, very cool!\n","permalink":"https://bobcopeland.com/blog/2021/04/i-put-some-letters-in-squares/","summary":"\u003cp\u003eThis weekend I burnished my geek CRED (clued as such in some puzzle) by participating in the virtualized 2021 American Crossword Puzzle Tournament. This year, they used Not-My-Software, which is a good thing because I would hate to be on tech support the year everyone that had to do virtual crosswording for the first time. I solved 6/8 puzzles cleanly which is enough to land just above the bottom 20% of the entrants! Of the misses, puzzle 5 was a beast, while puzzle 7 was pretty nice, but I didn\u0026rsquo;t get the theme quickly enough and lost five or ten minutes feeding the youngster breakfast during the solve. My fastest time was 6:58 on the (unscored) final which is no great shakes compared to the field but pretty good for me.\u003c/p\u003e","title":"I put some letters in squares"},{"content":"\nThe one task I hate when gardening is hardening off plants. I tend to rush it and my poor seedlings pay the price. Usually, I am pretty good about limiting sun exposure but not so good about setting up wind breaks.\nThis year I decided to try introducing wind to my plants while they are still in the grow room. Sure, I could go plonk down $50 and get something bespoke here, but this is a perfect opportunity to use some of the extra PC case fans I have sitting around. It took all of two minutes to prototype a working \u0026ldquo;plant fan\u0026rdquo; by connecting a 9V battery across the fan terminals and cable tying the fan near my bell pepper plants.\nThat worked, until the battery gave out a few hours later. Also there was just one speed, \u0026ldquo;On,\u0026rdquo; and I might want to baby some plants or give them the occasional break. A good reason to dig through my parts box and pull out the trusty old Arduino.\nThere is basically nothing to fan speed control: just send a PWM signal on pin 4 and the rest is same as before. The microcontroller can send PWM signals for you so you just need to set the level. I put a pot between +5V and GND as a speed knob and wrote a quick sketch, and bam! Code here.\nPower to the Arduino is on the same power strip as my grow lights, plugged into a smart power switch. The wind and sun get turned off according to the clock, or Alexa.\nI don\u0026rsquo;t lack for Linux capable SBCs around here but there is something refreshing about the simplicity of Arduino.\n","permalink":"https://bobcopeland.com/blog/2021/03/house-of-zephyrus/","summary":"\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2021/03/imafan2.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2021/03/imafan2.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThe one task I hate when gardening is hardening off plants. I tend to rush it and my poor seedlings pay the price. Usually, I am pretty good about limiting sun exposure but not so good about setting up wind breaks.\u003c/p\u003e\n\u003cp\u003eThis year I decided to try introducing wind to my plants while they are still in the grow room. Sure, I could go plonk down $50 and get something bespoke here, but this is a perfect opportunity to use some of the extra PC case fans I have sitting around. It took all of two minutes to prototype a working \u0026ldquo;plant fan\u0026rdquo; by connecting a 9V battery across the fan terminals and cable tying the fan near my bell pepper plants.\u003c/p\u003e","title":"House of Zephyrus"},{"content":"In case anyone was wondering: now is the point at which eight year old appliances are dying. Our house has just reached this venerable age, and in the last few months, the refrigerator, oven, and dishwasher all decided to quit working in some way or another. Thanks to COVID and YouTube, I fixed 2/3s of these appliances all by myself, which together with last year\u0026rsquo;s HVAC repair, means I am officially qualified to make twice my current hourly rate.\nThe snow is starting to melt here which means I am antsy for gardening season. My seeds, along with the rest of Canadian gardening population\u0026rsquo;s seeds, are still on backorder, so I\u0026rsquo;m making a go of it with some of previous years\u0026rsquo; seeds. I added another 3\u0026rsquo;x4\u0026rsquo; raised bed in which I hope to grow some cucurbits. So far, I have some radishes in the ground; bell peppers, kale, and basil germinating; and tomatoes and peppers just seeded.\n","permalink":"https://bobcopeland.com/blog/2021/03/house-of-theseus/","summary":"\u003cp\u003eIn case anyone was wondering: now is the point at which eight year old appliances are dying. Our house has just reached this venerable age, and in the last few months, the refrigerator, oven, and dishwasher all decided to quit working in some way or another. Thanks to COVID and YouTube, I fixed 2/3s of these appliances \u003cem\u003eall by myself\u003c/em\u003e, which together with last year\u0026rsquo;s HVAC repair, means I am officially qualified to make twice my current hourly rate.\u003c/p\u003e","title":"House of Theseus"},{"content":"After a bit of a break, I am back to doing the NYTXW every day, except when I forget. Out of laziness, I am just using their webapp instead of my own, thereby saving at least two clicks. As a result, I get their fancy stats deal for free.\nAs a completely pointless milestone, I\u0026rsquo;d like to break the five minute barrier sometime this year. I got pretty close with last Monday\u0026rsquo;s puz, and it didn\u0026rsquo;t feel like it was possible to type any faster. But I understand that in the competitive world, times are typically half that. Five minutes is somewhere around four seconds per answer, seems doable.\n","permalink":"https://bobcopeland.com/blog/2021/02/35-seconds/","summary":"\u003cp\u003eAfter a bit of a break, I am back to doing the NYTXW every day, except when I forget. Out of laziness, I am just using their webapp instead of my own, thereby saving at least two clicks. As a result, I get their fancy stats deal for free.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2021/02/Screenshot_20210207-120003.png\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2021/02/Screenshot_20210207-120003.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eAs a completely pointless milestone, I\u0026rsquo;d like to break the five minute barrier sometime this year. I got pretty close with last Monday\u0026rsquo;s puz, and it didn\u0026rsquo;t feel like it was possible to type any faster. But I understand that in the competitive world, times are typically half that. Five minutes is somewhere around four seconds per answer, seems doable.\u003c/p\u003e","title":"35 seconds"},{"content":"Dear reader, I am writing this from my bunker in lockdown. Here we are on the final day of 2020, and all I can say is, whew, we made it.\nThe front page of this blog goes back a year and a half which doesn\u0026rsquo;t say a lot about my level of commitment to this here writing thing of late. I shall try to make up for that by summarizing some of the projects I actually completed in 2020, but which I was too lazy to document contemporaneously so they might as well have not happened at all. Well here\u0026rsquo;s your bunch of write-ups all squashed into one blog entry, happy now?\nI celebrated my first anniversary at Amazon in October, a year which saw us ship a huge cross-team project and deliver an outage-free Christmas. If you are one of the millions who interacted with Alexa this year, my many colleagues and I helped make that happen. If Alexa responded with something completely nonsensical or useless, well, then, that was probably some other team\u0026rsquo;s fault.\nI\u0026rsquo;m happy to still be working in software, 22 years since I took my first full-time job. Back then, I took one of my first paychecks to the local hi-fi stereo vendor and purchased a Paradigm home theater setup. My roommate and I didn\u0026rsquo;t have any furniture to speak of, but who needs that when you can watch VHS tapes in 5.1 surround on a giant tube TV! These days, the surrounds and center channel speakers are gathering dust, but I still use the bookshelf speakers and sub. Recently, I noticed these poor old Atoms were rattling whenever the bass kicked in. Youtubers said that this is common and you need to replace your foam surrounds and you can buy a kit and do it yourself and did you know that you could just buy a new pair of monitors for as little as $5000 and also get some gold plated optical cables while you are at it for the warmest possible digital sound. So yes, I did buy such a kit and I did do it myself.\nWell, this was an epically bad glue job, but there are no longer any clicks while listening to Technotronic\u0026rsquo;s Pump Up The Jam, so we are good for another 20 years or so.\nDining: for those that don\u0026rsquo;t know, in 2020, we were hit with a global SARS-Cov-2 pandemic. Never a family to eat out much anyway, we cut out the few remaining visits to eateries in the interest of not dying. The odd craving did strike though, so I fashioned a cheesecake, bagels, fried chicken, lattes, and doughnuts with my bare hands!\nAs in previous years, I grew a garden over the summer. The new-to-me crops: cucumbers and potatoes. Of the former, I had a lot: I ended up with something like ten pints of pickles even after having cukes in salads every day. I had only a few potatoes, but was surprised to find that the home grown varieties had a much different, nuttier taste than supermarket spuds. Both will probably make an appearance next year but I\u0026rsquo;ll need to balance out the yields. Also ended up with quite a few jalapenos which turned into a dozen jars of pepper jelly, and the usual amount of tomatoes (sauces, paste, pizza toppers, and so on). All this despite a family of rabbits literally living in my raised bed.\nAnyway, this is all I can remember doing in 2020, or at least those things I have pictures of. Here\u0026rsquo;s hoping we get some vaccines in 2021 and we can go outside again. Wake me when that happens.\n","permalink":"https://bobcopeland.com/blog/2020/12/finis/","summary":"\u003cp\u003eDear reader, I am writing this from my bunker in lockdown. Here we are on the final day of 2020, and all I can say is, whew, we made it.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2020/12/smaller_PXL_20201129_212831177.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2020/12/smaller_PXL_20201129_212831177.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThe front page of this blog goes back a year and a half which doesn\u0026rsquo;t say a lot about my level of commitment to this here writing thing of late. I shall try to make up for that by summarizing some of the projects I actually completed in 2020, but which I was too lazy to document contemporaneously so they might as well have not happened at all. Well here\u0026rsquo;s your bunch of write-ups all squashed into one blog entry, happy now?\u003c/p\u003e","title":"Finis"},{"content":"Having successfully shipped a project at $dayjob after some extended crunch time, I took this week off to recharge. This naturally gave me the opportunity to, um, write more code. In particular, I worked a bit on my crossword constructor while also constructing a crossword. I\u0026rsquo;m a bit rusty in this area, so while I was able to fill a puzzle with a reasonable theme, I\u0026rsquo;m probably going to end up redoing the fill before trying to publish that one because some areas are pretty yuck.\nWhich brings me to computing project number two: a neural net that tries to grade crosswords. Now, I can and have done this using some composite scores of the entries, based on some kind of word list rankings, but for this go-round I thought it would be fun to emulate the semi-cantankerous NYT crossword critic, Rex Parker. Parker (his nom de plume) is infamous for picking apart the puzzle every day and identifying its weak spots. Some time ago, Dave Murchie set up a website, Did Rex Parker Like The Puzzle, which, as the URL suggests, gives the short-on-time enthusiast the Reader\u0026rsquo;s Digest version. What if we had, say, wouldrexparkerlikethepuzzle.com: would this level of precognition inevitably lead us into an apocalyptic nightmare, even worse than the one we currently inhabit? Let us throw caution into the wind like so many Jurassic Park scientists and see what happens.\nI didn\u0026rsquo;t do anything so fancy as to generate prose with GPT-3; instead I just trained a classifier using images of the puzzles themselves. Maybe, thought I, a person (and therefore a NN) can tell whether the puzzle is good or bad just by looking at the grid. Let\u0026rsquo;s assume Rex is consistent on what he likes \u0026ndash; if so we could use simple image recognition to tell whether something is Rex-worthy or not. Thanks to Murchie\u0026rsquo;s work, I already had labels for 4 years of puzzles, so I downloaded all of those puzzles and trained an NN on them, as one does.\nI tried a couple of options for the grid images. In one experiment, I used images derived from the filled grids, letters and all; in another, I considered only the empty grid shape itself. It didn\u0026rsquo;t make much difference either way, which suggests the language aspect of the puzzle is not really useful or adequately captured by the model.\nHow well did it work? Better than a coin flip, but not by a lot.\nWhen trained with filled grids, it achieved an accuracy of 58.7%. When trained with just the grid shape, it achieved an accuracy of 61.4%.\nBoth models said he would like today\u0026rsquo;s (10-31-2020) puzzle, about which he was actually fairly ambivalent. My guess is the model is really keying in on number of black squares as a proxy for it being a Friday or Saturday puz, which he tends to like better than any other day of the week and therefore this one was highly ranked. Probably just predicting on number of squares would have performed similarly.\n","permalink":"https://bobcopeland.com/blog/2020/11/in-which-i-faked-a-person/","summary":"\u003cp\u003eHaving successfully shipped a project at $dayjob after some extended crunch time, I took this week off to recharge. This naturally gave me the opportunity to, um, write more code. In particular, I worked a bit on my crossword constructor while also constructing a crossword. I\u0026rsquo;m a bit rusty in this area, so while I was able to fill a puzzle with a reasonable theme, I\u0026rsquo;m probably going to end up redoing the fill before trying to publish that one because some areas are pretty yuck.\u003c/p\u003e","title":"In which I faked a person"},{"content":"I haven\u0026rsquo;t posted at all since COVID-19 hit in this area, partly because work (from home) has been all-consuming and a welcome distraction from the outside world, and partly because, during my non-work hours, the old brain has loaded up an endless patter of anxiety:\nWas that coughing gentleman really two meters away or maybe one and a half? Is it drafty in here, or do I have the chills? Is the shortness of breath and periodic chest pain a sign of COVID-19, or just your run-of-the-mill heart attack? Should I write another blog post and if so, will it be my last one, and if is the last, would that really be the blog post I want to end on?\nAnd so on.\nBut I have decided that in some future generation there will be a Ken Burns style documentary on this whole thing and the future Ken Burns will need contemporaneous writing for his voice-overs. And who am I to deny future Ken Burns that material.\nSo know, dear reader, that so far in Month Six of the Apocalypse, we are all doing well. We have our health, food, shelter, and depressions in the driveway where our cars have sat motionless for half a year.\nOne silver lining: it turns out my hobbies were fairly pandemic-aligned: I already had sourdough starter going, a garden planned, puzzles for months, and a sewing machine at the ready. Since then, I also learned how to cut my own hair, make my own espresso, and service my own furnace. The children have traded meat-space friends for 24/7 screen time and, from their point of view, this seems to have been an auspicious swap. If they are any indication, we\u0026rsquo;ll all be just fine when the singularity hits. Which will probably be next year at this rate.\n","permalink":"https://bobcopeland.com/blog/2020/08/socially-distant/","summary":"\u003cp\u003eI haven\u0026rsquo;t posted at all since COVID-19 hit in this area, partly because work (from home) has been all-consuming and a welcome distraction from the outside world, and partly because, during my non-work hours, the old brain has loaded up an endless patter of anxiety:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eWas that coughing gentleman really two meters away or maybe one and a half? Is it drafty in here, or do I have the chills? Is the shortness of breath and periodic chest pain a sign of COVID-19, or just your run-of-the-mill heart attack? Should I write another blog post and if so, will it be my last one, and if is the last, would that really be the blog post I want to end on?\u003c/p\u003e\n\u003c/blockquote\u003e","title":"Socially distant"},{"content":"\nI did train a model train model.\n","permalink":"https://bobcopeland.com/blog/2020/02/another-cnn/","summary":"\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2020/02/Screenshot-from-2020-02-09-21-10-02.png\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2020/02/Screenshot-from-2020-02-09-21-10-02.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eI did train a model train model.\u003c/p\u003e","title":"Another CNN"},{"content":"One of my goals with this new computer is to be more aggressive about power saving: keeping it in suspend more often, using wake-on-lan for external access, etc. To that end, I dusted off the old kill-a-watt and took some baseline measurements:\nOff, but plugged in: 2W Suspend: 2W On, idle: 48W (old machine: 100!) Kernel build: 200W (old machine: 150, but also took 15x longer) ML training with GPU at 100%: 400W\nSo long as I don\u0026rsquo;t run ML training 24-7, I am already going to save a lot of energy with this build.\n","permalink":"https://bobcopeland.com/blog/2020/01/watts-up/","summary":"\u003cp\u003eOne of my goals with this new computer is to be more aggressive about power saving: keeping it in suspend more often, using wake-on-lan for external access, etc. To that end, I dusted off the old kill-a-watt and took some baseline measurements:\u003c/p\u003e\n\u003cp\u003eOff, but plugged in: 2W\nSuspend: 2W\nOn, idle: 48W (old machine: 100!)\nKernel build: 200W (old machine: 150, but also took 15x longer)\nML training with GPU at 100%: 400W\u003c/p\u003e","title":"Watts up"},{"content":"Last year, I spent a few weeks dabbling in machine learning, which remains an interesting area to explore though not directly related to my day-to-day work. Although the economics generally work in favor of doing ML in the cloud, there\u0026rsquo;s something to be said for having all of your code and data local and not having to worry about shutting down virtual hosts all the time. My 10+ year old PC just doesn\u0026rsquo;t cut it for ML tasks, and so I made a new one.\nThe main requirements for me are lots of cores (for kernel builds) and a hefty GPU or four (for ML training). For more than two GPUs, you\u0026rsquo;re looking at AMD Threadrippers; for exactly two you can go with normal AMD or intel processors. The Threadrippers cost about $500 more factoring in the motherboard. I decided that chances of me using more than two GPUs (or even more than one) were pretty darn slim and not worth the premium.\nIn the end I settled on a 12-core Ryzen 9 3900X with RTX 2070 GPU coming in around $1800 USD with everything. Unfortunately, in this arena everything is marketed to gamers, so I have all kinds of unasked-for bling from militaristic motherboard logos to RGB LEDs in the cooler. Anyway, it works.\nJust to make up a couple of CPU benchmarks based on software I care about:\nfilling a 7x7 word square (single core performance) ~~~~~~~~~~ old: real\t0m10.689s user\t0m10.534s sys\t0m0.105s new: real\t0m2.274s user\t0m2.243s sys\t0m0.016s allmodconfig kernel build with -j $CORES_TIMES_TWO (multicore performance) ~~~~~~~~~~ old: real\t165m11.219s user\t455m42.557s sys\t135m37.557s new: real\t9m31.778s user\t193m31.477s sys\t23m19.117s This is all with stock clock settings and so on. I haven\u0026rsquo;t tried ML training yet, but the speedup there would be +inf considering it didn\u0026rsquo;t work at all on my old box.\n","permalink":"https://bobcopeland.com/blog/2020/01/new-build/","summary":"\u003cp\u003eLast year, I spent a few weeks dabbling in machine learning, which remains an interesting area to explore though not directly related to my day-to-day work. Although the economics generally work in favor of doing ML in the cloud, there\u0026rsquo;s something to be said for having all of your code and data local and not having to worry about shutting down virtual hosts all the time. My 10+ year old PC just doesn\u0026rsquo;t cut it for ML tasks, and so I made a new one.\u003c/p\u003e","title":"New build"},{"content":"We had some cameras installed at our house last year, partly for security, but mainly so we could know who is at the door before answering it in our PJs. Unfortunately, the software that comes with the camera DVR is pretty clunky, so it takes way too long to bring up the feed when the doorbell rings and I often don\u0026rsquo;t bother.\nLuckily, the DVR exposes RTSP streams that you can capture and playback with your favorite mpeg player. And I just learned how to build a pretty good image classifier that needed a practical application.\nThus, I built an app to tell whether someone is at the door, before they ring the bell. I labeled some 4000 historical images as person or non-person, trained a CNN, and made a quick python app to run inference on the live feed. When a person is in range of the door camera, it aims the lasers tells you so.\nNot bad for having two whole weeks of deep learning under my belt. The interface could stand to be much better, of course. A little web page that sends a browser notification and link to the image or live feed would be the obvious next step. Perhaps the lasers are after that.\nI know this is something that comes out of the box with commercial offerings such as Ring, but at least my images aren\u0026rsquo;t being streamed to the local police.\n","permalink":"https://bobcopeland.com/blog/2019/09/virtual-doorbell/","summary":"\u003cp\u003eWe had some cameras installed at our house last year, partly for security, but mainly so we could know who is at the door before answering it in our PJs. Unfortunately, the software that comes with the camera DVR is pretty clunky, so it takes way too long to bring up the feed when the doorbell rings and I often don\u0026rsquo;t bother.\u003c/p\u003e\n\u003cp\u003eLuckily, the DVR exposes RTSP streams that you can capture and playback with your favorite mpeg player. And I just learned how to build a pretty good image classifier that needed a practical application.\u003c/p\u003e","title":"Virtual doorbell"},{"content":"Summer came late and is leaving early this year, so it\u0026rsquo;s about harvest time now. This year, I did some radishes, onions, salad greens, carrots, green beans, jalapenos, bell peppers, basil, and tomatoes. Most of the carrots didn\u0026rsquo;t grow long roots, but I got a few. The rabbits got to the peppers and green beans before I did, while leaving the lettuce mostly alone \u0026ndash; I realized when I had a dozen full heads that we just don\u0026rsquo;t eat that much salad, so a lot of it bolted in the end. Now I know what 4-foot tall red lettuce looks like.\nNot planted this time were tomatillos, but I had a bunch of vines grow from last year\u0026rsquo;s seeds anyway. I have been pulling up most of those while keeping one large bush for possible salsa verde in a month or so.\nAnyhow, I got enough produce to make a few jars of red salsa (when supplemented with some store-bought locally grown tomatoes), and I didn\u0026rsquo;t work as hard at it this year as previously, so I\u0026rsquo;m calling it a win.\nIn a few weeks I\u0026rsquo;ll be pulling up all the remaining plants, and trying to get a cover crop started, which is something I didn\u0026rsquo;t know about until recently.\nIn other uprooting news: I previously wrote a post about ending my engagement at facebook. I dropped that post, because the reasons aren\u0026rsquo;t actually very interesting and that bridge has plenty of water under it by now. But the outcome of all of that is that I\u0026rsquo;ll be starting at Amazon next week, in an actual, real live office. That last part is going to be a bit of a trial: after ten years of working from home, I\u0026rsquo;m not especially looking forward to commuting downtown, and it will certainly be a stress on the family to rearrange our schedules to accommodate that. But it will be nice to have non-virtual coworkers for a change, and I\u0026rsquo;m excited about tackling some of the challenges facing my new team.\n","permalink":"https://bobcopeland.com/blog/2019/09/uprooting/","summary":"\u003cp\u003eSummer came late and is leaving early this year, so it\u0026rsquo;s about harvest time now. This year, I did some radishes, onions, salad greens, carrots, green beans, jalapenos, bell peppers, basil, and tomatoes. Most of the carrots didn\u0026rsquo;t grow long roots, but I got a few. The rabbits got to the peppers and green beans before I did, while leaving the lettuce mostly alone \u0026ndash; I realized when I had a dozen full heads that we just don\u0026rsquo;t eat that much salad, so a lot of it bolted in the end. Now I know what 4-foot tall red lettuce looks like.\u003c/p\u003e","title":"Uprooting"},{"content":"The entire sum of my machine learning experience thus far is a couple of courses in grad school, in which I wrote a terrible handwriting recognizer and various half-baked natural language parsers. As luck would have it, I was just a couple of years too early for the Deep Learning revolution \u0026ndash; at the time support vector machines were all the rage \u0026ndash; so I\u0026rsquo;ve been watching the advancements of the last few years with equal measures idle interest and bewilderment. Thus, when I recently stumbled across the fast.ai MOOC, I couldn\u0026rsquo;t resist following along.\nI have to say I really enjoy the approach of \u0026ldquo;use the tools first, then learn the theory.\u0026rdquo; In the two days since I started the course, I already built a couple of classifiers and got very good results, much more easily than with my handwriting recognizer of yore.\nMy first model was trained on 450 baby pictures of my children and achieved 98% accuracy. Surprisingly, the mistakes did not confirm our priors, that Alex and Sam look most similar as babies \u0026ndash; instead it tended to confuse them both with Ian. The CNN predicts that I am 80% Alex. Can\u0026rsquo;t argue with that math.\nThe second classifier was trained on Pokemon, Transformers, and Jaegers (giant robots from Pacific Rim). This gets about 90% accuracy; not surprisingly, it has a hard time telling apart the robot classes, but has no trouble picking out the Pokemons.\nI\u0026rsquo;m still looking for a practical application, but all in all, it\u0026rsquo;s a fun use for a GPU.\n","permalink":"https://bobcopeland.com/blog/2019/08/in-which-i-trained-a-neural-net/","summary":"\u003cp\u003eThe entire sum of my machine learning experience thus far is a couple of courses in grad school, in which I wrote a terrible handwriting recognizer and various half-baked natural language parsers. As luck would have it, I was just a couple of years too early for the Deep Learning revolution \u0026ndash; at the time support vector machines were all the rage \u0026ndash; so I\u0026rsquo;ve been watching the advancements of the last few years with equal measures idle interest and bewilderment. Thus, when I recently stumbled across the \u003ca href=\"https://course.fast.ai/\"\u003efast.ai MOOC\u003c/a\u003e, I couldn\u0026rsquo;t resist following along.\u003c/p\u003e","title":"In which I trained a neural net"},{"content":"Update: I finally isolated this to gnome\u0026rsquo;s multiple input method support. Shift + Space is bound by default to switch input sources, and it is in whatever the next input method is that unusual things happen. Turn that stuff off in the keyboard shortcuts! Find below the original post about the visible symptoms.\nDear lazyweb,\nWhere in {bash, readline, gnome terminal, wayland, kernel input} does the following brain damage, newly landed in debian testing, originate?\npressing ctrl-u no longer erases to beginning of line, but instead starts unicode entry with a U+ prompt, much like shift-ctrl-u used to do, except the U is upper-cased now hitting slash twice rapidly underlines the first slash (as if to indicate some kind of special entry prompt, but one I\u0026rsquo;m unfamiliar with and I cannot get it to do anything useful anyhow), and then just eats the second slash and the underline goes away characters typed quickly (mostly spaces) get dropped This stuff is so hard to google for and it is killing my touch typing. Email me if you know, and I\u0026rsquo;ll update this accordingly so that maybe google will know next time.\n","permalink":"https://bobcopeland.com/blog/2019/04/new-directions-in-commandline-editing/","summary":"\u003cp\u003e\u003cstrong\u003eUpdate:\u003c/strong\u003e I finally isolated this to gnome\u0026rsquo;s multiple input method support. Shift + Space is bound by default to switch input sources, and it is in whatever the next input method is that unusual things happen. Turn that stuff off in the keyboard shortcuts! Find below the original post about the visible symptoms.\u003c/p\u003e\n\u003cp\u003eDear lazyweb,\u003c/p\u003e\n\u003cp\u003eWhere in {bash, readline, gnome terminal, wayland, kernel input} does the following brain damage, newly landed in debian testing, originate?\u003c/p\u003e","title":"New Directions in Commandline Editing"},{"content":" I recently picked up one of these $10 CH341A USB flash programmers and a test clip. I didn\u0026rsquo;t really have any initial plans for that it but thought it might come in useful someday while messing with router bootloaders. This unexpectedly turned out to be a lot of fun so far and not a bad tool for the price.\nRummaging through my parts bin, I found a Winbond 4K SPI flash of unknown provenance, hooked it up, and read out the contents with flashrom. Turns out this was an AMI BIOS that I pulled from some motherboard way back when. Disassembling the BIOS might make a good rainy day exercise.\nI tried using chavrprog to program an ATTiny13, which did not work at all. The chip did not appear to respond to any of the SPI commands. Oh well.\nOn a bricked router I had sitting around, I read the flash directly from the board using the test clip. I happen to remember the confluence of events that lead to me bricking this (writing bootloader to wrong partition), and could finally verify the damage on the flash dump. When I get a free moment, I\u0026rsquo;ll try bringing it back to life by reflashing a repaired image.\nOn a different model, unbricked router, reading out the flash on the board didn\u0026rsquo;t work. Applying power to the flash chip powered up other components on the board, so I\u0026rsquo;m guessing I\u0026rsquo;d have to desolder this flash chip in order to read/write it. Maybe worth retrying after spending a few weeks practicing SMT rework.\n","permalink":"https://bobcopeland.com/blog/2019/04/playing-with-flash/","summary":"\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2019/04/testclip.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2019/04/testclip.jpg\"\u003e\u003c/a\u003e I recently picked up one of these $10 CH341A USB flash programmers and a test clip. I didn\u0026rsquo;t really have any initial plans for that it but thought it might come in useful someday while messing with router bootloaders. This unexpectedly turned out to be a lot of fun so far and not a bad tool for the price.\u003c/p\u003e\n\u003cp\u003eRummaging through my parts bin, I found a Winbond 4K SPI flash of unknown provenance, hooked it up, and read out the contents with \u003ccode\u003eflashrom\u003c/code\u003e. Turns out this was an AMI BIOS that I pulled from some motherboard way back when. Disassembling the BIOS might make a good rainy day exercise.\u003c/p\u003e","title":"Playing With Flash"},{"content":"\nWith the terribly cold and gray winter finally starting to abate, I\u0026rsquo;m going to start my indoor seeds this week. Nearly same setup as last year: I\u0026rsquo;m sowing the head-start seeds indoors, to go under basement grow lights in a couple of weeks when they have sprouted. A new addition is this heating mat, which I had to laugh at because of the prominently featured cannabis leaves on the package. I wonder just what the distribution of carrot growers to \u0026ldquo;other\u0026rdquo; is, now that it\u0026rsquo;s legal here.\nFor any curious persons or LEOs reading, no, I\u0026rsquo;m not planting weed. I\u0026rsquo;ll be starting basil, tomatoes, peppers, and lettuce in flats, and hopefully it will be warm enough to direct sow carrots and radishes. Beans should come a little later. Can\u0026rsquo;t wait!\n","permalink":"https://bobcopeland.com/blog/2019/03/planting-time/","summary":"\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2019/03/seedfactor.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2019/03/seedfactor.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eWith the terribly cold and gray winter finally starting to abate, I\u0026rsquo;m going to start my indoor seeds this week. Nearly same setup as last year: I\u0026rsquo;m sowing the head-start seeds indoors, to go under basement grow lights in a couple of weeks when they have sprouted. A new addition is this heating mat, which I had to laugh at because of the prominently featured cannabis leaves on the package. I wonder just what the distribution of carrot growers to \u0026ldquo;other\u0026rdquo; is, now that it\u0026rsquo;s legal here.\u003c/p\u003e","title":"Planting time"},{"content":"\nThe American Crossword Puzzle Tournament starts this weekend. Once again, a version of my xword webapp is being used, with only a few minor changes since last time (sorry).\nI did almost no puzzling last year, so I\u0026rsquo;ll give it a go, but I\u0026rsquo;m not expecting to finish in the top 100 this time around. Good luck to anyone participating!\n","permalink":"https://bobcopeland.com/blog/2019/03/2019-crossword-tournament/","summary":"\u003cp\u003e\u003ca href=\"/blog/wp-content/uploads/2019/03/Screenshot-from-2019-03-22-12-35-00.png\"\u003e\u003cimg loading=\"lazy\" src=\"/blog/wp-content/uploads/2019/03/Screenshot-from-2019-03-22-12-35-00.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThe American Crossword Puzzle Tournament starts this weekend. Once again, a version of my xword webapp is being used, with only a few minor changes since last time (sorry).\u003c/p\u003e\n\u003cp\u003eI did almost no puzzling last year, so I\u0026rsquo;ll give it a go, but I\u0026rsquo;m not expecting to finish in the top 100 this time around. Good luck to anyone participating!\u003c/p\u003e","title":"2019 Crossword Tournament"},{"content":"I noticed some HTML5 crossword construction apps have sprung up over the last year, so I no longer have first mover status on that. Also their UIs are generally better and I dislike UI work, so it seemed reasonable to join forces. Thus, I sent some PRs around.\nIt was surprising to me that the general SAT solver used by Phil, written in C compiled to asmjs was so much slower than a pure Javascript purpose-built crossword solver (mine). I assumed the SAT solver might make certain search optimizations that could overcome the minor optimizations related to mine being only a crossword solver. So, yay, my code is not that bad?\nIn these apps the filler runs as a web worker so even when slow it isn\u0026rsquo;t too noticable (except for hogging a core).\nAnyway you can try out my filler today with Kevin (filler code is here, which is exactly the code in my own app except with some janky whitespace because I stripped out all flow annotations).\n","permalink":"https://bobcopeland.com/blog/2019/02/more-filler/","summary":"\u003cp\u003eI noticed some HTML5 crossword construction apps have sprung up over the last year, so I no longer have first mover status on that. Also their UIs are generally better and I dislike UI work, so it seemed reasonable to join forces. Thus, I sent some PRs around.\u003c/p\u003e\n\u003cp\u003eIt was surprising to me that the general SAT solver used by \u003ca href=\"http://www.keiranking.com/blog/2017/phil/\"\u003ePhil\u003c/a\u003e, written in C compiled to asmjs was so much slower than a pure Javascript purpose-built crossword solver (mine). I assumed the SAT solver might make certain search optimizations that could overcome the minor optimizations related to mine being only a crossword solver. So, yay, my code is not that bad?\u003c/p\u003e","title":"More filler"},{"content":"I almost let the second half of 2018 go unblogged (are people still saying blog?). It\u0026rsquo;s not that nothing interesting happened in all of that time, but real life has been ultra busy. Did I mention that Sammy turned one and is on the verge of walking?\nThe garden delivered tons of produce this year, enough that I didn\u0026rsquo;t really keep up. I gave myself a crash course in canning, making four jars of tomatillo salsa and six jars of habanero jam. Maybe fewer peppers next year?\nI harvested around five bowls of tomatoes, many of which are taking up space in the freezer right now.\nAnd at least four of these basil bowls, mostly frozen pesto at the moment: This is what it is all about: pizza with homegrown basil, homegrown tomatoes, and sourdough crust from locally cultured yeast.\nAnyway, happy New Year!\n","permalink":"https://bobcopeland.com/blog/2018/12/peak-2018/","summary":"\u003cp\u003eI almost let the second half of 2018 go unblogged (are people still saying blog?). It\u0026rsquo;s not that nothing interesting happened in all of that time, but real life has been ultra busy. Did I mention that Sammy turned one and is on the verge of walking?\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/2018-sam-standing.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eThe garden delivered tons of produce this year, enough that I didn\u0026rsquo;t really keep up. I gave myself a crash course in canning, making four jars of tomatillo salsa and six jars of habanero jam. Maybe fewer peppers next year?\u003c/p\u003e","title":"Peak 2018"},{"content":"Here\u0026rsquo;s what the garden looks like right now. Compare to this time last year.\nWe had our backyard professionally landscaped last fall, and the landscaper decided to put in an empty bed next to the house instead of incorporating my unsightly DIY planter box into the design. But that area gets sun only half of the day, so I planted both this year, reserving the landscaper-approved bed for the experimental plants (mostly tomatillos and some extra basil). In the photo you can see the tomatillos in the background on the right: they have grown as tall as I am, with plenty of flowers but no fruits yet. Still, the pollinators are visiting so that could change:\nMeanwhile, there are baby tomatoes and baby peppers everywhere, and lots and lots of basil. Having eight basil plants means making pesto every other week just to keep up. I picked my first jalapeno yesterday. Although I tried hard to label all my plants this year, I found that one of my intended habeneros was a mislabeled poblano. No worries, poblanos are great. Looking forward to stuffed peppers next month.\nWe have a family of wild rabbits living near the house, so I stayed away from lettuces or other rabbit-friendly fare. Perhaps I\u0026rsquo;ll try lettuce in the planter box next year since it is high enough it might evade their grasp. I planted a few onions in the lower bed to keep the rabbits away from the other plants, having heard that they hate the smell of onions. Naturally, onion stalks are the only thing they\u0026rsquo;ve eaten so far.\nThis is still the quiet times before the Japanese beetles. Once they show up a few weeks from now, they will require thrice-daily purges, a not so fun task.\n","permalink":"https://bobcopeland.com/blog/2018/07/another-one-about-plants/","summary":"\u003cp\u003eHere\u0026rsquo;s what the garden looks like right now. Compare to \u003ca href=\"/blog/2017/07/garden-week-7/\"\u003ethis time last year\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/garden-2018-01.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eWe had our backyard professionally landscaped last fall, and the landscaper decided to put in an empty bed next to the house instead of incorporating my unsightly DIY planter box into the design. But that area gets sun only half of the day, so I planted both this year, reserving the landscaper-approved bed for the experimental plants (mostly tomatillos and some extra basil). In the photo you can see the tomatillos in the background on the right: they have grown as tall as I am, with plenty of flowers but no fruits yet. Still, the pollinators are visiting so that could change:\u003c/p\u003e","title":"Another one about plants"},{"content":"After several years of working at popular infosec startup, I\u0026rsquo;ve now moved on to giant tech company. It was pretty crazy watching the former grow from \u0026ldquo;hey, we have a cool idea\u0026rdquo; to a company with hundreds of developers \u0026ndash; at turns gratifying to see people describe your software as life-changing, and incredibly stressful when a bug landed on the top of Hacker News.\nIn the new gig, I\u0026rsquo;m working on Linux wifi again, so, apologies in advance. Hopefully, I\u0026rsquo;ll be able to do a bit more work upstream now that it is kind of my job. And yes, this post exists just to break up what would otherwise be a long string of consecutive garden blogs.\n","permalink":"https://bobcopeland.com/blog/2018/05/posting-on-posting/","summary":"\u003cp\u003eAfter several years of working at \u003cem\u003epopular infosec startup\u003c/em\u003e, I\u0026rsquo;ve now moved on to \u003cem\u003egiant tech company\u003c/em\u003e. It was pretty crazy watching the former grow from \u0026ldquo;hey, we have a cool idea\u0026rdquo; to a company with hundreds of developers \u0026ndash; at turns gratifying to see people describe your software as life-changing, and incredibly stressful when a bug landed on the top of Hacker News.\u003c/p\u003e\n\u003cp\u003eIn the new gig, I\u0026rsquo;m working on Linux wifi again, so, apologies in advance. Hopefully, I\u0026rsquo;ll be able to do a bit more work upstream now that it is kind of my job. And yes, this post exists just to break up what would otherwise be a long string of consecutive garden blogs.\u003c/p\u003e","title":"Posting on posting"},{"content":"I\u0026rsquo;ve started my seedlings for the 2018 gardening season. On March 24, I planted jalapeno, habanero, roma tomato, green onion, and basil seeds into jiffy pods. A few days later I planted some tomatillos and poblanos in another tray. By this time everything has sprouted and the plants are under grow lights for 15 hours a day on a timer (an innovation since last year the plants got a little leggy on the windowsill). The first tray is about a week ahead of the other tray, so it\u0026rsquo;s been getting full light for a week and had its first watering this morning. The tomatoes have their first true leaves as of today.\nI\u0026rsquo;m targeting planting out sometime in mid to late May. I can\u0026rsquo;t remember when I potted up the plants last year but it must\u0026rsquo;ve been some time in late April / early May. That\u0026rsquo;s at least a couple of weeks away for these 2-week old seedlings.\nThis year I hope to have better tomatoes by planting fewer of them and giving them more space. I was originally planning to do just two roma plants with two-foot spacing, plus one tomatillo plant. Then I learned that tomatillos won\u0026rsquo;t self pollinate so I\u0026rsquo;ll need to do at least two of those also. If those plus all the pepper plants work out, we\u0026rsquo;ll have way more than we can eat. Of course, the rabbits may still have other plans.\n","permalink":"https://bobcopeland.com/blog/2018/04/garden-2018/","summary":"\u003cp\u003eI\u0026rsquo;ve started my seedlings for the 2018 gardening season. On March 24, I planted jalapeno, habanero, roma tomato, green onion, and basil seeds into jiffy pods. A few days later I planted some tomatillos and poblanos in another tray. By this time everything has sprouted and the plants are under grow lights for 15 hours a day on a timer (an innovation since last year the plants got a little leggy on the windowsill). The first tray is about a week ahead of the other tray, so it\u0026rsquo;s been getting full light for a week and had its first watering this morning. The tomatoes have their first true leaves as of today.\u003c/p\u003e","title":"Garden 2018"},{"content":"This month my age incremented again. On the very anniversary of my birth, I received an email from Will Shortz\u0026rsquo;s assistant, saying (nicely) that the puzzle I submitted back in November didn\u0026rsquo;t make the cut. I was prepared for this: a puzzle with a similar theme came out a couple of weeks after I mailed mine in, and well, it\u0026rsquo;s not exactly that unique in the first place. Also the middle section of my puz is a bit of a stretch. And, I felt bad about not trying to excise 23-A from the puzzle.\nBut anyway, their loss is your loss! Click here to try it.\nThe 2018 American Crossword Puzzle Tournament starts this coming weekend. Last year, I complained that the online crossword tournament used a Java applet and would have almost no browser support by this time. This year, the online solver is running a version of my own XwordJS, customized (by me) for the ACPT\u0026rsquo;s backend (which I had nothing to do with). Here\u0026rsquo;s hoping it works.\nAfter the 2017 tournament, I hoped to increase my solving speed to be more competitive this time around. In reality, I didn\u0026rsquo;t put much effort into this goal, so I expect to be about the same. My best NYT Monday time, for that one month when I tracked it, was a hair over 7 minutes, far from the front of the pack.\nMeanwhile, I did make a bit of progress in solving cryptics, having done the puzzle a few times in the Toronto Star and actually finishing last week\u0026rsquo;s. I have to say they aren\u0026rsquo;t as fun as American style crosswords due to the arbitrariness of the cluing, or so I tell myself so that I can feel less dumb.\n","permalink":"https://bobcopeland.com/blog/2018/03/crossword-digest/","summary":"\u003cp\u003eThis month my age incremented again. On the very anniversary of my birth, I received an email from Will Shortz\u0026rsquo;s assistant, saying (nicely) that the puzzle I submitted back in November didn\u0026rsquo;t make the cut. I was prepared for this: a puzzle with a similar theme came out a couple of weeks after I mailed mine in, and well, it\u0026rsquo;s not exactly that unique in the first place. Also the middle section of my puz is a bit of a stretch. And, I felt bad about not trying to excise 23-A from the puzzle.\u003c/p\u003e","title":"Crossword digest"},{"content":"One of my early goals this year has been to revamp the backup regime at the old homestead. Previously, I have relied on rotating external drives connected to my main desktop, and putting most content on a samba share that also got backed up. But it was a bit ad-hoc and things not on the share only got backed up sporadically. I\u0026rsquo;d rather not use a cloud backup service because reasons, so I bought a NAS, and now it looks like this:\nDaily: download cloud assets (google photo) backup all disks to NAS (borg backup on Linux, Windows backup). Incrementals of 7 days / 4 weeks / 6 months backup NAS to external drive (rsync) Weekly: borg check the latest backup swap external disk with one in fire safe Monthly: swap external disk with off-site disk I think this should work well enough until I use up enough storage to outstrip the individual external disks, then I\u0026rsquo;ll have to rethink things. Too far, or not too far enough?\n","permalink":"https://bobcopeland.com/blog/2018/01/making-copies/","summary":"\u003cp\u003eOne of my early goals this year has been to revamp the backup regime at the old homestead. Previously, I have relied on rotating external drives connected to my main desktop, and putting most content on a samba share that also got backed up. But it was a bit ad-hoc and things not on the share only got backed up sporadically. I\u0026rsquo;d rather not use a cloud backup service because reasons, so I bought a NAS, and now it looks like this:\u003c/p\u003e","title":"Making copies"},{"content":"2018 is finally upon us, and now is the time one would usually look back at the wonderful events of the previous year, and look forward to what great things one might accomplish in the next.\nInstead of that, I\u0026rsquo;ll just write a meandering blog post.\nIn 2017, I leveled up on pizza and bread making, capturing and raising my very own colony of hyper-local, non-GMO, swimming-in-gluten yeast. The colony still thrives as it approaches its first birthday, and has fed us many delicious loaves. I think I have the basic no-commercial-yeast dough down now, so it is time to start tinkering with the bulk fermentation and proofing times to get different flavors and textures out of the bread.\nSpeaking of cooking, after 20-something years of preparing the same three proteins with not so much variation, I feel like I could use more inspiration in the kitchen. So I\u0026rsquo;ve started working my way through an Asian cookbook someone gave me for Christmas. Tip: homemade Thai sweet chili sauce (using peppers from our garden) turns out to be amazing on roast beef and aged cheddar sandwiches. Who knew?\nWe\u0026rsquo;re still working our way through the garden vegetables in the freezer, so I can say that the garden worked out and I will have to do it again this year. This time I probably won\u0026rsquo;t plant so many tomatoes right next to each other, and I think I\u0026rsquo;ll select pepper varieties rather than doing a mixed seed blend. I might play around a bit with controlling irrigation through an SBC or some such just to bring some nerdiness to the party.\nSix years into my consultancy, things are going well enough, but this year I may start looking around for the next big gig. Lately I\u0026rsquo;ve been doing mostly infosec work and it is ridiculously draining in the age of we-can\u0026rsquo;t-even-get-hardware-right. If you\u0026rsquo;re one of the three people reading this and whose programming team needs an old, feel free to reach out. Bonus points if you are working in a language that has a compiler, and infinity points if you are sending code into space.\nThe crossword construction hobby grew a bit in 2017, culminating in my submitting a crossword to the NYT for publication. That one will probably get rejected, but even so it was fun to make (and perhaps as fun making the software to make it). I think with just a bit more practice and some theme inspiration, I\u0026rsquo;ll have the hang of this nascent hobby. Meanwhile, my javascript puzzle solving SPA is getting used in a few more places, including on some commercial puzzle sites; I hope that trend will continue.\nOf course the biggest news in 2017 was growing our family once more. In addition to the usual resolution to be the best parent I can be to Alex, Ian, and now Sam, I also hope we can get more sleep in 2018. That would be kind of great.\n","permalink":"https://bobcopeland.com/blog/2018/01/new-year-old-me/","summary":"\u003cp\u003e2018 is finally upon us, and now is the time one would usually look back at the wonderful events of the previous year, and look forward to what great things one might accomplish in the next.\u003c/p\u003e\n\u003cp\u003eInstead of that, I\u0026rsquo;ll just write a meandering blog post.\u003c/p\u003e\n\u003cp\u003eIn 2017, I leveled up on pizza and bread making, capturing and raising my very own colony of hyper-local, non-GMO, swimming-in-gluten yeast. The colony still thrives as it approaches its first birthday, and has fed us many delicious loaves. I think I have the basic no-commercial-yeast dough down now, so it is time to start tinkering with the bulk fermentation and proofing times to get different flavors and textures out of the bread.\u003c/p\u003e","title":"New Year, Old Me"},{"content":"I had just a little bit of downtime over the last few weeks while Angeline and I reacquainted ourselves with how to take care of an infant. It\u0026rsquo;s like riding a bicycle: there are tons of things you forgot since last time.\nOne of the long-on-my-todo-list items finally got completed: I upgraded all of my wifi routers. I have 5: an old dual band 11n router and four TP-Link 11ac units, all of which were running some oldish build of OpenWRT.\nI decided the 11n router\u0026rsquo;s time has come for the trash-heap, so I put the latest stable LEDE build on one of the TP-Links and swapped it out.\nThe other three are just access points without the router: they just have all the ports on the unit bridged together, connected to the router via a wired switch. I also have a mesh wifi interface up on each unit so that I could place the unit anywhere regardless of wired connectivity (though, in practice, I have wired drops everywhere so I don\u0026rsquo;t really use this.) For these, I build from source with just the required bits. I added a serial port to one of the units so I can test builds there before rolling out to the other two.\nIn all it was pretty painless since the LEDE build is more or less the same as OpenWRT. I did go through (LEDE) recovery once and found this fun issue:\nroot@(none):/tmp# sysupgrade -n lede-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin Image metadata not found killall: watchdog: no process killed Commencing upgrade. All shell sessions will be closed now. Failed to connect to ubus root@(none):/tmp# \u0026hellip;because sysupgrade has different paths for failsafe vs not; and for some reason $FAILSAFE is not always set. Do this to work-around:\nroot@(none):/tmp# export FAILSAFE=1 root@(none):/tmp# sysupgrade -n lede-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin Image metadata not found killall: watchdog: no process killed Commencing upgrade. All shell sessions will be closed now. root@(none):/tmp# Connection to 192.168.1.1 closed by remote host. ","permalink":"https://bobcopeland.com/blog/2017/12/router-redux/","summary":"\u003cp\u003eI had just a little bit of downtime over the last few weeks while Angeline and I reacquainted ourselves with how to take care of an infant. It\u0026rsquo;s like riding a bicycle: there are tons of things you forgot since last time.\u003c/p\u003e\n\u003cp\u003eOne of the long-on-my-todo-list items finally got completed: I upgraded all of my wifi routers. I have 5: an old dual band 11n router and four TP-Link 11ac units, all of which were running some oldish build of OpenWRT.\u003c/p\u003e","title":"Router redux"},{"content":"My most recent post, for those too lazy to follow the link and hit the \u0026ldquo;Reveal All\u0026rdquo; button, is a crossword puzzle announcing the birth of our third son, Samuel Yit-Mun Copeland. We\u0026rsquo;re over the moon with this new guy in our family. Here he is nearly asleep in my arms as I type this.\nBut now for something more boring.\nI decided months ago that my typical geeky announcement would take the form of a crossword since I\u0026rsquo;ve been playing in that area recently (previous announcements: a manpage for Alex, an ascii-art crypto program for Ian). And why not make this puzzle interesting by constructing my first rebus puzzle?\nA rebus puzzle is one in which a single square can have multiple letters. Part of the fun of solving is realizing at some point that an answer must be right, yet it cannot fit the available cells, so something really weird is going on. Then one curses the constructor and starts with a new set of assumptions.\nConstructing such a puzzle is not too much harder than any ordinary puzzle, since all the rebus squares will be part of the themers that the constructor selects up front. Because of this, the fill software doesn\u0026rsquo;t even really need to care about rebuses \u0026ndash; one can use any placeholder for the rebus squares and then edit the final crossword file to add in the full string.\nHaving lots of theme squares does constrain the grid somewhat, as does having a number of circles on top of that (in this case the circles spell out our new son\u0026rsquo;s name). But I cheated a little bit: I decided having any old separation between circles was fine as long as the components were all on the same line, and his name is short so that was no major obstacle. In the end I\u0026rsquo;m pretty happy with the fill considering the 55 theme squares + 20 circles.\nEach time I make a puzzle, I also make a number of improvements to my filling software. I\u0026rsquo;ve long since forgotten whether the goal is building puzzles or building a puzzle builder.\nI mentioned before that I had optimized the javascript filler to the point that it was potentially usable in a webapp; this webapp is now a thing. For this puzzle, I used that app as well as my interactive python command-line filler, which has some additional features like estimating the number of eventual solutions using more levels of look-ahead. Finally, I also used a version of the python filler that will take a completed grid and try to optimize it by repeatedly clearing sections of the grid and refilling it randomly.\nThere is still a good deal of performance work to do on the filler itself. The basic structure is still similar to the backtracking algorithm in QXW: bitmaps are used to filter available words for each cell, and we fill each entry starting with the entries with fewest fills. I made two minor changes in my version: the word list is initially sorted by score and indexed on length so that we can try highest scoring words first and eliminate comparisons against words that will never fit; and entire entries are filled instead of single cells so that score of an entire word is maximized.\nI implemented my current algorithm from scratch in C, and it clocks in under half a second for my test puzzle: a little faster than QXW\u0026rsquo;s implementation and some 30x faster than the very same algorithm in javascript. In terms of LOC, they are roughly the same: 573 (python), 696 (javascript), 763 (C). You can watch them compete below.\nSo the javascript implementation is frightfully slow. Getting it down to the level of, say, two times the C code, would be a major win, but beyond my current level of js optimization know-how.\nBesides that, there is likely some algorithmic optimization that could bring larger gains. Knowing that the \u0026ldquo;crossword fill problem\u0026rdquo; is an instance of SAT, I went off to read what Knuth had to say about it (Vol 4 fascicles 5-6), and, as usual, came away with a lot more to think about. The \u0026ldquo;word square\u0026rdquo; section is very similar to crossword filling, and indeed the algorithm is close to my existing search, except that it uses trie data structures to cut down on the number of possible words visited at each level. It\u0026rsquo;s unclear to me at present whether tries would be a win here given that we don\u0026rsquo;t always start filling with a prefix or suffix, but it could be worth an (ahem) try. Also I may look at branch-and-bound search pruning and parallel search at some point.\n","permalink":"https://bobcopeland.com/blog/2017/11/on-board-the-rebus/","summary":"\u003cp\u003eMy \u003ca href=\"/blog/2017/11/new-addition/\"\u003emost recent post\u003c/a\u003e, for those too lazy to follow the link and hit the \u0026ldquo;Reveal All\u0026rdquo; button, is a crossword puzzle announcing the birth of our third son, Samuel Yit-Mun Copeland. We\u0026rsquo;re over the moon with this new guy in our family. Here he is nearly asleep in my arms as I type this.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/syc-1week.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eBut now for something more boring.\u003c/p\u003e\n\u003cp\u003eI decided months ago that my typical geeky announcement would take the form of a crossword since I\u0026rsquo;ve been playing in that area recently (previous announcements: a \u003ca href=\"/blog/2010/06/new-syscall-proposal/\"\u003emanpage for Alex\u003c/a\u003e, an \u003ca href=\"/blog/2013/08/footprint/\"\u003eascii-art crypto program for Ian\u003c/a\u003e). And why not make this puzzle interesting by constructing my first rebus puzzle?\u003c/p\u003e","title":"On board the rebus"},{"content":"Angeline and I collaborated to bring this new puzzle to fruition yesterday. She did all the hard work; I just came up with the grid and clues.\nThursday-level difficulty.\nPreviously, previously.\n","permalink":"https://bobcopeland.com/blog/2017/11/new-addition/","summary":"\u003cp\u003eAngeline and I collaborated to bring this \u003ca href=\"/crosswords/xwordjs/#/file/2017-11-13.xd\"\u003enew puzzle\u003c/a\u003e to fruition yesterday. She did all the hard work; I just came up with the grid and clues.\u003c/p\u003e\n\u003cp\u003eThursday-level difficulty.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/blog/2013/08/footprint/\"\u003ePreviously\u003c/a\u003e, \u003ca href=\"/blog/2010/06/new-syscall-proposal/\"\u003epreviously\u003c/a\u003e.\u003c/p\u003e","title":"New addition"},{"content":"The garden is now in its 16th week, I think. Despite the fungus problem with the tomatoes, I have to say it has been a fairly successful experiment so far: the chilies and basil have done great, while the tomatoes have still produced over a dozen softball sized fruits with lots more still on the vine. The ones in containers did less well (blossom-end rot) \u0026ndash; I think there\u0026rsquo;s no use in venturing outside the planter box next year.\nThe chilacas have been the big producer. I have two plants, including one that hadn\u0026rsquo;t yet set fruit by the end of July. That latter since became top-heavy enough with peppers that a couple of stems broke off in high winds last night, so I hauled in around 20 peppers this morning. Salsa-to-be.\nSome chilies\nAnyway, this is what we\u0026rsquo;ve eaten thus far:\nTomatoes, by themselves BLTs, of course Caprese salad Chicken with sauce chasseur Sausages and mushrooms with fresh tomato sauce Pepper steak (bell peppers, poblanos) Pesto, normal and spicy with Hungarian peppers Chilaca cheese dip (chilacas, yellow jalapeno[1] and poblanos) Poppers (cherry peppers, chilacas, and Hungarian peppers) The only fruit we haven\u0026rsquo;t meaningfully consumed in some way are the Thai chilies, which are incredibly hot. I\u0026rsquo;ll probably make those into some form of sriracha or chili paste.\n[1] I think? Middle of the above photo \u0026ndash; not really sure what these chilies are but they look similar to jalapenos on the outside and turn red when ripe, but the similarities largely end there.\n","permalink":"https://bobcopeland.com/blog/2017/09/in-which-i-ate-the-garden/","summary":"\u003cp\u003eThe garden is now in its 16th week, I think. Despite the fungus problem with the tomatoes, I have to say it has been a fairly successful experiment so far: the chilies and basil have done great, while the tomatoes have still produced over a dozen softball sized fruits with lots more still on the vine. The ones in containers did less well (blossom-end rot) \u0026ndash; I think there\u0026rsquo;s no use in venturing outside the planter box next year.\u003c/p\u003e","title":"In which I ate the garden"},{"content":"I\u0026rsquo;ve not done much work lately on my forked-from-QXW, written-in-C crossword filler, as getting that code up to snuff amounts to a rewrite. But one thing it has going for it is that it is very fast.\nMeanwhile, I have my own written-from-scratch-in-python filler that I\u0026rsquo;m pretty happy with in terms of results and features, but which is no speed demon. And then I wanted to have this all work on my phone, so I re-implemented it in javascript. Yes, I\u0026rsquo;m writing a lot of code lately in this language that I do not care for.\nAnyhow, down this rabbit hole I go, and one thing that is clear is that the interpreted language versions are not fast. Representative times to fill a grid:\ncpython: 114 s node js: 49 s pypy: 26 s C (qxw): 0.5 s Amazing how much faster pypy is compared to CPython running the same code!\nWell, I spent an afternoon optimizing the python and JS fillers, and got a decent speed-up:\npypy: 5 s node js: 2 s (24x improvement) Not bad, and in the realm of being usable for an online filler app. Much of the speedup came from avoiding common interpreted language constructs (like regex) that one would never go near in C.\nI cobbled together enough of a web UI for this in order to fill this new puzzle on my phone while the 4 year old was having a long snooze in my lap. Guess what 20-Down we\u0026rsquo;ve been shopping for lately?\n","permalink":"https://bobcopeland.com/blog/2017/08/fill-faster/","summary":"\u003cp\u003eI\u0026rsquo;ve not done much work lately on my forked-from-QXW, written-in-C crossword filler, as getting that code up to snuff amounts to a rewrite. But one thing it has going for it is that it is very fast.\u003c/p\u003e\n\u003cp\u003eMeanwhile, I have my own written-from-scratch-in-python filler that I\u0026rsquo;m pretty happy with in terms of results and features, but which is no speed demon. And then I wanted to have this all work on my phone, so I re-implemented it in javascript. Yes, I\u0026rsquo;m writing a lot of code lately in this language that I do not care for.\u003c/p\u003e","title":"Fill faster"},{"content":"The garden is now jungle-like. There are real concerns that people have wandered into the garden and never returned, having lost their way out. I have a little bit of black spot on pretty much every tomato plant. My fault, I should have pruned the tomatoes more. I sprayed them with fungicide.\nEven so, they have set fruit. I have a few per plant, maybe twenty in all.\nOh, I identified, and ate, the yellowish-green chili from last posting: the Hungarian wax pepper. Great sauteed in butter and spooned over salmon.\n","permalink":"https://bobcopeland.com/blog/2017/07/garden-week-7/","summary":"\u003cp\u003eThe garden is now jungle-like. There are real concerns that people have wandered into the garden and never returned, having lost their way out. I have a little bit of black spot on pretty much every tomato plant. My fault, I should have pruned the tomatoes more. I sprayed them with fungicide.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/garden7.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eEven so, they have set fruit. I have a few per plant, maybe twenty in all.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/tomatoes7.jpg\"\u003e\u003c/p\u003e","title":"Garden Week 7"},{"content":"My garden experiment continues, mostly successfully so far. Here are my notes for how it\u0026rsquo;s worked out, to remind myself what to do next year.\nI built a 6\u0026rsquo;x4\u0026rsquo; cedar box from 1\u0026quot;x6\u0026quot; planks, all cut to nearly the right length by the helpful folks at the local home center. Some stainless steel decking screws and nearly a ton of VegMax(tm) dirt later, I had my raised bed set up.\nWhile hardening off, the seedlings were getting watered about once every 1-2 days, with 4 cups of water per 10 seedlings. By May 28th I had them all planted out in the raised bed, staked, and mulched. At that time they looked like this:\nI put a pair of tomato fertilizer spikes about 6 inches from each plant that same week. Since then I have been spraying with epsom salt every two weeks, and since last week I have started alternating that with fertilizer. The bugs are numerous but I\u0026rsquo;ve used insecticidal soap sparingly: so far, there doesn\u0026rsquo;t seem to be a ton of insect damage except on lower leaves. I haven\u0026rsquo;t pruned the tomato plants that much, just leaves that are obviously low and touching soil. As this has been a very wet spring so far, I\u0026rsquo;ve only had to water them once since planting (15 min on soaker hose).\nOne of my peppers (serrano? yellow cayenne?) has yielded fruit. I\u0026rsquo;m not sure what the final color is supposed to be, but I may pick it soon anyway to speed along some other buds on that plant. I also have a 1\u0026quot; bell pepper on another plant. Part of the fun of using a mix of pepper seeds is that I have no idea which plants are going to produce what.\nI lost one pepper seedling shortly after planting due to high winds snapping the stem in half.\nThe basil is doing fine, and much more prolific outdoors compared to my indoor plants.\nMy largest tomato plant got its first flowers yesterday. I\u0026rsquo;ve restaked some of them with 6\u0026rsquo; spikes as they\u0026rsquo;ve outgrown the 2\u0026rsquo; spikes already. One definite mistake I made was to plant the tomatoes with only 1\u0026rsquo; spacing. I moved three of my smallest plants yesterday to containers so that at least one or two of the remaining garden plants will have the proper spacing. The others will fight it out, so we\u0026rsquo;ll see how that goes.\n","permalink":"https://bobcopeland.com/blog/2017/06/garden-update/","summary":"\u003cp\u003eMy garden experiment continues, mostly successfully so far. Here are my notes for how it\u0026rsquo;s worked out, to remind myself what to do next year.\u003c/p\u003e\n\u003cp\u003eI built a 6\u0026rsquo;x4\u0026rsquo; cedar box from 1\u0026quot;x6\u0026quot; planks, all cut to nearly the right length by the helpful folks at the local home center. Some stainless steel decking screws and nearly a ton of VegMax(tm) dirt later, I had my raised bed set up.\u003c/p\u003e","title":"Garden update"},{"content":"I made a new crossword puzzle, theme is pretty basic/boring but it has the dubious distinction of being filled entirely by my own software (interactively with my input). Originally 57A was going to be a literal revealer for the other themers, but I couldn\u0026rsquo;t get a good fill around that gimmick so it got simplified.\nPlay in the mobile-friendly iframe below or chase this link for full screen:\n","permalink":"https://bobcopeland.com/blog/2017/06/wooden-finish/","summary":"\u003cp\u003eI made a new crossword puzzle, theme is pretty basic/boring but it has the dubious distinction of being filled entirely by my own software (interactively with my input). Originally 57A was going to be a literal revealer for the other themers, but I couldn\u0026rsquo;t get a good fill around that gimmick so it got simplified.\u003c/p\u003e\n\u003cp\u003ePlay in the mobile-friendly iframe below or \u003ca href=\"/crosswords/xwordjs/?2017-06-16.xd\"\u003echase this link for full screen\u003c/a\u003e:\u003c/p\u003e","title":"Wooden finish"},{"content":"My crossword puzzle web app grew up somewhat: now it is (optionally) backed by a database.\nHow we ended up here: I started this project from a completely different, and still mostly unexplored, direction: I wanted to be able to construct crosswords while on the go, since I occasionally find myself with some downtime and no keyboard. Just having a grid to type into is really enough for that \u0026ndash; paper grids will do in a pinch, but who wants to kill trees and carry around a pencil and paper all the time.\nOnce I had a grid component, as a test, I built out a puzzle-solving application using 100% client-side code. That is, the JS can parse the puzzle files, render UI, save state locally, handle all the interaction without talking to a web server other than for the initial download. Then, naturally, creeping featurism took over and it became my daily solving app for NYT puzzles.\nDoing everything client-side is nice because you never need the internet. Having a database backend provides some upsides though: you can more easily track progress (\u0026ldquo;how fast am I solving puzzles?\u0026rdquo;), and you can sync state across multiple devices: start on the desktop and move to phone later. Once you have syncing, you can also do collaborative puzzle solving, which is nice as the wife and I like to do the Sundays together. So if you go to this site, you can upload a puzzle, copy and share the resulting URL (randomized hash-path id indicates the \u0026lsquo;solution in progress\u0026rsquo;), and do an actual \u0026ldquo;crosswords with friends\u0026rdquo; unlike the branded game of the same name which is only solo play. I reserve the right to delete any data or break this feature at any time: it mostly exists for my current fickle amusement.\nWhile the frontend is being written in a language I mostly don\u0026rsquo;t care for and don\u0026rsquo;t really know that well (ReactJS), I decided I might as well try learning yet another language on the backend. My first golang foray and a worse-is-better development paradigm led to this terrible non-idiomatic code on my github (here is the JS frontend). PRs welcome.\nI\u0026rsquo;m not yet sure how I feel about Go. On the one hand, the \u0026ldquo;having types\u0026rdquo; and \u0026ldquo;lack of 2to3 transition disaster\u0026rdquo; features put it somewhat ahead of Python, and it is not as crusty as Java. On the other hand, those are fairly low bars and Go feels like a 90s language with a few minor changes. I haven\u0026rsquo;t spent enough time with it to get a feel either way about performance.\nThe ACPT online tournament, it turns out, uses a Java applet for the client, and it\u0026rsquo;s getting harder to find browsers that support that (I had to use an ESR Firefox release, which felt like going back in time 10 years even to this Debian-stable user). I am hoping that by next year they will have some similar kind of JS UI in place.\nAs far as the ACPT itself: it was a lot of fun. Out of the seven puzzles, I finished four with time to spare, my best time being just over ten minutes on puzzle number four. My worst puzzle was the first in which I completed only 50/76 answers. Overall I ended up (as of last time I checked) in 87th place out of 141, so, firmly on the left side of the curve. Oh well, plenty of room to improve.\n","permalink":"https://bobcopeland.com/blog/2017/06/that-time-i-wrote-a-go-server/","summary":"\u003cp\u003eMy \u003ca href=\"/crosswords/xwordjs/\"\u003ecrossword puzzle web app\u003c/a\u003e grew up somewhat: now it is (optionally) backed by a database.\u003c/p\u003e\n\u003cp\u003eHow we ended up here: I started this project from a completely different, and still mostly unexplored, direction: I wanted to be able to construct crosswords while on the go, since I occasionally find myself with some downtime and no keyboard. Just having a grid to type into is really enough for that \u0026ndash; paper grids will do in a pinch, but who wants to kill trees and carry around a pencil and paper all the time.\u003c/p\u003e","title":"That time I wrote a Go server"},{"content":"\nBuilding on my success last year of managing to not kill a basil seedling, this summer I\u0026rsquo;ll try having a garden. To that end, I started in March with basil, rosemary, peppers, and tomato seeds. So far, some 24 plants, mostly tomatoes and peppers, have survived to the hardening-off stage and are ready to go in the ground in a couple weeks\u0026rsquo; time.\nOn top of that, I have a few basil plants that will remain indoors, and a couple of very poor looking rosemary sprouts that may never reach adulthood. This represents quite a few levels up in my plant-tending acumen, as until now the only things I have been good at growing are dandelions in my lawn.\n","permalink":"https://bobcopeland.com/blog/2017/05/garden/","summary":"\u003cp\u003e\u003ca href=\"https://www.flickr.com/photos/bluesterror/33730046154/in/datetaken-public/\" title=\"Baby basil\"\u003e\u003cimg alt=\"Baby basil\" loading=\"lazy\" src=\"https://c1.staticflickr.com/5/4160/33730046154_df1d1e8d61.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eBuilding on my success last year of managing to not kill a basil seedling, this summer I\u0026rsquo;ll try having a garden. To that end, I started in March with basil, rosemary, peppers, and tomato seeds. So far, some 24 plants, mostly tomatoes and peppers, have survived to the hardening-off stage and are ready to go in the ground in a couple weeks\u0026rsquo; time.\u003c/p\u003e\n\u003cp\u003eOn top of that, I have a few basil plants that will remain indoors, and a couple of very poor looking rosemary sprouts that may never reach adulthood. This represents quite a few levels up in my plant-tending acumen, as until now the only things I have been good at growing are dandelions in my lawn.\u003c/p\u003e","title":"Garden"},{"content":"The American Crossword Puzzle Tournament starts tomorrow. I\u0026rsquo;ve paid the entrance fee for the online \u0026ldquo;bragging rights only\u0026rdquo; track, so I\u0026rsquo;m looking forward to seeing some interesting puzzles and to get an idea of how my solving skills stack up. Considering that competitive solvers often finish well under five minutes on a Monday and my best is in the ten minute range, probably not that great, but we shall see.\nI recently started a couple of the London Times cryptic crossword books; these are hard. As in NYT Saturdays are a cakewalk by comparison. Partly, because I\u0026rsquo;m not terribly knowledgeable of British geography and slang, partly because I haven\u0026rsquo;t learned to recognize the various clue forms, and partly because they are just tough. Example clue: [Notice boy going round vehicle after parking]. Answer: PLACARD. Because \u0026ldquo;PLACARD\u0026rdquo; is a notice, and in that word \u0026ldquo;LAD\u0026rdquo; (boy) is literally going around \u0026ldquo;CAR\u0026rdquo; (vehicle), which both come after \u0026ldquo;P\u0026rdquo; which you just have to know is an abbreviation of parking. So yeah, tricky.\n","permalink":"https://bobcopeland.com/blog/2017/03/acpt/","summary":"\u003cp\u003eThe American Crossword Puzzle Tournament starts tomorrow. I\u0026rsquo;ve paid the entrance fee for the online \u0026ldquo;bragging rights only\u0026rdquo; track, so I\u0026rsquo;m looking forward to seeing some interesting puzzles and to get an idea of how my solving skills stack up. Considering that competitive solvers often finish well under five minutes on a Monday and my best is in the ten minute range, probably not that great, but we shall see.\u003c/p\u003e","title":"ACPT"},{"content":"Over the last few weeks I\u0026rsquo;ve been caring for a few billion microorganisms. And ate some of them.\nFig 1. My yeast making tons of bubbles overnight\nMaking a wild yeast starter turned out to be pretty easy. It took about ten days (in contrast to the five specified in the recipe I followed) for the colony to reach maturity in this winter kitchen, fed twice each day with equal parts flour and water, left at room temp overnight. Now, they are on a weekly maintenance schedule.\nSo far, I\u0026rsquo;ve used the starter in a hybrid (part commercial yeast) sourdough boule, two fully wild yeast loaves, pancakes, and, of course, pizza.\nCompared to straight pizza dough, the sourdough version has a more complex taste, with basically the same texture. There is not much difference in the way the dough handles.\nThe wild yeast breads were both a little flatter than I\u0026rsquo;d have liked, owing to the less predictable rise; on the other hand they had a very nice sour taste. The hybrid dough is a nice compromise: less sour but airy crumb.\nPancakes of any stripe are always awesome.\n","permalink":"https://bobcopeland.com/blog/2017/03/yeast/","summary":"\u003cp\u003eOver the last few weeks I\u0026rsquo;ve been caring for a few billion microorganisms. And ate some of them.\u003c/p\u003e\n\u003cp\u003e\u003cem\u003eFig 1. My yeast making tons of bubbles overnight\u003c/em\u003e\u003c/p\u003e\n\u003cp\u003eMaking a wild yeast starter turned out to be pretty easy. It took about ten days (in contrast to the five specified in the recipe I followed) for the colony to reach maturity in this winter kitchen, fed twice each day with equal parts flour and water, left at room temp overnight. Now, they are on a weekly maintenance schedule.\u003c/p\u003e","title":"Yeast!"},{"content":"It has been a year since my last statement about home-made pizzas, so it may be a time to serve up (deliver?) an update. Here\u0026rsquo;s one from the most recent batch:\nKen Forkish\u0026rsquo;s straight-dough, low yeast, long-rise recipe continues to be my go-to, and there is little left to complain about. It has a great crumb and nicely developed taste, especially when the dough is a day or two old. I still do need some work on the technique side: getting an unbaked pizza off the peel \u0026ndash; without using so much flour or cornmeal as to mar the taste \u0026ndash; still eludes me. Thus, I have settled on using parchment paper for the first couple of minutes, then, after the crust firms up, lifting the pizza with tongs and yanking out the parchment paper before it incinerates in the 550 degree oven. This, it should be said, is a maneuver not without danger to one\u0026rsquo;s fingers.\nOur grocery carries \u0026ldquo;pizza yeast\u0026rdquo; in addition to the normal stuff, so I decided to give this a try to see how it stacks up. Apparently, the packet consists of highly active yeast along with some conditioners that make a thirty minute dough handle like one with a longer rise. The resulting dough was as easily stretchable as advertised, but also had little to no strength. It was altogether too easy to tear a hole while trying to shape it into a round, but I persevered. Here is the side-by-side (pizza yeast on the right):\nThe resulting crust was rubbery and tasteless, so my advice is to not bother repeating this experiment.\nI am considering branching out into a wild-yeast version next, depending on whether I can manage to get a viable starter going.\n","permalink":"https://bobcopeland.com/blog/2017/02/state-of-the-pizza/","summary":"\u003cp\u003eIt has been a year since \u003ca href=\"/blog/2016/01/carbs/\"\u003emy last statement about home-made pizzas\u003c/a\u003e, so it may be a time to serve up (deliver?) an update. Here\u0026rsquo;s one from the most recent batch:\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/pizza1.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eKen Forkish\u0026rsquo;s straight-dough, low yeast, long-rise recipe continues to be my go-to, and there is little left to complain about. It has a great crumb and nicely developed taste, especially when the dough is a day or two old. I still do need some work on the technique side: getting an unbaked pizza off the peel \u0026ndash; without using so much flour or cornmeal as to mar the taste \u0026ndash; still eludes me. Thus, I have settled on using parchment paper for the first couple of minutes, then, after the crust firms up, lifting the pizza with tongs and yanking out the parchment paper before it incinerates in the 550 degree oven. This, it should be said, is a maneuver not without danger to one\u0026rsquo;s fingers.\u003c/p\u003e","title":"State of the pizza"},{"content":"An embarrassing admission to make: I wrote something in javascript.[1]\nActually, I wrote it in React, because I still think of javascript as that awful language that works differently in every browser, and so, you know, to stay relevant, I decided to learn the framework that web developers everywhere have already cast into yesterday\u0026rsquo;s wastebin for the new shiny. This, pretty much.[2]\nAnyway, I replaced the third-party crossword app on my website with my own NIH version and made it somewhat responsive [3] so that it works on my phone. Also there are two new-ish puzzles since the last time I posted, dated 2016-11-25 and 2016-12-30. Each of them has its own set of problems, but I think I am at least learning where I need to improve.\nTo this neophyte, my impression is that using React (and ES6) is much nicer than that terrible language that they compile down to. On the other hand, the pattern of moving state up the object hierarchy away from an object\u0026rsquo;s view feels backwards and not very OO-like. Perhaps if I also used Flux then I might get enlightened on this point, but that is for another day.\n[1] Here\u0026rsquo;s a nickel, kid. Buy yourself a real language. [2] The day that my relevance depends on knowing the latest JS framework is the day that I will take up a completely different career. [3] Anything worth doing is worth doing somewhat.\n","permalink":"https://bobcopeland.com/blog/2017/01/react-reaction/","summary":"\u003cp\u003eAn embarrassing admission to make: I wrote something in \u003cem\u003ejavascript\u003c/em\u003e.[1]\u003c/p\u003e\n\u003cp\u003eActually, I wrote it in React, because I still think of javascript as that awful language that works differently in every browser, and so, you know, to stay relevant, I decided to learn the framework that web developers everywhere have already cast into yesterday\u0026rsquo;s wastebin for the new shiny. \u003ca href=\"https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f#.hz6cjq8m5\"\u003eThis\u003c/a\u003e, pretty much.[2]\u003c/p\u003e\n\u003cp\u003eAnyway, I replaced the third-party crossword app on my website with \u003ca href=\"/crosswords/\"\u003emy own NIH version\u003c/a\u003e and made it somewhat responsive [3] so that it works on my phone. Also there are two new-ish puzzles since the last time I posted, dated 2016-11-25 and 2016-12-30. Each of them has its own set of problems, but I think I am at least learning where I need to improve.\u003c/p\u003e","title":"React reaction"},{"content":"Work continues on my fork of the QXW crossword filler, which by now is about 50% rewritten by me and ultimately will end up looking nothing like its predecessor. Already it is a command-line, monte carlo automatic filler instead of a user-directed GTK program. Both have their uses, I think.\nIn a previous post, I wished that QXW supported scored dictionaries. It turns out that it does, though in my tests it gave unexpected results in many cases. I\u0026rsquo;ve reworked most of that code and am pretty happy with the results I get now. Just to cherry-pick a before-and-after example:\ninput: ...#... ...#... ....... ##.X.## ....... ...#... ...#... before: SBA#STA BJS#AIX WASHMEN ##AXA## ICGARDS IUE#AWK PFS#HHM after: THE#BHE FOR#EAT COUNCIL ##PXA## LETTUCE ARE#SEE DID#EAR The latter grid looks a lot more like actual words, though it does still have some garbage entries.\nQXW\u0026rsquo;s algorithm could be roughly stated as \u0026ldquo;find the hardest to fill cell, then fill it with the highest scoring letter, repeat.\u0026rdquo; It is a naturally recursive algorithm (implemented iteratively with stacks) that either terminates when the grid is filled, or unwinds and tries the next best letter.\nI have some issues with this approach, the main one being that maximizing letter score seems unlikely to maximize score of whole words. I\u0026rsquo;ve been thinking about this problem some, including the form of optimality that I would like to achieve: maximize the sum of the scores of every word.\nA simple brute force algorithm implementing this could be \u0026ldquo;fill each entry with a word, compute the score, and repeat until all words in all entries have been tried, taking the grid with maximum score.\u0026rdquo; It\u0026rsquo;s fairly easy to realize this exponential algorithm though you may be waiting a looooooooooong time for it to finish.\nWhat I have now is something like this greedy algorithm:\nBase case (no more entries):\nif grid is filled, return the grid\nreturn None\nChoose the longest unfilled entry crossing a \u0026ldquo;critical\u0026rdquo; cell\nFill with the next highest ranked word for that entry\nRecurse. Repeat step 2 until grid is filled or no more words\nIn practice, with a large enough dictionary, this usually terminates without searching forever but you get some junk like PXA. I have added an arbitrary upper limit at which point I just give up the search.\nAn important thing to note is that the problem does not exhibit optimal substructure, so dynamic programming is not applicable. For example, take this template:\n..E IPA PAT We can fill it any number of ways. My algorithm will fill it like this:\nTHE IPA PAT \u0026hellip;which is terrible (HPA \u0026ndash; [Millibar alt.?]). Much better would be:\nSEE IPA PAT \u0026hellip;which is what you get if you fill the child \u0026ldquo;EPA\u0026rdquo; first.\nThere are a couple of things at work here: first, I pick the longest entry so .IP and .PA don\u0026rsquo;t even get a chance. Does this make sense? Should I instead pick shortest entry? Entry with fewest completions? Any of these might make better puzzles or at least move the junk around.\nSecond, THE is really really really common. The commonest three letter word ever. The previous sentence had one and so does this one. That\u0026rsquo;s a lot of THEs. Also it is a terrible word for crosswords. [Well, looking back through my NYT database, it has been used over a hundred times: {It\u0026rsquo;s definite} or {Genuine article?} being decent clues.] Unfortunately, THE is so very common and so highly ranked that practically every high scoring puzzle will have one. So, my optimality metric may be sub-optimal in that respect. Flattening the word probability curve somewhat could partially address this issue.\nIt is clear that we could pick worse words at some levels to get a better overall result. So I implemented a very simple monte carlo search that looks like this:\nRun the greedy algorithm, saving decision stack\nPick a random location in the stack, and from there, pick a random word (instead of best word). Re-start algorithm from there.\nRepeat this zillions of times, keeping track of best N grids as seeds for future iterations\nLots of variations on the above remain to be explored. Also, this approach opens the door for taking a completed grid, manufacturing a search tree that generated it, and then optimizing it from there. Don\u0026rsquo;t like the fill in a published puzzle? Let the computer regenerate it for you.\n","permalink":"https://bobcopeland.com/blog/2016/11/on-placing-letters/","summary":"\u003cp\u003eWork continues on my fork of the QXW crossword filler, which by now is about 50% rewritten by me and ultimately will end up looking nothing like its predecessor. Already it is a command-line, monte carlo automatic filler instead of a user-directed GTK program. Both have their uses, I think.\u003c/p\u003e\n\u003cp\u003eIn a previous post, I wished that QXW supported scored dictionaries. It turns out that it does, though in my tests it gave unexpected results in many cases. I\u0026rsquo;ve reworked most of that code and am pretty happy with the results I get now. Just to cherry-pick a before-and-after example:\u003c/p\u003e","title":"On placing letters"},{"content":"I\u0026rsquo;m a bit late writing this up, as lately wifi stuff has taken a back seat to the day job. But, I\u0026rsquo;ve now seen the following issue reported more than once, so hopefully this post will save the other two mesh users some grief.\nIf you are running an encrypted mesh on wpa_supplicant or (ye gods) authsae, take note:\nEncrypted mesh on kernel 4.8 will not interoperate with kernel \u0026lt; 4.8\nwpa_supplicant 2.6 will not interoperate with 2.5\nauthsae as of commit 706a2cf will not interoperate with that of commit 813ec0e [1]\nwpa_supplicant 2.6 and authsae commit 706a2cf require additional configuration to work with kernel \u0026lt; 4.8 (see below).\nWhat is behind all of that? A while ago I noticed and mentioned to another networking developer that the 802.11 standard calls for certain group-addressed management frames in mesh networks to be encrypted with the mesh group key (MGTK). However, the implementation in the kernel only integrity-protected these frames, using the integrity group key (IGTK) [2]. I don\u0026rsquo;t happen to know the history here: it may be that this was something that was changed between the draft and the standard, but anyway that was the state until Masashi Honma fixed it, with patch 46f6b06050b that landed in kernel 4.8.\nMeanwhile, Jouni Malinen fixed a bunch of related issues in the wpa_supplicant implementation, namely that IGTK was not being generated properly and instead the MGTK was used for that. I made the same kind of fixes for authsae.\nYes, it\u0026rsquo;s a multiple(!) flag day and we suck for that.\nNow, on to how to fix your mesh.\nOld mesh daemon + old kernel everywhere should still work. Old mesh daemon + new kernel everywhere should still work. New mesh daemon + new kernel everywhere should still work.\nNew mesh daemon + pre-4.8 kernel: you will most likely see that peering works but no data goes across because HWMP frames are dropped at the peer. The solution here is to enable PMF in the mesh daemon:\nadd \u0026ldquo;pmf=2\u0026rdquo; or \u0026ldquo;ieee80211w=2\u0026rdquo; to the relevant section of wpa_supplicant.conf\nadd \u0026ldquo;pmf=1;\u0026rdquo; to the meshd section of authsae.cfg\nIf you for some reason find yourself in the position of needing to run a mix of old/new wpa_s and/or old/new kernel, here are my (completely untested) suggestions:\npatch the kernel to accept PMF-protected frames as well as encrypted frames (this allows older kernels to work with newer ones)\npatch the new mesh daemon (wpa_supplicant or authsae) to copy the MGTK into the IGTK instead of generating a separate key (this allows older mesh daemon to work with the newer one since older daemon will use MGTK for IGTK).\nBoth of these will reduce your security and don\u0026rsquo;t follow the spec, so there\u0026rsquo;s little chance such changes will go upstream.\n[1] Prior to 706a2cf, authsae doesn\u0026rsquo;t even interoperate with wpa_supplicant due to not filling in all of the elements in peering frames. My advice would be to switch to wpa_supplicant, which has things like a maintainer and a test suite. [2] On encryption vs integrity protection: the latter is similar to PGP-signing of emails: it makes tampering evident but does not hide the content of the message itself.\n","permalink":"https://bobcopeland.com/blog/2016/10/encrypted-mesh-psa/","summary":"\u003cp\u003eI\u0026rsquo;m a bit late writing this up, as lately wifi stuff has taken a back seat to the day job. But, I\u0026rsquo;ve now seen the following issue reported more than once, so hopefully this post will save the other two mesh users some grief.\u003c/p\u003e\n\u003cp\u003eIf you are running an encrypted mesh on wpa_supplicant or (ye gods) authsae, take note:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eEncrypted mesh on kernel 4.8 will not interoperate with kernel \u0026lt; 4.8\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003ewpa_supplicant 2.6 will not interoperate with 2.5\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eauthsae as of commit 706a2cf will not interoperate with that of commit 813ec0e [1]\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003ewpa_supplicant 2.6 and authsae commit 706a2cf require additional configuration to work with kernel \u0026lt; 4.8 (see below).\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e","title":"Encrypted mesh PSA"},{"content":"Since last post, I made two more puzzles, both standard newspaper size, and I appropriated and modified someone else\u0026rsquo;s javascript so that you can fill it in on that page. Both puzzles went through two drafts where I completely redid the fill after Angeline test-solved them and found some problems.\nI\u0026rsquo;m still using Qxw, now with a 130k+ entry dictionary I built from 10 years of NYT puzzles, which works OK. Still, I feel like it could help even more: for example, it could rank words by their commonality in the corpus so that you don\u0026rsquo;t use something hyper-obscure that happened to be in one Saturday puzzle when the editor was asleep; or, it could give partial fills even though it may not be able to complete the whole thing; or, it could give hints on places to place black squares to improve chances that a reasonable fill exists.\nTo get at the latter, I extracted the qxw filler into a command-line program that just fills templates passed to it on stdin, and, into that, piped a python script that generates random valid grids. This helped for the most recent puzzle where a few spots had only two or three words that would fit given the themers, and moving a couple of blocks around was the difference between no-fills and some-fills. A quick improvement there would be to score the resulting grids, and use a genetic algorithm to produce new templates based on their fitness.\nAnyway, these various ugly hacks are now on my github.\n","permalink":"https://bobcopeland.com/blog/2016/09/more-boring-crossword-stuff/","summary":"\u003cp\u003eSince last post, I made \u003ca href=\"/crosswords/\"\u003etwo more puzzles\u003c/a\u003e, both standard newspaper size, and I appropriated and modified someone else\u0026rsquo;s javascript so that you can fill it in on that page. Both puzzles went through two drafts where I completely redid the fill after Angeline test-solved them and found some problems.\u003c/p\u003e\n\u003cp\u003eI\u0026rsquo;m still using Qxw, now with a 130k+ entry dictionary I built from 10 years of NYT puzzles, which works OK. Still, I feel like it could help even more: for example, it could rank words by their commonality in the corpus so that you don\u0026rsquo;t use something hyper-obscure that happened to be in one Saturday puzzle when the editor was asleep; or, it could give partial fills even though it may not be able to complete the whole thing; or, it could give hints on places to place black squares to improve chances that a reasonable fill exists.\u003c/p\u003e","title":"More boring crossword stuff"},{"content":"As I wrote before, I recently tried my hand with crossword construction.\nThis new puzzle is my sophomore effort. This one, slightly bigger at 13x13, came together much more easily for some reason (luck?). This time I did not have resort to using any unknown words, and nothing is really obscure, with the possible exception of 17-across (a common crossword answer).\nAs before, I mostly let the theme clues dictate the layout, while I left in a few longer stretches this time. The top left and bottom right corners were sufficiently isolated that I did them by hand before bed, then the next day I filled the longer answers and finished the bottom within about 30 minutes. At this point 3/4 of the puzzle was filled manually. Then, Qxw woke up and was able to help fill the rest (including 18-across, a nice gift which I happily accepted) \u0026ndash; still using the standard Linux dictionary file. I reworked some of its suggestions using some of my own, but it was quite a time-saver.\nIn all I\u0026rsquo;m happier with this puzzle than the previous one: there\u0026rsquo;s more wordplay, better theme, nothing too difficult (I think). Comments welcome.\nI guess this means the next one will be full-size.\n","permalink":"https://bobcopeland.com/blog/2016/08/another-puzzle/","summary":"\u003cp\u003eAs I \u003ca href=\"/blog/2016/08/puzzle/\"\u003ewrote before\u003c/a\u003e, I recently tried my hand with crossword construction.\u003c/p\u003e\n\u003cp\u003eThis \u003ca href=\"/crosswords/2016-08-19.html\"\u003enew puzzle\u003c/a\u003e is my sophomore effort. This one, slightly bigger at 13x13, came together much more easily for some reason (luck?). This time I did not have resort to using any unknown words, and nothing is really obscure, with the possible exception of 17-across (a common crossword answer).\u003c/p\u003e\n\u003cp\u003eAs before, I mostly let the theme clues dictate the layout, while I left in a few longer stretches this time. The top left and bottom right corners were sufficiently isolated that I did them by hand before bed, then the next day I filled the longer answers and finished the bottom within about 30 minutes. At this point 3/4 of the puzzle was filled manually. Then, Qxw woke up and was able to help fill the rest (including 18-across, a nice gift which I happily accepted) \u0026ndash; still using the standard Linux dictionary file. I reworked some of its suggestions using some of my own, but it was quite a time-saver.\u003c/p\u003e","title":"Another puzzle"},{"content":"I will admit to being an insufferable word nerd: the kind of person who will intentionally make a pun and then ruin it by acknowledgment. My wife is the sufferable sort who, presented with the same joke, groans outwardly and inwardly at the same time. Together, we have a shared appreciation for the crossword puzzle, and can be found on the porch filling out a grid on the rare occasion that a lazy summer afternoon presents itself. We can usually get through a Thursday or Sunday NYT puzzle, but we aren\u0026rsquo;t going to be entering any speed solving contests.\nA few months ago, I heard about Qxw, a crossword construction software for Linux. As a puzzle solver, the art of creating the puzzle seemed mysterious and left to those far smarter than myself, but any old dumb person can run some software. I finally tried it out yesterday, and here\u0026rsquo;s the result.\nThis is an 11x11 puzzle; newspaper puzzles are usually 15x15 but this was my first try so wanted to keep it easy-ish and constructable in a few hours. For the uninitiated, there are a few rules that help guide one into picking a layout: generally there are a few (~3) longish answers that form a theme; the layout is diagonally symmetric; the smallest answers are 3 characters. Taken together, this means two of the theme answers are usually 3-4 rows from the top and bottom, of the same length and in the same relative location, while the third theme answer is in the middle. Additional black boxes are sprinkled about to break up extra-long words.\nIt turns out that Qxw didn\u0026rsquo;t actually help much besides automatically placing the mirrored black squares: once I filled in my theme answers and blacked off part of the grid, Qxw couldn\u0026rsquo;t fill any other spaces. I suspect expanding the dictionary beyond /usr/share/dict/words would help a lot in this respect. Instead I occasionally used egrep on the dictionary file with suitable regexes to find candidate words and resorted to some abbreviations and prefixes. I did cheat a few times by googling some combination of letters that I hoped would be a thing (1-down, 6-down, 35-down). I need to improve my 3-letter word vocab.\nThings I did do that annoy me as a solver:\nFairly obscure names or characters (35-down, at least to me, a non-Trekkie) Use of old stand-bys (10-, 14-across, I burned these quickly!) Weak multi-word answers (9-down) Foreign words (1-down) Despite the flaws, Angeline solved it in about 10 minutes while watching TV; she also supplied a much better clue for 25-across which I have appropriated.\nI\u0026rsquo;d say this effort gets a B-, but it was an interesting exercise to do the puzzle from the other side. 13x13 next.\n","permalink":"https://bobcopeland.com/blog/2016/08/puzzle/","summary":"\u003cp\u003eI will admit to being an insufferable word nerd: the kind of person who will intentionally make a pun and then ruin it by acknowledgment. My wife is the sufferable sort who, presented with the same joke, groans outwardly and inwardly at the same time. Together, we have a shared appreciation for the crossword puzzle, and can be found on the porch filling out a grid on the rare occasion that a lazy summer afternoon presents itself. We can usually get through a Thursday or Sunday NYT puzzle, but we aren\u0026rsquo;t going to be entering any speed solving contests.\u003c/p\u003e","title":"Puzzle"},{"content":"In the previous installment I had opined about the untapped power inside my new mechanical keyboard. I haven\u0026rsquo;t had much time to continue looking into the firmware, but I did find the original source of the firmware tools for a similar product. His blog post is well worth a read.\nThus far the new device is performing admirably, but it did come with an unforeseen problem.\nI always have a bunch of computers here at my desk, and so for some time I\u0026rsquo;ve had a physical KVM switch to share a single monitor and input devices among them. This switch has a special USB port on the back just for the keyboard, which it monitors for the double-scroll-lock macro command to switch the display. Unfortunately, said port will not power the new keyboard and also won\u0026rsquo;t work with a hub.\nSo, this happened:\nOne for switching, one for typing.\nInspired a bit by Johannes Berg\u0026rsquo;s (more interesting) uSynergy HID project, I thought I\u0026rsquo;d see if I could bang up a \u0026ldquo;keyboard\u0026rdquo; that just lets me put the minimal bits on the wire to make the KVM happy. I had a Dragonboard (Arm64 SBC) already sitting around, and it supports OTG out of the box. Linaro publishes nightly Debian snapshots for it so getting the device up and running with Linux userland is painless.\nThe only real work involved is to build a new kernel with the USB HID function drivers. Pretty standard fare except the 96boards wiki is somewhat confusing as to where to get all the pieces; here are my unedited notes:\nInitrd: http://builds.96boards.org/snapshots/dragonboard410c/linaro/debian/latest/initrd.img-* Toolchain: http://releases.linaro.org/14.11/components/toolchain/binaries/aarch64-linux-gnu/gcc-linaro-4.9-2014.11-x86_64_aarch64-linux-gnu.tar.xz skales: git clone git://codeaurora.org/quic/kernel/skales Linux repo: https://github.com/rsalveti/linux.git Branch: qcomlt-4.4 defconfig: distro.config export ARCH=arm64 export CROSS_COMPILE=~/ext/dragonboard/gcc-linaro-4.9-2014.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- make defconfig distro.config make -j8 Image dtbs make modules modules_install INSTALL_MOD_PATH=../dragonboard ../skales/dtbTool -o dt.img -s 2048 arch/arm64/boot/dts/qcom/ ../skales/mkbootimg --kernel arch/arm64/boot/Image \\ --ramdisk initrd.img \\ --output boot-db410c.img \\ --dt dt.img \\ --pagesize 2048 \\ --base 0x80000000 \\ --cmdline \u0026#34;root=/dev/disk/by-partlabel/rootfs rw rootwait console=ttyMSM0,115200n8\u0026#34; * rsync modules to rootfs * fastboot to boot or flash the kernel With the kernel built and booted, I copied this setup mostly verbatim to get a functioning HID device.\nAnd then the only \u0026ldquo;code\u0026rdquo; needed is a little shell script to send my switching sequence:\n#!/bin/bash function send_keycode { echo \u0026#34;keycode: $1\u0026#34; local keycode=$1 echo -ne \u0026#34;\\x00\\x00\u0026#34;$keycode\u0026#34;\\x00\\x00\\x00\\x00\\x00\u0026#34; \u0026gt; /dev/hidg0 echo -ne \u0026#34;\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\u0026#34; \u0026gt; /dev/hidg0 sleep .1 } function num_keycode { local num=$1 local ord=$(printf \u0026#34;%d\u0026#34; \\\u0026#39;$1) let kval=$(($ord - 49 + 30)) char=\\\\x$(printf \u0026#34;%x\u0026#34; $kval) echo $char } cd $(basename $(dirname $0)) visible=$(cat .switch.cur || echo \u0026#34;1\u0026#34;) case $1 in --up) screen=$(( (visible + 1) % 4)) ;; --down) screen=$(( (visible + 4 - 1) % 4)) ;; [1234]) screen=$(( $1 - 1 ));; *) echo \u0026#34;Usage: $0 [--up|--down|[1-4]]\u0026#34;; exit 1 ;; esac echo Switching to screen $(( screen + 1 )) echo $screen \u0026gt; .switch.cur # send: 2 x scroll lock, [1-4], enter send_keycode \u0026#34;\\x47\u0026#34; send_keycode \u0026#34;\\x47\u0026#34; send_keycode $(num_keycode $((screen + 1)) ) send_keycode \u0026#34;\\x28\u0026#34; The volume buttons on the Dragonboard still work when the device is in OTG mode, so I used xbindkeys to bind volume up to \u0026ldquo;switch.sh \u0026ndash;up\u0026rdquo; and likewise for down.\nMuch better.\nYes, this is pretty ridiculously overpowered for what it is, and I\u0026rsquo;ll probably replace this with an MCU build when I get some time, but still it is fun to think about having a keyboard that runs X.\n","permalink":"https://bobcopeland.com/blog/2016/07/fake-clicky/","summary":"\u003cp\u003eIn the \u003ca href=\"/blog/2016/06/clicky/\"\u003eprevious installment\u003c/a\u003e I had opined about the untapped power inside my new mechanical keyboard. I haven\u0026rsquo;t had much time to continue looking into the firmware, but I did find the original source of the firmware tools for a similar product. His \u003ca href=\"http://spritesmods.com/?art=rapidisnake\u0026amp;page=1\"\u003eblog post\u003c/a\u003e is well worth a read.\u003c/p\u003e\n\u003cp\u003eThus far the new device is performing admirably, but it did come with an unforeseen problem.\u003c/p\u003e\n\u003cp\u003eI always have a bunch of computers here at my desk, and so for some time I\u0026rsquo;ve had a physical KVM switch to share a single monitor and input devices among them. This switch has a special USB port on the back just for the keyboard, which it monitors for the double-scroll-lock macro command to switch the display. Unfortunately, said port will not power the new keyboard and also won\u0026rsquo;t work with a hub.\u003c/p\u003e","title":"Fake clicky"},{"content":"I got a new keyboard this week with 80s-era clickiness: a Cooler Master QFR XTi.\nThis thing has LED-backlit keys, which is kind of fun but also a bit of a gimmick. More interesting to me is that driving everything is an ARM Cortex M3 MCU (Holtek HT32F165x) which is flashable over USB. That is more powerful than my first computer.\nIt would be nice to expand the features of this thing a bit, e.g. there\u0026rsquo;s an RTC on board the MCU, wouldn\u0026rsquo;t it be useful to have TOTP built directly into the keyboard? Or, perhaps it would be useful to audit the vendor firmware to make certain it is not recording your keystrokes. Of course, getting to the point of unraveling the vendor FW and flashing one\u0026rsquo;s own will entail a fair amount of work.\nIt seems there is support for SWD programming and pads for that on the motherboard, but given my clunkiness with a soldering iron that is kind of a last-resort thing to revisit once I brick my keyboard.\nAnyway, I captured the firmware upload via USBPcap in Windows. Turns out it\u0026rsquo;s a fairly simple protocol. I saw the following two messages cross the wire:\nMSG 1: 01 01 53 b6 38 2d 00 00 6b 2d 00 00 73 2d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 73 2d 00 00 07 48 80 47 07 48 80 47 07 48 00 47 fe e7 fe e7 fe e7 fe e7 fe e7 fe e7 MSG 2: 01 01 84 0d 6c 2d 00 00 9f 2d 00 00 fe e7 fe e7 fe e7 fe e7 ad 7b 00 00 4d 71 00 00 81 2d 00 00 df f8 0c d0 00 f0 3e f8 00 48 00 47 e5 84 00 00 60 47 00 20 06 49 07 4a 08 68 50 43 43 f2 39 02 It is reasonable to assume that the \u0026ldquo;fe e7\u0026rdquo; chain repeats without a break across the two messages, which in turn tells us that the header for the message is twelve bytes:\nmsg 1: 01 01 53 b6 38 2d 00 00 6b 2d 00 00 msg 2: 01 01 84 0d 6c 2d 00 00 9f 2d 00 00 Bytes 4-8 and 8-12 look like addresses in little endian format. As it happens, if you subtract these two addresses and add one, you get the value 52, which is exactly how many post-header bytes are in the message. Also note that the \u0026ldquo;address 1\u0026rdquo; in message two is just one more than the \u0026ldquo;address 2\u0026rdquo; in message one. So we have something that looks like this:\nstruct hdr { u8 cmd; /* ??? */ u8 subcmd; /* ??? */ __le16 something; /* ??? -- crc? */ __le32 start_dest_address; /* first byte of xfer */ __le32 end_dest_address; /* last byte (inclusive) */ u8 data[0]; }; The device presumably copies the payload from \u0026ldquo;data\u0026rdquo; into the physical (flash) addresses specified in the header.\nSo I dumped the firmware from the pcap file. There\u0026rsquo;s nothing like an ELF header on it, but I guess that\u0026rsquo;s probably normal for bare-metal programs running on an MCU. Various bits do look like ARM thumb code.\nUntil now I didn\u0026rsquo;t really know squat about ARM MCUs, but a little bit of googling indicates that E7 FE is an infinite loop and the typical way you would write a handler for something like NMI that you just want to go into loop mode. So that explains the 0xfee7 sequence, and everything before looks like a lot of little-endian 32 bit addresses, which lines up with what would go in the Vector Table, an ARM concept which contains the values for program counter load address, stack pointer, IRQ handlers, and so on.\nA bit more googling found some github projects with functional flashing utilities for similar products with similar or the same flashing protocol. There is yet hope, hopefully more to come.\n","permalink":"https://bobcopeland.com/blog/2016/06/clicky/","summary":"\u003cp\u003eI got a new keyboard this week with 80s-era clickiness: a Cooler Master QFR XTi.\u003c/p\u003e\n\u003cp\u003eThis thing has LED-backlit keys, which is kind of fun but also a bit of a gimmick. More interesting to me is that driving everything is an ARM Cortex M3 MCU (Holtek HT32F165x) which is flashable over USB. That is more powerful than my first computer.\u003c/p\u003e\n\u003cp\u003eIt would be nice to expand the features of this thing a bit, e.g. there\u0026rsquo;s an RTC on board the MCU, wouldn\u0026rsquo;t it be useful to have TOTP built directly into the keyboard? Or, perhaps it would be useful to audit the vendor firmware to make certain it is not recording your keystrokes. Of course, getting to the point of unraveling the vendor FW and flashing one\u0026rsquo;s own will entail a fair amount of work.\u003c/p\u003e","title":"Clicky"},{"content":"I\u0026rsquo;ve been looking at the sample drawing in speccy to try and speed it up. For a given frame, it renders about 10000 points as 9-pixel anti-aliased squares using Cairo, in Python. On my desktop (Debian stable, Nouveau driver) it gets a pokey 1 FPS.\nMy graphics knowledge is about 20 years old at this point, and while I did once know various arcane tricks on the hardware of the day, none of that is relevant now. So I know basically nothing about modern graphics. It is still not clear to me to what extent the 2D primitives use acceleration, and it doesn\u0026rsquo;t help much that, in as many years that I\u0026rsquo;ve been asleep on this topic, there seems to have been as many new APIs introduced and retired: today there are at least XRender, XAA, EXA, UXA, SNA, and Glamor \u0026ndash; did I miss any?\nAnyway, here are the results on my desktop from things that I\u0026rsquo;ve tried so far [1]:\ntest FPS ---- ------- orig (aa) 0.904780 no_aa 1.103061 no_cairo 8.372354 no_cairo_aa 2.408143 batched 19.873722 batched_aa 29.045358 batched_by_color 7.611148 batched_by_color_aa 14.856336 The tests are:\norig: the current code, where each rectangle is filled immediately in turn.\nno_cairo: I skip Cairo completely and manually render to a GdkPixbuf internally, under the theory that draw function call overhead is the big killer\nbatched: using Cairo with one cr.fill() call for all of the rectangles. This means all are rendered with the same color, and as such could not actually be used. But it is interesting as a data point on batching vs. not.\nbatched_by_color: one cr.fill() call per distinct color\naa refers to having antialiasing enabled\nBatching appears to make a huge difference, and binning and batching by color is the most performant usable setup. It\u0026rsquo;s not really difficult to batch by color since the colors are internally just an 8-bit intensity value, though in my quick test I am hashing the string representation of the float triples so it\u0026rsquo;s not as quick as it could be.\nI don\u0026rsquo;t understand the performance increase on batching with AA applied. Perhaps this is an area where some sort of acceleration is disabled when AA is also disabled? This is a repeatable outcome on this hardware / driver.\nThen I tested on my laptop and got these numbers (Debian Testing, Intel graphics):\ntest FPS ---- ------- orig (aa) 28.554757 no_aa 27.632071 no_cairo 9.954314 no_cairo_aa 2.958732 batched 43.917732 batched_aa 28.750845 batched_by_color 19.933492 batched_by_color_aa 19.803839 Here, just using Cairo is the best. My guess is batching by color is only worse because of the higher CPU cost of the hashing and the rather inefficient way I did it. Given the close performance of batched_aa and the original test though, batching done well probably isn\u0026rsquo;t going to make much difference.\nFinally, I went back to the desktop and tried Nvidia binary drivers (oh, how I don\u0026rsquo;t miss those).\ntest FPS ---- ------- orig 6.586327 no_aa 15.216683 no_cairo 9.072748 no_cairo_aa 2.368938 batched 39.192580 batched_aa 27.717076 batched_by_color 18.681605 batched_by_color_aa 16.450811 It seems Nouveau still has some tricks to learn. In this case AA is, as expected, slower than non-AA. Overall, batching still seems to give a decent speedup on this hardware, so I may look into actually doing that. Moral of the story: use the laptop.\nAs for speccy, I actually had a use for it recently: I needed to see whether a particular testmode on ath5k was functional. Although I can\u0026rsquo;t really measure anything precisely with the tool, I can at least see if the spectrum looks close enough. Below is a snapshot from my testing, showing that in this testmode, the device emits power on 2412 MHz with a much narrower bandwidth than normal.\nThis matches, as far as I can tell, the spectrum shown on the NDA-encumbered datasheet.\n[1] Approaches not tried yet: reducing the point count by partial redraws, using something like VBOs in GL, or rewriting parts in C. Feel free to let me know of others.\n","permalink":"https://bobcopeland.com/blog/2016/04/on-drawing-squares/","summary":"\u003cp\u003eI\u0026rsquo;ve been looking at the sample drawing in \u003ca href=\"https://github.com/bcopeland/speccy\"\u003especcy\u003c/a\u003e to try and speed it up. For a given frame, it renders about 10000 points as 9-pixel anti-aliased squares using Cairo, in Python. On my desktop (Debian stable, Nouveau driver) it gets a pokey 1 FPS.\u003c/p\u003e\n\u003cp\u003eMy graphics knowledge is about 20 years old at this point, and while I did once know various arcane tricks on the hardware of the day, none of that is relevant now. So I know basically nothing about modern graphics. It is still not clear to me to what extent the 2D primitives use acceleration, and it doesn\u0026rsquo;t help much that, in as many years that I\u0026rsquo;ve been asleep on this topic, there seems to have been as many new APIs introduced and retired: today there are at least XRender, XAA, EXA, UXA, SNA, and Glamor \u0026ndash; did I miss any?\u003c/p\u003e","title":"On Drawing Squares"},{"content":"While looking at some kmalloc statistics for my little corner of wireless, I found a new tool for the toolbox: perf kmem. To test it out, I ran a simulated connected 25-node mesh in mac80211_hwsim.\nHere\u0026rsquo;s what perf kmem stat --caller had to say:\n--------------------------------------------------------------------- Callsite | Total_alloc/Per | Total_req/Per | Hit | ... --------------------------------------------------------------------- mesh_table_alloc+3e | 1600/32 | 400/8 | 50 | mesh_rmc_init+23 | 204800/8192 | 102600/4104 | 25 | mesh_path_new.const | 315904/512 | 241864/392 | 617 | [...] The number of mesh nodes shows up in the \u0026lsquo;Hit\u0026rsquo; column in various ways: we can pretty easily see that mesh_table_alloc is called twice per mesh device, mesh_rmc_init is called once, and mesh_path_new is called at least once for every peer (617 ~= 25 * 24). We might scan the hit column to see if there are any cases in our code that perform unexpectedly high numbers of allocations, signifying a bug or poor design.\nThe first two columns are also interesting because they show potentially wasteful allocations. Taking mesh_table_alloc as an example:\n(gdb) l *mesh_table_alloc+0x3e 0x749fe is in mesh_table_alloc (net/mac80211/mesh_pathtbl.c:66). 61\tnewtbl = kmalloc(sizeof(struct mesh_table), GFP_ATOMIC); 62\tif (!newtbl) 63\treturn NULL; 64 65\tnewtbl-\u0026gt;known_gates = kzalloc(sizeof(struct hlist_head), GFP_ATOMIC); 66\tif (!newtbl-\u0026gt;known_gates) { 67\tkfree(newtbl); 68\treturn NULL; 69\t} 70\tINIT_HLIST_HEAD(newtbl-\u0026gt;known_gates); We are allocating the size of an hlist_head, which is one pointer. This is kind of unusual: typically the list pointer is embedded directly into the structure that holds it (here, struct mesh_table). The reason this was originally done is that the table pointer itself could be switched out using RCU, and a level of indirection for the gates list ensured that the same head pointer is seen by iterators with both the old and new table. With my rhashtable rework, this indirection is no longer necessary.\nTo track allocations with 8-byte granularity would impose an unacceptable level of overhead, so these 8-byte allocations all get rounded up to 32 bytes (first column). Because we allocated 50 of them (25 devices, two tables each), in all we asked for 400 bytes, and actually got 1600, a waste of 1200 bytes. Forty-eight wasted bytes per device is generally nothing worth worrying about, considering we usually only have one or two devices \u0026ndash; but as this kmalloc is no longer needed, we can just drop it and also shed a bit of error-handling code.\nIn the case of mesh_rmc_init, we see an opportunity for tuning. The requested allocation is the unfortunate size of 4104 bytes, just a bit larger than the page size, 4096. Allocations of a page (so-called order-0 allocations) are much easier to fulfill than the order-1 allocations that actually happen here. There are a few options here: we could remove or move the u32 in this struct that pushes it over the page size, or reduce the number of buckets in the hashtable, or switch the internal lists to hlists in order to get this to fit into 4k, and thus free up a page per device. The latter is the simplest approach, and the one I chose.\nI have patches for these and a few other minor things in my local tree and will send them out soon.\n","permalink":"https://bobcopeland.com/blog/2016/03/memory-%C2%B5-optimizing/","summary":"\u003cp\u003eWhile looking at some kmalloc statistics for my little corner of wireless, I found a new tool for the toolbox: \u003ccode\u003eperf kmem\u003c/code\u003e. To test it out, I ran a simulated connected 25-node mesh in mac80211_hwsim.\u003c/p\u003e\n\u003cp\u003eHere\u0026rsquo;s what \u003ccode\u003eperf kmem stat --caller\u003c/code\u003e had to say:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-gdscript3\" data-lang=\"gdscript3\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#f92672\"\u003e---------------------------------------------------------------------\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e Callsite            \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e Total_alloc\u003cspan style=\"color:#f92672\"\u003e/\u003c/span\u003ePer \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e Total_req\u003cspan style=\"color:#f92672\"\u003e/\u003c/span\u003ePer  \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e Hit   \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e...\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#f92672\"\u003e---------------------------------------------------------------------\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e mesh_table_alloc\u003cspan style=\"color:#f92672\"\u003e+\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e3\u003c/span\u003ee \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e      \u003cspan style=\"color:#ae81ff\"\u003e1600\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003e/\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e32\u003c/span\u003e    \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e       \u003cspan style=\"color:#ae81ff\"\u003e400\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003e/\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e8\u003c/span\u003e    \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e    \u003cspan style=\"color:#ae81ff\"\u003e50\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e mesh_rmc_init\u003cspan style=\"color:#f92672\"\u003e+\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e23\u003c/span\u003e    \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e    \u003cspan style=\"color:#ae81ff\"\u003e204800\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003e/\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e8192\u003c/span\u003e  \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e    \u003cspan style=\"color:#ae81ff\"\u003e102600\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003e/\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e4104\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e    \u003cspan style=\"color:#ae81ff\"\u003e25\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e mesh_path_new\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\u003cspan style=\"color:#66d9ef\"\u003econst\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e    \u003cspan style=\"color:#ae81ff\"\u003e315904\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003e/\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e512\u003c/span\u003e   \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e    \u003cspan style=\"color:#ae81ff\"\u003e241864\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003e/\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e392\u003c/span\u003e  \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e   \u003cspan style=\"color:#ae81ff\"\u003e617\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[\u003cspan style=\"color:#f92672\"\u003e...\u003c/span\u003e]\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eThe number of mesh nodes shows up in the \u0026lsquo;Hit\u0026rsquo; column in various ways: we can pretty easily see that mesh_table_alloc is called twice per mesh device, mesh_rmc_init is called once, and mesh_path_new is called at least once for every peer (617 ~= 25 * 24). We might scan the hit column to see if there are any cases in our code that perform unexpectedly high numbers of allocations, signifying a bug or poor design.\u003c/p\u003e","title":"memory Âµ-optimizing"},{"content":"Now that I\u0026rsquo;ve had a few months\u0026rsquo; experience with Let\u0026rsquo;s Encrypt, and I have cert renewals completely automated, bobcopeland.com is now fully https and serving HSTS headers. I\u0026rsquo;m now using acme-tiny to renew the certs, thanks to their dedication to making the code easily auditable.\n","permalink":"https://bobcopeland.com/blog/2016/03/hsts-applied/","summary":"\u003cp\u003eNow that I\u0026rsquo;ve had a few months\u0026rsquo; experience with Let\u0026rsquo;s Encrypt, and I have cert renewals completely automated, bobcopeland.com is now fully https and serving HSTS headers. I\u0026rsquo;m now using \u003ca href=\"https://github.com/diafygi/acme-tiny\"\u003eacme-tiny\u003c/a\u003e to renew the certs, thanks to their dedication to making the code easily auditable.\u003c/p\u003e","title":"HSTS applied"},{"content":"Sometimes I have to use a Mac, and various things drive me nuts about it. The worst is git commit aborting because I typoed the writeout command after having written the best commit log ever. Here\u0026rsquo;s a google crumb for others experiencing this, and ideally for someone who wants to track down and fix the problem upstream.\nSynopsis: do the below, and type the following once vim starts up: :Wq[enter]:q[enter]\n$ vi || echo broken broken $ vim || echo broken $ vim --version VIM - Vi IMproved 7.4 (2010 Aug 15, compiled Jul 9 2015 23:58:42) Compiled by root@apple.com [...] /usr/bin/vi is of course a symlink to /usr/bin/vim that makes it act worse. Now, there are some folks who have various theories about why vi is different in this respect, or what vimrc stuff might cause vi to exit with an error if some error happened once upon a time in the editing session, but honestly I can\u0026rsquo;t find myself caring. Instead I just set my $EDITOR to pretend vi doesn\u0026rsquo;t exist anymore.\n","permalink":"https://bobcopeland.com/blog/2016/02/on-mac-vi-and-error-exits/","summary":"\u003cp\u003eSometimes I have to use a Mac, and various things drive me nuts about it. The worst is \u003ccode\u003egit commit\u003c/code\u003e aborting because I typoed the writeout command after having written the best commit log ever. Here\u0026rsquo;s a google crumb for others experiencing this, and ideally for someone who wants to track down and fix the problem upstream.\u003c/p\u003e\n\u003cp\u003eSynopsis: do the below, and type the following once vim starts up: \u003ccode\u003e:Wq[enter]:q[enter]\u003c/code\u003e\u003c/p\u003e","title":"On mac vi and error exits"},{"content":"My brother-in-law gave me a copy of the bread cookbook Flour Water Salt Yeast by Ken Forkish (as far as I know, his actual name) for Christmas, and so I made five pizzas. The one pictured below is a touch over-baked on top, but pretty close. It was a little too chewy owing to having used bread flour, yet had a nice airy crumb. I think this replaces Peter Reinhart\u0026rsquo;s recipe as my go-to from now on \u0026ndash; both are about 70% hydration but this one had more bubbles.\nThe book has some tips for baking it in a home oven, which were pretty useful, though I found his suggestion of temporarily using the broiler caused my oven temp to drop 30 degrees in the process. Still working on the heat aspect, but I\u0026rsquo;m getting better at dealing with wet doughs.\nIncidentally, this one is for the kids: my own favorite toppings, stolen from a pizza joint in Crystal City, VA, are prosciutto and arugula.\nAlso cooked last week: pot roast with homemade egg noodles, and butter chicken.\nWhew, I think it\u0026rsquo;s going to be takeout all this week.\n","permalink":"https://bobcopeland.com/blog/2016/01/carbs/","summary":"\u003cp\u003eMy brother-in-law gave me a copy of the bread cookbook \u003cem\u003eFlour Water Salt Yeast\u003c/em\u003e by Ken Forkish (as far as I know, his actual name) for Christmas, and so I made five pizzas. The one pictured below is a touch over-baked on top, but pretty close. It was a little too chewy owing to having used bread flour, yet had a nice airy crumb. I think this replaces Peter Reinhart\u0026rsquo;s recipe as my go-to from now on \u0026ndash; both are about 70% hydration but this one had more bubbles.\u003c/p\u003e","title":"Carbs"},{"content":"As I wrote somewhere in the Metaverse, I\u0026rsquo;m running the wireless-testing tree now, which is about as minimal a contribution as one could make. It essentially means running a script once daily; cron could do it all, if not for the part where I enter my ssh passphrase to actually push out the updates. For the curious, here\u0026rsquo;s the script.\nOne of the killer features of git used here is git rerere, which remembers conflict resolutions and reapplies them when reencountered. A human (me) still needs to resolve the conflict once, but after that it\u0026rsquo;s pretty much on autopilot for the rest of that kernel series. Normally one should reinspect the automatic merge made by git-rerere, but at least for this testing tree, throwing caution to the wind is warranted and thus the script has some kludges around that.\nEvery pushed tag had a successful build test with whatever (not claimed to be exhaustive) kernel config I am using locally. I\u0026rsquo;ve considered some more extensive tests here, such as running the hostapd test suite (takes an hour with 8 VMs on my hardware) or boot testing on my mesh APs (requires a giant stack of out-of-tree patches), but, given the parentheticals, I\u0026rsquo;m keeping it simple for now.\nObservant persons may have noted some missing dates in the tags. Generally, this means either nothing actually changed in the trees I\u0026rsquo;m pulling, or it is during the merge window when things are too in flux to be useful. Or maybe I forgot.\n","permalink":"https://bobcopeland.com/blog/2016/01/wherein-i-did-a-git-push/","summary":"\u003cp\u003eAs \u003ca href=\"http://permalink.gmane.org/gmane.linux.kernel.wireless.general/146327\"\u003eI wrote\u003c/a\u003e somewhere in the Metaverse, I\u0026rsquo;m running the \u003ca href=\"https://git.kernel.org/cgit/linux/kernel/git/wireless/wireless-testing.git\"\u003ewireless-testing\u003c/a\u003e tree now, which is about as minimal a contribution as one could make. It essentially means running a script once daily; cron could do it all, if not for the part where I enter my ssh passphrase to actually push out the updates. For the curious, here\u0026rsquo;s \u003ca href=\"https://github.com/bcopeland/wt-tools/blob/master/wt-update\"\u003ethe script\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eOne of the killer features of git used here is \u003ccode\u003egit rerere\u003c/code\u003e, which remembers conflict resolutions and reapplies them when reencountered. A human (me) still needs to resolve the conflict once, but after that it\u0026rsquo;s pretty much on autopilot for the rest of that kernel series. Normally one should reinspect the automatic merge made by git-rerere, but at least for this testing tree, throwing caution to the wind is warranted and thus the script has some kludges around that.\u003c/p\u003e","title":"wherein I did a git push"},{"content":"For a while now, I\u0026rsquo;ve wanted an easy way to decrypt a mesh packet capture when I know the SAE passphrase. This would be quite handy for debugging.\nI reasoned that, if I knew the shared secret, and had captured the over-the-air exchange, it should be possible to make such a tool, right? We know everything each station knows in that case, don\u0026rsquo;t we?\nSo I spent a bit of time last week reimplementing SAE in python to come to grips with its various steps. And I found my reasoning was flawed.\nSimilarly to Diffie-Hellman, SAE exchanges values that include the composition of a random value (we\u0026rsquo;ll call them r1 and r2) with some public part P, in such a way that it is hard to extract r1 even if you know P (e.g. r1*P and r2*P with ECC, although this is not exactly how SAE is specified). These values can be used by each peer to arrive at a shared secret provided they know the original random number (e.g., something like r1 * r2 * P). The crucial point is that r1 and r2 cannot be determined from the exchange alone. They exist only in memory on each peer during the exchange.\nSo if the secrecy doesn\u0026rsquo;t actually depend on the password, what is it there for? The answer is authentication: SAE is a password authenticated key exchange (PAKE). The password ensures that the party we are talking to is who we think it is, or at least someone who also knows the password. In the case of SAE, P is derived from the password.\nAs for the original goal, what we can do instead is use the CCMP keys from a wpa_supplicant log and decrypt frames with those. That is not nearly as convenient, though.\nAnd thus my postings for 2015 are at an end; happy new year, all!\n","permalink":"https://bobcopeland.com/blog/2015/12/sae-py/","summary":"\u003cp\u003eFor a while now, I\u0026rsquo;ve wanted an easy way to decrypt a mesh packet capture when I know the SAE passphrase. This would be quite handy for debugging.\u003c/p\u003e\n\u003cp\u003eI reasoned that, if I knew the shared secret, and had captured the over-the-air exchange, it should be possible to make such a tool, right? We know everything each station knows in that case, don\u0026rsquo;t we?\u003c/p\u003e\n\u003cp\u003eSo I spent a bit of time last week reimplementing \u003ca href=\"https://github.com/bcopeland/wifi-crypto/blob/master/sae.py\"\u003eSAE in python\u003c/a\u003e to come to grips with its various steps. And I found my reasoning was flawed.\u003c/p\u003e","title":"sae.py"},{"content":"In the previous installment, I was messing with the serial library on Arduino to get it to work on the older board. The purpose was this:\nPictured is an RFID reader from SparkFun that I picked up years ago and sat in my parts box since then. This RFID reader is intended to read Mifare tags and as such predates the whole NFC thing by a year or three. The programming interface is to send commands over serial to the device such as \u0026ldquo;Authenticate sector N\u0026rdquo;, \u0026ldquo;Read sector N\u0026rdquo;, etc. I\u0026rsquo;ve connected D7 to D2 so that I could use D2 as the interrupt pin to suit my Arduino.\nIt appears to work, in that I can dump sectors from my yubikey and a tap-and-go credit card. The sector trailer parts look valid, and the first few bytes of sector 0 have the device ID (verified by the NFC reader on my phone). I can\u0026rsquo;t seem to read any NDEF information; whether that is due to limitations in the reader, bugs in my code, or my almost zero knowledge about how all this stuff works, I\u0026rsquo;m not sure. Sketch code is over here.\nAs to possible applications, for that I have no real idea either, which is probably why it sat in the parts bin all this time.\n","permalink":"https://bobcopeland.com/blog/2015/12/rfid-reader/","summary":"\u003cp\u003eIn the \u003ca href=\"/blog/2015/11/software-serial-on-the-arduino-ng/\"\u003eprevious installment\u003c/a\u003e, I was messing with the serial library on Arduino to get it to work on the older board. The purpose was this:\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/rfid.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003ePictured is an RFID reader from SparkFun that I picked up years ago and sat in my parts box since then. This RFID reader is intended to read Mifare tags and as such predates the whole NFC thing by a year or three. The programming interface is to send commands over serial to the device such as \u0026ldquo;Authenticate sector N\u0026rdquo;, \u0026ldquo;Read sector N\u0026rdquo;, etc. I\u0026rsquo;ve connected D7 to D2 so that I could use D2 as the interrupt pin to suit my Arduino.\u003c/p\u003e","title":"RFID reader"},{"content":"As mentioned before, I have a really old Arduino, the Arduino NG with an Atmega8 on board. No fancy embedded Linux wifi-enabled SoC on that thing.\nRecently, I found myself doing a bit of yak shaving when I was trying to use a code that was meant for Arduinos of a more recent vintage. And here is what I learned:\nThe Atmega8 does not have the PCICR (which I believe stands for \u0026ldquo;pin change interrupt control\u0026rdquo;) register. This feature allows multiplexing of interrupts so that you can have multiple pins signal the same external interrupt, and the pins that trigger interrupts are programmable. On the Atmega8, you can only use Arduino pins D2 and D3 to directly signal interrupts 0 and 1 respectively.\nSo the device I was trying to use operates over serial, and the supplied code uses the built-in SoftwareSerial bit-banging serial library to talk to it. The SoftwareSerial library attaches an interrupt to the configured Arduino RX pin (device TX) to trigger when it goes low, indicating the start of a transmission from the device. This library was only written with the more configurable chips in mind, so didn\u0026rsquo;t support direct interrupts like on the Atmega8. Google didn\u0026rsquo;t turn up any obvious fixes other than people running into the same compiler error I initially hit:\nerror: 'PCICR' was not declared in this scope.\nIn the end a few short changes are needed to make it work: one to disable digitalPinToPCICR() and related macros (as there is no such register on this device); and another change to attach the proper interrupt inside SoftwareSerial. A patch is here.\nTo debug this, I hooked up the TX side of a USB-serial adapter to the RX pin on the Arduino, ran screen(1) on the computer to control it, and started mashing keys. Until I got the irq triggering working properly, I also monitored the output with a DMM just to make sure the output was going low when I held down a key. A test sketch for that looks like this:\nSoftwareSerial port2(2, 3); void setup() { Serial.begin(9600); port2.begin(9600); Serial.println(\u0026#34;Listening...\u0026#34;); } void loop() { while (port2.available()) { Serial.write(port2.read()); } } It works fine. I\u0026rsquo;ll write about what I was doing with it in some future installment.\n","permalink":"https://bobcopeland.com/blog/2015/11/software-serial-on-the-arduino-ng/","summary":"\u003cp\u003eAs mentioned before, I have a really old Arduino, the Arduino NG with an Atmega8 on board. No fancy embedded Linux wifi-enabled SoC on that thing.\u003c/p\u003e\n\u003cp\u003eRecently, I found myself doing a bit of yak shaving when I was trying to use a code that was meant for Arduinos of a more recent vintage. And here is what I learned:\u003c/p\u003e\n\u003cp\u003eThe Atmega8 does not have the PCICR (which I believe stands for \u0026ldquo;pin change interrupt control\u0026rdquo;) register. This feature allows multiplexing of interrupts so that you can have multiple pins signal the same external interrupt, and the pins that trigger interrupts are programmable. On the Atmega8, you can only use Arduino pins D2 and D3 to directly signal interrupts 0 and 1 respectively.\u003c/p\u003e","title":"Software Serial on the Arduino NG"},{"content":"I signed up for the let\u0026rsquo;s encrypt beta and got my cert setup today. I let my old CA-purchased cert lapse when it came for re-up a couple of years ago, so happy there\u0026rsquo;s soon to be a free alternative.\nEnjoy the HTTPS! (Except for some stray mixed content I need to kill \u0026ndash; sorry for that.)\n","permalink":"https://bobcopeland.com/blog/2015/11/now-mostly-encrypted/","summary":"\u003cp\u003eI signed up for the \u003ca href=\"https://letsencrypt.org\"\u003elet\u0026rsquo;s encrypt beta\u003c/a\u003e and got my cert setup today. I let my old CA-purchased cert lapse when it came for re-up a couple of years ago, so happy there\u0026rsquo;s soon to be a free alternative.\u003c/p\u003e\n\u003cp\u003eEnjoy the HTTPS! (Except for some stray mixed content I need to kill \u0026ndash; sorry for that.)\u003c/p\u003e","title":"Now (mostly) encrypted"},{"content":" Lacking creativity this year, I kind of phoned in the pumpkin carving. We went with regular old triangle-eyed Jack-o-lanterns. It turned out this suited Alex fine: he has decided lately that a certain level of traditionalism is called for. Watching keenly as I cut away bits of pumpkin, he was quick to point out whenever I was doing it the wrong way.\nAnyhow, not wanting Halloween to pass buy without doing something new, I decided I\u0026rsquo;d write a pumpkin light control sketch for Arduino. I have the original board with the Atmega8, and the last time I touched it, the SDK was arduino-0011, which was released about seven years, three domiciles, and one country ago. Since then, I\u0026rsquo;m happy to see that arduino-mk landed in Debian, and the SDK hasn\u0026rsquo;t changed APIs in any noticeable way, so it was easy to get back up and running.\nThe concept is pretty simple: write PWM patterns to an output pin to control the brightness or on/off state of the pumpkin light. I came up with three patterns: fade up and down; random toggle; and sequential stepping. The sketch code is over here.\nOn the hardware side, I used 3 LEDs for each pumpkin, snipped from a roll that I had left over from my cabinet lighting project. The LEDs expect a +12V supply. On the spool, they are wired in series with a 150 ohm resistor and each LED has a 2.7V voltage drop. Powering that would stretch the Arduino, so I used a separate 12V power supply for those, and used the Arduino to switch an NPN transistor corresponding to each light. I soldered the LEDs to some speaker wire and put the rest of the components on an Arduino protoshield inside a box. This was essentially a lunch hour\u0026rsquo;s worth of work to get the basic functionality going, and then a little more time to make it neat.\nThis year Alex and Ian went as Bumblebee and Iron Man respectively (-ENOTPICTURED). Sadly, with store bought costumes \u0026ndash; homemade ones will have to wait until one of us learns to sew something other than kites.\n","permalink":"https://bobcopeland.com/blog/2015/11/arduino-pumpkin-lights/","summary":"\u003cp\u003e\u003ca href=\"https://plus.google.com/+BobCopeland/posts/grY1FiUpNei\"\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/pumpkin-anim.gif\"\u003e\u003c/a\u003e Lacking creativity this year, I kind of phoned in the pumpkin carving. We went with regular old triangle-eyed Jack-o-lanterns. It turned out this suited Alex fine: he has decided lately that a certain level of traditionalism is called for. Watching keenly as I cut away bits of pumpkin, he was quick to point out whenever I was doing it the wrong way.\u003c/p\u003e\n\u003cp\u003eAnyhow, not wanting Halloween to pass buy without doing something new, I decided I\u0026rsquo;d write a pumpkin light control sketch for Arduino. I have the original board with the Atmega8, and the last time I touched it, the SDK was arduino-0011, which was released about seven years, three domiciles, and one country ago. Since then, I\u0026rsquo;m happy to see that arduino-mk landed in Debian, and the SDK hasn\u0026rsquo;t changed APIs in any noticeable way, so it was easy to get back up and running.\u003c/p\u003e","title":"Arduino pumpkin lights"},{"content":"With the addition of per-link signal levels that I added over the weekend, my wmediumd fork leveled up from \u0026ldquo;mere curiosity\u0026rdquo; to \u0026ldquo;potentially useful someday.\u0026rdquo; For the case of mesh, this means you can use signal levels to inform how HWMP will create the mesh paths.\nFor example, as a test I was able to validate this fix, by setting up a virtual 4-node mesh with a bad path and a good path. With the patch reverted, the bad path was almost always selected due to its PREQs being received at the target first. [In actuality, this test will exhibit frequent path swapping because the order in which the PREQs are received is essentially random, a finding in \u0026ldquo;Experimental evaluation of two open source solutions for wireless mesh routing at layer two\u0026rdquo; by Garroppo et al. Wmediumd doesn\u0026rsquo;t show this yet because frames are mostly received and queued in-order. At the time of the patch, I validated it in an actual 15-node mesh.]\nThere are still a couple of things that would be nice to have here. Today, we base the decision on whether a multicast frame is received by the signal level from the transmitter to us and the multicast rate. However, this means that with a low multicast rate, there is basically zero frame loss. In real life, loss happens much more frequently, and so we cannot test the effects of lost path request frames in wmediumd, which is the subject of at least one pending HWMP patch. Another problem is that the current setup works only with static setups; we might be interested in what happens with mobile nodes, for example. For that we\u0026rsquo;d need to be able to change the signal level periodically; how to easily specify that is a bit of a question mark.\n","permalink":"https://bobcopeland.com/blog/2015/09/fake-snrs/","summary":"\u003cp\u003eWith the addition of per-link signal levels that I added over the weekend, my \u003ca href=\"https://github.com/bcopeland/wmediumd\"\u003ewmediumd fork\u003c/a\u003e leveled up from \u0026ldquo;mere curiosity\u0026rdquo; to \u0026ldquo;potentially useful someday.\u0026rdquo; For the case of mesh, this means you can use signal levels to inform how HWMP will create the mesh paths.\u003c/p\u003e\n\u003cp\u003eFor example, as a test I was able to validate \u003ca href=\"https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bc3ce0b0be6b85e738e80ed25b52ad940f34b921\"\u003ethis fix\u003c/a\u003e, by setting up a virtual 4-node mesh with a bad path and a good path. With the patch reverted, the bad path was almost always selected due to its PREQs being received at the target first. [In actuality, this test will exhibit frequent path swapping because the order in which the PREQs are received is essentially random, a finding in \u0026ldquo;Experimental evaluation of two open source solutions for wireless mesh routing at layer two\u0026rdquo; by Garroppo et al. Wmediumd doesn\u0026rsquo;t show this yet because frames are mostly received and queued in-order. At the time of the patch, I validated it in an actual 15-node mesh.]\u003c/p\u003e","title":"Fake SNRs"},{"content":"Wmediumd gained the ability to do a simple contention simulation a while ago. It turned out to be a small change to the existing code: just ensure that any new frames are scheduled after any other queued frames of equal or higher priority from any other station.\nAssuming the simulation is accurate, we might use this to gather some information about different kinds of wireless network topologies. For example: what is the throughput and latency like for a mesh network, as a function of hops?\nThe one sticking point is that it\u0026rsquo;s a bit of a pain to set up a bunch of mesh nodes with hwsim with their own IPs and routing tables. I\u0026rsquo;ve previously scripted this with send-to-self routing, but it\u0026rsquo;s a bit ugly. So I looked into doing this with network namespaces and controlling it all with tmux. The result is this fairly minimal script to launch a number of mesh nodes in a linear toplogy. From there one can easily run ping and iperf to gather some data, as in this chart:\nThis image shows the result, and is in line with measurements that Javier Cardona had done on actual hardware. We can see that throughput is roughly inversely proportional to the number of nodes, while latency is directly proportional.\nThis may seem pretty bad at first, but makes sense when you consider that a radio transceiver can only listen or talk at once \u0026ndash; it is all about radio physics, nothing to do with mesh specifically (which is not to say that mesh has no inefficiencies). Also this level of performance is when all the nodes are in range of each other; in such a case you\u0026rsquo;d be unlikely to have so many hops because the nodes would instead just peer directly with each other. So we might design our networks to avoid many hops, reduce the number of nodes in a given interference area, use fancy phy algorithms to enhance spatial reuse, or use multiple channels.\nMy plan with wmediumd is to use it in a bit more automated fashion to evaluate things like changes to HWMP \u0026ndash; I think if we can identify topologies that people care about then it\u0026rsquo;s a bit stronger to say \u0026ldquo;this change always makes things better\u0026rdquo; if we can show repeatable before-and-after results from wmediumd.\n","permalink":"https://bobcopeland.com/blog/2015/09/tmux-wmediumd/","summary":"\u003cp\u003e\u003ca href=\"https://github.com/bcopeland/wmediumd\"\u003eWmediumd\u003c/a\u003e gained the ability to do a simple contention simulation a while ago. It turned out to be a small change to the existing code: just ensure that any new frames are scheduled after any other queued frames of equal or higher priority from any other station.\u003c/p\u003e\n\u003cp\u003eAssuming the simulation is accurate, we might use this to gather some information about different kinds of wireless network topologies. For example: what is the throughput and latency like for a mesh network, as a function of hops?\u003c/p\u003e","title":"tmux + wmediumd"},{"content":"More updates to speccy pushed to github this weekend. It gained the ability to toggle on-and-off line and scatter plots. Also, it now takes care of enabling spectral scan and then scanning channels (by exec()-ing iw, naughty me) so you can just tell it the device and it does the rest. Code is still ugly but gradually taking shape. There\u0026rsquo;s an animated gif for those that want to see what it currently looks like in operation.\nI settled on (somewhat inefficiently) smoothing the line graph with a centered moving average using a 5-sample window length, which met the strict theoretical basis of \u0026ldquo;it looked kind of right.\u0026rdquo; I did not yet incorporate the time-based plot I was playing with.\nIt could certainly be faster. Profiling shows that the vast majority of time is spent drawing 9-pixel rectangles in Cairo. I suppose that even if Cairo was using an accelerated backend, which I don\u0026rsquo;t believe it is in my case, that this would be something more efficiently done by rendering to a client pixmap anyway. Lots of low-hanging fruit everywhere, but I\u0026rsquo;m resisting the urge to really optimize anything at this early stage.\nAlso yesterday I finally cleaned up the somewhat messy serial port installation on one of my ath10k routers with the help of a drill. These cheap cables work well but do require a bit of attention with the glue gun \u0026ndash; I find the plastic case around the USB port / converter board is always coming un-snapped and falling off otherwise.\n","permalink":"https://bobcopeland.com/blog/2015/09/weekend-updates/","summary":"\u003cp\u003eMore updates to \u003ca href=\"https://github.com/bcopeland/speccy\"\u003especcy\u003c/a\u003e pushed to github this weekend. It gained the ability to toggle on-and-off line and scatter plots. Also, it now takes care of enabling spectral scan and then scanning channels (by exec()-ing iw, naughty me) so you can just tell it the device and it does the rest. Code is still ugly but gradually taking shape. There\u0026rsquo;s an \u003ca href=\"/images/lj/speccy-anim.gif\"\u003eanimated gif\u003c/a\u003e for those that want to see what it currently looks like in operation.\u003c/p\u003e","title":"Weekend updates"},{"content":"This is roughly what I had in mind for the time/frequency plot for my little spectrum visualizer. Time is on the y-axis and frequency on the x-axis. There are some interesting artifacts here, especially on the higher channels. Probably bugs in my implementation, but we\u0026rsquo;ll see as I develop it further.\n","permalink":"https://bobcopeland.com/blog/2015/09/time-vs-frequency/","summary":"\u003cp\u003eThis is roughly what I had in mind for the time/frequency plot for \u003ca href=\"http://github.com/bcopeland/speccy\"\u003emy little spectrum visualizer\u003c/a\u003e. Time is on the y-axis and frequency on the x-axis. There are some interesting artifacts here, especially on the higher channels. Probably bugs in my implementation, but we\u0026rsquo;ll see as I develop it further.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/speccy-time.png\"\u003e\u003c/p\u003e","title":"time vs frequency"},{"content":"I messed around with \u0026ldquo;speccy\u0026rdquo; a bit today to see what I could do with it to make it look slightly nicer. It really needed a grid so one can more easily see the frequencies and power levels. So now it looks like this:\n(This is with iperf running on channel 6 to a nearby AP).\nI have in mind a couple of other visualizations. An obvious one is to show the overall max or average power level rather than a scatter plot. This would be a cleaner display, although there could be co-channel interference sources you wouldn\u0026rsquo;t see that way. Here\u0026rsquo;s a first cut at that:\nI am doing some averaging for multiple (~8) samples with the same subcarrier frequency, but clearly more smoothing is needed. Also I notice that I occasionally get some artifact where all the subcarriers have the exact same power level. Not sure what that is, but it wants filtering.\nAnother interesting visualization would be a scrolling chart of frequency vs time, with power level indicated by pixel intensity. Then you could get an idea of historical changes in the medium. (Oh hey, the neighbors are watching Netflix now.)\nThe code is still an ugly pile of hacks, which it will probably continue to be until I decide just what kind of processing needs doing on the raw samples. Sorry for that.\n","permalink":"https://bobcopeland.com/blog/2015/08/speccy-with-labels/","summary":"\u003cp\u003eI messed around with \u0026ldquo;\u003ca href=\"https://github.com/bcopeland/speccy\"\u003especcy\u003c/a\u003e\u0026rdquo; a bit today to see what I could do with it to make it look slightly nicer. It really needed a grid so one can more easily see the frequencies and power levels. So now it looks like this:\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/speccy2.png\"\u003e\u003c/p\u003e\n\u003cp\u003e(This is with iperf running on channel 6 to a nearby AP).\u003c/p\u003e\n\u003cp\u003eI have in mind a couple of other visualizations. An obvious one is to show the overall max or average power level rather than a scatter plot. This would be a cleaner display, although there could be co-channel interference sources you wouldn\u0026rsquo;t see that way. Here\u0026rsquo;s a first cut at that:\u003c/p\u003e","title":"Speccy with labels"},{"content":"\u0026hellip;is a thing now.\n# iw dev phy#0 Interface wlan0 ifindex 4 wdev 0x1 addr 30:b5:c2:fb:34:d8 type mesh point channel 149 (5745 MHz), width: 80 MHz, center1: 5775 MHz # iperf -c 192.168.1.20 ------------------------------------------------------------ Client connecting to 192.168.1.20, TCP port 5001 TCP window size: 43.8 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.1.21 port 34175 connected with 192.168.1.20 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 148 MBytes 124 Mbits/sec ","permalink":"https://bobcopeland.com/blog/2015/07/vht-mesh/","summary":"\u003cp\u003e\u0026hellip;is a thing now.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e# iw dev\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ephy#0\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    Interface wlan0\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\t\tifindex 4\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\t\twdev 0x1\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\t\taddr 30:b5:c2:fb:34:d8\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\t\ttype mesh point\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\t\tchannel 149 (5745 MHz), width: 80 MHz, center1: 5775 MHz\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e# iperf -c 192.168.1.20\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e------------------------------------------------------------\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eClient connecting to 192.168.1.20, TCP port 5001\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eTCP window size: 43.8 KByte (default)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e------------------------------------------------------------\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  3] local 192.168.1.21 port 34175 connected with 192.168.1.20 port 5001\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[ ID] Interval       Transfer     Bandwidth\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  3]  0.0-10.0 sec   148 MBytes   124 Mbits/sec\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"VHT mesh"},{"content":"In response to my previous post about UART access on the Alfa AWUS036NHA, I got a nice email from Jim Ewing about the DWM-W034, an ath9k_htc device that apparently is embedded inside HDTVs and readily available for $10. He found the TX/RX pins on the board, and it looks like it would be a bit easier to put a socket on one of these compared to the Alfa since there are no pesky chips nearby.\nWith his permission, and so that this information doesn\u0026rsquo;t get lost to the sands of time, here\u0026rsquo;s the pic he sent me. Enjoy!\n","permalink":"https://bobcopeland.com/blog/2015/05/dwm-w034-uart/","summary":"\u003cp\u003eIn response to my \u003ca href=\"/blog/2015/05/reserialized/\"\u003eprevious post\u003c/a\u003e about UART access on the \u003ca href=\"https://wikidevi.com/wiki/ALFA_Network_AWUS036NHA\"\u003eAlfa AWUS036NHA\u003c/a\u003e, I got a nice email from Jim Ewing about the DWM-W034, an ath9k_htc device that apparently is embedded inside HDTVs and readily available for $10. He found the TX/RX pins on the board, and it looks like it would be a bit easier to put a socket on one of these compared to the Alfa since there are no pesky chips nearby.\u003c/p\u003e","title":"DWM-W034 UART"},{"content":"I got a shiny new device today and the first thing I did was crack it open and heat it to 680 degrees. A good feeling.\nThe device in question is an ath9k_htc USB wifi dongle. A colleague suggested this one has an easy to access UART because they brought out the TX/RX pins out from the SoC to dedicated pads. He and I apparently have different definitions for \u0026ldquo;easy.\u0026rdquo; Unlike the TP-Link routers which give you through-holes to work with, these are simply SMT pads, and they are tiny in comparison. My soldering iron tip is at least double the size of the pad. Yes, it is somewhat better than trying to solder directly to the pins on the SoC, but not by a whole lot.\nAs it happens, this is my first attempt at soldering SMT. What could go wrong?\nBecause the pads are small I used some wire-wrap wire (30 gauge? All I know is that it\u0026rsquo;s at least two stops smaller than the smallest hole on my wire stripper: getting insulation off was \u0026ldquo;fun\u0026rdquo;). During my comedic attempts at getting the wires stuck in the right places, I managed to completely obliterate one of the two pads. Luckily, the one I screwed up was the RX pin, which I don\u0026rsquo;t really need or care about. Having got the TX and ground wires (badly) soldered in place, I made a some circumspect passes with the magnifying glass and continuity tester to convince myself there were no shorts.\nEven so, I am as surprised as you are that it actually worked when I turned it on the first time. And the wifi still works too.\n==\u0026gt;[cUSB_REQ_COMP]: 0x%08x VendorCmd: DownloadComplete! 1. usb only!! A_WDT_INIT() ==\u0026gt;warm start\u0026lt;== ALLOCRAM start 0x50d80c size 106484 Enable Tx Stream mode: 0x367 USB mode: 0xf [+++Magpie_init] [+++VBUF_init(100)] [+++VBUF_init(100)] : Attaching the driver : Vendor id 0x168c Dev id 0x24 ath_pci_probe 24 ath_hal = 0x00510928 =\u0026gt;[dnQ] 0x0050f288 [ =\u0026gt;[upQ] 0x0050f264 [ =\u0026gt;[hp dnQ] 0x0050f240 [ =\u0026gt;[mp dnQ] 0x0050f21c [Tgt running] ","permalink":"https://bobcopeland.com/blog/2015/05/reserialized/","summary":"\u003cp\u003eI got a shiny new device today and the first thing I did was crack it open and heat it to 680 degrees. A good feeling.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/ath9k-htc.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eThe device in question is an ath9k_htc USB wifi dongle. A colleague suggested this one has an easy to access UART because they brought out the TX/RX pins out from the SoC to dedicated pads. He and I apparently have different definitions for \u0026ldquo;easy.\u0026rdquo; Unlike the TP-Link routers which give you through-holes to work with, these are simply SMT pads, and they are tiny in comparison. My soldering iron tip is at least double the size of the pad. Yes, it is somewhat better than trying to solder directly to the pins on the SoC, but not by a whole lot.\u003c/p\u003e","title":"Reserialized"},{"content":"I\u0026rsquo;ve had my ath10k AP (TP-Link Archer C7 v2) since last October or so, with the goal of having a VHT-capable device with which to test (currently non-existent) VHT mesh. Unfortunately, for nearly all of that time, I\u0026rsquo;ve been stuck on a firmware crash shortly after bringing up the device. Not that I\u0026rsquo;ve spent a whole lot of time on it, but there\u0026rsquo;s only so much one can do when getting to the point of \u0026ldquo;firmware crashes and it has something to do with peers but that\u0026rsquo;s all I know and I don\u0026rsquo;t have the time, tools, or code to dig deeper.\u0026rdquo;\nI think there\u0026rsquo;s some variant on rubber duck debugging where you complain publicly about some issue, and doing that makes you think about it more, and then the way forward is magically revealed. That, plus some helpful hints from the residents of the ath10k ML, got me over the hump, so now it works!\nNext up, finding a spare mini PCIe slot for the other ath10k device I have, and getting the VHT bits done\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2015/04/mesh-on-ath10k/","summary":"\u003cp\u003eI\u0026rsquo;ve had my ath10k AP (TP-Link Archer C7 v2) since last October or so, with the goal of having a VHT-capable device with which to test (currently non-existent) VHT mesh. Unfortunately, for nearly all of that time, I\u0026rsquo;ve been stuck on a firmware crash shortly after bringing up the device. Not that I\u0026rsquo;ve spent a whole lot of time on it, but there\u0026rsquo;s only so much one can do when getting to the point of \u0026ldquo;firmware crashes and it has something to do with peers but that\u0026rsquo;s all I know and I don\u0026rsquo;t have the time, tools, or code to dig deeper.\u0026rdquo;\u003c/p\u003e","title":"mesh on ath10k"},{"content":"My lowly internet outpost wound up at the top of /r/programming on Reddit over Easter weekend due to my silly goto-in-bash hack. It turns out that that one page is probably the most searched-for out of anything on my website. There are a lot of frustrated shell programmers out there.\nRegarding the critiques from the discussion, comments of the form \u0026ldquo;you\u0026rsquo;ve an X/Y problem\u0026rdquo; were least interesting to me. Yes, I know about Makefiles. Sometimes it is fun to do something different, which is known to be far from a best practice, just because one can.\nComments that improved my sed syntax, or provided a historical context, were most interesting. For the record: no, I didn\u0026rsquo;t intend to use branching in sed as a self-referential nod to the topic du jour, but I like pretending that I was that clever instead of the reality, which is that I just didn\u0026rsquo;t know the right sed magic. So, I\u0026rsquo;ll keep the branching.\nSee if you can spot the traffic spike:\n","permalink":"https://bobcopeland.com/blog/2015/04/on-reddit/","summary":"\u003cp\u003eMy lowly internet outpost wound up at the top of \u003ca href=\"http://www.reddit.com/r/programming/comments/31ei6h/i_wanted_to_use_goto_in_a_bash_script_ended_up/\"\u003e/r/programming\u003c/a\u003e on Reddit over Easter weekend due to my silly \u003ca href=\"/2012/10/goto-in-bash\"\u003egoto-in-bash\u003c/a\u003e hack. It turns out that that one page is probably the most searched-for out of anything on my website. There are a lot of frustrated shell programmers out there.\u003c/p\u003e\n\u003cp\u003eRegarding the critiques from the discussion, comments of the form \u0026ldquo;you\u0026rsquo;ve an X/Y problem\u0026rdquo; were least interesting to me. Yes, I know about Makefiles. Sometimes it is fun to do something different, which is known to be far from a best practice, just because one can.\u003c/p\u003e","title":"On Reddit"},{"content":" I have this more-expensive-than-my-car hunk of metal on loan for the next few weeks. It\u0026rsquo;s a pretty far cry from the old Tektronix analog scopes I trained on back in the day (which, at the time, were also much more expensive than my then-primary mode of transportation: shoes). As a warmup exercise, I hooked it up to the output of my guitar amplifier and played an A, which you can see pictured. You can also see that I\u0026rsquo;m apparently tuned down a half-step as the frequency measured on the scope is about a semitone shy of 220 Hz.\nThis was a neat teaching opportunity for my four year-old: I showed Alex visually that sound is just made up of different kinds of waves. Later at bathtime he connected that with the physical waves he was making in the tub: \u0026ldquo;Just like music!\u0026rdquo; he said.\n","permalink":"https://bobcopeland.com/blog/2015/03/scoped/","summary":"\u003cp\u003e\u003ca href=\"https://www.flickr.com/photos/bluesterror/16748525650\" title=\"G# by bluesterror, on Flickr\"\u003e\u003cimg alt=\"G#\" loading=\"lazy\" src=\"https://farm9.staticflickr.com/8709/16748525650_d5a2d34877_m.jpg\"\u003e\u003c/a\u003e I have this more-expensive-than-my-car hunk of metal on loan for the next few weeks. It\u0026rsquo;s a pretty far cry from the old Tektronix analog scopes I trained on back in the day (which, at the time, were also much more expensive than my then-primary mode of transportation: shoes). As a warmup exercise, I hooked it up to the output of my \u003ca href=\"/blog/2012/09/amped/\"\u003eguitar amplifier\u003c/a\u003e and played an A, which you can see pictured. You can also see that I\u0026rsquo;m apparently tuned down a half-step as the frequency measured on the scope is about a semitone shy of 220 Hz.\u003c/p\u003e","title":"Scoped"},{"content":" My ath10k-based router now has serial headers, after I managed to crash it a few times over the weekend while testing out some patches. Thank you, TP-Link, for making the pins so easily accessible, to the extent that it\u0026rsquo;s easier to whip out the soldering iron than remind oneself how to setup kexec/kdump.\nI do need to get one of these nifty usb-serial cables so that the JTAG ribbon cable + FTDI-breakout-on-a-breadboard monstrosity can go back into the parts bin, but it is working fine otherwise. [The pictured 7-segment display and TTL chips are just misdirection, by the way.]\nThere was a momentary bit of confusion on my part when the console showed the router stuck in a loop requesting recovery firmware over TFTP instead of the normal boot process\u0026hellip;until I realized that the reset button was wedged in the depressed state by the case. Whoops.\n","permalink":"https://bobcopeland.com/blog/2015/02/serialized/","summary":"\u003cp\u003e\u003ca href=\"https://www.flickr.com/photos/bluesterror/16395680778\" title=\"router += serial by bluesterror, on Flickr\"\u003e\u003cimg alt=\"router += serial\" loading=\"lazy\" src=\"https://farm9.staticflickr.com/8574/16395680778_423e50c049_m.jpg\"\u003e\u003c/a\u003e My ath10k-based router now has serial headers, after I managed to crash it a few times over the weekend while testing out some patches. Thank you, TP-Link, for making the pins so easily accessible, to the extent that it\u0026rsquo;s easier to whip out the soldering iron than remind oneself how to setup kexec/kdump.\u003c/p\u003e\n\u003cp\u003eI do need to get one of these \u003ca href=\"http://www.aliexpress.com/item/Free-shipping-New-USB-to-TTL-Serial-Cable-Adapter-FTDI-Chipset-PL2303HX-Cable-Computer-Cable/1937177626.html\"\u003enifty usb-serial cables\u003c/a\u003e so that the JTAG ribbon cable + FTDI-breakout-on-a-breadboard monstrosity can go back into the\nparts bin, but it is working fine otherwise. [The pictured 7-segment display and TTL chips are just misdirection, by the way.]\u003c/p\u003e","title":"serialized"},{"content":"Until recently, my vhost was running some ancient Ubuntu that was probably vulnerable to all manner of things, so I\u0026rsquo;ve finally upgraded it to a recent Debian release. A few things are still offline (including the blog theme) so there may be some broken links here and there for a few days until I get around to restoring everything.\nI believe I\u0026rsquo;m going to leave comments off permanently going forward, there\u0026rsquo;s just too much spam even with it moderated, to the extent that I almost never bother to go through them. Comments out-of-band are always welcome, of course.\n","permalink":"https://bobcopeland.com/blog/2015/01/website-rebuilt/","summary":"\u003cp\u003eUntil recently, my vhost was running some ancient Ubuntu that was probably vulnerable to all manner of things, so I\u0026rsquo;ve finally upgraded it to a recent Debian release. A few things are still offline (including the blog theme) so there may be some broken links here and there for a few days until I get around to restoring everything.\u003c/p\u003e\n\u003cp\u003eI believe I\u0026rsquo;m going to leave comments off permanently going forward, there\u0026rsquo;s just too much spam even with it moderated, to the extent that I almost never bother to go through them. Comments out-of-band are always welcome, of course.\u003c/p\u003e","title":"website rebuilt"},{"content":"The ath9k and later chips support a spectral scan feature for measuring channel occupancy. I played with it for the first time last week over the Thanksgiving holiday. Simon Wunderlich\u0026rsquo;s FFT_eval is a great tool to look at the captured RF spectrum, but I found myself wanting something more real-time, and the various other things I found on github with that aim didn\u0026rsquo;t work for me. So, this too-ugly-to-live python hack happened.\nIt turns out that the samples are rather coarse and infrequent, so the result is not as dynamic as I\u0026rsquo;d hoped. However, I made the pretty heatmap below with a few hours\u0026rsquo; worth of samples, and although I didn\u0026rsquo;t yet label frequencies, you can see a couple of channels in active use. There\u0026rsquo;s still plenty of room for improvement in the visualization.\n","permalink":"https://bobcopeland.com/blog/2014/12/spectrum/","summary":"\u003cp\u003eThe ath9k and later chips support a spectral scan feature for measuring channel occupancy. I played with it for the first time last week over the Thanksgiving holiday. Simon Wunderlich\u0026rsquo;s \u003ca href=\"https://github.com/simonwunderlich/FFT_eval\"\u003eFFT_eval\u003c/a\u003e is a great tool to look at the captured RF spectrum, but I found myself wanting something more real-time, and the various other things I found on github with that aim didn\u0026rsquo;t work for me. So, this \u003ca href=\"https://github.com/bcopeland/speccy\"\u003etoo-ugly-to-live python hack\u003c/a\u003e happened.\u003c/p\u003e","title":"Spectrum"},{"content":"My particular first world problem: it\u0026rsquo;s too easy to lose the cleaning disk that came with my coffee machine.\nThe item in question is just a plastic disk with a certain barcode. As I and many others have found, it is easy to print out a new barcode, tape the barcode to a used milk disk, and you are back up and running. Here is my contribution: said barcode in a PDF file ready for printing on Avery 5167 return address label sheets. Then, when you inevitably accidentally throw away your stand-in disk (which we have done a half dozen times so far), just peel off another label after your next latte.\nIf you have different label sheets, I recommend glabels3 to set up the template. The barcode value is \u0026ldquo;07879\u0026rdquo; using 2-of-5 interleaving (GNU barcode backend can generate these).\nUpdate (03/2024):\nLong ago this Tassimo bit the dust and it got replaced, bringing with it a new disk with a different barcode. Since this page still gets a lot of search traffic, here is an image of what that cleaning disk looks like in case any intrepid visitors need to reproduce it:\n","permalink":"https://bobcopeland.com/blog/2014/11/fake-tassimo-cleaning-disk/","summary":"\u003cp\u003eMy particular first world problem: it\u0026rsquo;s too easy to lose the cleaning disk that came with my coffee machine.\u003c/p\u003e\n\u003cp\u003eThe item in question is just a plastic disk with a certain barcode. As I and many others have found, it is easy to \u003ca href=\"http://jeffdechambeau.com/diy-tassimo-cleaner-disc-replacement.html\"\u003eprint out a new barcode\u003c/a\u003e, tape the barcode to a used milk disk, and you are back up and running. Here is my contribution: said \u003ca href=\"/srcs/tassimo-cleaner.pdf\"\u003ebarcode in a PDF file\u003c/a\u003e ready for printing on Avery 5167 return address label sheets. Then, when you inevitably accidentally throw away your stand-in disk (which we have done a half dozen times so far), just peel off another label after your next latte.\u003c/p\u003e","title":"Fake Tassimo Cleaning Disk"},{"content":" I believe I added just enough blog posts this year that there are not two years\u0026rsquo; Halloween posts on the front page at the same time. That would be sad.\nAlex told me in September that October was his favorite month of the year, \u0026ldquo;because Halloween.\u0026rdquo; And every day for the last few weeks, he would ask, \u0026ldquo;is it Halloween today?\u0026rdquo; I can only hope that this year\u0026rsquo;s candy crawl met his expectations. He went as Captain America, a decision that was entirely his own. Ian went as a penguin, or at least he wore parts of his penguin costume throughout the night, rarely all at once.\nFor jack-o-lanterns we went with a space theme this year: a space shuttle on one and Kodos on the other. I tried etching rather than carving but I couldn\u0026rsquo;t get the technique down, so I wound up carving for the most part. One fun addition, albeit short-lived, was the use of sparklers instead of LED candles as lighting. Next year we\u0026rsquo;ll use rocket engines.\n","permalink":"https://bobcopeland.com/blog/2014/11/halloween-2014-ed/","summary":"\u003cp\u003e\u003ca href=\"https://www.flickr.com/photos/bluesterror/15097794143\" title=\"2014 Halloween Costumes by bluesterror, on Flickr\"\u003e\u003cimg alt=\"2014 Halloween Costumes\" loading=\"lazy\" src=\"https://farm4.staticflickr.com/3953/15097794143_822df20b4d_n.jpg\"\u003e\u003c/a\u003e I believe I added just enough blog posts this year that there are not two years\u0026rsquo; Halloween posts on the front page at the same time. That would be sad.\u003c/p\u003e\n\u003cp\u003eAlex told me in September that October was his favorite month of the year, \u0026ldquo;because Halloween.\u0026rdquo; And every day for the last few weeks, he would ask, \u0026ldquo;is it Halloween today?\u0026rdquo; I can only hope that this year\u0026rsquo;s candy crawl met his expectations. He went as Captain America, a decision that was entirely his own. Ian went as a penguin, or at least he wore parts of his penguin costume throughout the night, rarely all at once.\u003c/p\u003e","title":"Halloween, 2014 ed."},{"content":"My wmediumd rewrite is a bit further along thanks to getting a few hours to hack on it this weekend. It can now accurately simulate throughput between a pair of radios using legacy rates. For example, if we set the SNR between two devices to 20 dB, then they can communicate at a nominal 54 mbps rate, yielding about 26 Mbps achieved in iperf:\n[ 3] 0.0-10.0 sec 31.2 MBytes 26.1 Mbits/sec At 15 dB, we can send between 24 and 36 Mbps nominal rates, which yields:\n[ 3] 0.0-10.1 sec 21.0 MBytes 17.5 Mbits/sec Note that achieved throughput is quite a bit lower than nominal, as in real life \u0026ndash; if aggregation were implemented then they would be closer.\nThe basic architecture is pretty simple: frames are queued on a per-sender management or data queue depending on type, and delivery time is computed based on whether or not there is loss and the contention window parameters of the queues. A timerfd is used to schedule reporting of frame delivery back to the kernel at appropriate times. The delivery time does not take into account actual contention, although this could be done in principle by looking at all the queued frames for all stations.\nI haven\u0026rsquo;t really decided what to do about configuration. I stripped out the jamming and probability matrix configurations, as I feel like doing things on a signal level basis are simpler. But at this point there\u0026rsquo;s no real way to specify signal levels either (other than hardcoding), and some scenarios probably want something dynamic (e.g. mobile stations).\nChanges are in my wmediumd master branch. Unfortunately, I won\u0026rsquo;t have much time to work on this for the next two months, but patches for the many TODOs are welcome.\n","permalink":"https://bobcopeland.com/blog/2014/11/functional-bitrate-sim/","summary":"\u003cp\u003eMy wmediumd rewrite is a bit further along thanks to getting a few hours to hack on it this weekend. It can now accurately simulate throughput between a pair of radios using legacy rates. For example, if we set the SNR between two devices to 20 dB, then they can communicate at a nominal 54 mbps rate, yielding about 26 Mbps achieved in iperf:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  3]  0.0-10.0 sec  31.2 MBytes  26.1 Mbits/sec\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eAt 15 dB, we can send between 24 and 36 Mbps nominal rates, which yields:\u003c/p\u003e","title":"functional bitrate sim"},{"content":"Thanks to some inquries on linux-wireless, I took a look at wmediumd recently. The code could use a bit of work, and there are some features I\u0026rsquo;ve been meaning to add since forever, so I started gutting it with an eye towards sprucing up the architecture and feature set (changes can be found here).\nOne of the questions from the mailing list was whether wmediumd adds a lot of overhead compared to mac80211_hwsim. It is of course doing more work, with additional memory copies, context switches, etc \u0026ndash; but is it enough to make wmediumd unworkable?\nSo I did a quick TCP iperf test on my laptop with an open mesh, and get the following numbers.\nhwsim without wmediumd: [ 3] 0.0-10.0 sec 1.36 GBytes 1.16 Gbits/sec hwsim with wmediumd: [ 3] 0.0-10.0 sec 1.27 GBytes 1.09 Gbits/sec It looks like wmediumd is doing fine. This is with monitors running, the non-monitor case does about twice that. Actually, I think this is a bit lower than it should be, but considering both cases are close, and a good deal faster than your typical wifi connection, it\u0026rsquo;s probably good enough for some level of bandwidth simulation.\n","permalink":"https://bobcopeland.com/blog/2014/09/wmediumd-speed-test/","summary":"\u003cp\u003eThanks to some inquries on linux-wireless, I took a look at wmediumd recently. The code could use a bit of work, and there are some features I\u0026rsquo;ve been meaning to add since forever, so I started gutting it with an eye towards sprucing up the architecture and feature set (changes can be found \u003ca href=\"https://github.com/bcopeland/wmediumd/tree/add_per_model\"\u003ehere\u003c/a\u003e).\u003c/p\u003e\n\u003cp\u003eOne of the questions from the mailing list was whether wmediumd adds a lot of overhead compared to mac80211_hwsim. It is of course doing more work, with additional memory copies, context switches, etc \u0026ndash; but is it enough to make wmediumd unworkable?\u003c/p\u003e","title":"wmediumd speed test"},{"content":"Continuing where I left off with my OpenWRT mesh nodes, after installing the OS, the next step is to get a mesh-enabled userspace on them.\nOne can use iw to create an open mesh, and the authsae daemon for secure mesh, and OpenWRT already ships both of those, so just installing those packages is really all that is required.\nHowever, I\u0026rsquo;m currently working on a patchset to add mesh support to wpa_supplicant, which could be useful for platforms where wpa_s is already present and running yet another daemon just for secure mesh is unpalatable. Here\u0026rsquo;s the recipe I\u0026rsquo;m using to keep the latest version on the device and use it for day-to-day activities.\nSince OpenWRT can use git as a package source and already does so for hostapd, building a custom wpa_supplicant is mainly a matter of just changing the git repository url and config. I made the following changes in the package/network/services/hostapd directory:\ndiff --git a/package/network/services/hostapd/Makefile b/package/network/services/host index 6872742..5985339 100644 --- a/package/network/services/hostapd/Makefile +++ b/package/network/services/hostapd/Makefile @@ -10,10 +10,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=hostapd PKG_VERSION:=2014-06-03 PKG_RELEASE:=1 -PKG_REV:=84df167554569af8c87f0a8ac1fb508192417d8e +PKG_REV:=prepare-submit-v12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=git://w1.fi/srv/git/hostap.git +PKG_SOURCE_URL:=https://github.com/cozybit/wpa_supplicant.git PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_VERSION:=$(PKG_REV) PKG_SOURCE_PROTO:=git diff --git a/package/network/services/hostapd/files/wpa_supplicant-full.config b/packa index bbfaa73..4d9e00e 100644 --- a/package/network/services/hostapd/files/wpa_supplicant-full.config +++ b/package/network/services/hostapd/files/wpa_supplicant-full.config @@ -407,3 +407,9 @@ CONFIG_NO_RANDOM_POOL=y NEED_80211_COMMON=y CONFIG_IBSS_RSN=y + +CONFIG_AP=y +CONFIG_P2P=y +CONFIG_TDLS=y +CONFIG_SAE=y +CONFIG_MESH=y (Offhand, I don\u0026rsquo;t know if P2P and TDLS are really required, but as it matches my existing config, we\u0026rsquo;ll go with that.)\nYou\u0026rsquo;ll also need to enable CONFIG_WPA_SUPPLICANT_OPENSSL=y in the OpenWRT menuconfig in order for SAE to link properly.\nRebuilding from scratch looks like this:\nrm dl/hostapd-*.tar.bz2 make package/hostapd/{download,prepare,clean,compile,install} V=s Once built, I have a simple script which copies over the bin/x86_64/packages/{hostapd*,wpa-s*} files and then runs opkg install on each of the nodes.\nTo start the mesh, I use the following script:\n#!/bin/bash pubip=`ip route get 8.8.8.8 | awk \u0026#39;NR==1 {print $NF}\u0026#39;` last8=`echo $pubip | awk -F . \u0026#39;{print $4}\u0026#39;` meship=10.10.1.$last8 iface=wlan0 cat\u0026lt;\u0026lt;__EOM \u0026gt; wpa_s.conf network={ ssid=\u0026#34;your-meshid-here\u0026#34; mode=5 frequency=2412 key_mgmt=SAE psk=\u0026#34;your-pw-here\u0026#34; } __EOM ip addr flush $iface ip link set $iface down iw dev $iface set type mp ip link set $iface up ip addr add $meship/24 dev $iface killall wpa_supplicant wpa_supplicant -dd -i $iface -c wpa_s.conf \u0026gt;wpa_s.log 2\u0026gt;\u0026amp;1 \u0026amp; In response to the previous blog post, Johannes Berg pointed out that running nfsroot and PXE booting these devices would be even easier than futzing with USB sticks and copying binaries back and forth. Unfortunately, the BIOS on these machines doesn\u0026rsquo;t appear to support netboot, and at least for now, I can\u0026rsquo;t be bothered to figure out how to do it from within grub. At any rate, I find this setup makes for a fairly painless compile / deploy / test cycle.\n","permalink":"https://bobcopeland.com/blog/2014/09/wpas-mesh/","summary":"\u003cp\u003eContinuing where I left off with \u003ca href=\"/blog/2014/07/zotac-openwrt/\"\u003emy OpenWRT mesh nodes\u003c/a\u003e, after installing the OS, the next step is to get a mesh-enabled userspace on them.\u003c/p\u003e\n\u003cp\u003eOne can use iw to create an open mesh, and the authsae daemon for secure mesh, and OpenWRT already ships both of those, so just installing those packages is really all that is required.\u003c/p\u003e\n\u003cp\u003eHowever, I\u0026rsquo;m currently working on a \u003ca href=\"https://github.com/cozybit/wpa_supplicant/tree/prepare-submit-v12\"\u003epatchset\u003c/a\u003e to add mesh support to wpa_supplicant, which could be useful for platforms where wpa_s is already present and running yet another daemon just for secure mesh is unpalatable. Here\u0026rsquo;s the recipe I\u0026rsquo;m using to keep the latest version on the device and use it for day-to-day activities.\u003c/p\u003e","title":"wpas mesh"},{"content":" The Zotac NM10-ITX is a mini-ITX motherboard, which in my configuration has a 1.66 GHz Atom D510 on board, 8 GB SSD, 2 GB ram, and a pair of 2x2 ath9k devices. I wound up with a few of these boxes as a mesh testbed due to my work with Cozybit. Until recently, they ran distro11s, which is basically Debian with some mesh/wireless utilities and some custom init scripts thrown on top. I was looking to re-image them, and I believe distro11s is not actively maintained. The boxes are beefy enough to run unmodified Debian, but OpenWRT has various niceties when building all things wireless from source, and I might like to run the same setup on more constrained devices, so I went with that.\nBuilding OpenWRT from git is a rather simple affair [1]. In my case, I made a few trips through make kernel_menuconfig to get the right config for a properly booting kernel (namely, CONFIG_ATA_PIIX, CONFIG_INPUT_EVDEV, CONFIG_USB_HID, CONFIG_HID_GENERIC, and CONFIG_R8169 were needed for functional disk, keyboard, and network on boot). I also customized the network setup via files/etc/config/network so that eth0 would come up with DHCP rather than a fixed IP at 192.168.1.1.\nOnce built, one needs a way to copy the OpenWRT image onto the drive. Enter Bootable USB Stick.\nI recently procured a speedy, spacious USB stick in order to run a sizeable VM on my disk-space-poor laptop. As I already had an ext4 partition on the USB stick, making it into a bootable rescue/installer OS was mostly a matter of debootstrap [2]. I gave it a user account, put my ssh keys on it, and also configured it to start up with DHCP on the first interface. Among other things, that means linking /etc/udev/rules.d/70-persistent-net.rules to /dev/null so that, as the rescue OS is booted on multiple machines, the first NIC remains named eth0.\nOn top of the base install, I copied the OpenWRT combined disk image onto the stick. Imaging a new machine then involves booting off the USB drive, overwriting the main block device with the disk image, and then resizing the root partition to use the full drive:\n#!/bin/bash gzip -dc /home/bob/openwrt-x86_64-combined-ext4.img.gz \u0026gt; /dev/sda p2start=`sfdisk -d /dev/sda | grep sda2 | awk \u0026#39;{print $4}\u0026#39; | sed -e \u0026#34;s/,//\u0026#34;` cat\u0026lt;\u0026lt;__EOM__ | fdisk /dev/sda d 2 n p 2 $p2start w __EOM__ resize2fs /dev/sda2 # may customize root image here for each device by mounting it, etc. You can build disk images that match your disk size and skip repartitioning and resize2fs, but in the case that the disk is large (like mine), zero-filling all the unused space is a big waste of time. I\u0026rsquo;m sure there is a smart way to use sparse images to overcome this, but fdisk/resize2fs is the simplest thing that works for me.\nSince I have my local DHCP server set up to assign known addresses and DNS names to these machines based on their MAC address, I can do the installs without a console on each machine: plug in the stick, reboot, ssh into it when it comes up, run my imaging script, shutdown and pull the stick. Easy!\n","permalink":"https://bobcopeland.com/blog/2014/07/zotac-openwrt/","summary":"\u003cp\u003e\u003ca href=\"https://www.flickr.com/photos/bluesterror/14762941116\" title=\"ZOTAC! by bluesterror, on Flickr\"\u003e\u003cimg alt=\"ZOTAC!\" loading=\"lazy\" src=\"https://farm3.staticflickr.com/2917/14762941116_b64ca2c3e3_m.jpg\"\u003e\u003c/a\u003e The Zotac NM10-ITX is a mini-ITX motherboard, which in my configuration has a 1.66 GHz Atom D510 on board, 8 GB SSD, 2 GB ram, and a pair of 2x2 ath9k devices. I wound up with a few of these boxes as a mesh testbed due to my work with Cozybit. Until recently, they ran \u003ca href=\"https://github.com/cozybit/open80211s/wiki/distro11s\"\u003edistro11s\u003c/a\u003e, which is basically Debian with some mesh/wireless utilities and some custom init scripts thrown on top. I was looking to re-image them, and I believe distro11s is not actively maintained. The boxes are beefy enough to run unmodified Debian, but OpenWRT has various niceties when building all things wireless from source, and I might like to run the same setup on more constrained devices, so I went with that.\u003c/p\u003e","title":"Zotac OpenWRT"},{"content":" In case you want to know what the inside of a Samsung Galaxy Tab 3.0 looks like, I propose the following experiment: unplug one, and let it sit unused and un-powered for two months. You will then find it in the state where disconnecting and reconnecting the battery is required to get it to charge again. I am not making this up. Oh, and opening it is pretty tricky even with the proper plastic tools to do so. Since I have two of them, that\u0026rsquo;s how I lost thirty minutes of my life on Saturday.\nAs for why I have two: this particular model has a Marvell SoC inside, and the wireless SD8787 peripheral can be used with the upstream cfg80211-based mwifiex driver. For cozybit, I helped write an alternative mac80211 driver that can run mesh. It was a little slower and more power hungry than mwifiex, but in addition to being mesh/ibss/AP capable, had some nice-for-development features like SDIO tracing and an nl80211-testmode interface that could run firmware commands from userspace, upon which we built some test scaffolding. You can get the code for that driver today, but development is pretty much at a dead end because we needed to extend the firmware for host-based operation, and there will probably never be a redistributable firmware at this point.\nI\u0026rsquo;d love to have an open firmware for the device, but as I have seen and touched the NDA encumbered firmware, it\u0026rsquo;s unlikely that I can have any hand in bringing that about.\n","permalink":"https://bobcopeland.com/blog/2014/06/tablet-guts/","summary":"\u003cp\u003e\u003ca href=\"https://www.flickr.com/photos/bluesterror/14211434628\" title=\"Tablet guts by bluesterror, on Flickr\"\u003e\u003cimg alt=\"Tablet guts\" loading=\"lazy\" src=\"https://farm4.staticflickr.com/3908/14211434628_9eb41c2698_m.jpg\"\u003e\u003c/a\u003e In case you want to know what the inside of a Samsung Galaxy Tab 3.0 looks like, I propose the following experiment: unplug one, and let it sit unused and un-powered for two months. You will then find it in the state where disconnecting and reconnecting the battery is required to get it to charge again. I am not making this up. Oh, and opening it is pretty tricky even with the proper plastic tools to do so. Since I have two of them, that\u0026rsquo;s how I lost thirty minutes of my life on Saturday.\u003c/p\u003e","title":"Tablet guts"},{"content":"As a sometime wireless hacker, it\u0026rsquo;s a bit embarrassing to admit that I\u0026rsquo;ve had the factory firmware on my wifi router all this time, but when I first tried OpenWrt on it, ath9k was only a few months old and dropped connections all the time. Thus, I made do with the factory install but ran many of the essential services (dns, dhcp, tftp, etc) from my Linux workstation. And life continued apace.\nAfter a recent network upgrade, I found I could no longer make my router understand ipv6, and so it was time to put the original firmware to pasture. In the intervening years, ath9k grew up, so I took another try with OpenWrt. The install took about 20 minutes, most of which was configuring the firewall and copying my existing dnsmasq config into a uci-friendly format. Everything works great and my ipv6 is back. Nice job, all involved!\nI suppose I could now eat even more dogfood by running a mesh interface on one of the radios. In the past, I\u0026rsquo;ve tinkered with mesh as a wireless distribution system, but I don\u0026rsquo;t have much of a use for that currently with every room in the new place being wired. Perhaps my backyard could use expanded coverage?\n","permalink":"https://bobcopeland.com/blog/2014/05/router/","summary":"\u003cp\u003eAs a sometime wireless hacker, it\u0026rsquo;s a bit embarrassing to admit that I\u0026rsquo;ve had the factory firmware on my wifi router all this time, but when I first tried OpenWrt on it, ath9k was only a few months old and dropped connections all the time. Thus, I made do with the factory install but ran many of the essential services (dns, dhcp, tftp, etc) from my Linux workstation. And life continued apace.\u003c/p\u003e","title":"++router"},{"content":"Or, how I read parts of the fine manual.\nYesterday, after spending way too much time trying to get find(1) to exclude vim swapfiles, I finally had it with them cluttering up my work directories. As is usually the case when vim triggers an itch, I thought, \u0026ldquo;there must be a setting for that,\u0026rdquo; and lo, there was.\nset directory=~/.vimswap//\nMake that directory and all the swap files go there instead. The trailing double slashes mean the swap files get named in such a way as to avoid conflicts.\nHere are some other things added to my vimrc over the last year or so.\nShow whitespace issues as spelling mistakes:\nmatch SpellBad /s+$| +zet/\nI used to always set my windows to 80 columns, but then I started using \u0026lsquo;set number\u0026rsquo; and then all of that went out the window, so to speak. So now I do this to show where wrapping needs to happen:\nset colorcolumn=80\nThis hack is kind of neat, it shows +/- change markers on the edge, based on git changes in your working copy:\nhttps://github.com/airblade/vim-gitgutter\n(To make it less intrusive, I added highlight clear SignColumn.)\nOnce upon a time, I had a really complicated macro to search up the directory hierarchy looking for tags files. It turns out vim already does that if you add a semicolon in there (:help file-searching):\nset tags=./tags;\n","permalink":"https://bobcopeland.com/blog/2014/05/vim-cheat-codes/","summary":"\u003cp\u003eOr, how I read parts of the fine manual.\u003c/p\u003e\n\u003cp\u003eYesterday, after spending way too much time trying to get find(1) to exclude vim swapfiles, I finally had it with them cluttering up my work directories. As is usually the case when vim triggers an itch, I thought, \u0026ldquo;there must be a setting for that,\u0026rdquo; and lo, there was.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eset directory=~/.vimswap//\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eMake that directory and all the swap files go there instead. The trailing double slashes mean the swap files get named in such a way as to avoid conflicts.\u003c/p\u003e","title":"vim cheat codes"},{"content":"If you want to experience what it is like to be the first person to ever do something, might I suggest turning on all the debug knobs on an Android vendor kernel? Some speculative fixes over here, but there is still at least one other RCU bug on boot, and this use-after-free in the usb controller driver:\n[ 34.520080] msm_hsic_host msm_hsic_host: remove, state 1 [ 34.525329] usb usb1: USB disconnect, device number 1 [ 34.529602] usb 1-1: USB disconnect, device number 2 [ 34.637023] msm_hsic_host msm_hsic_host: USB bus 1 deregistered [ 34.668945] Unable to handle kernel paging request at virtual address aaaaaae6 [ 34.675201] pgd = c0004000 [ 34.678497] [aaaaaae6] *pgd=00000000 [ 34.681762] Internal error: Oops: 5 [#1] PREEMPT SMP ARM [ 34.686737] Modules linked in: wcn36xx_msm(O) wcn36xx(O) mac80211(O) cfg80211(O) compat(O) [ 34.694976] CPU: 1 Tainted: G W O (3.4.0-g4a73a1d-00005-g311eaee-dirty #2) [ 34.702972] PC is at __gpio_get_value+0x28/0x1cc [ 34.707489] LR is at do_restart+0x24/0xd8 [ 34.711486] pc : [] lr : [] psr: 60000013 [ 34.711486] sp : ebcd9ed8 ip : c032a858 fp : ebcd9ef4 [ 34.722930] r10: 00000000 r9 : c04dd67c r8 : 00000000 [ 34.728210] r7 : c4d81f00 r6 : 6b6b6b6b r5 : c10099cc r4 : aaaaaaaa [ 34.734680] r3 : 09090904 r2 : c1672f80 r1 : 00000010 r0 : 6b6b6b6b ^^^^^^^^ whoops [ 34.741241] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [ 34.748504] Control: 10c5787d Table: acfb006a DAC: 00000015 I guess I should try to find out where to report bugs for these (predictably) not upstream drivers, but that seems like a total pain.\n","permalink":"https://bobcopeland.com/blog/2014/03/phone-bugs/","summary":"\u003cp\u003eIf you want to experience what it is like to be the first person to ever do something, might I suggest turning on all the debug knobs on an Android vendor kernel? Some speculative fixes \u003ca href=\"https://github.com/bcopeland/android_kernel_sony_apq8064\"\u003eover here\u003c/a\u003e, but there is still at least one other RCU bug on boot, and this use-after-free in the usb controller driver:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.520080] msm_hsic_host msm_hsic_host: remove, state 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.525329] usb usb1: USB disconnect, device number 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.529602] usb 1-1: USB disconnect, device number 2\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.637023] msm_hsic_host msm_hsic_host: USB bus 1 deregistered\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.668945] Unable to handle kernel paging request at virtual address aaaaaae6\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.675201] pgd = c0004000\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.678497] [aaaaaae6] *pgd=00000000\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.681762] Internal error: Oops: 5 [#1] PREEMPT SMP ARM\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.686737] Modules linked in: wcn36xx_msm(O) wcn36xx(O) mac80211(O) cfg80211(O) compat(O)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.694976] CPU: 1    Tainted: G        W  O  (3.4.0-g4a73a1d-00005-g311eaee-dirty #2)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.702972] PC is at __gpio_get_value+0x28/0x1cc\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.707489] LR is at do_restart+0x24/0xd8\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.711486] pc : []    lr : []    psr: 60000013\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.711486] sp : ebcd9ed8  ip : c032a858  fp : ebcd9ef4\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.722930] r10: 00000000  r9 : c04dd67c  r8 : 00000000\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.728210] r7 : c4d81f00  r6 : 6b6b6b6b  r5 : c10099cc  r4 : aaaaaaaa\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.734680] r3 : 09090904  r2 : c1672f80  r1 : 00000010  r0 : 6b6b6b6b\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                                                                 ^^^^^^^^ whoops\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.741241] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[   34.748504] Control: 10c5787d  Table: acfb006a  DAC: 00000015\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eI guess I should try to find out where to report bugs for these (predictably) not upstream drivers, but that seems like a total pain.\u003c/p\u003e","title":"Phone bugs"},{"content":"I\u0026rsquo;m really enjoying Nate Silver\u0026rsquo;s The Signal and the Noise, particularly as someone who has come to appreciate statistics and machine learning only grudgingly and late in life. This book would have been a much gentler introduction to the concepts of statistical prediction than my own: the dense, equation-filled Pattern Recognition and Machine Learning by Bishop. However, my edition of Signal has a few errors that had me scratching my head, such as a chessboard showing an impossible opening position. And there was this gem:\n\u0026ldquo;At NASA, I finally realized that the definition of rocket science is using relatively simple psychics to solve complex problems,\u0026rdquo; Rood told me.\nI guess ML would be easier if we had more of these simple psychics to go around.\n","permalink":"https://bobcopeland.com/blog/2014/02/on-forecasting/","summary":"\u003cp\u003eI\u0026rsquo;m really enjoying Nate Silver\u0026rsquo;s \u003cem\u003eThe Signal and the Noise\u003c/em\u003e, particularly as someone who has come to appreciate statistics and machine learning only grudgingly and late in life. This book would have been a much gentler introduction to the concepts of statistical prediction than my own: the dense, equation-filled \u003cem\u003ePattern Recognition and Machine Learning\u003c/em\u003e by Bishop. However, my edition of \u003cem\u003eSignal\u003c/em\u003e has a few errors that had me scratching my head, such as a chessboard showing an impossible opening position. And there was this gem:\u003c/p\u003e","title":"On forecasting"},{"content":"It is a bit late for a Halloween post, but insert lame excuse here. Consider it a counter-balance to the force that causes Christmas decorations to show up in stores in September.\nThis year I chose Toopy and Binoo, a Canadian children\u0026rsquo;s cartoon pair that you have probably never heard of, as subjects for my pumpkin carving. Unfortunately, the pumpkins shriveled quite quickly, and the designs didn\u0026rsquo;t lend themselves well to preservation, so by Halloween, they grew a toothpick scaffolding to maintain their facade. Next year, I believe I\u0026rsquo;ll try not cutting all the way through to avoid such issues. (I\u0026rsquo;m not sure what that technique is called, but some of the more artistic neighbors employed it to great effect.)\nInside these gourds I used little battery-powered LED lights made for the purpose instead of actual candles. While LED lights don\u0026rsquo;t look nearly as nice as real candles, one need not care so much about potentially setting things on fire. On the evening of the 31st, as a few groups of kids had already arrived and absconded with their hard-earned treats, I found myself with a third pumpkin untouched by blade, but no light (or candle) to go in it, should I decide to carve it. Then, I remembered my extra spools of SMT LEDs from the cabinet lighting project. I calculated that a 9 volt battery could power three such LEDs for about 10 hours (that estimate was conservative by a factor of 3, it turned out \u0026ndash; I need to go back to EE school). Thanks to various other projects, I already had some speaker wire with alligator clips on each end, so, in the course of 5 minutes, I threw together a functional pumpkin light, carved a few holes in the pumpkin, and called it a day. No need to clean out the guts when open flames are not a factor.\nFor his first Halloween, Ian went as a dragon. Typical of his recent enthusiasm for all things space-related, Alex went as an astronaut. Instead of saying \u0026ldquo;trick-or-treat,\u0026rdquo; he would announce, \u0026ldquo;Hi, I\u0026rsquo;m Alex. I\u0026rsquo;m an astronaut!\u0026rdquo; Much candy was received, all the same.\n","permalink":"https://bobcopeland.com/blog/2013/12/pumpkins-all-pumpkiny/","summary":"\u003cp\u003eIt is a bit late for a Halloween post, but insert lame excuse here. Consider it a counter-balance to the force that causes Christmas decorations to show up in stores in September.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/11032437245/\" title=\"IMG_4305 by bluesterror, on Flickr\"\u003e\u003cimg alt=\"IMG_4305\" loading=\"lazy\" src=\"http://farm8.staticflickr.com/7343/11032437245_f4b89db3d3_m.jpg\"\u003e\u003c/a\u003e This year I chose Toopy and Binoo, a Canadian children\u0026rsquo;s cartoon pair that you have probably never heard of, as subjects for my pumpkin carving. Unfortunately, the pumpkins shriveled quite quickly, and the designs didn\u0026rsquo;t lend themselves well to preservation, so by Halloween, they grew a toothpick scaffolding to maintain their facade. Next year, I believe I\u0026rsquo;ll try not cutting all the way through to avoid such issues. (I\u0026rsquo;m not sure what that technique is called, but some of the more artistic neighbors employed it to great effect.)\u003c/p\u003e","title":"Pumpkins all Pumpkiny"},{"content":"My recent posting of ASCII art was intentionally subtle, perhaps overly so. If you haven\u0026rsquo;t figured it out by now, it is a C program that announces the birth of our second child. When compiled and executed, it prints:\nIan Yit-Sing Copeland Born 5 August, 2013 at 02:49 Weight 6 lbs 11 oz\nIn this post, I will explain how I created it.\nLike many a C practitioner, I\u0026rsquo;ve always found International Obfuscated C Code Contest entries to be at once entertaining and mystifying. While I don\u0026rsquo;t consider this effort to be near the level of IOCCC entries, I thought it might be fun to try my own IOCCC-lite ASCII art program.\nI knew I wanted the program to simply print an announcement string, in a non-obvious fashion. It also had to be easy to modify the program with the actual details on the day of the delivery. Indeed, I wrote this program several weeks in advance and modified the output in only a few minutes.\nThanks to the Can You Crack It challenge, I already had an RC4-like algorithm sitting on my disk. The plan then was simple: embed the key and ciphertext in the program, and just decrypt and print it. Of course, the ciphertext would be all binary, which is hard to encode in a compact manner in the source. Thus, I decided to store the ciphertext in base32 encoding.\nI actually didn\u0026rsquo;t put much effort into obfuscating the code; the main issue was getting the size of the source code into around 600 characters, and doing that involved using typedefs and one-letter variable names already. By the time that was done, I didn\u0026rsquo;t change much. Apart from variable naming, the main obfuscation step was to change the base32 mapping table to consist only of numbers and symbols so that the embedded string would itself look like code. The code otherwise is pretty straight-forward.\nMy starting point, which base32-decoded and decrypted some placeholder text, looked like this:\n#include \u0026lt;string.h\u0026gt; #include \u0026lt;stdio.h\u0026gt; char str[] = \u0026#34;43(:7\u0026amp;!#3\u0026amp;@\u0026gt;$%^|]:\u0026amp;6;\u0026lt;7*-$}9{;!*!$5{\u0026lt;;-=^8]#:5\u0026lt;@#%#\u0026amp;!5!@40207#9($3\u0026amp;)7\u0026lt;$1\u0026#34;; int b32dec(char *in, char *out, int len) { int i; char alpha[] = \u0026#34;3:5[9\u0026amp;2^]{7}*\u0026lt;-8@=4(6#!\u0026gt;|)0+;1$%\u0026#34;; for (i=0; i \u0026lt; len; i++) { unsigned char bits = strchr(alpha, in[i])-alpha; int j = (i / 8) * 5; switch (i % 8) { case 0: out[j + 0] |= bits \u0026lt;\u0026lt; 3; break; case 1: out[j + 0] |= bits \u0026gt;\u0026gt; 2; out[j + 1] |= bits \u0026lt;\u0026lt; 6; break; case 2: out[j + 1] |= bits \u0026lt;\u0026lt; 1; break; case 3: out[j + 1] |= bits \u0026gt;\u0026gt; 4; out[j + 2] |= bits \u0026lt;\u0026lt; 4; break; case 4: out[j + 2] |= bits \u0026gt;\u0026gt; 1; out[j + 3] |= bits \u0026lt;\u0026lt; 7; break; case 5: out[j + 3] |= bits \u0026lt;\u0026lt; 2; break; case 6: out[j + 3] |= bits \u0026gt;\u0026gt; 3; out[j + 4] |= bits \u0026lt;\u0026lt; 5; break; case 7: out[j + 4] |= bits; break; } } return i/8 * 5; } int keysched(unsigned char *x, unsigned char *key, int keylen) { int i; unsigned char tmp, a = 0; for (i=0; i \u0026lt; 256; i++) x[i] = i; for (i=0; i \u0026lt; 256; i++) { a += x[i] + key[i % keylen]; tmp = x[i]; x[i] = x[a]; x[a] = tmp; } } int crypt(unsigned char *x, unsigned char *y, int len) { unsigned char a; unsigned char b = 0; unsigned char tmp; int i; for (i=0; i \u0026lt; len; i++) { a = i+1; b += x[a]; tmp = x[a]; x[a] = x[b]; x[b] = tmp; y[i] ^= x[(x[a] + x[b]) \u0026amp; 0xff]; } } int main() { unsigned char x[256]; unsigned char key[] = \u0026#34;abcd\u0026#34;; unsigned char crypt_text[sizeof(str)] = {}; int len; len = b32dec(str, crypt_text, strlen(str)); keysched(x, key, strlen(key)); crypt(x, crypt_text, len); printf(\u0026#34;%sn\u0026#34;, crypt_text); } Micro-optimizing for source code size is unusual, and in some ways backwards to optimizing for generated code. For example, this change saved a couple of characters, but in the opposite way frequently done:\n- *o++ = d[0] \u0026lt;\u0026lt; 3 | d[1] \u0026gt;\u0026gt; 2; + *o++ = d[0] * 8 | d[1] / 4; Similarly, I found that combining unrelated functions was useful in eliminating the character waste of function definitions. There are likely a good deal more space-savers to be found; I quit when I got it small enough.\nI experimented with a few different formats for the code. It turns out that I\u0026rsquo;m not terribly good at drawing ASCII. I abandoned a baby bottle as unrecognizable and went with a footprint after seeing this motif on some birth announcements. I hand-drew it, scanned it in, loaded as a background in an html document and then put dollar signs in the right places. Yes, cheating, but I am no artist.\n$$$$ $$$$$$$$ $$$ $$$$$$$$$ $$ $$$$$ $$$$$$$$$ $$$$ $$$ $$$$$$$$$ $$$$ $$$$$$ $$ $$ $$$$ $$$$$$ $ $$$$$ $$$$$$$$$$$$$ $$$$ $$$$ $$$$$$$$$$$$$$$$$ $$$$ $$$$$$$$$$$$$$$$$$$$$ $$$$ $$$$$$$$$$$$$$$$$$$$$$$ $$ $$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$ $$$$$$$$$$$$$ $$$$$$$$$$$$ $$$$$$$$$ $$$$ I wrote a python script to encrypt and encode the string to be embedded in the code. A second script tokenized the original C source and replaced dollar signs from the text template with code. The latter script is not perfect, but worked well enough that I could hand-edit the output in a few seconds to get something reasonable.\nThe gory details are available at github.\nFinally, on delivery day, I discovered that Wordpress mangled C code included in posts. So I simply took a screenshot of the output and posted that instead, with a link to the original text. A picture of the newborn was hidden as a hyperlink from the footprint image.\nOverall, the entire process took a couple of evenings from concept to completion, and I\u0026rsquo;m quite happy with the way it turned out. And, of course, I\u0026rsquo;m ecstatic about the inspiration: our newly arrived baby boy. We are very fortunate to have both Alex and now Ian in our lives, and silly C programs and fake man pages cannot come close to capturing our joy.\n","permalink":"https://bobcopeland.com/blog/2013/08/footprint-part-2/","summary":"\u003cp\u003eMy recent \u003ca href=\"/blog/2013/08/footprint/\"\u003eposting of ASCII art\u003c/a\u003e was intentionally subtle, perhaps overly so. If you haven\u0026rsquo;t figured it out by now, it is a C program that announces the birth of our second child. When compiled and executed, it prints:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eIan Yit-Sing Copeland\nBorn 5 August, 2013 at 02:49\nWeight 6 lbs 11 oz\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eIn this post, I will explain how I created it.\u003c/p\u003e\n\u003cp\u003eLike many a C practitioner, I\u0026rsquo;ve always found \u003ca href=\"http://ioccc.org/\"\u003eInternational Obfuscated C Code Contest\u003c/a\u003e entries to be at once entertaining and mystifying. While I don\u0026rsquo;t consider this effort to be near the level of IOCCC entries, I thought it might be fun to try my own IOCCC-lite ASCII art program.\u003c/p\u003e","title":"Footprint, Part 2"},{"content":"\n(text version)\nPreviously. Update: Explanation here.\n","permalink":"https://bobcopeland.com/blog/2013/08/footprint/","summary":"\u003cp\u003e\u003ca href=\"/images/85479ea9b454f0afdcf508ae88b46762.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/images/foot.png\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"/srcs/foot.txt\"\u003e(text version)\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"/blog/2010/06/new-syscall-proposal/\"\u003ePreviously.\u003c/a\u003e \u003cstrong\u003eUpdate:\u003c/strong\u003e Explanation \u003ca href=\"/blog/2013/08/footprint-part-2/\"\u003ehere\u003c/a\u003e.\u003c/p\u003e","title":"Footprint"},{"content":"This year I attained permanent residency in Canada, and our family also attained permanent residency in a different way, by buying our first, and probably last, house. We moved into it a few months ago, a fact I neglected to remark here, so if you are mailing me something, and for some reason read my blog, you\u0026rsquo;ll want to ask me for my new address.\nWith the house comes plenty of things to work on that are only marginally interesting, so I shall proceed to bore you with them from time to time.\nI completed my first mini-project this weekend: installing task lighting in the kitchen. Our builder wanted to charge hundreds of dollars to put in (environmentally unsound) Xenon lights under the cabinets in the kitchen. I, having zero experience with house wiring, thought \u0026ldquo;I can do that!\u0026rdquo; Thus, we opted to have them install just the house wiring but we would take care of the lights.\nWhen I was a wee undergrad, LED lighting was then just around the corner. Installations existed, but they were terrifically pricey. Now, hundreds of years later, you can get lots of them on a spool for a few tens of dollars. The particular ones I purchased (from Amazon) come as a ribbon of copper with sticky tape on the back. The ribbon is essentially one 16-foot wire with groups of three small LEDs and a resistor in series, and each group connected in parallel. To use it, you just cut to length, and then solder on power and ground from the +12 volt DC power supply (sold separately). I went for \u0026lsquo;warm white\u0026rsquo; LEDs (2700K) which are a bit into the yellow spectrum; they are quite a bit softer than your average super bright white LED.\nI mounted the LEDs via the aforementioned tape on the back of the cabinet valence, and the power supplies on the cabinet undersides. The power supplies are designed to plug into a wall socket, but since we had junction boxes for the lighting pre-installed, I simply cut the ends off the cords and wired the DC supplies directly into the boxes. The house lines were already wired to a circuit with a wall switch, so that was all that was required. Each strip worked the first time.\nAll in all, it was a pretty uneventful install \u0026ndash; the kind you want when dealing with A/C. I still need to staple up some hanging wires to the cabinet underside, but otherwise it\u0026rsquo;s finished, and the end result looks great.\n","permalink":"https://bobcopeland.com/blog/2013/08/new-house-new-projects/","summary":"\u003cp\u003eThis year I attained permanent residency in Canada, and our family also attained permanent residency in a different way, by buying our first, and probably last, house. We moved into it a few months ago, a fact I neglected to remark here, so if you are mailing me something, and for some reason read my blog, you\u0026rsquo;ll want to ask me for my new address.\u003c/p\u003e\n\u003cp\u003eWith the house comes plenty of things to work on that are only marginally interesting, so I shall proceed to bore you with them from time to time.\u003c/p\u003e","title":"New house, new projects"},{"content":"Some Javascript developers, when presented with an API, think, \u0026ldquo;I know, I\u0026rsquo;ll make it async!\u0026rdquo; Now their users have a giant mess of a state machine implemented with callbacks and recursion, in a GC runtime that doesn\u0026rsquo;t eliminate tail calls, and two orders of magnitude worse performance. Normally, I wouldn\u0026rsquo;t care, because you get what you ask for when you write something in Javascript, but this time it happened to a project that I occasionally maintain for $work. And so I was sad.\nSo, far from expert in the ways of JS, I looked for a way out of this mire, and stumbled across task.js, which is what the kids are doing these days. It is a neat little hack, although it only works if your JS engine supports generators (most do not). Still, it seemed like a reasonable approach for my problem, so I decided to understand how task.js works by deriving my own.\nI should note that if one\u0026rsquo;s JS engine doesn\u0026rsquo;t have generators, one can kind of emulate them, in the same sense that one can emulate goto with switch statements. Consider this simple example:\nvar square_gen = function() { var obj = { state: 0, next: function() { var ret = this.state * this.state; this.state++; return ret; }, send: function(v) { this.state = v; return this.next(); }, }; return obj; }; var gen = square_gen(); for (var i=0; i \u0026lt; 4; i++) { console.log(\u0026#34;The next square is: \u0026#34; + gen.next()); } /* Outputs: The next square is: 0 The next square is: 1 The next square is: 4 The next square is: 9 */ In other words, square_gen() returns an object that has a next() method which returns the next value, based on some internal state. The next() method could be a full-fledged state machine instead of a simple variable.\nCertainly this is less tidy than the equivalent with language support:\nvar square_gen = function*() { var state = 0; while (1) { yield state * state; state++; } }; (I\u0026rsquo;ll assume the existence of generators in examples henceforth.)\nThe send() function is interesting \u0026ndash; it allows you to set the state from which the generator continues.\nsquare_gen.send(16); /* =\u0026gt; 256 */ The key idea is that generators will only do one iteration of a possibly large computation. When yield is reached, the function exits, and the computation is started up again after the yield statement when the caller performs another next() or a send().\nNow, suppose you need to do something that takes a while, without waiting, like fetching a resource over the network. When the resource is available, you need to continue with that data. In the meantime you should try to do something else, like allow the UI to render itself.\nThe normal way one does this is by writing one\u0026rsquo;s code in the (horrible) continuation-passing-style, which is fancy talk for passing callbacks to all functions. The task.js way is better: write functions that can block (generators) and switch to other tasks when they do block. No, I\u0026rsquo;m not making this up \u0026ndash; it is normal for a program in JS land to include a half-baked cooperative multitasker.\nYou can turn callbacks into promises, as in \u0026ldquo;I promise to give you value X when Y is done.\u0026rdquo; Promise objects are getting baked into various runtimes, but rolling your own is also easy:\nfunction MyPromise() { this.todo = function(){}; } MyPromise.prototype.then = function(f) { this.todo = f; }; MyPromise.prototype.resolve = function(value) { this.todo(value); }; That is: register a callback with then(), to be called when a value is known. The value is set by calling resolve().\nNow, suppose you have an async library function that takes a callback:\nfunction example(call_when_done) { /* do something asynchronously */ call_when_done(value); } Instead of calling it like this:\nexample(function(value) { /* my continuation */ }); \u0026hellip;you can give it a callback that resolves a promise, which, when resolved, calls your continuation:\nvar p = new MyPromise(); example(function(value) { p.resolve(value); }); p.then(function(value) { /* my continuation */ }); This is just obfuscation so far. The usefulness comes when you rewrite your functions to return promises, so that:\nfunction my_fn(params, callback) { /* pyramid of doom */ } becomes:\nfunction my_fn(params) { /* ... */ return promise; } Now you can have generators yield promises, which will make them exit until another next() or send() call. And then you can arrange to call send() with the promise\u0026rsquo;s value when it is resolved, which gives you blocking functionality.\n/* An async function that returns a promise */ function async() { var p = new MyPromise(); example(function(v) { p.resolve(v); }); return p; } /* A generator which blocks */ var gen = function*() { /* does some async call and receives a promise */ var p = async(); /* blocks until async call is done */ var v = yield p; /* now free to do something with v... */ }(); /* * Run one iteration of the generator. If the * generator yields a promise, set up another * iteration when that promise is resolved. */ function iterate(gen, state) { var p = gen.send(state); p.then(function(v) { iterate(gen, v); }); } /* Start a task */ var p = gen.next(); p.then(function(v) { iterate(gen, v); }); /* * You can do something else here, like start another * generator. However, control needs to eventually * return to runtime main loop so that async() can * make progress. */ A lot of details are omitted here like StopIteration and error handling, but that\u0026rsquo;s the gist. Task.js generalizes a lot of this and has a decent interface, so, do that.\nIn summary, Javascript is terrible (only slightly less so without c-p-s), and I\u0026rsquo;m glad I only have to use it occasionally.\n","permalink":"https://bobcopeland.com/blog/2013/07/its-faster-because-its-async/","summary":"\u003cp\u003eSome Javascript developers, when presented with an API, think, \u0026ldquo;I know, I\u0026rsquo;ll make it async!\u0026rdquo; Now their users have a giant mess of a state machine implemented with callbacks and recursion, in a GC runtime that doesn\u0026rsquo;t eliminate tail calls, and \u003cem\u003etwo orders of magnitude\u003c/em\u003e worse performance. Normally, I wouldn\u0026rsquo;t care, because you get what you ask for when you write something in Javascript, but this time it happened to a project that I occasionally maintain for $work. And so I was sad.\u003c/p\u003e","title":"It's faster because it's async!"},{"content":"Let\u0026rsquo;s say it\u0026rsquo;s 1975, and you have a mountain of data (2 megs) to process, and a heap of cash. Whom do you call to run your Cobol? Your local airline, of course!\nExcerpt:\nIBM 360/195 for only 50 cents a SECOND\nGuaranteed Turnaround! 2meg; 2314\u0026rsquo;s - 3330\u0026rsquo;s - 3420\u0026rsquo;s OS/MVT HASP/RJE MPSX-GPSS-PMS-SSP-CSMP Ans Cobol, Fortran G, G1, H, Assembler F \u0026amp; H, PL/1 F and PL/1 Optimizing and Checkout Compilers.\nOur typical customer is knowledgeable in OS; has good working knowledge of JCL, Utilities and the functions of the compilers/assemblers he uses. [\u0026hellip;] Call or Write UNITED AIRLINES\nCourtesy of a yellowed copy of Computerworld my dad found among his things. I noticed Google has scanned a lot of old issues but I couldn\u0026rsquo;t find this one in their archive.\nNo, I don\u0026rsquo;t remember those days.\n","permalink":"https://bobcopeland.com/blog/2013/06/aws-precursor/","summary":"\u003cp\u003eLet\u0026rsquo;s say it\u0026rsquo;s 1975, and you have a mountain of data (2 megs) to process, and a heap of cash. Whom do you call to run your Cobol? Your local airline, of course!\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/uacpu.jpg\"\u003eExcerpt:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eIBM 360/195 for only 50 cents a SECOND\u003c/p\u003e\n\u003cp\u003eGuaranteed Turnaround! 2meg; 2314\u0026rsquo;s - 3330\u0026rsquo;s - 3420\u0026rsquo;s\nOS/MVT\nHASP/RJE\nMPSX-GPSS-PMS-SSP-CSMP\nAns Cobol, Fortran G, G1, H, Assembler F \u0026amp; H, PL/1 F and PL/1 Optimizing and Checkout Compilers.\u003c/p\u003e\n\u003cp\u003eOur typical customer is knowledgeable in OS; has good working knowledge of JCL, Utilities and the functions of the compilers/assemblers he uses.\n[\u0026hellip;]\nCall or Write\nUNITED AIRLINES\u003c/p\u003e\n\u003c/blockquote\u003e","title":"AWS precursor"},{"content":"It\u0026rsquo;s fun when a problem is simple, yet the program to solve it takes long enough to run that you can write a second, or third, much faster version while waiting on the first to complete. Today I had a 1.8 billion line, 300 GB sorted input file of the form \u0026ldquo;keytvalue\u0026rdquo;, and another file of 20k interesting keys. I wanted lines matching the keys sent to a third file, where the same key might appear multiple times in the input.\nWhat doesn\u0026rsquo;t work: any version of grep -f, which I believe is something like O(N*M).\nWhat could have worked: a one-off program to load the keys into a hash, and output the data in a single pass. Actually, I had written this one-off program before for a different task. In this case, the input file doesn\u0026rsquo;t need to be sorted, but the key set must be small and well-defined. It is O(N+M).\nWhat worked: a series of sorted grep invocations (sgrep, but not the one in ubuntu). That is O(lgN * M), which can be a win if M is small compared to N. See also comm(1) and join(1), but I don\u0026rsquo;t know off the top of my head whether they start with a binary search. I had a fairly low selectivity in my input set so the binary search helps immensely.\nWhat also could have worked: a streaming map-reduce or gnu parallel job (the input file was map-reduce output, but my cluster was busy at the time I was processing this, and I am lazy). That would still be O(N+M), but distributing across P machines in the cluster would reduce it by around the factor P. P would need to be large here to be competitive with the previous solution from a complexity standpoint.\nMaking up numbers, these take about 0, 5, 1, and 20 minutes to write, respectively.\nOf course, algorithmic complexity isn\u0026rsquo;t the whole picture. The last option, or otherwise splitting the input/output across disks on a single machine, would have gone a long way to address this problem:\nDevice: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util sda 10.50 0.00 361.00 9.75 83682.00 4992.00 478.35 139.42 174.20 6.43 6385.95 2.70 100.00 sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdc 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdd 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 You can\u0026rsquo;t go any faster when blocked on I/O.\nNote the similarities with join algorithms in databases \u0026ndash; variations on nested loop, hash, and sort-merge joins are all present above.\n","permalink":"https://bobcopeland.com/blog/2013/04/grepping-300-gigs/","summary":"\u003cp\u003eIt\u0026rsquo;s fun when a problem is simple, yet the program to solve it takes long enough to run that you can write a second, or third, much faster version while waiting on the first to complete. Today I had a 1.8 billion line, 300 GB sorted input file of the form \u0026ldquo;keytvalue\u0026rdquo;, and another file of 20k interesting keys. I wanted lines matching the keys sent to a third file, where the same key might appear multiple times in the input.\u003c/p\u003e","title":"Grepping 300 gigs"},{"content":"Over the winter holidays I was put in charge of cooking one (of several) of the family dinners. At my house, a Christmas dinner can mean only one thing: prime rib is on the menu. The local grocery store had a great deal on rib roasts, so I bought a whole one. All seven ribs, 25 pounds of it. When it came time to cook this beast, I did plenty of reading, and settled on this seriouseats recipe. I guessed at about six hours to slow-roast the behemoth. But after a few hours of roasting, I decided it would be nice to know whether it would finish in time for the guests, or whether we would have to invent some pre-meal activities to stall.\nLinear regression to the rescue! I had a leave-in meat thermometer plugged into the slab of cow, the type with a cable that runs outside the oven so that you can read the temperature without opening the oven door. It was then a simple matter to record the temperature every fifteen minutes and plot it to see how it was going. My uninformed guess was that the temperature curve is really sigmoid-shaped, but linearity is probably close enough around the target range.\nGnuplot can do linear regression for you:\nf(x) = a*x + b fit f(x) \u0026#39;temp.dat\u0026#39; u 1:2 via a, b set xrange [-5:160] plot \u0026#39;temp.dat\u0026#39; u 1:2 w linespoints, f(x) This produces a graph like the image below, which shows that after 3 hours of cooking, the meat would be around 128 degrees (I started keeping track about three hours in).\nIn the end, I turned up the oven a bit in the last hour to speed things along. The meat turned out great, although I didn\u0026rsquo;t have too much luck with the in-between rest that the recipe promotes: there were still plenty of juices all over the place at carving time. Next time, I believe I\u0026rsquo;ll just turn the oven up to 500 deg. F when the interior target temperature is reached, and then do a normal rest afterwards. Another lesson learned: a full rib roast is perhaps twice as much as needed for eight people, but I am not one to complain about having prime rib leftovers for a week.\n","permalink":"https://bobcopeland.com/blog/2013/02/cooking-with-gnuplot/","summary":"\u003cp\u003eOver the winter holidays I was put in charge of cooking one (of several) of the family dinners. At my house, a Christmas dinner can mean only one thing: prime rib is on the menu. The local grocery store had a great deal on rib roasts, so I bought a whole one. All seven ribs, 25 pounds of it. When it came time to cook this beast, I did plenty of reading, and settled on \u003ca href=\"http://www.seriouseats.com/2009/12/the-food-lab-how-to-cook-roast-a-perfect-prime-rib.html\"\u003ethis seriouseats recipe\u003c/a\u003e. I guessed at about six hours to slow-roast the behemoth. But after a few hours of roasting, I decided it would be nice to know whether it would finish in time for the guests, or whether we would have to invent some pre-meal activities to stall.\u003c/p\u003e","title":"Cooking with gnuplot"},{"content":"So, I\u0026rsquo;m applying a one line patch to a Java package, and oh yes, it needs maven. Hooray!\n$ apt-cache depends --recurse maven | grep Depends | grep -v \u0026#39;\u0026lt;\u0026#39; | egrep lib.*java | sort | uniq | wc -l 203 [... start build and watch maven download another pile ...] $ find ~/.m2 -name *pom | wc -l 851 I find it hard to believe that there are that many useful libraries in the world.\n","permalink":"https://bobcopeland.com/blog/2012/12/mavened/","summary":"\u003cp\u003eSo, I\u0026rsquo;m applying a one line patch to a Java package, and oh yes, it needs maven. Hooray!\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-gdscript3\" data-lang=\"gdscript3\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#f92672\"\u003e$\u003c/span\u003e apt\u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003ecache depends \u003cspan style=\"color:#f92672\"\u003e--\u003c/span\u003erecurse maven \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e grep Depends \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e     grep \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003ev \u003cspan style=\"color:#e6db74\"\u003e\u0026#39;\u0026lt;\u0026#39;\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e egrep lib\u003cspan style=\"color:#f92672\"\u003e.*\u003c/span\u003ejava \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e sort \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e uniq \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e wc \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003el\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#ae81ff\"\u003e203\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[\u003cspan style=\"color:#f92672\"\u003e...\u003c/span\u003e start build \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e watch maven download another pile \u003cspan style=\"color:#f92672\"\u003e...\u003c/span\u003e]\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#f92672\"\u003e$\u003c/span\u003e find \u003cspan style=\"color:#f92672\"\u003e~/.\u003c/span\u003em2 \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003ename \u003cspan style=\"color:#f92672\"\u003e*\u003c/span\u003epom \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e wc \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003el\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#ae81ff\"\u003e851\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eI find it hard to believe that there are that many useful libraries in the world.\u003c/p\u003e","title":"Mavened."},{"content":"I neglected to write up anything on the blog in November despite it being the penultimate of months, so here\u0026rsquo;s a meandering catch-up post to atone. My apologies for the gratuitous self-linking that is about to ensue.\nOn Halloween: our 2-year old went as Kung Fu Panda (his favorite movie, and yes, shame on his parents for letting him watch movies) for Halloween this year. He was quite excited to learn that you can just go ask for candy from strangers and they will give it to you. He has mastered enough language to say \u0026ldquo;Pumpkin Scary,\u0026rdquo; which he did given every opportunity on seeing the skull I had carved on the pumpkin on the right. The other pumpkin is supposed to be McQueen from the Disney Cars property; Alex called it \u0026ldquo;Pumpkin Car.\u0026rdquo; They are now composting. So it goes.\nOn Thanksgiving: being a half-US, half-Canadian family, we get to celebrate both Thanksgivings: the fake one and the real one. And so we did. It was great spending time with the family and meeting up with some old friends in Atlanta, though we learned painful lessons about air travel with young children.\nOn Canada: I\u0026rsquo;ve now been in Canada for a little over a year. Among the observations I had detailed previously, I can now add these:\nWe do have a few days here in the summer that qualify as hot, but no, it does not get Georgia-in-August-hot.\nCanadian Coca-cola is superior to non-KFP USA Coke, and despite what the PR machine in Atlanta will tell you, you can easily tell the difference between sugar and HFCS when you\u0026rsquo;re used to one or the other.\nCanadian TV is even more a wasteland when there is no hockey.\nOn Bash Goto: per my last post, I considered how hard it would be to write an x86 emulator in bash. Conclusion: despite the potential good fun in simulating %eip using \u0026rsquo;nl\u0026rsquo; and sed, I\u0026rsquo;ll leave this task to someone else. However, I did improve my actual implementation of this somewhat. One easy win is to put the jump labels inside comments so that an ordinary run of the script won\u0026rsquo;t barf. And so that is what I did.\nOn Work: while I\u0026rsquo;ve been a contractor in name for the last year, I have now taken on some other contracts and thereby made this status more official. It was a tough decision to go this route versus, say, working on a salaried basis with some large, hypothetical mobile chipmaker with a Canadian presence, but so far I am happy with the choice. Most recently, I have been doing some Linux mesh networking stuff with Cozybit. It may be a while before any of it finds its way upstream (there are NDAs involved) but I claim that it is cool stuff. In the meantime, I get to continue slaying big data dragons at LP/Xmarks.\nOn HBase: speaking of HBase, two things have recently come to my attention. First, there is Hannibal, a cluster monitoring tool which was inspired by my post about beating gnuplot over the head with perl. I had nothing to do with its implementation otherwise, but it looks pretty cool. Secondly, I recently had an enquiry about my cache-oblivious code from some HBase folks. I\u0026rsquo;m not working on that either, but I am hopeful that something comes of it since it would be great if these ideas (not my own) percolate out into mainstream practice.\n","permalink":"https://bobcopeland.com/blog/2012/12/olio/","summary":"\u003cp\u003eI neglected to write up anything on the blog in November despite it being the penultimate of months, so here\u0026rsquo;s a meandering catch-up post to atone. My apologies for the gratuitous self-linking that is about to ensue.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/2012-pumpkins.jpg\"\u003e\u003cstrong\u003eOn Halloween:\u003c/strong\u003e our 2-year old went as Kung Fu Panda (his favorite movie, and yes, shame on his parents for letting him watch movies) for Halloween this year. He was quite excited to learn that you can just go ask for candy from strangers and they will give it to you. He has mastered enough language to say \u0026ldquo;Pumpkin Scary,\u0026rdquo; which he did given every opportunity on seeing the skull I had carved on the pumpkin on the right. The other pumpkin is supposed to be McQueen from the Disney Cars property; Alex called it \u0026ldquo;Pumpkin Car.\u0026rdquo; They are now composting. So it goes.\u003c/p\u003e","title":"Olio"},{"content":"If you are as old and nerdy as I, you may have spent your grade school days hacking in the BASIC computer language. One of the (mostly hated) features of the (mostly hated) language was that any statement required a line number; this provided both the ability to edit individual lines of the program without a screen editor, as well as de facto labels for the (mostly hated) GOTO and GOSUB commands. But you could also use line numbers to run your program starting from any random point: \u0026ldquo;RUN 250\u0026rdquo; might start in the middle of a program, typically after line 250 exited with some syntax error and was subsequently fixed.\nToday, in bash, we have no such facility. Why on earth would anyone want it, with the presence of actual flow control constructs? Who knows, but asking Google about \u0026ldquo;bash goto\u0026rdquo; shows that I am not the first.\nFor my part, at $work, I have a particular script which takes several days to run, each part of which may take many hours, and, due to moon phases, may fail haphazardly. If a command fails, the state up to that point is preserved, so I just need to continue where that left off. Each major part of the job is already factored into individual scripts, so I could cut-and-paste commands from the failure point onward, but I\u0026rsquo;m lazy.\nThus, I present bash goto. It runs sed on itself to strip out any parts of the script that shouldn\u0026rsquo;t run, and then evals it all. Prepare to cringe.\n#!/bin/bash # include this boilerplate function jumpto { label=$1 cmd=$(sed -n \u0026#34;/$label:/{:a;n;p;ba};\u0026#34; $0 | grep -v \u0026#39;:$\u0026#39;) eval \u0026#34;$cmd\u0026#34; exit } start=${1:-\u0026#34;start\u0026#34;} jumpto $start start: # your script goes here... x=100 jumpto foo mid: x=101 echo \u0026#34;This is not printed!\u0026#34; foo: x=${x:-10} echo x is $x results in:\n$ ./test.sh x is 100 $ ./test.sh foo x is 10 $ ./test.sh mid This is not printed! x is 101 My quest to make bash look like assembly language draws ever nearer to completion.\nUpdate 2019/05/21: A reader pointed out that executing one of the labels results in bash complaining \u0026ldquo;command not found\u0026rdquo; and suggested putting the labels in a comment, which works just fine without any other changes (but if you like, you can drop the \u0026ldquo;grep -v\u0026rdquo; in that case). You might also be interested in the takes of folks on reddit, or my own take of being discussed on reddit.\nUpdate 2023/08/04: Greetings, and my apologies, to Hacker News readers all these years later. Hi!\n","permalink":"https://bobcopeland.com/blog/2012/10/goto-in-bash/","summary":"\u003cp\u003eIf you are as old and nerdy as I, you may have spent your grade school days hacking in the BASIC computer language. One of the (mostly hated) features of the (mostly hated) language was that any statement required a line number; this provided both the ability to edit individual lines of the program without a screen editor, as well as de facto labels for the (mostly hated) GOTO and GOSUB commands. But you could also use line numbers to run your program starting from any random point: \u0026ldquo;RUN 250\u0026rdquo; might start in the middle of a program, typically after line 250 exited with some syntax error and was subsequently fixed.\u003c/p\u003e","title":"goto in bash"},{"content":"\nHappy Canadian Thanksgiving! Now it\u0026rsquo;s time to do the dishes.\n","permalink":"https://bobcopeland.com/blog/2012/10/fake-thanksgiving/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/rosewater0304/8063925179/\" title=\"IMG_1461 by rosewater0304, on Flickr\"\u003e\u003cimg alt=\"IMG_1461\" loading=\"lazy\" src=\"http://farm9.staticflickr.com/8310/8063925179_0b4305954c.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eHappy Canadian Thanksgiving! Now it\u0026rsquo;s time to do the dishes.\u003c/p\u003e","title":"Fake Thanksgiving"},{"content":"Some progress has been made on my guitar chip amp. Readers may remember that at the time of my last post, I had tinkered with KiCad and created the basic layout for my PCB. Since then, I finalized the design and had it fabbed through the great OSH Park batch prototyping service. This is a great deal: it wound up being about $10 a board (you get three at $5/sq. in) and the boards are of excellent quality. It took about 3 weeks from time of design submission for the finished boards to arrive in Canada from the States. Above are the top and bottom of one the unpopulated boards. The solder mask is the OSH Park signature purple, and the through-holes are gold-plated. The bottom side silkscreen says \u0026ldquo;This silkscreen intentionally left blank\u0026rdquo; \u0026ndash; a last minute addition because the service\u0026rsquo;s design checks fail if any layers are missing. I should get more creative with that next time.\nAlthough I do plan to someday build a wooden speaker cabinet to house everything, for now I just shoved all the electronics in the box that the speaker came in, as it happens to be the right size. Plug the instrument cable in the front, flip on the illuminated switch, and one is ready to rock.\nI had all the parts waiting for the boards, so when they arrived I quickly populated one and hooked it up, plugged in my Les Paul and strummed an E chord. The resulting sound was something short of musical: loud, ringing, distorted noises were heard instead of the clear tones of my prototype. I feared that my board design was flawed, and without a scope handy, it would be tough to track down. But on the plus side, I knew that I was about to learn something.\nI spent an hour or so following all of the traces on the board and comparing them to the schematic, making sure the caps were all connected the right way around and so forth. I also compared the finished board to my protoboard, which happened to work fine. Everything was the same, except where I had used two 1 ohm resistors in series to invent a 2 ohm resistor (the datasheet called for a 2.2 which I didn\u0026rsquo;t have at prototyping time).\nThen I looked at said resistors a little more closely. On the outside edge, I could just make out a faint yellow band where I previously thought there was none. And that brown band was just the tiniest bit in the purple spectrum. Oops! My 1 ohm resistors were actually 47 ohms, making the gain of my prototype a measly three instead of the 101 I thought it was. It turns out that a gain of 101 is way too high without a volume knob. Also, one of the 47-ohm resistors was in a stabilizing RC circuit, likely causing the ringing oscillations I had heard in my PCB version.\nI fixed the RC circuit when building board number two, but stuck with the 2.2 ohm resistor and accompanying large gain. I might use this version if I decide to put a volume knob in front of the amplifier, but I do find it\u0026rsquo;s a little too noisy overall for my tastes. I thus went back to board number one, desoldered the 47 ohm and 2.2 ohm resistors and replaced them with 1 ohm and 22 ohm resistors respectively, lowering the gain of that board to a modest eleven.\nPictured above are the before and after of prototype and PCB versions. There are certainly a few things I would change if I ever make another revision of the PCB. For one, the annular rings on the heat sink and connector footprints were too small, so soldering them was difficult with so little of the pad exposed. I might also do away with or reduce the size of the ground plane; even with the thermal reliefs, soldering and desoldering the ground connections was no easy task. But on the whole, making the PCB was an interesting experience and I look forward to having another excuse to do so again.\nI\u0026rsquo;ll put the design files up on github one of these days.\n","permalink":"https://bobcopeland.com/blog/2012/09/amped/","summary":"\u003cp\u003eSome progress has been made on my guitar chip amp. Readers may remember that at the time of my last post, I had tinkered with KiCad and created the basic layout for my PCB. Since then, I finalized the design and had it fabbed through the great OSH Park batch prototyping service. This is a great deal: it wound up being about $10 a board (you get three at $5/sq. in) and the boards are of excellent quality. It took about 3 weeks from time of design submission for the finished boards to arrive in Canada from the States.\n\u003ca href=\"http://www.flickr.com/photos/bluesterror/7959350464/\" title=\"Practice amp PCB - top by bluesterror, on Flickr\"\u003e\u003cimg alt=\"Practice amp PCB - top\" loading=\"lazy\" src=\"http://farm9.staticflickr.com/8176/7959350464_94ef33a855_m.jpg\"\u003e\u003c/a\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/7959349008/\" title=\"Practice amp PCB - bottom by bluesterror, on Flickr\"\u003e\u003cimg alt=\"Practice amp PCB - bottom\" loading=\"lazy\" src=\"http://farm9.staticflickr.com/8313/7959349008_a8dfaec73c_m.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e","title":"Amped"},{"content":"When we moved to Canada, I sold any guitar gear that wouldn\u0026rsquo;t fit in a backpack. This has left me without the ability to plug in my electric guitar for the last ten months, a situation that must be rectified (ha, ha). I just need a small practice amp, and those can be found on an IC these days. One needs only to add a little soldering, attach a speaker, repeat as necessary for whatever mistakes one makes, and ta-da: a small custom amp that one could have bought mass-produced from China for 1/50th of the price of building one\u0026rsquo;s own. But of course there is value in the making, or so we tell ourselves.\nAnyway, I\u0026rsquo;ve built my circuit (more or less the same one as on the op-amp\u0026rsquo;s datasheet) on a breadboard and it sounds fine except for the complete lack of shielding. Since it\u0026rsquo;s now possible to get one-off PCBs without spending a fortune, and using a real board is more fun than protoboards, let\u0026rsquo;s do that!\nBack in the dark ages, I used to work on a PCB software that sold for $30k/license (I thought that was ridiculous then too). While I seem to have stuffed some arcane knowledge about keepouts and autorouters somewhere in the back of my brain, most of the PCB black magic did not rub off on me. After a 15-year hiatus from that domain, I can firmly label myself \u0026ldquo;PCB novice.\u0026rdquo;\nEagle Light (free as in beer) is the choice of many a hobbyist. I have poked at Eagle before, but never liked it enough to do anything substantive. These days, getting it to run at all means finding library versions that aren\u0026rsquo;t used in any current Linux distribution, building them, doing some LD_LIBRARY hacks, setting up a 32-bit runtime, and so on. Yes, I also did that this weekend. Eagle has a nice big standard library, but I feel learning it at all is a bit of a dead end when there are usable, truly free alternatives. And KiCad looks like it just may fit the bill. I apt-get installed it and was off to the races.\nOverall, KiCad is a nice piece of FOSS software that can easily do whatever one would do in Eagle. Unfortunately, it still reminds me of what I hate about PCB software in general. I find designing a PCB to already be extremely fiddly and unfun; as a non-expert, I just want to build a schematic and then place and route things with sensible defaults. Instead, what I wound up doing was learning to use the symbol editor, and the module editor, gathering various facts about drill and pad sizes, and picking up KiCad\u0026rsquo;s various quirks such as how you have to constantly reload newly created libraries, and how the UI frequently makes no sense. Of course, UIs never make any sense in EDA tools, so you sometimes just have to go with it. Doing librarian work is ultra-boring, especially for tiny boards like this.\nStill, in the course of a few hours, I built the basic schematic (including adding three new symbols), passed ERCs, created three missing footprints, and did an initial routing of the board. Not too bad.\nIn the last decade component libraries have grown 3-D models, which is kind of neat. On the one hand, it\u0026rsquo;s not terribly useful since the canned components are unlikely to closely match reality, and editing 3-D models of components is even less interesting to me than editing their footprint. But, it does make for decent screenshots like the one above.\n","permalink":"https://bobcopeland.com/blog/2012/07/kicad-level-0-achieved/","summary":"\u003cp\u003eWhen we moved to Canada, I sold any guitar gear that wouldn\u0026rsquo;t fit in a backpack. This has left me without the ability to plug in my electric guitar for the last ten months, a situation that must be rectified (ha, ha). I just need a small practice amp, and those can be found on an IC these days. One needs only to add a little soldering, attach a speaker, repeat as necessary for whatever mistakes one makes, and ta-da: a small custom amp that one could have bought mass-produced from China for 1/50th of the price of building one\u0026rsquo;s own. But of course there is value in the making, or so we tell ourselves.\u003c/p\u003e","title":"KiCad Level 0 Achieved"},{"content":"When I did my previous work with mac0211_hwsim, I wrote the channel model in matlab and pre-generated a huge lookup table of frame error rates for different SNR values and transmission rates so that the simulator didn\u0026rsquo;t have to do any thinking for each packet. Obviously that\u0026rsquo;s a bit limiting and not in any way upstreamable in something like wmediumd.\nSo, I sat down today and rewrote it in C to see how bad the computation is. Actually, it\u0026rsquo;s not awful: I didn\u0026rsquo;t carefully benchmark it, but it sits at around 30 Âµsec per calculation, and there is probably a good deal of low hanging fruit such as making factorial() cache its computations, or fitting the output curves with cubics. I stuck the initial code on a wmediumd topic branch over here.\nI verified the output matched my matlab code and charted it as above. Careful observers will note the 9 mbps rate is always worse than 12 mbps; this was a finding of D. Qiao and S. Choi in â€œGoodput enhancement of IEEE 802.11a wireless LAN via link adaptation,â€ in Proc. IEEE ICC01, from which most of my math was appropriated.\n","permalink":"https://bobcopeland.com/blog/2012/06/fake-wireless-errors/","summary":"\u003cp\u003eWhen I did my previous work with mac0211_hwsim, I wrote the channel model in matlab and pre-generated a huge lookup table of frame error rates for different SNR values and transmission rates so that the simulator didn\u0026rsquo;t have to do any thinking for each packet. Obviously that\u0026rsquo;s a bit limiting and not in any way upstreamable in something like wmediumd.\u003c/p\u003e\n\u003cp\u003eSo, I sat down today and rewrote it in C to see how bad the computation is. Actually, it\u0026rsquo;s not awful: I didn\u0026rsquo;t carefully benchmark it, but it sits at around 30 Âµsec per calculation, and there is probably a good deal of low hanging fruit such as making \u003ccode\u003efactorial()\u003c/code\u003e cache its computations, or fitting the output curves with cubics. I stuck the initial code on a wmediumd topic branch \u003ca href=\"http://github.com/bcopeland/wmediumd/commit/599022806c8798cfe025081ac6358e6115830983\"\u003eover here.\u003c/a\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/csim_rates.png\"\u003e\u003c/p\u003e","title":"Fake Wireless Errors"},{"content":"A Study of 802.11 Bitrate Selection in Linux (January 2010).\nI didn\u0026rsquo;t think too much of this paper when I wrote it as a term project in grad school. As an academic paper, it doesn\u0026rsquo;t really present anything novel. The equations underlying my wireless medium simulation, for example, are wholesale lifted from sources. In the few academic papers still being written on the subject, rate controllers that do not specifically look at collisions are old news (even though Minstrel tends to get loss differentiation implicitly through the magic of probability). Even at the time, looking at non-QoS 802.11 DCF and only 802.11a rates made the whole exercise a bit dated, and the world has definitely moved on in the intervening years. The paper did, however, find a few flaws (or perhaps over-exuberances) in Minstrel\u0026rsquo;s multi-rate-retry mechanism that may still be unfixed upstream, and many more flaws in PID (one I fixed upstream, but it is still not usable). I wanted to go back and redo the physical experiments before submitting patches to Minstrel, but life intervened.\nHowever, I\u0026rsquo;ve recently been talking to the good folks at cozybit, who picked up where I left off by creating wmediumd (which does more or less the same thing but in a more polished fashion). There were still some things in my version that wmediumd lacks today, so I\u0026rsquo;m posting the paper to give it a slightly wider audience. I\u0026rsquo;d be interested to hear of any glaring flaws in the model or approach. Given time, I\u0026rsquo;d like to bring those missing features (namely, signal-level-based loss, and optional transmission time simulation) to wmediumd and repeat the experiments there.\nAs for the fixes to Minstrel, the basic theme is reducing the number of retries to avoid backoff, since at some point it is better to drop packets and send the next batch at a lower rate rather than retrying for tens of ms. This patch (untested) addresses one of the two points I mentioned in the paper. The other fix, to compute the backoff time per-slot, was an Ã¼ber-kludge in my experiments; I\u0026rsquo;ll have to see if there\u0026rsquo;s an upstreamable way to do that. Pretty much everyone (even for pre-11n devices) is using Minstrel-HT now, so it would be worthwhile to refresh and see if the issues were carried over there as well.\n","permalink":"https://bobcopeland.com/blog/2012/05/simulating-wireless/","summary":"\u003cp\u003e\u003ca href=\"/srcs/copeland-linux-rc.pdf\"\u003eA Study of 802.11 Bitrate Selection in Linux\u003c/a\u003e (January 2010).\u003c/p\u003e\n\u003cp\u003eI didn\u0026rsquo;t think too much of this paper when I wrote it as a term project in grad school. As an academic paper, it doesn\u0026rsquo;t really present anything novel. The equations underlying my wireless medium simulation, for example, are wholesale lifted from sources. In the few academic papers still being written on the subject, rate controllers that do not specifically look at collisions are old news (even though Minstrel tends to get loss differentiation implicitly through the magic of probability). Even at the time, looking at non-QoS 802.11 DCF and only 802.11a rates made the whole exercise a bit dated, and the world has definitely moved on in the intervening years. The paper did, however, find a few flaws (or perhaps over-exuberances) in Minstrel\u0026rsquo;s multi-rate-retry mechanism that may still be unfixed upstream, and many more flaws in PID (one I fixed upstream, but it is still not usable). I wanted to go back and redo the physical experiments before submitting patches to Minstrel, but life intervened.\u003c/p\u003e","title":"Simulating Wireless"},{"content":"Continuing with the charting theme, I wrote a quick python script yesterday to generate timing diagrams from pcap files while learning matplotlib. It\u0026rsquo;s just at the proof-of-concept stage but could be useful to debug things like power-saving in wireless. Surely something like this exists somewhere already, right? I couldn\u0026rsquo;t find it in the Google.\nAlong the way I had to write a python radiotap parser; that might actually be useful to others so I\u0026rsquo;ll try to put it on github at some point.\n","permalink":"https://bobcopeland.com/blog/2012/05/packet-timing/","summary":"\u003cp\u003eContinuing with the charting theme, I wrote a quick python script yesterday to generate timing diagrams from pcap files while learning matplotlib. It\u0026rsquo;s just at the proof-of-concept stage but could be useful to debug things like power-saving in wireless. Surely something like this exists somewhere already, right? I couldn\u0026rsquo;t find it in the Google.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/timing.png\"\u003e\u003c/p\u003e\n\u003cp\u003eAlong the way I had to write a python radiotap parser; that might actually be useful to others so I\u0026rsquo;ll try to put it on github at some point.\u003c/p\u003e","title":"Packet Timing"},{"content":"I was asked for a blog post on this topic. I also do birthdays!\nHBase achieves balance by splitting regions when they reach a certain size, and by evenly distributing the number of regions among cluster machines. However, the balancer will not run in some cases (e.g. if there are regions stuck in transition), and balancing the number of regions alone may not help if region sizes are not mostly the same size. If a region server is hosting more regions than the others, requests to that server experience higher latency, and batch (map-reduce) jobs take longer to complete due to parallel skew.\nAt $work we graph these data hourly, and here\u0026rsquo;s how we do it.\nFirst, we run the following JRuby script from cron. [Note: I\u0026rsquo;ve been advised (thanks ntelford!) that HServerInfo is gone in newer releases and you now need to get HServerLoad via ClusterStatus.getLoad(server_name).]\n# This ruby script dumps a text file of region sizes and the servers # they are on, for determining balance/split effectiveness. # # Usage: hbase org.jruby.Main region_hist.rb # include Java import org.apache.hadoop.hbase.ClusterStatus import org.apache.hadoop.hbase.HBaseConfiguration import org.apache.hadoop.hbase.HServerInfo import org.apache.hadoop.hbase.HServerLoad import org.apache.hadoop.hbase.HTableDescriptor import org.apache.hadoop.hbase.client.HBaseAdmin def main() conf = HBaseConfiguration.new() client = HBaseAdmin.new(conf) status = client.clusterStatus status.serverInfo.each do |server| server_name = server.serverName printed_server = false load = server.load rload = load.regionsLoad rload.each do |region| region_name = region.nameAsString size = region.storefileSizeMB puts \u0026#34;#{server_name}t#{region_name}t#{size}\u0026#34; printed_server = true end if !printed_server then puts \u0026#34;#{server_name}tNONEt0\u0026#34; end end end main() The script generates a flat file with server name, region name, and region store file size fields:\nc1.example.com,60020,1333483861849 .META.,,1 2 c2.example.com,60020,1333484982245 edges,175192748,176293002,1331824785017.fc03e947e571dfbcf65aa16dfd073804 1723 ... We then process this through a pile of Perl (I\u0026rsquo;ll spare the details) to generate several other data files. First, there\u0026rsquo;s a flat file with a sum of region sizes and region count per table:\nserver -ROOT- -ROOT- .META. .META. edges edges ids ids verts verts userdata userdata types types stats stats topics topics topics_meta topics_meta maps maps c1 0 0 0 0 51041 41 0 0 27198 12 0 0 0 0 585 2 0 0 0 0 0 0 c2 0 0 0 0 49260 40 3501 1 20090 10 0 0 0 0 772 3 0 0 0 0 0 0 ... Next, for each table, we generate a file showing the total size of each region:\n1 230 2 510 3 1200 The first column is just a line numbering. The region sizes are sorted to make the final chart easier to read.\nFrom there we use gnuplot to generate a histogram of the regions by numbers and by size, and then a per-table chart of the region size distribution. The gnuplot file looks like this:\nset terminal png set key invert reverse Left outside set key autotitle columnheader set boxwidth 0.75 set xtics nomirror rotate by -45 font \u0026#34;,8\u0026#34; set key noenhanced set yrange[0:*] set style histogram rowstacked gap 1 title offset 2, 0.25 set style data histogram set style fill solid border -1 set output \u0026#39;hbase-fig1.png\u0026#39; plot \u0026#39;load.dat\u0026#39; using 3:xtic(1), for [i=2:11] \u0026#39;\u0026#39; using 2*i+1 set output \u0026#39;hbase-fig2.png\u0026#39; plot \u0026#39;load.dat\u0026#39; using 2:xtic(1), for [i=2:11] \u0026#39;\u0026#39; using 2*i set ylabel \u0026#34;Store Size (MB)\u0026#34; set xlabel \u0026#34;Store\u0026#34; unset xtics set output \u0026#39;hbase-fig3.png\u0026#39; plot \u0026#39;splits_edges.dat\u0026#39; using 2:xtic(1) title \u0026#39;edges\u0026#39; Here\u0026rsquo;s the end result (I changed the server and table names but this is otherwise real data):\nIn the above figure, we can see there\u0026rsquo;s a good balance of the number of regions across the region servers. We can also easily see which servers are hosting which regions, such as the important, but small, -ROOT- and .META. tables. So far, so good.\nIn this image, we see that the total size is not very well balanced: server c13 has a lot more data than the others. Taken together, these graphs indicate that our regions are not all the same size. The next image shows this more dramatically.\nHere we see that around 60% of our regions for this table are smaller than 1 Gig, and the remaining 40% are split between 1-2G and 2-4G sizes. We would rather see a baseline at 2G (half the max region size), and the midpoint around 3G assuming evenly distributed splits. In our case, we had increased the region size of our largest table late in the game, so there are a ton of small regions here that we should try to merge.\nSeeing the regions at a glance has been a useful tool. In one case, we got a factor of 8 speedup in a map-reduce job by re-splitting and manually moving regions to ensure that all the regions were evenly distributed across the cluster \u0026ndash; the difference between running a job once a week vs. running it once a day.\n","permalink":"https://bobcopeland.com/blog/2012/04/graphing-hbase-splits/","summary":"\u003cp\u003eI was asked for a blog post on this topic. I also do birthdays!\u003c/p\u003e\n\u003cp\u003eHBase achieves balance by splitting regions when they reach a certain size, and by evenly distributing the number of regions among cluster machines. However, the balancer will not run in some cases (e.g. if there are regions stuck in transition), and balancing the number of regions alone may not help if region sizes are not mostly the same size. If a region server is hosting more regions than the others, requests to that server experience higher latency, and batch (map-reduce) jobs take longer to complete due to parallel skew.\u003c/p\u003e","title":"Graphing HBase Splits"},{"content":"I had a Hadoop map-reduce job that kept timing out, which led to this interesting discovery:\n$ time ./json-parser-test.py real\t0m0.205s user\t0m0.152s sys\t0m0.032s $ time ./json-parser-test-no-speedups.py real\t0m2.069s user\t0m2.044s sys\t0m0.024s $ time jython ./json-parser-test-no-speedups.py real\t79m59.785s user\t80m23.709s sys\t0m14.441s Moral: use Java-based JSON libraries if you have to use Jython and JSON. Also, Java sucks.\n","permalink":"https://bobcopeland.com/blog/2012/03/orders-of-magnitude/","summary":"\u003cp\u003eI had a Hadoop map-reduce job that kept timing out, which led to this interesting discovery:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e$ time ./json-parser-test.py\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ereal\t0m0.205s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003euser\t0m0.152s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003esys\t0m0.032s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e$ time ./json-parser-test-no-speedups.py\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ereal\t0m2.069s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003euser\t0m2.044s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003esys\t0m0.024s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e$ time jython ./json-parser-test-no-speedups.py\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ereal\t79m59.785s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003euser\t80m23.709s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003esys\t0m14.441s\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eMoral: use Java-based JSON libraries if you have to use Jython and JSON. Also, Java sucks.\u003c/p\u003e","title":"Orders of magnitude"},{"content":"I\u0026rsquo;ve been doing a fair amount of HBase work lately at $work, not least of which is pybase, a python module that encapsulates Thrift and puts it under an API that looks more or less like the Cassandra wrapper pycassa (which we also use).\nWhen running an HBase cluster, one must very quickly learn the stack from top to bottom and be ready to fix the metadata when catastrophe strikes. Most of the necessary information about HBase regions is stored in the .META. table; unfortunately some of the values therein are serialized HBase Writables. One usually uses JRuby and directly loads Java classes to deal with the deserialization, but we\u0026rsquo;re a Python shop and doing it all over thrift would be ideal.\nThus, here\u0026rsquo;s a quick module to parse out HRegionInfo along with a few generic helpers for Writables. I haven\u0026rsquo;t decided yet whether this kind of thing belongs in pybase.\nI\u0026rsquo;m curious whether there is an idiomatic way to do advancing pointer type operations in python without returning an index everywhere. Perhaps converting an array to a file-like object? `#!/usr/bin/python import struct def vint_size(byte): if byte \u0026gt;= -112: return 1 if byte \u0026lt;= -120: return -119 - byte return -111 - byte def vint_neg(byte): return byte \u0026lt; -120 or -112 \u0026lt;= byte \u0026lt; 0\ndef read_byte(data, ofs): return (ord(data[ofs]), ofs + 1) def read_long(data, ofs): val = struct.unpack_from(\u0026quot;\u0026gt;q\u0026quot;, data, offset=ofs)[0] return (val, ofs + 8) def read_vint(data, ofs): firstbyte, ofs = read_byte(data, ofs) sz = vint_size(firstbyte) if sz == 1: return (firstbyte, ofs) for i in xrange(0, sz): (nextb, ofs) = read_byte(data, ofs) val = (val \u0026laquo; 8) | nextb if vint_neg(firstbyte): val = ~val return (val, ofs) def read_bool(data, ofs): byte, ofs = read_byte(data, ofs) return (byte != 0, ofs) def read_array(data, ofs): sz, ofs = read_vint(data, ofs) val = data[ofs:ofs+sz] ofs += sz return (val, ofs) def parse_regioninfo(data, ofs): end_key, ofs = read_array(data, ofs) offline, ofs = read_bool(data, ofs) region_id, ofs = read_long(data, ofs) region_name, ofs = read_array(data, ofs) split, ofs = read_bool(data, ofs) start_key, ofs = read_array(data, ofs) # tabledesc: not about to parse this # hashcode: int result = { \u0026rsquo;end_key\u0026rsquo; : end_key, \u0026lsquo;offline\u0026rsquo; : offline, \u0026lsquo;region_id\u0026rsquo; : region_id, \u0026lsquo;region_name\u0026rsquo; : region_name, \u0026lsquo;split\u0026rsquo; : split, \u0026lsquo;start_key\u0026rsquo; : start_key, } return result\n","permalink":"https://bobcopeland.com/blog/2012/02/parsing-hregioninfo-in-python/","summary":"\u003cp\u003eI\u0026rsquo;ve been doing a fair amount of HBase work lately at $work, not least of which is \u003ca href=\"https://github.com/bcopeland/pybase\"\u003epybase\u003c/a\u003e, a python module that encapsulates Thrift and puts it under an API that looks more or less like the Cassandra wrapper \u003ca href=\"https://github.com/pycassa/pycassa\"\u003epycassa\u003c/a\u003e (which we also use).\u003c/p\u003e\n\u003cp\u003eWhen running an HBase cluster, one must very quickly learn the stack from top to bottom and be ready to fix the metadata when catastrophe strikes. Most of the necessary information about HBase regions is stored in the .META. table; unfortunately some of the values therein are serialized HBase Writables. One usually uses JRuby and directly loads Java classes to deal with the deserialization, but we\u0026rsquo;re a Python shop and doing it all over thrift would be ideal.\u003c/p\u003e","title":"Parsing HRegionInfo in Python"},{"content":"I\u0026rsquo;ve changed hosting providers this week, and my new host provisions IPv6 addresses.Â Thus, I\u0026rsquo;ve published an AAAA record today.Â The world\u0026rsquo;s most boring website will survive the IPv4 apocalypse.\nWordpress also gained an update, but the importer forgot all settings, tags and categories.Â I\u0026rsquo;ll go back and fix those someday.\nUpdate: someday is now.Â I\u0026rsquo;ve also picked last year\u0026rsquo;s theme and otherwise modernized the place.Â Resume party.Â Also, the header image is a pic I snapped of a piece of Eniac.Â It\u0026rsquo;s partially full of tubes.\n","permalink":"https://bobcopeland.com/blog/2012/02/ip-level-up/","summary":"\u003cp\u003eI\u0026rsquo;ve changed hosting providers this week, and my new host provisions IPv6 addresses.Â  Thus, I\u0026rsquo;ve published an AAAA record today.Â  The world\u0026rsquo;s most boring website will survive the IPv4 apocalypse.\u003c/p\u003e\n\u003cp\u003eWordpress also gained an update, but the importer forgot all settings, tags and categories.Â  I\u0026rsquo;ll go back and fix those someday.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eUpdate:\u003c/strong\u003e someday is now.Â  I\u0026rsquo;ve also picked last year\u0026rsquo;s theme and otherwise modernized the place.Â  Resume party.Â  Also, the header image is a pic I snapped of a piece of Eniac.Â  It\u0026rsquo;s partially full of tubes.\u003c/p\u003e","title":"IP level up"},{"content":"Here\u0026rsquo;s my methodology for part 1 of the Can You Crack It puzzle.\n(Spoilers below)\neb 04 af c2 bf a3 81 ec 00 01 00 00 31 c9 88 0c 0c fe c1 75 f9 31 c0 ba ef be ad de 02 04 0c 00 d0 c1 ca 08 8a 1c 0c 8a 3c 04 88 1c 04 88 3c 0c fe c1 75 e8 e9 5c 00 00 00 89 e3 81 c3 04 00 00 00 5c 58 3d 41 41 41 41 75 43 58 3d 42 42 42 42 75 3b 5a 89 d1 89 e6 89 df 29 cf f3 a4 89 de 89 d1 89 df 29 cf 31 c0 31 db 31 d2 fe c0 02 1c 06 8a 14 06 8a 34 1e 88 34 06 88 14 1e 00 f2 30 f6 8a 1c 16 8a 17 30 da 88 17 47 49 75 de 31 db 89 d8 fe c0 cd 80 90 90 e8 9d ff ff ff 41 41 41 41 Anyone who has stared long and hard at x86 hexdumps before will immediately think \u0026ldquo;I know this, this is an intel system!\u0026rdquo; The value 0xdeadbeef in little-endian format is a dead-giveaway, as are the 0x90 (NOP) instructions. I know a couple of ways to go from a block of machine code to the corresponding code. One way, like scripts/decodecode in the kernel, is to make a .S file with .byte directives, assemble it, and run objdump over the object file.\nHere\u0026rsquo;s another way, and what I did at first: create a .c file like so, and compile it:\n$ cat foo.c unsigned char x[] = { /* list of hexes here */ }; int main() { } $ gcc -g -o foo foo.c Then, load it up in gdb and disassemble as if it were a function:\n$ gdb foo gdb\u0026gt; disas x That procedure yielded some interesting bits of hand-coded assembly, but at this point I had no idea what it did. I cleaned up the code a bit and added labels to arrive at a listing like the following:\njmp l1 scas %es:(%edi), %eax ret $0xa3bf l1: sub $0x100, %esp xor %ecx, %ecx loop1: mov %cl,(%esp,%ecx,1) inc %cl jne loop1 xor %eax, %eax mov $0xdeadbeef, %edx loop2: add (%esp,%ecx,1),%al add %dl,%al ror $0x8, %edx mov (%esp,%ecx,1),%bl mov (%esp,%eax,1),%bh mov %bl,(%esp,%eax,1) mov %bh,(%esp,%ecx,1) inc %cl jne loop2 jmp l2 func1: mov %esp, %ebx add $0x4, %ebx pop %esp pop %eax cmp $0x41414141,%eax jne quit pop %eax cmp $0x42424242,%eax jne quit pop %edx mov %edx,%ecx mov %esp,%esi mov %ebx,%edi sub %ecx,%edi rep movsb %ds:(%esi),%es:(%edi) mov %ebx,%esi mov %edx,%ecx mov %ebx,%edi sub %ecx,%edi xor %eax,%eax xor %ebx,%ebx xor %edx,%edx loop3: inc %al add (%esi,%eax,1),%bl mov (%esi,%eax,1),%dl mov (%esi,%ebx,1),%dh mov %dh,(%esi,%eax,1) mov %dl,(%esi,%ebx,1) add %dh, %dl xor %dh,%dh mov (%esi,%edx,1),%bl mov (%edi),%dl xor %bl,%dl mov %dl,(%edi) inc %edi dec %ecx jne loop3 quit: xor %ebx,%ebx mov %ebx,%eax inc %al int $0x80 l2: nop nop call func1 .byte 0x41, 0x41, 0x41, 0x41 The first thing I looked at was the int 0x80 call. This is how (well, one way) you make a system call on Linux. The %ebx register is always zero, and %eax is one. This handy website shows that such a syscall results in a call to sys_exit(). Thus I added the label quit to this bit of code.\nAt a high level, we then have a loop at loop1 that initializes some data on the stack; loop2, which performs some unknown calculation on that array; func1, a function which itself performs another loop. A close inspection reveals that func1 uses the output of loop2 as an input, along with data at the end of the program, beginning with 0x41414141.\nDeciphering loop2 is an interesting exercise. The initializer creates a 256-byte character array with sequential values from 0 to 255. Then it uses the value 0xdeadbeef to generate an index in %eax, which is used here:\nmov (%esp,%ecx,1),%bl mov (%esp,%eax,1),%bh mov %bl,(%esp,%eax,1) mov %bh,(%esp,%ecx,1) This is a swap operation, so after 256 iterations, the array will have been permuted. This looked to me like some kind of random shuffle, with 0xdeadbeef as a seed, but I was unfamiliar with its actual purpose. I wrote a C version just to make it clearer:\nint firstpart(unsigned char *x, size_t len) { int i; unsigned char tmp, a = 0; uint32_t d = 0xdeadbeef; for (i=0; i \u0026lt; len; i++) x[i] = i; for (i=0; i \u0026lt; len; i++) { a += x[i] + d; d = (d \u0026gt;\u0026gt; 8) | (d \u0026lt;\u0026lt; 24); tmp = x[i]; x[i] = x[a]; x[a] = tmp; } } Likewise, the func1 was doing some kind of shuffle, and xor-ing the result with another block of data. This screams crypto to me, but I still didn\u0026rsquo;t know exactly what func1 was doing. I wrote a C version:\nint second_part(unsigned char *x, unsigned char *y, size_t len) { unsigned char a = 0; unsigned char b = 0; unsigned char tmp; int i; for (i=0; i \u0026lt; len; i++) { a = i+1; b += x[a]; tmp = x[a]; x[a] = x[b]; x[b] = tmp; b = x[(x[a] + x[b]) \u0026amp; 0xff]; y[i] ^= b; } } On the crypto hunch, I started reading random wikipedia pages, until I stumbled across the pseudocode on the RC4 page. Aha! This is RC4 with a key of 0xdeadbeef. I never guessed RC4 was so simple.\nAt this point, I had this whole block of code figured out, could run it fully in my C variant, but knew I needed ciphertext to go at the end of the program and didn\u0026rsquo;t know where to find it. Asking the internet gave me the hint to look inside the image file with the code dump, and the rest was easy to figure out.\nSolving the puzzle yields a link to a javascript page where you are to write a virtual machine and run it to reveal the next stage. I implemented the machine in Python but it still needs a bit of debugging to give up its secret.\n","permalink":"https://bobcopeland.com/blog/2011/12/how-i-nearly-cracked-it/","summary":"\u003cp\u003eHere\u0026rsquo;s my methodology for part 1 of the Can You Crack It puzzle.\u003c/p\u003e\n\u003cp\u003e(Spoilers below)\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eeb 04 af c2 bf a3 81 ec  00 01 00 00 31 c9 88 0c\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e0c fe c1 75 f9 31 c0 ba  ef be ad de 02 04 0c 00\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ed0 c1 ca 08 8a 1c 0c 8a  3c 04 88 1c 04 88 3c 0c\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003efe c1 75 e8 e9 5c 00 00  00 89 e3 81 c3 04 00 00\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e00 5c 58 3d 41 41 41 41  75 43 58 3d 42 42 42 42\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e75 3b 5a 89 d1 89 e6 89  df 29 cf f3 a4 89 de 89\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ed1 89 df 29 cf 31 c0 31  db 31 d2 fe c0 02 1c 06\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e8a 14 06 8a 34 1e 88 34  06 88 14 1e 00 f2 30 f6\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e8a 1c 16 8a 17 30 da 88  17 47 49 75 de 31 db 89\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ed8 fe c0 cd 80 90 90 e8  9d ff ff ff 41 41 41 41\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eAnyone who has stared long and hard at x86 hexdumps before will immediately think \u0026ldquo;I know this, this is an intel system!\u0026rdquo; The value 0xdeadbeef in little-endian format is a dead-giveaway, as are the 0x90 (NOP) instructions. I know a couple of ways to go from a block of machine code to the corresponding code. One way, like scripts/decodecode in the kernel, is to make a .S file with .byte directives, assemble it, and run objdump over the object file.\u003c/p\u003e","title":"How I nearly cracked it"},{"content":"The GCHQ (that\u0026rsquo;s British for NSA) has been running a marketing gimmick to find new people to read your tweets. On this website, you will find an enigmatic hexdump, and a prompt for a keyword. Supposedly if you get it correct, then you get forwarded to their job site. I don\u0026rsquo;t care about the job aspect, but I do enjoy a good puzzle.\nI\u0026rsquo;ll add my details and methodology in a follow-up post after the clock runs out, so as not to spoil anything for casual readers who want to take their own look. There are a few good clues in the hexdump if you have previously spent any time looking at real ones.\nI did (almost) crack it: I figured out all there was to know about the hexdump. It became clear at that point that the hexes on the website aren\u0026rsquo;t everything you need for the puzzle, so I cheated to find the missing piece (somewhat obvious, in retrospect). A neat exercise, and I learned something about cryptography.\nNow I\u0026rsquo;m on the second stage, which is a bit more straightforward in that the problem statement tells you what type of answer is expected.\nI\u0026rsquo;m curious to know if this type of recruitment tool is actually useful in finding qualified applicants, or just in generating buzz. Certainly several companies I\u0026rsquo;ve worked at have had their share of recruiting woes, and dreaming up a set of screening puzzles has to be more fun than dealing with headhunters.\n","permalink":"https://bobcopeland.com/blog/2011/12/i-can-nearly-crack-it/","summary":"\u003cp\u003eThe GCHQ (that\u0026rsquo;s British for NSA) has been running a marketing gimmick to find new people to read your tweets. On \u003ca href=\"http://canyoucrackit.co.uk/\"\u003ethis website\u003c/a\u003e, you will find an enigmatic hexdump, and a prompt for a keyword. Supposedly if you get it correct, then you get forwarded to their job site. I don\u0026rsquo;t care about the job aspect, but I do enjoy a good puzzle.\u003c/p\u003e\n\u003cp\u003eI\u0026rsquo;ll add my details and methodology in a follow-up post after the clock runs out, so as not to spoil anything for casual readers who want to take their own look. There are a few good clues in the hexdump if you have previously spent any time looking at real ones.\u003c/p\u003e","title":"I can nearly crack it"},{"content":"Lifehacker is always suggesting super-complicated GUI applications for keeping track of one\u0026rsquo;s billing hours or making todo lists. Here\u0026rsquo;s my 10-minute solution that I\u0026rsquo;ve been using for a while \u0026ndash; ~/bin/wl:\n#! /bin/bash if [[ -z $1 ]]; then cat ~/docs/worklog.`date +%Y-%m` else (d=`date +\u0026#34;%Y-%m-%d %H:%M:%S\u0026#34;`; echo \u0026#34;$d\u0026#34; $@)\u0026gt;\u0026gt; ~/docs/worklog.`date +%Y-%m` fi I use it like this:\n$ wl something goes here $ wl tkt 192323 - remove n**2 loop from the frobnicator $ wl 2011-11-04 09:55:56 something goes here 2011-11-04 09:56:07 tkt 192323 - remove n**2 loop from the frobnicator I also sometimes start a log message with a single upper-case or symbol character to indicate something else; e.g., \u0026ldquo;^\u0026rdquo; means start of a block of time, \u0026ldquo;$\u0026rdquo; means end, \u0026ldquo;T\u0026rdquo; means todo, etc. It isn\u0026rsquo;t perfect \u0026ndash; sometimes you have to escape shell meta-characters, but it beats using a mouse, and the backing format is plain old text so grep/vi/etc still work.\n","permalink":"https://bobcopeland.com/blog/2011/11/bare-bones-time-tracker/","summary":"\u003cp\u003eLifehacker is always suggesting super-complicated GUI applications for keeping track of one\u0026rsquo;s billing hours or making todo lists. Here\u0026rsquo;s my 10-minute solution that I\u0026rsquo;ve been using for a while \u0026ndash; ~/bin/wl:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#75715e\"\u003e#! /bin/bash\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#66d9ef\"\u003eif\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e[[\u003c/span\u003e -z $1 \u003cspan style=\"color:#f92672\"\u003e]]\u003c/span\u003e; \u003cspan style=\"color:#66d9ef\"\u003ethen\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    cat ~/docs/worklog.\u003cspan style=\"color:#e6db74\"\u003e`\u003c/span\u003edate +%Y-%m\u003cspan style=\"color:#e6db74\"\u003e`\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#66d9ef\"\u003eelse\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    \u003cspan style=\"color:#f92672\"\u003e(\u003c/span\u003ed\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e\u003cspan style=\"color:#e6db74\"\u003e`\u003c/span\u003edate +\u003cspan style=\"color:#e6db74\"\u003e\u0026#34;%Y-%m-%d %H:%M:%S\u0026#34;\u003c/span\u003e\u003cspan style=\"color:#e6db74\"\u003e`\u003c/span\u003e; echo \u003cspan style=\"color:#e6db74\"\u003e\u0026#34;\u003c/span\u003e$d\u003cspan style=\"color:#e6db74\"\u003e\u0026#34;\u003c/span\u003e $@\u003cspan style=\"color:#f92672\"\u003e)\u003c/span\u003e\u0026gt;\u0026gt; ~/docs/worklog.\u003cspan style=\"color:#e6db74\"\u003e`\u003c/span\u003edate +%Y-%m\u003cspan style=\"color:#e6db74\"\u003e`\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#66d9ef\"\u003efi\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eI use it like this:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e$ wl something goes here\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e$ wl tkt 192323 - remove n**2 loop from the frobnicator\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e$ wl\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e2011-11-04 09:55:56 something goes here\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e2011-11-04 09:56:07 tkt 192323 - remove n**2 loop from the frobnicator\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eI also sometimes start a log message with a single upper-case or symbol character to indicate something else; e.g., \u0026ldquo;^\u0026rdquo; means start of a block of time, \u0026ldquo;$\u0026rdquo; means end, \u0026ldquo;T\u0026rdquo; means todo, etc. It isn\u0026rsquo;t perfect \u0026ndash; sometimes you have to escape shell meta-characters, but it beats using a mouse, and the backing format is plain old text so grep/vi/etc still work.\u003c/p\u003e","title":"Bare-bones time tracker"},{"content":" I made two Jack-o-lanterns this year. On the left we have Elmo and Cookie Monster, a nod to our 16-month-old\u0026rsquo;s second Halloween. On the right, my best attempt at a cacodemon from the old video game Doom. My general technique is to sketch up the design in Inkscape, print it out, transfer the design to the pumpkin somehow, then go to work with one of those little pumpkin carving saws. The cacodemon was a bit simpler so I skipped Inkscape and free-handed it with a sharpie.\nWe tried toasting the pumpkin seeds. While edible, I found the eating experience akin to that of eating un-popped popcorn kernels. I\u0026rsquo;ll probably give this experiment a miss next year.\nIn Canada, giving out chips is almost as popular as giving out candy. As new Canadians, we are following suit: visitors to our house will get tiny bags of Doritos. I guess that means no Coffee Crisps, Aero bars, or Smarties for me (these locally available confections have yet to cross the Lake).\nI also had grandiose plans to make Alex a costume, but faith in my fabric sewing skills waned a bit as the deadline approached. Angeline saved the day by picking up a costume at the local Carter\u0026rsquo;s, so he\u0026rsquo;ll be a tiger this year. Fear.\n","permalink":"https://bobcopeland.com/blog/2011/10/halloween-2/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/6296213785/\" title=\"Jack-o-lanterns 2011 by bluesterror, on Flickr\"\u003e\u003cimg alt=\"Jack-o-lanterns 2011\" loading=\"lazy\" src=\"http://farm7.static.flickr.com/6032/6296213785_53dfa97640_m.jpg\"\u003e\u003c/a\u003e I made two Jack-o-lanterns this year. On the left we have Elmo and Cookie Monster, a nod to our 16-month-old\u0026rsquo;s second Halloween. On the right, my best attempt at a cacodemon from the old video game Doom. My general technique is to sketch up the design in Inkscape, print it out, transfer the design to the pumpkin somehow, then go to work with one of those little pumpkin carving saws. The cacodemon was a bit simpler so I skipped Inkscape and free-handed it with a sharpie.\u003c/p\u003e","title":"Halloween!"},{"content":"My previous key isn\u0026rsquo;t yet two years old, but given the recent kernel.org reboot, I created a new keypair today. The fingerprint is:\n11FB F4D3 92A6 F32B CB4E 2E07 8411 1007 23B2 B915 The old key will be valid for a little while longer. As for korg, perhaps it\u0026rsquo;s time I used github anyway. My OMFS tree is over there now, lonely and waiting for me to feed him some patches.\n","permalink":"https://bobcopeland.com/blog/2011/10/new-gpg-key-2/","summary":"\u003cp\u003eMy \u003ca href=\"/blog/2010/01/new-gpg-key/\"\u003eprevious key\u003c/a\u003e isn\u0026rsquo;t yet two years old, but given the \u003ca href=\"https://lwn.net/Articles/461236/\"\u003erecent kernel.org reboot\u003c/a\u003e, I created a new keypair today. The fingerprint is:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e11FB F4D3 92A6 F32B CB4E  2E07 8411 1007 23B2 B915\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eThe old key will be valid for a little while longer. As for korg, perhaps it\u0026rsquo;s time I used github anyway. My OMFS tree is over there now, lonely and waiting for me to feed him some patches.\u003c/p\u003e","title":"New GPG key"},{"content":"My family picked up and moved from the DC area to the surroundings of Toronto last week, and we still have all our limbs intact! My wife and son are here as citizens, while I am a lowly visitor, at least until my immigration paperwork goes through.\nWe are in the so-called Greater Toronto Area (GTA), which means we are in the part of Canada that is not Montreal, Vancouver, or Toronto itself. That\u0026rsquo;s Greater-with-a-capital-G: it\u0026rsquo;s about a 90 minute drive to get downtown from here.\nSo far my experience as a Canadian resident is much the same as that as a US resident. One must just learn the proper mental substitutions: Comcast is now Rogers, Target is Zellers, Digiorno is Delissio, Nabisco is Mr. Christie, bathroom is washroom, miles are kilometers, degrees Fahrenheit are now degrees Celsius, Throwing Away Garbage is now Composting.\nThings are expensive. A whole chicken costs $12, while it would be $7 at our previous place. And the Canadian dollar is more or less at parity with USD these days so that\u0026rsquo;s still real money. Albeit money that comes in various pretty colors and shiny coins.\nWe live near one \u0026ldquo;Taunton Road.\u0026rdquo; I can\u0026rsquo;t shake the image of the internal organs of Hothian beasts whenever I drive on this one.\nMoving our 92 boxes worth of earthly goods (among them, over 600 books) turned out to be easier than we expected, apart from the two weeks of packing time. Customs took us about two hours in all. The movers delivered our stuff within a week. It will still be some time before various wrinkles, such as managing to receive snail mail, are ironed out, but hopefully before long this house we are renting will feel like home.\nTo our stateside friends, look us up if you happen this way. Our email addresses survived the move but not much else in the way of contact info.\n","permalink":"https://bobcopeland.com/blog/2011/09/hello-from-canada/","summary":"\u003cp\u003eMy family picked up and moved from the DC area to the surroundings of Toronto last week, and we still have all our limbs intact! My wife and son are here as citizens, while I am a lowly visitor, at least until my immigration paperwork goes through.\u003c/p\u003e\n\u003cp\u003eWe are in the so-called Greater Toronto Area (GTA), which means we are in the part of Canada that is not Montreal, Vancouver, or Toronto itself. That\u0026rsquo;s Greater-with-a-capital-G: it\u0026rsquo;s about a 90 minute drive to get downtown from here.\u003c/p\u003e","title":"Hello from Canada!"},{"content":"My son Alex turned one a couple of weeks ago. (If you are reading this, Alex, happy birthday, and congratulations for learning to read at such an early age!) He picked up quite a stash of loot as a result.\nMoore\u0026rsquo;s law means that the processing power of his toy box very likely exceeds that of my first computer by a large factor. As one example, he received a My Pal Scout talking stuffed animal as a gift. A toy that comes with a USB cable \u0026ndash; this is progress! You can customize the toy to say and spell your child\u0026rsquo;s name, and pick different tunes for it to play.\nMy inner geek has been wondering what\u0026rsquo;s inside ever since, but of course I cannot take apart or otherwise ruin my kid\u0026rsquo;s toy in the name of science. I did, however, plug it in to my Linux box while he was napping. A quick dmesg showed the device implements USB storage, but always responds with \u0026lsquo;Medium Not Present\u0026rsquo; when accessed. I guessed (incorrectly) that some extra magic might make the internal flash appear as a disk and then files are just copied to a FAT filesystem stored therein. The toy is relatively inexpensive and coming up with too much special sauce is likely to be prohibitively costly.\nUSB storage is a successful example of taking an existing protocol (SCSI command set) and wholesale wrapping it in a different wire protocol. Each USB storage transfer is initiated by the host sending a Command Block Wrapper (CBW) \u0026ndash; a 31-byte USB packet starting with \u0026lsquo;USBC\u0026rsquo;, typically containing a SCSI command as a payload. Next, a block of data is transferred if this command represents a read or write. Finally, the device completes the transaction by sending a Command Status Wrapper (CSW), a 13-byte packet beginning with the string \u0026lsquo;USBS\u0026rsquo;.\nOne can get a feel for the flavor of the protocol by using usbmon. Much like an ethernet sniffer, usbmon provides a simple mechanism under Linux to capture USB traffic. A simple session might look like:\n` # cat /sys/kernel/debug/usb/usbmon/4u \u0026gt; usbmon.txt\nOne might even potentially run usbmon on a host OS while some other OS is running as a guest in a virtual machine with USB pass-through. The upshot of the layered approach to USB storage is that Linux creates a generic SCSI device ( `/dev/sgX`) for any USB storage device. Using the generic device, one can directly send SCSI commands to the USB device, and the kernel will take care of wrapping it in USB commands. I believe something similar is possible in Windows land. As it turns out, Scout is even simpler than I imagined. The internal flash has no controller or filesystem; instead it appears to be a raw NAND flash written a page at a time. It is a simple matter to read the flash using the Linux sg device. One merely opens the device file, and then issues a vendor-specific SCSI command on the file descriptor: `static int read_page(int fd, u32 addr) { u8 cmdblk[] = { 0xfd, /* access flash */ 0x28, /* read it (0x20 = write) */ 0, 0, 0, 0, 0x06, 0, 0x08, 0, /* no idea what the rest is */ 0, 0, 0, 0, 0x47, 0x50 }; u8 response_buf[4096]; u8 sense_buffer[32]; cmdblk[2] = (addr \u0026gt;\u0026gt; 24) \u0026amp; 0xff; cmdblk[3] = (addr \u0026gt;\u0026gt; 16) \u0026amp; 0xff; cmdblk[4] = (addr \u0026gt;\u0026gt; 8) \u0026amp; 0xff; cmdblk[5] = addr \u0026amp; 0xff; sg_io_hdr_t io_hdr = { .interface_id = \u0026#39;S\u0026#39;, .cmd_len = sizeof(cmdblk), .mx_sb_len = sizeof(sense_buffer), .dxfer_direction = SG_DXFER_FROM_DEV, .dxfer_len = sizeof(response_buf), .dxferp = response_buf, .cmdp = cmdblk, .sbp = sense_buffer, .timeout = 20000 }; ioctl(fd, SG_IO, \u0026amp;io_hdr); /* do something with response_buf here */ return 0; } Reading addresses 0x01000 through 0x10000, 4k at a time, seems to yield the customizable data on the device. The flash is tiny: this is just 64k, yet you can upload a digital audio file of your child\u0026rsquo;s name plus ten songs.\nThe data format is rather simple: there is a 30-byte header starting at address 0x1000, containing 16-bit, little-endian pointers for the customized files. Address 0x1008 holds a pointer to the spelling of your child\u0026rsquo;s name, address 0x100e holds a pointer to the audio file pronouncing your child\u0026rsquo;s name, and so on. Armed with the Leapfrog software and a packet sniffer, one can verify that these files do indeed match the individual binary files that the software downloads over HTTP when syncing the puppy.\nI believe the digital audio files are some flavor of raw 8 kHz PCM, but I could not find the right combination of parameters to sox to make sense out of them. The song files are all apparently compressed with TTComp, some compression program from 1995. Running ttdecomp.exe from within dosemu did successfully decompress them. My guess is these files are some sort of sequencer format rather than sampled audio, given their tiny size.\nThis is, I think, as far as I wish to investigate the toy. Obvious exercises for the interested reader are to discern the individual file formats, and have the toy play Metallica. It\u0026rsquo;s pretty incredible how much technology can be cheaply packed into a child\u0026rsquo;s plaything today. But now I have my eye on dissecting that (non-electronic) toy inchworm \u0026ndash; is there a spring in there or what?\n","permalink":"https://bobcopeland.com/blog/2011/07/my-pal-scsi/","summary":"\u003cp\u003eMy son Alex \u003ca href=\"/blog/2010/06/new-syscall-proposal/\"\u003eturned one\u003c/a\u003e a couple of weeks ago. (If you are reading this, Alex, happy birthday, and congratulations for learning to read at such an early age!) He picked up quite a stash of loot as a result.\u003c/p\u003e\n\u003cp\u003eMoore\u0026rsquo;s law means that the processing power of his toy box very likely exceeds that of my first computer by a large factor. As one example, he received a \u003ca href=\"http://www.amazon.com/LeapFrog-19156-My-Pal-Scout/dp/B001W30D2O\"\u003eMy Pal Scout\u003c/a\u003e talking stuffed animal as a gift. A toy that comes with a USB cable \u0026ndash; this is progress! You can customize the toy to say and spell your child\u0026rsquo;s name, and pick different tunes for it to play.\u003c/p\u003e","title":"My Pal SCSI"},{"content":"This question is for someone slightly more motivated: why is qemu-img so slow to convert from a raw disk image to a VMware (vmdk) image? Apparently it does some compression or null-block elimination, as the resulting file is about 30% smaller, but I was not expecting it to take an entire day to convert a 100 gig disk. To get the answer to a first approximation without actually reading the source, I did a quick run with blktrace and seekwatcher: So we get a nice sequential read pattern, but excessive think time between the reads. Probably, reading bigger blocks would help, or something like posix_fadvise(POSIX_FADV_SEQUENTIAL). Iostat showed the disk was reading exactly 2k sectors (1MB) per second, when it should be able to do 50-100 times that.\nI just decided to wait a day rather than learn and hack the source.\n","permalink":"https://bobcopeland.com/blog/2011/07/fast-for-a-modem/","summary":"\u003cp\u003eThis question is for someone slightly more motivated: why is qemu-img so slow to convert from a raw disk image to a VMware (vmdk) image? Apparently it does some compression or null-block elimination, as the resulting file is about 30% smaller, but I was not expecting it to take an entire day to convert a 100 gig disk. To get the answer to a first approximation without actually reading the source, I did a quick run with blktrace and seekwatcher:\n\u003cimg loading=\"lazy\" src=\"/images/lj/qemu-img.png\"\u003e\nSo we get a nice sequential read pattern, but excessive think time between the reads. Probably, reading bigger blocks would help, or something like posix_fadvise(POSIX_FADV_SEQUENTIAL). Iostat showed the disk was reading exactly 2k sectors (1MB) per second, when it should be able to do 50-100 times that.\u003c/p\u003e","title":"Fast... for a modem"},{"content":"I always learn something new when doing some misguided thing such as \u0026ldquo;let\u0026rsquo;s copy our OS onto a new disk using tar like they did back in the day!\u0026rdquo; The impetus was a shiny new OCZ Vertex 3 to replace the spinning rust in my ancient Macbook. As a co-worker says, it\u0026rsquo;s like putting a gold steering wheel in a 1970 Pinto. My plan was roughly to:\nStuff the new drive in the desktop\nMake a tar backup of the old laptop drive across the network to the desktop\nPartition new drive, aligning to flash block sizes\nMount the new partition somewhere, and untar the backup\nChroot in the new directory, and do a grub-install\nSimple. All of that went great, I thought.\nThe first hurdle when swapping the new drive in was a physical one: the laptop disk bay uses Torx, smaller ones than any adapters I have. This obstacle was cleared by creative use of needle-nosed pliers, and I was on to my first boot attempt, and subsequent failure.\nAmong the exciting new discoveries:\nYou really, really need to remember to mark /boot as bootable. Otherwise, the dumb Mac firmware will give you the blinking question mark despite all of your previous care.\nIf your user/groups don\u0026rsquo;t match between the two systems, you probably just borked up a bunch of uid/gids. Luckily there are the -nouser and -nogroup args to find, and almost everything outside of /home is root:root.\nOnce again, Macs won\u0026rsquo;t boot a rescue USB flash drive unless it has EFI crud laying around in the root directory.\nUUID-based fstab and grub.conf are not happy when you have an entirely new drive\nDebian tar doesn\u0026rsquo;t understand xattrs, that\u0026rsquo;s a RedHat feature (although I caught this one in time and compiled RedHat\u0026rsquo;s tar on the Debian system).\nOn the whole though, it wasn\u0026rsquo;t too bad. The install took maybe twice as long as installing from media and restoring my usual backup despite the mistakes, and this way I don\u0026rsquo;t have to reinstall huge numbers of packages to get back to where I was. And so far the drive seems quite speedy, even with my sad 1.5 Mbps interface. Plus it doesn\u0026rsquo;t hurt that the installation did a giant defrag of the whole OS.\n","permalink":"https://bobcopeland.com/blog/2011/06/my-drive-is-now-solid-state/","summary":"\u003cp\u003eI always learn something new when doing some misguided thing such as \u0026ldquo;let\u0026rsquo;s copy our OS onto a new disk using tar like they did back in the day!\u0026rdquo; The impetus was a shiny new OCZ Vertex 3 to replace the spinning rust in my ancient Macbook. As a co-worker says, it\u0026rsquo;s like putting a gold steering wheel in a 1970 Pinto. My plan was roughly to:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eStuff the new drive in the desktop\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eMake a tar backup of the old laptop drive across the network to the desktop\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003ePartition new drive, aligning to flash block sizes\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eMount the new partition somewhere, and untar the backup\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eChroot in the new directory, and do a grub-install\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e","title":"My drive is now solid state"},{"content":" I found time about a month ago to finish up my facet kite, just ahead of my family\u0026rsquo;s trip to the beach. Of course, the spars are too big for our suitcases, so it got left at home. Since then we haven\u0026rsquo;t had the free weekend to get it up in the sky.\nAs they say, until it flies, it\u0026rsquo;s just art. But here\u0026rsquo;s a picture of the final assembly anyway. To give a sense of scale, the kite is about 1.2 meters tall.\n","permalink":"https://bobcopeland.com/blog/2011/06/build-complete/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/rosewater0304/5759767793/\" title=\"293 by rosewater0304, on Flickr\"\u003e\u003cimg alt=\"293\" loading=\"lazy\" src=\"http://farm6.static.flickr.com/5189/5759767793_27a38bf6c1_m.jpg\"\u003e\u003c/a\u003e I found time about a month ago to finish up my facet kite, just ahead of my family\u0026rsquo;s trip to the beach. Of course, the spars are too big for our suitcases, so it got left at home. Since then we haven\u0026rsquo;t had the free weekend to get it up in the sky.\u003c/p\u003e\n\u003cp\u003eAs they say, until it flies, it\u0026rsquo;s just art. But here\u0026rsquo;s a picture of the final assembly anyway. To give a sense of scale, the kite is about 1.2 meters tall.\u003c/p\u003e","title":"Build complete"},{"content":"Despite comments requiring moderation before posting, I\u0026rsquo;ve had a flood of thousands of spam comments over the last few days in the queue and I\u0026rsquo;m tired of pressing the delete button. Thus, they are disabled for the time being until I can set up something more automated.\nSorry spammers, none of those posts ever made it to any web crawler.\nUpdate: or not. Of course WP makes this hard. Well you can\u0026rsquo;t comment on this one post at least!\n","permalink":"https://bobcopeland.com/blog/2011/05/no-comment/","summary":"\u003cp\u003eDespite comments requiring moderation before posting, I\u0026rsquo;ve had a flood of thousands of spam comments over the last few days in the queue and I\u0026rsquo;m tired of pressing the delete button. Thus, they are disabled for the time being until I can set up something more automated.\u003c/p\u003e\n\u003cp\u003eSorry spammers, none of those posts ever made it to any web crawler.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eUpdate\u003c/strong\u003e: or not. Of course WP makes this hard. Well you can\u0026rsquo;t comment on this one post at least!\u003c/p\u003e","title":"No comment."},{"content":" I finished reinforcements on my facet kite about a month ago, and there my project sat as I waited for supplies to come in. Last Thursday the shipment arrived, so when I got a free hour this weekend, I did the edge binding on four of the eight panels. On all of my previous kites, I used double-folded hems, where, as the name suggests, you fold the edge of the sail over twice and then sew it flat. With edge binding, you instead fold and sew a separate piece of material along the cut edge. Edge binding seems like it would be easier, but I find that it\u0026rsquo;s a bit of a battle to keep the sail and binding material aligned. Perhaps some sticky tape would help, but that just adds to the build time. On the other hand, binding can look nicer since the border stands out.\nAfter I finish the bindings, there\u0026rsquo;s a bit more sewing, and then it\u0026rsquo;s ready for framing and its first flight.\n","permalink":"https://bobcopeland.com/blog/2011/04/edge-binding/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/5629720648/\" title=\"Edge binding\"\u003e\u003cimg alt=\"Edge binding by bluesterror\" loading=\"lazy\" src=\"http://farm6.static.flickr.com/5227/5629720648_26228aa834_m.jpg\"\u003e\u003c/a\u003e I finished reinforcements on my facet kite about a month ago, and there my project sat as I waited for supplies to come in. Last Thursday the shipment arrived, so when I got a free hour this weekend, I did the edge binding on four of the eight panels. On all of my previous kites, I used double-folded hems, where, as the name suggests, you fold the edge of the sail over twice and then sew it flat. With edge binding, you instead fold and sew a separate piece of material along the cut edge. Edge binding seems like it would be easier, but I find that it\u0026rsquo;s a bit of a battle to keep the sail and binding material aligned. Perhaps some sticky tape would help, but that just adds to the build time. On the other hand, binding can look nicer since the border stands out.\u003c/p\u003e","title":"Edge binding"},{"content":"So the blog mysteriously committed suicide recently, so I took the opportunity to update to the latest Wordpress. Everything now seems to be in order. Perhaps I should also upgrade the theme one of these days.\nAlso committing suicide this weekend was the two year old Ubuntu installation on my laptop. The automatic upgrade to 10.04 resulted in a non-bootable mess (it turns out this was merely foreshadowing), so I took a backup and then dropped the F15 alpha on it to see what the Gnome3 Shell hubbub is all about. It does make my computer feel like a giant cell phone, but I do actually hate it less than I thought I would. We\u0026rsquo;ll see if that faint praise holds up after I use it a bit. The actual F15 installation took four tries, all due to my Macbook\u0026rsquo;s quirky half-EFI, half-BIOS firmware. No manner of coercion would convince Fedora to make a hybrid GPT/MBR partition table that actually booted, so I eventually gave up and just created a plain MBR with fdisk and that was that. A full day of reloading the backup and updating packages later, and I am back to a functional desktop, sans all those pesky minimize buttons.\n","permalink":"https://bobcopeland.com/blog/2011/04/updates/","summary":"\u003cp\u003eSo the blog mysteriously committed suicide recently, so I took the opportunity to update to the latest Wordpress. Everything now seems to be in order. Perhaps I should also upgrade the theme one of these days.\u003c/p\u003e\n\u003cp\u003eAlso committing suicide this weekend was the two year old Ubuntu installation on my laptop. The automatic upgrade to 10.04 resulted in a non-bootable mess (it turns out this was merely foreshadowing), so I took a backup and then dropped the F15 alpha on it to see what the Gnome3 Shell hubbub is all about. It does make my computer feel like a giant cell phone, but I do actually hate it less than I thought I would. We\u0026rsquo;ll see if that faint praise holds up after I use it a bit. The actual F15 installation took four tries, all due to my Macbook\u0026rsquo;s quirky half-EFI, half-BIOS firmware. No manner of coercion would convince Fedora to make a hybrid GPT/MBR partition table that actually booted, so I eventually gave up and just created a plain MBR with fdisk and that was that. A full day of reloading the backup and updating packages later, and I am back to a functional desktop, sans all those pesky minimize buttons.\u003c/p\u003e","title":"Updates"},{"content":"Occasionally, rewriting other people\u0026rsquo;s code can be its own reward: 88 times speedup is not too bad for a few days\u0026rsquo; work.\n","permalink":"https://bobcopeland.com/blog/2011/04/wirths-law-avenged/","summary":"\u003cp\u003eOccasionally, rewriting other people\u0026rsquo;s code can be its own reward:\n\u003cimg loading=\"lazy\" src=\"/images/restore.png\"\u003e\u003c/p\u003e\n\u003cp\u003e88 times speedup is not too bad for a few days\u0026rsquo; work.\u003c/p\u003e","title":"Wirth's Law avenged"},{"content":"I\u0026rsquo;m just going on record to state that the two reasons I\u0026rsquo;ve seen on the net for lack of tree-based collections in the Python standard library \u0026ndash; (1) that they have bad locality ( gee, very unlike huge memory-hogging randomized hash tables, oh and just try scanning one of those\u0026hellip;), and (2) that Python makes it so simple to write your own, just do that! ( well, yes I can and have, but hey it\u0026rsquo;s 2011 already, rbtrees are like 40 years old!) -- are inane.\n","permalink":"https://bobcopeland.com/blog/2011/03/even-c-has-tsearch/","summary":"\u003cp\u003eI\u0026rsquo;m just going on record to state that the two reasons I\u0026rsquo;ve seen on the net for lack of tree-based collections in the Python standard library \u0026ndash; (1) that they have bad locality ( \u003cem\u003egee, very unlike huge memory-hogging randomized hash tables, oh and just try scanning one of those\u0026hellip;\u003c/em\u003e), and (2) that Python makes it so simple to write your own, just do that! ( \u003cem\u003ewell, yes I can and have, but hey it\u0026rsquo;s 2011 already, rbtrees are like 40 years old!\u003c/em\u003e) -- are inane.\u003c/p\u003e","title":"Even C has tsearch"},{"content":" It\u0026rsquo;s almost spring and that means time to make another kite! I haven\u0026rsquo;t done one in a couple of years so hopefully I haven\u0026rsquo;t lost all of the necessary sewing skills. This time around I\u0026rsquo;m going with a cellular design (think box kite), the #54 star facet. This morning I spent about half an hour on the first step \u0026ndash; cutting out the necessary shapes from rolls of ripstop nylon. We have an enclosed area with great big sunny windows in our apartment which are perfect for tracing the shapes out onto the material.\nThe next step is adding reinforcements and binding for which I\u0026rsquo;m waiting on supplies. The Cherry Blossom nee Smithsonian Kite Festival is coming up in a couple of weeks so I want to get it all done by then. I can\u0026rsquo;t wait to see what Alex thinks of kite flying!\n","permalink":"https://bobcopeland.com/blog/2011/03/new-kite/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/5524994224/\" title=\"Star Facet by bluesterror, on Flickr\"\u003e\u003cimg alt=\"Star Facet\" loading=\"lazy\" src=\"http://farm6.static.flickr.com/5096/5524994224_491bfb013d_m.jpg\"\u003e\u003c/a\u003e It\u0026rsquo;s almost spring and that means time to make another kite! I haven\u0026rsquo;t done one in a couple of years so hopefully I haven\u0026rsquo;t lost all of the necessary sewing skills. This time around I\u0026rsquo;m going with a cellular design (think box kite), the \u003ca href=\"http://www.kitebuilder.com/forums/viewforum.php?f=22\"\u003e#54 star facet\u003c/a\u003e. This morning I spent about half an hour on the first step \u0026ndash; cutting out the necessary shapes from rolls of ripstop nylon. We have an enclosed area with great big sunny windows in our apartment which are perfect for tracing the shapes out onto the material.\u003c/p\u003e","title":"New kite"},{"content":"I bought a new wireless router the other day, a D-Link DIR-825 dual-band a/g/b/n. This is a step up in several regards from my previous 2.4 GHz 11g Linksys, not least of which is the D-Link\u0026rsquo;s ability to run OpenWRT with ath9k. Installing OpenWRT with prebuilt binaries is dirt simple; it took all of about 5 minutes to set up.\nOne of my motivations was to do some IPv6 testing in advance of World IPv6 Day. Comcast doesn\u0026rsquo;t yet offer IPv6 addresses to the public at large, so I set up a Hurricane Electric 6in4 tunnel. This is quite easy to configure in OpenWRT.\nSo now I can load ipv6.google.com in my browser. It\u0026rsquo;s approximately 2 better than the normal site.\n","permalink":"https://bobcopeland.com/blog/2011/03/updated-to-version-6/","summary":"\u003cp\u003eI bought a new wireless router the other day, a D-Link DIR-825 dual-band a/g/b/n. This is a step up in several regards from my previous 2.4 GHz 11g Linksys, not least of which is the D-Link\u0026rsquo;s ability to run OpenWRT with ath9k. Installing OpenWRT with prebuilt binaries is dirt simple; it took all of about 5 minutes to set up.\u003c/p\u003e\n\u003cp\u003eOne of my motivations was to do some IPv6 testing in advance of \u003ca href=\"http://isoc.org/wp/worldipv6day/\"\u003eWorld IPv6 Day\u003c/a\u003e. Comcast doesn\u0026rsquo;t yet offer IPv6 addresses to the public at large, so I set up a \u003ca href=\"http://he.net/\"\u003eHurricane Electric\u003c/a\u003e 6in4 tunnel. This is \u003ca href=\"http://wiki.openwrt.org/doc/uci/network#dynamic.ipv6-in-ipv4.tunnel.he.net.only\"\u003equite easy\u003c/a\u003e to configure in OpenWRT.\u003c/p\u003e","title":"Updated to version 6"},{"content":"An unassuming cardboard tube arrived in the mail the other day, containing my MSCS diploma from Hopkins. Thus passes my academic career. I doubt the experience will ever pay for itself financially, but I did learn a great deal, even as a crusty practitioner of some years. Returning to the student life of never-ending deadlines took quite some getting used to, and the corresponding lack of sleep was good training for Alex\u0026rsquo;s concurrent arrival. (Said arrival also made up my mind to not pursue the thesis option.)\nIn the main, the classes were excellent, but the small size of the school means the catalog is limited compared to Georgia Tech. For example, I would have liked a class or two on the hardware side. Hopkins only offered the equivalent of GT\u0026rsquo;s CMPE 2510 (MIPS architecture with the Hennessy and Patterson book).\nThrough projects and reading papers, I gained a new appreciation for the difficulty of good science, and the prevalence of bad. I\u0026rsquo;ll always be an engineer first, as I lack the patience to do science well. Banging out a project out in 2-6 weeks was de rigeur; here are some of them:\nA handwriting recognition program based on HMMs (basic stuff, but I had no prior machine learning experience)\nA user-space version of mac80211 hwsim. With the simulator, I evaluated the Linux rate controllers for different rates of packet loss, and found and fixed a bug in Pid. There are a few things in Minstrel that can still be improved, but there\u0026rsquo;s no surprise that it is much better than Pid.\nA failed investigation into cache-oblivious data structures for filesystems. It\u0026rsquo;s tough to beat B-Trees at their own game. Still, I\u0026rsquo;m very excited about CO algorithms since this stuff wasn\u0026rsquo;t even around when I was an undergrad. Hopefully the right problem will come along.\nDemand paging and swap support for xv6. This was a class assignment, but I had a lot of fun putting it together. [Code deleted from the internet at prof\u0026rsquo;s request.] The swap daemon was crap due to time constraints, but most groups didn\u0026rsquo;t get beyond identity mapping.\nAn evaluation of parallel algorithms on massive graphs. I now have a better appreciation for the ease of implementation, and horrible performance, of barrier synchronization.\nA streaming categorical ranking system for twitter graphs. Note to NoSQL graph DB developers: Postgres is still much faster.\nThere are of course writeups associated with all of these, but my latent inner perfectionist is not very happy with most of them. I might revisit them with more rigor if I get bored some day.\n","permalink":"https://bobcopeland.com/blog/2011/02/me-grad_school-2/","summary":"\u003cp\u003eAn unassuming cardboard tube arrived in the mail the other day, containing my MSCS diploma from Hopkins. Thus passes my academic career. I doubt the experience will ever pay for itself financially, but I did learn a great deal, even as a crusty practitioner of some years. Returning to the student life of never-ending deadlines took quite some getting used to, and the corresponding lack of sleep was good training for Alex\u0026rsquo;s concurrent arrival. (Said arrival also made up my mind to not pursue the thesis option.)\u003c/p\u003e","title":"me \u0026= ~grad_school"},{"content":"In C, scoping rules aside, the following are pretty much the same:\nstatic int x[] = { /* ... */ }; int foo() { /* do something with x */ } and\nint bar() { static int x[] = { /* ... */ }; /* do something with x */ } The static array x will go into the .data section of the executable. When the OS loads the executable into memory, it will ensure that the values for x are set in the appropriate place (e.g. by mapping its disk page to the virtual address in the ELF headers). In the second case, x is given some alias to avoid symbol conflicts.\nThere seems to be no way to do the second version in Java. Here\u0026rsquo;s how I tried:\nstatic int xyzzy() { final int x[] = { /* ... */ }; /* do something with x */ } This doesn\u0026rsquo;t do what you might think it does. While x cannot be changed, it is the reference to an array; the array elements themselves can be changed at will. Thus javac is unlikely to do anything smart here.\nIndeed, in the above case, javac will initialize x with stack pushes every time xyzzy() is called. I had a real method like this, and making x a static member variable gave me an easy 2x speedup.\n","permalink":"https://bobcopeland.com/blog/2011/01/on-static-in-java/","summary":"\u003cp\u003eIn C, scoping rules aside, the following are pretty much the same:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003estatic int x[] = { /* ... */ };\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eint foo()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e{\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    /* do something with x */\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eand\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eint bar()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e{\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    static int x[] = { /* ... */ };\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    /* do something with x */\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eThe static array \u003ccode\u003ex\u003c/code\u003e will go into the .data section of the executable. When the OS loads the executable into memory, it will ensure that the values for \u003ccode\u003ex\u003c/code\u003e are set in the appropriate place (e.g. by mapping its disk page to the virtual address in the ELF headers). In the second case, \u003ccode\u003ex\u003c/code\u003e is given some alias to avoid symbol conflicts.\u003c/p\u003e","title":"On static in Java"},{"content":" Last night I had the pleasure of driving my car less than a mile from the nearby metro to our apartment, during a heavy snow, in rush hour. Normally I walk, but this area is bad about keeping sidewalks clear in snowy weather, so driving is sometimes the safer option. It took me an hour and a half to cover the distance, at a blazing average speed of 2/3 mph.\nAlong the way I learned some unwritten rules of driving in DC snowstorms:\nTraditional traffic patterns no longer apply. If a road once traveled east-to-west, it now goes west-to-east.\nDitto with traffic lights: let\u0026rsquo;s just collectively ignore them.\nWhen traffic is blocked, do attempt, and fail, to perform a three-point turn. This will ensure that traffic in front of you will begin moving again, and traffic behind you will get to participate in pushing your car out of a snowbank.\nAt random, get out of your car and just leave it there. Say, in the middle lane of a three-lane highway.\nIf three cars are already abandoned at various places halfway up a short, inclined on-ramp, try it yourself anyway. They probably just weren\u0026rsquo;t doing it correctly.\n","permalink":"https://bobcopeland.com/blog/2011/01/snow-day/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/5393473712/\" title=\"\u0026quot;Driving\u0026quot; in the snow by bluesterror, on Flickr\"\u003e\u003cimg alt=\"\u0026ldquo;Driving\u0026rdquo; in the snow\" loading=\"lazy\" src=\"http://farm6.static.flickr.com/5176/5393473712_b3ae01dbbc_m.jpg\"\u003e\u003c/a\u003e Last night I had the pleasure of driving my car less than a mile from the nearby metro to our apartment, during a heavy snow, in rush hour. Normally I walk, but this area is bad about keeping sidewalks clear in snowy weather, so driving is sometimes the safer option. It took me an hour and a half to cover the distance, at a blazing average speed of 2/3 mph.\u003c/p\u003e","title":"Snow day"},{"content":"I mentioned before that I had wishlisted the book Hacker\u0026rsquo;s Delight after reading the constant folding code in gcc. My better half surprised me with a copy for Christmas and I read through it in about a day and a half. To my surprise, the book is at once smaller (at just over 300 pages) while at the same time being a lot more thorough and principled than I had expected. Some formulas come with proofs, and for ranges that produce undesired results (e.g. log2(0)), the book makes a point of identifying them and discussing alternatives. Creative uses for ffs(), the ubiquitous bit-parallel permutation algorithms, and several other bit twiddling tricks are exhaustively covered, along with various integer math routines including, of course, division-by-constant. Worth a read if that\u0026rsquo;s your thing.\n","permalink":"https://bobcopeland.com/blog/2011/01/hacker-delighted/","summary":"\u003cp\u003eI mentioned before that I had wishlisted the book \u003cem\u003eHacker\u0026rsquo;s Delight\u003c/em\u003e after reading the constant folding code in gcc. My better half surprised me with a copy for Christmas and I read through it in about a day and a half. To my surprise, the book is at once smaller (at just over 300 pages) while at the same time being a lot more thorough and principled than I had expected. Some formulas come with proofs, and for ranges that produce undesired results (e.g. log2(0)), the book makes a point of identifying them and discussing alternatives. Creative uses for ffs(), the ubiquitous bit-parallel permutation algorithms, and several other bit twiddling tricks are exhaustively covered, along with various integer math routines including, of course, division-by-constant. Worth a read if that\u0026rsquo;s your thing.\u003c/p\u003e","title":"Hacker Delighted"},{"content":"Note to self: double-check the template arguments before asking the compiler to do so.\n(Wordpress hates to wrap, so I did it, badly.) `mpicxx -Wno-deprecated -c -o pagerank.o pagerank.cc In file included from /usr/include/boost/graph/distributed/adjacency_list .hpp:3959, from pagerank.cc:3: /usr/include/boost/graph/distributed/adjlist/initialize.hpp: In member fu nction â€˜void boost::adjacency_list\u0026lt;OutEdgeListS, boost::distributedS\u0026lt;Pr ocessGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexProperty, Ed geProperty, GraphProperty, EdgeListS\u0026gt;::initialize(EdgeIterator, EdgeItera tor, EdgePropertyIterator, typename boost::detail::parallel::adjacency_li st_config\u0026lt;OutEdgeListS, ProcessGroup, InVertexListS, InDistribution, Dire ctedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS\u0026gt;::inherited ::vertices_size_type, const typename boost::graph::distributed::select_di stribution\u0026lt;InDistribution, VertexProperty, typename boost::detail::parall el::adjacency_list_config\u0026lt;OutEdgeListS, ProcessGroup, InVertexListS, InDi stribution, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeL istS\u0026gt;::inherited::vertices_size_type, ProcessGroup, typename boost::graph ::internal_vertex_name::type\u0026gt;::type\u0026amp;, boost::vecS) [with EdgeIterator = boost::graph::metis_reader::edge_iterator, EdgePropertyIte rator = boost::graph::metis_reader::edge_weight_iterator, OutEdgeListS = boost::vecS, ProcessGroup = boost::graph::distributed::mpi_process_group, InVertexListS = boost::vecS, InDistribution = boost::defaultS, DirectedS = boost::directedS, VertexProperty = boost::no_property, EdgeProperty = boost::no_property, GraphProperty = boost::no_property, EdgeListS = boost ::listS]â€™: /usr/include/boost/graph/distributed/adjacency_list.hpp:1644: instantia ted from â€˜boost::adjacency_list\u0026lt;OutEdgeListS, boost::distributedS\u0026lt;Proce ssGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexProperty, EdgeP roperty, GraphProperty, EdgeListS\u0026gt;::adjacency_list(EdgeIterator, EdgeIter ator, EdgePropertyIterator, typename boost::detail::parallel::adjacency_l ist_config\u0026lt;OutEdgeListS, ProcessGroup, InVertexListS, InDistribution, Dir ectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS\u0026gt;::inherite d::vertices_size_type, const ProcessGroup\u0026amp;, const typename boost::graph:: distributed::select_distribution\u0026lt;InDistribution, VertexProperty, typename boost::detail::parallel::adjacency_list_config\u0026lt;OutEdgeListS, ProcessGrou p, InVertexListS, InDistribution, DirectedS, VertexProperty, EdgeProperty , GraphProperty, EdgeListS\u0026gt;::inherited::vertices_size_type, ProcessGroup, typename boost::graph::internal_vertex_name::type\u0026gt;::type \u0026amp;, const GraphProperty\u0026amp;) [with EdgeIterator = boost::graph::metis_reader: :edge_iterator, EdgePropertyIterator = boost::graph::metis_reader::edge_w eight_iterator, OutEdgeListS = boost::vecS, ProcessGroup = boost::graph:: distributed::mpi_process_group, InVertexListS = boost::vecS, InDistributi on = boost::defaultS, DirectedS = boost::directedS, VertexProperty = boos t::no_property, EdgeProperty = boost::no_property, GraphProperty = boost: :no_property, EdgeListS = boost::listS]â€™ pagerank.cc:37: instantiated from here /usr/include/boost/graph/distributed/adjlist/initialize.hpp:56: error: no matching function for call to â€˜add_edge(boost::detail::parallel::globa l_descriptor\u0026amp;, boost::detail::parallel::global_descriptor\u0026amp;, const double\u0026amp;, boost::adjacency_list\u0026lt;boost::vecS, boost::d istributedS\u0026lt;boost::graph::distributed::mpi_process_group, boost::vecS, bo ost::defaultS\u0026gt;, boost::directedS, boost::no_property, boost::no_property, boost::no_property, boost::listS\u0026gt;\u0026amp;)â€™ /usr/include/boost/graph/distributed/adjacency_list.hpp:2973: note: candi dates are: typename boost::adjacency_list\u0026lt;OutEdgeListS, boost::distribute dS\u0026lt;ProcessGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexPropert y, EdgeProperty, GraphProperty, EdgeListS\u0026gt;::lazy_add_edge_with_property b oost::add_edge(typename boost::adjacency_list\u0026lt;OutEdgeListS, boost::distri butedS\u0026lt;ProcessGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexPro perty, EdgeProperty, GraphProperty, EdgeListS\u0026gt;::vertex_descriptor, typena me boost::adjacency_list\u0026lt;OutEdgeListS, boost::distributedS\u0026lt;ProcessGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS\u0026gt;::vertex_descriptor, const typename boost::adjac ency_list\u0026lt;OutEdgeListS, boost::distributedS\u0026lt;ProcessGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS\u0026gt;::edge_property_type\u0026amp;, boost::adjacency_list\u0026lt;OutEdgeListS, boos t::distributedS\u0026lt;ProcessGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS\u0026gt;\u0026amp;) [with OutEdgeLi stS = boost::vecS, ProcessGroup = boost::graph::distributed::mpi_process_ group, InVertexListS = boost::vecS, InDistribution = boost::defaultS, Dir ectedS = boost::directedS, VertexProperty = boost::no_property, EdgePrope rty = boost::no_property, GraphProperty = boost::no_property, EdgeListS = boost::listS] make: *** [pagerank.o] Error 1\nWell, obviously I called the wrong ctor, duh! ","permalink":"https://bobcopeland.com/blog/2010/11/c-error-fail/","summary":"\u003cp\u003eNote to self: double-check the template arguments before asking the compiler to do so.\u003c/p\u003e\n\u003cp\u003e(Wordpress hates to wrap, so I did it, badly.)\n`mpicxx -Wno-deprecated   -c -o pagerank.o pagerank.cc\nIn file included from /usr/include/boost/graph/distributed/adjacency_list\n.hpp:3959,\nfrom pagerank.cc:3:\n/usr/include/boost/graph/distributed/adjlist/initialize.hpp: In member fu\nnction â€˜void boost::adjacency_list\u0026lt;OutEdgeListS, boost::distributedS\u0026lt;Pr\nocessGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexProperty, Ed\ngeProperty, GraphProperty, EdgeListS\u0026gt;::initialize(EdgeIterator, EdgeItera\ntor, EdgePropertyIterator, typename boost::detail::parallel::adjacency_li\nst_config\u0026lt;OutEdgeListS, ProcessGroup, InVertexListS, InDistribution, Dire\nctedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS\u0026gt;::inherited\n::vertices_size_type, const typename boost::graph::distributed::select_di\nstribution\u0026lt;InDistribution, VertexProperty, typename boost::detail::parall\nel::adjacency_list_config\u0026lt;OutEdgeListS, ProcessGroup, InVertexListS, InDi\nstribution, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeL\nistS\u0026gt;::inherited::vertices_size_type, ProcessGroup, typename boost::graph\n::internal_vertex_name\u003cVertexProperty\u003e::type\u0026gt;::type\u0026amp;, boost::vecS) [with\nEdgeIterator = boost::graph::metis_reader::edge_iterator, EdgePropertyIte\nrator = boost::graph::metis_reader::edge_weight_iterator, OutEdgeListS =\nboost::vecS, ProcessGroup = boost::graph::distributed::mpi_process_group,\nInVertexListS = boost::vecS, InDistribution = boost::defaultS, DirectedS\n= boost::directedS, VertexProperty = boost::no_property, EdgeProperty =\nboost::no_property, GraphProperty = boost::no_property, EdgeListS = boost\n::listS]â€™:\n/usr/include/boost/graph/distributed/adjacency_list.hpp:1644:   instantia\nted from â€˜boost::adjacency_list\u0026lt;OutEdgeListS, boost::distributedS\u0026lt;Proce\nssGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexProperty, EdgeP\nroperty, GraphProperty, EdgeListS\u0026gt;::adjacency_list(EdgeIterator, EdgeIter\nator, EdgePropertyIterator, typename boost::detail::parallel::adjacency_l\nist_config\u0026lt;OutEdgeListS, ProcessGroup, InVertexListS, InDistribution, Dir\nectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS\u0026gt;::inherite\nd::vertices_size_type, const ProcessGroup\u0026amp;, const typename boost::graph::\ndistributed::select_distribution\u0026lt;InDistribution, VertexProperty, typename\nboost::detail::parallel::adjacency_list_config\u0026lt;OutEdgeListS, ProcessGrou\np, InVertexListS, InDistribution, DirectedS, VertexProperty, EdgeProperty\n, GraphProperty, EdgeListS\u0026gt;::inherited::vertices_size_type, ProcessGroup,\ntypename boost::graph::internal_vertex_name\u003cVertexProperty\u003e::type\u0026gt;::type\n\u0026amp;, const GraphProperty\u0026amp;) [with EdgeIterator = boost::graph::metis_reader:\n:edge_iterator, EdgePropertyIterator = boost::graph::metis_reader::edge_w\neight_iterator, OutEdgeListS = boost::vecS, ProcessGroup = boost::graph::\ndistributed::mpi_process_group, InVertexListS = boost::vecS, InDistributi\non = boost::defaultS, DirectedS = boost::directedS, VertexProperty = boos\nt::no_property, EdgeProperty = boost::no_property, GraphProperty = boost:\n:no_property, EdgeListS = boost::listS]â€™\npagerank.cc:37:   instantiated from here\n/usr/include/boost/graph/distributed/adjlist/initialize.hpp:56: error: no\nmatching function for call to â€˜add_edge(boost::detail::parallel::globa\nl_descriptor\u003cunsigned int\u003e\u0026amp;, boost::detail::parallel::global_descriptor\u003cu\nnsigned int\u003e\u0026amp;, const double\u0026amp;, boost::adjacency_list\u0026lt;boost::vecS, boost::d\nistributedS\u0026lt;boost::graph::distributed::mpi_process_group, boost::vecS, bo\nost::defaultS\u0026gt;, boost::directedS, boost::no_property, boost::no_property,\nboost::no_property, boost::listS\u0026gt;\u0026amp;)â€™\n/usr/include/boost/graph/distributed/adjacency_list.hpp:2973: note: candi\ndates are: typename boost::adjacency_list\u0026lt;OutEdgeListS, boost::distribute\ndS\u0026lt;ProcessGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexPropert\ny, EdgeProperty, GraphProperty, EdgeListS\u0026gt;::lazy_add_edge_with_property b\noost::add_edge(typename boost::adjacency_list\u0026lt;OutEdgeListS, boost::distri\nbutedS\u0026lt;ProcessGroup, InVertexListS, InDistribution\u0026gt;, DirectedS, VertexPro\nperty, EdgeProperty, GraphProperty, EdgeListS\u0026gt;::vertex_descriptor, typena\nme boost::adjacency_list\u0026lt;OutEdgeListS, boost::distributedS\u0026lt;ProcessGroup,\nInVertexListS, InDistribution\u0026gt;, DirectedS, VertexProperty, EdgeProperty,\nGraphProperty, EdgeListS\u0026gt;::vertex_descriptor, const typename boost::adjac\nency_list\u0026lt;OutEdgeListS, boost::distributedS\u0026lt;ProcessGroup, InVertexListS,\nInDistribution\u0026gt;, DirectedS, VertexProperty, EdgeProperty, GraphProperty,\nEdgeListS\u0026gt;::edge_property_type\u0026amp;, boost::adjacency_list\u0026lt;OutEdgeListS, boos\nt::distributedS\u0026lt;ProcessGroup, InVertexListS, InDistribution\u0026gt;, DirectedS,\nVertexProperty, EdgeProperty, GraphProperty, EdgeListS\u0026gt;\u0026amp;) [with OutEdgeLi\nstS = boost::vecS, ProcessGroup = boost::graph::distributed::mpi_process_\ngroup, InVertexListS = boost::vecS, InDistribution = boost::defaultS, Dir\nectedS = boost::directedS, VertexProperty = boost::no_property, EdgePrope\nrty = boost::no_property, GraphProperty = boost::no_property, EdgeListS =\nboost::listS]\nmake: *** [pagerank.o] Error 1\u003c/p\u003e","title":"C++ error fail"},{"content":"I just submitted my application for graduation here at Hopkins, so as my grad_school bit settles over the next couple of months, I must now contemplate what to do next. I haven\u0026rsquo;t given it a whole lot of thought, except that I will be glad to be out of academics for the rest of eternity. I\u0026rsquo;ll save an account of my experience here for another post, but it has been generally positive. Anyway, my dance card is far from empty, but while I\u0026rsquo;m in limbo between real work and finishing school, and deciding where our family will live, I might as well be promiscuous and see what\u0026rsquo;s out there.\nI guess if I had to enumerate my occupational preferences, they would go something like this:\nUnix kernel hacker or driver developer. Between school and the new parental status, time for my ath5k / karma / android hobby has dwindled to a trickle. I hate to see my x86 assembly skills go to waste. Looking at you, Ginormous Linux Company.\nSystems work on problems of huge scale. This has been a recent theme of my studies, and there are some fascinating problems to tackle.\nSystems work on small scales. Embedded work is just a lot more fun than desktops.\nAny cool project with smart coworkers\nOpen source\nUsual niceties like close to home, close to child care, health plan, big bag of cash\u0026hellip;\nMinus points for: UI work, remote object technologies, anything with angle brackets, function names with too many capital letters, centralized version control, marginally reinvented functional languages\n","permalink":"https://bobcopeland.com/blog/2010/11/wrapping-up/","summary":"\u003cp\u003eI just submitted my application for graduation here at Hopkins, so as my grad_school bit settles over the next couple of months, I must now contemplate what to do next. I haven\u0026rsquo;t given it a whole lot of thought, except that I will be glad to be out of academics for the rest of eternity. I\u0026rsquo;ll save an account of my experience here for another post, but it has been generally positive. Anyway, my dance card is far from empty, but while I\u0026rsquo;m in limbo between real work and finishing school, and deciding where our family will live, I might as well be promiscuous and see what\u0026rsquo;s out there.\u003c/p\u003e","title":"Wrapping up"},{"content":"For a school project, I\u0026rsquo;ve been reading lots of papers on good old PageRank. We\u0026rsquo;re doing something similar to this venerable algorithm in a streaming context. For a basis of comparison, I needed a simple, reliable implementation of the classic algorithm, and Matlab (octave) happens to excel at this kind of thing. So here\u0026rsquo;s my version. Initialized appropriately, this gives the same results as the diagram on the appropriate Wikipedia page. You probably wouldn\u0026rsquo;t want to run this on the web graph though: it wants to be run in a cluster at that scale.\nfunction[R] = pagerank(A, R, d, epsilon) N=size(A)(1); E=ones(N); R_last = R; delta=epsilon; while (delta \u0026gt;= epsilon) R = (d * A + (1-d)/N * E) * R_last; dist=R-R_last; delta = sqrt(dot(dist,dist)); R_last = R; end R is the initial ranking vector. Typically this is just 1/N for each entry, but it can be some other probability distribution to arrive at personalized rankings. A is the column-oriented adjacency matrix divided by out-degree (with a plain adjacency matrix T, K=diag(sum(T)); A=K^-1 * T). Nodes with out-degree zero should be marked adjacent to everyone. d is the dampening factor, and epsilon is the convergence threshold.\nI\u0026rsquo;m pretty sure my Matlab coding skills are quite lackluster, but it works.\n","permalink":"https://bobcopeland.com/blog/2010/10/pagerank-in-matlab/","summary":"\u003cp\u003eFor a school project, I\u0026rsquo;ve been reading lots of papers on good old PageRank. We\u0026rsquo;re doing something similar to this venerable algorithm in a streaming context. For a basis of comparison, I needed a simple, reliable implementation of the classic algorithm, and Matlab (octave) happens to excel at this kind of thing. So here\u0026rsquo;s my version. Initialized appropriately, this gives the same results as the diagram on the appropriate Wikipedia page. You probably wouldn\u0026rsquo;t want to run this on the web graph though: it wants to be run in a cluster at that scale.\u003c/p\u003e","title":"PageRank in Matlab"},{"content":"In addition to the idea that the least interesting and most trivial patches get the most scrutiny, I think the bike-shedding effect is doubled if someone claims their implementation is extra clever. Then Linus unleashes his Thunderbolt of Clarity and sanity is restored.\nTo exploit this phenomenon, one seeking reviews should claim that one\u0026rsquo;s code is better than any Knuth himself could have dreamed up, uses the minimal number of clock cycles on any present or future architecture, and solves Clique in P. Then nerds will come at you like zombies.\n","permalink":"https://bobcopeland.com/blog/2010/09/id-like-the-shed-in-blue/","summary":"\u003cp\u003eIn addition to the idea that \u003ca href=\"http://valerieaurora.wordpress.com/2010/09/16/yet-another-fascinating-union-mounts-release/\"\u003ethe least interesting and most trivial patches get the most scrutiny\u003c/a\u003e, I think the bike-shedding effect is doubled if someone claims their implementation is \u003ca href=\"http://lkml.org/lkml/2010/8/27/329\"\u003eextra clever\u003c/a\u003e. Then Linus unleashes his \u003ca href=\"http://lkml.org/lkml/2010/8/28/181\"\u003eThunderbolt of Clarity\u003c/a\u003e and sanity is restored.\u003c/p\u003e\n\u003cp\u003eTo exploit this phenomenon, one seeking reviews should claim that one\u0026rsquo;s code is better than any Knuth himself could have dreamed up, uses the minimal number of clock cycles on any present or future architecture, and solves Clique in P. Then nerds will come at you like zombies.\u003c/p\u003e","title":"I'd like the shed in blue"},{"content":"Turns out bash supports enough arithmetic operators to implement lg() just as you might in some real language:\nfunction log2 { local x=0 for (( y=$1-1 ; $y \u0026gt; 0; y \u0026gt;\u0026gt;= 1 )) ; do let x=$x+1 done echo $x } z=$(log2 64) I had a somewhat valid reason to want to do this. The one thing that continually gets me when I try to do dumb things like this is when to use the raw variable name and when to use the dollar sign. Yes, the semantics are well-defined, but my perl habits run deep. Similarly, in ruby, all my variables are global.\n","permalink":"https://bobcopeland.com/blog/2010/09/log2-in-bash/","summary":"\u003cp\u003eTurns out bash supports enough arithmetic operators to implement lg() just as you might in some real language:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003efunction log2 {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    local x=0\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    for (( y=$1-1 ; $y \u0026gt; 0; y \u0026gt;\u0026gt;= 1 )) ; do\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e        let x=$x+1\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    done\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    echo $x\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ez=$(log2 64)\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eI had a somewhat valid reason to want to do this. The one thing that continually gets me when I try to do dumb things like this is when to use the raw variable name and when to use the dollar sign. Yes, the semantics are well-defined, but my perl habits run deep. Similarly, in ruby, all my variables are global.\u003c/p\u003e","title":"log2 in bash"},{"content":"So I\u0026rsquo;ve now had experience fixing other peoples\u0026rsquo; software in several different domains. Here\u0026rsquo;s how it plays out:\nOpen-source project:\nThanks! Applied.\nProprietary application:\nThank you for your submission. We have taken your request under consideration, and assigned it ticket #17231. In our review for the next release, scheduled to be released in Q4 next year, we will consider each resolved ticket for possible inclusion in our product.\nGovernment project: [paraphrasing an angry letter to division heads]\nPlease find attached a 9-page document describing why we cannot include any changes in our software, even 80-line changes that fix crashes such as the ones your agency has experienced. We suggest your agency maintain your own copy of the software with the change applied.\nP.S. We doubt seriously it\u0026rsquo;s really our problem even though you gave us an explanation and a reasonable code fix. Please waste some more time trying to prove it to us.\n","permalink":"https://bobcopeland.com/blog/2010/08/is-there-a-patch-for-bureaucracy/","summary":"\u003cp\u003eSo I\u0026rsquo;ve now had experience fixing other peoples\u0026rsquo; software in several different domains. Here\u0026rsquo;s how it plays out:\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eOpen-source project:\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThanks! Applied.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eProprietary application:\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThank you for your submission. We have taken your request under consideration, and assigned it ticket #17231. In our review for the next release, scheduled to be released in Q4 next year, we will consider each resolved ticket for possible inclusion in our product.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eGovernment project\u003c/strong\u003e:\n\u003cem\u003e[paraphrasing an angry letter to division heads]\u003c/em\u003e\u003c/p\u003e","title":"Is there a patch for bureaucracy?"},{"content":"For a recent task at work, I had a compelling reason to break out of the Java jail and do some \u0026ldquo;real programming\u0026rdquo; in C. Unfortunately, said C-language bits were to be run on the Windows platform. I had a stripped DLL (no source) for manipulating USB cameras and an API document to work with, and a plan to duct tape this all together with JNI.\nI\u0026rsquo;m not about to touch MSVC if I can help it, so I grabbed mingw packages for my platform and wrote up a small wrapper DLL to do the necessary JNI bridge. Here\u0026rsquo;s my attempt to archive the working recipe for the Google bots.\nCompiling this wrapper library was quite easy with mingw:\n$ cat Makefile # This makefile builds usbcamjni.dll to wrap usbcam.dll # Use mingw32-make to build CPPFLAGS=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux LIBS=-L . -l usbcam usbcamjni.dll: usbcamjni.o $(CC) -shared -o $@ $\u0026lt; $(LIBS) clean: .FORCE $(RM) usbcamjni.dll usbcamjni.o .FORCE: $ mingw32-make It turns out on Windows there are a few different calling conventions that you can choose from at compile time. Garden-variety code uses __cdecl, which is how the world should operate. The symbols are named just as they are named in the C code with a leading underscore, and the caller is responsible for cleaning up his own stack mess.\nIn the Windows world, there is __stdcall, where the symbol names (by default) have trailing decorations for the size of parameters on the stack (e.g. _write@4) and the callee cleans up the stack. The benefit is somewhat smaller code, but you can\u0026rsquo;t have variadic functions.\nSo I was testing my JNI wrapper and getting JVM crashes. Looking at the register dump showed that the program counter was not pointing to a normal text virtual address, which is symptomatic of stack confusion. Once I re-acquainted myself with the above arcana, I guessed correctly that I was using the wrong calling convention for the DLL: together the function epilogue and caller were popping off too many levels of stack. However, in this case the DLL was using undecorated symbol names (e.g. _write) but still expecting __stdcall semantics. As it happens, this is how Win32 API works.\nThe problem is that annotating the prototypes in header files with \u0026ldquo;__stdcall\u0026rdquo; to get correct calling conventions also makes the dependent object file expect the decorated function name. Linking against the DLL results in lots of unsatisfied symbol errors.\nThe solution took some digging and doesn\u0026rsquo;t make a whole lot of sense to me, but the way out of this using mingw tools is to build an interface library. First, you create a def file like so:\nLIBRARY MYLIB.DLL EXPORTS Symbol1@0 Symbol2@4 Symbol3@8 Note that symbols in this file include the decorations. Then you run dlltool from mingw with -k to remove the decorations from the generated library. As I understand it, this option actually creates aliases from the decorated to undecorated name so that subsequent linking can work. The manpage says \u0026ldquo;-A\u0026rdquo; is actually for this, but before I read it, I found a mailing list post advocating \u0026ldquo;-k\u0026rdquo;, and, well, it worked, so I\u0026rsquo;m joining that particular cargo cult.\n$ dlltool -k -d mylib.def -l mylib.a Then when building the JNI library wrapper, link against mylib.a instead of the original DLL. Easyish!\n","permalink":"https://bobcopeland.com/blog/2010/08/jnis-and-abis/","summary":"\u003cp\u003eFor a recent task at work, I had a compelling reason to break out of the Java jail and do some \u0026ldquo;real programming\u0026rdquo; in C. Unfortunately, said C-language bits were to be run on the Windows platform. I had a stripped DLL (no source) for manipulating USB cameras and an API document to work with, and a plan to duct tape this all together with JNI.\u003c/p\u003e\n\u003cp\u003eI\u0026rsquo;m not about to touch MSVC if I can help it, so I grabbed mingw packages for my platform and wrote up a small wrapper DLL to do the necessary JNI bridge. Here\u0026rsquo;s my attempt to archive the working recipe for the Google bots.\u003c/p\u003e","title":"JNIs and ABIs"},{"content":"During baby naps I actually did some Rio Karma work this week. First, I found and fixed a recent bug in usb storage that makes the Karma not work at all in 2.6.35. Then I finally set up my omfs git tree on kernel.org, with a few patches I wrote almost two years ago, plus a recently found memory leak. I\u0026rsquo;ll try to get Linus to pull it in 2.6.36. Then, I made a new release of omfsprogs rewritten to use libomfs from the FUSE version of omfs (I also did this work two years ago). Now all is right in the Karma world again; time to ignore it for another 6 months.\nThen, on to ath5k. One nagging issue that the driver has always had is that there\u0026rsquo;s pretty much a total lack of synchronization among the myriad threads. There\u0026rsquo;s an ad-hoc spin lock here and there, but for example the reset procedure, which reloads hundreds of registers, can be called concurrently with itself and other driver ops, and can be invoked while trying to transmit and receive packets. So one idea we\u0026rsquo;ve been hashing out on the ML is to serialize reset with a mutex by putting it into process context via a workqueue, and disabling tasklets while it runs. I hacked that together and it\u0026rsquo;s now available in wireless-testing. Hopefully this will fix some of those weird DMA-into-freed-skb errors that can potentially be caused by untimely modification of descriptor pointers.\nFinally: tracing. For the last year or so, Linux has grown its own NIH answer to DTrace in the form of ftrace and tracepoints. The wireless subsystem already has a few tracepoints here and there, and I really like it better than debug printks because they have smaller overhead in the compiled-but-not-enabled case (a branch compared to an out-of-line function call). You can pick and choose individual tracepoints to sample, or combine them with a general tracing facility such as ftrace. I have some patches baking to add various tracepoints to ath5k [ 1, 2, 3].\nOne really neat idea that I appropriated from Johannes Berg\u0026rsquo;s work on iwlwifi is to store entire packets in the tracing ring buffer. Then you can have a trace-cmd plugin to write these out as tcpdump pcap files. This is really nice: you get a packet dump that works with your existing debug infrastructure, plus you have the tracing information so you know what the code is trying to do, at whatever granularity you chose when setting up the trace. Hopefully, this will be a good one-stop debug gathering tool, not just for developers, but for users, as well.\n","permalink":"https://bobcopeland.com/blog/2010/07/kernel-updates/","summary":"\u003cp\u003eDuring baby naps I actually did some Rio Karma work this week. First, I \u003ca href=\"http://marc.info/?l=linux-usb\u0026amp;m=127894796224563\u0026amp;w=2\"\u003efound and fixed\u003c/a\u003e a recent bug in usb storage that makes the Karma not work at all in 2.6.35. Then I finally set up my \u003ca href=\"http://git.kernel.org/?p=linux/kernel/git/bcopeland/omfs.git;a=shortlog;h=refs/heads/for-next\"\u003eomfs git tree\u003c/a\u003e on kernel.org, with a few patches I wrote almost two years ago, plus a recently found memory leak. I\u0026rsquo;ll try to get Linus to pull it in 2.6.36. Then, I made a new release of \u003ca href=\"/karma/\"\u003eomfsprogs\u003c/a\u003e rewritten to use libomfs from the FUSE version of omfs (I also did this work two years ago). Now all is right in the Karma world again; time to ignore it for another 6 months.\u003c/p\u003e","title":"Kernel updates"},{"content":"CLONE3(2) System Programmer\u0026#39;s Manual CLONE3(2) NAME clone3 - create a child process SYNOPSIS #include \u0026lt;clone.h\u0026gt; int clone3(pid_t parent, pid_t co_parent, int (*fn)(void *), void *child_stack, int flags, void *arg, ... ); DESCRIPTION clone3() creates a new process, in a manner similar to fork(2). Unlike fork(2), these calls allow the child process to share parts of its execution context with the parent and co-parent processes, such as their home, food, and approximately half of their genetic material. The main use of clone3() is to implement offspring: sentient beings that run concurrently with the parents in a shared environment. When the child process is created with clone3(), it executes the function application fn(arg). (This differs from fork(2), where execution continues in the child from the point of the fork(2) call.) The fn argument is a pointer to a function that is called by the child process at the beginning of its execution. The arg argument is passed to the fn function. Although the parent processes may supply a suitable fn function, the child process has a mind of its own and may deviate from its execution at will. Executing clone3 will randomly select half of the genes from each parent, resulting in a selection of phenotypes according to Mendelian inheritance. By design this process increases the number of bits in the global entropy pool, making recovery of the random state impractical. The child_stack argument specifies the location of the pile of diapers used by the child process. After the child process leaves the EMBRYO state and until it acquires the CAP_POTTY capability, it may frequently dump core. The calling process must therefore set up a large store of waste disposal units and pass a pointer to this store to clone3(). After a successful core dump it is necessary for a parent to handle the condition as soon as possible. The flags parameter may be bitwise-or\u0026#39;ed with zero or more of the following constants, in order to specify the behavior of the system call: CLONE_XY Setting CLONE_XY indicates to the system that a child of the male gender is requested. This is only a hint to the system and may not be honored. CLONE_XX Setting CLONE_XX indicates to the system that a child of the female gender is requested. This is only a hint to the system and may not be honored. If both CLONE_XY and CLONE_XX are set, results are undefined. RETURN VALUE On completion, the thread ID of the child process is returned in both parents\u0026#39; thread of execution. During execution, the child process may signal an error condition by raising any of the following signals. SIGNALS HUNGRY The stomach monitor process has detected an empty condition. The parent may correct the condition by supplying food. TIRED The process has executed too many cycles and must enter sleep(3). GRUMPY The process is raising signals at full volume for unknown reasons. The parent process should attach pacifier(2) to the child process and attempt to cause it to enter sleep(3). HAPPY The process is in a suitable state for taking pictures for grandparents. CONFORMING TO Biology 101. BUGS Child process may spit-up on your new shirt; a burping cloth is recommended. EXAMPLE The following psuedo-code illustrates the intended usage: #include \u0026lt;clone.h\u0026gt; int main(int argc, char *argv[]) { pid_t ange = /* ... */ pid_t bob = /* ... */ pid_t alex; alex = clone3(ange, bob, fn, stack, CLONE_XY, NULL); sleep(86400 * 30 * 9); take_snapshot(alex); } This yields the following: Alexander Yit-Keung Copeland Born 26 June, 2010 Weight 7 lbs 12 oz SEE ALSO fork(2), futex(2), getpid(2), gettid(2), set_thread_area(2), set_tid_address(2), tkill(2), unshare(2), wait(2), capabilities(7), pthreads(7) CLONE3(2) 2010-06-26 CLONE3(2) ","permalink":"https://bobcopeland.com/blog/2010/06/new-syscall-proposal/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-gdscript3\" data-lang=\"gdscript3\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eCLONE3(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e)                   System Programmer\u003cspan style=\"color:#e6db74\"\u003e\u0026#39;s Manual                 CLONE3(2)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eNAME\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       clone3 \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e create a child process\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eSYNOPSIS\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       \u003cspan style=\"color:#75715e\"\u003e#include \u0026lt;clone.h\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       \u003cspan style=\"color:#a6e22e\"\u003eint\u003c/span\u003e clone3(pid_t parent, pid_t co_parent,\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                 \u003cspan style=\"color:#a6e22e\"\u003eint\u003c/span\u003e (\u003cspan style=\"color:#f92672\"\u003e*\u003c/span\u003efn)(void \u003cspan style=\"color:#f92672\"\u003e*\u003c/span\u003e), void \u003cspan style=\"color:#f92672\"\u003e*\u003c/span\u003echild_stack,\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                 \u003cspan style=\"color:#a6e22e\"\u003eint\u003c/span\u003e flags, void \u003cspan style=\"color:#f92672\"\u003e*\u003c/span\u003earg, \u003cspan style=\"color:#f92672\"\u003e...\u003c/span\u003e );\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eDESCRIPTION\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       clone3()  creates  a new process, \u003cspan style=\"color:#f92672\"\u003ein\u003c/span\u003e a manner similar to fork(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e)\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       Unlike fork(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e), these calls allow the child process to share  parts  of\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       its  execution  context  with  the  parent \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e co\u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003eparent processes,\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       such as their home, food, \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e approximately half of their genetic\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       material\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       The main use of clone3() is to implement offspring: sentient beings\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       that run concurrently with the parents \u003cspan style=\"color:#f92672\"\u003ein\u003c/span\u003e a shared environment\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       When  the  child  process  is  created  with  clone3(),  it executes the\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       function  application  fn(arg)\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e   (This  differs  from  fork(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e),  where\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       execution  continues  \u003cspan style=\"color:#f92672\"\u003ein\u003c/span\u003e the child from the point of the fork(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e) call\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       The fn argument is a pointer to a function that is called by the  child\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       process  at the beginning of its execution\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e  The arg argument is passed\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       to the fn function\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e  Although the parent processes may supply a suitable\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       fn function, the child process has a mind of its own \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e may deviate\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       from its execution at will\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       Executing clone3 will randomly select half of the genes from each\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       parent, resulting \u003cspan style=\"color:#f92672\"\u003ein\u003c/span\u003e a selection of phenotypes according to\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       Mendelian inheritance\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e  By design this process increases the\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       number of bits \u003cspan style=\"color:#f92672\"\u003ein\u003c/span\u003e the global entropy pool, making recovery of the\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       random state impractical\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       The  child_stack  argument  specifies the location of the pile of\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       diapers used by the child process\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e  After the child process leaves\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       the EMBRYO state \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e until it acquires the CAP_POTTY capability,\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       it may frequently dump core\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e  The calling process must therefore\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       set up a large store of waste disposal units \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e \u003cspan style=\"color:#66d9ef\"\u003epass\u003c/span\u003e a pointer to\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       this store to clone3()\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e  After a successful core dump it is necessary\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       \u003cspan style=\"color:#66d9ef\"\u003efor\u003c/span\u003e a parent to handle the condition as soon as possible\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       The flags parameter may  be  bitwise\u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003eor\u003c/span\u003e\u003cspan style=\"color:#e6db74\"\u003e\u0026#39;ed  with zero or more of the\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       following constants, \u003cspan style=\"color:#f92672\"\u003ein\u003c/span\u003e order to specify  the behavior of the system\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       call:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e        CLONE_XY\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e              Setting CLONE_XY indicates to the system that a child of the\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e              male gender is requested\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e  This is only a hint to the system\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e              \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e may \u003cspan style=\"color:#f92672\"\u003enot\u003c/span\u003e be honored\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e        CLONE_XX\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e              Setting CLONE_XX indicates to the system that a child of the\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e              female gender is requested\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e  This is only a hint to the system\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e              \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e may \u003cspan style=\"color:#f92672\"\u003enot\u003c/span\u003e be honored\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e              If both CLONE_XY \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e CLONE_XX are set, results are undefined\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eRETURN VALUE\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       On  completion,  the  thread  ID  of  the child process is returned \u003cspan style=\"color:#f92672\"\u003ein\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       both parents\u003cspan style=\"color:#e6db74\"\u003e\u0026#39; thread of execution.  During execution, the child process\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       may \u003cspan style=\"color:#66d9ef\"\u003esignal\u003c/span\u003e an error condition by raising any of the following signals\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eSIGNALS\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       HUNGRY  The stomach monitor process has detected an empty condition\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e               The parent may correct the condition by supplying food\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       TIRED   The process has executed too many cycles \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e must enter\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e               sleep(\u003cspan style=\"color:#ae81ff\"\u003e3\u003c/span\u003e)\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       GRUMPY  The process is raising signals at full volume \u003cspan style=\"color:#66d9ef\"\u003efor\u003c/span\u003e unknown\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e               reasons\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e  The parent process should attach pacifier(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e) to\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e               the child process \u003cspan style=\"color:#f92672\"\u003eand\u003c/span\u003e attempt to cause it to enter sleep(\u003cspan style=\"color:#ae81ff\"\u003e3\u003c/span\u003e)\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       HAPPY   The process is \u003cspan style=\"color:#f92672\"\u003ein\u003c/span\u003e a suitable state \u003cspan style=\"color:#66d9ef\"\u003efor\u003c/span\u003e taking pictures \u003cspan style=\"color:#66d9ef\"\u003efor\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e               grandparents\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eCONFORMING TO\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       Biology \u003cspan style=\"color:#ae81ff\"\u003e101.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eBUGS\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       Child process may spit\u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003eup on your new shirt; a burping cloth is\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       recommended\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eEXAMPLE\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       The following psuedo\u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003ecode illustrates the intended usage:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       \u003cspan style=\"color:#75715e\"\u003e#include \u0026lt;clone.h\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       \u003cspan style=\"color:#a6e22e\"\u003eint\u003c/span\u003e main(\u003cspan style=\"color:#a6e22e\"\u003eint\u003c/span\u003e argc, char \u003cspan style=\"color:#f92672\"\u003e*\u003c/span\u003eargv[])\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e            pid_t ange \u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e/*\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e...\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e*/\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e            pid_t bob \u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e  \u003cspan style=\"color:#f92672\"\u003e/*\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e...\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e*/\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e            pid_t alex;\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e            alex \u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e clone3(ange, bob, fn, stack, CLONE_XY, NULL);\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e            sleep(\u003cspan style=\"color:#ae81ff\"\u003e86400\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e*\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e30\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e*\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e9\u003c/span\u003e);\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e            take_snapshot(alex);\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       }\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       This yields the following:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       Alexander Yit\u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003eKeung Copeland\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       Born \u003cspan style=\"color:#ae81ff\"\u003e26\u003c/span\u003e June, \u003cspan style=\"color:#ae81ff\"\u003e2010\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       Weight \u003cspan style=\"color:#ae81ff\"\u003e7\u003c/span\u003e lbs \u003cspan style=\"color:#ae81ff\"\u003e12\u003c/span\u003e oz\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eSEE ALSO\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       fork(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e),    futex(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e),    getpid(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e),    gettid(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e),   set_thread_area(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e),\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       set_tid_address(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e),  tkill(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e),  unshare(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e),  wait(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e),  capabilities(\u003cspan style=\"color:#ae81ff\"\u003e7\u003c/span\u003e),\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e       pthreads(\u003cspan style=\"color:#ae81ff\"\u003e7\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eCLONE3(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e)                         \u003cspan style=\"color:#ae81ff\"\u003e2010\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e06\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e26\u003c/span\u003e                          CLONE3(\u003cspan style=\"color:#ae81ff\"\u003e2\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"New syscall proposal"},{"content":"Ever mindful of fire safety, I\u0026rsquo;ve had a full propane canister (the small blowtorch size) rattling around in the back of my trunk for two and a half years. Luckily our car never decided to explode, but just in case, I\u0026rsquo;ve decided to finally use up the fuel.\nSince I plan to never do any sort of plumbing again, the natural application for my blowtorch flame is on food, specifically crÃ¨me brÃ»lÃ©e. So I baked up some custard in my soup bowls, tossed some sugar on top, and burnt that bad boy.\nThe problem is these torches really only work well upright, so you wind up having to bring the food to the flame rather than the other way around. I did at least have my fire extinguisher at the ready in case a wall decided to ignite. The smoke detector only went off once.\nOur tasters were split on the outcome. Ange really liked it. I thought the custard was a bit too eggy, but that could be the recipe or personal taste. As I\u0026rsquo;m not a big CB eater, I don\u0026rsquo;t really have much to compare it to. It looked good, though.\nNext up, fire grilled cheese?\n","permalink":"https://bobcopeland.com/blog/2010/06/blowtorch-cuisine/","summary":"\u003cp\u003eEver mindful of fire safety, I\u0026rsquo;ve had a full propane canister (the small blowtorch size) rattling around in the back of my trunk for two and a half years. Luckily our car never decided to explode, but just in case, I\u0026rsquo;ve decided to finally use up the fuel.\u003c/p\u003e\n\u003cp\u003eSince I plan to never do any sort of plumbing again, the natural application for my blowtorch flame is on food, specifically crÃ¨me brÃ»lÃ©e. So I baked up some custard in my soup bowls, tossed some sugar on top, and burnt that bad boy.\u003c/p\u003e","title":"Blowtorch Cuisine"},{"content":"Apologies, dear reader, for not having updates lately: I have been quite busy.\nAngeline and I just \u0026ldquo;completed\u0026rdquo; moving from one side of the street to the other side (the lie-quotes indicating our plan to live out of boxes for the near future). If you have our old mailing address or home phone number, it\u0026rsquo;s probably a good idea to drop me an email to get the new data.\nThe new place seems nice so far except for the water being shut off the day we moved in, and the towing of my car from the space they told us to park in (evidently they were just kidding when they said that).\nHere\u0026rsquo;s the view from our window: Proof (as if you needed any) that Ange and I are inveterate nerds \u0026ndash; 8 of the dozens of boxes crammed full of books: ","permalink":"https://bobcopeland.com/blog/2010/06/moved/","summary":"\u003cp\u003eApologies, dear reader, for not having updates lately: I have been quite busy.\u003c/p\u003e\n\u003cp\u003eAngeline and I just \u0026ldquo;completed\u0026rdquo; moving from one side of the street to the other side (the lie-quotes indicating our plan to live out of boxes for the near future). If you have our old mailing address or home phone number, it\u0026rsquo;s probably a good idea to drop me an email to get the new data.\u003c/p\u003e\n\u003cp\u003eThe new place seems nice so far except for the water being shut off the day we moved in, and the towing of my car from the space they told us to park in (evidently they were just kidding when they said that).\u003c/p\u003e","title":"Moved"},{"content":"I suppose I\u0026rsquo;m old enough now, and the rate of change in computing is fast enough, that I can regale young software developers with I-remember-when stories. You know, the ones that start off like \u0026ldquo;all of my punchcards were rubber-banded together, but I had neglected to number them\u0026hellip;\u0026rdquo; I\u0026rsquo;ll spare you the tale of how we used to screen-scrape the mainframes at LargeAirline.com for today; instead you get to read my ramblings on languages-older-than-Go.\nToday\u0026rsquo;s topic is inspired by my reading on LWN about the fact that Emacs is still around, which led me to David Wheeler\u0026rsquo;s argument that parentheses are why no one uses Lisp and that we can do better. Perhaps so, but I found his plugging of SKILL interesting, since once, long ago, when I was but a fresh young hacker, I spent a rather significant bit of time writing software in this language.\nSince you have likely never heard of it, SKILL is a Lisp implementation that is (or was?) embedded in the Cadence suite of Electronic Design Automation products. As I recall, the biggest warts were:\nthe fact that you could use C-like prefixing \u0026ndash; f(x y) was equivalent to (f x y) -- but other constructs, like using parentheses for grouping, behaved as in Lisp (i.e. errored).\nthe runtime library used C-like functions, such as printf, fread, etc\nthe developer\u0026rsquo;s manual encouraged using imperative style programming like loops; indeed using recursion instead would usually lead to stack overflows\nI typically wrote in the Lisp style and just ignored the C-like features as much as possible. The experience soured me on functional languages forever, which isn\u0026rsquo;t really fair, because SKILL was particularly bad.\nBut I\u0026rsquo;ve often wondered why it was so horrible, and how it came to be that Cadence, a large successful company, selected it as its primary extension language. Of course, almost all EDA software is horrible so the bar is pretty low, but I wondered if this was a case of Cadence not realizing how bad it was, or if it was just historical baggage. Or did a bored programmer just decide one day, \u0026ldquo;hey, let\u0026rsquo;s write our own crappy Lisp!\u0026rdquo; (cf. much of Android).\nLuckily, there\u0026rsquo;s a paper on it to shed some light: \u0026ldquo;SKILL: A Lisp-based extension language\u0026rdquo; by E. Petrus, 1993. I snagged a version from behind the ACM paywall, so I won\u0026rsquo;t post it, but I\u0026rsquo;ll quote a few interesting bits here.\nSKILL was originally conceived as a base language for developing simulation and test description languages\u0026hellip; Lisp was chosen as a base language because it lent itself well to an interpreter based implementation and Lisp is a natural choice for code generation and as a meta language. The first implementation was an interpreter based on the Franz Lisp developed at Cadence Design Systems in the mid-1980s.\nFair enough. Mostly historical baggage, partly not-invented-here.\nThe popular syntax for SKILL is a C-like alternative to Lisp. When SKILL was first introduced, the connection with Lisp was not promoted in electronic engineering circles.\nToo bad. Maybe if the same engineers had compared it to an allegedly decent Lisp, they might have demanded better.\nBecause of the large installed SKILL base, it has been difficult to move SKILL [in the direction of Common Lisp].\nOops.\nFor the most part, SKILL developers come from a EE background and lack general familiarity with functional languages. As a result, company wide code inspections revealed the need for a high level code analysis tool.\nEven Cadence internal staff couldn\u0026rsquo;t use SKILL.\nThe paper goes on to describe why extension languages are useful as a component of software-reuse. While I won\u0026rsquo;t disagree, I find the characterizations of EDA software more an indictment on the state of software development in the industry circa mid-90s. The products I used from Mentor Graphics, Cadence, and so on were just horrendous. Each application was typically a 40 meg, crashy, statically linked executable, in which a lot of functionality was shared between a few other executables that mostly did the same thing but had subtly different missing features (probably in the name of their byzantine licensing strategies).\nECAD software is too large and diverse to be contained in a single executable\nNeed \u0026ldquo;fire-walls\u0026rdquo; between products. Separating major products into separate executables reduces the chance of one set of code from corrupting data in another.\nChange control is easier when the software is built separately.\nIndependent release of products. Products linked together in the same executable must be shipped together. In separate executables, products can be shipped whenever necessary.\n(Shared libraries anyone?)\nI think I wouldn\u0026rsquo;t mind SKILL if it had been a decent Lisp, but unfortunately Cadence got stuck with maintaining their own one-off fork and the software ecosystem that grew up around it. At the EDA firm at which I worked, we were lucky to be a late-comer, which allowed us to use a reasonable extension language: perl. I haven\u0026rsquo;t kept up with the industry, but I hope others have followed suit.\n","permalink":"https://bobcopeland.com/blog/2010/04/on-s-expressions/","summary":"\u003cp\u003eI suppose I\u0026rsquo;m old enough now, and the rate of change in computing is fast enough, that I can regale young software developers with I-remember-when stories. You know, the ones that start off like \u0026ldquo;all of my punchcards were rubber-banded together, but I had neglected to number them\u0026hellip;\u0026rdquo; I\u0026rsquo;ll spare you the tale of how we used to screen-scrape the mainframes at LargeAirline.com for today; instead you get to read my ramblings on languages-older-than-Go.\u003c/p\u003e","title":"On S-Expressions"},{"content":"Inspired by the \u0026rsquo;tinga\u0026rsquo; (Mexican roast pork tostadas) recipe in this month\u0026rsquo;s Cook\u0026rsquo;s Illustrated, I bought a $12 picnic shoulder at the grocery store on our last trip out. The recipe recommends a boneless boston butt instead, which is probably a good idea given all of the tendons in the lower cut. But my grocer only had the shoulder and it\u0026rsquo;s cheap so what the heck.\nI spent last Saturday morning carving all of the meat off of the bone, at which point I realized just how much pig we\u0026rsquo;re going to be eating for the next few weeks. As Ange and I try to subscribe to the \u0026lsquo;use everything but the squeal\u0026rsquo; philosophy, I portioned the slab for various future meals: two pounds of meat for the aforementioned tinga, a couple of pounds cut into thin slabs for char siu, about another pound or so of trimmings for barbecue or pork tacos, and the bones went into the freezer for congee.\nWhich left a big hunk of skin. I tried making cracklings out of this, but the porcine gods were not having it: it was a big sticky mess. I ultimately gave up after a one sizzling piece of skin and lard hopped out of the pan only to land on my face about a centimeter away from my right eye. Even fried pig skin isn\u0026rsquo;t worth blindness.\nThe tostadas were pretty awesome though.\n","permalink":"https://bobcopeland.com/blog/2010/04/pork/","summary":"\u003cp\u003eInspired by the \u0026rsquo;tinga\u0026rsquo; (Mexican roast pork tostadas) recipe in this month\u0026rsquo;s \u003cem\u003eCook\u0026rsquo;s Illustrated\u003c/em\u003e, I bought a $12 picnic shoulder at the grocery store on our last trip out. The recipe recommends a boneless boston butt instead, which is probably a good idea given all of the tendons in the lower cut. But my grocer only had the shoulder and it\u0026rsquo;s cheap so what the heck.\u003c/p\u003e\n\u003cp\u003eI spent last Saturday morning carving all of the meat off of the bone, at which point I realized just how much pig we\u0026rsquo;re going to be eating for the next few weeks. As Ange and I try to subscribe to the \u0026lsquo;use everything but the squeal\u0026rsquo; philosophy, I portioned the slab for various future meals: two pounds of meat for the aforementioned tinga, a couple of pounds cut into thin slabs for char siu, about another pound or so of trimmings for barbecue or pork tacos, and the bones went into the freezer for congee.\u003c/p\u003e","title":"Pork"},{"content":"I have been investigating search trees to see if binary search trees\u0026rsquo; memory layout can, in practice, make a large difference in performance. Now that I\u0026rsquo;ve fixed the bugs in my test application, I can say: yes! The theory here is in so-called \u0026ldquo;cache-oblivious\u0026rdquo; algorithms. The idea is that you can use divide-and-conquer algorithms and data structures to exploit locality and ensure that at some point you will be working with the granularity of your memory transfer size (such as the size of a cache line or disk block).\nHow well does it work? Take a look: This machine has a 2 meg L2 cache and 32 K L1 d-cache. The size of nodes in this test was 32 bytes, so the L1 cache is blown at 2**10 items, and the L2 cache at 2**16.\nWith the exception of \u0026ldquo;base,\u0026rdquo; the trees are all laid out in an array; \u0026ldquo;vEB\u0026rdquo; is the cache-oblivious version in which the tree uses a van Emde Boas layout: the top half of the tree is stored in the array, followed by each of the subtrees in left-to-right order, recursively. Unfortunately, constructing the tree dynamically is rather complicated.\nSo far I\u0026rsquo;m just exploring ground that\u0026rsquo;s already been covered, but I do think this is an interesting class of data structures that hasn\u0026rsquo;t trickled out into the real world yet.\n","permalink":"https://bobcopeland.com/blog/2010/03/search-trees-revisted/","summary":"\u003cp\u003eI have been investigating search trees to see if binary search trees\u0026rsquo; memory layout can, in practice, make a large difference in performance. Now that I\u0026rsquo;ve fixed the bugs in my test application, I can say: yes! The theory here is in so-called \u0026ldquo;cache-oblivious\u0026rdquo; algorithms. The idea is that you can use divide-and-conquer algorithms and data structures to exploit locality and ensure that at some point you will be working with the granularity of your memory transfer size (such as the size of a cache line or disk block).\u003c/p\u003e","title":"Search Trees Revisted"},{"content":"As a warm up for a research topic I\u0026rsquo;m doing this semester, I am looking at static search tree performance. Consider the following tree fragment where nodes are numbered according to BFS order:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 The nodes are located in memory wherever malloc() put them. An interesting question is whether a different in-memory layout has better search performance. One possible layout is in an array with the following order: 1,2,3,4,8,9,5,10,11,6,12,13,7,14,15 (this pattern is not original to me).\nSo far, the answer, surprisingly to me, is: not with this layout. With a benchmark of 10 million searches of a randomly-inserted (otherwise unbalanced) tree, I get:\nOriginal Tree: 77s Reordered Tree: 87s\nThe tree searches are exactly the same \u0026ndash; only the memory layout changed. I can reduce these numbers quite a bit by using -O2 and reducing the size of tree nodes, but there\u0026rsquo;s still a consistent net loss to the array ordering.\nI suspect my cache-emptying routines don\u0026rsquo;t, but if not, it will be interesting to see where I made the stupid mistake / mental lapse.\n","permalink":"https://bobcopeland.com/blog/2010/03/a-tale-of-two-search-trees/","summary":"\u003cp\u003eAs a warm up for a research topic I\u0026rsquo;m doing this semester, I am looking at static search tree performance. Consider the following tree fragment where nodes are numbered according to BFS order:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e            1\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e      2            3\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e   4     5      6      7\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e  8 9  10 11  12 13  14 15\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eThe nodes are located in memory wherever malloc() put them. An interesting question is whether a different in-memory layout has better search performance. One possible layout is in an array with the following order: 1,2,3,4,8,9,5,10,11,6,12,13,7,14,15 (this pattern is not original to me).\u003c/p\u003e","title":"A tale of two search trees"},{"content":" Ange and I have been on a real Hummus kick lately for some reason. A container of Sabra is usually gone within a few minutes of being opened around here. So I decided to save a few trips to the store and try making it at home. Turns out, this is really easy: dump a can of chick peas, 1/4 c each of olive oil, water, and tahini (finding this is the hard part), a garlic clove and 1-2 tbsp of vinegar into the food processor, and press \u0026ldquo;On.\u0026rdquo; A little time spent chilling in the fridge and it\u0026rsquo;s good to go. A couple of roasted habaneros wouldn\u0026rsquo;t be a bad addition, either.\nI also made my own pita chips from pita bread. While tasty and a lot cheaper than pre-made chips, I think that is far too much work when you\u0026rsquo;re hungry.\n","permalink":"https://bobcopeland.com/blog/2010/02/hummus/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/4356650228/\" title=\"Hummus by bluesterror, on Flickr\"\u003e\u003cimg alt=\"Hummus\" loading=\"lazy\" src=\"http://farm5.static.flickr.com/4059/4356650228_448fd447a8_m.jpg\"\u003e\u003c/a\u003e Ange and I have been on a real Hummus kick lately for some reason. A container of Sabra is usually gone within a few minutes of being opened around here. So I decided to save a few trips to the store and try making it at home. Turns out, this is really easy: dump a can of chick peas, 1/4 c each of olive oil, water, and tahini (finding this is the hard part), a garlic clove and 1-2 tbsp of vinegar into the food processor, and press \u0026ldquo;On.\u0026rdquo; A little time spent chilling in the fridge and it\u0026rsquo;s good to go. A couple of roasted habaneros wouldn\u0026rsquo;t be a bad addition, either.\u003c/p\u003e","title":"Hummus"},{"content":"While stuck inside for days due to snow, I once again downloaded the Android source trees from the repos. I plan to update my Android wifi page with better, step-by-step instructions to go from nothing to a working set of wireless utilities on the phone. In the meantime, I\u0026rsquo;ve re-familiarized myself with the current Android build environment (for various values of current \u0026ndash; this uses donut since as far as I know, eclair doesn\u0026rsquo;t have a definition for the Dream (G1/ADP1) phone yet).\nI do have to say that things in this area have improved a lot. While it still took some google-fu to figure out which branch to check out to get the correct software (tag donut-plus-aosp), buildling the entire image from scratch was rather straightforward (. build/envsetup.sh; lunch aosp_dream_us-eng; make). My main complaint is that the build system is far too slow to use for day-to-day work. Is Google still not eating their dogfood here?\nSo far I have libnl, iw, and packetspammer now integrated properly via Android.mk makefiles, and a custom kernel plus the support modules for wl1251. Unfortunately, space is really tight on the system partition, so the TI driver had to go to make room for everything. I\u0026rsquo;m still waiting for someone to port the Android runtime to emdebian or maemo with /usr on the sdcard, but perhaps I\u0026rsquo;ll mess around with bind mounts until then.\nIt seems wl1251 SDIO doesn\u0026rsquo;t like the new power-saving code, so that is something else I\u0026rsquo;ll look into soon. For now, one can disable that in the driver or possibly via \u0026ldquo;iwconfig power off\u0026rdquo;.\nwl1251: cmd set ps mode wl1251: cmd configure mmc0: Data timeout wl1251: ERROR sdio write failed (-110) ... wl1251: ERROR elp wakeup timeout ","permalink":"https://bobcopeland.com/blog/2010/02/android-rebuilt/","summary":"\u003cp\u003eWhile stuck inside for days due to snow, I once again downloaded the Android source trees from the repos. I plan to update my \u003ca href=\"/android_wifi.html\"\u003eAndroid wifi page\u003c/a\u003e with better, step-by-step instructions to go from nothing to a working set of wireless utilities on the phone. In the meantime, I\u0026rsquo;ve re-familiarized myself with the current Android build environment (for various values of current \u0026ndash; this uses donut since as far as I know, eclair doesn\u0026rsquo;t have a definition for the Dream (G1/ADP1) phone yet).\u003c/p\u003e","title":"Android rebuilt"},{"content":"I recently found myself needing to become familiar with the disk layouts of a few filesystems for a future research project. At the same time, I wanted to experience the fail whale that is github.com (my other git trees are hosted on repo.or.cz, which is spare and of tenuous funding, but works just fine). So over the weekend I threw together this little git tree.\nNot much there, just ext2 and yaffs2 so far. I chose the latter because I wanted to look at a log-structured filesystem, while simultaneously producing something useful for Android work. I plan to add btrfs shortly and maybe some other log FS. This is just junk code: if you really want to use these filesystems in FUSE, there are much better implementations. Also there\u0026rsquo;s a great hack out there to run the kernel FS implementations in userspace via UML.\nStill, it\u0026rsquo;s fun reinventing the wheel, and it\u0026rsquo;s a nice way to get a handle on this stuff.\n","permalink":"https://bobcopeland.com/blog/2010/02/storage-menagerie/","summary":"\u003cp\u003eI recently found myself needing to become familiar with the disk layouts of a few filesystems for a future research project. At the same time, I wanted to experience the fail whale that is github.com (my other git trees are hosted on repo.or.cz, which is spare and of tenuous funding, but works just fine). So over the weekend I threw together \u003ca href=\"http://github.com/bcopeland/fszoo\"\u003ethis little git tree\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eNot much there, just ext2 and yaffs2 so far. I chose the latter because I wanted to look at a log-structured filesystem, while simultaneously producing something useful for Android work. I plan to add btrfs shortly and maybe some other log FS. This is just junk code: if you really want to use these filesystems in FUSE, there are much better implementations. Also there\u0026rsquo;s a great hack out there to run the kernel FS implementations in userspace via UML.\u003c/p\u003e","title":"Storage Menagerie"},{"content":"After 10 years, I finally received an encrypted email from the ether. Which reminded me that:\nThe key goes to bobc@ieee.org, which I no longer own\nThere are probably numerous security holes with the old versions of gpg and/or Debian openssl used to generate the keypair\nThe key is over 10 years old so NSA have cracked it long ago\nThus, it has been revoked. Let it be widely disseminated that my new key fingerprint is:\n037A AD54 51B3 09AD 2362 93EF 7154 040D C976 F35E\n","permalink":"https://bobcopeland.com/blog/2010/01/new-gpg-key/","summary":"\u003cp\u003eAfter 10 years, I finally received an encrypted email from the ether. Which reminded me that:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eThe key goes to \u003ca href=\"mailto:bobc@ieee.org\"\u003ebobc@ieee.org\u003c/a\u003e, which I no longer own\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eThere are probably numerous security holes with the old versions of gpg and/or Debian openssl used to generate the keypair\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eThe key is over 10 years old so NSA have cracked it long ago\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eThus, it has been revoked. Let it be widely disseminated that my new key fingerprint is:\u003c/p\u003e","title":"New GPG Key"},{"content":"Welcome belatedly to the tens. I suppose I should summarize the previous year as is my typical MO in January.\nWe kicked off 2k9 freezing our appendages watching the inauguration in DC. Still worth it.\nAngeline settled in to her new private practice, wowing patients and colleagues alike with her acumen and meticulousness. At the same time, in a series of poor decisions, I gained a renewed respect for Clark Kent jobs as I went part time with mine to attend grad school.\nWe cheered the Caps on in another playoff run from our seats in aisle 117, row G. I took ice skating lessons. My cred as honorary Canadian waxes.\nWe spent some time in Germany, increasing our vocabulary slightly beyond words learned from Castle Wolfenstein.\nI\u0026rsquo;m close to making good pizza at home. Ange is mastering Cirque du Soleil yoga. She has also picked up lots of trivia on hockey great Bobby Orr, and learned the true meaning of \u0026ldquo;imaret\u0026rdquo; through daily application to the NYT crossword puzzles.\nMy goal of 100 kernel patches in 2009 was reached (123). This year, my goal is to be a better maintainer and stop sitting on patches, even while having much less time to contribute due to school.\n\u0026lsquo;10 promises to be a big year as we continue that whole nucleotide ordering experiment.\n","permalink":"https://bobcopeland.com/blog/2010/01/19110/","summary":"\u003cp\u003eWelcome belatedly to the tens. I suppose I should summarize the previous year as is my typical MO in January.\u003c/p\u003e\n\u003cp\u003eWe kicked off 2k9 freezing our appendages watching the inauguration in DC. Still worth it.\u003c/p\u003e\n\u003cp\u003eAngeline settled in to her new private practice, wowing patients and colleagues alike with her acumen and meticulousness. At the same time, in a series of poor decisions, I gained a renewed respect for Clark Kent jobs as I went part time with mine to attend grad school.\u003c/p\u003e","title":"19110"},{"content":"Here\u0026rsquo;s how to figure out the hashes of method names used by JBoss\u0026rsquo; RMI invoker from the shell. The first two numbers in the method signature form the length of the string. Maybe there\u0026rsquo;s a better way to do the backrefs in sed, but you do need to swap them around.\n$ echo $[`printf \u0026#34;0031ping(Ljava/lang/String;)V\u0026#34; | sha1sum | sed -e \u0026#34;s/(..)(..)(..)(..)(..)(..)(..)(..).*/0x87654321/g\u0026#34;`] Don\u0026rsquo;t ask me why I figured that out.\n","permalink":"https://bobcopeland.com/blog/2010/01/jboss-hash/","summary":"\u003cp\u003eHere\u0026rsquo;s how to figure out the hashes of method names used by JBoss\u0026rsquo; RMI invoker from the shell. The first two numbers in the method signature form the length of the string. Maybe there\u0026rsquo;s a better way to do the backrefs in sed, but you do need to swap them around.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e$ echo $[`printf \u0026#34;0031ping(Ljava/lang/String;)V\u0026#34; |\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    sha1sum |\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    sed -e \u0026#34;s/(..)(..)(..)(..)(..)(..)(..)(..).*/0x87654321/g\u0026#34;`]\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eDon\u0026rsquo;t ask me why I figured that out.\u003c/p\u003e","title":"JBoss Hash"},{"content":"I\u0026rsquo;m technically on break from school now, although I\u0026rsquo;m still putting the final polish on one last project. But things have slowed down enough that I can bore you with technical crap again.\nThere\u0026rsquo;s an interesting section of TPOP wherein the authors discuss studying the \u0026ldquo;numerology\u0026rdquo; of a bug; that is, look for patterns in the data instead of just looking at the code. I\u0026rsquo;ve had a lot of practice with this idea lately when trying to decipher kernel crashes with nothing but an Oops message to go on (these being much easier than infrequent lockups with no output at all!). It\u0026rsquo;s quite useful for userspace as well, if you are using a language where memory corruption is a fact of life. To show why, here\u0026rsquo;s a lengthy anecdote about how I recently used the power of man ascii to find and fix a memory corruption bug in about five minutes while racing to meet a project deadline.\nFirst, some background: in the kernel, linked lists are implemented by embedding the next and previous pointers directly into the linked object, by way of the struct list_node. For example:\n`struct list_node { struct list_node *next; struct list_node prev; }; / one item in a list / struct item { int id; struct list_node list; }; / some other object that has a list of items */ struct bar { struct list_node item_list_head; };\nThis is a curious construction, but once you get used to it, it\u0026#39;s quite handy -- you can embed an object in multiple simultaneous lists without having to worry about the lifetime of void pointers, and without having to malloc container structures all the time. The list code is object-agnostic, operating only on the `list_node` structures, but of course you need a way to get from a `struct list_node` back to the object that contains it. For that, there is the `container_of` macro and friends. These are just C macros that, given the address of the `struct list_node`, the variable name of the structure, and the type of the item in which the struct is embedded, finds the start of the containing structure with a little pointer arithmetic. I had implemented a similar set of list routines for a userspace program and started getting weird crashes, so I fired up gdb to see something like the following: `gdb \u0026gt; p *item $1 = {id = 134269966, item_list = {next = 0x804b008, prev = 0x804b008}, global_list = {next = 0x72657375, prev = 0x40313030}, src = \u0026#34;machine.org\u0026#34;, \u0026#39;00\u0026#39; \u0026lt;repeats 69 times\u0026gt;} Had I taken a minute to look at this in detail, I would have noticed that the value of id was quite higher than it should be, and that the leading part of src was truncated. But what jumped out at me immediately was that global_list.next and global_list.prev were obviously wrong pointer values. In Linux on x86, heap addresses are usually above 0x0804b000, and stack addresses are below 0xbfffc000. Clearly, the global_list pointers don\u0026rsquo;t meet these ranges. However, the item_list.next and item_list.prev addresses looked fine. So either the global list pointers weren\u0026rsquo;t being initialized, or they were being corrupted somehow. Sometimes that kind of corruption happens if the list pointers aren\u0026rsquo;t updated properly, causing the code to follow a next pointer into random memory, but then it would be unlikely that the item_list pointers and src had meaningful values. Plus, I unit-tested the list routines and was pretty confident they were working correctly.\nMy initial theory was that something was overwriting the global_list struct, and the byte values looked to be in the ascii range. So I turned to the ascii(7) man page, which gives you a nice little table of hex ordinal to character value mappings. Looking at the bytes in turn gives: 0x72 = \u0026lsquo;r\u0026rsquo;, 0x65 = \u0026rsquo;e\u0026rsquo;, 0x73 = \u0026rsquo;s\u0026rsquo;, 0x75 = \u0026lsquo;u\u0026rsquo;, 0x40 = \u0026lsquo;@\u0026rsquo;, 0x31 = \u0026lsquo;1\u0026rsquo;, 0x30 = \u0026lsquo;0\u0026rsquo;, 0x30 = \u0026lsquo;0\u0026rsquo;. Since x86 is little-endian, this works out to the string \u0026ldquo;user001@\u0026rdquo;, which should have been the first part of src. The bug must be where the code filled in the src string. However, that code looked fine. I then decided that the pointer to the entire structure must be offset somehow. Sure enough, when I looked at the surrounding code, I saw something like this: ` struct list_node *n; struct item item; for (n = list_start(\u0026amp;item_list_head); n; n = list_next(\u0026amp;item_list_head, n)) { item = container_of(n, struct item, global_list); / strncpy and other stuff \u0026hellip; */ }\nOops. I had passed the wrong list name to container_of(), with the effect that the item pointer was actually 8 bytes prior to the real start of the structure. As a result, the string copy overwrote the pointer values of just one of the list structures, a bug which didn\u0026#39;t actually have a negative effect until later. There are morals a-plenty, including \u0026#34;macros are evil\u0026#34; and \u0026#34;this is why templates were invented.\u0026#34; Yet, I\u0026#39;ve seen Linus use this technique more than once when others were stuck on a kernel memory corruption bug, so I\u0026#39;ll go with \u0026#34;Kernighan and Pike are always right\\[1\\].\u0026#34; \\[1\\] Except, I\u0026#39;m still not sold on using capital letters in Go. Perhaps in time I can be convinced. ","permalink":"https://bobcopeland.com/blog/2009/12/numerology/","summary":"\u003cp\u003eI\u0026rsquo;m technically on break from school now, although I\u0026rsquo;m still putting the final polish on one last project. But things have slowed down enough that I can bore you with technical crap again.\u003c/p\u003e\n\u003cp\u003eThere\u0026rsquo;s an interesting section of \u003ca href=\"http://plan9.bell-labs.com/cm/cs/tpop/\"\u003eTPOP\u003c/a\u003e wherein the authors discuss studying the \u0026ldquo;numerology\u0026rdquo; of a bug; that is, look for patterns in the data instead of just looking at the code. I\u0026rsquo;ve had a lot of practice with this idea lately when trying to decipher kernel crashes with nothing but an Oops message to go on (these being much easier than infrequent lockups with no output at all!). It\u0026rsquo;s quite useful for userspace as well, if you are using a language where memory corruption is a fact of life. To show why, here\u0026rsquo;s a lengthy anecdote about how I recently used the power of \u003ccode\u003eman ascii\u003c/code\u003e to find and fix a memory corruption bug in about five minutes while racing to meet a project deadline.\u003c/p\u003e","title":"Numerology"},{"content":"I love getting stuff like this in my inbox:\nMust have skills: Expert in C or C++ programming (Windows || Mac || Linux) system internals. (Windows || Mac || Linux) kernel and device driver development Experienced in assembly and debugging Desired Skills: Experience writing/integrating MS SQL Stored Procedures into C/C++ software. C (especially object oriented like abstraction with pointers). lolz.\n","permalink":"https://bobcopeland.com/blog/2009/11/job/","summary":"\u003cp\u003eI love getting stuff like this in my inbox:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eMust have skills:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eExpert in C or C++ programming\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e(Windows || Mac || Linux) system internals.\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e(Windows || Mac || Linux) kernel and device driver development\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eExperienced in assembly and debugging\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eDesired Skills: Experience writing/integrating MS SQL Stored\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eProcedures into C/C++ software. C (especially object oriented\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003elike abstraction with pointers).\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003elolz.\u003c/p\u003e","title":"job"},{"content":"People seem to keep asking about this, despite there being a quality page on kernel.org on how to run an AP with any mac80211 driver. So for what it\u0026rsquo;s worth, here\u0026rsquo;s how my setup works. Note if you are seeing flakiness with certain clients, e.g. it works fine with a computer but not with your cell phone, it is likely there is some bug with the power saving handling. I\u0026rsquo;m currently working on a few such issues, so it may be fixed soon enough.\nTo get started, you need the following:\nsome sort of network uplink, like a wired ethernet port\na kernel with ap mode support for ath5k (2.6.31+) and netfilter (for NAT)\ndnsmasq\nhostapd\nYou have two basic options for interfacing the wireless network with your wired network. One is by using a bridge directly to the wired network. Another is to use NAT so the wireless network is on its own subnet. The former is more typical of an embedded device, but I prefer the latter on my home LAN, so that\u0026rsquo;s what I\u0026rsquo;ll describe.\nTurn off any wireless daemon (such as NetworkManager) while you experiment with hostapd to ensure that nothing else has the device open.\nThe hostapd.conf is large but self-explanatory. One can get away with a rather small config file if using the defaults. This example sets up an AP on wlan0 with the SSID \u0026ldquo;hostapd_ath5k\u0026rdquo;. It has a wlan-facing IP address 192.168.10.1, it\u0026rsquo;s on channel 11, supports 802.11g, and has the WPA pre-shared key \u0026ldquo;my_password\u0026rdquo;. I have also set up EAP, it works but requires making a lot of certs and such, so Google is your friend here.\nhostapd.conf:\ninterface=wlan0 driver=nl80211 ssid=hostapd_ath5k hw_mode=g channel=11 auth_algs=3 own_ip_addr=192.168.10.1 wpa=1 wpa_passphrase=my_password wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP For DHCP and DNS forwarding, I use dnsmasq. This couldn\u0026rsquo;t be easier. Just put something like the following in /etc/dnsmasq.conf:\ndhcp-range=192.168.10.50,192.168.10.150,12h This will hand out addresses in the 192.168.10.X subnet. Then I use a small script to enable IP masquerading before launching hostapd (note, it will flush all iptables rules, which may not be what you want, so use with caution).\nrun.sh:\n#!/bin/sh DEV=wlan0 GW_DEV=eth0 # set IPs ifconfig $DEV down ifconfig $DEV up ifconfig $DEV 192.168.10.1 # setup ip masq echo 1 \u0026gt; /proc/sys/net/ipv4/ip_forward iptables -F iptables -t nat -F iptables -A FORWARD -i $DEV -j ACCEPT iptables -A FORWARD -o $DEV -j ACCEPT iptables -t nat -A POSTROUTING -o $GW_DEV -j MASQUERADE ./hostapd hostapd.conf Running the script will launch hostapd, and if all goes well, you\u0026rsquo;ll see it show up in scans from other computers.\nIf anything goes wrong, make sure:\nyou\u0026rsquo;ve started dnsmasq\nyou have a valid backhaul connection\nyou aren\u0026rsquo;t using power save mode on client (iwconfig wlan0 power off \u0026ndash; see previous comment about PS bugs)\nyou haven\u0026rsquo;t found a bug\n","permalink":"https://bobcopeland.com/blog/2009/11/ath5k-ap-mode/","summary":"\u003cp\u003ePeople seem to keep asking about this, despite there being a \u003ca href=\"http://wireless.kernel.org/en/users/Documentation/hostapd\"\u003equality page on kernel.org\u003c/a\u003e on how to run an AP with any mac80211 driver. So for what it\u0026rsquo;s worth, here\u0026rsquo;s how my setup works. Note if you are seeing flakiness with certain clients, e.g. it works fine with a computer but not with your cell phone, it is likely there is some bug with the power saving handling. I\u0026rsquo;m currently working on a few such issues, so it may be fixed soon enough.\u003c/p\u003e","title":"Ath5k AP Mode"},{"content":"I let the month of September elapse with nary a post. So in case you\u0026rsquo;re wondering, I\u0026rsquo;m still around and I just haven\u0026rsquo;t had time to return your emails yet. Instead, I\u0026rsquo;m busy getting destroyed by grad school, where I\u0026rsquo;ll be for the next seven {months/years} of my life.\nPS Happy birthday, Karen!\n","permalink":"https://bobcopeland.com/blog/2009/10/me-grad_school/","summary":"\u003cp\u003eI let the month of September elapse with nary a post. So in case you\u0026rsquo;re wondering, I\u0026rsquo;m still around and I just haven\u0026rsquo;t had time to return your emails yet. Instead, I\u0026rsquo;m busy getting destroyed by grad school, where I\u0026rsquo;ll be for the next seven {months/years} of my life.\u003c/p\u003e\n\u003cp\u003ePS Happy birthday, Karen!\u003c/p\u003e","title":"me |= grad_school"},{"content":"I was poking around with the disassembler the other day, which is never a good idea. One of the things I looked at was the following bit in the RX hotpath for ath5k:\nrxs-\u0026gt;qual = rs.rs_rssi * 100 / 35; Now, that\u0026rsquo;s not a very significant calculation, and I doubt it will show up in profiles, but divides automatically trigger my \u0026ldquo;can we do better?\u0026rdquo; reflex. I was interested to see how gcc compiled this, because we have division by a constant, but we first have to multiply by a variable due to order of operations.\nWe can generally remove a division by multiplying by its reciprocal. Interestingly, gcc already does that. I couldn\u0026rsquo;t quite puzzle out all of the steps, but here\u0026rsquo;s the disassembly with my best guess:\n; multiply eax by 100, store in ecx 80483d0:\t6b c8 64 imul $0x64,%eax,%ecx ; load (32 / 35) * 2**32 into edx 80483d3:\tba eb a0 0e ea mov $0xea0ea0eb,%edx ; multiply 100 * argc by 32/35 and store in edx:eax 80483d8:\t89 c8 mov %ecx,%eax 80483da:\tf7 ea imul %edx ; take top 32 bits of result in edx (when sign extended, the ; complement of the final answer?) and add it back to the numerator 80483dc:\t8d 04 0a lea (%edx,%ecx,1),%eax 80483df:\t89 c2 mov %eax,%edx ; divide by 32 to remove pre-multiply 80483e1:\tc1 fa 05 sar $0x5,%edx ; subtract one if we need to round 80483e4:\t89 c8 mov %ecx,%eax 80483e6:\tc1 f8 1f sar $0x1f,%eax 80483e9:\t29 c2 sub %eax,%edx So then I went hunting for the constant folding code in gcc, and there are all kinds of tricks like this. Very neat. Along the way I also found a link to the book Hacker\u0026rsquo;s Delight, now wish-listed.\nIn the original code, the denominator is a bit arbitrary, we could pick a different number that is more amenable to shifts and adds and save a multiply, but it\u0026rsquo;s hardly worth it.\n","permalink":"https://bobcopeland.com/blog/2009/08/constantly-folded/","summary":"\u003cp\u003eI was poking around with the disassembler the other day, which is never a good idea. One of the things I looked at was the following bit in the RX hotpath for ath5k:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003erxs-\u0026gt;qual = rs.rs_rssi * 100 / 35;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eNow, that\u0026rsquo;s not a very significant calculation, and I doubt it will show up in profiles, but divides automatically trigger my \u0026ldquo;can we do better?\u0026rdquo; reflex. I was interested to see how gcc compiled this, because we have division by a constant, but we first have to multiply by a variable due to order of operations.\u003c/p\u003e","title":"Constantly folded"},{"content":"After fixing the remaining ifup bug (as expected, it was easy), I have some initial numbers on the new kernel driver versus the stock vendor driver on the G1: driveravg ping msnetperf mbit/stiwlan65.2317.53wl12518.5653.82 So, better on latency, worse on throughput. wl1251 is also quite a lot larger when taking all of cfg80211/mac80211 into account, though I didn\u0026rsquo;t spend any time trying to tweak the size in the build. Well, at least the code doesn\u0026rsquo;t make you want to poke your own eyes out.\n","permalink":"https://bobcopeland.com/blog/2009/08/wl1251-performance/","summary":"\u003cp\u003eAfter fixing the remaining ifup bug (as expected, it was easy), I have some initial numbers on the new kernel driver versus the stock vendor driver on the G1:\ndriveravg ping msnetperf mbit/stiwlan65.2317.53wl12518.5653.82\nSo, better on latency, worse on throughput. wl1251 is also quite a lot larger when taking all of cfg80211/mac80211 into account, though I didn\u0026rsquo;t spend any time trying to tweak the size in the build. Well, at least the code doesn\u0026rsquo;t make you want to poke your own eyes out.\u003c/p\u003e","title":"wl1251 performance"},{"content":"These sorts of bugs can ruin your weekend, just ask Ange who had to listen to me mope yesterday. Of course, I spotted it right away when looking at it freshly during this morning\u0026rsquo;s commute. Now, ifconfig wlan0 up; ifconfig wlan0 down; ifconfig wlan0 up still fails with wl1251, but it doesn\u0026rsquo;t hang and the rest looks tractable.\n","permalink":"https://bobcopeland.com/blog/2009/08/hang-fixed/","summary":"\u003cp\u003e\u003ca href=\"http://patchwork.kernel.org/patch/42064/\"\u003eThese sorts of bugs\u003c/a\u003e can ruin your weekend, just ask Ange who had to listen to me mope yesterday. Of course, I spotted it right away when looking at it freshly during this morning\u0026rsquo;s commute. Now, \u003ccode\u003eifconfig wlan0 up; ifconfig wlan0 down; ifconfig wlan0 up\u003c/code\u003e still fails with wl1251, but it doesn\u0026rsquo;t hang and the rest looks tractable.\u003c/p\u003e","title":"Hang fixed"},{"content":"The SDIO patches for TI 1251 (Android wifi chipset) are finally merged into wireless-testing, so they should be a lot easier to hack on now. That means the driver should make it into 2.6.32, though at a rather experimental stage. I did fix some crashes on ifup/ifdown since last posting, but there\u0026rsquo;s always more work to do. Current todo list includes better behavior for non-polling controllers (make the irq have a top-half), tracking down a device hang on reinitialization, pushing the msm_wifi.ko module, and on and on.\nBut I need to spend spare cycles on ath5k in the near term. John Linville recently remarked that he was sick of seeing bug reports that say \u0026ldquo;it works fine in madwifi,\u0026rdquo; and frankly, I agree. There\u0026rsquo;s little excuse for having a sub-standard driver given that we have had two fully open HALs for almost a year. Of course, that can be laid at my feet as much as anyone\u0026rsquo;s, so my plan is to install madwifi side-by-side with ath5k and do a lot of performance testing to see where we stand. ANI is the big missing feature; it will be useful to see how madwifi performs with and without it.\nIn other nerdy news, yesterday I scored a copy of Kernighan and Pike\u0026rsquo;s The Practice of Programming at the local used book store for $3. I\u0026rsquo;ve read the first five chapters so far. While I\u0026rsquo;ve been at this long enough to have already learned the book\u0026rsquo;s best practices (some the hard way), I really wish it was required reading at many of the places I\u0026rsquo;ve worked. You could do away with a lot of stupid coding standards documents by instead saying \u0026ldquo;read tpop, oh and please no studly caps.\u0026rdquo;\n","permalink":"https://bobcopeland.com/blog/2009/08/wl1251_sdio-merged/","summary":"\u003cp\u003eThe SDIO patches for TI 1251 (Android wifi chipset) are finally merged into wireless-testing, so they should be a lot easier to hack on now. That means the driver should make it into 2.6.32, though at a rather experimental stage. I did fix some crashes on ifup/ifdown since last posting, but there\u0026rsquo;s always more work to do. Current todo list includes better behavior for non-polling controllers (make the irq have a top-half), tracking down a device hang on reinitialization, pushing the msm_wifi.ko module, and on and on.\u003c/p\u003e","title":"wl1251_sdio merged"},{"content":" Whenever I have some occasion at which I am to provide a side item or hors d\u0026rsquo;Å“uvres, I consider making the quintessential party treat: sausage balls. I think these are a Southern US mainstay, as no one around here seems to have encountered them before, whereas in my youth they made an all-too-brief appearance at many a gathering. Take it from me and my waistline, these things are full of win.\nThe classic recipe goes like this:\n2 c Bisquick brand baking mix 10 oz medium chedder cheese, grated* 1 lb breakfast sausage**\n\\* Sharp tends to be too dry. I also freshly grate it with the food processor since block cheese usually has more moisture than packaged grated cheese. \\\\ Jimmy Dean \u0026ldquo;Hot\u0026rdquo;. Spicier is better.\nPreheat oven to 350Â°. Mix everything together with your hands until it forms one big lump. Roll into 1.5-2\u0026quot; diameter balls. Place on a cookie sheet and bake for 20 minutes or until golden brown. Cool before serving.\nIt doesn\u0026rsquo;t get much easier than that. However, I\u0026rsquo;m not crazy about relying on Bisquick; if we ever buy it, it stays in our fridge forever. I make biscuits frequently, but I find Bisquick biscuits to have a very chemical, baking soda taste that reminds me of pancakes. Maybe because I\u0026rsquo;m too lazy to make pancakes from scratch, so if I ever do, I use Bisquick \u0026ndash; guess how often we have pancakes.\nAnyway, I always have the components for home-made biscuits on hand, so I thought I would make an extra batch without Bisquick and see how it went. I took my normal biscuit recipe (stolen from Alton Brown), replaced the butter with shortening, as I thought the butter would make it too greasy, and supplanted the Bisquick:\n2 c flour 4 tsp baking powder 3/4 tsp salt 1/4 tsp baking soda 4 tbsp buttermilk mix (my one cheat with biscuits, but it works great) 4 tbsp vegetable shortening 1.5 tbsp water [rest same as above]\nAs indicated, I added a little water, because I found the Bisquick mixture to be a bit more moist than the flour mixture (I guess it has a little more fat in it). If the mixture is too dry, the ingredients will crumble rather than form a cohesive whole.\nThe result? The cheese and sausage really overwhelm the flavor of the dough, so there\u0026rsquo;s not much difference in taste. In texture, the Bisquick balls are chewier, while the from-scratch version is a bit lighter. It\u0026rsquo;s rather subtle, so while I somewhat prefer the latter, it\u0026rsquo;s not generally worth the extra effort. But since it saves me from buying biscuit mix, it\u0026rsquo;s a winner in my book.\nNext time, I\u0026rsquo;ll try using chorizo.\n","permalink":"https://bobcopeland.com/blog/2009/07/sausage-fest/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/3755828365/\" title=\"5000 Calories of Awesome by bluesterror, on Flickr\"\u003e\u003cimg alt=\"5000 Calories of Awesome\" loading=\"lazy\" src=\"http://farm3.static.flickr.com/2443/3755828365_55d51015a4_m.jpg\"\u003e\u003c/a\u003e Whenever I have some occasion at which I am to provide a side item or hors d\u0026rsquo;Å“uvres, I consider making the quintessential party treat: sausage balls. I think these are a Southern US mainstay, as no one around here seems to have encountered them before, whereas in my youth they made an all-too-brief appearance at many a gathering. Take it from me and my waistline, these things are full of win.\u003c/p\u003e","title":"Sausage fest"},{"content":"Kalle has posted a rebased version of my SDIO patches on top of the latest wireless-testing. I\u0026rsquo;ve done a little bit of testing with it \u0026ndash; the driver starts up and loads fine, but once the interface goes down, it\u0026rsquo;s busted:\n\u0026lt;6\u0026gt;[ 980.884302] wl1251_sdio mmc0:0001:1: firmware: requesting wl1251-fw.bin \u0026lt;6\u0026gt;[ 981.036448] wl1251_sdio mmc0:0001:1: firmware: requesting wl1251-nvs.bin \u0026lt;3\u0026gt;[ 981.045449] init: untracked pid 354 exited \u0026lt;3\u0026gt;[ 981.074408] init: untracked pid 355 exited \u0026lt;7\u0026gt;[ 981.331853] wl1251: 151 tx blocks at 0x3b788, 35 rx blocks at 0x3a780 \u0026lt;7\u0026gt;[ 981.339300] wl1251: firmware booted (Rev 4.0.4.3.5) \u0026lt;7\u0026gt;[ 984.702740] wlan0: direct probe to AP 00:1a:70:da:a9:cd (try 1) \u0026lt;7\u0026gt;[ 984.901621] wlan0: direct probe to AP 00:1a:70:da:a9:cd (try 2) \u0026lt;7\u0026gt;[ 985.101583] wlan0: direct probe to AP 00:1a:70:da:a9:cd (try 3) \u0026lt;7\u0026gt;[ 985.301617] wlan0: direct probe to AP 00:1a:70:da:a9:cd timed out \u0026lt;7\u0026gt;[ 1024.802837] wl1251: down \u0026lt;3\u0026gt;[ 1044.856640] init: untracked pid 358 exited \u0026lt;3\u0026gt;[ 1050.033886] mmc0: Data timeout \u0026lt;3\u0026gt;[ 1050.037701] wl1251: ERROR sdio write failed (-110) \u0026lt;3\u0026gt;[ 1051.045674] mmc0: Data timeout \u0026lt;3\u0026gt;[ 1051.049519] wl1251: ERROR sdio write failed (-110) \u0026lt;3\u0026gt;[ 1052.057673] mmc0: Data timeout \u0026lt;3\u0026gt;[ 1052.061518] wl1251: ERROR sdio write failed (-110) Exploring this further turned into a rather long yak shaving session because I wanted to get iw on the phone to do more manual tests, and I wanted to link it dynamically against bionic, the Android\u0026rsquo;s fork of a BSD libc. Here were a few interesting discoveries found along the way:\n`$ ./iw iw: not found\nRight away, I intuited this was a problem finding libnl.so, but I was setting LD_LIBRARY_PATH. So I looked at the bionic linker source to find: /* TODO: Need to add support for initializing the so search path with\nLD_LIBRARY_PATH env variable for non-setuid programs. */ So `libnl.so` had to go into the hard-coded library search path of `/system/lib`. That alone didn\u0026#39;t help, however. I eventually remembered that dynamically linked executables include the name of the dynamic linker in ELF headers, and on Android this is called \u0026#34;/system/bin/linker\u0026#34; instead of \u0026#34;/usr/lib/ld.so.1.\u0026#34; After fixing that ( `-Wl,-dynamic-linker,/system/bin/linker`), the program just SEGVed at startup, so I added Android linker scripts and other random crap to the linker command line (much of it furnished by the very cool [agcc](http://plausible.org/andy/agcc) wrapper script). ./iw Usage:\t./iw [options] command Options: \u0026ndash;debug\tenable netlink debugging \u0026ndash;version\tshow version (0.9.14-2-g5286851) Commands: help\nAlmost there, but no available commands? A glance at the iw source revealed that iw sticks all that stuff into an ELF section which mostly disappears when you link with --gc-sections. So with that exorcised from my linker command line, I finally have a functioning Android iw that is dynamically linked against bionic libc and my own cross-compiled libnl. One wonders if the pain of bionic is worth its benefits, unless a benefit was curing ennui: \u0026#34;I\u0026#39;m bored, let\u0026#39;s write our own libc!\u0026#34; Anyway, I should be able to produce the various wireless tools natively compiled for Android in short order now. After that I\u0026#39;ll pop my Android TODO stack to the task, \u0026#34;make it easier to build custom images in my build environment.\u0026#34; I\u0026#39;d like to customize the filesystem images to have all of these utilities and relevant drivers in the normal places rather than hanging out in weird locations on the sdcard. ","permalink":"https://bobcopeland.com/blog/2009/07/now-bionic/","summary":"\u003cp\u003eKalle has \u003ca href=\"http://marc.info/?l=linux-wireless\u0026amp;m=124785700109009\u0026amp;w=2\"\u003eposted\u003c/a\u003e a rebased version of my SDIO patches on top of the latest wireless-testing. I\u0026rsquo;ve done a little bit of testing with it \u0026ndash; the driver starts up and loads fine, but once the interface goes down, it\u0026rsquo;s busted:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;6\u0026gt;[  980.884302] wl1251_sdio mmc0:0001:1: firmware: requesting wl1251-fw.bin\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;6\u0026gt;[  981.036448] wl1251_sdio mmc0:0001:1: firmware: requesting wl1251-nvs.bin\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;3\u0026gt;[  981.045449] init: untracked pid 354 exited\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;3\u0026gt;[  981.074408] init: untracked pid 355 exited\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;7\u0026gt;[  981.331853] wl1251: 151 tx blocks at 0x3b788, 35 rx blocks at 0x3a780\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;7\u0026gt;[  981.339300] wl1251: firmware booted (Rev 4.0.4.3.5)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;7\u0026gt;[  984.702740] wlan0: direct probe to AP 00:1a:70:da:a9:cd (try 1)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;7\u0026gt;[  984.901621] wlan0: direct probe to AP 00:1a:70:da:a9:cd (try 2)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;7\u0026gt;[  985.101583] wlan0: direct probe to AP 00:1a:70:da:a9:cd (try 3)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;7\u0026gt;[  985.301617] wlan0: direct probe to AP 00:1a:70:da:a9:cd timed out\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;7\u0026gt;[ 1024.802837] wl1251: down\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;3\u0026gt;[ 1044.856640] init: untracked pid 358 exited\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;3\u0026gt;[ 1050.033886] mmc0: Data timeout\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;3\u0026gt;[ 1050.037701] wl1251: ERROR sdio write failed (-110)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;3\u0026gt;[ 1051.045674] mmc0: Data timeout\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;3\u0026gt;[ 1051.049519] wl1251: ERROR sdio write failed (-110)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;3\u0026gt;[ 1052.057673] mmc0: Data timeout\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026lt;3\u0026gt;[ 1052.061518] wl1251: ERROR sdio write failed (-110)\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eExploring this further turned into a rather long yak shaving session because I wanted to get iw on the phone to do more manual tests, and I wanted to link it dynamically against bionic, the Android\u0026rsquo;s fork of a BSD libc. Here were a few interesting discoveries found along the way:\u003c/p\u003e","title":"Now bionic"},{"content":"Work on the Android wireless driver is stalled for now as kvalo is rebasing the patches. I believe the next step will be to take the platform code, which I have temporarily built into a module called msm_wifiÂ¸ and turn it into a platform rfkill device. Or something like that \u0026ndash; this is what he and I came up with at the wireless summit. Then there\u0026rsquo;s an annoying stack trace because free_irq() happens in common code, but sdio irqs are somewhat different so that needs to be pushed down into the interface layer.\nMeanwhile, my project for the weekend was to get wl12xx integrated into the UI. This is an area that is likely to change anyway, so I didn\u0026rsquo;t want to spend a lot of time to do the whole thing properly, but I did want to get the plumbing pieces done correctly, which means libnl-tiny plus wpa_supplicant with netlink (-Dnl80211) support. As it turned out, this was a somewhat frustrating ordeal of mismatching wpa_s and libnl versions and general cross compiling headaches, so I didn\u0026rsquo;t finish this yet.\nI did, however, also try the wext driver with wpa_s which I already compiled using the Android port. There are a few special commands that the Android UI sends to the wpa_s control interface, so I stubbed out a few of those in the wext driver. Then I moved wlan.ko out of the way, replacing it with msm_wifi (the hardware library inserts the wlan.ko module when you enable wireless through the UI). With these changes, wl12xx initializes when you click the checkbox, but wpa_supplicant gets confused somehow so there\u0026rsquo;s still a little work to be done here. I suppose I should just patch some of the library code to know about the other driver in order to reduce the number of hacks needed to get it started.\n","permalink":"https://bobcopeland.com/blog/2009/07/wifi-ui-part-0/","summary":"\u003cp\u003eWork on the Android wireless driver is stalled for now as kvalo is rebasing the patches. I believe the next step will be to take the platform code, which I have temporarily built into a module called msm_wifiÂ¸ and turn it into a platform rfkill device. Or something like that \u0026ndash; this is what he and I came up with at the wireless summit. Then there\u0026rsquo;s an annoying stack trace because free_irq() happens in common code, but sdio irqs are somewhat different so that needs to be pushed down into the interface layer.\u003c/p\u003e","title":"Wifi UI Part 0"},{"content":"A little bit of technical difficulty today while updating the blog software, but all seems to be in order now. Did I mention how non-awesome the wordpress codebase is?\n","permalink":"https://bobcopeland.com/blog/2009/07/were-back/","summary":"\u003cp\u003eA little bit of technical difficulty today while updating the blog software, but all seems to be in order now. Did I mention how non-awesome the wordpress codebase is?\u003c/p\u003e","title":"We're back"},{"content":"I was curious how well ath5k has been improving since its release, so I hacked up a little script to associate and do five minute iperf runs from /etc/rc.local. Looks pretty good so far (w-t is wireless-testing plus 5 or 6 extra patches I have brewing). The script is pretty kludgy, but may form the basis for some automatic build/regression testing in the future. ","permalink":"https://bobcopeland.com/blog/2009/07/ath5k-performance-history/","summary":"\u003cp\u003eI was curious how well ath5k has been improving since its release, so I hacked up a little script to associate and do five minute iperf runs from /etc/rc.local. Looks pretty good so far (w-t is wireless-testing plus 5 or 6 extra patches I have brewing). The script is pretty kludgy, but may form the basis for some automatic build/regression testing in the future.\n\u003cimg alt=\"ath5k iperf chart\" loading=\"lazy\" src=\"/images/lj/ath5k_iperf.png\"\u003e\u003c/p\u003e","title":"ath5k performance history"},{"content":"Ange and I are back in the States after our wonderful break abroad. Now we\u0026rsquo;re home again, delighting in such missed American excesses as air conditioning, queen-sized beds, and monolingualism. The latter, actually, is our biggest regret of the trip: the next time we visit a country we\u0026rsquo;ll have to plan ahead and take a few language courses. Even so, we picked up the basics during our immersion, achieving a fluency on par with, say, a one-year-old who takes the subway a lot.\nOur first exposure to Berlin cuisine was at a coffee house where we had a few of the sweet pastries that give the city its name, if I interpret that old JFK myth correctly. Jelly doughnuts, doughnuts shaped like pretzels, strudels, cheesecakes, cheese pastries, and so on were also amply supplied gratis at our hotel, so snarfing down on cakes with tea on the patio quickly became an afternoon tradition during the trip.\nFor street food, the main contenders seem to be all sorts of sausages, especially the currywurst preparation, and the dÃ¶ner kebab. Currywurst is essentially a sausage sprinkled with curry powder and doused in ketchup. It\u0026rsquo;s very good \u0026ndash; any sausage in Berlin is about 50 times better than the brats one can get at home, though neither of us were really sold on the necessity of the curry powder. Not bad, just different. The dÃ¶ner kebab is more or less a gyro served in a spongy, focaccia-like pita, slammed with enough meat and vegetables to make holding it nearly impossible. I miss them already.\nOur best dinner in a standard restaurant was at Florian, a German/Austrian restaurant around the corner from our hotel. The selection was game-influenced: Angeline had duck and I had a roast pig, all served with a hearty gravy and various starches. Both dishes were excellent; you can\u0026rsquo;t go wrong with roasted animals.\nHowever, the culinary highlight of our trip was with the so-called \u0026ldquo;Shy Chef,\u0026rdquo; an underground restaurant. Our friends turned us onto this by sending us a story by Gisela Williams in a little-known rag, The New York Times. We were fortunate enough to grab a reservation the week after the story ran.\nThe evening before dinner, we got the email leading us to the restaurant\u0026rsquo;s secret location. Upon arriving, we found our way into a small Berlin flat with a table set for four. The proprietors are obvious bibliophiles, as is instantly inferred from the books spilling out of wall-length, floor-to-ceiling bookcases, and underscored by the Papa-inspired absinthe cocktails handed to us as soon as we entered the room. (As an aside, if number of bookstores is any indication, Germans are enthusiastic readers. We passed three independent bookstores every morning during the 50 meter walk to our nearby cafÃ©. A far cry from our highly polished, soul-starved Borders and B\u0026amp;Ns.)\nThe hidden supper club is a wonderful concept: it\u0026rsquo;s very much like a dinner party with friends, only you don\u0026rsquo;t know your friends until you get there. The fare is as good as in any restaurant, but the authenticity and intimacy are unmatched. Our fellow diners hailed from NYC and Oxford and made for excellent company, as did our hosts.\nI won\u0026rsquo;t go into too much detail of the menu, lest it lose some of the mystique, but the highlights for me were a velvety garlic-cauliflower purÃ©e with an inventive parmagiano reggiano \u0026ldquo;gratin\u0026rdquo;; thin-sliced salmon in olive oil with German bleu cheese, apple and cucumber matchsticks; and a very nice salty, paper-thin ham that recalled to me the country ham my Tennessean relatives cured themselves. The dishes were accompanied by generous wine pairings, together more wine than Angeline and I have had in the previous year or so, but all of them excellent choices. As the gentleman from Oxford said, the entire experience was \u0026ldquo;just brilliant,\u0026rdquo; and I am sure we\u0026rsquo;ll remember this dinner for quite some time.\n","permalink":"https://bobcopeland.com/blog/2009/07/berlin-eats/","summary":"\u003cp\u003eAnge and I are back in the States after our wonderful break abroad. Now we\u0026rsquo;re home again, delighting in such missed American excesses as air conditioning, queen-sized beds, and monolingualism. The latter, actually, is our biggest regret of the trip: the next time we visit a country we\u0026rsquo;ll have to plan ahead and take a few language courses. Even so, we picked up the basics during our immersion, achieving a fluency on par with, say, a one-year-old who takes the subway a lot.\u003c/p\u003e","title":"Berlin eats"},{"content":" One of our guidebooks claimed that while Coca-cola was ever present, Berliners drink their own local soft drinks. We haven\u0026rsquo;t found that to be the case; it seems only Coke products are here. Of course there are minor differences: regular Coke is made with sugar, Diet Coke (called \u0026ldquo;Coke light\u0026rdquo; here) has saccharine. Then there\u0026rsquo;s the stuff you can\u0026rsquo;t get back home (outside of World of Coke), such as \u0026ldquo;Mezzo Mix\u0026rdquo; which is essentially Coke with orange. I found this one, \u0026ldquo;The Spirit of Georgia\u0026rdquo; our first day here. Despite many years living in Georgia, I was not quite sure what our collective spirit was, but now I know it is yellow-tinted Sprite.\n","permalink":"https://bobcopeland.com/blog/2009/06/that-refreshing-georgia-spirit/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/3674917172/\" title=\"The Spirit of Georgia by bluesterror, on Flickr\"\u003e\u003cimg alt=\"The Spirit of Georgia\" loading=\"lazy\" src=\"http://farm4.static.flickr.com/3649/3674917172_cc1fa7faf7_m.jpg\"\u003e\u003c/a\u003e One of our guidebooks claimed that while Coca-cola was ever present, Berliners drink their own local soft drinks. We haven\u0026rsquo;t found that to be the case; it seems only Coke products are here. Of course there are minor differences: regular Coke is made with sugar, Diet Coke (called \u0026ldquo;Coke light\u0026rdquo; here) has saccharine. Then there\u0026rsquo;s the stuff you can\u0026rsquo;t get back home (outside of World of Coke), such as \u0026ldquo;Mezzo Mix\u0026rdquo; which is essentially Coke with orange. I found this one, \u0026ldquo;The Spirit of Georgia\u0026rdquo; our first day here. Despite many years living in Georgia, I was not quite sure what our collective spirit was, but now I know it is yellow-tinted Sprite.\u003c/p\u003e","title":"That refreshing Georgia spirit"},{"content":"Angeline and I arrived safely to Berlin a couple of days ago. So far it\u0026rsquo;s an interesting city. It would definitely be useful to have more than a passing familiarity with the German language, but most people understand enough English that we get by. The European style lights and bath fixtures take a bit of thought to operate. Train system is very extensive, and despite the presence of graffiti almost everywhere, the trains themselves are very clean. German television consists primarily of overdubbed US market cast-offs (\u0026ldquo;The Nanny\u0026rdquo; is inexplicably on nearly 24/7). Food so far has been hit or miss, some good stuff, some rather average; tomorrow night is our most anticipated dinner.\nThe wireless summit was great by the way, perhaps more on that later.\n","permalink":"https://bobcopeland.com/blog/2009/06/hello-from-berlin/","summary":"\u003cp\u003eAngeline and I arrived safely to Berlin a couple of days ago. So far it\u0026rsquo;s an interesting city. It would definitely be useful to have more than a passing familiarity with the German language, but most people understand enough English that we get by. The European style lights and bath fixtures take a bit of thought to operate. Train system is very extensive, and despite the presence of graffiti almost everywhere, the trains themselves are very clean. German television consists primarily of overdubbed US market cast-offs (\u0026ldquo;The Nanny\u0026rdquo; is inexplicably on nearly 24/7). Food so far has been hit or miss, some good stuff, some rather average; tomorrow night is our most anticipated dinner.\u003c/p\u003e","title":"Hello from Berlin"},{"content":"As a traveler through the DC Metro system in yesterday\u0026rsquo;s evening rush hour, I learned that Metro employees euphemize \u0026ldquo;horrible train wreck\u0026rdquo; as \u0026ldquo;train experiencing mechanical problems.\u0026rdquo; To what end? It just sounds callous, and all of the passengers on my unaffected route already knew of the incident.\n","permalink":"https://bobcopeland.com/blog/2009/06/all-accounted-for/","summary":"\u003cp\u003eAs a traveler through the DC Metro system in yesterday\u0026rsquo;s evening rush hour, I learned that Metro employees euphemize \u0026ldquo;horrible train wreck\u0026rdquo; as \u0026ldquo;train experiencing mechanical problems.\u0026rdquo; To what end? It just sounds callous, and all of the passengers on my unaffected route already knew of the incident.\u003c/p\u003e","title":"All accounted for"},{"content":"Linux kernel 2.6.30 is out, featuring the best mainline support for ath5k yet. I recommend if you do use wireless with 2.6.30 (or .29), that you also grab this patch which fixes a nasty memory corruption issue. That one haunted me for months but it was a great feeling to finally nail it down. Of course the fix turned out to be quite simple. It should be hitting stable in short order.\nWhat to look for in 2.6.31:\nAP mode (finally!)\nbetter transmission power settings\nenhanced support for regulatory domains\nrfkill support\nThere are still a couple of bugs in AP mode and rfkill, but hopefully they\u0026rsquo;ll get ironed out in the next two weeks or so. It\u0026rsquo;s too early to make predictions for 2.6.32, but improved power saving is a possibility, and of course lots of bug fixes. I also hope to set up some automated testing now that I have more than one piece of hardware (thanks Luis!) and will be interested in seeing performance statistics since ath5k was introduced.\nNext week, Ange and I will be heading off to Berlin, where I\u0026rsquo;ll be attending the Linux Wireless Mini-summit at FUDCon for a couple of days, and after that we\u0026rsquo;ll be staying a few days for vacation. I\u0026rsquo;m sure to return with a head full of ideas about 802.11 networking, and a belly full of beer and sausage.\n","permalink":"https://bobcopeland.com/blog/2009/06/kernel-2630/","summary":"\u003cp\u003eLinux kernel 2.6.30 is out, featuring the best mainline support for ath5k yet. I recommend if you do use wireless with 2.6.30 (or .29), that you also grab \u003ca href=\"http://lkml.org/lkml/2009/6/5/269\"\u003ethis patch\u003c/a\u003e which fixes a nasty memory corruption issue. That one haunted me for months but it was a great feeling to finally nail it down. Of course the fix turned out to be quite simple. It should be hitting stable in short order.\u003c/p\u003e","title":"Kernel 2.6.30"},{"content":"The Island of Dr. Moreau, H. G. Wells. \\\\\\* Interesting how-to manual for teaching your pets to talk.\nDracula, Bram Stoker. \\\\\\\\ Classic tale of bloodlust.\nBook of Negroes, Lawrence Hill. \\\\\\\\ Like Uncle Tom\u0026rsquo;s Cabin but not quite as sad.\n\u0026ldquo;I, Robot,\u0026rdquo; Cory Doctorow. \\\\\\* Cory Doctorow pretends to be Asimov, but it\u0026rsquo;s not as bad as you\u0026rsquo;d think.\n\u0026ldquo;Call of Cthulu,\u0026rdquo; H. P. Lovecraft. \\\\ Do I get kicked out of the nerd club for thinking this was dumb?\nCity of Thieves, David Benioff. \\\\\\\\\\* Remind me not to grow up in war-torn Russia.\nGarlic And Sapphires: The Secret Life Of A Critic In Disguise, Ruth Reichl \\\\\\* Reichl reminds us that gourmet dining is a big sham.\nBarnacle Love, Anthony Da Sa. \\* Bored me.\nWorld Without End, Ken Follett. \\\\ Pillars of the Earth with different names.\n","permalink":"https://bobcopeland.com/blog/2009/06/more-recent-readings/","summary":"\u003cp\u003e\u003cem\u003eThe Island of Dr. Moreau\u003c/em\u003e, H. G. Wells.\n\\\u003cem\u003e\\\u003c/em\u003e\\* Interesting how-to manual for teaching your pets to talk.\u003c/p\u003e\n\u003cp\u003e\u003cem\u003eDracula\u003c/em\u003e, Bram Stoker.\n\\\u003cem\u003e\\\u003c/em\u003e\\\u003cem\u003e\\\u003c/em\u003e Classic tale of bloodlust.\u003c/p\u003e\n\u003cp\u003e\u003cem\u003eBook of Negroes\u003c/em\u003e, Lawrence Hill.\n\\\u003cem\u003e\\\u003c/em\u003e\\\u003cem\u003e\\\u003c/em\u003e Like Uncle Tom\u0026rsquo;s Cabin but not quite as sad.\u003c/p\u003e\n\u003cp\u003e\u0026ldquo;I, Robot,\u0026rdquo; Cory Doctorow.\n\\\u003cem\u003e\\\u003c/em\u003e\\* Cory Doctorow pretends to be Asimov, but it\u0026rsquo;s not as bad as you\u0026rsquo;d think.\u003c/p\u003e\n\u003cp\u003e\u0026ldquo;Call of Cthulu,\u0026rdquo; H. P. Lovecraft.\n\\\u003cem\u003e\\\u003c/em\u003e Do I get kicked out of the nerd club for thinking this was dumb?\u003c/p\u003e","title":"More Recent Readings"},{"content":"So, wl12xx definitely works including transmission, but I still haven\u0026rsquo;t fixed the rough edges in the driver. However, I did bother to make a semi-permanent writeup on how to build and use wl12xx on the G1 as it currently stands. I hope to clean up the warts and submit the patchset next week. Meanwhile, I have a lot of ath5k bugs to work on. Enough for today though.\n","permalink":"https://bobcopeland.com/blog/2009/05/wl12xx-howto/","summary":"\u003cp\u003eSo, wl12xx definitely works including transmission, but I still haven\u0026rsquo;t fixed the rough edges in the driver. However, I did bother to make a semi-permanent \u003ca href=\"/android_wifi.html\"\u003ewriteup\u003c/a\u003e on how to build and use wl12xx on the G1 as it currently stands. I hope to clean up the warts and submit the patchset next week. Meanwhile, I have a lot of ath5k bugs to work on. Enough for today though.\u003c/p\u003e","title":"wl12xx howto"},{"content":"Ange and I just returned from a long weekend in Florida with my family. After a perfect storm of flight delays and down computers, and US Airways personnel blaming the passengers over the intercom for ruining their holiday, we arrived in the state a mere six hours late. Everything from then on was smooth sailing though: sparkling sandy beaches, excellent weather, lots of playtime with the kids, and so on. My nephews\u0026rsquo; superhero kites did in fact fly \u0026ndash; after a trip to the local kite store to pick up some tails. We got in a full day of standing in line at Disney World, and an afternoon traipsing through ye olde shopping centre of St. Augustine. And I mostly didn\u0026rsquo;t touch the computer the whole time.\nAnyway we are back and reinserted to the river of normal life. This trip should hold us until a month from now when we will be flying off to Berlin, Germany. I get two days of being nerdy at the Linux wireless mini-summit, and then the rest of it will be spent enjoying the city.\n","permalink":"https://bobcopeland.com/blog/2009/05/unvacationed/","summary":"\u003cp\u003eAnge and I just returned from a long weekend in Florida with my family. After a perfect storm of flight delays and down computers, and US Airways personnel blaming the passengers over the intercom for ruining their holiday, we arrived in the state a mere six hours late. Everything from then on was smooth sailing though: sparkling sandy beaches, excellent weather, lots of playtime with the kids, and so on. My nephews\u0026rsquo; superhero kites did in fact fly \u0026ndash; after a trip to the local kite store to pick up some tails. We got in a full day of standing in line at Disney World, and an afternoon traipsing through ye olde shopping centre of St. Augustine. And I mostly didn\u0026rsquo;t touch the computer the whole time.\u003c/p\u003e","title":"Unvacationed"},{"content":"Success! Scanning with wl12xx on my ADP1 works. I\u0026rsquo;ll post more later but here\u0026rsquo;s a teaser. That\u0026rsquo;s a real SSID, however apt.\n# ./iwlist wlan0 scan wlan0 Scan completed : Cell 01 - Address: 00:0F:B5:63:30:4E Channel:11 Frequency:2.462 GHz (Channel 11) Quality=14/70 Signal level=-96 dBm Encryption key:on ESSID:\u0026#34;SERENDIPITY\u0026#34; Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 24 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s Mode:Master Extra:tsf=000001dec907e41c Extra: Last beacon: 160ms ago (Unknown Wireless Token 0x8C05) ","permalink":"https://bobcopeland.com/blog/2009/05/first-scan/","summary":"\u003cp\u003eSuccess! Scanning with wl12xx on my ADP1 works. I\u0026rsquo;ll post more later but here\u0026rsquo;s a teaser. That\u0026rsquo;s a real SSID, however apt.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e# ./iwlist wlan0 scan\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ewlan0     Scan completed :\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e          Cell 01 - Address: 00:0F:B5:63:30:4E\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    Channel:11\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    Frequency:2.462 GHz (Channel 11)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    Quality=14/70  Signal level=-96 dBm\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    Encryption key:on\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    ESSID:\u0026#34;SERENDIPITY\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                              24 Mb/s; 36 Mb/s; 54 Mb/s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    Mode:Master\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    Extra:tsf=000001dec907e41c\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    Extra: Last beacon: 160ms ago\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e                    (Unknown Wireless Token 0x8C05)\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"First scan"},{"content":"I won\u0026rsquo;t claim success until I actually transfer data, but so far, it looks like wl12xx SDIO support is baked:\n[ 111.247063] cfg80211: Using static regulatory domain info [ 111.253472] cfg80211: Regulatory domain: US [ 111.262810] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 111.271568] (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm) [ 111.279472] (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) [ 111.287254] (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) [ 111.294975] (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) [ 111.302482] (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) [ 111.310264] (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm) [ 111.317894] cfg80211: Calling CRDA for country: US [ 112.684807] lib80211: common routines for IEEE802.11 drivers [ 112.690972] lib80211_crypt: registered algorithm \u0026#39;NULL\u0026#39; [ 112.744713] lib80211_crypt: registered algorithm \u0026#39;TKIP\u0026#39; [ 112.787467] lib80211_crypt: registered algorithm \u0026#39;WEP\u0026#39; [ 112.845267] lib80211_crypt: registered algorithm \u0026#39;CCMP\u0026#39; [ 113.251671] wl12xx: registering driver [ 113.256462] wifi_probe [ 113.259208] trout_wifi_power: 1 [ 113.569452] trout_wifi_reset: 0 [ 113.623681] trout_wifi_set_carddetect: 1 [ 113.628290] mmc0: card_present 1 [ 113.631921] mmc0: Slot status change detected (0 -\u0026gt; 1) [ 113.653283] mmc0: Command timeout [ 113.664788] mmc0: card claims to support voltages below the defined range. These will be ignored. [ 113.678429] mmc0: SDIO card claims to support the incompletely defined \u0026#39;low voltage range\u0026#39;. This will be ignored. [ 113.692773] mmc0: new SDIO card at address 0001 [ 113.702813] wl12xx: in probe [ 113.728844] phy0: Selected rate control algorithm \u0026#39;minstrel\u0026#39; [ 113.738915] wl12xx: loaded [ 113.743919] wl12xx: initialized Unfortunately, I can\u0026rsquo;t really test it yet because the wpa_supplicant already on the phone doesn\u0026rsquo;t support -Dwext or -Dnl80211, and there are no wireless-tools. So I need to cross-compile those before attempting to associate. In the meantime, here\u0026rsquo;s a very rough patch that implements the goods from wireless-testing wl12xx. I need to work on read() and write() - right now they are a copy of what is in the google driver because it appears the host driver has issues with RW_EXTENDED. I don\u0026rsquo;t believe the readb/writeb fallbacks should be strictly necessary. Ditto with the platform code, that needs a slightly better solution.\n","permalink":"https://bobcopeland.com/blog/2009/05/wl12xx-update/","summary":"\u003cp\u003eI won\u0026rsquo;t claim success until I actually transfer data, but so far, it looks like wl12xx SDIO support is baked:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-gdscript3\" data-lang=\"gdscript3\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e111.247063\u003c/span\u003e] cfg80211: Using \u003cspan style=\"color:#66d9ef\"\u003estatic\u003c/span\u003e regulatory domain info\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e111.253472\u003c/span\u003e] cfg80211: Regulatory domain: US\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e111.262810\u003c/span\u003e] \t(start_freq \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e end_freq \u003cspan style=\"color:#960050;background-color:#1e0010\"\u003e@\u003c/span\u003e bandwidth), (max_antenna_gain, max_eirp)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e111.271568\u003c/span\u003e] \t(\u003cspan style=\"color:#ae81ff\"\u003e2402000\u003c/span\u003e KHz \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e2472000\u003c/span\u003e KHz \u003cspan style=\"color:#960050;background-color:#1e0010\"\u003e@\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e40000\u003c/span\u003e KHz), (\u003cspan style=\"color:#ae81ff\"\u003e600\u003c/span\u003e mBi, \u003cspan style=\"color:#ae81ff\"\u003e2700\u003c/span\u003e mBm)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e111.279472\u003c/span\u003e] \t(\u003cspan style=\"color:#ae81ff\"\u003e5170000\u003c/span\u003e KHz \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e5190000\u003c/span\u003e KHz \u003cspan style=\"color:#960050;background-color:#1e0010\"\u003e@\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e40000\u003c/span\u003e KHz), (\u003cspan style=\"color:#ae81ff\"\u003e600\u003c/span\u003e mBi, \u003cspan style=\"color:#ae81ff\"\u003e2300\u003c/span\u003e mBm)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e111.287254\u003c/span\u003e] \t(\u003cspan style=\"color:#ae81ff\"\u003e5190000\u003c/span\u003e KHz \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e5210000\u003c/span\u003e KHz \u003cspan style=\"color:#960050;background-color:#1e0010\"\u003e@\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e40000\u003c/span\u003e KHz), (\u003cspan style=\"color:#ae81ff\"\u003e600\u003c/span\u003e mBi, \u003cspan style=\"color:#ae81ff\"\u003e2300\u003c/span\u003e mBm)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e111.294975\u003c/span\u003e] \t(\u003cspan style=\"color:#ae81ff\"\u003e5210000\u003c/span\u003e KHz \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e5230000\u003c/span\u003e KHz \u003cspan style=\"color:#960050;background-color:#1e0010\"\u003e@\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e40000\u003c/span\u003e KHz), (\u003cspan style=\"color:#ae81ff\"\u003e600\u003c/span\u003e mBi, \u003cspan style=\"color:#ae81ff\"\u003e2300\u003c/span\u003e mBm)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e111.302482\u003c/span\u003e] \t(\u003cspan style=\"color:#ae81ff\"\u003e5230000\u003c/span\u003e KHz \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e5330000\u003c/span\u003e KHz \u003cspan style=\"color:#960050;background-color:#1e0010\"\u003e@\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e40000\u003c/span\u003e KHz), (\u003cspan style=\"color:#ae81ff\"\u003e600\u003c/span\u003e mBi, \u003cspan style=\"color:#ae81ff\"\u003e2300\u003c/span\u003e mBm)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e111.310264\u003c/span\u003e] \t(\u003cspan style=\"color:#ae81ff\"\u003e5735000\u003c/span\u003e KHz \u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e5835000\u003c/span\u003e KHz \u003cspan style=\"color:#960050;background-color:#1e0010\"\u003e@\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e40000\u003c/span\u003e KHz), (\u003cspan style=\"color:#ae81ff\"\u003e600\u003c/span\u003e mBi, \u003cspan style=\"color:#ae81ff\"\u003e3000\u003c/span\u003e mBm)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e111.317894\u003c/span\u003e] cfg80211: Calling CRDA \u003cspan style=\"color:#66d9ef\"\u003efor\u003c/span\u003e country: US\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e112.684807\u003c/span\u003e] lib80211: common routines \u003cspan style=\"color:#66d9ef\"\u003efor\u003c/span\u003e IEEE802\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e11\u003c/span\u003e drivers\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e112.690972\u003c/span\u003e] lib80211_crypt: registered algorithm \u003cspan style=\"color:#e6db74\"\u003e\u0026#39;NULL\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e112.744713\u003c/span\u003e] lib80211_crypt: registered algorithm \u003cspan style=\"color:#e6db74\"\u003e\u0026#39;TKIP\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e112.787467\u003c/span\u003e] lib80211_crypt: registered algorithm \u003cspan style=\"color:#e6db74\"\u003e\u0026#39;WEP\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e112.845267\u003c/span\u003e] lib80211_crypt: registered algorithm \u003cspan style=\"color:#e6db74\"\u003e\u0026#39;CCMP\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.251671\u003c/span\u003e] wl12xx: registering driver\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.256462\u003c/span\u003e] wifi_probe\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.259208\u003c/span\u003e] trout_wifi_power: \u003cspan style=\"color:#ae81ff\"\u003e1\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.569452\u003c/span\u003e] trout_wifi_reset: \u003cspan style=\"color:#ae81ff\"\u003e0\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.623681\u003c/span\u003e] trout_wifi_set_carddetect: \u003cspan style=\"color:#ae81ff\"\u003e1\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.628290\u003c/span\u003e] mmc0: card_present \u003cspan style=\"color:#ae81ff\"\u003e1\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.631921\u003c/span\u003e] mmc0: Slot status change detected (\u003cspan style=\"color:#ae81ff\"\u003e0\u003c/span\u003e \u003cspan style=\"color:#f92672\"\u003e-\u0026gt;\u003c/span\u003e \u003cspan style=\"color:#ae81ff\"\u003e1\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.653283\u003c/span\u003e] mmc0: Command timeout\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.664788\u003c/span\u003e] mmc0: card claims to support voltages below the defined range\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e These will be ignored\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.678429\u003c/span\u003e] mmc0: SDIO card claims to support the incompletely defined \u003cspan style=\"color:#e6db74\"\u003e\u0026#39;low voltage range\u0026#39;\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e This will be ignored\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.692773\u003c/span\u003e] mmc0: new SDIO card at address \u003cspan style=\"color:#ae81ff\"\u003e0001\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.702813\u003c/span\u003e] wl12xx: \u003cspan style=\"color:#f92672\"\u003ein\u003c/span\u003e probe\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.728844\u003c/span\u003e] phy0: Selected rate control algorithm \u003cspan style=\"color:#e6db74\"\u003e\u0026#39;minstrel\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.738915\u003c/span\u003e] wl12xx: loaded\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[  \u003cspan style=\"color:#ae81ff\"\u003e113.743919\u003c/span\u003e] wl12xx: initialized\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eUnfortunately, I can\u0026rsquo;t really test it yet because the wpa_supplicant already on the phone doesn\u0026rsquo;t support -Dwext or -Dnl80211, and there are no wireless-tools. So I need to cross-compile those before attempting to associate. In the meantime, here\u0026rsquo;s \u003ca href=\"/kernel/wl/20090516/wl12xx_sdio_2.patch\"\u003ea very rough patch\u003c/a\u003e that implements the goods from wireless-testing wl12xx. I need to work on read() and write() - right now they are a copy of what is in the google driver because it appears the host driver has issues with RW_EXTENDED. I don\u0026rsquo;t believe the readb/writeb fallbacks should be strictly necessary. Ditto with the platform code, that needs a slightly better solution.\u003c/p\u003e","title":"wl12xx update"},{"content":"I like my MacBook well enough, but it certainly does have its share of issues. One such bile-inspiring misfeature is that it sees fit to loudly blare its \u0026ldquo;I\u0026rsquo;m a Mac!\u0026rdquo; chime every time you turn the thing on. According to those in the know, this is actually a feature to let you know the computer started properly. Hmm, I see a big Apple logo, screen is on, I think it\u0026rsquo;s started. So, Mr. Computer, how about making the big ugly noise when you know it isn\u0026rsquo;t working instead, and save us the ear strain the other 99.9% of the time? Did they really think no one would want to use the laptop in, say, a library, or a classroom?\nThe bonus of this brain-o is that older Macs gave you the ability to hold down the mute key while booting to temporarily turn off the sound, a useful feature abandoned for the Intel Macs. Also, plugging something into the headphone jack doesn\u0026rsquo;t work, because \u0026ldquo;the headphone jack isn\u0026rsquo;t available at boot time.\u0026rdquo; (Why? I can still see it there!) Apple actually recommends, and I\u0026rsquo;m not making this up, that you \u0026ldquo;fix\u0026rdquo; it by remembering to mute your audio every time you shut down your computer. Some people have even written little daemon programs for OSX to do that for you. Amazing.\nOf course, the fanboys rationalize this crazy behavior in predictably nonsensical ways: \u0026ldquo;You should always use sleep instead of turning off your computer\u0026rdquo; or \u0026ldquo;I like the sound because it lets people know I\u0026rsquo;m using a Mac.\u0026rdquo;\nAs it happens, the boot noise volume is configured by an NVRAM variable, which seems to be synced with the volume control at shutdown time. Setting it to 0x80 turns off the boot chime. Why 0x80, I do not know, but I stole this very useful information from some mailing list post and can attest that it works.\nHere\u0026rsquo;s how I think this variable was born in Cupertino:\nEngineer 1: This noise is driving me mad, can\u0026#39;t we turn it off? Engineer 2: Sure, we\u0026#39;ll just put a switch in NVRAM. That way, only the users have to deal with it. Marketing: Some users, probably miserable Windows lovers all, are whining about our awesome boot noise feature. What should we tell them? Engineer 2: Just tell them to mute the audio when they turn it off. Heh heh. So, here are some solutions: you can use the nvram program in OSX as in my previous link. And I\u0026rsquo;m sure you could, with proper EFI support in Linux (CONFIG_EFI_VARS), do a similar thing from Linux. But I am presently missing the EFI kit and I hate booting OSX, so here\u0026rsquo;s my other, much more insane way of fixing this problem.\nYou need:\na Mac with rEFIt already installed a USB key with a [V]FAT partition Procedure:\nPlug in the USB drive and turn on the machine. At the rEFIt boot screen, cursor down to the EFI shell. This will start a shell in the firmware reminiscent of the heydey of MS-DOS 3.0, when edlin was king of the text editors. Type \u0026lsquo;help -b\u0026rsquo; to get your bearings. Get the current audio level via: Shell\u0026gt; dmpstore SystemAudioVolume Now, figure out where your FAT partition got mounted. Useful commands include \u0026lsquo;map\u0026rsquo; and \u0026rsquo;ls\u0026rsquo; (mine was on fs3): Shell\u0026gt; map -b Shell\u0026gt; ls fs3: Use dmpstore to save the NVRAM variable to a file. Shell\u0026gt; dmpstore SystemAudioVolume -s fs3:volume.txt 08. Use the built-in hex editor to change the last byte from the value in step 4 to 0x80. Yes, rEFIt has a built-in hex editor! Shell\u0026gt; hexedit fs3:volume.txt 10. Now load the new value, check it, and reboot. `Shell\u0026gt; dmpstore SystemAudioVolume -l fs3:volume.txt Shell\u0026gt; dmpstore SystemAudioVolume Shell\u0026gt; reset That\u0026#39;s it! It should be gone for good, until you somehow enable it again. When that happens, you can pop the key back in, and redo step 8 with the volume.txt file you remembered to not delete. Hmm, on second thought, maybe it is easier to just use the sysfs files. ","permalink":"https://bobcopeland.com/blog/2009/05/on-annoying-startup-chimes/","summary":"\u003cp\u003eI like my MacBook well enough, but it certainly does have its share of issues. One such bile-inspiring misfeature is that it sees fit to loudly blare its \u0026ldquo;I\u0026rsquo;m a Mac!\u0026rdquo; chime every time you turn the thing on. According to those in the know, this is actually a \u003cem\u003efeature\u003c/em\u003e to let you know the computer started properly. Hmm, I see a big Apple logo, screen is on, I think it\u0026rsquo;s started. So, Mr. Computer, how about making the big ugly noise when you know it \u003cem\u003eisn\u0026rsquo;t\u003c/em\u003e working instead, and save us the ear strain the other 99.9% of the time? Did they really think no one would want to use the laptop in, say, a library, or a classroom?\u003c/p\u003e","title":"On Annoying Startup Chimes"},{"content":" I finished up the bridle and spars for the Batman kite and moved on to the second featuring a Spiderman logo (actually, the black Spiderman logo, but who\u0026rsquo;s counting). Until now, I have done all of my appliquÃ© using a technique known as reverse appliquÃ©. With this technique, I would create a stack of all of the layers of ripstop nylon that will be visible, usually with the lightest colors on the bottom. Then, I\u0026rsquo;d draw the design on the top layer in washable pencil, sew along those lines, then cut layers off the top one at a time until the proper colors show through. This photo is partway through that process on the Snorlax rok.\nFor this logo, I decided that cutting out so many sharp corners would be difficult, and cutting appliquÃ© is when I invariably punch a hole in the sail and have to reach for the superglue. So on this one I tried forward (normal) appliquÃ© instead. First I cut out the entire spider then taped the legs down to a piece of cardboard. I sprayed the whole thing with spray glue, waited a minute for it to set, then carefully placed the sail on top of the spider. Then I flipped it over, repositioned the spider legs to get all the air bubbles out, and voilÃ \u0026ndash; I had the logo nicely attached to the sail. The glue isn\u0026rsquo;t permanent though, so then I spent an hour or so sewing around the inside edges of the design. I expected to go outside the lines of a few of the stitches, but surprisingly I did it all without a hitch, so to speak.\n","permalink":"https://bobcopeland.com/blog/2009/05/spiderman-kite/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/3498428381/\" title=\"Batman, Meet Spiderman by bluesterror, on Flickr\"\u003e\u003cimg alt=\"Batman, Meet Spiderman\" loading=\"lazy\" src=\"http://farm4.static.flickr.com/3615/3498428381_bf0cd9252f_m.jpg\"\u003e\u003c/a\u003e I finished up the bridle and spars for the Batman kite and moved on to the second featuring a Spiderman logo (actually, the black Spiderman logo, but who\u0026rsquo;s counting). Until now, I have done all of my appliquÃ© using a technique known as reverse appliquÃ©. With this technique, I would create a stack of all of the layers of ripstop nylon that will be visible, usually with the lightest colors on the bottom. Then, I\u0026rsquo;d draw the design on the top layer in washable pencil, sew along those lines, then cut layers off the top one at a time until the proper colors show through. \u003ca href=\"http://www.flickr.com/photos/bluesterror/933756591/\"\u003eThis photo\u003c/a\u003e is partway through that process on the Snorlax rok.\u003c/p\u003e","title":"Spiderman kite"},{"content":"commit 00d8979d598d5461a06d800c779f15e03888d9d8 Author: Kalle Valo Date: Wed Apr 29 23:33:31 2009 +0300 wl12xx: add driver wl12xx is a driver for TI wl1251 802.11 chipset designed for embedded devices, supporting both SDIO and SPI busses. Currently the driver supports only SPI. Adding support 1253 (the 5 GHz version) should be relatively easy. More information here: http://focus.ti.com/general/docs/wtbu/wtbuproductcontent.tsp?contentId=4711 (Collapsed original sequence of pre-merge patches into single commit for initial merge. -- JWL) Signed-off-by: Kalle Valo Signed-off-by: Bob Copeland Signed-off-by: John W. Linville Hooray, wl12xx is now in wireless-testing! As the commit log states, SDIO support isn\u0026rsquo;t there yet, because I haven\u0026rsquo;t written it yet. Well, I wrote some of it, but nothing worth even compile-testing yet.\nAs for the Android itself, I bought a snazzy serial breakout board for the phone so now I can do some real work on it. It works just fine with screen(1) as the terminal program.\nAlso, I solved the problem with booting: apparently the init program for 2.6.25 doesn\u0026rsquo;t work with 2.6.27 \u0026ndash; when I put my own compiled init in the initramfs, everything mounted fine. The input devices now do not work, but I suspect it\u0026rsquo;s just a difference in paths and that an upgrade to 1.5 userland will fix all of that.\n","permalink":"https://bobcopeland.com/blog/2009/04/wl12xx-merged/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ecommit 00d8979d598d5461a06d800c779f15e03888d9d8\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eAuthor: Kalle Valo\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eDate:   Wed Apr 29 23:33:31 2009 +0300\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    wl12xx: add driver\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    wl12xx is a driver for TI wl1251 802.11 chipset designed for embedded\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    devices, supporting both SDIO and SPI busses. Currently the driver\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    supports only SPI. Adding support 1253 (the 5 GHz version) should be\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    relatively easy. More information here:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    http://focus.ti.com/general/docs/wtbu/wtbuproductcontent.tsp?contentId=4711\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    (Collapsed original sequence of pre-merge patches into single commit for\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    initial merge. -- JWL)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    Signed-off-by: Kalle Valo\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    Signed-off-by: Bob Copeland\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    Signed-off-by: John W. Linville\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eHooray, wl12xx is now in wireless-testing! As the commit log states, SDIO support isn\u0026rsquo;t there yet, because I haven\u0026rsquo;t written it yet. Well, I wrote some of it, but nothing worth even compile-testing yet.\u003c/p\u003e","title":"wl12xx merged"},{"content":" I made my first kite in over a year this afternoon (yes, I am quite rusty). I plan to make a stack of these kites for my nephews with various super hero designs. This is the first and easiest one, which took about 4 hours of work today from start to finish. It isn\u0026rsquo;t perfect, the sides were a little uneven when I cut the sail which can be seen in the final product. Also I think appliquÃ© really looks much better with the black outlines that I\u0026rsquo;ve used on my previous kites, but I really don\u0026rsquo;t have the time/patience to add another layer of ripstop to these just for that effect.\nStill, these will be much better kites than you can find in your local store. At least I hope so; I haven\u0026rsquo;t made this type before \u0026ndash; who knows if they will fly. However, I should find out soon since this one just needs a bridle and sticks and it\u0026rsquo;s good to go.\n","permalink":"https://bobcopeland.com/blog/2009/04/batman-eddy/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/3478169243/\" title=\"Batman kite by bluesterror, on Flickr\"\u003e\u003cimg alt=\"Batman kite\" loading=\"lazy\" src=\"http://farm4.static.flickr.com/3386/3478169243_da82c20c9a_m.jpg\"\u003e\u003c/a\u003e I made my first kite in over a year this afternoon (yes, I am quite rusty). I plan to make a stack of these kites for my nephews with various super hero designs. This is the first and easiest one, which took about 4 hours of work today from start to finish. It isn\u0026rsquo;t perfect, the sides were a little uneven when I cut the sail which can be seen in the final product. Also I think appliquÃ© really looks much better with the black outlines that I\u0026rsquo;ve used on my previous kites, but I really don\u0026rsquo;t have the time/patience to add another layer of ripstop to these just for that effect.\u003c/p\u003e","title":"Batman Eddy"},{"content":"I was in fact wrong that my self-compiled android kernels weren\u0026rsquo;t booting \u0026ndash; they were. But they do fail somewhere in init:. Unfortunately, when you boot the phone, you don\u0026rsquo;t have any idea why it fails because there\u0026rsquo;s no console by default. It would\u0026rsquo;ve been a lot easier to see this if I had a serial cable, but I did finally remember that I could use fbcon with the smallest font and CONFIG_PRINTK_DELAY to see the messages scroll by. And so now I see the problem:\nA N D R O I D init: Unable to open persistent property directory /data/property errno: 2 init: cannot find \u0026#39;/system/bin/sh\u0026#39;, disabling \u0026#39;console\u0026#39; init: cannot find \u0026#39;/system/bin/servicemanager\u0026#39;, disabling \u0026#39;servicemanager\u0026#39; ... Obviously, the init script can\u0026rsquo;t mount the mtd partitions, despite the partition tables being successfully probed at start and my having yaffs2 built-in. Oh well, at least now I have a direction to start debugging.\nThe 2.6.25 branch of the msm tree, incidentally, works fine with the stock initrd and userland, but who wants such an old kernel? Oh, and I changed my bootup logo to a shiny Tux instead of the default robot. \u0026ldquo;Android isn\u0026rsquo;t Linux\u0026rdquo; indeed.\n","permalink":"https://bobcopeland.com/blog/2009/04/closer/","summary":"\u003cp\u003eI was in fact wrong that my self-compiled android kernels weren\u0026rsquo;t booting \u0026ndash; they were. But they do fail somewhere in init:. Unfortunately, when you boot the phone, you don\u0026rsquo;t have any idea why it fails because there\u0026rsquo;s no console by default. It would\u0026rsquo;ve been a lot easier to see this if I had a serial cable, but I did finally remember that I could use fbcon with the smallest font and CONFIG_PRINTK_DELAY to see the messages scroll by. And so now I see the problem:\u003c/p\u003e","title":"Closer"},{"content":"I finally decided to do something about the five independent git trees I had on my hard drive at work. The problem is they are all really branches of the same subversion repository, and moving patches back and forth between them meant I had added them all as git remotes to each other. The meta problem is that we didn\u0026rsquo;t always branch off of the same trunk directory, from back when we were drinking the \u0026ldquo;just snapshots of directories\u0026rdquo; subversion kool-aid, so git svn clone doesn\u0026rsquo;t do the right thing for our branches.\nThe ideal setup is one where I have a git branch for each subversion branch all in one tree, and git svn dcommit will go to the right place. As it turns out, this isn\u0026rsquo;t too hard to achieve, but requires a lot of waiting around when building the repository. You just manually add different svn-remote sections to your .git/config, then run git svn fetch for each one:\n$ cat .git/config [...] [svn-remote \u0026#34;svn\u0026#34;] url = svn+ssh://server/svn/trunk/ fetch = :refs/remotes/git-svn [svn-remote \u0026#34;svn-bar\u0026#34;] url = svn+ssh://server/svn/branches/foo/bar fetch = :refs/remotes/git-svn-bar [...] $ git svn fetch $ git svn fetch svn-bar $ git checkout -b bar svn-bar Now \u0026lsquo;bar\u0026rsquo; is a branch tracking the directory in branches/foo/bar, master is your normal trunk line of development, and git svn dcommit just works. Having 8 years of history in a 400 meg local tree is pretty nice.\n","permalink":"https://bobcopeland.com/blog/2009/04/manual-git-svn-clone/","summary":"\u003cp\u003eI finally decided to do something about the five independent git trees I had on my hard drive at work. The problem is they are all really branches of the same subversion repository, and moving patches back and forth between them meant I had added them all as git remotes to each other. The meta problem is that we didn\u0026rsquo;t always branch off of the same trunk directory, from back when we were drinking the \u0026ldquo;just snapshots of directories\u0026rdquo; subversion kool-aid, so \u003ccode\u003egit svn clone\u003c/code\u003e doesn\u0026rsquo;t do the right thing for our branches.\u003c/p\u003e","title":"Manual git-svn clone"},{"content":"The Android source code includes at least two ARM sub-architectures in their kernel tree. The one actually used on the G1 hardware is derived from the Qualcomm MSM machine type, at least part of which is in the mainline. Then there is \u0026ldquo;goldfish,\u0026rdquo; which appears to be just a pseudo machine used only for the emulator. While I haven\u0026rsquo;t had a lot of success with the MSM stuff booting on the phone so far, building the emulator kernel is not too hard once you know where to look:\n`# get the MSM specific tree.\nYou don\u0026rsquo;t really need it but might as well grab both up front into the same git repo. $ git clone git://android.git.kernel.org/kernel/msm.git msm $ cd msm\nalso grab the common one for emulator target and check it out $ git remote add common git://android.git.kernel.org/kernel/common.git $ git fetch common $ git checkout -b goldfish common/android-goldfish-2.6.27 $ cat \u0026laquo;_EOM \u0026gt;make-arm.sh #! /bin/bash\nI use the codesourcery toolchain XGCC=/opt/xgcc PATH=\u0026quot;$XGCC/arm-2008q3/bin/:$PATH\u0026quot; make ARCH=arm CROSS_COMPILE=arm-none-eabi- \u0026ldquo;$@\u0026rdquo; _EOM $ chmod 755 make-arm.sh $ ./make-arm.sh goldfish_defconfig $ ./make-arm.sh`\nNow the emulator can be run with something like:\n$ export ANDROID_PRODUCT_OUT=`/bin/pwd`/out/target/product/dream $ emulator -verbose -show-kernel -kernel msm/arch/arm/boot/zImage\n","permalink":"https://bobcopeland.com/blog/2009/04/emulator/","summary":"\u003cp\u003eThe Android source code includes at least two ARM sub-architectures in their kernel tree. The one actually used on the G1 hardware is derived from the Qualcomm MSM machine type, at least part of which is in the mainline. Then there is \u0026ldquo;goldfish,\u0026rdquo; which appears to be just a pseudo machine used only for the emulator. While I haven\u0026rsquo;t had a lot of success with the MSM stuff booting on the phone so far, building the emulator kernel is not too hard once you know where to look:\u003c/p\u003e","title":"Emulator"},{"content":"Now that Linux 2.6.29 just went out the door, here\u0026rsquo;s what I have prepared for 2.6.30 in the wireless arena. Of note, mac80211 now has suspend/resume support so a lot of nasty hacks in the drivers can go away. Most of the rest is just bug fixes, some of them for panics and soft lockups.\nThe work I\u0026rsquo;m excited about this week is scheduled for 2.6.31 \u0026ndash; we extracted a bunch of ath9k regulatory infrastructure into a common module that all of the Atheros drivers (including the new ar9170) will use. This is the first step in getting a lot of that common code into a library. Hooray! Also Nick has some great improvements to the RF stuff queued up, so the driver is behaving much better.\nBob Copeland (29): ath5k: support LEDs on Acer Aspire One netbook ath5k: fix off-by-one in gpio checks mac80211: document return codes from ops callbacks ath5k: fix bf-\u0026gt;skb==NULL panic in ath5k_tasklet_rx mac80211: add suspend/resume callbacks ath5k: remove stop/start calls from within suspend/resume ath5k: remove unused led_off parameter ath5k: use short preamble when possible ath5k: honor the RTS/CTS bits mac80211: change workqueue back to non-freezeable mac80211: flush workqueue a second time in suspend() ath9k: remove write-only current_rd_inuse ath9k: save a few calls to ath9k_regd_get_eepromRD ath9k: convert isWwrSKU macro into C code ath9k: remove ath9k_regd_get_rd() ath9k: remove prototype for ath9k_regd_get_current_country ath9k: move common regulatory code out of if() branches ath5k: don\u0026#39;t mask off interrupt bits ath5k: use spin_lock_irqsave for beacon lock ath5k: move beacon processing to a tasklet ath5k: compute rts/cts duration after computing full pktlen ath9k: fix 802.11g conformance test limit typo ath5k: extract LED code into a separate file ath5k: use a table for LED parameters ath5k: update LED table with reported devices ath5k: disable MIB interrupts ath5k: remove dummy PCI \u0026#34;retry timeout\u0026#34; fix ath5k: warn and correct rate for unknown hw rate indexes ath5k: properly drop packets from ops-\u0026gt;tx ","permalink":"https://bobcopeland.com/blog/2009/03/2630-preview/","summary":"\u003cp\u003eNow that Linux 2.6.29 just went out the door, here\u0026rsquo;s what I have prepared for 2.6.30 in the wireless arena. Of note, mac80211 now has suspend/resume support so a lot of nasty hacks in the drivers can go away. Most of the rest is just bug fixes, some of them for panics and soft lockups.\u003c/p\u003e\n\u003cp\u003eThe work I\u0026rsquo;m excited about this week is scheduled for 2.6.31 \u0026ndash; we extracted a bunch of ath9k regulatory infrastructure into a common module that all of the Atheros drivers (including the new ar9170) will use. This is the first step in getting a lot of that common code into a library. Hooray! Also Nick has some great improvements to the RF stuff queued up, so the driver is behaving much better.\u003c/p\u003e","title":"2.6.30 preview"},{"content":"Building a booting kernel for Android using their own code still eludes me. I guess it would help if I knew anything at all about the ARM platform, as I have no idea what I am doing. Still, the code dump fails the \u0026ldquo;anyone should be able to build it\u0026rdquo; test rather strongly, judging from posts on the android mailing lists.\nBuild problems aside, the more egregious failure of the Android open source project is the lack of the \u0026ldquo;upstream first\u0026rdquo; mentality. Most Linux software providers follow this strategy to a large extent, which is simply: any patch that goes in my distribution should go to the mainline kernel first. The benefits are obvious: no need to maintain a fork forever, and everyone gets the goods as soon as possible. Even if the patch only serves the developer\u0026rsquo;s own interests, upstreaming it often has the benefit of vetting the interfaces and producing more universal APIs (the wakelocks discussion that followed the code dump is an example of this done backwards).\nGoogle, however, sadly took the other road: get the product out the door, then worry about pushing bits upstream when we get a chance. The problem is \u0026ldquo;when we get a chance\u0026rdquo; never, ever happens, and there\u0026rsquo;s no motivation to push changes upstream when your product has shipped and it\u0026rsquo;s now forever in deep maintenance mode. That job of upstreaming is left to the community.\nSo far there\u0026rsquo;s no real indication (apart from the userland stuff) that you actually can build the G1 kernel and userland from the code dump. Google engineers are unclear whether everything on the phone is in the codebase (clearly some proprietary bits are not). Meanwhile they have their own fork of qemu, their own fork of the kernel, their own fork of webkit, and so on.\nI suppose we should not fault Google too hard: after all, some code is better than no code at all. And if they want to maintain forks of .* forever, that is clearly their prerogative. However, had they worked more closely with the community at the start, the Android platform would be stronger today. They might already have a decent wireless driver, for example.\n","permalink":"https://bobcopeland.com/blog/2009/03/upstream-last/","summary":"\u003cp\u003eBuilding a booting kernel for Android using their own code still eludes me. I guess it would help if I knew anything at all about the ARM platform, as I have no idea what I am doing. Still, the code dump fails the \u0026ldquo;anyone should be able to build it\u0026rdquo; test rather strongly, judging from posts on the android mailing lists.\u003c/p\u003e\n\u003cp\u003eBuild problems aside, the more egregious failure of the Android open source project is the lack of the \u0026ldquo;upstream first\u0026rdquo; mentality. Most Linux software providers follow this strategy to a large extent, which is simply: any patch that goes in my distribution should go to the mainline kernel first. The benefits are obvious: no need to maintain a fork forever, and everyone gets the goods as soon as possible. Even if the patch only serves the developer\u0026rsquo;s own interests, upstreaming it often has the benefit of vetting the interfaces and producing more universal APIs (the wakelocks discussion that followed the code dump is an example of this done backwards).\u003c/p\u003e","title":"Upstream Last"},{"content":"The Historian , Elizabeth Kostova; Back Bay/Little, Brown \u0026amp; Co.\n\\\\\\\\ A wonderfully paced horror novel marred only by the discovery that Dracula is a big nerd.\nThe Shadow Of The Wind , Carlos Ruiz Zafo?n; Penguin Press\n\\\\\\* Boy finds more than he bargained for in a dusty old library (a book to be exact).\nHeat: An Amateur\u0026rsquo;s Adventures As Kitchen Slave, Line Cook, Pasta-Maker, And Apprentice To A Dante-Quoting Butcher In Tuscany , Bill Buford; Anchor Canada\n\\\\\\\\ Journalist perseveres through cooking lessons, Batali’s drunkenness.\nCruciverbalism: A Crossword Fanatic\u0026rsquo;s Guide To Life In The Grid , Stanley Newman, Mark Lasswell; Collins\n\\\\\\* A pun-filled glance at the crossword industry that can be completed in less time than the Monday puzzle.\nA Thousand Splendid Suns , Khaled Hosseini; Riverhead Hardcover\n\\\\\\\\\\* Exceeds industry standard woe quotient.\nThe Pillars Of The Earth , Ken Follett; NAL Trade\n\\\\ A good story about cathedrals, badly written.\nA Wild Sheep Chase: A Novel , Murakami, Haruki; Vintage\n\\\\\\\\ Surrealism reigns in this book about what, exactly?\nThe White Tiger: A Novel , Aravind Adiga; Free Press\n\\\\\\* Never visit India under any circumstances.\nThe Bounty: The True Story Of The Mutiny On The Bounty , Alexander, Caroline; Viking\n\\\\\\* Like Mutiny on the “Bounty”, but true. Maybe.\nThe Shack (Special Hardcover Edition) , William P. Young; Windblown Media\n\\* Man stumbles upon Christian dieties in the woods, and they make him pancakes.\nMoby Dick: Level 2 , Herman Melville; PENGUIN LONGMAN PUBL\n\\\\ (e-book) A fantastic, gripping novella about a whale hunt, embedded inside a long, boring treatise on the intricacies of whaling ca. 1847.\n","permalink":"https://bobcopeland.com/blog/2009/03/recent-readings/","summary":"\u003cp\u003e\u003ca href=\"http://openlibrary.org/b/OL10426306M\"\u003e\u003cimg loading=\"lazy\" src=\"http://covers.openlibrary.org/b/olid/OL10426306M-S.jpg?default=false\"\u003e\u003c/a\u003e\u003cstrong\u003e\u003ca href=\"http://openlibrary.org/b/OL10426306M\" title=\"Click to view title in Open Library\"\u003e\u003cem\u003eThe Historian\u003c/em\u003e\u003c/a\u003e\u003c/strong\u003e \u003cstrong\u003e, \u003ca href=\"http://openlibrary.org/a/OL1437837A\" title=\"Click to view author in Open Library\"\u003eElizabeth Kostova\u003c/a\u003e\u003c/strong\u003e; Back Bay/Little, Brown \u0026amp; Co.\u003c/p\u003e\n\u003cp\u003e\\\u003cem\u003e\\\u003c/em\u003e\\\u003cem\u003e\\\u003c/em\u003e A wonderfully paced horror novel marred only by the discovery that Dracula is a big nerd.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"http://openlibrary.org/b/OL3691429M\"\u003e\u003cimg loading=\"lazy\" src=\"http://covers.openlibrary.org/b/olid/OL3691429M-S.jpg?default=false\"\u003e\u003c/a\u003e\u003cstrong\u003e\u003ca href=\"http://openlibrary.org/b/OL3691429M\" title=\"Click to view title in Open Library\"\u003e\u003cem\u003eThe Shadow Of The Wind\u003c/em\u003e\u003c/a\u003e\u003c/strong\u003e \u003cstrong\u003e, \u003ca href=\"http://openlibrary.org/a/OL1518010A\" title=\"Click to view author in Open Library\"\u003eCarlos Ruiz Zafo?n\u003c/a\u003e\u003c/strong\u003e; Penguin Press\u003c/p\u003e\n\u003cp\u003e\\\u003cem\u003e\\\u003c/em\u003e\\* Boy finds more than he bargained for in a dusty old library (a book to be exact).\u003c/p\u003e","title":"Recent Readings"},{"content":"\nFinally, kosher Coke is back!\n","permalink":"https://bobcopeland.com/blog/2009/03/first-sign-of-spring/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/3376546021/\" title=\"KFP Coke Stash by bluesterror, on Flickr\"\u003e\u003cimg alt=\"KFP Coke Stash\" loading=\"lazy\" src=\"http://farm4.static.flickr.com/3609/3376546021_5f61bdabeb_m.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eFinally, kosher Coke is back!\u003c/p\u003e","title":"First sign of spring"},{"content":"The Android G1 phone uses the TI 1251 for Wifi.Â Â This is pretty useful for when you need an internet connection for the laptop and there are no alternatives: you can bridge the wifi and the 3G connection and then connect to the wifi device using ad-hoc mode.Â However, I normally keep the wireless off because it sucks down battery like mad.\nBut Kalle Valo from Nokia is working on a driver for the chip called wl12xx, and he is putting a lot of effort into making sure it uses power conservatively (presumably some future version of the Nokia internet tablets will be using this device).Â This driver is SPI, whereas the G1 uses the same chip in SDIO mode.Â So I started writing the SDIO port for the driver \u0026ndash; hopefully it will be ready when wl12xx is included in mainline.\nThe TI reference code that actually runs on the G1 is, sorry to say, total crap.Â It registers an interrupt handler that printk()s a static string.Â It has unbalanced sdio_claim_host() calls.Â And from a code style standpoint, well, there is none.Â I suspect Valo\u0026rsquo;s driver will be a big step up if and when it can run on the Android.\nOh, and Google\u0026rsquo;s open source tree for the Android hasn\u0026rsquo;t built all weekend.Â Great job!\n","permalink":"https://bobcopeland.com/blog/2009/03/fit-to-be-tied/","summary":"\u003cp\u003eThe Android G1 phone uses the TI 1251 for Wifi.Â Â  This is pretty useful for when you need an internet connection for the laptop and there are no alternatives: you can bridge the wifi and the 3G connection and then connect to the wifi device using ad-hoc mode.Â  However, I normally keep the wireless off because it sucks down battery like mad.\u003c/p\u003e\n\u003cp\u003eBut Kalle Valo from Nokia is working on a driver for the chip called wl12xx, and he is putting a lot of effort into making sure it uses power conservatively (presumably some future version of the Nokia internet tablets will be using this device).Â  This driver is SPI, whereas the G1 uses the same chip in SDIO mode.Â  So I started writing the SDIO port for the driver \u0026ndash; hopefully it will be ready when wl12xx is included in mainline.\u003c/p\u003e","title":"Fit to be TIed"},{"content":"Welcome old and new readers to my blog\u0026rsquo;s new home. This used to be hosted elsewhere on the net, but I eventually grew annoyed with that provider. Most of the old content survived the move (by the way, a rather fearsome and annoying task. I learned more than I ever wanted to know about the wordpress codebase last weekend. Oh, don\u0026rsquo;t turn on threaded comments, it\u0026rsquo;s borked.)\nSo why the title? This blog began without any real theme, just random observations, trivialities of my life, and so on. Lately however it has also been a useful place to discourse on my technical projects and other computer age detritus. So insignificant bits, both the minutia of the day to day, and the rightmost digits in a binary number. Well, it seemed like a good idea at the time.\nAnyway, here\u0026rsquo;s hoping that I at least maintain the same level of awesome that you\u0026rsquo;ve come to expect from me (.002 milli-awesomes per post).\n","permalink":"https://bobcopeland.com/blog/2009/03/re-opening/","summary":"\u003cp\u003eWelcome old and new readers to my blog\u0026rsquo;s new home. This used to be hosted elsewhere on the net, but I eventually grew annoyed with that provider. Most of the old content survived the move (by the way, a rather fearsome and annoying task. I learned more than I ever wanted to know about the wordpress codebase last weekend. Oh, don\u0026rsquo;t turn on threaded comments, it\u0026rsquo;s borked.)\u003c/p\u003e\n\u003cp\u003eSo why the title? This blog began without any real theme, just random observations, trivialities of my life, and so on. Lately however it has also been a useful place to discourse on my technical projects and other computer age detritus. So insignificant bits, both the minutia of the day to day, and the rightmost digits in a binary number. Well, it seemed like a good idea at the time.\u003c/p\u003e","title":"Re-opening"},{"content":"Dear Verizon,\nThank you so much for the thoughtful racial profiling you sent us. However, despite my wife\u0026rsquo;s last name, no one at our address can read Chinese. Can you send us your ads in English again so that we may more easily peruse and purchase your products? Or better yet, not send them at all? Warm regards, us.\n","permalink":"https://bobcopeland.com/blog/2009/03/fios/","summary":"\u003cp\u003eDear Verizon,\u003c/p\u003e\n\u003cp\u003eThank you so much for the thoughtful racial profiling you sent us. However, despite my wife\u0026rsquo;s last name, no one at our address can read Chinese. Can you send us your ads in English again so that we may more easily peruse and purchase your products? Or better yet, not send them at all? Warm regards, us.\u003c/p\u003e","title":"FiOS"},{"content":"I\u0026rsquo;ve reconsidered using git as my backup choice du jour. The main problem (and feature) of using git was having a checked out repo in my home directory. I found I was forever worried, given my admittedly horrid muscle memory habit of doing \u0026lsquo;git reset \u0026ndash;hard\u0026rsquo; periodically inside source trees, that I\u0026rsquo;d accidentally do it from the wrong directory and lose any recent work. Luckily, I never did that.\nTwo obvious solutions: don\u0026rsquo;t use a checkout in the home directory, instead using rsync to the repo; or use a wrapper/custom command name for the git-as-backup program to avoid accidents. Well, I went with the third option: use rdiff-backup like a normal person. It\u0026rsquo;s packaged by Fedora and Debian, so I only needed a small tweak to my backup scripts to make that happen every night. And someone wrote a FUSE filesystem (archfs) to mount the backups as normal directories, so there\u0026rsquo;s no real loss of convenience under this scheme.\nMy RPM database is now corrupted. Just in time.\n","permalink":"https://bobcopeland.com/blog/2009/03/backup-re-revisited/","summary":"\u003cp\u003eI\u0026rsquo;ve reconsidered using git as my backup choice du jour. The main problem (and feature) of using git was having a checked out repo in my home directory. I found I was forever worried, given my admittedly horrid muscle memory habit of doing \u0026lsquo;git reset \u0026ndash;hard\u0026rsquo; periodically inside source trees, that I\u0026rsquo;d accidentally do it from the wrong directory and lose any recent work. Luckily, I never did that.\u003c/p\u003e\n\u003cp\u003eTwo obvious solutions: don\u0026rsquo;t use a checkout in the home directory, instead using rsync to the repo; or use a wrapper/custom command name for the git-as-backup program to avoid accidents. Well, I went with the third option: use rdiff-backup like a normal person. It\u0026rsquo;s packaged by Fedora and Debian, so I only needed a small tweak to my backup scripts to make that happen every night. And someone wrote a FUSE filesystem (archfs) to mount the backups as normal directories, so there\u0026rsquo;s no real loss of convenience under this scheme.\u003c/p\u003e","title":"Backup re-revisited"},{"content":"Renaming your class variables to shorter names reduces your EJB network footprint. Finally, those people who said that removing vowels from variable names improved performance are vindicated! Ok, well they were correct already in Javascript, but that doesn\u0026rsquo;t count.\n","permalink":"https://bobcopeland.com/blog/2009/02/sizeof/","summary":"\u003cp\u003eRenaming your class variables to shorter names reduces your EJB network footprint. Finally, those people who said that removing vowels from variable names improved performance are vindicated! Ok, well they were correct already in Javascript, but that doesn\u0026rsquo;t count.\u003c/p\u003e","title":"sizeof()"},{"content":"Let\u0026rsquo;s dump the last useful feature in Java. What castles in the sky are people building these days?\n","permalink":"https://bobcopeland.com/blog/2009/02/is-not-a/","summary":"\u003cp\u003e\u003ca href=\"http://asserttrue.blogspot.com/2009/02/inheritance-as-antipattern.html\"\u003eLet\u0026rsquo;s dump the last useful feature in Java\u003c/a\u003e. What castles in the sky are people building these days?\u003c/p\u003e","title":"is-not-a"},{"content":"The stats from smolt are pretty interesting if, like all stats, entirely useless. Some curiousities:\ni686 still beats x86_64 by a ton A (very) few people change their runlevel Acer is high in the vendor list, I guess they are still killing the netbook market People don\u0026rsquo;t configure their swap appropriately SMP is now the norm, outside of embedded kit anyway I want a 4+ GHz cpu No one uses omfs :( \u0026hellip;I guess I need to submit a profile. ","permalink":"https://bobcopeland.com/blog/2009/02/smolt/","summary":"\u003cp\u003eThe \u003ca href=\"http://smolts.org/static/stats/stats.html\"\u003estats from smolt\u003c/a\u003e are pretty interesting if, like all stats, entirely useless. Some curiousities:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003ei686 still beats x86_64 by a ton\u003c/li\u003e\n\u003cli\u003eA (very) few people change their runlevel\u003c/li\u003e\n\u003cli\u003eAcer is high in the vendor list, I guess they are still killing the netbook market\u003c/li\u003e\n\u003cli\u003ePeople don\u0026rsquo;t configure their swap appropriately\u003c/li\u003e\n\u003cli\u003eSMP is now the norm, outside of embedded kit anyway\u003c/li\u003e\n\u003cli\u003eI want a 4+ GHz cpu\u003c/li\u003e\n\u003cli\u003eNo one uses omfs :( \u0026hellip;I guess I need to submit a profile.\u003c/li\u003e\n\u003c/ul\u003e","title":"Smolt"},{"content":"There comes a time in every budding kernel developer\u0026rsquo;s life that he has to debug a mysterious lockup, and nothing will do but a serial console. Well, for my future recollections, here\u0026rsquo;s how to set it up:\nGet out your handy pl2303-based usb to serial adapter, because chances are good your laptop doesn\u0026rsquo;t have a serial port\nBuild your kernel with CONFIG_USB_SERIAL_CONSOLE=y\nAdd to your kernel command line: console=ttyUSB0,115200 console=tty0\nHook your computer up to the other computer via a null-modem cable (man, these are pricey these days, $30 for something no one still uses?)\nSet up minicom to use your serial port, say ttyS0, at 115200 baud, 8N1, and turn off all the modem init strings\nDon\u0026rsquo;t bother futzing with getty, you only need it if you want to also allow logins over serial. For logging, it\u0026rsquo;s unnecessary\nNow, start minicom on computer 2 and reboot your computer under test. If all goes well, you\u0026rsquo;ll capture a panic on the serial console. If all goes poorly (my case), you\u0026rsquo;ll have a lockup with no oops. The usual thing to try in this case is adding \u0026ldquo;nmi_watchdog=1\u0026rdquo; to the command line, which will use the non-maskable interrupt to break into any frozen code. Also, if you have CONFIG_DETECT_SOFTLOCKUP set, hopefully after 60 seconds or so you\u0026rsquo;ll get a soft lockup warning.\nIn my case, I still have a hard lock with no output. Ho hum.\n","permalink":"https://bobcopeland.com/blog/2009/02/serial-offender/","summary":"\u003cp\u003eThere comes a time in every budding kernel developer\u0026rsquo;s life that he has to debug a mysterious lockup, and nothing will do but a serial console. Well, for my future recollections, here\u0026rsquo;s how to set it up:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eGet out your handy pl2303-based usb to serial adapter, because chances are good your laptop doesn\u0026rsquo;t have a serial port\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eBuild your kernel with CONFIG_USB_SERIAL_CONSOLE=y\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAdd to your kernel command line: console=ttyUSB0,115200 console=tty0\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eHook your computer up to the other computer via a null-modem cable (man, these are pricey these days, $30 for something no one still uses?)\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eSet up minicom to use your serial port, say ttyS0, at 115200 baud, 8N1, and turn off all the modem init strings\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eDon\u0026rsquo;t bother futzing with getty, you only need it if you want to also allow logins over serial. For logging, it\u0026rsquo;s unnecessary\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e","title":"Serial offender"},{"content":"\nCapitals warm-up\nOriginally uploaded by bluesterror\nDid you see the game last night? Yeah, we were there! Did you see us on TV? Huh, what half-time show? Ohhh\u0026hellip;. you are talking about that other game, what is it called, footsball? Nah, didn\u0026rsquo;t watch that one. But we did see Ovechkin get his second hat trick of the year in a 7-4 rout of the Senators yesterday. So be sure to get your 14 free toppings on your pizza this week.\n","permalink":"https://bobcopeland.com/blog/2009/02/the-game/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/3247168939/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm4.static.flickr.com/3378/3247168939_30a85956be_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/bluesterror/3247168939/\"\u003eCapitals warm-up\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/bluesterror/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eDid you see the game last night? Yeah, we were there! Did you see us on TV? Huh, what half-time show? Ohhh\u0026hellip;. you are talking about that other game, what is it called, footsball? Nah, didn\u0026rsquo;t watch that one. But we did see Ovechkin get his second hat trick of the year in a 7-4 rout of the Senators yesterday. So be sure to get your 14 free toppings on your pizza this week.\u003c/p\u003e","title":"The game"},{"content":"I haven\u0026rsquo;t had a chance to replace the kernel on my phone yet, but here is some useful software I recently installed:\niptables + dnsmasq + IBSS mode = wireless tethering. (PPP over USB should also be an option, but I\u0026rsquo;m too lazy to figure that out.)\nAndroid build of busybox. Yay for vi!\nNone of that is original with me but both are very useful.\n","permalink":"https://bobcopeland.com/blog/2009/01/android/","summary":"\u003cp\u003eI haven\u0026rsquo;t had a chance to replace the kernel on my phone yet, but here is some useful software I recently installed:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"http://forum.xda-developers.com/showthread.php?t=474470\"\u003eiptables + dnsmasq + IBSS mode = wireless tethering\u003c/a\u003e. (PPP over USB should also be an option, but I\u0026rsquo;m too lazy to figure that out.)\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"http://benno.id.au/blog/2007/11/14/android-busybox\"\u003eAndroid build of busybox. Yay for vi!\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eNone of that is original with me but both are very useful.\u003c/p\u003e","title":"Android"},{"content":"We\u0026rsquo;re back from the inauguration, which was a surprisingly easy affair. Ange \u0026amp; I got up at the crack of 7am, a blustery morning with temps in the mid-teens. We walked across the street to our nearby Metro station, where we quickly snagged a train with a few empty seats. It took about 40 minutes to get to Farragut North, where we disembarked and walked west a couple of blocks, then south on 19th street. After a 30 minute walk we reached the throngs on the Mall. We set up camp against barricades near the World War II memorial, where the crowd wasn\u0026rsquo;t too bad and where there were three jumbotrons re-broadcasting the Lincoln Memorial service from Sunday. So we waited 3 hours, sang along with Garth Brooks, bid the feeling in our toes farewell, and reflected upon the amusing signage of the ever-present nutjobs until the main event.\nThe service went down just like on TV, so you have seen that much already. The only bonus we got was the crowd response in surround sound, and the occasional slip-ups of the A/V people running the live feed, such as the occasional mic-ing of random people who were invariably carrying on conversations that had nothing to do with the festivities.\nOn leaving, we retraced our steps but just continued up 19th to Dupont, where we again got seats on the first train. We\u0026rsquo;ve had much worse train rides before and after hockey games, so either we were lucky or Metro was handling the situation well. We got back about 1:45pm.\nAnyway, frozen toes notwithstanding, it was very cool to be at the epicenter, moreso since we had the day off anyway. Insert stuff about once in a lifetime historical moments here.\n","permalink":"https://bobcopeland.com/blog/2009/01/post-or-is-it-peri-bama/","summary":"\u003cp\u003eWe\u0026rsquo;re back from the inauguration, which was a surprisingly easy affair. Ange \u0026amp; I got up at the crack of 7am, a blustery morning with temps in the mid-teens. We walked across the street to our nearby Metro station, where we quickly snagged a train with a few empty seats. It took about 40 minutes to get to Farragut North, where we disembarked and walked west a couple of blocks, then south on 19th street. After a 30 minute walk we reached the throngs on the Mall. We set up camp against barricades near the World War II memorial, where the crowd wasn\u0026rsquo;t too bad and where there were three jumbotrons re-broadcasting the Lincoln Memorial service from Sunday. So we waited 3 hours, sang along with Garth Brooks, bid the feeling in our toes farewell, and reflected upon the amusing signage of the ever-present nutjobs until the main event.\u003c/p\u003e","title":"Post-(or is it peri?)-bama"},{"content":"So it\u0026rsquo;s inauguration eve in DC. You can tell because all of the subway ads have some \u0026lsquo;Welcome to DC\u0026rsquo; theme, and there are portable toilets spread all throughout the city. However, the most obvious sign of the new administration is all the utter crap you can buy with the First Family\u0026rsquo;s picture on it: key chains, mugs, postcards, buttons, playing cards, shirts, hats, knit caps, underwear and neckties. Radio Shack is even advertising: \u0026ldquo;Get your inauguration supplies here!\u0026rdquo; (you know, in case you need some speaker wire for the weekend). I hope he gets royalties somehow. Angeline and I are planning on braving the crowds tomorrow to hang with the groundlings in the non-ticketed section. We\u0026rsquo;ll see how that goes.\nIn hacking news, I have the following patches queued so far for 2.6.29:\nBob Copeland (12): mac80211: fix a few typos in mac80211 kernel doc ath9k: remove useless conditional ath5k: fix keytable type buglet in ath5k_hw_reset_key ath5k: enable hardware encryption for WEP ath5k: update keycache to support TKIP handling ath5k: set mac address in add_interface ath5k: preserve higher order bits when setting mac address ath5k: clean up ath5k_hw_set_key ath5k: enable combined michael mic in key cache ath5k: fix endianness of bitwise ops when installing mic ath5k: correct packet length in tx descriptors ath5k: fix return values from ath5k_tx Basically, hardware crypto support, nothing else notable. In my unbaked tree, I have the mac80211 suspend/resume support patches (pushed today), some fixes for mixed b/g networking, and some silly LED patches. Most of that is 2.6.30 material.\nIn other news, glibc finally has endianness functions. I can\u0026rsquo;t say that I\u0026rsquo;m crazy about the names, and it has a bit of unnecessary Not Invented Here, but at least it gives an alternative to always using my own or using glib.\n","permalink":"https://bobcopeland.com/blog/2009/01/prebama/","summary":"\u003cp\u003eSo it\u0026rsquo;s inauguration eve in DC. You can tell because all of the subway ads have some \u0026lsquo;Welcome to DC\u0026rsquo; theme, and there are portable toilets spread all throughout the city. However, the most obvious sign of the new administration is all the utter crap you can buy with the First Family\u0026rsquo;s picture on it: key chains, mugs, postcards, buttons, playing cards, shirts, hats, knit caps, underwear and neckties. Radio Shack is even advertising: \u0026ldquo;Get your inauguration supplies here!\u0026rdquo; (you know, in case you need some speaker wire for the weekend). I hope he gets royalties somehow. Angeline and I are planning on braving the crowds tomorrow to hang with the groundlings in the non-ticketed section. We\u0026rsquo;ll see how that goes.\u003c/p\u003e","title":"Prebama"},{"content":"Another year has passed, so it\u0026rsquo;s time to take stock, and make soup from it.\nIn 2008, we downsized by selling my house, gave away lots of stuff, drove less, and called Angeline\u0026rsquo;s 700 sq ft apartment home. I\u0026rsquo;d like to continue the trend of reducing even while we try to find a slightly larger place.\nAngeline landed her first real job after 14 years of training, receiving offers from every place she interviewed. She\u0026rsquo;ll begin at a private practice in Rockville in the middle of this year (if you have diabetes, I know a great endocrinologist!). We\u0026rsquo;re very excited and hope this practice will be a great place to work.\nMeanwhile, I came into the year hating my job, resolved to leave by April. I did interview and receive a couple of job offers, but nothing too exciting. Instead, I decided to stop caring so much about work, and to wait and see what happens.\nIn 2008, I continued my hobbies. I cooked a lot, taking cooking classes on bread-making and sauces. I also messed around with electronics as usual, built a theme kite for the Smithsonian kite festival, and read a ton of books. Angeline and I completed hundreds of crossword puzzles together, and watched a lot of hockey games.\nMost of my spare time, as boringly detailed on this blog, was spent focusing on kernel hacking, with OMFS being included and my becoming a maintainer of the ath5k wireless driver. In 2009, I hope to have my 100th patch included in the kernel (currently at around #35). I\u0026rsquo;d also like to make systems software a focus of my future career. To that end, I\u0026rsquo;ve applied for jobs with a couple of embedded device manufacturers, and applied to masters degree programs at nearby schools.\nAll in all, it was a good year. Our families are all reasonably healthy. Many were affected by the economic downturn but no one we know is suffering hardship. We look forward to spending more time with friends and family this year. 2009 holds lots of promise and all that other optimistic crap.\n","permalink":"https://bobcopeland.com/blog/2009/01/pointless-calendar-increment/","summary":"\u003cp\u003eAnother year has passed, so it\u0026rsquo;s time to take stock, and make soup from it.\u003c/p\u003e\n\u003cp\u003eIn 2008, we downsized by selling my house, gave away lots of stuff, drove less, and called Angeline\u0026rsquo;s 700 sq ft apartment home. I\u0026rsquo;d like to continue the trend of reducing even while we try to find a slightly larger place.\u003c/p\u003e\n\u003cp\u003eAngeline landed her first real job after 14 years of training, receiving offers from every place she interviewed. She\u0026rsquo;ll begin at a private practice in Rockville in the middle of this year (if you have diabetes, I know a great endocrinologist!). We\u0026rsquo;re very excited and hope this practice will be a great place to work.\u003c/p\u003e","title":"Pointless calendar increment"},{"content":"\nMutt\nOriginally uploaded by bluesterror\nAfter two weeks my developer\u0026rsquo;s G1 finally came in. Finally, I can use my 1990s text email client from a cell phone.\n","permalink":"https://bobcopeland.com/blog/2008/12/new-toy/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/3122232247/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm4.static.flickr.com/3267/3122232247_4c9c476578_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/bluesterror/3122232247/\"\u003eMutt\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/bluesterror/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eAfter two weeks my developer\u0026rsquo;s G1 finally came in. Finally, I can use my 1990s text email client from a cell phone.\u003c/p\u003e","title":"New Toy"},{"content":"I suppose it\u0026rsquo;s a bit bourgeois to go to really expensive restaurants while the economy is crashing down around us. But Angeline\u0026rsquo;s birthday arrived last week, and it has been hard to resist the siren song of Komi from all the positive things we\u0026rsquo;ve heard. So off we went to Johnny Monis\u0026rsquo; fancy greek restaurant last Friday night.\nAs we tend to do in the high end places, we went with the degustazione, the tasting menu. Angeline ordered a crisp glass of white wine, and I signed up for the three glass pairing. (Not being a wine connoisseur, I couldn\u0026rsquo;t really say whether the pairing was good or bad. The sommelier didn\u0026rsquo;t spend a lot of time explaining the choices, and there was nothing revelatory about the choices from my point of view. At any rate, that hardly put a damper on the meal.) The tasting menu begins with an almost unending parade of small plates, they call mezzethakia (actually if you google \u0026ldquo;mezzethakia,\u0026rdquo; you\u0026rsquo;ll get much better reviews of Komi right off the bat). Initial courses were primarily seafood: sashimi ahi in olive oil with salt and chives, sea urchin and oyster in a fruity gel, a salad with baby octopus tentacles, a really nice ceviche with sweet pine nuts (I forget the fish, salmon perhaps?), and scallop carpaccio with truffle mayonnaise. A steak tartare with white truffle ice cream soon followed. And finally, on a plate with tiny foie gras sandwiches, handmade animal crackers, and goat cheese smores, was a date stuffed with mascarpone cheese, sprinkled with fluer de sel. It may not sound like much, but this last, one of the most talked-about items from his restaurant, was excellent and well worth the hype.\nFor pasta, I had a tagliatelle, I think, while Ange had pumpkin ravioli that were amazing. Then they brought the \u0026ldquo;salad\u0026rdquo; course: a one inch crouton, deep fried with a caesar salad puree inside. Very imaginative, and it did taste just like a tiny caesar salad.\nThe small portions gave way for a massive katsikaki (slow roasted goat shoulder). This was very good: coated in artisanal salt, the outside was crisp and flavorful, a bit like roasted chicken skin, while the inside was fork tender, like a less-fatty pork barbecue. It was served with an array of home-made condiments. Dessert included various chocolate presentations (a mousse and a small cake, if I recall correctly) and some tasty greek donuts. The bill came with home-made almond lollipops, presumably to distract from the number of digits in the total.\nBottom line: definitely top three restaurants I\u0026rsquo;ve been to, top one or two in DC. Well worth eating PB\u0026amp;J for a month to save up the cash.\n","permalink":"https://bobcopeland.com/blog/2008/12/komi/","summary":"\u003cp\u003eI suppose it\u0026rsquo;s a bit bourgeois to go to really expensive restaurants while the economy is crashing down around us. But Angeline\u0026rsquo;s birthday arrived last week, and it has been hard to resist the siren song of Komi from all the positive things we\u0026rsquo;ve heard. So off we went to Johnny Monis\u0026rsquo; fancy greek restaurant last Friday night.\u003c/p\u003e\n\u003cp\u003eAs we tend to do in the high end places, we went with the degustazione, the tasting menu. Angeline ordered a crisp glass of white wine, and I signed up for the three glass pairing. (Not being a wine connoisseur, I couldn\u0026rsquo;t really say whether the pairing was good or bad. The sommelier didn\u0026rsquo;t spend a lot of time explaining the choices, and there was nothing revelatory about the choices from my point of view. At any rate, that hardly put a damper on the meal.) The tasting menu begins with an almost unending parade of small plates, they call mezzethakia (actually if you google \u0026ldquo;mezzethakia,\u0026rdquo; you\u0026rsquo;ll get much better reviews of Komi right off the bat). Initial courses were primarily seafood: sashimi ahi in olive oil with salt and chives, sea urchin and oyster in a fruity gel, a salad with baby octopus tentacles, a really nice ceviche with sweet pine nuts (I forget the fish, salmon perhaps?), and scallop carpaccio with truffle mayonnaise. A steak tartare with white truffle ice cream soon followed. And finally, on a plate with tiny foie gras sandwiches, handmade animal crackers, and goat cheese smores, was a date stuffed with mascarpone cheese, sprinkled with fluer de sel. It may not sound like much, but this last, one of the most talked-about items from his restaurant, was excellent and well worth the hype.\u003c/p\u003e","title":"Komi"},{"content":"So, I\u0026rsquo;ve been a user of Debian (and lately Ubuntu) since around 2001, with RedHat, Mandrake, and Slackware being in use before then. Debian was like a revelation: \u0026lsquo;apt\u0026rsquo; is how package management should be! I still have my server running Debian stable, but I thought I\u0026rsquo;d try putting Fedora 10 on my laptop this go-round to see how it compares to Ubuntu. All the marketing hype about Ubuntu being mere aggregators of others\u0026rsquo; hard work had something to do with that as well. Besides, yum has been around for years now so surely it is as good as apt by now.\nHere are my thoughts: I still find yum a little clunky for a few things; maybe that\u0026rsquo;s just my expertise in apt speaking. LVM was the first thing to go \u0026ndash; it wasn\u0026rsquo;t hard to do from the graphical installer. The much hailed boot graphics stuff only worked with vesafb for me since they dropped the modesetting code for Intel from the kernel. I had to overhaul the installkernel script to properly update grub and not bother with an initrd, since I hate them. Finally, all configuration seems to be HAL driven now, which just means putting more random undocumented crap into huge XML files in /etc to get your touchpad working. Lovely, I\u0026rsquo;m sure Ubuntu is busy adopting that mess. On the plus side, a nice looking gnome setup with reasonable defaults. On the whole, Fedora 10 is a solid release, though it will still take some time to get it configured to my liking. Perhaps by then I\u0026rsquo;ll give openSuse a spin.\n","permalink":"https://bobcopeland.com/blog/2008/12/f10/","summary":"\u003cp\u003eSo, I\u0026rsquo;ve been a user of Debian (and lately Ubuntu) since around 2001, with RedHat, Mandrake, and Slackware being in use before then. Debian was like a revelation: \u0026lsquo;apt\u0026rsquo; is how package management should be! I still have my server running Debian stable, but I thought I\u0026rsquo;d try putting Fedora 10 on my laptop this go-round to see how it compares to Ubuntu. All the marketing hype about Ubuntu being mere aggregators of others\u0026rsquo; hard work had something to do with that as well. Besides, yum has been around for years now so surely it is as good as apt by now.\u003c/p\u003e","title":"F10"},{"content":"I can now take back the things I said about the Android phone. Enroute. Enroute back to T-Mobile.\n","permalink":"https://bobcopeland.com/blog/2008/12/open/","summary":"\u003cp\u003eI can now take back the things I said about the Android phone.\n\u003ca href=\"http://www.engadget.com/2008/12/05/sim-hardware-unlocked-android-dev-phone-1-surfaces-for-399/\"\u003eEnroute.\u003c/a\u003e \u003ca href=\"http://www.engadget.com/2008/09/22/meet-the-t-mobile-g1/\"\u003eEnroute back to T-Mobile.\u003c/a\u003e\u003c/p\u003e","title":"!!Open"},{"content":"The projects section of my webpage got a few tweaks last night. Namely, I resurrected the rigid body simulator back to more-or-less compiling state (what a pile of crap code!) and put it back on the internets. The i-collide library may need a few Makefile tweaks to run on anything newer than RedHat 4. I ran it last night, then I realized GL-over-remote-X wasn\u0026rsquo;t working on Windows. So much for that. It\u0026rsquo;s super fast on modern hardware though.\n","permalink":"https://bobcopeland.com/blog/2008/12/old-code/","summary":"\u003cp\u003eThe \u003ca href=\"/projects.html\"\u003eprojects section\u003c/a\u003e of my webpage got a few tweaks last night. Namely, I resurrected the rigid body simulator back to more-or-less compiling state (what a pile of crap code!) and put it back on the internets. The i-collide library may need a few Makefile tweaks to run on anything newer than RedHat 4. I ran it last night, then I realized GL-over-remote-X wasn\u0026rsquo;t working on Windows. So much for that. It\u0026rsquo;s super fast on modern hardware though.\u003c/p\u003e","title":"Old code"},{"content":"I spent most of last weekend doing home IT tasks. That involved upgrading my main desktop machine from Pentium III to an Athlon XP. Welcome to 7 years ago! But most of the work was spent reorganizing my data and coming up with a better backup regime.\nNow that hard drives are so cheap, and we now rent a storage space, spending $1/GB-month for off-site network backup is just not worth it any more. Also, with my off-site backup, I was only keeping a single full backup, which is not terribly useful if a few weeks elapse before you notice something is missing. So, I have been playing around with incremental backups using rsync and hard links, similar to the way Apple\u0026rsquo;s time machine supposedly works. Then I stumbled across \u0026lsquo;gibak,\u0026rsquo; a set of shell scripts that use the git version control system as the backup tool.\nIn the end, I went with my own dozen-liner script to use git and metastore, with rsync/cifs to collect the stuff in windowsland for backup in separate repositories. A cron job does a daily commit and push from the checked-out repo in my home directory. So far, the result is pretty nice. If I screw something up, a \u0026lsquo;git reset\u0026rsquo; gets me back to any earlier date. It also solves a minor annoyance with keeping files in sync across multiple machines: both can use a clone of the git repo and then syncing is as easy as a push from one and a pull to the other. I can rotate portable hard drives to the storage area to solve the \u0026lsquo;apartment burning down\u0026rsquo; scenario, though I\u0026rsquo;m admittedly vulnerable to the \u0026lsquo;global thermonuclear war\u0026rsquo; scenario.\nI\u0026rsquo;ve already used this scheme to rebuild a machine\u0026rsquo;s home dir and it worked flawlessly. Hopefully the same will hold when I move my laptop from Ubuntu 8.04 to Fedora 10. Anyway, this should keep me satisfied until btrfs is everywhere and I can just use filesystem snapshots.\n","permalink":"https://bobcopeland.com/blog/2008/11/backups-revisited/","summary":"\u003cp\u003eI spent most of last weekend doing home IT tasks. That involved upgrading my main desktop machine from Pentium III to an Athlon XP. Welcome to 7 years ago! But most of the work was spent reorganizing my data and coming up with a better backup regime.\u003c/p\u003e\n\u003cp\u003eNow that hard drives are so cheap, and we now rent a storage space, spending $1/GB-month for off-site network backup is just not worth it any more. Also, with my off-site backup, I was only keeping a single full backup, which is not terribly useful if a few weeks elapse before you notice something is missing. So, I have been playing around with incremental backups using rsync and hard links, similar to the way Apple\u0026rsquo;s time machine supposedly works. Then I stumbled across \u0026lsquo;gibak,\u0026rsquo; a set of shell scripts that use the git version control system as the backup tool.\u003c/p\u003e","title":"Backups revisited"},{"content":"I could write about the election here, but citizen905 already summed it up pretty well. So instead, here\u0026rsquo;s what I\u0026rsquo;ve been breaking in the Linux kernel lately:\nMy final patch count for 2.6.27 was 14, I think. Enough, anyway, that I can stop counting and just deal with all the work I\u0026rsquo;ve created for myself.\nI added myself to MAINTAINERS for ath5k, which felt like a pretty ridiculous notoriety grab, but Nick asked me to do so twice, so there.\nI have some fixes for ath5k for 2.6.28, nothing major but an oops should be fixed, and a WARN_ON removed. The oops fix, incidentally, had an obvious bug despite 3 sign-offs. I suck.\nAlso committed but to-be-reverted for suckiness is a patch to remove beaconing in STA mode. Turns out ath9k, from which I stole this idea, was just busted. The new plan is to use the beacon miss interrupt; until then, your wireless card has to wake up the CPU about 100 times a second.\nFor 2.6.29, I have added hardware encryption to ath5k and hopefully will get some time to hack on the suspend/resume support for mac80211. Then I have some omfs patches I\u0026rsquo;ve been sitting on for months.\n","permalink":"https://bobcopeland.com/blog/2008/11/hacking-the-good-kind/","summary":"\u003cp\u003eI could write about the election here, but \u003ca href=\"http://citizen905.livejournal.com/197602.html\"\u003ecitizen905\u003c/a\u003e already summed it up pretty well. So instead, here\u0026rsquo;s what I\u0026rsquo;ve been breaking in the Linux kernel lately:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eMy final patch count for 2.6.27 was 14, I think. Enough, anyway, that I can stop counting and just deal with all the work I\u0026rsquo;ve created for myself.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eI added myself to MAINTAINERS for ath5k, which felt like a pretty ridiculous notoriety grab, but Nick asked me to do so twice, so there.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eI have some fixes for ath5k for 2.6.28, nothing major but an oops should be fixed, and a WARN_ON removed. The oops fix, incidentally, had an obvious bug despite 3 sign-offs. I suck.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAlso committed but to-be-reverted for suckiness is a patch to remove beaconing in STA mode. Turns out ath9k, from which I stole this idea, was just busted. The new plan is to use the beacon miss interrupt; until then, your wireless card has to wake up the CPU about 100 times a second.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eFor 2.6.29, I have added hardware encryption to ath5k and hopefully will get some time to hack on the suspend/resume support for mac80211. Then I have some omfs patches I\u0026rsquo;ve been sitting on for months.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e","title":"Hacking, the good kind"},{"content":"So my wife received a spam from herself. At first I thought it was one of those spams where the \u0026ldquo;From:\u0026rdquo; was forged to be the same as the recipient, but a closer look revealed that it was actually from her hotmail to her yahoo account and to another dozen of her friends. Uh-oh.\nSo what happened? Was this a cross-site request forgery (CSRF) attack? She wasn\u0026rsquo;t logged into hotmail at the time that the email was sent. However, that doesn\u0026rsquo;t necessarily mean anything: there have been various CSRF attacks where the account is backdoored to send mail elsewhere, and a subsequent password reminder request could then give the attacker the goods. Or her session could have still been active even though the tab was long gone.\nWas it spyware? Windows Defender didn\u0026rsquo;t find any, and we run XP apps in unprivileged user mode (which is a huge PITA, but that\u0026rsquo;s another story). It probably was not a dictionary attack, since her password is reasonably strong. It could be the case that her password was simply stolen, possibly from another site where the password was reused.\nI\u0026rsquo;m late to the party, but I imagine CSRF and related attacks are still very under-appreciated at the moment, and that\u0026rsquo;s particularly worrisome with all of the Web 2.0 applications about. Hotmail should know the score, but who knows. As my mind mulls over the possibilities of such a bug in gmail, and the fact that I have three sessions open in it from various computers at the moment, I\u0026rsquo;m glad I have nothing of value in my gmail account and still use my own domain with mutt for official email. Stories like this one will only become more common. What if your confidential documents, stored on Google Docs, get surreptitiously emailed to everyone you\u0026rsquo;ve ever done business with?\nSo, I guess the moral is: get thee a password generator, and remember to log out of webmail!\n","permalink":"https://bobcopeland.com/blog/2008/10/hacked/","summary":"\u003cp\u003eSo my wife received a spam from herself. At first I thought it was one of those spams where the \u0026ldquo;From:\u0026rdquo; was forged to be the same as the recipient, but a closer look revealed that it was actually from her hotmail to her yahoo account \u003cem\u003eand\u003c/em\u003e to another dozen of her friends. Uh-oh.\u003c/p\u003e\n\u003cp\u003eSo what happened? Was this a \u003ca href=\"http://www.freedom-to-tinker.com/blog/wzeller/popular-websites-vulnerable-cross-site-request-forgery-attacks\"\u003ecross-site request forgery\u003c/a\u003e (CSRF) attack? She wasn\u0026rsquo;t logged into hotmail at the time that the email was sent. However, that doesn\u0026rsquo;t necessarily mean anything: there have been various CSRF attacks where the account is backdoored to send mail elsewhere, and a subsequent password reminder request could then give the attacker the goods. Or her session could have still been active even though the tab was long gone.\u003c/p\u003e","title":"Hacked"},{"content":"I\u0026rsquo;m glad to see that the not-so-openness of Android is finally getting some press. As someone whose code is included in the phones\u0026rsquo; firmware (though surely compiled out, heh), I very much agree with Harald Welte in the first linked article. And that guy bluest on lifehacker sure has really smart comments.\nOh well. I\u0026rsquo;ll wait for someone to hack it.\n","permalink":"https://bobcopeland.com/blog/2008/10/open-sorta/","summary":"\u003cp\u003eI\u0026rsquo;m glad to see that the not-so-openness of Android is finally getting \u003ca href=\"http://laforge.gnumonks.org/weblog/2008/10/23/#20081023-android\"\u003esome\u003c/a\u003e \u003ca href=\"http://www.oblomovka.com/wp/2008/10/23/the-t-mobile-g1-nice-phone-not-so-open/\"\u003epress\u003c/a\u003e. As someone whose code is included in the phones\u0026rsquo; firmware (though surely compiled out, heh), I very much agree with Harald Welte in the first linked article. And that guy bluest on \u003ca href=\"http://lifehacker.com/5053661/what-android-could-bring-to-your-phone\"\u003elifehacker\u003c/a\u003e sure has really smart comments.\u003c/p\u003e\n\u003cp\u003eOh well. I\u0026rsquo;ll wait for someone to hack it.\u003c/p\u003e","title":"Open, sorta"},{"content":" You haven\u0026rsquo;t played breakout until you\u0026rsquo;ve played it in all its low-resolution glory on the side of a building. Which is exactly what my wife, my brother-in-law, and I did in Toronto while we were visiting for Canadian Thanksgiving. The installation was part of project blinkenlights by the Chaos Computer Club. Every window in the city hall building had a lamp that would turn on or off to form a giant pixelated screen. You would call a number on a cell phone to start a game, then use the keypad to move the paddle around. Each game would last a minute, or in my case, the 10 secs it took to lose. Very neat!\n(I think in this image, the ball is in the lower left corner and the dot above the paddle on the right is just an artifact. But I could be wrong \u0026ndash; it could just be me losing, again.)\n","permalink":"https://bobcopeland.com/blog/2008/10/breakout/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/rosewater0304/2959961997/\" title=\"Breakout by rosewater0304, on Flickr\"\u003e\u003cimg alt=\"Breakout\" loading=\"lazy\" src=\"http://farm4.static.flickr.com/3144/2959961997_496cbfd76a_m.jpg\"\u003e\u003c/a\u003e You haven\u0026rsquo;t played breakout until you\u0026rsquo;ve played it in all its low-resolution glory on the side of a building. Which is exactly what my wife, my brother-in-law, and I did in Toronto while we were visiting for Canadian Thanksgiving. The installation was part of \u003ca href=\"http://www.blinkenlights.net/\"\u003eproject blinkenlights\u003c/a\u003e by the Chaos Computer Club. Every window in the city hall building had a lamp that would turn on or off to form a giant pixelated screen. You would call a number on a cell phone to start a game, then use the keypad to move the paddle around. Each game would last a minute, or in my case, the 10 secs it took to lose. Very neat!\u003c/p\u003e","title":"Breakout"},{"content":"Lately I\u0026rsquo;ve really needed SysRq in situations where /proc/sysrq-trigger just doesn\u0026rsquo;t do the job, and my MacBook is missing lots of crusty old XT-era keys. Finally, I know how to do this!\n/* includes and error handling omitted for brevity... */ #define USAGE_CODE 0x070044 /* USB hid for F11 */ int main() { int codes[2]; int fd = open(\u0026#34;/dev/input/by-id/usb-Apple_Computer_Apple_\u0026#34; \u0026#34;Internal_Keyboard_._Trackpad-event-kbd\u0026#34;, O_NONBLOCK); codes[0] = USAGE_CODE; codes[1] = KEY_SYSRQ; /* from linux/input.h */ ioctl(fd, EVIOCSKEYCODE, codes); } Awesome. Supposedly, a tool called keyfuzz is also efficacious.\n","permalink":"https://bobcopeland.com/blog/2008/10/sysrq-on-macbook/","summary":"\u003cp\u003eLately I\u0026rsquo;ve really needed SysRq in situations where /proc/sysrq-trigger just doesn\u0026rsquo;t do the job, and my MacBook is missing lots of crusty old XT-era keys. Finally, I know how to do this!\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e/* includes and error handling omitted for brevity... */\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e#define USAGE_CODE 0x070044 /* USB hid for F11 */\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eint main()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e{\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eint codes[2];\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eint fd = open(\u0026#34;/dev/input/by-id/usb-Apple_Computer_Apple_\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u0026#34;Internal_Keyboard_._Trackpad-event-kbd\u0026#34;, O_NONBLOCK);\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ecodes[0] = USAGE_CODE;\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ecodes[1] = KEY_SYSRQ;  /* from linux/input.h */\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eioctl(fd, EVIOCSKEYCODE, codes);\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eAwesome. Supposedly, a tool called keyfuzz is also efficacious.\u003c/p\u003e","title":"SYSRQ on MacBook"},{"content":" Guitars Originally uploaded by bluesterror\nTo add a little space to our cozy apartment, I put up a couple of guitar wall hangers over the weekend and put the cases in storage (don\u0026rsquo;t tell our leasing office). It looks pretty cool, though I do think the guitars want 8 or 9 more friends. I just hope this isn\u0026rsquo;t the start of the inevitable transition from guitar-as-instrument to guitar-as-display-item.\n","permalink":"https://bobcopeland.com/blog/2008/10/guitars/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/2920686700/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm4.static.flickr.com/3229/2920686700_9e9452df81_m.jpg\"\u003e\u003c/a\u003e \u003ca href=\"http://www.flickr.com/photos/bluesterror/2920686700/\"\u003eGuitars\u003c/a\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/bluesterror/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eTo add a little space to our cozy apartment, I put up a couple of guitar wall hangers over the weekend and put the cases in storage (don\u0026rsquo;t tell our leasing office). It looks pretty cool, though I do think the guitars want 8 or 9 more friends. I just hope this isn\u0026rsquo;t the start of the inevitable transition from guitar-as-instrument to guitar-as-display-item.\u003c/p\u003e","title":"Guitars"},{"content":"I had the good fortune to attend a free DC ACM-sponsored lecture by Tony Hoare last week. Hoare is the inventor of quicksort as well as the man behind two of my favorite Computing-related quotes:\nPremature optimization is the root of all evil. (via Knuth)\nThere are two ways of constructing a software design: one way is to make it so simple there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.\nHe gave a fairly dry talk on the importance of program correctness and how CS-the-science hopes to eventually figure out proof methods and tools that will some day help CS-the-discipline. But, he notes, we\u0026rsquo;re still a long way off.\nI\u0026rsquo;m still not a member, but good things are coming out of the local ACM chapter. This is the same series that brought Brian Kernighan earlier in the year. Next month there is a black tie affair with Bjarne Stroustrup as the keynote.\n","permalink":"https://bobcopeland.com/blog/2008/10/old-soldiers/","summary":"\u003cp\u003eI had the good fortune to attend a free DC ACM-sponsored lecture by Tony Hoare last week. Hoare is the inventor of quicksort as well as the man behind two of my favorite Computing-related quotes:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003ePremature optimization is the root of all evil. (via Knuth)\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cblockquote\u003e\n\u003cp\u003eThere are two ways of constructing a software design: one way is to make it so simple there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.\u003c/p\u003e\n\u003c/blockquote\u003e","title":"Old soldiers"},{"content":"I just sat in on a conference call as a representative (by default, since no one else called in) of the Linux ath5k community, with Atheros, makers of my MacBook\u0026rsquo;s wireless ethernet card. Atheros have really done a 180 for supporting the community, first by releasing ath9k, then by releasing the source to their previously-closed HAL last week. Thanks to that, 6 patches have already gone out fixing various problems. BTW, conference calls are just as pointless in the OSS community as they are in real life. But at least I did learn that it is pronounced \u0026ldquo;uh-THERE-ose\u0026rdquo;, not \u0026ldquo;ATH-er-ose.\u0026rdquo;\nBuy laptops with Atheros wireless cards!\n","permalink":"https://bobcopeland.com/blog/2008/10/oss-i-has-it/","summary":"\u003cp\u003eI just sat in on a conference call as a representative (by default, since no one else called in) of the Linux ath5k community, with Atheros, makers of my MacBook\u0026rsquo;s wireless ethernet card. Atheros have really done a 180 for supporting the community, first by releasing ath9k, then by releasing the source to their previously-closed HAL last week. Thanks to that, 6 patches have already gone out fixing various problems. BTW, conference calls are just as pointless in the OSS community as they are in real life. But at least I did learn that it is pronounced \u0026ldquo;uh-THERE-ose\u0026rdquo;, not \u0026ldquo;ATH-er-ose.\u0026rdquo;\u003c/p\u003e","title":"OSS, I has it"},{"content":"As of last Thursday, I\u0026rsquo;m no longer a land owner, so you guys are on your own with that whole voting thing.\n","permalink":"https://bobcopeland.com/blog/2008/09/divested/","summary":"\u003cp\u003eAs of last Thursday, I\u0026rsquo;m no longer a land owner, so you guys are on your own with that whole voting thing.\u003c/p\u003e","title":"Divested"},{"content":"Now that I\u0026rsquo;ve relearned Booth\u0026rsquo;s algorithm, I now understand this particular silliness. Are there still any machines where this is fast?\n","permalink":"https://bobcopeland.com/blog/2008/09/bits/","summary":"\u003cp\u003eNow that I\u0026rsquo;ve relearned Booth\u0026rsquo;s algorithm, I now understand \u003ca href=\"http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/os/timers.c#913\"\u003ethis particular silliness\u003c/a\u003e. Are there still any machines where this is fast?\u003c/p\u003e","title":"Bits"},{"content":"I\u0026rsquo;ve been going over a lot of old textbooks while studying for my upcoming CS GRE. I forgot how good the Hennessy and Patterson books are. Also I\u0026rsquo;ve read the dragon book cover-to-cover for the first time (the new edition with the lame CGI dragon on the cover), various parts of TAOCP, and Sedgewick\u0026rsquo;s Graph Algorithms in C. Time will tell whether I\u0026rsquo;ve digested any of that.\nWhen I was in the bookstore the other day, I saw Petzold\u0026rsquo;s The Annotated Turing. I still blame Petzold for the worst book in my computing library, Programming Windows 95. But I needed to fill in some gaps on formal logic and it was 30% off so I thought I\u0026rsquo;d give it a go. One nice thing is that it presents in full the paper \u0026ldquo;On Computable Numbers, with an Application to the Entscheidungsproblem,\u0026rdquo; with corrections inline. I found a number of the annotations on the machines themselves to be superfluous to the original, while the background on Cantor sets and formal logic were absolutely worthwhile. The main problem is that the book sometimes cites large sections of material from another work, which just makes me wish I had read the other work instead. Conspicuously absent from citation but appearing in the bibliography is the mind-altering but lengthy GÃ¶del, Escher, Bach, which in my opinion better tackles the philosophical angles. I give The Annotated Turing a B: nice explanation of the paper but Chuck loses a letter grade for citing his own book twice and for having a Windows tattoo.\n","permalink":"https://bobcopeland.com/blog/2008/09/turing/","summary":"\u003cp\u003eI\u0026rsquo;ve been going over a lot of old textbooks while studying for my upcoming CS GRE. I forgot how good the Hennessy and Patterson books are. Also I\u0026rsquo;ve read the dragon book cover-to-cover for the first time (the new edition with the lame CGI dragon on the cover), various parts of \u003cem\u003eTAOCP\u003c/em\u003e, and Sedgewick\u0026rsquo;s \u003cem\u003eGraph Algorithms in C\u003c/em\u003e. Time will tell whether I\u0026rsquo;ve digested any of that.\u003c/p\u003e\n\u003cp\u003eWhen I was in the bookstore the other day, I saw Petzold\u0026rsquo;s \u003cem\u003eThe Annotated Turing\u003c/em\u003e. I still blame Petzold for the worst book in my computing library, \u003cem\u003eProgramming Windows 95\u003c/em\u003e. But I needed to fill in some gaps on formal logic and it was 30% off so I thought I\u0026rsquo;d give it a go. One nice thing is that it presents in full the paper \u0026ldquo;On Computable Numbers, with an Application to the Entscheidungsproblem,\u0026rdquo; with corrections inline. I found a number of the annotations on the machines themselves to be superfluous to the original, while the background on Cantor sets and formal logic were absolutely worthwhile. The main problem is that the book sometimes cites large sections of material from another work, which just makes me wish I had read the other work instead. Conspicuously absent from citation but appearing in the bibliography is the mind-altering but lengthy \u003cem\u003eGÃ¶del, Escher, Bach\u003c/em\u003e, which in my opinion better tackles the philosophical angles. I give \u003cem\u003eThe Annotated Turing\u003c/em\u003e a B: nice explanation of the paper but Chuck loses a letter grade for citing his own book twice and for having a Windows tattoo.\u003c/p\u003e","title":"Turing"},{"content":"If you\u0026rsquo;ve always wanted to own a piece of history, now\u0026rsquo;s your chance. Since I\u0026rsquo;m just over two weeks away from having to vacate my house for good, I\u0026rsquo;m selling all my crap. Oh, it\u0026rsquo;s wonderful crap, such as my couch, beds, bookshelves, small kitchen appliances, propane tanks, lawn mowers, chainsaws[1], and various electronics. Actually, assuming I get it all in order in the next day or two, you can drop by my house on Saturday to paw through the meaningful effects of a great living legend[2].\n[1] Only one lawn mower, propane tank, and chainsaw. Two broken leaf blowers though. [2] Great and legend not guaranteed. Living hoped for.\n","permalink":"https://bobcopeland.com/blog/2008/09/buy-my-stuff/","summary":"\u003cp\u003eIf you\u0026rsquo;ve always wanted to own a piece of history, now\u0026rsquo;s your chance. Since I\u0026rsquo;m just over two weeks away from having to vacate my house for good, I\u0026rsquo;m selling all my crap. Oh, it\u0026rsquo;s wonderful crap, such as my couch, beds, bookshelves, small kitchen appliances, propane tanks, lawn mowers, chainsaws[1], and various electronics. Actually, assuming I get it all in order in the next day or two, you can drop by my house on Saturday to paw through the meaningful effects of a great living legend[2].\u003c/p\u003e","title":"Buy my stuff"},{"content":"Anyone in the interweb know why my LJ now has an ad sidebar, when I\u0026rsquo;ve explicitly opted out of the ad-supported-for-useless-goodies account? May it be time to move/shutter this thing?\nUpdate: Oh. :(\n","permalink":"https://bobcopeland.com/blog/2008/09/ads/","summary":"\u003cp\u003eAnyone in the interweb know why my LJ now has an ad sidebar, when I\u0026rsquo;ve explicitly opted out of the ad-supported-for-useless-goodies account? May it be time to move/shutter this thing?\u003c/p\u003e\n\u003cp\u003eUpdate:\n\u003ca href=\"http://news.livejournal.com/109854.html\"\u003eOh. :(\u003c/a\u003e\u003c/p\u003e","title":"Ads"},{"content":"Ange \u0026amp; I are back from our brief tour of the Carribean. PR was nice: wonderful weather and warm ocean water. We somehow lucked out and missed all three hurricanes that went through the area during our stay. The local cuisine left a lot to be desired, and the area just outside of the resorts was pretty sketch, but otherwise it\u0026rsquo;s a decent little island.\nI did find time during the traveling downtime to complete my Gstreamer FS. I\u0026rsquo;m rather proud of the fruits of that two-day hack, though I\u0026rsquo;ve yet to see if it works well enough to trick iTunes.\n","permalink":"https://bobcopeland.com/blog/2008/09/mainlandy/","summary":"\u003cp\u003eAnge \u0026amp; I are back from our brief tour of the Carribean. PR was nice: wonderful weather and warm ocean water. We somehow lucked out and missed all three hurricanes that went through the area during our stay. The local cuisine left a lot to be desired, and the area just outside of the resorts was pretty sketch, but otherwise it\u0026rsquo;s a decent little island.\u003c/p\u003e\n\u003cp\u003eI did find time during the traveling downtime to complete my \u003ca href=\"/gstfs/\"\u003eGstreamer FS\u003c/a\u003e. I\u0026rsquo;m rather proud of the fruits of that two-day hack, though I\u0026rsquo;ve yet to see if it works well enough to trick iTunes.\u003c/p\u003e","title":"Mainlandy"},{"content":"Angeline and I are Puerto Rico bound on Sunday! Here\u0026rsquo;s hoping for an absence of hurricanes. We\u0026rsquo;re also in ATL for two days next weekend.\nI have a new FUSE filesystem in the prototype stage: gstfs. The idea is to mirror a directory of music files and automatically transcode them at read() time using a gstreamer pipeline. This is so my lovingly cultivated ogg collection is friendly with Angeline\u0026rsquo;s iPod. It seems to work so far but is still a dirty hack.\n","permalink":"https://bobcopeland.com/blog/2008/08/islandy/","summary":"\u003cp\u003eAngeline and I are Puerto Rico bound on Sunday! Here\u0026rsquo;s hoping for an absence of hurricanes. We\u0026rsquo;re also in ATL for two days next weekend.\u003c/p\u003e\n\u003cp\u003eI have a new FUSE filesystem in the prototype stage: gstfs. The idea is to mirror a directory of music files and automatically transcode them at read() time using a gstreamer pipeline. This is so my lovingly cultivated ogg collection is friendly with Angeline\u0026rsquo;s iPod. It seems to work so far but is still a dirty hack.\u003c/p\u003e","title":"Islandy"},{"content":"I only made 770 (67th percentile) on the practice GRE CS subject exam I took today. I guess I need to study up on graph theory and grammars over the next month. The computer architecture questions were all fun though.\nStupidest question of the exam, which I \u0026ldquo;missed\u0026rdquo;:\nWhich is the closest to a perfectly secure encryption scheme: a) Caesar cipher (heh) b) DES c) Enigma d) One time pad e) RSA\nI take issue with the supposedly correct answer of \u0026ldquo;D\u0026rdquo;, since yes, in principle, it is perfect encryption, but in practice, it sucks. Knowing OTP is flawed has to be more useful than knowing that it could be perfect in circumstances that are never true. If only there were an option in the list which provided good encryption and also solved the key distribution problem!\nThe engineer in me is at times in conflict with the \u0026ldquo;computer science == astronomy\u0026rdquo; crowd (yeah, I\u0026rsquo;m looking at you Dijkstra). Which is why every time I read someone\u0026rsquo;s article on here\u0026rsquo;s-how-to-do-X-in-unreadable-haskell my eyes glaze over. Maybe I\u0026rsquo;m not smart enough, but I would take the fact that there are now a zillion blogs trying to explain monads as evidence that the functional people made pipes too confusing.\nOh, by the way, here\u0026rsquo;s a secret: CPUs are imperative!\n","permalink":"https://bobcopeland.com/blog/2008/08/this-post-encrypted-with-the-one-time-pad-of-all-zeros/","summary":"\u003cp\u003eI only made 770 (67th percentile) on the practice GRE CS subject exam I took today. I guess I need to study up on graph theory and grammars over the next month. The computer architecture questions were all fun though.\u003c/p\u003e\n\u003cp\u003eStupidest question of the exam, which I \u0026ldquo;missed\u0026rdquo;:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eWhich is the closest to a perfectly secure encryption scheme:\na) Caesar cipher (heh)\nb) DES\nc) Enigma\nd) One time pad\ne) RSA\u003c/p\u003e\n\u003c/blockquote\u003e","title":"This post encrypted with the one-time-pad of all zeros"},{"content":"In addition to doing as little cardio as I can get away with, Angeline and I have been following the 100 pushups training program for the last 4 weeks. That\u0026rsquo;s almost 1800 pushups between us so far. Ow, my arms.\n","permalink":"https://bobcopeland.com/blog/2008/08/i-can-do-1000-now/","summary":"\u003cp\u003eIn addition to doing as little cardio as I can get away with, Angeline and I have been following the \u003ca href=\"http://hundredpushups.com\"\u003e100 pushups training program\u003c/a\u003e for the last 4 weeks. That\u0026rsquo;s almost 1800 pushups between us so far. Ow, my arms.\u003c/p\u003e","title":"I can do 1000 now"},{"content":"I am finally getting the hang of debugging kernel crashes. None too soon as I got my first OOPS report from the -rc kernel with OMFS, from a gentleman who is intentionally corrupting his FS (\u0026ldquo;fuzzing\u0026rdquo; in the infosec lingo). After a frustrating weekend in which I had inadvertantly fixed the bug but didn\u0026rsquo;t realize it because I was testing the wrong module, I can now claim success. One down, several more to go.\nDetective work after the jump if you care for the nerdy stuff. Oops report:\nBUG: unable to handle kernel paging request at c978e004 IP: [(c032298e)] omfs_readdir+0x18e/0x32f Oops: 0000 [#1] PREEMPT DEBUG_PAGEALLOC [...] EIP: 0060:[(c032298e)] EFLAGS: 00010287 CPU: 0 EIP is at omfs_readdir+0x18e/0x32f EAX: c978d000 EBX: 00000000 ECX: cbfcfaf8 EDX: cb2cf100 ESI: 00001000 EDI: 00000800 EBP: cb2d3f68 ESP: cb2d3f0c DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 [...] [(c018a820)] ? filldir64+0x0/0xcd [(c018a9f2)] ? vfs_readdir+0x56/0x82 [(c018a820)] ? filldir64+0x0/0xcd [(c018aa7c)] ? sys_getdents64+0x5e/0xa0 [(c01038bd)] ? sysenter_do_call+0x12/0x31 ======================= Code: 00 89 f0 89 f3 0f ac f8 14 81 e3 ff ff 0f 00 48 8d 14 c5 b8 01 00 00 89 45 cc 89 55 f0 e9 8c 01 00 00 8b 4d c8 8b 75 f0 8b 41 18 (8b) 54 30 04 8b 04 30 31 f6 89 5d dc 89 d1 8b 55 b8 0f c8 0f c9 First step is to look at the faulting instruction. Running the \u0026ldquo;Code:\u0026rdquo; part through ~/linux/scripts/decodecode yields the disassembly:\n8b 4d c8 mov -0x38(%ebp),%ecx 8b 75 f0 mov -0x10(%ebp),%esi 8b 41 18 mov 0x18(%ecx),%eax 8b 54 30 04 mov 0x4(%eax,%esi,1),%edx \u0026lt;=== here 8b 04 30 mov (%eax,%esi,1),%eax 31 f6 xor %esi,%esi So the instruction is dereferencing the address [(eax+esi)*1+4]. From the register dump, EAX=c978d000. That looks like a pointer. ESI is 00001000, which is probably the index to an array. 0x1000 happens to be PAGE_SIZE which explains the page fault (kernel paging request) at the top of the oops.\nNext, let\u0026rsquo;s look at the C code. There are two ways:\n$ gdb omfs.ko (gdb) l *(omfs_readdir+0x18e) Or (and I find this a little more obvious since it has mixed C and assembly):\n$ objdump -S omfs.ko \u0026gt; foo.S # now look for instruction opcodes in foo.S: \u0026#34;8b 54 30 04\u0026#34; From the output of the above commands, it\u0026rsquo;s apparent that the +4 index in the instruction comes from be64_to_cpu() converting a 64-bit big-endian number to little-endian. And we do that when reading directory pointers in omfs_readdir, specifically:\nfsblock = be64_to_cpu(*((__be64 *) \u0026amp;bh-\u0026gt;b_data[offset])); EAX is bh-\u0026gt;b_data so ESI must be offset. I happen to know it should never be above 2048, but it is 4096 in the register dump. Since the range is ultimately controlled by the directory inode size, I immediately suspected that that size got corrupted. For some reason I chased a bunch of other dead ends until I finally did look at the disk image and saw that the directory size was all wrong. Rule one of debugging: go with your gut.\nOh well. I guess all that assembly coding from years ago was useful after all.\n","permalink":"https://bobcopeland.com/blog/2008/08/oops/","summary":"\u003cp\u003eI am finally getting the hang of debugging kernel crashes. None too soon as I got my first OOPS report from the -rc kernel with OMFS, from a gentleman who is intentionally corrupting his FS (\u0026ldquo;fuzzing\u0026rdquo; in the infosec lingo). After a frustrating weekend in which I had inadvertantly fixed the bug but didn\u0026rsquo;t realize it because I was testing the wrong module, I can now claim success. One down, several more to go.\u003c/p\u003e","title":"Oops"},{"content":"Psst, wanna buy a house?\n","permalink":"https://bobcopeland.com/blog/2008/08/listed/","summary":"\u003cp\u003ePsst, \u003ca href=\"http://www.homesdatabase.com/cgi-bin/aa.fcgi?+NDRiZjlmYTZjNWFlNTFhZGI0NWNiN2RjOGY4YmQxM2ESlI0iZbI78etCOGgJJqH0LvRkVte4iAXGr2jKXbpEtSKpJcrRHDLKE%2fCmynw1c0qMPrECM3H4VQ%3d%3d\"\u003ewanna buy a house?\u003c/a\u003e\u003c/p\u003e","title":"Listed"},{"content":" I found your resume on Dice and believe based on your background you would be a good fit for the Jr. Technical Project Manager/XML Position on a government project with one of our Fortune 100 partners in Crystal City, VA. This position is critical and we are seeking to fill thisimmediately.\nHeh, I\u0026rsquo;m pretty sure this is my job, or at least the part of it that I have been hoping to pawn off on some Jr. Technical PM/XML type.\nMy lackadaisical job hunt continues, with the following results so far:\nMotorola was promising, but ultimately it was too tech supporty and not programmy enough\nNo reply from the tech shop on the same street as my apartment\nThere are a boatload of J2EE/SQL jobs. Too bad that is boring as hell.\nToo many defense/gov\u0026rsquo;t jobs. Ick. No, I do not want to be sponsored to work for NSA.\nThere aren\u0026rsquo;t that many \u0026ldquo;work from home hacking on the kernel\u0026rdquo; jobs.\nStop calling me, recruiters. Please let me ignore you via email.\nI\u0026rsquo;m still being super-picky, obviously. Unless you have a \u0026ldquo;work from home hacking on the kernel\u0026rdquo; opening\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2008/08/employment/","summary":"\u003cblockquote\u003e\n\u003cp\u003e\u003ccode\u003eI found your resume on Dice and believe based on your background you would be a good fit for the Jr. Technical Project Manager/XML Position on a government project with one of our Fortune 100 partners in Crystal City, VA. This position is critical and we are seeking to fill thisimmediately.\u003c/code\u003e\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eHeh, I\u0026rsquo;m pretty sure this \u003cem\u003eis\u003c/em\u003e my job, or at least the part of it that I have been hoping to pawn off on some Jr. Technical PM/XML type.\u003c/p\u003e","title":"Employment"},{"content":"Having seen it mentioned on Dave Jones\u0026rsquo; blog (), I picked up The Soul of a New Machine and read it in 3 days. I think it pairs nicely with The Mythical Man Month as a cautionary tale for would-be computer nerds. Other than the amusing and all-too-true metaphor of \u0026lsquo;mushroom management,\u0026rsquo; the interesting parts for me were the computer architecture digressions, with mostly reasonable layman\u0026rsquo;s explanations of i-cache, addresses, and the like. And the extensive discussion of Adventure \u0026ndash; I had to break out TADS and try Colossal Cave myself. Doom was still better.\n","permalink":"https://bobcopeland.com/blog/2008/07/book-2/","summary":"\u003cp\u003eHaving seen it mentioned on Dave Jones\u0026rsquo; blog (), I picked up \u003ca href=\"http://www.amazon.com/Soul-New-Machine-Tracy-Kidder/dp/0316491977/\"\u003e\u003cem\u003eThe Soul of a New Machine\u003c/em\u003e\u003c/a\u003e and read it in 3 days. I think it pairs nicely with \u003cem\u003eThe Mythical Man Month\u003c/em\u003e as a cautionary tale for would-be computer nerds. Other than the amusing and all-too-true metaphor of \u0026lsquo;mushroom management,\u0026rsquo; the interesting parts for me were the computer architecture digressions, with mostly reasonable layman\u0026rsquo;s explanations of i-cache, addresses, and the like. And the extensive discussion of Adventure \u0026ndash; I had to break out TADS and try Colossal Cave myself. Doom was still better.\u003c/p\u003e","title":"Book"},{"content":" $ git-log --author=\u0026#34;Bob Copeland\u0026#34; v2.6.26..master | git-shortlog Bob Copeland (10): ath5k: Fix loop variable initializations ath5k: convert LED code to use mac80211 triggers omfs: add filesystem documentation omfs: define filesystem structures omfs: add inode routines omfs: add directory routines omfs: add file routines omfs: add bitmap routines omfs: update kbuild to include OMFS omfs: add MAINTAINERS entry Woot! I had an 11th patch, for ath5k, but the maintainer fixed it independently. Very nice to finally get omfs in and not have to maintain that sucker out of tree.\n","permalink":"https://bobcopeland.com/blog/2008/07/merged/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-gdscript3\" data-lang=\"gdscript3\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#f92672\"\u003e$\u003c/span\u003e git\u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003elog \u003cspan style=\"color:#f92672\"\u003e--\u003c/span\u003eauthor\u003cspan style=\"color:#f92672\"\u003e=\u003c/span\u003e\u003cspan style=\"color:#e6db74\"\u003e\u0026#34;Bob Copeland\u0026#34;\u003c/span\u003e v2\u003cspan style=\"color:#f92672\"\u003e.\u003c/span\u003e\u003cspan style=\"color:#ae81ff\"\u003e6.26\u003c/span\u003e\u003cspan style=\"color:#f92672\"\u003e..\u003c/span\u003emaster  \u003cspan style=\"color:#f92672\"\u003e|\u003c/span\u003e git\u003cspan style=\"color:#f92672\"\u003e-\u003c/span\u003eshortlog\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eBob Copeland (\u003cspan style=\"color:#ae81ff\"\u003e10\u003c/span\u003e):\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eath5k: Fix loop variable initializations\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eath5k: convert LED code to use mac80211 triggers\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eomfs: add filesystem documentation\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eomfs: define filesystem structures\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eomfs: add inode routines\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eomfs: add directory routines\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eomfs: add file routines\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eomfs: add bitmap routines\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eomfs: update kbuild to include OMFS\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eomfs: add MAINTAINERS entry\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eWoot! I had an 11th patch, for ath5k, but the maintainer fixed it independently. Very nice to finally get omfs in and not have to maintain that sucker out of tree.\u003c/p\u003e","title":"Merged"},{"content":"\nOrganization - Larval Stage\nOriginally uploaded by bluesterror\nI moved my main server from the old house to the apartment this weekend, which immediately presented the problem of too many wires and not enough legroom under the desk. Taking a cue from lifehacker.com, I\u0026rsquo;m jumping on the pegboard organizer bandwagon. The picture to the right is the underside of the desk, with a section of pegboard attached via hanger bolts and wing nuts. Right now, only a couple of power strips and a router are zip-tied to it, but I plan to add the Vonage router, the wireless router, various power bricks, and a few loops for cable runs. Pro tip: affix the pegboard with temporary screws while you add the hanger bolts, or else the bolts might be just crooked enough to drive you nuts, so to speak.\n","permalink":"https://bobcopeland.com/blog/2008/07/pegged/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/2693817601/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm4.static.flickr.com/3061/2693817601_9b7fd69393_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/bluesterror/2693817601/\"\u003eOrganization - Larval Stage\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/bluesterror/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eI moved my main server from the old house to the apartment this weekend, which immediately presented the problem of too many wires and not enough legroom under the desk. Taking a cue from lifehacker.com, I\u0026rsquo;m jumping on the pegboard organizer bandwagon. The picture to the right is the underside of the desk, with a section of pegboard attached via hanger bolts and wing nuts. Right now, only a couple of power strips and a router are zip-tied to it, but I plan to add the Vonage router, the wireless router, various power bricks, and a few loops for cable runs. Pro tip: affix the pegboard with temporary screws while you add the hanger bolts, or else the bolts might be just crooked enough to drive you nuts, so to speak.\u003c/p\u003e","title":"Pegged"},{"content":"I was wondering why the $7 trade-in limit for SmartTrip farecards went into effect, along with numerous signs imploring us to only buy cards from the vending machines. I thought maybe it was a MetroChek scam, but no, it was the result of scissors-and-tape hackers.\n","permalink":"https://bobcopeland.com/blog/2008/07/train-haxored/","summary":"\u003cp\u003eI was wondering why the $7 trade-in limit for SmartTrip farecards went into effect, along with numerous signs imploring us to only buy cards from the vending machines. I thought maybe it was a MetroChek scam, but no, it was the result of \u003ca href=\"http://www.schneier.com/blog/archives/2008/07/washington_dc_m.html\"\u003escissors-and-tape hackers\u003c/a\u003e.\u003c/p\u003e","title":"Train haxored"},{"content":"My wife is officially a permanent US resident, yay!! Also, I am officially a Marylander. As I was sitting in the DMV the other day getting plates, they had this moronic LED ticker thing going. With earth-shattering up-to-the-minute news such as: \u0026ldquo;Did you know? The moon is the Earth\u0026rsquo;s only natural satellite. There is no life on the moon. The moon is the brightest object in the night sky \u0026ndash; however it does not give off its own light. The moon reflects the sun\u0026rsquo;s light.\u0026rdquo;\nMeanwhile, I\u0026rsquo;d like to take a second to thank the internets for finally updating neomail, and for fixing \u0026lsquo;In-Reply-To\u0026rsquo;, adding S/MIME, and being able to handle user-defined folders. Now I can realize my dream of replying to mailing list stuff (filtered by procmail into separate mboxes) from work without breaking the threading like a noob.\n","permalink":"https://bobcopeland.com/blog/2008/07/residences-updated/","summary":"\u003cp\u003eMy wife is officially a permanent US resident, yay!! Also, I am officially a Marylander. As I was sitting in the DMV the other day getting plates, they had this moronic LED ticker thing going. With earth-shattering up-to-the-minute news such as: \u0026ldquo;Did you know? The moon is the Earth\u0026rsquo;s only natural satellite. There is no life on the moon. The moon is the brightest object in the night sky \u0026ndash; however it does not give off its own light. The moon reflects the sun\u0026rsquo;s light.\u0026rdquo;\u003c/p\u003e","title":"Residences updated"},{"content":"RIP 4th Amendment, it was good while we pretended it existed. I, for one, will not rest, will not be distracted by \u0026ndash; oooh iPhone, shiny!\n","permalink":"https://bobcopeland.com/blog/2008/07/another-eft-for-eff/","summary":"\u003cp\u003eRIP 4th Amendment, it was good while we pretended it existed. I, for one, will not rest, will not be distracted by \u0026ndash; oooh iPhone, shiny!\u003c/p\u003e","title":"Another EFT for EFF"},{"content":"Thanks to a few hours of hacking during the holiday weekend, I have a new version of the Karma plugin for Banshee (and a newer version of omfs too). I\u0026rsquo;m too lazy to write my own release notes so read someone else\u0026rsquo;s! Thanks, Ben.\n","permalink":"https://bobcopeland.com/blog/2008/07/new-banshee-plugin/","summary":"\u003cp\u003eThanks to a few hours of hacking during the holiday weekend, I have a new version of the Karma plugin for Banshee (and a newer version of omfs too). I\u0026rsquo;m too lazy to write my own release notes so \u003ca href=\"http://overtag.dk/wordpress/?p=50\"\u003eread someone else\u0026rsquo;s!\u003c/a\u003e Thanks, Ben.\u003c/p\u003e","title":"New Banshee Plugin"},{"content":"Never ever write a Java gui application with the requirement that you check fields before letting the user tab off of them. What a nightmare! Your only two tools, without rewriting large parts of Swing yourself, are FocusListener and InputVerifier. FocusListener is great for the case when you have two such fields. Set up bad data in each field, then watch the focus traversal war as a focusLost() method reclaims the focus for one component, causing focusLost() in the other component to fire. Fun. Then you have InputVerifier, ostensibly designed for this very purpose. Ignoring the fact that buttons still fire without the verifier getting called, now you have the awesomeness of not knowing what the target component would be. Want to build a view with multiple fields that get validated as one? Good luck with that.\n","permalink":"https://bobcopeland.com/blog/2008/07/swing-rant/","summary":"\u003cp\u003eNever ever write a Java gui application with the requirement that you check fields before letting the user tab off of them. What a nightmare! Your only two tools, without rewriting large parts of Swing yourself, are FocusListener and InputVerifier. FocusListener is great for the case when you have two such fields. Set up bad data in each field, then watch the focus traversal war as a focusLost() method reclaims the focus for one component, causing focusLost() in the other component to fire. Fun. Then you have InputVerifier, ostensibly designed for this very purpose. Ignoring the fact that buttons still fire without the verifier getting called, now you have the awesomeness of not knowing what the target component would be. Want to build a view with multiple fields that get validated as one? Good luck with that.\u003c/p\u003e","title":"swing rant"},{"content":"Amazon:\nWe recommend: Pony 8510BP Cabinet Claw (2-Pack) by Pony http://www.amazon.com/dp/B0000224BN/ref=pe_ar_x1 List Price: $73.77 Price: $54.39 You Save: $19.38 (26%) Recommended because you purchased or rated: * Align-Rite DG-101 Drill Guide with 3/16-Inch Holes for 12-Inch Drawers and Doors New business idea: a collaborative filtering engine that lets you, the user, customize the idiocy away. Actually, eTantrum\u0026rsquo;s music recommendation app (Linux version only) had sliders to control the weights of various things. Still an awesome idea.\nUpdate: yeah, amazon lets you customize it too. I still want sliders though!\n","permalink":"https://bobcopeland.com/blog/2008/06/recommend-fail/","summary":"\u003cp\u003eAmazon:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eWe recommend: Pony 8510BP Cabinet Claw (2-Pack)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eby Pony\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ehttp://www.amazon.com/dp/B0000224BN/ref=pe_ar_x1\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eList Price: $73.77\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ePrice: $54.39\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eYou Save: $19.38 (26%)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eRecommended because you purchased or rated:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e* Align-Rite DG-101 Drill Guide with 3/16-Inch Holes for 12-Inch Drawers and Doors\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eNew business idea: a collaborative filtering engine that lets you, the user, customize the idiocy away. Actually, eTantrum\u0026rsquo;s music recommendation app (Linux version only) had sliders to control the weights of various things. Still an awesome idea.\u003c/p\u003e","title":"Recommend fail"},{"content":"I get amused whenever I see another open-coded version of this in our codebase, a method for determining the resolution of a scaled-down image while maintaining aspect ratio:\nwhile (x \u0026gt; targetx || y \u0026gt; targety) { x *= 0.99; y *= 0.99; } It\u0026rsquo;s pretty easy to discern that it will take a lot of iterations to accomplish this task. In fact I put it around 250 * log (x/x') where x\u0026rsquo; is the target width. That\u0026rsquo;s maybe as many as 2000 FP multiplies depending on the difference in sizes between source and target image.\nI guess computing the smallest scale factor and using it once was just too hard\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2008/06/resize-wtf/","summary":"\u003cp\u003eI get amused whenever I see another open-coded version of this in our codebase, a method for determining the resolution of a scaled-down image while maintaining aspect ratio:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ewhile (x \u0026gt; targetx || y \u0026gt; targety) {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ex *= 0.99;\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ey *= 0.99;\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eIt\u0026rsquo;s pretty easy to discern that it will take a lot of iterations to accomplish this task. In fact I put it around \u003ccode\u003e250 * log (x/x')\u003c/code\u003e where x\u0026rsquo; is the target width. That\u0026rsquo;s maybe as many as 2000 FP multiplies depending on the difference in sizes between source and target image.\u003c/p\u003e","title":"resize wtf"},{"content":"I spent last weekend in San Francisco for a convention. Nope, not WWDC, or JavaOne. Angeline was giving a presentation at the American Diabetes Association conference, and I stole along. Here\u0026rsquo;s the breakdown:\nday 1: Landed in SF about noon localtime after many hours of flight. Took BART to the hotel, checked in and headed to the conference for registration. Then off to the Mission district for lunch at Tacqueria Can-cun, where the burritos are excellent. Too full and tired for dinner, we went to bed early.\nday 2: Walked around the city a lot, saw a 15-person \u0026ldquo;parade\u0026rdquo; in Chinatown. Homeless guy said of me, \u0026ldquo;I can tell, that guy is law enforcement.\u0026rdquo; Met DA for lunch at Mo\u0026rsquo;s grill, then chilled in the park. Homeless guy tried to sell us his \u0026ldquo;book\u0026rdquo; \u0026ndash; aka stapled sheets of paper \u0026ndash; of poetry. Saw several random people on the street not wearing clothes, and ballet dancers. Got a nasty sunburn.\nWent to Sultan\u0026rsquo;s for Indian food - not bad, but the place was empty. Cheaper place next door, Naan \u0026amp; Curry, had all the business.\nday 3: Hopped on BART this morning, then took Caltrain to Mountain View. There, in the drab, continuous office park that is Silicon Valley, just a few blocks south of the Googleplex, is the Computer History Museum. Wandered through it taking pictures of computers from my childhood, and saw a demonstration of a Babbage difference engine.\nWent to R\u0026amp;G Lounge in Chinatown for dinner with Ange, her sister, and a third doctor. Food was great but the staff was a little bit racist. (They are only serving the red bean soup to persons of East Asian descent now? And, \u0026ldquo;Fried noodles are crunchy. I recommend the soft noodles for you [, white guy].\u0026rdquo; WTF.)\nday 4: Met up with more doctors for lunch in the mall near the conference center. Quite good for food court.\nAnge had her presentation at 5pm. I sneaked in with her sister\u0026rsquo;s badge, which I had to flash at Security. Thankfully, they didn\u0026rsquo;t ask why I had a girl\u0026rsquo;s name. Angeline gave an excellent talk though all way over my head.\nHad dinner at Ame, very expensive but possibly the best food we\u0026rsquo;ve ever had. Sashimi, potato soup, black cod, braised pork cheeks, chocolate cake and rhubarb-strawberry pie were consumed.\nday 5: Sitting here on the plane back. Not writing complete sentences.\nSome photos of computers are on my flickr stream.\n","permalink":"https://bobcopeland.com/blog/2008/06/sf-recap/","summary":"\u003cp\u003eI spent last weekend in San Francisco for a convention. Nope, not WWDC, or JavaOne. Angeline was giving a presentation at the American Diabetes Association conference, and I stole along. Here\u0026rsquo;s the breakdown:\u003c/p\u003e\n\u003cp\u003eday 1:\nLanded in SF about noon localtime after many hours of flight. Took BART to the hotel, checked in and headed to the conference for registration. Then off to the Mission district for lunch at Tacqueria Can-cun, where the burritos are excellent. Too full and tired for dinner, we went to bed early.\u003c/p\u003e","title":"SF recap"},{"content":"We\u0026rsquo;re in San Francisco this weekend through Tuesday. If anyone else is, or has suggestions of locations to visit, drop me a line.\n","permalink":"https://bobcopeland.com/blog/2008/06/going-to-california/","summary":"\u003cp\u003eWe\u0026rsquo;re in San Francisco this weekend through Tuesday. If anyone else is, or has suggestions of locations to visit, drop me a line.\u003c/p\u003e","title":"Going to California"},{"content":" Stepper motor Originally uploaded by bluesterror\nFor a future project, I pulled a stepper motor from an old 3.5\u0026quot; disk drive and hooked it up to my Arduino. Turns out it\u0026rsquo;s quite easy to control these things: just periodically write bit patterns 1010, 0110, 0101, and 1001 to the 4 control wires and you\u0026rsquo;ve got a spinning motor.\nI also baked six loaves of bread this weekend thanks to a cooking class on Saturday. I\u0026rsquo;m drowning in potential croutons.\n","permalink":"https://bobcopeland.com/blog/2008/06/stepper-motor/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/2542832763/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm4.static.flickr.com/3065/2542832763_645cf81971_m.jpg\"\u003e\u003c/a\u003e \u003ca href=\"http://www.flickr.com/photos/bluesterror/2542832763/\"\u003eStepper motor\u003c/a\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/bluesterror/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eFor a future project, I pulled a stepper motor from an old 3.5\u0026quot; disk drive and hooked it up to my Arduino. Turns out it\u0026rsquo;s quite easy to control these things: just periodically write bit patterns 1010, 0110, 0101, and 1001 to the 4 control wires and you\u0026rsquo;ve got a spinning motor.\u003c/p\u003e\n\u003cp\u003eI also baked six loaves of bread this weekend thanks to a cooking class on Saturday. I\u0026rsquo;m drowning in potential croutons.\u003c/p\u003e","title":"Stepper motor"},{"content":"I\u0026rsquo;ve been a slacker, so here\u0026rsquo;s the 10 second update:\nIron man was good. You knew that two weeks ago.\nAnge and I had our immigration interview for her green card. We\u0026rsquo;re on tenterhooks right now hoping that we get an affirmative answer quickly. (Fun fact: a tenter was used to stretch cloth in the 14th century and the tenterhooks were, I guess, hooks on it. Isn\u0026rsquo;t history fun!)\nWe also watched LOTR all week. Still awesome.\nNerd-cool stuff I\u0026rsquo;m playing with lately:\nUML - user mode linux, I hope to get this up and running so I can script git-bisect\ncoLinux - like UML for windows, which I want to use for a distcc compile farm setup at home. Alternately, someone on lazyweb can port distcc for me?\noprofile - profile your whole box, great for \u0026lsquo;why is X using 90% cpu\u0026rsquo; and \u0026lsquo;did ath5k_rx_tasklet ever get called?\u0026rsquo;\nccache - Java needs this\n","permalink":"https://bobcopeland.com/blog/2008/05/brevity/","summary":"\u003cp\u003eI\u0026rsquo;ve been a slacker, so here\u0026rsquo;s the 10 second update:\u003c/p\u003e\n\u003cp\u003eIron man was good. You knew that two weeks ago.\u003c/p\u003e\n\u003cp\u003eAnge and I had our immigration interview for her green card. We\u0026rsquo;re on tenterhooks right now hoping that we get an affirmative answer quickly. (Fun fact: a tenter was used to stretch cloth in the 14th century and the tenterhooks were, I guess, hooks on it. Isn\u0026rsquo;t history fun!)\u003c/p\u003e\n\u003cp\u003eWe also watched LOTR all week. Still awesome.\u003c/p\u003e","title":"brevity"},{"content":"I\u0026rsquo;m playing with date conversions today, and again I\u0026rsquo;m struck by how much the Java Calendar should be held up as an example of the over-engineered API. Has anyone ever used anything besides the Gregorian calendar? They were so proud of it when it hit 1.1.\nI should have two patches hitting kernel 2.6.26, one entirely cosmetic and one that fixes a real bug on Atheros wireless cards. Akpm did pick up the OMFS patchset so hopefully that will go in .27 timeframe, though the jury is still out on whether it hits mainline.\nIn other news, take that, Skype!\n","permalink":"https://bobcopeland.com/blog/2008/05/meh/","summary":"\u003cp\u003eI\u0026rsquo;m playing with date conversions today, and again I\u0026rsquo;m struck by how much the Java Calendar should be held up as an example of the over-engineered API. Has anyone ever used anything besides the Gregorian calendar? They were so proud of it when it hit 1.1.\u003c/p\u003e\n\u003cp\u003eI should have two patches hitting kernel 2.6.26, one entirely cosmetic and one that fixes a real bug on Atheros wireless cards. Akpm did pick up the OMFS patchset so hopefully that will go in .27 timeframe, though the jury is still out on whether it hits mainline.\u003c/p\u003e","title":"Meh"},{"content":"The libpam-mount configuration file has changed to a new XML format.\nAaaaaaghhh, no!!!!\n","permalink":"https://bobcopeland.com/blog/2008/05/xmlization/","summary":"\u003cp\u003e\u003ccode\u003eThe libpam-mount configuration file has changed to a new XML format.\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eAaaaaaghhh, no!!!!\u003c/p\u003e","title":"XMLization"},{"content":"\nSandwich bread\nOriginally uploaded by bluesterror\nI tried making sandwich bread this weekend since we forgot to buy it from the grocery store. With a stand mixer, this was not hard at all, and it rocks our socks. Oh, the BLTs I am going to make with this!\n","permalink":"https://bobcopeland.com/blog/2008/04/make-your-own-bread/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/2447361229/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm4.static.flickr.com/3252/2447361229_bc31ccac1a_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/bluesterror/2447361229/\"\u003eSandwich bread\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/bluesterror/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eI tried making sandwich bread this weekend since we forgot to buy it from the grocery store. With a stand mixer, this was not hard at all, and it rocks our socks. Oh, the BLTs I am going to make with this!\u003c/p\u003e","title":"Make your own bread"},{"content":"I\u0026rsquo;m taking the GRE this week as part of a foolish endeavor to possibly get more learning. Wow, have I forgotten lots of high school math. In preparation for the subject test, which I still haven\u0026rsquo;t signed up for, I picked up a copy of volumes 1 \u0026amp; 2 of TAOCP. I think these will be much better books once the MMIX versions are out in a few years. For now, they are hilariously antiquated as far as any of the MIX stuff goes. 6-bit (binary or decimal!) bytes, no stack, self-modifying code, punch cards, a weird assembly language that encodes the target registers in the opcode. It makes x86 look like a good ISA. Of course as Knuth says, the concepts themselves are timeless. And it does have me wanting to find a reason for using coroutines, so that\u0026rsquo;s something.\n","permalink":"https://bobcopeland.com/blog/2008/04/i-want-my-hexadecimal-dollar/","summary":"\u003cp\u003eI\u0026rsquo;m taking the GRE this week as part of a foolish endeavor to possibly get more learning. Wow, have I forgotten lots of high school math. In preparation for the subject test, which I still haven\u0026rsquo;t signed up for, I picked up a copy of volumes 1 \u0026amp; 2 of TAOCP. I think these will be much better books once the MMIX versions are out in a few years. For now, they are hilariously antiquated as far as any of the MIX stuff goes. 6-bit (binary or decimal!) bytes, no stack, self-modifying code, punch cards, a weird assembly language that encodes the target registers in the opcode. It makes x86 look like a good ISA. Of course as Knuth says, the concepts themselves are timeless. And it does have me wanting to find a reason for using coroutines, so that\u0026rsquo;s something.\u003c/p\u003e","title":"I want my hexadecimal dollar"},{"content":"Angeline is way smarter than me. Congrats on her chapter full of words I do not understand!\n","permalink":"https://bobcopeland.com/blog/2008/04/pre-published/","summary":"\u003cp\u003eAngeline is \u003ca href=\"http://www.eurekah.com/chapter/3919\"\u003eway smarter\u003c/a\u003e than me. Congrats on her chapter full of words I do not understand!\u003c/p\u003e","title":"(p)re-published"},{"content":"43 files changed, 5671 deletions(-)\nToday was a good day. I love deleting XML parsers more than anything in the whole world.\n","permalink":"https://bobcopeland.com/blog/2008/04/rm-r/","summary":"\u003cp\u003e43 files changed, 5671 deletions(-)\u003c/p\u003e\n\u003cp\u003eToday was a good day. I love deleting XML parsers more than anything in the whole world.\u003c/p\u003e","title":"rm -r"},{"content":"I unintentionally created quite a ruckus on the kernel mailing list this weekend. Evgeniy\u0026rsquo;s take. It\u0026rsquo;s funny, I feel a lot less invested than practically anyone in the whole thread.\n","permalink":"https://bobcopeland.com/blog/2008/04/controversy-i-has-it/","summary":"\u003cp\u003eI unintentionally created quite a \u003ca href=\"http://marc.info/?l=linux-kernel\u0026amp;m=120816279104484\u0026amp;w=2\"\u003eruckus\u003c/a\u003e on the kernel mailing list this weekend. \u003ca href=\"http://tservice.net.ru/~s0mbre/blog/devel/fs/2008_04_14.html\"\u003eEvgeniy\u0026rsquo;s take\u003c/a\u003e. It\u0026rsquo;s funny, I feel a lot less invested than practically anyone in the whole thread.\u003c/p\u003e","title":"Controversy, I has it."},{"content":"More evidence that javac is one of the dumbest compilers ever: public class Foo extends java.lang.Object{ public Foo(); Code: 0: aload_0 1: invokespecial #1; //Method java/lang/Object.\u0026quot;\u0026quot;:()V 4: return public static void main(java.lang.String[]); Code: 0: aconst_null 1: instanceof #2; //class Foo 4: ifeq 15 7: getstatic #3; //Field java/lang/System.out:Ljava/io/PrintStream; 10: ldc #4; //String never! 12: invokevirtual #5; //Method java/io/PrintStream.println:(Ljava/lang/String;)V 15: return } Ok, I\u0026rsquo;ll give them a break \u0026ndash; this probably never comes up in a real application.\n","permalink":"https://bobcopeland.com/blog/2008/04/javac-sucks/","summary":"\u003cp\u003eMore evidence that javac is one of the dumbest compilers ever:\n\u003ccode\u003epublic class Foo extends java.lang.Object{ public Foo(); Code: 0:   aload_0 1:   invokespecial   #1; //Method java/lang/Object.\u0026quot;\u0026quot;:()V 4:   return public static void main(java.lang.String[]); Code: 0:   aconst_null 1:   instanceof      #2; //class Foo 4:   ifeq    15 7:   getstatic       #3; //Field java/lang/System.out:Ljava/io/PrintStream; 10:  ldc     #4; //String never! 12:  invokevirtual   #5; //Method java/io/PrintStream.println:(Ljava/lang/String;)V 15:  return }\u003c/code\u003e\nOk, I\u0026rsquo;ll give them a break \u0026ndash; this probably never comes up in a real application.\u003c/p\u003e","title":"javac sucks"},{"content":"As long as I\u0026rsquo;ve known about kosher for Passover Coke, I\u0026rsquo;ve needed it. Coca-cola made with sugar, they said, the way it used to be. I wasn\u0026rsquo;t sure I believed it existed, but I was hopeful. Last year, I dropped by the KosherMart around Seder time looking for this mythical cola, but all they had was Dr. Brown\u0026rsquo;s and kosher Diet Coke. \u0026ldquo;WTF?\u0026rdquo; I asked the clerk, but he was still unable to help me.\nThen, last night I spotted a crate of yellow-capped 2-liters at Giant. \u0026ldquo;w00t!\u0026rdquo; I exclaimed, as I snagged a few. Finally, I would be able to answer that age old question: is KFP Coke really better than normal Coke? (I seem to remember from last year that the company line was, \u0026ldquo;no, you are imagining things. Please go back to enjoying your corn syrup.\u0026rdquo;)\nI\u0026rsquo;m all about the science, so I had my lovely assistant decant equal amounts of regular and KFP coke into glasses while I was in the other room. Not knowing which was which, I took a sip of each, and selected my favorite.\nAnd the winner is: KFP, easily. They do taste similar enough, but the big difference is in finish. Sucrose has a clean, smooth finish, while HFCS has quite a harsh aftertaste \u0026ndash; not Splenda harsh, mind you, but definitely noticeable if you have something to compare it against.\nI approve of this religious tradition!\n","permalink":"https://bobcopeland.com/blog/2008/04/hfcs-fail/","summary":"\u003cp\u003eAs long as I\u0026rsquo;ve known about kosher for Passover Coke, I\u0026rsquo;ve \u003cem\u003eneeded\u003c/em\u003e it. Coca-cola made with sugar, they said, the way it used to be. I wasn\u0026rsquo;t sure I believed it existed, but I was hopeful. Last year, I dropped by the KosherMart around Seder time looking for this mythical cola, but all they had was Dr. Brown\u0026rsquo;s and kosher Diet Coke. \u0026ldquo;WTF?\u0026rdquo; I asked the clerk, but he was still unable to help me.\u003c/p\u003e","title":"HFCS Fail"},{"content":"Don\u0026rsquo;t believe anything you read on the internet today, especially this post.\n","permalink":"https://bobcopeland.com/blog/2008/04/psa-2/","summary":"\u003cp\u003eDon\u0026rsquo;t believe anything you read on the internet today, especially this post.\u003c/p\u003e","title":"PSA"},{"content":"To correct my earlier post, the kite festival is actually tomorrow, March 29, not March 28th. Our final count for # of kites between the two of us is 5. I couldn\u0026rsquo;t find a spar for #6. (Why do I have 6 kites?) Meanwhile, I still need to finish up my 10-kite rollup bag tonight.\nOn the programming front, I officially posted OMFS for kernel inclusion as I\u0026rsquo;m tired of having to make minor changes every time someone updates the VFS api. The #ifdef jungle was getting dense. So far the review hasn\u0026rsquo;t been overwhelmingly negative, so maybe this will encourage me to flesh out the remaining unimplemented features that the FUSE version has.\n","permalink":"https://bobcopeland.com/blog/2008/03/readying-for-launch/","summary":"\u003cp\u003eTo correct my earlier post, the kite festival is actually tomorrow, March 29, not March 28th. Our final count for # of kites between the two of us is 5. I couldn\u0026rsquo;t find a spar for #6. (Why do I have 6 kites?) Meanwhile, I still need to finish up my 10-kite rollup bag tonight.\u003c/p\u003e\n\u003cp\u003eOn the programming front, I officially posted OMFS for kernel inclusion as I\u0026rsquo;m tired of having to make minor changes every time someone updates the VFS api. The #ifdef jungle was getting dense. So far the review hasn\u0026rsquo;t been overwhelmingly negative, so maybe this will encourage me to flesh out the remaining unimplemented features that the FUSE version has.\u003c/p\u003e","title":"Readying for launch"},{"content":"If there was any doubt (who am I kidding) that election machine manufacturers are pure evil, check out the nastygram Ed Felten got from Sequoia. Incidentally, my home county election officials are batshit insane on this issue. Notice \u0026ldquo;[printable]\u0026rdquo; doesn\u0026rsquo;t mean \u0026ldquo;voter verifiable.\u0026rdquo; Just because they can print from it doesn\u0026rsquo;t mean they do.\n","permalink":"https://bobcopeland.com/blog/2008/03/diebold-with-a-vengance/","summary":"\u003cp\u003eIf there was any doubt (who am I kidding) that election machine manufacturers are pure evil, check out the \u003ca href=\"http://www.freedom-to-tinker.com/?p=1265\"\u003enastygram\u003c/a\u003e Ed Felten got from Sequoia. Incidentally, my home county election officials are \u003ca href=\"http://www.fairfaxcounty.gov/eb/DRE_faq.pdf\"\u003ebatshit insane\u003c/a\u003e on this issue. Notice \u0026ldquo;[printable]\u0026rdquo; doesn\u0026rsquo;t mean \u0026ldquo;voter verifiable.\u0026rdquo; Just because they can print from it doesn\u0026rsquo;t mean they do.\u003c/p\u003e","title":"Diebold: With a Vengance"},{"content":"I write dumb scripts with git! Here\u0026rsquo;s how to (slowly / automatically) remove any @SuppressWarnings annotations that don\u0026rsquo;t do anything: for i in `grep -rl @SuppressWarnings src` ; do echo $i cp $i $i.tmp grep -v \u0026quot;@SuppressWarnings\u0026quot; $i.tmp \u0026gt; $i rm $i.tmp git-commit -a -m \u0026quot;Disable warning suppressions for $i\u0026quot; ant compile \u0026gt; build.txt res=`grep \u0026quot;[javac].*error\u0026quot; build.txt || grep \u0026quot;[javac].*warning\u0026quot; build.txt` if [[ ! -z $res ]]; then echo error! git-reset --hard HEAD~1 fi done\n","permalink":"https://bobcopeland.com/blog/2008/03/brute-force-ftw/","summary":"\u003cp\u003eI write dumb scripts with git! Here\u0026rsquo;s how to (slowly / automatically) remove any @SuppressWarnings annotations that don\u0026rsquo;t do anything:\n\u003ccode\u003efor i in `grep -rl @SuppressWarnings src` ; do echo $i cp $i $i.tmp grep -v \u0026quot;@SuppressWarnings\u0026quot; $i.tmp \u0026gt; $i rm $i.tmp git-commit -a -m \u0026quot;Disable warning suppressions for $i\u0026quot; ant compile \u0026gt; build.txt res=`grep \u0026quot;[javac].*error\u0026quot; build.txt || grep \u0026quot;[javac].*warning\u0026quot; build.txt` if [[ ! -z $res ]]; then echo error! git-reset --hard HEAD~1 fi done\u003c/code\u003e\u003c/p\u003e","title":"Brute force ftw"},{"content":"I updated my resume today. I\u0026rsquo;m still not sold on the \u0026ldquo;Other Experience\u0026rdquo; section, but on the other hand, I surely learned a lot more doing that stuff than doing the job that pays the bills. It could use a better title at least.\nMy brother-in-law was visiting this weekend, helping Ange study for an upcoming difficult medicine exam. So I had lots of time to kill. I released a new version of OMFS for kernel 2.6.25, and finished up the man-eating panda kite. (He enjoys human flesh, I assure you.)\nAnd, I welcomed a new tool into the fold: a Steinel temperature controlled heat gun. This is ostensibly for pulling the tile off the wall in my bathroom, but I\u0026rsquo;m sure I can find additional uses for a hair dryer that hits 1200 degrees. I only got to spend a few minutes testing it on thinset adhesive in my bathroom, but they were an exciting few minutes. I look forward to a day or two of salvaging components from junk PCBs when I next get some free time.\n","permalink":"https://bobcopeland.com/blog/2008/03/cat/","summary":"\u003cp\u003eI updated my \u003ca href=\"/resume.html\"\u003eresume\u003c/a\u003e today. I\u0026rsquo;m still not sold on the \u0026ldquo;Other Experience\u0026rdquo; section, but on the other hand, I surely learned a lot more doing that stuff than doing the job that pays the bills. It could use a better title at least.\u003c/p\u003e\n\u003cp\u003eMy brother-in-law was visiting this weekend, helping Ange study for an upcoming difficult medicine exam. So I had lots of time to kill. I released a new version of OMFS for kernel 2.6.25, and finished up the \u003ca href=\"http://flickr.com/photos/bluesterror/2336084128/\"\u003eman-eating panda kite\u003c/a\u003e. (He enjoys human flesh, I assure you.)\u003c/p\u003e","title":"cat"},{"content":"Panda Kite Applique Originally uploaded by bluesterror\nHere\u0026rsquo;s my first kite since the Pokemon rok. The Smithsonian kite festival is on March 28 this year, and the theme is \u0026ldquo;China.\u0026rdquo; I tried, and more or less failed, to make a kite last year in time for the same event. But here we are a year on and I\u0026rsquo;ve learned a lot since then.\nThe hanzis supposedly say \u0026lsquo;China\u0026rsquo; in simplified Chinese, but really I\u0026rsquo;m just guessing. I chose a \u0026ldquo;small\u0026rdquo; (3 feet by 4 feet) sail for this one because I wanted to be able to get it mostly done in a day, which I did. It still needs hemming and framing but otherwise it\u0026rsquo;s ready to go.\nWith a couple of store-bought kites and four homemade ones, my kite bag is going to be rather full this year, so take that as an invitation to head down to the Mall and fly one for me!\n","permalink":"https://bobcopeland.com/blog/2008/03/panda-kite/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/2306645500/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm3.static.flickr.com/2267/2306645500_6161d58cba_m.jpg\"\u003e\u003c/a\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/2306645500/\"\u003ePanda Kite Applique\u003c/a\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/bluesterror/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eHere\u0026rsquo;s my first kite since the Pokemon rok. The Smithsonian kite festival is on March 28 this year, and the theme is \u0026ldquo;China.\u0026rdquo; I tried, and more or less failed, to make a kite last year in time for the same event. But here we are a year on and I\u0026rsquo;ve learned a lot since then.\u003c/p\u003e\n\u003cp\u003eThe hanzis supposedly say \u0026lsquo;China\u0026rsquo; in simplified Chinese, but really I\u0026rsquo;m just guessing. I chose a \u0026ldquo;small\u0026rdquo; (3 feet by 4 feet) sail for this one because I wanted to be able to get it mostly done in a day, which I did. It still needs hemming and framing but otherwise it\u0026rsquo;s ready to go.\u003c/p\u003e","title":"Panda Kite"},{"content":"$ strace -f ant \u0026gt; out.txt 2\u0026gt;\u0026amp;1 $ grep \u0026#34;stat.*java\u0026#34; out.txt | wc -l 32933 WTF? No wonder our build times suck. I still have yet to hear a rationale for the existence of ant that had any more substance than \u0026ldquo;but make uses tabs!\u0026rdquo;\n","permalink":"https://bobcopeland.com/blog/2008/02/why-i-hate-ant/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e$ strace -f ant \u0026gt; out.txt 2\u0026gt;\u0026amp;1\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e$ grep \u0026#34;stat.*java\u0026#34; out.txt  | wc -l\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e32933\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eWTF? No wonder our build times suck. I still have yet to hear a rationale for the existence of ant that had any more substance than \u0026ldquo;but make uses tabs!\u0026rdquo;\u003c/p\u003e","title":"Why I hate ant"},{"content":"Ed Felton et al. announced today an attack on disk encryption using the bits left in RAM. Oh noes, my poor dm-crypt partition!\n","permalink":"https://bobcopeland.com/blog/2008/02/uncrypt/","summary":"\u003cp\u003eEd Felton et al. announced today \u003ca href=\"http://www.freedom-to-tinker.com/?p=1257\"\u003ean attack on disk encryption\u003c/a\u003e using the bits left in RAM. Oh noes, my poor dm-crypt partition!\u003c/p\u003e","title":"Uncrypt"},{"content":"My Nokia 6230 apparently bit the dust last week, so if you called me, I didn\u0026rsquo;t get it. The phone no longer turns on, even with a freshly charged battery and with a new memory card. Darn. I have a crappy $40 unlocked phone on the way in the mail to tide me over until I can get something decent or fix this busted one. Anyone know when an android-capable phone is going to hit the market? Maybe it\u0026rsquo;s time to sign up with grand central\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2008/02/phoneless/","summary":"\u003cp\u003eMy Nokia 6230 apparently bit the dust last week, so if you called me, I didn\u0026rsquo;t get it. The phone no longer turns on, even with a freshly charged battery and with a new memory card. Darn. I have a crappy $40 unlocked phone on the way in the mail to tide me over until I can get something decent or fix this busted one. Anyone know when an android-capable phone is going to hit the market? Maybe it\u0026rsquo;s time to sign up with \u003ca href=\"http://www.grandcentral.com/\"\u003egrand central\u003c/a\u003e\u0026hellip;\u003c/p\u003e","title":"Phoneless"},{"content":"\nTalking Robot 2\nOriginally uploaded by bluesterror\nAngeline and I went to the KC to see the ballet last night. They are having this celebration of Japan\u0026rsquo;s \u0026ldquo;hyperculture,\u0026rdquo; whatever that means. But one thing it means is there are robots there!\nActually, the robot display is somewhat disappointing. Asimo and the trumpet player thing are there for occasional demonstrations, but they weren\u0026rsquo;t out on the floor when we were there. So, the only robots we got to see were this little yellow thing that supposedly can talk (only in Japanese, however), a small menagerie of Aibo-like toys, and the creepy \u0026ldquo;Actroid\u0026rdquo; DER2, pictured. DER2 does look somewhat realistic, actually, but you wouldn\u0026rsquo;t mistake it for a real person. You can ask it canned questions, then it will do the speech recognition stuff and say a canned response. Eye-rolling stuff such as, \u0026ldquo;I\u0026rsquo;m looking for a guy with a heart of gold and brain circuits to match!\u0026rdquo;\nStill, robots!\n","permalink":"https://bobcopeland.com/blog/2008/02/robots/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/2271089309/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm3.static.flickr.com/2192/2271089309_d4165df544_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/bluesterror/2271089309/\"\u003eTalking Robot 2\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/bluesterror/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eAngeline and I went to the KC to see the ballet last night. They are having this celebration of Japan\u0026rsquo;s \u0026ldquo;hyperculture,\u0026rdquo; whatever that means. But one thing it means is there are robots there!\u003c/p\u003e\n\u003cp\u003eActually, the robot display is somewhat disappointing. Asimo and the trumpet player thing are there for occasional demonstrations, but they weren\u0026rsquo;t out on the floor when we were there. So, the only robots we got to see were this little yellow thing that supposedly can talk (only in Japanese, however), a small menagerie of Aibo-like toys, and the creepy \u0026ldquo;Actroid\u0026rdquo; DER2, pictured. DER2 does look somewhat realistic, actually, but you wouldn\u0026rsquo;t mistake it for a real person. You can ask it canned questions, then it will do the speech recognition stuff and say a canned response. Eye-rolling stuff such as, \u0026ldquo;I\u0026rsquo;m looking for a guy with a heart of gold and brain circuits to match!\u0026rdquo;\u003c/p\u003e","title":"Robots!"},{"content":"A month or two ago I was thinking about test-driven development and what a pain it is to write test cases. Or, well, test at all for that matter. Who needs testing when you have users to do that for you?\nAt work we have this fairly complicated UI that eventually interacts with stateless session beans in the whole wizbang J2EE world. Usually, I spend most of my debugging time tickling the backend rather than fooling with the UI so all tasks of logging in, navigating windows, setting up data and so forth are just overhead.\nOne previous company I worked at had an excellent solution to automating all of that without winrunner or other similar crap: everything in the GUI created a command string that was then fed to a command parser to perform the task. You could use these command strings exactly as a script to control the app. Had a crash? Just replay the customer\u0026rsquo;s log to see the segfault.\nSo I had the rather obvious idea: use an EJB 3 interceptor with XStream to record method calls, their parameters and return values to the server logs. Later, we can execute these logs to replay all the SLSB calls and check the return values. Ta-da, we have some automated tests without even trying. Not full coverage of course, but better than nothing at all.\nAnother developer got the lucky task of implementing it, but I\u0026rsquo;ve just started using it today. Very slick. Now we just need a Lisp interpreter and an email client.\n","permalink":"https://bobcopeland.com/blog/2008/02/scripted/","summary":"\u003cp\u003eA month or two ago I was thinking about test-driven development and what a pain it is to write test cases. Or, well, test at all for that matter. Who needs testing when you have users to do that for you?\u003c/p\u003e\n\u003cp\u003eAt work we have this fairly complicated UI that eventually interacts with stateless session beans in the whole wizbang J2EE world. Usually, I spend most of my debugging time tickling the backend rather than fooling with the UI so all tasks of logging in, navigating windows, setting up data and so forth are just overhead.\u003c/p\u003e","title":"Scripted"},{"content":"I\u0026rsquo;m not sure what got me interested in assembly language as a nerdy high-schooler. It could have been the growing interest in computer graphics, at a time when you had to use assembly to get decent performance out of the machine. I remember learning tricks from much smarter people than myself, such as how to set a 256x256 pixel video mode so that you could address any pixel without ever needing to multiply. Not that you would use a multiply anyway since you can always use shifts and adds.\nI suspect, however, that part of what spurred me on was an interest in reverse-engineering, specifically to crack games. You would start BattleChess, say, and it would ask you for some move from some historical chess game in a big book before letting you play. This was to ensure that if you copied the game, that you at least also photocopied your friend\u0026rsquo;s manual. [For the record, while I cracked a few games, I never released any such cracks. More from being l4m3 than any teenage sense of ethics. I did, however, release instructions for patching the video game \u0026ldquo;Home Alone\u0026rdquo; so that you could never die. I may have been the only person on the planet to play that one all the way through.]\nIn order to crack a game, first you would load up SoftICE, a killer software debugger that would let you debug almost anything. It would let you set breakpoints on interrupts so step one was to put a breakpoint on \u0026lsquo;int 10h\u0026rsquo;. Interrupt 0x10 was a call into the video BIOS for setting up the video card. Back in the DOS days, it was the first thing every graphical program (and therefore game) did, because you started out in text mode and had to go into VGA mode. The BIOS would know how to load all the registers for that particular card; you just had to say \u0026ldquo;put me in 320x200 mode, now, thanks!\u0026rdquo; and that was via the assembly command \u0026ldquo;int 10h\u0026rdquo;.\nAfter SoftICE caught the interrupt, the screen would switch back from VGA mode into a text mode listing of assembly instructions and raw machine code hex values. I don\u0026rsquo;t think I knew what all these meant at first, but I understood \u0026lsquo;call\u0026rsquo; and \u0026lsquo;jmp\u0026rsquo;, and everything else I quickly learned from a text file describing the x86 instruction set architecture. So cracking then became a matter of just single stepping through all of these instructions, and waiting for BattleChess to get to the part where it asks you the question. Then, you start paying attention, looking for the assembly equivalent of \u0026ldquo;Is the answer right? If so, goto game! Else goto nasty message!\u0026rdquo; Some of these were harder than others, but generally it looked something like:\nmov ax, ds:[43ac] mov cx, ds:[3401] cmp ax, cx jnz 0027 You could step through it, type the wrong answer, then watch it jump to instruction number 27 which then printed out the nasty message. Then you could try again, and this time modify the code while you\u0026rsquo;re in the debugger. For example, change the jnz 0027 to a few no-ops (instructions that do nothing). Type in the wrong answer, and now it keeps on going to the game. Bingo, the game is cracked! SoftICE was such a nice debugger that I even used it for C debugging until I finally moved off of that whole DOS thing.\nAnyway, I\u0026rsquo;ll never be a Jon Johansen, but that interest in reversing stuff has stuck with me. I think that figuring out how the Karma worked, which involved many hours of pouring over hex dumps trying to come up with the pattern, was much more fun than coding the driver. Particularly when the \u0026ldquo;ah-hah!\u0026rdquo; moments would strike. Incidentally, coding the driver was/is still fun, probably more so than actually using the device.\nThis little walk down memory lane was inspired by the recent entrance of mmio-trace into my zone of consciousness. I\u0026rsquo;m not sure who used this first, but the Nouveau project has been using the utility for some time to reverse-engineer the NVidia video cards so that Linux can gain decent open source drivers. My laptop luckily has an Intel based video card, but it does have an Atheros wireless chip which also has a binary blob. There\u0026rsquo;s currently an effort to produce a reverse-engineered driver for it as well. In my case, the new driver almost worked, but I needed to come up with some other details, so I tried out mmio-trace.\nPCI cards are configured by register writes, but the driver generally has to program it to get it going. The BIOS can\u0026rsquo;t do that work for us any more. So the OS maps a region of memory that the driver can just write into, which then all gets converted magically into writes into the PCI device\u0026rsquo;s register file. Thus, MMIO=\u0026ldquo;Memory Mapped IO\u0026rdquo;, and mmio-trace does what it sounds like. Using it is rather painless, you first \u0026lsquo;hook\u0026rsquo; a module you want to capture, modprobe mmiotrace, then load the hooked module. All writes to PCI config space get captured into a debugfs file that you then run through a user-space filter. The end result is a nice report of all of the reads and writes to the registers of the PCI device. Very neat!\nOh, the driver maintainer already knew about the issue and confirmed my proposed change so hopefully by 2.6.26 ath5k will support my Macbook.\n","permalink":"https://bobcopeland.com/blog/2008/01/mmio-trace-for-fun-and-no-profit/","summary":"\u003cp\u003eI\u0026rsquo;m not sure what got me interested in assembly language as a nerdy high-schooler. It could have been the growing interest in computer graphics, at a time when you had to use assembly to get decent performance out of the machine. I remember learning tricks from much smarter people than myself, such as how to set a 256x256 pixel video mode so that you could address any pixel without ever needing to multiply. Not that you would use a multiply anyway since you can always use shifts and adds.\u003c/p\u003e","title":"mmio trace for fun and no-profit"},{"content":"Is it too much to ask of a compiler that if it decides to blare warnings at you for no reason at all, that you can turn the !@#$ thing off? In a move that rivals the stupidity of certain gcc warnings, we have this:\n[javac] file: java:519: warning: com.sun.rowset.CachedRowSetImpl is Sun proprietary API and may be removed in a future release\nWell, hey that\u0026rsquo;s a nice heads-up to give me 600 times when compiling our tree. Let me go find the non-com.sun equivalent of that. Oh wait, there isn\u0026rsquo;t one! And, the freaking javadoc even tells you to do it that way. Okay, well, maybe @SuppressWarnings({\u0026quot;deprecation\u0026quot;}) will work? Nope, haha! Sigh. Time for a wrapper script.\nRequest of persons who wish to write a better javac: can I have plugins that let me muck with the AST? Custom static checking would be nice\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2008/01/i-hate-you-sun/","summary":"\u003cp\u003eIs it too much to ask of a compiler that if it decides to blare warnings at you for no reason at all, that you can turn the !@#$ thing off? In a move that rivals the stupidity of certain gcc warnings, we have this:\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003e[javac] file: java:519: warning: com.sun.rowset.CachedRowSetImpl is Sun proprietary API and may be removed in a future release\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eWell, hey that\u0026rsquo;s a nice heads-up to give me 600 times when compiling our tree. Let me go find the non-com.sun equivalent of that. Oh wait, there isn\u0026rsquo;t one! And, the freaking javadoc even tells you to do it that way. Okay, well, maybe \u003ccode\u003e@SuppressWarnings({\u0026quot;deprecation\u0026quot;})\u003c/code\u003e will work? Nope, haha! Sigh. Time for a wrapper script.\u003c/p\u003e","title":"I hate you, Sun."},{"content":"This fascinating little tidbit (and Al\u0026rsquo;s follow-up) on debugging reminds me why I read the eternal flamewar that is LKML. Oh yeah, and I also read it for the eternal flamewar.\n","permalink":"https://bobcopeland.com/blog/2008/01/all-my-bytes-are-set-to-0x90/","summary":"\u003cp\u003eThis \u003ca href=\"http://lkml.org/lkml/2008/1/7/406\"\u003efascinating little tidbit\u003c/a\u003e (and Al\u0026rsquo;s follow-up) on debugging reminds me why I read the eternal flamewar that is LKML. Oh yeah, and I also read it for the eternal flamewar.\u003c/p\u003e","title":"All my bytes are set to 0x90"},{"content":"I am back in the country after wintering abroad. Toronto: still cold.\nWhile away I managed to get some work done on the latest installment of the Rio Karma project: a FUSE-based implementation of the \u0026ldquo;Optimized\u0026rdquo; MPEG Filesystem. This one has the advantage that it theoretically will work with the busted every-byte-swapped ReplayTV, and that it takes approximately 10% more time than the kernel driver for a given task. There still isn\u0026rsquo;t an official release because it will destroy your hard drive and wipe off the serial number so you won\u0026rsquo;t be able to replace it. Plus it gives another excuse to use git, which has finally replaced svn in my day-to-day.\nMeanwhile, work is continuing to suck, with two more people gone this week. So, I\u0026rsquo;ll be on the market shortly. I\u0026rsquo;m not sure what I want in a new job but my usual criteria apply: linuxy, interesting, not evil, and convenient commute-wise (I\u0026rsquo;m about 1 for 4 at current job). I don\u0026rsquo;t particularly care if it makes millions or not.\nNot a whole lot is going on otherwise. Santa brought us a Wii and the wife kicks my ass in tennis. Weird that no matter which controller I use, it\u0026rsquo;s always the broken one. Just like when playing soccer on the Sega in college\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2008/01/back-2/","summary":"\u003cp\u003eI am back in the country after wintering abroad. Toronto: still cold.\u003c/p\u003e\n\u003cp\u003eWhile away I managed to get some work done on the latest installment of the Rio Karma project: \u003ca href=\"http://repo.or.cz/w/omfs_fuse.git/\"\u003ea FUSE-based implementation of the \u0026ldquo;Optimized\u0026rdquo; MPEG Filesystem\u003c/a\u003e. This one has the advantage that it theoretically will work with the busted every-byte-swapped ReplayTV, and that it takes approximately 10% more time than the kernel driver for a given task. There still isn\u0026rsquo;t an official release because it will destroy your hard drive and wipe off the serial number so you won\u0026rsquo;t be able to replace it. Plus it gives another excuse to use git, which has finally replaced svn in my day-to-day.\u003c/p\u003e","title":"Back"},{"content":"\n00025.jpg\nOriginally uploaded by bluesterror\nI just received my OLPC from the \u0026ldquo;Give One Get One\u0026rdquo; program. For the uninitiated, this is the program that aims to send $100 ($200) laptops to children in undeveloped nations.\nFirst thoughts are that this is a cool little laptop. It is very light. The screen is small but has decent resolution, in the 800x600 range. The processor is an AMD Geode 400 mHZ, it\u0026rsquo;s got a gig of flash for storage, and 256 megs of RAM. It seems a tad sluggish for a machine with those specs (similar specs to my firewall at home which runs X fine), but not so slow that you couldn\u0026rsquo;t get used to it.\nThe UI is neat, running on top of Linux and I understand mostly written in python. There\u0026rsquo;s a video recording app (did I mention the thing has a camera?), word processor, browser. There\u0026rsquo;s a little python IDE with some sample programs (basic math, print Pascal\u0026rsquo;s triangle and Fibonacci numbers, etc). And a terminal where you discover that the device has vim installed but no gcc. C programmers everywhere cry.\nAll in all, it\u0026rsquo;s probably not going to work for anyone who already has a laptop, or any adult for that matter without using a USB keyboard since the keys are so small (mine is eventually going to my nephews). But I think if I got this at age 6, it would spark my imagination as much or more than the C=64. I think we\u0026rsquo;ll see a lot of computer professionals emerging from these countries in 20 years.\n(A few more pics at flickr.)\n","permalink":"https://bobcopeland.com/blog/2007/12/gave-one-got-one/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/2126173573/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm3.static.flickr.com/2164/2126173573_0fc41d6f88_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/bluesterror/2126173573/\"\u003e00025.jpg\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/bluesterror/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eI just received my OLPC from the \u0026ldquo;Give One Get One\u0026rdquo; program. For the uninitiated, this is the program that aims to send $100 ($200) laptops to children in undeveloped nations.\u003c/p\u003e\n\u003cp\u003eFirst thoughts are that this is a cool little laptop. It is very light. The screen is small but has decent resolution, in the 800x600 range. The processor is an AMD Geode 400 mHZ, it\u0026rsquo;s got a gig of flash for storage, and 256 megs of RAM. It seems a tad sluggish for a machine with those specs (similar specs to my firewall at home which runs X fine), but not so slow that you couldn\u0026rsquo;t get used to it.\u003c/p\u003e","title":"Gave One Got One"},{"content":"I made a promise to myself when Cook\u0026rsquo;s Illustrated began arriving in my mailbox: each month, I have to make at least one recipe from the latest issue. The Jan/Feb issue has an insanely simple bread recipe based on a no-knead recipe from Mark Bittman. I have used his French baguette recipe from How to Cook Everything with much success, but with this recipe, I may just leave the stand mixer in the cupboard from now on.\n2 hour cooling time? Ugh! I can\u0026rsquo;t wait to eat this.\n","permalink":"https://bobcopeland.com/blog/2007/12/bread/","summary":"\u003cp\u003eI made a promise to myself when \u003cem\u003eCook\u0026rsquo;s Illustrated\u003c/em\u003e began arriving in my mailbox: each month, I have to make at least one recipe from the latest issue. The Jan/Feb issue has an insanely simple bread recipe based on a no-knead recipe from Mark Bittman. I have used his French baguette recipe from \u003cem\u003eHow to Cook Everything\u003c/em\u003e with much success, but with this recipe, I may just leave the stand mixer in the cupboard from now on.\u003c/p\u003e","title":"Bread"},{"content":"I got my first look at Vista with Angeline\u0026rsquo;s new Thinkpad. So far, it\u0026rsquo;s not looking too good.\n","permalink":"https://bobcopeland.com/blog/2007/12/vista-ed/","summary":"\u003cp\u003eI got my first look at Vista with Angeline\u0026rsquo;s new Thinkpad. So far, it\u0026rsquo;s not looking too good.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/vista.jpg\"\u003e\u003c/p\u003e","title":"Vista-ed"},{"content":"The first snow has fallen, and so begins our inevitable slide into winter. Why does winter have to be so cold?\nI haven\u0026rsquo;t been updating this or doing many projects recently, as work has occupied my life. Over the last month or two I\u0026rsquo;ve been prepping and shipping a 6-month-late, extremely buggy software release and cleaning up the ensuing mess. Unfortunately, I saw this coming a year ago, and continue to see danger ahead: our customer has retaliated by shortening our schedule for phase 2 from six to two months. Those whose managers have never read the Mythical Man Month are doomed to repeat it. Well, it\u0026rsquo;s about time to start taking off the month of vacation time that I\u0026rsquo;ve stowed away.\n","permalink":"https://bobcopeland.com/blog/2007/12/december-update/","summary":"\u003cp\u003eThe first snow has fallen, and so begins our inevitable slide into winter. Why does winter have to be so cold?\u003c/p\u003e\n\u003cp\u003eI haven\u0026rsquo;t been updating this or doing many projects recently, as work has occupied my life. Over the last month or two I\u0026rsquo;ve been prepping and shipping a 6-month-late, extremely buggy software release and cleaning up the ensuing mess. Unfortunately, I saw this coming a year ago, and continue to see danger ahead: our customer has retaliated by shortening our schedule for phase 2 from six to two months. Those whose managers have never read the Mythical Man Month are doomed to repeat it. Well, it\u0026rsquo;s about time to start taking off the month of vacation time that I\u0026rsquo;ve stowed away.\u003c/p\u003e","title":"December update"},{"content":"It\u0026rsquo;s been a while since I\u0026rsquo;ve seen a good band. Well, not too long ago \u0026ndash; we saw Los Lonely Boys in Honolulu during our honeymoon. I meant to write that up, but what more is there to say than they are a capable cross between Santana and SRV? Anyway, the fact remains that I\u0026rsquo;ve seen many fewer shows this year than in recent times.\nThat is why when I saw that John Patitucci is playing tomorrow night with a 3 piece including the most frickin\u0026rsquo; awesome drummer alive, Brian Blade, for only $25 at the Kennedy Center, I had to grab a pair of tickets. (The KC has a jazz club? Who knew?) Patitucci is most well-known as the bass player for various incarnations of Chick Corea bands, and if he doesn\u0026rsquo;t set the crowd ablaze, I\u0026rsquo;m sure Blade will.\n","permalink":"https://bobcopeland.com/blog/2007/11/patitucci-kc-930/","summary":"\u003cp\u003eIt\u0026rsquo;s been a while since I\u0026rsquo;ve seen a good band. Well, not too long ago \u0026ndash; we saw Los Lonely Boys in Honolulu during our honeymoon. I meant to write that up, but what more is there to say than they are a capable cross between Santana and SRV? Anyway, the fact remains that I\u0026rsquo;ve seen many fewer shows this year than in recent times.\u003c/p\u003e\n\u003cp\u003eThat is why when I saw that John Patitucci is playing tomorrow night with a 3 piece including the most frickin\u0026rsquo; awesome drummer alive, Brian Blade, for only $25 at the Kennedy Center, I had to grab a pair of tickets. (The KC has a jazz club? Who knew?) Patitucci is most well-known as the bass player for various incarnations of Chick Corea bands, and if he doesn\u0026rsquo;t set the crowd ablaze, I\u0026rsquo;m sure Blade will.\u003c/p\u003e","title":"Patitucci @ KC 9:30"},{"content":" Joe and Jessica can throw a good costume party. As we did 2 years ago, Angeline and I hit up the toons for inspiration. This time we went as Dora the Explorer and Go, Diego, Go!, respectively. Who were just as obscure as Venture Bros. to everyone in attendance. Oh well.\nI didn\u0026rsquo;t do as much engineering with this one as I did with the Monarch costume, but I did do some craft work: I replaced the black strap on a $10 messenger bag with an orange strap, hemmed Dora\u0026rsquo;s shorts which were originally jogging pants (yay for my new sewing abilities), and spent an hour or so drawing out the logo for the button to the right in Inkscape. I only saw the logo for a brief period at Toys \u0026lsquo;R Us and then worked from a really low res bitmap, so I was particularly pleased with how that last bit turned out.\nI only saw it in pictures, but I think Jerome\u0026rsquo;s baby in a pot costume was the best there.\n","permalink":"https://bobcopeland.com/blog/2007/10/halloweekend/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/1796374241/\" title=\"Photo Sharing\"\u003e\u003cimg alt=\"Dora and Diego\" loading=\"lazy\" src=\"http://farm3.static.flickr.com/2255/1796374241_aa7e1cb979_m.jpg\"\u003e\u003c/a\u003e Joe and Jessica can throw a good costume party. As we did 2 years ago, Angeline and I hit up the toons for inspiration. This time we went as Dora the Explorer and Go, Diego, Go!, respectively. Who were just as obscure as Venture Bros. to everyone in attendance. Oh well.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/1796048395/\" title=\"Photo Sharing\"\u003e\u003cimg alt=\"Diego button\" loading=\"lazy\" src=\"http://farm3.static.flickr.com/2278/1796048395_660917651b_m.jpg\"\u003e\u003c/a\u003e I didn\u0026rsquo;t do as much engineering with this one as I did with the Monarch costume, but I did do some craft work: I replaced the black strap on a $10 messenger bag with an orange strap, hemmed Dora\u0026rsquo;s shorts which were originally jogging pants (yay for my new sewing abilities), and spent an hour or so drawing out the logo for the button to the right in Inkscape. I only saw the logo for a brief period at Toys \u0026lsquo;R Us and then worked from a really low res bitmap, so I was particularly pleased with how that last bit turned out.\u003c/p\u003e","title":"Halloweekend"},{"content":"Frommer\u0026rsquo;s and Let\u0026rsquo;s Go! were our guide books to the foodie destinations on the islands. By the way, I hate that term, foodie. Anyway, we tried to hit some of the nicer restaurants as well as experience some local flavor. We also tried to take pictures of all of the food, though people looked at us funny.\nIn the latter category, saimin (similar to ramen noodles) was highly recommended by both guides. Hamura\u0026rsquo;s in Lihu\u0026rsquo;e, was definitely a locals spot; we stuck out like a pair of sore sunburned thumbs. The bowls come with a piece of fish, an egg, some random bits of greenery, and a couple of wontons. The food was great as these things go, though I prefer dry food to wet. I added a pair of satays to the mix that were excellent. Also a local Lihu\u0026rsquo;e haunt, The Deli and Bread Connection served up some mighty fine sandwiches. This was the only place we visited twice, so that says something.\nOn the pricier side, there was Ciao Mein, the strange mix of Asian and Italian food that had us eating risotto with chopsticks. Best word to describe this is \u0026ldquo;Wha?\u0026rdquo; They did sauce a decent chicken though.\nKeo\u0026rsquo;s is a Thai restaurant in Waikiki. Here I had perhaps the best pork chop I\u0026rsquo;ve ever had. The more typical Asian fare looked good as well.\nOur two best meals were actually at a chain restaurant. Sorry local establishments, but McDonald\u0026rsquo;s just knows how to make awesome fries. Ok, scratch that \u0026ndash; they were actually at Roy\u0026rsquo;s Restaurant, which declares itself a practitioner of \u0026ldquo;Hawaiian fusion cuisine,\u0026rdquo; whatever that is. But they can cook the hell out of a fish. And steak. And BBQ ribs. The Waikiki location was so good we had to try the Poipu one too. Which wasn\u0026rsquo;t quite as good, but it still beat the pants off of a lot of the resort restaurants.\nAnd we ate lots and lots of ahi. Raw, seared, maki rolls, nut crusted, peppercorn crusted\u0026hellip; any way that it could be prepared, I think we ate it.\n","permalink":"https://bobcopeland.com/blog/2007/10/hawaiian-eats/","summary":"\u003cp\u003eFrommer\u0026rsquo;s and Let\u0026rsquo;s Go! were our guide books to the foodie destinations on the islands. By the way, I hate that term, \u003cem\u003efoodie\u003c/em\u003e. Anyway, we tried to hit some of the nicer restaurants as well as experience some local flavor. We also tried to take pictures of all of the food, though people looked at us funny.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/rosewater0304/1471043449/\" title=\"Photo Sharing\"\u003e\u003cimg alt=\"00162.jpg\" loading=\"lazy\" src=\"http://farm2.static.flickr.com/1236/1471043449_1951bd43da_t.jpg\"\u003e\u003c/a\u003e In the latter category, saimin (similar to ramen noodles) was highly recommended by both guides. Hamura\u0026rsquo;s in Lihu\u0026rsquo;e, was definitely a locals spot; we stuck out like a pair of sore sunburned thumbs. The bowls come with a piece of fish, an egg, some random bits of greenery, and a couple of wontons. The food was great as these things go, though I prefer dry food to wet. I added a pair of satays to the mix that were excellent. Also a local Lihu\u0026rsquo;e haunt, The Deli and Bread Connection served up some mighty fine sandwiches. This was the only place we visited twice, so that says something.\u003c/p\u003e","title":"Hawaiian Eats"},{"content":"I\u0026rsquo;m married now, woot! Angeline and I were wed in a quick ceremony in Rockville with 80 of our closest friends and family. I\u0026rsquo;m so lucky! I feel so grown up.\nWe\u0026rsquo;ve spent the last week on Oahu, and today we\u0026rsquo;re hopping on a plane to go visit Kauai for a week. Also, this marks the last day of free hotel internet, so I guess I might as well blog a note or two.\nOur hotel is situated right on Waikiki Beach. I would definitely stay at this spot again - it\u0026rsquo;s extremely convenient to plenty of dining options and, while not the largest beach on the island, Waikiki Beach has plenty of charm. At this time of year it\u0026rsquo;s not too terribly crowded.\nWhile here we climbed Diamond Head (a former volcano crater with excellent views of Waikiki), visited the Polynesian Culture Center for a luau, circumnavigated the island, visited a pineapple plantation, went swimming near the Banzai Pipeline (non-existent at this time of year), ate some incredible meals, and just generally relaxed. One of the coolest things was snorkeling in Hanauma Bay, where we saw a large sea turtle eating algae off of a rock. We were close enough that we could reach out and touch him, if that weren\u0026rsquo;t frowned upon by the park service.\nIt\u0026rsquo;s actually a bit too windy here to fly the kites, especially since I left my 150 lb line at home. I may try to fly my eddy this week on Kauai even so.\n","permalink":"https://bobcopeland.com/blog/2007/09/greetings-from-hawaii/","summary":"\u003cp\u003eI\u0026rsquo;m married now, woot! Angeline and I were wed in a quick ceremony in Rockville with 80 of our closest friends and family. I\u0026rsquo;m so lucky! I feel so grown up.\u003c/p\u003e\n\u003cp\u003eWe\u0026rsquo;ve spent the last week on Oahu, and today we\u0026rsquo;re hopping on a plane to go visit Kauai for a week. Also, this marks the last day of free hotel internet, so I guess I might as well blog a note or two.\u003c/p\u003e","title":"Greetings from Hawaii"},{"content":"Anyone who has been looking at my flickr feed has seen that I\u0026rsquo;ve had another kite in the works for the last couple of months. I\u0026rsquo;ve had this particular one in mind for a while but didn\u0026rsquo;t quite have the sewing skills to pull it off until now. So, I present, the Snorlax rokkaku: To build this, first, I stole a graphic off of Wikipedia and re-drew it in Inkscape, so that I\u0026rsquo;d have a vector version to work with. I saved an EPS version of the image then used the poster program in Linux to print it out, scaled way up, on regular letter size paper with cut and paste margins. After assembling all of the individual pieces of paper together into one huge image, I placed it on my glass coffee table, put black ripstop nylon on top, and a lamp under the table, so that I could then trace it with a white fabric pencil.\nNext, I layered several large sheets of ripstop nylon: white on bottom, turquoise, gray, and the black which had the tracing of the design on top. I sewed zigzags along all of the lines, then cut out layers of ripstop from the front and back until the appropriate color was left. Finally, I added triangular panels of RSN for the top and bottom of the kite, hemmed the whole thing, and added spar pockets and reinforcements. I sparred it with carbon rods - SkyShark P400 center spar and a pair of P200s or P300s for the spreaders (I have both for varying wind conditions).\nNow the rationale: I wanted to finish this one in time for our honeymoon, as Snorlax is something of a mascot for Angeline. At least, that\u0026rsquo;s what she got when she did the \u0026lsquo;which Pokemon are you?\u0026rsquo; quiz (Keirsey has nothing on the internets). We don\u0026rsquo;t really know anything about the Snorlaxi but it seemed like the perfect cartoon to put on this rok, and now Angeline has her own kite to fly when I\u0026rsquo;m putting up my della porta in Hawaii!\n","permalink":"https://bobcopeland.com/blog/2007/09/pokemon-rokkaku/","summary":"\u003cp\u003eAnyone who has been looking at my flickr feed has seen that I\u0026rsquo;ve had another kite in the works for the last couple of months. I\u0026rsquo;ve had this particular one in mind for a while but didn\u0026rsquo;t quite have the sewing skills to pull it off until now. So, I present, the Snorlax rokkaku:\n\u003ca href=\"http://www.flickr.com/photos/bluesterror/842501866/\" title=\"Photo Sharing\"\u003e\u003cimg alt=\"Part of a foot\" loading=\"lazy\" src=\"http://farm2.static.flickr.com/1227/842501866_9e2ddd143c_t.jpg\"\u003e\u003c/a\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/842501896/\" title=\"Photo Sharing\"\u003e\u003cimg alt=\"Assembled drawing\" loading=\"lazy\" src=\"http://farm2.static.flickr.com/1032/842501896_38e6a3c06a_t.jpg\"\u003e\u003c/a\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/933756591/\" title=\"Photo Sharing\"\u003e\u003cimg alt=\"Partial appliquÃ©\" loading=\"lazy\" src=\"http://farm2.static.flickr.com/1066/933756591_2e5324e141_t.jpg\"\u003e\u003c/a\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/1014344876/\" title=\"Photo Sharing\"\u003e\u003cimg alt=\"Snorlax Applique\" loading=\"lazy\" src=\"http://farm2.static.flickr.com/1427/1014344876_d398b15c8c_t.jpg\"\u003e\u003c/a\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/1306026981/\" title=\"Photo Sharing\"\u003e\u003cimg alt=\"Ange and Kite\" loading=\"lazy\" src=\"http://farm2.static.flickr.com/1244/1306026981_07c7d93968_t.jpg\"\u003e\u003c/a\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/1306052591/\" title=\"Photo Sharing\"\u003e\u003cimg alt=\"Snorlax in flight\" loading=\"lazy\" src=\"http://farm2.static.flickr.com/1319/1306052591_2c776d12ef_t.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e","title":"Pokemon Rokkaku"},{"content":"`From: privacymanager@bestbuy.com\nBob said: Someone signed my email address up for reward zone program and it wasn\u0026rsquo;t me. Please remove it, thanks. Bob, I am Chazy with Best Buy Customer Care. Thank your for contacting Best Buy about your Reward Zone account. I will be more than glad to assist you. I am pleased to inform you that in order to provide the best service possible, we will need more information from you. Please reply to this email with your full name, mailing address and phone number so we can find your Reward Zone account. Please do not hesitate to contact us with any questions or concerns. We look forward to your next visit to one of our stores or to www.BestBuy.com. Thank you, Chazy Best Buy Customer Care Team\nYeah... I\u0026#39;ll get right on that, guy. I\u0026#39;m pleased to inform you that you are a moron. ","permalink":"https://bobcopeland.com/blog/2007/08/best-buy-is-dumb/","summary":"\u003cp\u003e`From: \u003ca href=\"mailto:privacymanager@bestbuy.com\"\u003eprivacymanager@bestbuy.com\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eBob said:\nSomeone signed my email address up for reward zone program and it wasn\u0026rsquo;t\nme.  Please remove it, thanks.\nBob,\nI am Chazy with Best Buy Customer Care.\nThank your for contacting Best Buy about your Reward Zone account. I\nwill be more than glad to assist you.\nI am pleased to inform you that in order to provide the best service\npossible, we will need more information from you.  Please reply to this\nemail with your full name, mailing address and phone number so we can\nfind your Reward Zone account.\nPlease do not hesitate to contact us with any questions or concerns. We\nlook forward to your next visit to one of our stores or to\n\u003ca href=\"https://www.BestBuy.com\"\u003ewww.BestBuy.com\u003c/a\u003e.\nThank you,\nChazy\nBest Buy Customer Care Team\u003c/p\u003e\n\u003c/blockquote\u003e","title":"Best Buy is dumb"},{"content":"We\u0026rsquo;re down to 31 days until the wedding, and pretty much everything is done, modulo the odd vendor meeting, dance lesson, and so forth. We have also sent sharp sticks by way of courier to the invitees who haven\u0026rsquo;t sent their cards in yet. *Poke!*\n","permalink":"https://bobcopeland.com/blog/2007/08/t-minus-1-month/","summary":"\u003cp\u003eWe\u0026rsquo;re down to 31 days until the wedding, and pretty much everything is done, modulo the odd vendor meeting, dance lesson, and so forth. We have also sent sharp sticks by way of courier to the invitees who haven\u0026rsquo;t sent their cards in yet. *Poke!*\u003c/p\u003e","title":"T-minus 1 month"},{"content":"I was thumbing through Joel Spolsky\u0026rsquo;s new book on hiring talented programmers at the bookstore the other day. He asserts in the first chapters that great programmers are ten times more productive than bad ones. Could that be true? I played around with git today to generate statistics to see how it looks on our refactoring project this year:\nuser commits files changed LOC added LOC deleted dev0: 453 4258 +81538 -100344 dev1: 152 2297 +54462 -45343 dev2: 104 550 +24779 -17475 dev3: 82 250 +6465 -7852 dev4: 73 209 +3920 -2782 dev5: 56 208 +5158 -10049 dev6: 24 116 +3297 -7823 Wow. Of course KLOC isn\u0026rsquo;t everything, but take it on faith that dev4 causes more problems than he solves (dev5,6 were only on the project a short time), and that dev0 is the most awesome programmer that writes on this blog. And I thought surfing the web 7 hours a day was too much\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2007/08/im-a-slacker/","summary":"\u003cp\u003eI was thumbing through Joel Spolsky\u0026rsquo;s new book on hiring talented programmers at the bookstore the other day. He asserts in the first chapters that great programmers are \u003cem\u003eten times\u003c/em\u003e more productive than bad ones. Could that be true? I played around with git today to generate statistics to see how it looks on our refactoring project this year:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003euser    commits   files changed  LOC added  LOC deleted\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003edev0:       453            4258     +81538      -100344\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003edev1:       152            2297     +54462       -45343\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003edev2:       104             550     +24779       -17475\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003edev3:        82             250      +6465        -7852\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003edev4:        73             209      +3920        -2782\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003edev5:        56             208      +5158       -10049\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003edev6:        24             116      +3297        -7823\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eWow. Of course KLOC isn\u0026rsquo;t everything, but take it on faith that dev4 causes more problems than he solves (dev5,6 were only on the project a short time), and that dev0 is the most awesome programmer that writes on this blog. And I thought surfing the web 7 hours a day was too much\u0026hellip;\u003c/p\u003e","title":"I'm a slacker"},{"content":" Dear Windows,\nIf you feel the need to download printer drivers at 3 AM, please don\u0026rsquo;t announce it by playing cutesy chimes. People are trying to sleep ya know? That goes double if the chime is just to announce a prompt to ask you if you want to search for updated printer drivers.\nIn other news, I\u0026rsquo;ve been using git at work a lot lately. There\u0026rsquo;s a steep learning curve and it took three tries to convince me that git is better than (version control of the day), but once I grokked it, I was hooked. So many hours have been lost waiting for subversion to show commit logs or perform commits. Also, I\u0026rsquo;m going back and forth to my laptop without being able to connect the latter to the network, so git-bundle and git-svn are much better than my previous solution of extensive use of patch(1). Branching and merging is so easy that I invent excuses to do them.\n","permalink":"https://bobcopeland.com/blog/2007/08/wake-up/","summary":"\u003cblockquote\u003e\n\u003cp\u003eDear Windows,\u003c/p\u003e\n\u003cp\u003eIf you feel the need to download printer drivers at 3 AM, please don\u0026rsquo;t announce it by playing cutesy chimes. People are trying to sleep ya know? That goes double if the chime is just to announce a prompt to ask you if you want to search for updated printer drivers.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eIn other news, I\u0026rsquo;ve been using git at work a lot lately. There\u0026rsquo;s a steep learning curve and it took three tries to convince me that git is better than (version control of the day), but once I grokked it, I was hooked. So many hours have been lost waiting for subversion to show commit logs or perform commits. Also, I\u0026rsquo;m going back and forth to my laptop without being able to connect the latter to the network, so git-bundle and git-svn are much better than my previous solution of extensive use of patch(1). Branching and merging is so easy that I invent excuses to do them.\u003c/p\u003e","title":"Wake up!"},{"content":"\nBuzz\nOriginally uploaded by bluesterror\nIt\u0026rsquo;s like those bees with dogs in their lap, and when they stand up they shoot dogs at you?\nFrom my camera phone.\n","permalink":"https://bobcopeland.com/blog/2007/07/buzz/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/bluesterror/901339910/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm2.static.flickr.com/1183/901339910_41479fba30_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/bluesterror/901339910/\"\u003eBuzz\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/bluesterror/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eIt\u0026rsquo;s like those bees with dogs in their lap, and when they stand up they shoot dogs at you?\u003c/p\u003e\n\u003cp\u003eFrom my camera phone.\u003c/p\u003e","title":"Buzz"},{"content":"Sometimes I look at a long Unix pipeline and think, \u0026ldquo;I should do this in perl.\u0026rdquo; Other times, it is, \u0026ldquo;I bet I can do this all in sed.\u0026rdquo; So, here\u0026rsquo;s how to print just the lines of a file following a successful match in sed:\nsed -n \u0026#39;:s; /^regexp$/{b l}; n; b s; :l; p; n; b l\u0026#39; file.txt Lazyweb, is there a shorter way?\n","permalink":"https://bobcopeland.com/blog/2007/07/sed/","summary":"\u003cp\u003eSometimes I look at a long Unix pipeline and think, \u0026ldquo;I should do this in perl.\u0026rdquo; Other times, it is, \u0026ldquo;I bet I can do this all in sed.\u0026rdquo; So, here\u0026rsquo;s how to print just the lines of a file following a successful match in sed:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003esed -n \u0026#39;:s; /^regexp$/{b l}; n; b s; :l; p; n; b l\u0026#39; file.txt\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eLazyweb, is there a shorter way?\u003c/p\u003e","title":"sed"},{"content":"I suppose I must make a blog entry this month so that I do not get logged out for inactivity. Like the blog, I have let the projects slide lately. I have a half-drawn schematic sitting in Eagle and a new kite in the design phase, but I haven\u0026rsquo;t hit these particular projects too hard. How have I been spending the last month, then? Here\u0026rsquo;s how:\nWorking. Yay for compulsory overtime.\nTeaching myself Spanish. I don\u0026rsquo;t know why.\nVarious wedding things. Invites are in the mail.\nGoing to a baseball game.\nGuessing the plots of Sherlock Holmes stories after reading the first two pages.\nBeing unmotivated to do other stuff.\nAngeline and I had engagement photos taken and we got a couple of proofs back. Check out the one I put one on the website.\n","permalink":"https://bobcopeland.com/blog/2007/07/july/","summary":"\u003cp\u003eI suppose I must make a blog entry this month so that I do not get logged out for inactivity. Like the blog, I have let the projects slide lately. I have a half-drawn schematic sitting in Eagle and a new kite in the design phase, but I haven\u0026rsquo;t hit these particular projects too hard. How have I been spending the last month, then? Here\u0026rsquo;s how:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eWorking. Yay for compulsory overtime.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eTeaching myself Spanish. I don\u0026rsquo;t know why.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eVarious wedding things. Invites are in the mail.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eGoing to a baseball game.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eGuessing the plots of Sherlock Holmes stories after reading the first two pages.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eBeing unmotivated to do other stuff.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e","title":"July"},{"content":"\nGibson pocket sled\nOriginally uploaded by bluesterror\nContinuing with the dumb projects, here is my latest kite, a pocket sled (so called because you can fold it up into your pocket) with a Gibson guitar logo appliquÃ©d onto the front. Mostly I was just practicing some complicated sewing here rather than shooting for the end product, but it came out well enough. I might tackle a large kite bag next, and then perhaps the big rokkaku I have been planning for a while. Or maybe another practice kite.\nOh, I\u0026rsquo;m going to hotlanta this weekend to make up some BBQ with the relatives. I think this is my favorite new family tradition. Pork!\n","permalink":"https://bobcopeland.com/blog/2007/06/gibson-pocket-sled/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/539888104/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm2.static.flickr.com/1368/539888104_b759e14e5b_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/539888104/\"\u003eGibson pocket sled\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eContinuing with the dumb projects, here is my latest kite, a pocket sled (so called because you can fold it up into your pocket) with a Gibson guitar logo appliquÃ©d onto the front. Mostly I was just practicing some complicated sewing here rather than shooting for the end product, but it came out well enough. I might tackle a large kite bag next, and then perhaps the big rokkaku I have been planning for a while. Or maybe another practice kite.\u003c/p\u003e","title":"Gibson pocket sled"},{"content":"I\u0026rsquo;m killing time in the Toronto airport after having spent the last couple of days visiting with Angeline\u0026rsquo;s family while she and her sister and brother-in-law are here for an endocrinology conference. All in all it was a great trip if too short \u0026ndash; I had a nice time playing with Angeline\u0026rsquo;s nephews, drinking beers with Sameer, and wandering the city on my own whenever I had unscheduled free time.\nRather than bore with details, here are some of my general ugly-american impressions of the city from my fourth visit:\nToronto wants to be NYC it seems, but I have to say that I find TO more enjoyable than its stateside counterpart. Perhaps it\u0026rsquo;s the general lack of rudeness.\nEvery Canadian knows every famous Canadian. This is because every time Alex Trebek, say, is mentioned on Canadian TV, they say, \u0026ldquo;oh by the way, Alex Trebek is from Canada!\u0026rdquo;\nIn Toronto, the movie \u0026ldquo;13th Floor\u0026rdquo; was called \u0026ldquo;2nd Floor,\u0026rdquo; because in some buildings only non-prime numbers that start with \u0026lsquo;S\u0026rsquo; are considered lucky. Okay that\u0026rsquo;s a lie, but the elevator in Angeline\u0026rsquo;s brother\u0026rsquo;s condo really takes number skipping to an extreme.\nThere\u0026rsquo;s a store called \u0026lsquo;Bowring Canadiana\u0026rsquo; which I pronounce \u0026ldquo;boring\u0026rdquo; in my head and I giggle to myself\nLots of US brands here have different names than in Canada. I saw a commercial that said, \u0026ldquo;It\u0026rsquo;s not delivery, it\u0026rsquo;s Delissio!\u0026rdquo; And it makes me wonder if DiGiorno is the name of a Canadian serial killer or something. You know, it\u0026rsquo;s the little things, le big mac, and so on.\nMeals:\nbest: eggs, bacon, potatoes, crepes, cantaloupe, pineapple, strawberry and two pieces of toast at Cora\u0026rsquo;s which I found serendipitously a few blocks from the hotel\nworst: Ritz Caribbean, which had jerk chicken for $3.99 CDN. Cheap and edible, but the pointyness of the jerk-flavored chicken bones was somehow off-putting.\ntrendiest: SushiTrain on Yonge, where Angeline and I split four maki rolls and a pair of nigiri. The Japanese-modern decor blended well with the dance music overhead and the tasty fusion style offerings. Place was dead on a Saturday night though.\nbest deal: danish and (harsh) OJ for $2.68 at the airport Tim Horton\u0026rsquo;s. Same would cost $8 at Charbucks.\nI am looking forward to a nice nap when I touchdown in DC in a few hours.\n","permalink":"https://bobcopeland.com/blog/2007/06/toronto/","summary":"\u003cp\u003eI\u0026rsquo;m killing time in the Toronto airport after having spent the last couple of days visiting with Angeline\u0026rsquo;s family while she and her sister and brother-in-law are here for an endocrinology conference. All in all it was a great trip if too short \u0026ndash; I had a nice time playing with Angeline\u0026rsquo;s nephews, drinking beers with Sameer, and wandering the city on my own whenever I had unscheduled free time.\u003c/p\u003e","title":"Toronto"},{"content":"\nArduino POV\nOriginally uploaded by bluesterror\nSince everyone else is doing it, I decided to hack together my own persistence of vision thing this evening. This is a circuit where you have a single vertical line of LEDs, but if you turn the LEDs on and off fast enough and wave them around, your eyes are fooled into seeing complete letters. It only took about 20 minutes to write the C code to load up onto my trusty ATmega8, then I used a camera with a long shutter period to take the picture to the right.\nI realize my blog has devolved into Bob\u0026rsquo;s Dumb Project Of The Week lately. I\u0026rsquo;ll have to work on that. Lots of travel is coming my way soon: Toronto this next weekend, Atlanta in three weeks, and Warrenton, VA somewhere in between. I shall report on them soon enough.\n","permalink":"https://bobcopeland.com/blog/2007/05/arduino-pov/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/519140194/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm1.static.flickr.com/223/519140194_f0aebe20c4_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/519140194/\"\u003eArduino POV\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eSince everyone else is doing it, I decided to hack together my own persistence of vision thing this evening. This is a circuit where you have a single vertical line of LEDs, but if you turn the LEDs on and off fast enough and wave them around, your eyes are fooled into seeing complete letters. It only took about 20 minutes to write the C code to load up onto my trusty ATmega8, then I used a camera with a long shutter period to take the picture to the right.\u003c/p\u003e","title":"Arduino POV"},{"content":"\nArduino Clock\nOriginally uploaded by bluesterror.\nI spent part of yesterday and today assembling this monster of a digital clock. The brains behind it, like my previous project, is a Dallas RTC chip; the rest is just microcontroller glue to read the time over the bus and write the hours and minutes to a quartet of seven segment decoders. The arduino microcontroller board can run off of a 9V battery so this assembly is portable, like the, er, $0.50 worth of electronics that are in your wristwatch.\nAngeline had a good question for which I didn\u0026rsquo;t have an entirely satisfactory answer: \u0026ldquo;Why?\u0026rdquo;\n","permalink":"https://bobcopeland.com/blog/2007/05/arduino-clock/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/497043598/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm1.static.flickr.com/212/497043598_26cba24181_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/497043598/\"\u003eArduino Clock\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eI spent part of yesterday and today assembling this monster of a digital clock. The brains behind it, like my previous project, is a Dallas RTC chip; the rest is just microcontroller glue to read the time over the bus and write the hours and minutes to a quartet of seven segment decoders. The arduino microcontroller board can run off of a 9V battery so this assembly is portable, like the, er, $0.50 worth of electronics that are in your wristwatch.\u003c/p\u003e","title":"Arduino Clock"},{"content":"Last Monday I attended an ACM lecture featuring Brian \u0026ldquo;Zapp\u0026rdquo; Kernighan, coiner of the name \u0026ldquo;Unix,\u0026rdquo; the \u0026lsquo;K\u0026rsquo; in awk, as well as the \u0026lsquo;K\u0026rsquo; in K\u0026amp;R. The gray-haired professor reminisced about the golden days sitting across from Ken Thompson\u0026rsquo;s and Dennis Ritchie\u0026rsquo;s desk (Ritchie is a slob of the first order). The salient points: make software more simple, avoid the second system effect (as in Multics), and find a small group of talented guys and start a revolution (probably not in operating systems). In other words, a pretty good summary of The Mythical Man Month.\nA bunch of nerds got him to sign their copies of The C Programming Language. It was sad.\n","permalink":"https://bobcopeland.com/blog/2007/05/brian-k/","summary":"\u003cp\u003eLast Monday I attended an ACM lecture featuring Brian \u0026ldquo;Zapp\u0026rdquo; Kernighan, coiner of the name \u0026ldquo;Unix,\u0026rdquo; the \u0026lsquo;K\u0026rsquo; in awk, as well as the \u0026lsquo;K\u0026rsquo; in K\u0026amp;R. The gray-haired professor reminisced about the golden days sitting across from Ken Thompson\u0026rsquo;s and Dennis Ritchie\u0026rsquo;s desk (Ritchie is a slob of the first order). The salient points: make software more simple, avoid the second system effect (as in Multics), and find a small group of talented guys and start a revolution (probably not in operating systems). In other words, a pretty good summary of \u003cem\u003eThe Mythical Man Month\u003c/em\u003e.\u003c/p\u003e","title":"Brian K"},{"content":"\nDella Porta in Flight\nOriginally uploaded by bluesterror.\nAC and I went down to the Washington Monument grounds to try out the kite today, on a lovely sunny, breezy day. It took a few adjustments of the bridle to get the thing aloft, and the tail kept getting tangled up, but once I had it figured out it took up all of my line and was still pulling pretty hard. Quite a nice sense of accomplishment to see what began as a couple of rolls of nylon actually fly and not look half bad.\n","permalink":"https://bobcopeland.com/blog/2007/04/della-porta-in-flight/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/477489297/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm1.static.flickr.com/170/477489297_fcf96c337e_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/477489297/\"\u003eDella Porta in Flight\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eAC and I went down to the Washington Monument grounds to try out the kite today, on a lovely sunny, breezy day. It took a few adjustments of the bridle to get the thing aloft, and the tail kept getting tangled up, but once I had it figured out it took up all of my line and was still pulling pretty hard. Quite a nice sense of accomplishment to see what began as a couple of rolls of nylon actually fly and not look half bad.\u003c/p\u003e","title":"Della Porta in Flight"},{"content":"\nFancy Stripes Cont.\nOriginally uploaded by bluesterror.\nI\u0026rsquo;ve made more progress on the Della Porta. The sail is now complete, after sewing each of the 16 panels to its neighbors, first with a 1/4\u0026quot; straight seam on the back and then with a zig-zag stitch over the good side. I only had to use the seam ripper\u0026hellip; oh, let\u0026rsquo;s call it less than a hundred times. On to step 3\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2007/04/fancy-stripes-cont/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/463496455/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm1.static.flickr.com/219/463496455_371a8ed62f_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/463496455/\"\u003eFancy Stripes Cont.\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eI\u0026rsquo;ve made more progress on the Della Porta. The sail is now complete, after sewing each of the 16 panels to its neighbors, first with a 1/4\u0026quot; straight seam on the back and then with a zig-zag stitch over the good side. I only had to use the seam ripper\u0026hellip; oh, let\u0026rsquo;s call it less than a hundred times. On to step 3\u0026hellip;\u003c/p\u003e","title":"Fancy Stripes Cont."},{"content":"\nFancy stripes\nOriginally uploaded by bluesterror.\nI started work on another kite this week. This time I\u0026rsquo;m following a plan, one of the howtos over on kitebuilder.com. Hopefully, my much improved sewing skills coupled with some RTFM-ing will lead to more success in this venture. The pattern is from a quilting block called \u0026lsquo;Fancy Stripes\u0026rsquo; and should be about 3\u0026rsquo; by 4\u0026rsquo; when completed.\n","permalink":"https://bobcopeland.com/blog/2007/04/fancy-stripes/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/456176247/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm1.static.flickr.com/181/456176247_403e3fb603_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/456176247/\"\u003eFancy stripes\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eI started work on another kite this week. This time I\u0026rsquo;m following a plan, one of the howtos over on \u003ca href=\"http://kitebuilder.com/\"\u003ekitebuilder.com\u003c/a\u003e. Hopefully, my much improved sewing skills coupled with some RTFM-ing will lead to more success in this venture. The pattern is from a quilting block called \u0026lsquo;Fancy Stripes\u0026rsquo; and should be about 3\u0026rsquo; by 4\u0026rsquo; when completed.\u003c/p\u003e","title":"Fancy stripes"},{"content":"I officially opened the 10 month grill season last weekend. The only thing worse than doing the propane exchange rigamarole at Home Depot: doing the exchange at Home Depot, getting handed an empty tank, looking at the guy funny but assuming he knows what he\u0026rsquo;s doing (after all that\u0026rsquo;s his job), going home to verify that yes, the new tank is empty, and going back to try to find someone who cares so you can finally take the new tank home and cook with it because it\u0026rsquo;s now 4pm and you haven\u0026rsquo;t had lunch yet.\nOne nice thing about amateur home cooking is that you can create that which you cannot find in a restaurant. In my case: I made fajitas with one of the several filet mignons in my freezer. You may say that is silly to use such an expensive cut of meat in place of a $3 flank steak in a cooking application where toughness really doesn\u0026rsquo;t matter, and you may be right, but that doesn\u0026rsquo;t change the fact that the \u0026ldquo;file-tas\u0026rdquo; were damn good. Now I just need to figure out how to work bacon into that equation\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2007/04/grilled/","summary":"\u003cp\u003eI officially opened the 10 month grill season last weekend. The only thing worse than doing the propane exchange rigamarole at Home Depot: doing the exchange at Home Depot, getting handed an empty tank, looking at the guy funny but assuming he knows what he\u0026rsquo;s doing (after all that\u0026rsquo;s his job), going home to verify that yes, the new tank is empty, and going back to try to find someone who cares so you can finally take the new tank home and cook with it because it\u0026rsquo;s now 4pm and you haven\u0026rsquo;t had lunch yet.\u003c/p\u003e","title":"Grilled"},{"content":"AC and I showed up on the mall to throngs of kite fanatics, their sails dotting the sky very much like a plague of locusts. In the stiff breeze, my kite lept to the sky\u0026hellip;then went unstable, hit two people, and the kiteline yanked the grommet off. Still, it flew, and it wasn\u0026rsquo;t too bad for a first try given I learned a ton from the first stitch on. We spent the rest of the morning flying my two store-bought kites (toddlers love the spinner on my diamond kite), but already I\u0026rsquo;m contemplating my next hand-made.\n","permalink":"https://bobcopeland.com/blog/2007/04/in-flight/","summary":"\u003cp\u003eAC and I showed up on the mall to throngs of kite fanatics, their sails dotting the sky very much like a plague of locusts. In the stiff breeze, my kite lept to the sky\u0026hellip;then went unstable, hit two people, and the kiteline yanked the grommet off. Still, it flew, and it wasn\u0026rsquo;t too bad for a first try given I learned a ton from the first stitch on. We spent the rest of the morning flying my two store-bought kites (toddlers love the spinner on my diamond kite), but already I\u0026rsquo;m contemplating my next hand-made.\u003c/p\u003e","title":"In flight"},{"content":"For those that don\u0026rsquo;t know, Saturday marks the beginning of the Cherry Blossom festival, and consequently the annual Smithsonian Kite festival \u0026ndash; always a blast. Last year I wanted to make a kite for the event, but never got around to it. So, last Sunday I opened up that roll of nylon sitting in the corner and got to work.\nLast night, I bought a cheap sewing machine for the appliquÃ© work necessary for the design (the obvious fractal). Clearly, home ec in middle school was worthless. I had to take apart the machine twice to remove big gobs of thread stuck therein, until I learned how the bobbin is supposed to be threaded. Then, tonight I went to work on the kite after some practice and proceeded to sew some really hideous seams.\nSo, I\u0026rsquo;ve decided this will be my \u0026ldquo;one to throw away,\u0026rdquo; though I still hope to have it in the sky this weekend. First I have to fix the hole I punched in the sail.\n","permalink":"https://bobcopeland.com/blog/2007/03/kite-day/","summary":"\u003cp\u003eFor those that don\u0026rsquo;t know, Saturday marks the beginning of the Cherry Blossom festival, and consequently the annual Smithsonian Kite festival \u0026ndash; always a blast. Last year I wanted to make a kite for the event, but never got around to it. So, last Sunday I opened up that roll of nylon sitting in the corner and got to work.\u003c/p\u003e\n\u003cp\u003eLast night, I bought a cheap sewing machine for the appliquÃ© work necessary for the design (the obvious fractal). Clearly, home ec in middle school was worthless. I had to take apart the machine twice to remove big gobs of thread stuck therein, until I learned how the bobbin is supposed to be threaded. Then, tonight I went to work on the kite after some practice and proceeded to sew some really hideous seams.\u003c/p\u003e","title":"Kite Day"},{"content":"A few weeks ago someone contacted me regarding my OMFS filesystem driver for the Rio Karma. His interest is in getting it working for ReplayTV to do who knows what. This is coming a bit full circle, as I discovered long ago that the RK and RTV use the same proprietary filesystem, and indeed the ReplayTV hackers of yore had documented nearly everything there is to know about the FS, without which I would\u0026rsquo;ve been lost writing the Linux kernel driver in the first place. Of course, there are some differences in the way the two devices do their thing.\nI don\u0026rsquo;t own an RTV, but I like a challenge so I asked him to send me a dump of the first gig of the disk. One look and it is the crack-headedest thing I\u0026rsquo;ve seen in some time: somewhere along the way, their block layer must\u0026rsquo;ve moved from a big-endian to little-endian platform, without changing the code. OMFS is a 64-bit FS but the RTV block layer apparently works on 32 bits, so for example the 64-bit value 0x8877665544332211 gets written to disk as 0x5566778811223344. And it\u0026rsquo;s not just the metadata: *everything* is swapped. Filenames look like \u0026ldquo;tusCzimo..re\u0026rdquo; instead of \u0026ldquo;Customizer\u0026rdquo;. File data blocks are all swapped. Very odd.\nWell, for a time I\u0026rsquo;ve been wanting to experiment with OMFS written in FUSE, so I took my userspace routines from omfsprogs and in the space of an hour or two had a read-only FUSE-based OMFS that did the necessary byte swapping to work with Replay\u0026rsquo;s file system.\nThe payoff is the text file that RTV developers apparently used in their version control process. I give you: ReplayTV \u0026ldquo;Token Haiku\u0026rdquo; (after the jump).\nThe RTV4.1 Token Haiku List ---\u0026mdash;\u0026mdash;\u0026mdash;\u0026mdash;\u0026mdash;\u0026mdash;\u0026mdash;\u0026mdash;\u0026mdash;\u0026mdash;\u0026mdash;\nChange 14195 by tchen@tchen on 2001/06/27 09:16:31 Token Haiku #1\noops, slip finger. changes hasn\u0026rsquo;t get in yet. Now there is\nChange 14994 by pellis@04024swapps on 2001/08/06 09:22:47 Token Haiku #2\nthe checkin token I am all done with it now go about your day\nChange 15017 by pellis@04024swapps on 2001/08/07 14:51:37 Token Haiku #3\nHere is the token I\u0026rsquo;m all done with it for now but there are still bugs\nChange 15120 by pellis@04024swapps on 2001/08/13 20:33:17 Token Haiku #4\nBuilding takes too long we need a build machine please it would help alot\nChange 15501 by pellis@04024swapps on 2001/08/27 21:56:38 Token Haiku #5\n\u0026lsquo;Smoking\u0026rsquo; the token Is a very dumb saying haikus are more fun.\nChange 15787 by pellis@04024swapps on 2001/09/05 16:52:08 Token Haiku #6\nGaea is announced and there was much rejoicing work still to be done.\nChange 15819 by dsletten@dsletten on 2001/09/06 14:01:37 Token Haiku #7\nBits into ether Another checkin is made Why is the sky blue\nChange 15856 by pellis@04024swapps on 2001/09/07 11:41:13 Token Haiku #8\nAVS Forum, those guys ask lots of questions they know they can\u0026rsquo;t ask.\nChange 15903 by pellis@04024swapps on 2001/09/12 08:55:45 Token Haiku #9\nthe hud was all dark Bruce said he wanted it light and now it\u0026rsquo;s all right\nChange 15951 by pellis@04024swapps on 2001/09/13 11:39:30 Token Haiku #10\nI submit this token in order to fix some bugs. This haiku is poor\nChange 16040 by dsletten@dsletten on 2001/09/18 01:20:11 Token Haiku\nThis has no number Because I\u0026rsquo;m an idiot And I don\u0026rsquo;t like math\nChange 16115 by pellis@04024swapps on 2001/09/19 12:38:42 Token Haiku #12\nTerrorists make war Poke sleeping bear with sharp stick They will pay dearly.\nChange 16199 by pellis@04024swapps on 2001/09/21 03:47:45 Token Haiku #13\nKent is in Cabo having more fun than we are. Assign him more bugs.\nChange 16246 by dwoodward@metropolis on 2001/09/24 02:35:15 Token Haiku #14\nDon does first haiku Does not like non-ryhming poems Still dull humor found.\nChange 16320 by kewilliams@rtv0c869 on 2001/09/25 02:57:04 Token Haiku #15\nWhy if we now have the RLOG facility Do printfs still grow\nChange 16337 by pellis@04024swapps on 2001/09/25 19:29:41 Token Haiku #16\nThe code keeps changing One day we will be all done I hope it is soon.\nChange 16374 by tlandrum@04064ops on 2001/09/26 07:00:52 Token Haiku #17\nDid grab the token Built the code and smoked it Gaea will rock the world\nChange 16398 by svasudevan@04062ops on 2001/09/26 21:21:34 Token Haiku #18\nMarshall gave me values so that I Shall change the code. Will this make video better ? Well, only MKE seems to bother.\nChange 16368 by mgriffiths@oxford on 2001/09/26 02:32:38 Token Haiku #19\nHad a few printf\u0026rsquo;s Which made a few people mad Peace be with you now\nChange 16372 by kewilliams@rtv0c869 on 2001/09/26 06:39:41 Token Haiku #20\nI work hard all day But Gaea still sucks big time Is that negative?\nChange 16379 by kewilliams@rtv0c869 on 2001/09/26 07:19:55 Token Haiku #21\nWhy all haikus sound As if talking, Yoda is Power of the force?\nChange 16403 by dsletten@dsletten on 2001/09/26 22:57:46 Token Haiku #22\nA quick checkin here Reminding all a haiku Is five-seven-five\nChange 16407 by eronsheimer@curly on 2001/09/26 23:51:43 Token Haiku #23\nWhen the code is smoked The deadline is close at hand truth is not our friend\nChange 16414 by dwoodward@metropolis on 2001/09/27 02:17:33 Token Haiku #24\nVideo jitters. Epilepsy might be caused. Send to Terrorists.\nChange 16419 by bwilson@bwilson on 2001/09/27 07:03:20 Token Haiku #25\nThree days do I toil, \u0026lsquo;Cuz Kent says \u0026ldquo;Clean it up now.\u0026rdquo; What must I do next?\nChange 16422 by kewilliams@rtv0c869 on 2001/09/27 17:27:43 Token Haiku #26\nAlways remember and never forget, haikus are five-seven-five\nChange 16432 by dwoodward@metropolis on 2001/09/27 19:02:43 Token Haiku #27\nTen squared megabits Runs like hardened mollasses Within Sonic Blue\nChange 16422 by kewilliams@rtv0c869 on 2001/09/27 17:27:43 Token Haiku #28 (Special Bonus Haiku)\nBachelor party Lap dance at 20/20 My tendon snapped\nChange 16434 by dwesterh@rtv01169 on 2001/09/27 19:36:11 Token Haiku #29\nWhy bother with vowels Unix conserves on keystrokes While being cryptic\nChange 16439 by tchen@tchen on 2001/09/27 20:36:09 Token Haiku #30\nIs ACA for you? This check in turn it back on.\nChange 16445 by kewilliams@rtv0c869 on 2001/09/27 21:15:04 Token Haiku #31\nHmm, I broke the build Silly little merge error Shame, shame, shame, shame, shame\nChange 16445 by kewilliams@rtv0c869 on 2001/09/27 21:15:04 Token Haiku #31 (Special Bonus Haiku)\nTim overwrote Dave Pa-lease always diff the file And number haiku\nChange 16450 by dwoodward@metropolis on 2001/09/27 21:24:09 Token Haiku #32\nBirds sing in summer. Electronics smell good fresh. I have many needs.\nChange 16457 by kewilliams@rtv0c869 on 2001/09/27 22:34:41 Token Haiku #33\nFile Open with \u0026ldquo;w\u0026rdquo; Make new or zero current Unix commands suck\nChange 16472 by bwilson@bwilson on 2001/09/28 05:43:11 Token Haiku #34\nThe FPGA Is a hexadecimal Get the version right\nChange 16483 by kewilliams@rtv0c869 on 2001/09/30 17:43:34 Token Haiku #35 (Special makeup Haiku for screwing up #33)\nFavorite Vulcan Jolene Blalock as T\u0026rsquo;Pol Please remake \u0026ldquo;Amok Time\u0026rdquo;\nChange 16485 by dwesterh@rtv01169 on 2001/09/30 17:48:19 Token Haiku #36\nNetworked video Will ultimately be cool Mere matter of code\nChange 16495 by mgriffiths@oxford on 2001/09/30 20:07:04 Token Haiku #37\nMust check in quickly Can not think up a Haiku Oh, it seems I have!\nChange 16493 by dwoodward@metropolis on 2001/09/30 19:55:25 Token Haiku #38\nPenguin cum Pirate With a bloodthirsty sword drawn Will kill VxWorks\nChange 16500 by pellis@04024swapps on 2001/09/30 23:32:53 Token Haiku #39\nI drew a penguin and then made it a pirate Don added bloodlust.\nChange 16547 by dwoodward@metropolis on 2001/10/01 23:44:34 Token Haiku #40\nMarket has gone soft. Stock price is in the toilet. Come back baby please.\nChange 16553 by kewilliams@rtv0c869 on 2001/10/02 00:45:41 Token Haiku #41\nBuffy is alive Is she still a human girl? We find out tonight\nChange 16557 by bwilson@bwilson on 2001/10/02 02:14:52 Token Haiku #42\nIf you play remote And it plays until the end Code should not assert!\nChange 16586 by dwesterh@rtv01169 on 2001/10/02 18:26:02 Token Haiku #43\nLooks great outside now Skipping meals is not healthy Better go to lunch\nChange 16595 by dwoodward@metropolis on 2001/10/02 20:33:37 Token Haiku #44\nComputer is slow Random Access Memory Need greater amount.\nChange 16573 by pellis@04024swapps on 2001/10/02 16:47:01 Token Haiku #45\nTwo hours last night Season premiere of Buffy Best show on TV.\nChange 16610 by dwesterh@rtv01169 on 2001/10/02 23:46:13 Token Haiku #46\nRejected as weak This haiku stands crumbling Without expression\nChange 16618 by dwoodward@metropolis on 2001/10/03 17:31:49 Token Haiku #47\nProgramming is fun. I like to assault all bugs. Squash Squash Squash Squash Squash.\nChange 16626 by dwoodward@metropolis on 2001/10/03 19:38:41 Token Haiku #48\nThe compile takes long The tools are very shitty Give me some ice cream.\nChange 16653 by kewilliams@rtv0c869 on 2001/10/04 15:08:31 Token Haiku #49\nThe Phantom Menace on DVD, good, what about The previous three?\nChange 16660 by pellis@04024swapps on 2001/10/04 18:04:40 Token Haiku #50\nBig stick of metal a UHF Antenna Hi-Def here we come!\nChange 16686 by tchen@tchen on 2001/10/07 16:21:33 Token Haiku #51\nNew FPGA code along with service functions needed to change\nChange 16715 by dsletten@dsletten on 2001/10/08 22:12:21 Token Haiku #52\nHaiku doesn\u0026rsquo;t rhyme But I think now is the time A fine crime is mine\nChange 16721 by dwesterh@rtv01169 on 2001/10/09 10:00:06 Token Haiku #53\nAnnoying message Indicating something\u0026rsquo;s wrong Needs to go away\nChange 16782 by lkunz@qa-stud on 2001/10/10 18:36:50 Token Haiku #54\nFixed Asset stickers We should all be wearing them What are those barcodes?\nChange 16786 by bwilson@bwilson on 2001/10/10 22:19:35 Token Haiku #55\nThe video out Was three confusing panels Now it is just one\nChange 16805 by kewilliams@rtv0c869 on 2001/10/11 10:37:40 Token Haiku #56\nprintfs suck donkeys Use of real debugger would Make these go away\nChange 16769 by markn@frodo on 2001/10/10 11:18:09 Token Haiku #57\nThis token haiku Is really not very good And the last line is far too long for a real haiku anyway.\nChange 16814 by kewilliams@rtv0c869 on 2001/10/11 13:56:14 Token Haiku #58\nPeer Video, so\u0026hellip; Cool! Now the guide comes up with last view position\nChange 16823 by pellis@04024swapps on 2001/10/11 16:19:06 Token Haiku #59\nTime for vacation no work for the next eight days arent you all jealous! :)\nChange 16823 by pellis@04024swapps on 2001/10/11 16:19:06 Token Haiku #60\nI fly tomorrow I usually like it I\u0026rsquo;m a bit nervous\nChange 16829 by bwilson@bwilson on 2001/10/11 21:03:03 Token Haiku #61\nWe go back and forth On the Quick Setup panels And no more asserts\nChange 16839 by dwoodward@metropolis on 2001/10/12 08:41:34 Token Haiku #62\nASSERT did suspend Those tasks that were unruly How dumb and useless\nChange 16850 by dwoodward@metropolis on 2001/10/12 12:17:02 Token Haiku #63\nKent thinks the stop key Is a universal key That should work always\nChange 16860 by eronsheimer@curly on 2001/10/12 12:17:02 Token Haiku #64\nAlone in the dark Bug list is getting smaller Peace is in my heart\nChange 16858 by dwoodward@metropolis on 2001/10/12 13:49:43 Token Haiku #65\nThe day will come soon When the token will retire Until next release\nChange 16870 by tlandrum@04064ops on 2001/10/12 17:01:14 Token Haiku #66\nMust write a haiku Have nothing to say in spite Don made me do it\nChange 16882 by kewilliams@rtv0c869 on 2001/10/13 12:57:11 Token Haiku #67\nTati, oh, Tati Â¿Por quÃ© tu haiku chulo no fue espaÃ±ol?\nChange 16885 by dwoodward@metropolis on 2001/10/13 14:22:38 Token Haiku #68\nI code on weekends if bugs are known in advance to be squashable.\nChange 16891 by dwoodward@metropolis on 2001/10/14 13:56:41 Token Haiku #69\nASSERT verily into the depths of handlers. The red screen of death.\nChange 16896 by dbehr@dbehr on 2001/10/15 06:02:38 Token Haiku #70\nquiet friday night i am checking in first time will the tree catch fire ?\nChange 16908 by dsletten@dsletten on 2001/10/15 09:24:24 Token Haiku #71\nThis Monday checkin Is my first since last Tuesday I should work harder\nChange 16926 by kewilliams@rtv0c869 on 2001/10/15 15:42:26 Token Haiku #72\nQuickskip and instant replay can now be used to change the guide spinner\nChange 16930 by kewilliams@rtv0c869 on 2001/10/15 18:31:54 Token Haiku #73\ndo not change log suffer the wrath of don, but another haiku\nChange 16959 by kewilliams@rtv0c869 on 2001/10/16 14:25:41 Token Haiku #74\nwith patrick gone now I have a chance to be king with the most haikus\nChange 17038 by dsletten@dsletten on 2001/10/18 20:21:19 Token Haiku #75\nI don\u0026rsquo;t speak Spanish But upside-down question marks Are cool. Â¿Don\u0026rsquo;t you think?\nChange 17052 by kewilliams@rtv0c869 on 2001/10/20 17:14:39 Token Haiku #76\nthese files are not going to be used yet but i want them in now\nChange 17057 by kewilliams@rtv0c869 on 2001/10/21 12:22:50 Token Haiku #77\na new fence was built with don today, so very nice. the dogs are contained\nChange 17060 by kewilliams@rtv0c869 on 2001/10/21 18:05:25 Token Haiku #78\nonly twenty three K after all that work, i need a faster machine\nChange 17064 by dwoodward@metropolis on 2001/10/22 03:38:21 Token Haiku #79\nA haiku this dumb Should be placed in the annals of all dumb haikus\nChange 17081 by kewilliams@rtv0c869 on 2001/10/22 06:37:25 Token Haiku #80\nthe build unstable much worse than two weeks ago when do we ship it?\nChange 17104 by kewilliams@rtv0c869 on 2001/10/22 10:01:32 Token Haiku #81\ntomorrow patrick comes back to work because he wants more bugs to fix\nChange 17104 by kewilliams@rtv0c869 on 2001/10/22 10:01:32 Token Haiku #82 (special bonus Haiku)\npatrick back from cruise do you think he got nookie on his vacation\nChange 17121 by dwoodward@metropolis on 2001/10/23 04:36:45 Token Haiku #83\nSave architecture RPlatform must be contained Sans dependencies\nChange 17162 by pellis@04024swapps on 2001/10/24 08:07:14 Token Haiku #84\nWent on cruise last week All children and old people No action for me\nChange 17172 by bwilson@bwilson on 2001/10/24 11:06:53 Token Haiku #85\nNo Closed Captioning When our panels are displayed Makes them look better\nChange 17181 by mgriffiths@oxford on 2001/10/24 13:58:52 Token Haiku #86\nAnother fix that May stop the macroblocking Credits to David\nChange 17182 by kewilliams@rtv0c869 on 2001/10/24 15:05:40 Token Haiku #87 (special bonus Haiku)\nmartin oh martin please always put the haiku in the checkin file\nChange 17127 by kewilliams@rtv0c869 on 2001/10/23 07:21:19 Token Haiku #88 (an absolutely true story about tech support at Sonic Blue)\nvoice mail does not work tell tech support, no hear back they left me voice mail\nChange 17194 by dwoodward@metropolis on 2001/10/25 Token Haiku Quintet #1\nC++ mem-ry Operator overload Standard Lib changes\nnew and delete are good but implementation in language bogus\noverload delete and it will never get called save for exceptions\nMust modify lib To shanghai compiler call So delete will work\nNaturally this is only problematic with global new/del\nChange 17219 by dwoodward@metropolis on 2001/10/25 10:27:38 Token Haiku #94\nLook to the sky and you will find my checked in code soaring blazingly\nChange 17230 by tchen@tchen on 2001/10/26 01:30:58 Token Haiku #95\nmake OS_DbgPrintf empty call and prints nothing\nChange 17238 by kewilliams@rtv0c869 on 2001/10/26 04:12:38 Token Haiku #96\nrunning FSShell bad if diskimages gone now part of clean get\nChange 17244 by dwoodward@metropolis on 2001/10/26 06:09:14 Token Haiku #97\nCheck-in, oh check-in, Happiness to me you bring, My life does not want.\nChange 17258 by dwoodward@metropolis on 2001/10/29 00:31:51 Token Haiku #98\nC++ Mangle Of a language spawned from C Is Obfuscation\nChange 17281 by bwilson@bwilson on 2001/10/29 06:08:01 Token Haiku #99\nDahdit didahdah Dididah dahdidahdit Dah didididah\nChange 17285 by dsletten@dsletten on 2001/10/29 10:27:51 Token Haiku #100\nRelease doth grow near Dinner is served yet again Leaves me wanting more\nChange 17303 by pellis@04024swapps on 2001/10/30 03:50:29 Token Haiku #101\nDinner\u0026rsquo;s back again It never should have left us Could free drinks be next?\nChange 17315 by bwilson@bwilson on 2001/10/30 06:05:08 Token Haiku #102\nGaea stores Photos Select just one gigabyte Two thousand Photos\nChange 17336 by dwoodward@metropolis on 2001/10/30 08:51:05 Token Haiku #103\nThread safety is key Don\u0026rsquo;t access variables Without protection\nChange 17340 by eronsheimer@curly on 2001/10/30 10:33:04 Token Haiku #104\nTo strict of controls Stifle a creative mind Anarchy will reign\nChange 17338 by bwilson@bwilson on 2001/10/30 10:18:05 Token Haiku #105\nMain Menu left edge Was set too far to the left So I adjusted\nChange 17361 by dwoodward@metropolis on 2001/10/31 01:29:59 Token Haiku #106\nI can smell shipping An aroma like dinner Around 6pm\nChange 17363 by dsletten@dsletten on 2001/10/31 01:47:54 Token Haiku #107\nA big word is this: Antidisestablishment- arianism\nChange 17367 by markn@frodo on 2001/10/31 02:49:48 Token Haiku #108\ntlhIngan Hol haiku ghItlhlaH De\u0026rsquo;wI\u0026rsquo; ghunwI\u0026rsquo; \u0026lsquo;ach luyajlaHbe\u0026rsquo; Hoch\nChange 17374 by eronsheimer@curly on 2001/10/31 03:52:27 Token Haiku #109\nWhen Klingon is used in a new checkin haiku I am not worthy\nChange 17398 by pellis@04024swapps on 2001/10/31 07:59:39 Token Haiku #110\nI\u0026rsquo;m all out of bugs, I feel so lost without them Air Supply was cool.\nChange 17409 by dwoodward@metropolis on 2001/10/31 23:40:10 Token Haiku #111\nI am like Patrick A soul with no bugs to fix Except pesky D\u0026rsquo;s\nChange 17423 by pellis@04024swapps on 2001/11/01 04:04:51 Token Haiku #112\nA lawsuit cometh Free publicity Maybe sales will grow\nChange 17435 by kewilliams@rtv0c869 on 2001/11/01 08:08:11 Token Haiku #113\nWho knows klingon? Gasp! Could it be Mark made this up verification?\nChange 17441 by kewilliams@rtv0c869 on 2001/11/01 10:24:33 Token Haiku #114\nMissing question mark and bad tab in last haiku I am fixing now\nChange 17443 by lkunz@qa-stud on 2001/11/01 11:56:29 Token Haiku #115\nIf token haiku May be subpoenaed in court I have no comment\nChange 17445 by bwilson@bwilson on 2001/11/01 12:46:55 Token Haiku #116\nHTTPGet Wrote beyond end of buffer Causing big crashes\nChange 17454 by dwoodward@metropolis on 2001/11/02 02:21:01 Token Haiku #117\nHaikus that I choose Are often tender and soft And smell like berries\nChange 17474 by kewilliams@rtv0c869 on 2001/11/02 05:01:14 Token Haiku #118\nflaws in CTrace found local debug enabled all the time, no more\nChange 17475 by dsletten@dsletten on 2001/11/02 05:01:56 Token Haiku #119\nCoding at top speed Need Knight Rider\u0026rsquo;s red button Turbo Boost, baby\nChange 17492 by bwilson@bwilson on 2001/11/02 10:05:57 Token Haiku #120\nTune to channel 6 If 6 is marked inactive Channel Guide had bug\nChange 17526 by dsletten@dsletten on 2001/11/03 10:40:59 Token Haiku #121\nCoffee, Burrito Lethargy and vim shall meet when coding on fumes\nChange 17536 by kewilliams@rtv0c869 on 2001/11/04 03:51:28 Token Haiku #122\nwhy all the trouble keeping uniform format for the token haikus?\nChange 17541 by dwoodward@metropolis on 2001/11/04 17:24:04 Token Haiku #123\nLast day for checkins Has clear skys and warm weather Oh what a feeling\nChange 17561 by kewilliams@rtv0c869 on 2001/11/05 13:23:45 Token Haiku #124\nMatadero place No satellite for two weeks How will I survive?\nChange 17566 by abriggs@roll on 2001/11/05 14:08:22 Token Haiku #125\ntv is so dumb we should replay youth instead that would be useful\nChange 17579 by markn@frodo on 2001/11/05 16:19:08 Token Haiku #126\njan rarHa\u0026rsquo;lu\u0026rsquo;DI\u0026rsquo; jabbI\u0026rsquo;ID mevlaHbejchugh je\u0026rsquo;wI\u0026rsquo; nuQqu\u0026rsquo;lu\u0026rsquo;\nChange 17605 by eronsheimer@curly on 2001/11/05 19:45:26 Token Haiku #127\nThis is the last bug Joy, freedom, home, sleep - oh-no nine new, sleep no more\nChange 17619 by kewilliams@rtv0c869 on 2001/11/05 21:26:51 Token Haiku #128\npenguins fly so fast bouncing off Patrick\u0026rsquo;s noggin when not having s-x\nChange 17622 by dwoodward@metropolis on 2001/11/05 21:58:47 Token Haiku #129\nMidnight on the date When I release the token Pushin\u0026rsquo; it baby\nChange 17627 by dsletten@dsletten on 2001/11/05 22:35:05 Token Haiku #130\npointers pivotal my coding is criminal dogg-style digital\nChange 17659 by dbehr@dbehr on 2001/11/06 19:21:36 Token Haiku #131\nnoc juz nadchodzi bledow jest kupa cala jestem zgubiony\nChange 17675 by kewilliams@rtv0c869 on 2001/11/07 16:01:23 Token Haiku #132\nhaiku formats same and pay per view highlites same two birds, one stone, yeah!\nChange 17686 by dwoodward@metropolis on 2001/11/07 18:11:15 Token Haiku #133\nThe birds and the bees Don\u0026rsquo;t have anything on me First shot does the job\nChange 17685 by dsletten@dsletten on 2001/11/07 18:09:47 Token Haiku #134\nMuch respect I seek The sign to my office says Dorkville 7-ft\nChange 17724 by kewilliams@rtv0c869 on 2001/11/08 14:37:29 Token Haiku #135\nOnce More, With Feeling Best episode ever i say Deserves an Emmy\nChange 17724 by kewilliams@rtv0c869 on 2001/11/08 14:37:29 Token Haiku #136\nBoy band boy respect? Obsessed with Ben Folds, next Ben Dover stalked\nChange 17724 by kewilliams@rtv0c869 on 2001/11/08 14:37:29 Token Haiku #137\nNothing happy have I to say, be thankful I do not think out loud\nChange 17740 by kewilliams@rtv0c869 on 2001/11/08 18:27:40 Token Haiku #138\nTwo with one blow, yes Too bad I screwed things up in the first place, damn\nChange 17687 by dsletten@dsletten on 2001/11/07 18:37:13 Token Haiku #139\nJane Goodall spent years Quietly monitoring The rare horned penguin\nChange 17758 by abriggs@roll on 2001/11/09 11:25:59 Token Haiku #140\nfile system haiqueue services my datapump just like your\nChange 17773 by mgriffiths@oxford on 2001/11/09 18:30:23 Token Haiku #141\n\u0026ldquo;Is this my last bug?\u0026rdquo; I ask myself this every day. Ha ha ha ha ha!\nChange 17774 by pellis@04024swapps on 2001/11/09 18:30:24 Token Haiku #142\nThanksgiving draws near Cranberry sauce from a can and other delights!\nChange 17775 by dsletten@dsletten on 2001/11/09 18:41:24 Token Haiku #143\nCRB pressure My code undressed, inspected Melting point attained\nChange 17784 by dwoodward@metropolis on 2001/11/10 14:10:31 Token Haiku #144\nIt\u0026rsquo;s annoying when people do checkins when I have the dang token.\nChange 17797 by lkunz@qa-stud on 2001/11/10 18:41:13 Token Haiku #145\nWith token haiku Steve Miller Band references Are gone from checkins\nChange 17798 by kewilliams@rtv0c869 on 2001/11/11 10:53:07 Token Haiku #146\nimpossible to hear AC/DC without playing air guitar\nChange 17826 by dsletten@dsletten on 2001/11/12 20:26:11 Token Haiku #147\nFlag-draped S.U.V.\u0026rsquo;s You do know your gas money Goes straight to Saddam\nChange 17805 by kewilliams@rtv0c869 on 2001/11/11 23:19:52 Token Haiku #148\nTaliban running It seems that the bombing worked Get Bin Laden soon\nChange 17805 by kewilliams@rtv0c869 on 2001/11/11 23:19:52 Token Haiku #149 (Special Bonus Haiku)\nIt seems to me I Write Haikus about anything To be the winner\nChange 17805 by kewilliams@rtv0c869 on 2001/11/11 23:19:52 Token Haiku #150 (Special Bonus Haiku)\nPuppies and kitties And thoughts so very pretty This is one fiddy\nChange 17844 by kewilliams@rtv0c869 on 2001/11/13 14:46:09 Token Haiku #151\nFiddy not fidy Fixing the token file does not require a review\nChange 17861 by abriggs@roll on 2001/11/13 19:32:39 Token Haiku #152\ncompound abstraction of undue complexity what a f\u0026mdash;\u0026mdash; mess\nChange 17864 by kewilliams@rtv0c869 on 2001/11/13 21:43:33 Token Haiku #153\nThe rain keeps falling The workmen will not come back Still have no T.V.\nChange 17869 by mgriffiths@oxford on 2001/11/14 11:05:58 Token Haiku #154\nWe are almost there I am very very excited Let\u0026rsquo;s ship this baby!\nChange 17870 by pellis@04024swapps on 2001/11/14 11:06:26 Token Haiku #155\nTendon heals nicely Don\u0026rsquo;t make me break it again Kent\u0026rsquo;s a haiku whore.\nChange 17880 by dwoodward@metropolis on 2001/11/14 14:28:00 Token Haiku #156\nManagement limits On my brain activity DISSATISFACTION\nChange 17919 by lkunz@qa-stud on 2001/11/16 19:23:28 Token Haiku #157\nOh, macrovision It was so very broken But now, not so much\nChange 17924 by abriggs@roll on 2001/11/16 20:18:13 Token Haiku #158\nout of baling wire so the fearless leader says use a coat hanger\nChange 17955 by abriggs@roll on 2001/11/19 20:04:38 Token Haiku #159\nwhen laura sends mail if you neglect to reply you will go hungry\nChange 17952 by abriggs@roll on 2001/11/19 19:44:30 Token Haiku #160\ndays of misery testing coding until night apologizing\nChange 18022 by dwoodward@metro2 on 2001/11/28 13:51:40 Token Haiku #161\noops slip finger tokens hasn\u0026rsquo;t get in yet. Now there is\n-= Final Score =-\nkewilliams: 43 dwoodward: 34 pellis: 22 dsletten: 15 bwilson: 11 abriggs: 6 dwesterh: 5 eronsheimer: 5 mgriffiths: 5 tchen: 4 lkunz: 4 markn: 3 dbehr: 2 tlandrum: 2 svasudevan: 1\n","permalink":"https://bobcopeland.com/blog/2007/03/hacking-replaytv/","summary":"\u003cp\u003eA few weeks ago someone contacted me regarding my \u003ca href=\"http://bobcopeland.com/karma/\"\u003eOMFS filesystem driver\u003c/a\u003e for the Rio Karma. His interest is in getting it working for ReplayTV to do who knows what. This is coming a bit full circle, as I discovered long ago that the RK and RTV use the same proprietary filesystem, and indeed the ReplayTV hackers of yore had documented nearly everything there is to know about the FS, without which I would\u0026rsquo;ve been lost writing the Linux kernel driver in the first place. Of course, there are some differences in the way the two devices do their thing.\u003c/p\u003e\n\u003cp\u003eI don\u0026rsquo;t own an RTV, but I like a challenge so I asked him to send me a dump of the first gig of the disk. One look and it is the crack-headedest thing I\u0026rsquo;ve seen in some time: somewhere along the way, their block layer must\u0026rsquo;ve moved from a big-endian to little-endian platform, without changing the code. OMFS is a 64-bit FS but the RTV block layer apparently works on 32 bits, so for example the 64-bit value 0x8877665544332211 gets written to disk as 0x5566778811223344. And it\u0026rsquo;s not just the metadata: *everything* is swapped. Filenames look like \u0026ldquo;tusCzimo..re\u0026rdquo; instead of \u0026ldquo;Customizer\u0026rdquo;. File data blocks are all swapped. Very odd.\u003c/p\u003e\n\u003cp\u003eWell, for a time I\u0026rsquo;ve been wanting to experiment with OMFS written in FUSE, so I took my userspace routines from omfsprogs and in the space of an hour or two had a read-only FUSE-based OMFS that did the necessary byte swapping to work with Replay\u0026rsquo;s file system.\u003c/p\u003e\n\u003cp\u003eThe payoff is the text file that RTV developers apparently used in their version control process. I give you: ReplayTV \u0026ldquo;Token Haiku\u0026rdquo; (after the jump).\u003c/p\u003e\n","title":"Hacking ReplayTV"},{"content":"I used a complicated computer model to make bracket picks this year, and I\u0026rsquo;m 83.7% so far, which is good enough for 4th place in our office pool of eight (1 point off the 3-way tie for first). Ok, that part about the computer model was a lie but that would be cool wouldn\u0026rsquo;t it? Random guessing ftw!\n","permalink":"https://bobcopeland.com/blog/2007/03/ncaas/","summary":"\u003cp\u003eI used a complicated computer model to make bracket picks this year, and I\u0026rsquo;m 83.7% so far, which is good enough for 4th place in our office pool of eight (1 point off the 3-way tie for first). Ok, that part about the computer model was a lie but that would be cool wouldn\u0026rsquo;t it? Random guessing ftw!\u003c/p\u003e","title":"NCAAs"},{"content":"With 6.5 months to go, here\u0026rsquo;s the wedding planning update:\nLocation - check\nReception location \u0026amp; catering - check\nPhotographer - check\nHopefully non-cheesy DJ - check\nHow to be married class - check\nRehearsal dinner location - check\nFlowers - check\nDress - check\nCraptacular wedding website - roger that!\n","permalink":"https://bobcopeland.com/blog/2007/02/checklist/","summary":"\u003cp\u003eWith 6.5 months to go, here\u0026rsquo;s the wedding planning update:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eLocation - check\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eReception location \u0026amp; catering - check\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003ePhotographer - check\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eHopefully non-cheesy DJ - check\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eHow to be married class - \u003ca href=\"http://bluesterror.livejournal.com/116744.html\"\u003echeck\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eRehearsal dinner location - check\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eFlowers - check\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eDress - check\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eCraptacular wedding website - \u003cem\u003e\u003ca href=\"/wedding\"\u003eroger that!\u003c/a\u003e\u003c/em\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e","title":"Checklist"},{"content":"I\u0026rsquo;ve had a lucky streak: even with the occasional hard drive failure I haven\u0026rsquo;t had any major data loss for a long time. But tempting fate all this time has become worrisome, so a couple of days ago I signed up for an account at rsync.net, a place that charges $1.60/GB/mo for network accessible hard drive space. This solves the problems I\u0026rsquo;ve always had with using my own disks or DVDs for backup: if it isn\u0026rsquo;t automatic I won\u0026rsquo;t do it, and it had better be offsite. As a bonus, they gave me half off for being open source developer. My setup detailed after the jump.\nHere\u0026rsquo;s how I set up my machines to use it:\nFirst, I created the RSA key for rsync.net and copied to the remote server:\n$ ssh-keygen -t rsa $ scp ~/.ssh/id_rsa.pub account@machine.rsync.net:.ssh/authorized_keys I want to have two directories on my storage space: one that is just a subversion root with various open source software, my websites, etc. And a second that has sensitive things such as tax returns or email mbox files, all encrypted. I haven\u0026rsquo;t set up the second part, but the plan is to create a disk image for dm-crypt and then sync that up to the server. One could even use sshfs to mount the remote file system, then mount the image with dm-crypt directly so you can just copy files into it without having to keep an encrypted disk image locally.\nFor non-sensitive stuff, I created a directory containing symlinks to directories I want to backup. The rsync program sports a command line switch to resolve any symlinks that go outside the current tree, but maintain those that are inside. This works out great because a link inside a source tree stays a link, but the link from the backup directory to the tree itself results in the tree getting copied.\nI put this in my crontab along with scripts to periodically mirror my web page and my LJ:\ncrontab: 0 4 * 1 * cd projects \u0026amp;\u0026amp; wget -r -N http://bobcopeland.com 0 5 * 1 * cd projects/ljdump \u0026amp;\u0026amp; ./ljdump.py 30 13 * * * cd /backups \u0026amp;\u0026amp; ./sync.sh sync.sh: rsync -avz --copy-unsafe-links -e ssh stuff me@machine.rsync.net: With this setup, I just have to link the non-sensitive things I care about under the /backups/stuff directory, and that will get replicated to the offsite backup daily. My website and LJ get mirrored once a month and synced that day to the remote server.\nBring on the nukes!\n","permalink":"https://bobcopeland.com/blog/2007/02/backed-that-thing-up/","summary":"I\u0026rsquo;ve had a lucky streak: even with the occasional hard drive failure I haven\u0026rsquo;t had any major data loss for a long time. But tempting fate all this time has become worrisome, so a couple of days ago I signed up for an account at rsync.net, a place that charges $1.60/GB/mo for network accessible hard drive space. This solves the problems I\u0026rsquo;ve always had with using my own disks or DVDs for backup: if it isn\u0026rsquo;t automatic I won\u0026rsquo;t do it, and it had better be offsite. As a bonus, they gave me half off for being open source developer. My setup detailed after the jump.","title":"Backed that thing up"},{"content":"[This entry backdated to when I actually wrote it]\nI\u0026rsquo;m currently sitting in the Atlanta airport as part of a quick in-and-out to visit a sick relative. I\u0026rsquo;d easily give a digit for a sausage biscuit right now, but alas the best I can do is trail mix.\nMore evidence that the terrorists have won: while waiting in the security line with 2000 of my closest friends, having disposed of the Purell I forgot to check, they started playing some Glenn Medeiros over the intercom. You know,\nNothing\u0026rsquo;s gonna change my love for you You ought know by now how much I love you One thing you can be sure of I\u0026rsquo;ll never ask for more than your love\nThere, now you have it stuck in your head too.\nI\u0026rsquo;m reading Kitchen Confidential on the strength of this blog entry by \u0026ldquo;No Reservations\u0026rdquo; star Anthony Bourdain. It\u0026rsquo;s a humorous look at how the restaurant industry is much less glamorous than one might think. [Later on the plane, my single-serving friend, a philosophical sheet metal worker, said this is like life: first you want to get with some beautiful woman, then you realize she\u0026rsquo;s nasty inside, but by then it\u0026rsquo;s too late because you\u0026rsquo;re already married.]\nIn other news, Angeline and I saw a famous celebrity while dining at the White Flint mall the other night: Matthew Lesko, the question-mark-blazer-ensuited guy who exhorts us to get FREE government money. He was in uniform and looked lost. Doesn\u0026rsquo;t ring a bell? Here\u0026rsquo;s Andy Dick\u0026rsquo;s impression of him.\n","permalink":"https://bobcopeland.com/blog/2007/02/airport/","summary":"\u003cp\u003e[This entry backdated to when I actually wrote it]\u003c/p\u003e\n\u003cp\u003eI\u0026rsquo;m currently sitting in the Atlanta airport as part of a quick in-and-out to visit a sick relative. I\u0026rsquo;d easily give a digit for a sausage biscuit right now, but alas the best I can do is trail mix.\u003c/p\u003e\n\u003cp\u003eMore evidence that the terrorists have won: while waiting in the security line with 2000 of my closest friends, having disposed of the Purell I forgot to check, they started playing some Glenn Medeiros over the intercom. You know,\u003c/p\u003e","title":"Airport"},{"content":"Congratulations, NASA, on finally managing to make space interesting again!\nIn other last week\u0026rsquo;s news, bunnie of Xbox hackery fame has a nice rundown on why the ATHF debacle was such a sad commentary on our society. I hope the 2 mil extortion that Ted agreed to is just a face-saving thing and no money actually changed hands.\n","permalink":"https://bobcopeland.com/blog/2007/02/eventgetcurrent/","summary":"\u003cp\u003eCongratulations, NASA, on finally managing to \u003ca href=\"http://www.boingboing.net/2007/02/05/jilted_diapered_astr.html\"\u003emake space interesting again\u003c/a\u003e!\u003c/p\u003e\n\u003cp\u003eIn other last week\u0026rsquo;s news, bunnie of Xbox hackery fame has a \u003ca href=\"http://www.bunniestudios.com/wordpress/?p=151\"\u003enice rundown\u003c/a\u003e on why the ATHF debacle was such a sad commentary on our society. I hope the 2 mil extortion that Ted agreed to is just a face-saving thing and no money actually changed hands.\u003c/p\u003e","title":"event.getCurrent"},{"content":"I\u0026rsquo;ve been trying out a few new Linux features lately. First, kernel 2.6.20 is shipping with kvm which includes support for the new virtualization instructions on recent processors. This is great because I can use the kvm-modified version of qemu to boot other Linux or Windows XP images while in Linux. Emulating Linux is nice for debugging those kernel bugs that lockup the box, while Windows could theoretically be useful for reverse engineering drivers. Qemu also sets up a NAT transparently so you can easily use the network once you\u0026rsquo;re in the guest OS. No news to anyone that\u0026rsquo;s used vmware, but this is free, and a heckuva lot faster than all-software emulation. Pictured is my little XP-under-Linux test:\nAlso, I\u0026rsquo;m playing with Xgl a bit. This is the X server that\u0026rsquo;s built on top of OpenGL, providing window managers the ability to add eye candy to mundane things like dragging windows around. My laptop JustWorked with the builtin i945 graphics chip, which is interesting because glx still claims to be using the software renderer. Coupled with beryl, all of your virtual desktops get mapped to faces of a cube, so when you Ctrl-Alt-(left/right/mouse) you can rotate the cube to find the appropriate workspace. The window manager has active corners like OSX which default to exposÃ©-like features. When you drag around windows under this thing, they have a cute little warping animation, and when you bring something to the front, the other windows become transparent. It\u0026rsquo;s still a little buggy and I\u0026rsquo;m not sure that I won\u0026rsquo;t find the eye-candy ridiculously annoying at some point, but for now it\u0026rsquo;s a cool toy. A screenshot wouldn\u0026rsquo;t do it justice, so visit youtube for demos of it by unaccountably shirtless dudes.\n","permalink":"https://bobcopeland.com/blog/2007/01/linuxy/","summary":"\u003cp\u003eI\u0026rsquo;ve been trying out a few new Linux features lately. First, kernel 2.6.20 is shipping with kvm which includes support for the new virtualization instructions on recent processors. This is great because I can use the kvm-modified version of qemu to boot other Linux or Windows XP images while in Linux. Emulating Linux is nice for debugging those kernel bugs that lockup the box, while Windows could theoretically be useful for reverse engineering drivers. Qemu also sets up a NAT transparently so you can easily use the network once you\u0026rsquo;re in the guest OS. No news to anyone that\u0026rsquo;s used vmware, but this is free, and a heckuva lot faster than all-software emulation. Pictured is my little XP-under-Linux test:\u003c/p\u003e","title":"Linuxy"},{"content":"\nClock, side view\nOriginally uploaded by bluesterror.\nI constructed this a week or two ago, but only just now got a chance to photograph it with a real camera. This represents the first theoretically useful circuit I built with the Arduino platform. It utilizes the 7 segment decoding program along with a real time clock (RTC), blinking out the time one digit at a time. The RTC speaks a serial protocol called I2C so only two pins on the microcontroller are needed to read the time.\nThis is part of a project I\u0026rsquo;ll be building on soon, but it\u0026rsquo;s mostly still in the proof-of-concept phase.\n","permalink":"https://bobcopeland.com/blog/2007/01/clocked/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/366548679/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://farm1.static.flickr.com/185/366548679_8cf205cbea_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/366548679/\"\u003eClock, side view\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eI constructed this a week or two ago, but only just now got a chance to photograph it with a real camera. This represents the first theoretically useful circuit I built with the Arduino platform. It utilizes the 7 segment decoding program along with a real time clock (RTC), blinking out the time one digit at a time. The RTC speaks a serial protocol called I2C so only two pins on the microcontroller are needed to read the time.\u003c/p\u003e","title":"Clocked"},{"content":"Angeline and I took our first cooking class last Saturday, despite her having the worst case of pink eye I\u0026rsquo;ve ever seen (we tried to find a stand-in for her prepaid slot unsuccessfully). Anyway, the class was on basic Chinese cooking, and an area chef supplied us with recipes and went over some basic techniques. I can\u0026rsquo;t say that I learned much that I didn\u0026rsquo;t already know, apart from the Mandarin words approximately meaning \u0026lsquo;slice\u0026rsquo; and \u0026lsquo;shred\u0026rsquo; (and \u0026lsquo;death\u0026rsquo;), but this was a nice format for a class (that is, much wine was consumed).\nWe\u0026rsquo;ll see how it goes when I remake all of these dishes in my own kitchen, which is coming because Ange was unable to taste anything we prepared. I had to describe it in my uninformed-food-critic vocabulary: \u0026ldquo;hmm, I guess it is salty and grassy.\u0026rdquo;\n","permalink":"https://bobcopeland.com/blog/2007/01/cooking/","summary":"\u003cp\u003eAngeline and I took our first cooking class last Saturday, despite her having the worst case of pink eye I\u0026rsquo;ve ever seen (we tried to find a stand-in for her prepaid slot unsuccessfully). Anyway, the class was on basic Chinese cooking, and an area chef supplied us with recipes and went over some basic techniques. I can\u0026rsquo;t say that I learned much that I didn\u0026rsquo;t already know, apart from the Mandarin words approximately meaning \u0026lsquo;slice\u0026rsquo; and \u0026lsquo;shred\u0026rsquo; (and \u0026lsquo;death\u0026rsquo;), but this was a nice format for a class (that is, much wine was consumed).\u003c/p\u003e","title":"Cooking"},{"content":"WTF is up with prizes from Cracker Jacks lately? I remember in my youth the prizes would sometimes suck, like you\u0026rsquo;d get a sticker or a temporary tattoo or something like that, but nowhere near the suckage of recent times. Last week I bought a huge bag of the sticky, not-enough-peanuts-having treat while at a Caps game. I thought the prize couldn\u0026rsquo;t be worse than my last one from several years ago, a \u0026ldquo;notepad\u0026rdquo; \u0026ndash; that is, a tiny square of paper with four lines on it and a picture of an Octopus \u0026ndash; but I was wrong. Instead, I got a piece of paper that informed me historical facts about Susan B. Anthony with an unflattering drawing of same. Who the hell would want this? CJ, if you have decided your mission is to help mankind by educating kids, how about educating them that this bag of caramel corn has 8000 calories inside it and eating it will make one enormous. And the kernels will somehow get stuck to all of your clothes and people will laugh at you and say, \u0026ldquo;hey look, it\u0026rsquo;s the guy with the popcorn stuck to his pants\u0026rdquo; and you will cry.\nMoose munch is way better.\n","permalink":"https://bobcopeland.com/blog/2007/01/cracker-jacked/","summary":"\u003cp\u003eWTF is up with prizes from Cracker Jacks lately? I remember in my youth the prizes would sometimes suck, like you\u0026rsquo;d get a sticker or a temporary tattoo or something like that, but nowhere near the suckage of recent times. Last week I bought a huge bag of the sticky, not-enough-peanuts-having treat while at a Caps game. I thought the prize couldn\u0026rsquo;t be worse than my last one from several years ago, a \u0026ldquo;notepad\u0026rdquo; \u0026ndash; that is, a tiny square of paper with four lines on it and a picture of an Octopus \u0026ndash; but I was wrong. Instead, I got a piece of paper that informed me historical facts about Susan B. Anthony with an unflattering drawing of same. Who the hell would want this? CJ, if you have decided your mission is to help mankind by educating kids, how about educating them that this bag of caramel corn has 8000 calories inside it and eating it will make one enormous. And the kernels will somehow get stuck to all of your clothes and people will laugh at you and say, \u0026ldquo;hey look, it\u0026rsquo;s the guy with the popcorn stuck to his pants\u0026rdquo; and you will cry.\u003c/p\u003e","title":"Cracker Jacked"},{"content":"Since I\u0026rsquo;ve been mucking with electronics again recently, I spent some xmas money on a Weller temperature-controlled soldering iron, my POS Radio Shack Board Burner 2000 no longer cutting it. Then I took the time last weekend to set up a workbench of sorts with some component drawers and all that good stuff. All it needs is a logic analyzer, oscope, and bench supply (yeah right!).\nYesterday I received a kit in the mail from Spark Fun for an Arduino \u0026lsquo;shield.\u0026rsquo; This is a little board that plugs on top of the Arduino microcontroller board, in this case giving you a little prototyping area. You get the PCB and a few resistors, LEDs and jumper headers to solder onto the board. It took me about an hour with my new setup to put the thing together, and I must say the Weller is *great*. Every single one of my solder connections was perfect whereas with my old iron there would be huge blobs everywhere, scorch marks on the PCB, cold joints aplenty. In another 10 minutes, I had wired up a circuit that basically implements a BCD to 7 segment converter with the microcontroller (i.e., it counts from 0-9 continuously). Here are some ugly phone-cam pics. Aren\u0026rsquo;t you so cuuute wit your widdle breadboard!\n","permalink":"https://bobcopeland.com/blog/2007/01/cant-spell-geek-without-the-ee/","summary":"\u003cp\u003eSince I\u0026rsquo;ve been mucking with electronics again recently, I spent some xmas money on a Weller temperature-controlled soldering iron, my POS Radio Shack Board Burner 2000 no longer cutting it. Then I took the time last weekend to set up a workbench of sorts with some component drawers and all that good stuff. All it needs is a logic analyzer, oscope, and bench supply (yeah right!).\u003c/p\u003e\n\u003cp\u003eYesterday I received a kit in the mail from \u003ca href=\"http://www.sparkfun.com/\"\u003eSpark Fun\u003c/a\u003e for an Arduino \u0026lsquo;shield.\u0026rsquo; This is a little board that plugs on top of the Arduino microcontroller board, in this case giving you a little prototyping area. You get the PCB and a few resistors, LEDs and jumper headers to solder onto the board. It took me about an hour with my new setup to put the thing together, and I must say the Weller is *great*. Every single one of my solder connections was perfect whereas with my old iron there would be huge blobs everywhere, scorch marks on the PCB, cold joints aplenty. In another 10 minutes, I had wired up a circuit that basically implements a BCD to 7 segment converter with the microcontroller (i.e., it counts from 0-9 continuously). Here are some ugly phone-cam pics. Aren\u0026rsquo;t you so cuuute wit your widdle breadboard!\u003c/p\u003e","title":"Can't spell geek without the EE"},{"content":"I can\u0026rsquo;t remember what I was going to write here, except that I suck at Monopoly. We had a good time in Toronto even though it was crowded with eight people in a 2BR apartment. The weather was nice and warm. Weird, eh? Speaking of \u0026ldquo;eh,\u0026rdquo; I only heard one person say it, while we were watching some hockey game in a Queen Street pool hall. I came back with only a few CDN dollars this time. They don\u0026rsquo;t go quite as far as they used to.\nHere\u0026rsquo;s Christmas 2006, in thumbnails. The rest of my pictures are somewhere in Baltimore.\n","permalink":"https://bobcopeland.com/blog/2007/01/toronto-wrapup/","summary":"\u003cp\u003eI can\u0026rsquo;t remember what I was going to write here, except that I suck at Monopoly. We had a good time in Toronto even though it was crowded with eight people in a 2BR apartment. The weather was nice and warm. Weird, eh? Speaking of \u0026ldquo;eh,\u0026rdquo; I only heard one person say it, while we were watching some hockey game in a Queen Street pool hall. I came back with only a few CDN dollars this time. They don\u0026rsquo;t go quite as far as they used to.\u003c/p\u003e","title":"Toronto wrapup"},{"content":"Hrm, this evil project sounds familiar. Here\u0026rsquo;s hoping the contractors in Seattle that are implementing it aren\u0026rsquo;t hopeless idiots. /me scans work inbox\u0026hellip; oops, too late.\n","permalink":"https://bobcopeland.com/blog/2007/01/work-2/","summary":"\u003cp\u003eHrm, \u003ca href=\"http://www.schneier.com/blog/archives/2007/01/onedoj.html\"\u003ethis evil project\u003c/a\u003e sounds familiar. Here\u0026rsquo;s hoping the contractors in Seattle that are implementing it aren\u0026rsquo;t hopeless idiots. /me scans work inbox\u0026hellip; oops, too late.\u003c/p\u003e","title":"Work"},{"content":"Angeline \u0026amp; I went up to the not-quite-frozen north last week to visit her fam for Christmas. I shall account for time spent there in a future entry a few days from now, but not right now because the pictures I want to post are on my camera that I left there.\nInstead, I\u0026rsquo;ll continue to post about boring technical subjects. Today: one example of sucky Java performance (a topic which hardly anyone in the Java community cares about, apparently). I had a disagreement of opinion with a co-worker recently, as I was coming across code written by a 3rd person that went like:\npublic void getBar() { return this.bar; } public void doSomething() { getBar().frob(); getBar().xyzzy(); getBar().baz(); } I remarked that this sort of programming is not only extra typing, but performs poorly because inside doSomething we are now making six method calls instead of only the three we need. My co-worker suggested the Java compiler was smart enough to inline getBar(). I was skeptical for two reasons: first that getBar is public, so in order to allow subclasses to override it, it has to be in the Java-equivalent of a vtable, like every other Java method. Second, I\u0026rsquo;ve looked at the output of javac and it is really quite dumb.\nSo, I decided to make it easy on the compiler in a test program to see (excerpt):\nprivate static final String blah=\u0026#34;blah\u0026#34;; private final String getBlah() { return blah; } public void doit() { System.out.println(getBlah()); } There\u0026rsquo;s no way for a subclass to override getBlah or the value it returns; however, the code generated is:\npublic void doit(); Code: 0:\tgetstatic\t#3; //Field java/lang/System.out:Ljava/io/PrintStream; 3:\taload_0 4:\tinvokespecial\t#4; //Method getBlah:()Ljava/lang/String; 7:\tinvokevirtual\t#5; //Method java/io/PrintStream.println:(Ljava/lang/String;)V 10:\treturn Obviously, the final keyword does nothing. Now, I don\u0026rsquo;t know much about how the JVM/JIT will further optimize this, but this can\u0026rsquo;t be more efficient than a simple load of the variable onto the stack. We have to store this on the stack for one thing, and the JVM needs to store a return address somewhere. A small effect, sure, but why throw away performance?\nMaybe I\u0026rsquo;ll be evil and start asking why Java should have the \u0026lsquo;virtual\u0026rsquo; keyword in interviews.\n","permalink":"https://bobcopeland.com/blog/2006/12/back-from-toronto/","summary":"\u003cp\u003eAngeline \u0026amp; I went up to the not-quite-frozen north last week to visit her fam for Christmas. I shall account for time spent there in a future entry a few days from now, but not right now because the pictures I want to post are on my camera that I left there.\u003c/p\u003e\n\u003cp\u003eInstead, I\u0026rsquo;ll continue to post about boring technical subjects. Today: one example of sucky Java performance (a topic which hardly anyone in the Java community cares about, apparently). I had a disagreement of opinion with a co-worker recently, as I was coming across code written by a 3rd person that went like:\u003c/p\u003e","title":"Back from Toronto"},{"content":"\nArduino\nOriginally uploaded by bluesterror.\nI\u0026rsquo;ve had a few parts setting around a while for an upcoming electronics project, but it hasn\u0026rsquo;t gotten far off the ground because I was too lazy to spec out the control circuitry. I wanted it to be microcontroller based, but realizing that serial and parallel ports are ever-dwindling, I also wanted to make sure that I purchased/built a programmer that would still work in a few years\u0026rsquo; time. Enter the Arduino, a perfect little development board based around the Atmel ATmega8; at only $30 for the board and chip, it\u0026rsquo;s a great deal. The chip comes pre-programmed with a bootloader that you can use over USB to upload your programs.\nProgramming the microcontroller is a snap. The Linux toolchain features a port of gcc and a small libc. There\u0026rsquo;s also watered down dialect of C and an IDE that noobs can use, but I just skipped to building with the arduino libraries and avr-gcc directly. Within 15 minutes of installing the necessary packages, I had my first program uploaded and blinking an LED. Pictured above is the second try, a simple RGB pixel consisting of 3 LEDs which fade among themselves (the effect is less than perfect without a good diffuser and smaller LEDs).\nHere\u0026rsquo;s the code for the fade:\n`#include \u0026lt;WProgram.h\u0026gt; int rpin = 9; int gpin = 10; int bpin = 11; static int cols[3], i; void setup() { pinMode(rpin, OUTPUT); pinMode(gpin, OUTPUT); pinMode(bpin, OUTPUT); cols[0] = 255; cols[1] = 0; cols[2] = 0; } void next_color() { int before = i-1; if (before \u0026lt; 0) before = 2; if (cols[i] \u0026lt; 255) cols[i]++; else if (cols[before] \u0026gt; 0) cols[before]\u0026ndash;; else i = (i+1) % 3; } void loop() { next_color(); analogWrite(rpin, cols[0]); analogWrite(gpin, cols[1]); analogWrite(bpin, cols[2]); delay(10); }\n","permalink":"https://bobcopeland.com/blog/2006/12/arduino/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/318153392/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://static.flickr.com/135/318153392_8e83980ba2_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/318153392/\"\u003eArduino\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eI\u0026rsquo;ve had a few parts setting around a while for an upcoming electronics project, but it hasn\u0026rsquo;t gotten far off the ground because I was too lazy to spec out the control circuitry. I wanted it to be microcontroller based, but realizing that serial and parallel ports are ever-dwindling, I also wanted to make sure that I purchased/built a programmer that would still work in a few years\u0026rsquo; time. Enter the Arduino, a perfect little development board based around the Atmel ATmega8; at only $30 for the board and chip, it\u0026rsquo;s a great deal. The chip comes pre-programmed with a bootloader that you can use over USB to upload your programs.\u003c/p\u003e","title":"Arduino"},{"content":"While back in Atlanta two weeks ago, Angeline and I toured the one year old Georgia Aquarium, billed as the World\u0026rsquo;s Largest, perfect for a land-locked city, I hunted around the net the night before for some audio podcasts and found a couple, but the free ones that are on the official aquarium website are definitely the best. We followed the audio tour, looked around at the many fish, got hungry, then ate burgers at the Vortex, and I brought back lousy pictures. Click below for the goods.\n","permalink":"https://bobcopeland.com/blog/2006/12/aquarium/","summary":"\u003cp\u003eWhile back in Atlanta two weeks ago, Angeline and I toured the one year old Georgia Aquarium, billed as the World\u0026rsquo;s Largest, perfect for a land-locked city, I hunted around the net the night before for some audio podcasts and found a couple, but the free ones that are on the official aquarium website are definitely the best. We followed the audio tour, looked around at the many fish, got hungry, then ate burgers at the Vortex, and I brought back lousy pictures. Click below for the goods.\u003c/p\u003e","title":"Aquarium"},{"content":"I applied for a passport for the first time in mid-October of this year. I was sure that I had waited too long, that I would get one of these damnable passports with the RFID chips in them, and that my next purchase was sure to be an RFID zapper. But it arrived last week, and to my surprise, it lacked the magic you\u0026rsquo;ve-been-screwed symbol. It\u0026rsquo;s still not too late to get a non-chipped one! I believe it\u0026rsquo;s basically luck of the draw at this point, but for what it\u0026rsquo;s worth, I bought mine at the post office and got the non-expedited variety.\nWhew, 10 years until I have to get tagged. I\u0026rsquo;ll wait in the long line as long as they will let me, thank you very much.\nWhat\u0026rsquo;s wrong with RFID passports? How can I tell if my passport has an RFID chip?\n","permalink":"https://bobcopeland.com/blog/2006/11/papers-please/","summary":"\u003cp\u003eI applied for a passport for the first time in mid-October of this year. I was sure that I had waited too long, that I would get one of these damnable passports with the RFID chips in them, and that my next purchase was sure to be an RFID zapper. But it arrived last week, and to my surprise, it lacked the magic you\u0026rsquo;ve-been-screwed symbol. It\u0026rsquo;s still not too late to get a non-chipped one! I believe it\u0026rsquo;s basically luck of the draw at this point, but for what it\u0026rsquo;s worth, I bought mine at the post office and got the non-expedited variety.\u003c/p\u003e","title":"Papers, please"},{"content":"\nDon\u0026rsquo;t panic\nOriginally uploaded by bluesterror.\nEver since buying my Accord a couple of years ago, I\u0026rsquo;ve been an enthusiastic frequent user of the keyless entry, as well as an unenthusiastic occasional user of its far-too-easily-activated panic mode. Whenever I sit on my keys, press on the pocket where my key fob resides, or hold it just so (usually when I\u0026rsquo;m carrying in groceries at 11pm on my quiet residential street), my car\u0026rsquo;s horn starts blaring, lights flash, and I have to run to my car hitting the unlock button until it shuts up. Yesterday, I triggered it twice, so I finally decided to do something about it. So I did some surgery: I took a box knife to the traces on its PCB and after thirty minutes (made longer because I screwed up and had to fix a mistake) I now have a fully un-functioning panic button on this thing.\nI hope I never need it.\n","permalink":"https://bobcopeland.com/blog/2006/11/dont-panic/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/295527647/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://static.flickr.com/103/295527647_863d245a6e_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/295527647/\"\u003eDon\u0026rsquo;t panic\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eEver since buying my Accord a couple of years ago, I\u0026rsquo;ve been an enthusiastic frequent user of the keyless entry, as well as an unenthusiastic occasional user of its far-too-easily-activated panic mode. Whenever I sit on my keys, press on the pocket where my key fob resides, or hold it just so (usually when I\u0026rsquo;m carrying in groceries at 11pm on my quiet residential street), my car\u0026rsquo;s horn starts blaring, lights flash, and I have to run to my car hitting the unlock button until it shuts up. Yesterday, I triggered it twice, so I finally decided to do something about it. So I did some surgery: I took a box knife to the traces on its PCB and after thirty minutes (made longer because I screwed up and had to fix a mistake) I now have a fully un-functioning panic button on this thing.\u003c/p\u003e","title":"Don't panic"},{"content":"I think I voted today.\nAnge and I fulfilled our pre-Cana responsibilities in one fell swoop last week by attending a weekend retreat. As in, you must retreat from your senses to endure the silliness of the whole affair. The weekend was set up as a nonstop series of lectures by a parade of snippy, passive-aggressive Catholic couples (examples for us all), followed by sessions in which we betrothed would answer discussion questions and then privately compare notes on the matter. The first two or three were actually pretty good, touching on our past together, how we planned to handle various aspects of married life and our plans for the future. I\u0026rsquo;m happy to say Ange \u0026amp; I know each other well enough that we generally wrote the same things to each other. Then it got repetitive, and at turns disturbing, at which point we began writing essays with the sole aim of making the other laugh.\nHere are some excerpts:\nQ. How will our differences complement each other?\nA. It helps that you are a genetic male XY and I am a genetic female XX. On theology:\nOpen our hearts to God =\u0026gt; God is a heart surgeon =\u0026gt; God has God complex On sexuality in marriage, after the 60-year-old couple described their lovemaking-eww-eww-eww-ness:\nTips for keeping the flame alive: Movie fantasy \u0026#34;Special\u0026#34; foot rubs Hide X-rated greeting cards around the house Conflate sex with religion Dungeon On our future family:\nReasons for having children: Organ source DNA propagation Christmas gifts Kid\u0026#39;s menus Geriatric caregivers And then there were lots of snarky comments about Natural Family Planning, too. Despite our lack of reverence we graduated anyway, and all in all it wasn\u0026rsquo;t too bad, but I am so glad that\u0026rsquo;s over with.\n","permalink":"https://bobcopeland.com/blog/2006/11/gauged-encounter/","summary":"\u003cp\u003e\u003ca href=\"http://dilbertblog.typepad.com/the_dilbert_blog/2006/10/electronic_voti.html\"\u003eI think I voted today.\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eAnge and I fulfilled our pre-Cana responsibilities in one fell swoop last week\nby attending a weekend retreat. As in, you must retreat from your senses to\nendure the silliness of the whole affair. The weekend was set up as a nonstop\nseries of lectures by a parade of snippy, passive-aggressive Catholic couples\n(examples for us all), followed by sessions in which we betrothed would answer\ndiscussion questions and then privately compare notes on the matter. The first\ntwo or three were actually pretty good, touching on our past together, how we\nplanned to handle various aspects of married life and our plans for the future.\nI\u0026rsquo;m happy to say Ange \u0026amp; I know each other well enough that we generally wrote the same things to each other. Then it got repetitive, and at turns disturbing, at which point we began writing essays with the sole aim of making the other laugh.\u003c/p\u003e","title":"Gauged Encounter"},{"content":"\nDear people who pulled the fire alarm at Angeline\u0026rsquo;s apartment the other evening, causing the fire department to arrive, sirens a-blaring,\nPlease wait for warmer, non-rainy weather next time.\nThanks.\n","permalink":"https://bobcopeland.com/blog/2006/10/blaze/","summary":"\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/firetruck.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eDear people who pulled the fire alarm at Angeline\u0026rsquo;s apartment the other evening, causing the fire department to arrive, sirens a-blaring,\u003c/p\u003e\n\u003cp\u003ePlease wait for warmer, non-rainy weather next time.\u003c/p\u003e\n\u003cp\u003eThanks.\u003c/p\u003e","title":"Blaze"},{"content":"Dear lazy web,\nIt would be nice if you could tell me a non-hacky way to do progress dialogs from within the event-dispatch thread in Swing, where all of our application logic happens to reside.\nThis doesn\u0026rsquo;t work: display modal dialog start worker thread (won\u0026rsquo;t run because event thread is blocked)\nNor does this: start worker thread display modal dialog (race condition hiding the dialog)\nJoining in the event thread won\u0026rsquo;t work because it blocks updates. Using a non-modal dialog and passing the bottom-half of the rest of the event thread to the worker thread to execute at completion will work, but is obscenely messy. Or, one can spin in the beginning of the thread waiting for the modal dialog to appear to avoid the race condition, but that is still gross. One could subclass Dialog and have it also signal a condition variable once it blocks\u0026hellip; ugh.\n","permalink":"https://bobcopeland.com/blog/2006/10/i-dislike-java/","summary":"\u003cp\u003eDear lazy web,\u003c/p\u003e\n\u003cp\u003eIt would be nice if you could tell me a non-hacky way to do progress dialogs from within the event-dispatch thread in Swing, where all of our application logic happens to reside.\u003c/p\u003e\n\u003cp\u003eThis doesn\u0026rsquo;t work:\n\u003ccode\u003edisplay modal dialog start worker thread\u003c/code\u003e (won\u0026rsquo;t run because event thread is blocked)\u003c/p\u003e\n\u003cp\u003eNor does this:\n\u003ccode\u003estart worker thread display modal dialog\u003c/code\u003e (race condition hiding the dialog)\u003c/p\u003e\n\u003cp\u003eJoining in the event thread won\u0026rsquo;t work because it blocks updates. Using a non-modal dialog and passing the bottom-half of the rest of the event thread to the worker thread to execute at completion will work, but is obscenely messy. Or, one can spin in the beginning of the thread waiting for the modal dialog to appear to avoid the race condition, but that is still gross. One could subclass Dialog and have it also signal a condition variable once it blocks\u0026hellip; ugh.\u003c/p\u003e","title":"I dislike Java."},{"content":"\nAs the ticket says, last night we went to the State to catch Al Di Meola, who is touring in support of his new CD Consequences of Chaos. Amazing show replete with Di Meola\u0026rsquo;s signature blazing-fast yet incredibly clean lines. The Project led off with a few selections from the new CD, then went into Azzura, Fugata, and from there into a rousing rendition of the Santana-like single from the new CD, \u0026ldquo;Red Moon.\u0026rdquo; The band took a break and came back with Al playing a few Piazzolla pieces solo on his nylon string guitar, the last teaming up with pianist Mario Parmisano who unfortunately loaded up the bandoneon patch on his keyboard (can\u0026rsquo;t we pretend those instruments never existed?). After that, Al picked up the PRS again, launched into \u0026ldquo;Turquoise\u0026rdquo; off of the new album, then the Chick Corea tune \u0026ldquo;Senor Mouse.\u0026rdquo; I can\u0026rsquo;t remember what finished up the set, but the encores were ambitious: \u0026ldquo;Race With the Devil\u0026rdquo; followed by \u0026ldquo;Egyptian Danza.\u0026rdquo; The only flaws in the performance lie at the feet of the sound engineers who had problems with feedback in the middle of the show, poor mixes, and a speaker that was picking up a radio station as if it was right out of Spinal Tap.\n","permalink":"https://bobcopeland.com/blog/2006/10/fusion/","summary":"\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/al_tkt.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eAs the ticket says, last night we went to the State to catch Al Di Meola, who is touring in support of his new CD \u003cem\u003eConsequences of Chaos\u003c/em\u003e. Amazing show replete with Di Meola\u0026rsquo;s signature blazing-fast yet incredibly clean lines. The Project led off with a few selections from the new CD, then went into Azzura, Fugata, and from there into a rousing rendition of the Santana-like single from the new CD, \u0026ldquo;Red Moon.\u0026rdquo; The band took a break and came back with Al playing a few Piazzolla pieces solo on his nylon string guitar, the last teaming up with pianist Mario Parmisano who unfortunately loaded up the bandoneon patch on his keyboard (can\u0026rsquo;t we pretend those instruments never existed?). After that, Al picked up the PRS again, launched into \u0026ldquo;Turquoise\u0026rdquo; off of the new album, then the Chick Corea tune \u0026ldquo;Senor Mouse.\u0026rdquo; I can\u0026rsquo;t remember what finished up the set, but the encores were ambitious: \u0026ldquo;Race With the Devil\u0026rdquo; followed by \u0026ldquo;Egyptian Danza.\u0026rdquo; The only flaws in the performance lie at the feet of the sound engineers who had problems with feedback in the middle of the show, poor mixes, and a speaker that was picking up a radio station as if it was right out of Spinal Tap.\u003c/p\u003e","title":"Fusion"},{"content":"I just finished reading Woodward\u0026rsquo;s new book, State of Denial, a very provocative and damning look at the Bush administration\u0026rsquo;s handling of the war in Iraq. My take-aways are: Rumsfeld is a jerk, a bunch of PhDs can bollocks things up quite nicely merely by lying, and Colin Powell is an AOLer. Worth a read.\nNo idea what to be for Halloween this year. I suppose that is okay since I don\u0026rsquo;t have any plans either. Perhaps I should make another rock-icon-o-lantern?\n","permalink":"https://bobcopeland.com/blog/2006/10/denied-2/","summary":"\u003cp\u003eI just finished reading Woodward\u0026rsquo;s new book, \u003cem\u003eState of Denial\u003c/em\u003e, a very provocative and damning look at the Bush administration\u0026rsquo;s handling of the war in Iraq. My take-aways are: Rumsfeld is a jerk, a bunch of PhDs can bollocks things up quite nicely merely by lying, and Colin Powell is an AOLer. Worth a read.\u003c/p\u003e\n\u003cp\u003eNo idea what to be for Halloween this year. I suppose that is okay since I don\u0026rsquo;t have any plans either. Perhaps I should make another rock-icon-o-lantern?\u003c/p\u003e","title":"Denied"},{"content":"I\u0026rsquo;ve been sick the last few days. Meh.\nI went down to Georgia last weekend, looking for a soul to steal, as usual. My grandparents have attained their sixtieth year of marriage this year, so I spent 20 hours in the Atlanta suburb in which I once resided.\nThe lady at the check-in counter told me to have a nice flight, and I said \u0026ldquo;you too.\u0026rdquo; I used to enjoy flying, but the soviet checkpoints we must navigate now have really killed it for me. Wearing my EFF shirt, I was surprised to not get the magic SSSes on my boarding pass. The trek through the screening area still sucked, though, even without the special treatment. I expect that for Thanksgiving I\u0026rsquo;ll be driving my car instead. Thanks, 4th amendment haters.\nMy grandparents are doing well. My grandfather congratulated me on the engagement news and wished us our own 60 years of bliss. We grandchildren presented them with a scrapbook of various detritus of our lives and toasted their health. Teary tributes were made, and so on. It was a nice visit, if too brief.\n","permalink":"https://bobcopeland.com/blog/2006/10/lx/","summary":"\u003cp\u003eI\u0026rsquo;ve been sick the last few days. Meh.\u003c/p\u003e\n\u003cp\u003eI went down to Georgia last weekend, looking for a soul to steal, as usual. My grandparents have attained their sixtieth year of marriage this year, so I spent 20 hours in the Atlanta suburb in which I once resided.\u003c/p\u003e\n\u003cp\u003eThe lady at the check-in counter told me to have a nice flight, and I said \u0026ldquo;you too.\u0026rdquo; I used to enjoy flying, but the soviet checkpoints we must navigate now have really killed it for me. Wearing my EFF shirt, I was surprised to not get the magic SSSes on my boarding pass. The trek through the screening area still sucked, though, even without the special treatment. I expect that for Thanksgiving I\u0026rsquo;ll be driving my car instead. Thanks, 4th amendment haters.\u003c/p\u003e","title":"LX"},{"content":"Fun fact: F Scott Fitzgerald and family are buried next to the chapel where Ange \u0026amp; I are to be married. Neat.\nBTW, if any of my few readers happen to be job hunting, let me know, as our company needs programmers badly.\n","permalink":"https://bobcopeland.com/blog/2006/10/dead-literati/","summary":"\u003cp\u003eFun fact: F Scott Fitzgerald and family are \u003ca href=\"http://en.wikipedia.org/wiki/Saint_Mary%27s_Cemetery_%28Maryland%29\"\u003eburied\u003c/a\u003e next to the chapel where Ange \u0026amp; I are to be married. Neat.\u003c/p\u003e\n\u003cp\u003eBTW, if any of my few readers happen to be job hunting, let me know, as our company needs programmers badly.\u003c/p\u003e","title":"Dead literati"},{"content":"Well, some progress has been made in the wedding planning, including the tentative selection of date: 15 Sept 2007. First, though, we have to talk to the priest this weekend and consequently do a bit of acting as to the degree of our collective piousness. Here\u0026rsquo;s hoping we\u0026rsquo;re judged to be adequate.\nNot much else going on this weekend, other than the Battle of Techs on the gridiron. May the worst team lose!\n","permalink":"https://bobcopeland.com/blog/2006/09/date-saved/","summary":"\u003cp\u003eWell, some progress has been made in the wedding planning, including the tentative selection of date: 15 Sept 2007. First, though, we have to talk to the priest this weekend and consequently do a bit of acting as to the degree of our collective piousness. Here\u0026rsquo;s hoping we\u0026rsquo;re judged to be adequate.\u003c/p\u003e\n\u003cp\u003eNot much else going on this weekend, other than the Battle of Techs on the gridiron. May the worst team lose!\u003c/p\u003e","title":"Date saved"},{"content":"Most of the pirate stuff annoys the heck out of me on talk like a pirate day (that was yesterday by the way, yarr and so forth). But Linus\u0026rsquo;kernel announcement yesterday was priceless, though he could stand to work on his piratese.\nMy next kernel contribution should ship with 2.6.19, w00t.\n","permalink":"https://bobcopeland.com/blog/2006/09/keelhaul-handlin-of-oem-flags/","summary":"\u003cp\u003eMost of the pirate stuff annoys the heck out of me on talk like a pirate day (that was yesterday by the way, yarr and so forth). But Linus\u0026rsquo;\u003ca href=\"http://marc.theaimsgroup.com/?l=linux-kernel\u0026amp;m=115872699122126\u0026amp;w=2\"\u003ekernel announcement\u003c/a\u003e yesterday was priceless, though he could stand to work on his piratese.\u003c/p\u003e\n\u003cp\u003eMy next kernel contribution should ship with 2.6.19, w00t.\u003c/p\u003e","title":"keelhaul handlin' of OEM flags"},{"content":"I saw a guy with a sticker on his backpack today that said \u0026ldquo;Rideing Durty.\u0026rdquo; Now, I know this has something to do with some song, and that it is also cool/trademarkable in some circles to spell things wrong (see Fabolous), but seriously, rideing? If you were the printer making said sticker, how could you let that one get through?\nAlso, Oscar Mayer is now making cooking hot dogs easier. Is this the state of culinary despair to which our society has sunk, that cooking hot dogs is too onerus? I love the write-up in the press release: \u0026ldquo;Preparation is easy, and thereâ€™s no cook top mess or boiling water!\u0026rdquo; Oh, heavens, that my prayers have been answered so fully! I fear I\u0026rsquo;ll be telling my future children how I remember it taking almost a minute to make a hot dog, and we had to open the buns ourselves! And grilled cheese, boy was that a sisyphean task\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2006/09/people-are-dumb/","summary":"\u003cp\u003eI saw a guy with a sticker on his backpack today that said \u0026ldquo;Rideing Durty.\u0026rdquo; Now, I know this has something to do with some song, and that it is also cool/trademarkable in some circles to spell things wrong (see Fabolous), but seriously, rideing? If you were the printer making said sticker, how could you let that one get through?\u003c/p\u003e\n\u003cp\u003eAlso, Oscar Mayer is now \u003ca href=\"http://www.kraft.com/newsroom/OMRanks.html\"\u003emaking cooking \u003cem\u003ehot dogs\u003c/em\u003e easier\u003c/a\u003e. Is this the state of culinary despair to which our society has sunk, that cooking hot dogs is too onerus? I love the write-up in the press release: \u0026ldquo;Preparation is easy, and thereâ€™s no cook top mess or boiling water!\u0026rdquo; Oh, heavens, that my prayers have been answered so fully! I fear I\u0026rsquo;ll be telling my future children how I remember it taking almost a minute to make a hot dog, and we had to open the buns ourselves! And grilled cheese, boy was that a sisyphean task\u0026hellip;\u003c/p\u003e","title":"People are dumb"},{"content":"I was messing around with Java bytecode today for no particular reason. It\u0026rsquo;s a fairly simple assembly language \u0026ndash; stack based so it takes a little getting used to but not hard for anyone who has used an HP calculator. I installed a copy of jasmin from my apt repository and got to work.\nI wanted to make a \u0026ldquo;Hello, world!\u0026rdquo; that wasn\u0026rsquo;t completely obvious at first blush, so the plan of attack was to just push all the ascii codes on the stack in reverse order then call System.out.print() on them in a loop. Each iteration checks the loop count, if ok then pop the next code and print it. Here is where the bytecode verifier is a pain in the ass: apparently, the instructions must be executed each time through a loop with the same stacksize, or else you are branded an evil hacker. Very annoying. I could\u0026rsquo;ve used an array instead but that also takes a bunch of pushes and stores, so I just unrolled the loop. It works, I guess. Code after the jump.\n.class Xyz .super java/lang/Object .method public static zyx(C)V .limit stack 2 getstatic java/lang/System/out Ljava/io/PrintStream; iload 0 invokevirtual java/io/PrintStream/print(C)V return .end method .method public static main([Ljava/lang/String;)V .limit stack 14 bipush 10 bipush 0x21 bipush 100 bipush 0x6c bipush 114 dup bipush -3 iadd bipush 0x77 bipush 32 bipush 44 bipush 0x6f bipush 108 dup bipush 101 bipush 72 invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V invokestatic Xyz/zyx(C)V return .end method ","permalink":"https://bobcopeland.com/blog/2006/09/hello-java/","summary":"\u003cp\u003eI was messing around with Java bytecode today for no particular reason. It\u0026rsquo;s a fairly simple assembly language \u0026ndash; stack based so it takes a little getting used to but not hard for anyone who has used an HP calculator. I installed a copy of jasmin from my apt repository and got to work.\u003c/p\u003e\n\u003cp\u003eI wanted to make a \u0026ldquo;Hello, world!\u0026rdquo; that wasn\u0026rsquo;t completely obvious at first blush, so the plan of attack was to just push all the ascii codes on the stack in reverse order then call System.out.print() on them in a loop. Each iteration checks the loop count, if ok then pop the next code and print it. Here is where the bytecode verifier is a pain in the ass: apparently, the instructions must be executed each time through a loop with the same stacksize, or else you are branded an evil hacker. Very annoying. I could\u0026rsquo;ve used an array instead but that also takes a bunch of pushes and stores, so I just unrolled the loop. It works, I guess. Code after the jump.\u003c/p\u003e\n","title":"Hello, java!"},{"content":"Philly didn\u0026rsquo;t happen, again because of rain. I saw on their website that the game went on anyway. Bah.\nMy ubuntu install is doing a bit better after a week of various customizations. Now the Fn key and all of the special laptop keys do things (more than I ever had working on my Dell), and tap-to-click is going on the touchpad. I\u0026rsquo;m still having a strange problem with HAL, however, and negotiating its maze of XML config files isn\u0026rsquo;t the best. While looking for help, I saw this: Ubuntu bug #1. Silly, but I like the feedback, especially the \u0026ldquo;it\u0026rsquo;s a feature!\u0026rdquo; post.\n","permalink":"https://bobcopeland.com/blog/2006/09/bug/","summary":"\u003cp\u003ePhilly didn\u0026rsquo;t happen, again because of rain. I saw on their website that the game went on anyway. Bah.\u003c/p\u003e\n\u003cp\u003eMy ubuntu install is doing a bit better after a week of various customizations. Now the Fn key and all of the special laptop keys do things (more than I ever had working on my Dell), and tap-to-click is going on the touchpad. I\u0026rsquo;m still having a strange problem with HAL, however, and negotiating its maze of XML config files isn\u0026rsquo;t the best. While looking for help, I saw this: \u003ca href=\"https://launchpad.net/distros/ubuntu/+bug/1\"\u003eUbuntu bug #1\u003c/a\u003e. Silly, but I like the feedback, especially the \u0026ldquo;it\u0026rsquo;s a feature!\u0026rdquo; post.\u003c/p\u003e","title":"Bug"},{"content":"Well, because the last trip was such a success (rained out ballgame), this Saturday a few of us are heading back to Philly to cash in the raincheck. Here\u0026rsquo;s hoping we have enough time for a wiz wit (and of course to soak up all the culture that PA has to offer.)\nIn other news, I have a new laptop. After getting pissed at my Dell for its recent habit of turning itself off whenever it feels like it (hmm, just like my old Sony!), I picked up an Intel MacBook. Yep, my IQ points are already receding. First thoughts \u0026ndash; OSX is pretty cool but I probably won\u0026rsquo;t use it much: better than hockey pucks but still too graphical for a real Unix user.\nI installed ubuntu on the other half of the hard drive, and discovered an interesting failure mode of the use-sudo/no-root-password mindset. If you change the hostname (via vi /etc/hostname) without updating the hosts file, you\u0026rsquo;re screwed: sudo won\u0026rsquo;t work anymore so you have to boot single user mode to fix it. Ubuntu is a slightly more polished debian, but some things grate: \u0026rsquo;nano\u0026rsquo; as the default text editor? Icky.\nThe mac keyboard needs some work. No PgUp/Dn, Caps lock is huge and frequently triggered, Backspace is called Delete. A little xmodmap and it\u0026rsquo;s not so bad though.\n","permalink":"https://bobcopeland.com/blog/2006/08/its-always-rainy-in-philadelphia/","summary":"\u003cp\u003eWell, because the last trip was such a success (rained out ballgame), this Saturday a few of us are heading back to Philly to cash in the raincheck. Here\u0026rsquo;s hoping we have enough time for a wiz wit (and of course to soak up all the culture that PA has to offer.)\u003c/p\u003e\n\u003cp\u003eIn other news, I have a new laptop. After getting pissed at my Dell for its recent habit of turning itself off whenever it feels like it (hmm, just like my old Sony!), I picked up an Intel MacBook. Yep, my IQ points are already receding. First thoughts \u0026ndash; OSX is pretty cool but I probably won\u0026rsquo;t use it much: better than hockey pucks but still too graphical for a real Unix user.\u003c/p\u003e","title":"It's always rainy in Philadelphia"},{"content":"Sign seen in Falls Church:\n","permalink":"https://bobcopeland.com/blog/2006/08/perfectly-reputable-business/","summary":"\u003cp\u003eSign seen in Falls Church:\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/ending.jpg\"\u003e\u003c/p\u003e","title":"Perfectly reputable business"},{"content":"It can be a humbling experience to revist old code. And I\u0026rsquo;m not talking about the dynamic simulation stuff, which is obviously a hack on top of a pile of hacks. No, this week I returned to my old pal ansiconv, the program that converts text files to images of the text file, rendering it as if you had ANSI.SYS loaded and typed TYPE KOOL.ANS at the cee colon backslash prompt. This program had achieved a modicum of success in its heyday but lately various alternatives have popped up written in languages such as C# and PHP. Being the C bigot that I am (one who writes Java for a living), I thought I would update this one great program, slap a PHP module interface on it, and unleash it upon the world.\nStylistically, the program was a mess: 2-space indentations, curly braces on the same line as the function definition, spaces (( after the )) parentheses, seemingly no rhyme or reason to naming of typedefs, and, horror of horrors, extensive use of studlyCaps. Oh, how I had strayed from the Unix flock. Even worse, I found an obvious bug in TAB character handling; a memleak or two in the error paths; infrequent to non-existent use of the static keyword; global variables aplenty, in one place documented \u0026ldquo;to ease calling into functions\u0026rdquo; (had I some phobia of struct?); and even a case of a function returning a pointer to a global variable. Take that ctime(3). All this in the space of some 2 KLOC.\nThe good news is, a few hours with vim and the codebase is much better: no more globals, no more leaks, no more uglyNamingConventions. I changed the build to create a library with a single entry point, which the ansiconv binary uses to work its magic. All the CGI support code was ripped out, and I wrote a small PHP module that utilizes libansiconv to do stuff on the web. Finally, I borrowed an enhancement from our friends who wrote the newer ansi converters, which is to emit 4 bits-per-pixel images when we can to reduce their size.\nThe other ansi converters are more full-featured, but C still wins in speed, hands down. A rough test shows ansiconv converts around 2500 ansis/minute, compared with 270 ansis/min for another popular PHP converter (both tests include the overhead of starting the PHP interpreter).\nIf you have no freakin clue what this post is on about, visit Doug\u0026rsquo;s great page, 16c.\n","permalink":"https://bobcopeland.com/blog/2006/08/blocks/","summary":"\u003cp\u003eIt can be a humbling experience to revist old code. And I\u0026rsquo;m not talking about the dynamic simulation stuff, which is obviously a hack on top of a pile of hacks. No, this week I returned to my old pal ansiconv, the program that converts text files to images of the text file, rendering it as if you had ANSI.SYS loaded and typed \u003ccode\u003eTYPE KOOL.ANS\u003c/code\u003e at the cee colon backslash prompt. This program had achieved a modicum of success in its heyday but lately various alternatives have popped up written in languages such as C# and PHP. Being the C bigot that I am (one who writes Java for a living), I thought I would update this one great program, slap a PHP module interface on it, and unleash it upon the world.\u003c/p\u003e","title":"blocks"},{"content":" Bob, We appreciate you coming by on Wednesday. Your playing was awesome, however we do not feel that that style would fit in the direction that we would like go. Good luck in your future endeavors.\nOh well.\n","permalink":"https://bobcopeland.com/blog/2006/08/denied/","summary":"\u003cblockquote\u003e\n\u003cp\u003e\u003cem\u003eBob,\u003c/em\u003e\n\u003cem\u003eWe appreciate you coming by on Wednesday. Your playing was awesome, however we do not feel that that style would fit in the direction that we would like go. Good luck in your future endeavors.\u003c/em\u003e\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eOh well.\u003c/p\u003e","title":"Denied"},{"content":"Well, Herring and the boys put on a fine show last Friday night. Rodgers reprised his Codetalkers role as the twangy-voiced banjo picker, Herring blazed through his usual set of chromatic runs and intervallic melodies, Sipe served up an amazing drum solo, and Fountain rounded out the group, hefting a six string bass to sub-1kHz heights. I will admit to nearly falling asleep during some of the more wordy songs, especially the one about unicorns and rainbows, but the odd reference to guts splattered on walls reeled me back in. I wouldn\u0026rsquo;t mind seeing JH let loose a bit more, but of course I\u0026rsquo;m biased.\nIn other guitar hero news, I have an audition tonight. This will actually be the third band I\u0026rsquo;ve auditioned with post-SD, to no avail so far. We\u0026rsquo;ll see how it goes.\n","permalink":"https://bobcopeland.com/blog/2006/08/rodgered/","summary":"\u003cp\u003eWell, Herring and the boys put on a fine show last Friday night. Rodgers reprised his Codetalkers role as the twangy-voiced banjo picker, Herring blazed through his usual set of chromatic runs and intervallic melodies, Sipe served up an amazing drum solo, and Fountain rounded out the group, hefting a six string bass to sub-1kHz heights. I will admit to nearly falling asleep during some of the more wordy songs, especially the one about unicorns and rainbows, but the odd reference to guts splattered on walls reeled me back in. I wouldn\u0026rsquo;t mind seeing JH let loose a bit more, but of course I\u0026rsquo;m biased.\u003c/p\u003e","title":"Rodgered"},{"content":"Wondering what to do this weekend? Well here you go: Herring, Rodgers, Sipe, and Fountain are playing at the State\u0026rsquo;s late show on Saturday. Yup, that\u0026rsquo;s Jimmy Herring (ARU, ProjectZ, Dragonflies, Jazz is Dead, Codetalkers), the best unknown guitarist alive today. Rodgers (Codetalkers) is no slouch himself. The other guys I have no idea, but I do know this will be a kick ass show. 10pm.\n","permalink":"https://bobcopeland.com/blog/2006/08/cod/","summary":"\u003cp\u003eWondering what to do this weekend? Well here you go: Herring, Rodgers, Sipe, and Fountain are playing at the State\u0026rsquo;s late show on Saturday. Yup, that\u0026rsquo;s \u003cem\u003eJimmy\u003c/em\u003e Herring (ARU, ProjectZ, Dragonflies, Jazz is Dead, Codetalkers), the best unknown guitarist alive today. Rodgers (Codetalkers) is no slouch himself. The other guys I have no idea, but I do know this will be a kick ass show. 10pm.\u003c/p\u003e","title":"Cod"},{"content":"\nEngagement ring\nOriginally uploaded by bluesterror.\nHere\u0026rsquo;s the pretty present I gave to Angeline yesterday. Yes, that\u0026rsquo;s right, I\u0026rsquo;m soon to be among the few people on earth to have both code in the Linux kernel, and a wife.\nShe came over to my house after work, where I had candles burning and a half dozen roses in hand. Then I produced the ring box, knelt, and popped the question, to an enthusiastic \u0026lsquo;yes!\u0026rsquo;\nShe knew it was coming so it wasn\u0026rsquo;t a huge surprise, but I kept dinner secret, so she was thrilled when we showed up at Galileo for dinner. There, we enjoyed a three course meal that was delicious, though skimpy (we skipped the pasta course which is probably why I\u0026rsquo;m starving this morning). Angeline had candied beet salad, breaded sea bass for the entree, and three kinds of chocolate for dessert, while I partook of the grilled tuna salad, three kinds of rabbit, and three kinds of gelato. Marvelous, but still needs work to match up to Five Guys.\nSo far no concrete plans have been made regarding dates, venues and all that but I\u0026rsquo;m sure I\u0026rsquo;ll blog about various wedding minutiae in the year to come.\n","permalink":"https://bobcopeland.com/blog/2006/08/engaged/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/208003349/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://static.flickr.com/59/208003349_c5fbfa5f7e_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/208003349/\"\u003eEngagement ring\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eHere\u0026rsquo;s the pretty present I gave to Angeline yesterday. Yes, that\u0026rsquo;s right, I\u0026rsquo;m soon to be among the few people on earth to have both code in the Linux kernel, \u003cem\u003eand\u003c/em\u003e a wife.\u003c/p\u003e\n\u003cp\u003eShe came over to my house after work, where I had candles burning and a half dozen roses in hand. Then I produced the ring box, knelt, and popped the question, to an enthusiastic \u0026lsquo;yes!\u0026rsquo;\u003c/p\u003e","title":"Engaged"},{"content":"What I want to know is: when are we going to get the terrorists for making it so hot?\n","permalink":"https://bobcopeland.com/blog/2006/08/105/","summary":"\u003cp\u003eWhat I want to know is: when are we going to get the terrorists for making it so hot?\u003c/p\u003e","title":"105"},{"content":"I was feeling craft-y today so I made fridge magnets out of guitar picks. The Derek Trucks Band one came from a Derek Trucks Band merch stand, though.\n","permalink":"https://bobcopeland.com/blog/2006/07/picks/","summary":"\u003cp\u003eI was feeling craft-y today so I made fridge magnets out of guitar picks. The Derek Trucks Band one came from a Derek Trucks Band merch stand, though.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/pickmags.jpg\"\u003e\u003c/p\u003e","title":"Picks"},{"content":"Last weekend I jumped on a bus full of snippy former Atlantans and visited my favorite city within a 3 hour drive (DC excepted of course)\u0026hellip; and that is Philadelphia. But you already knew that because of the subject. So you probably also figured that I would speak again about how good Amoroso\u0026rsquo;s rolls are when covered in beef and provolone, and you\u0026rsquo;d be wrong, because this time I got Cheez-whiz. Anyhow, our goal was to go watch a Braves-Phillies game in the stadium over there, but it rained all afternoon, so instead we watched \u0026ldquo;Phillie [sic] Phanatic Goes To Hollywood\u0026rdquo; on the jumbotron until they called the game. Then we ran up the steps of the art museum just like Rocky, if Rocky was really uncoordinated and was nine out of shape people who have never been in a fight. Finally we had awful food in an awful bar, then came home. I swear I had something interesting to say but I forgot what exactly. Oh well.\n","permalink":"https://bobcopeland.com/blog/2006/07/philly/","summary":"\u003cp\u003eLast weekend I jumped on a bus full of snippy former Atlantans and visited my favorite city within a 3 hour drive (DC excepted of course)\u0026hellip; and that is Philadelphia. But you already knew that because of the subject. So you probably also figured that I would speak again about how good Amoroso\u0026rsquo;s rolls are when covered in beef and provolone, and you\u0026rsquo;d be wrong, because this time I got Cheez-whiz. Anyhow, our goal was to go watch a Braves-Phillies game in the stadium over there, but it rained all afternoon, so instead we watched \u0026ldquo;Phillie [sic] Phanatic Goes To Hollywood\u0026rdquo; on the jumbotron until they called the game. Then we ran up the steps of the art museum just like Rocky, if Rocky was really uncoordinated and was nine out of shape people who have never been in a fight. Finally we had awful food in an awful bar, then came home. I swear I had something interesting to say but I forgot what exactly. Oh well.\u003c/p\u003e","title":"Philly"},{"content":"They\u0026rsquo;ve been around a while and made the blog rounds a year ago, but for the first time I saw a pair of these in the wild. From the people who brought you MP3 player shoes come the coolest thing I have ever seen: shoes with spinners.\n","permalink":"https://bobcopeland.com/blog/2006/07/kicks/","summary":"\u003cp\u003eThey\u0026rsquo;ve been around a while and made the blog rounds a year ago, but for the first time I saw a pair of these in the wild. From the people who brought you \u003ca href=\"http://www.engadget.com/2006/03/09/dada-unleashes-code-m-mp3-shoes-on-an-unsuspecting-populace/\"\u003eMP3 player shoes\u003c/a\u003e come the coolest thing I have ever seen: shoes with spinners.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"http://www.weblogsinc.com/common/images/2509517750662485.JPG\"\u003e\u003c/p\u003e","title":"Kicks"},{"content":"Delays on Metro today:\nA train experiencing mechanical problems at Reagan National\nA broken track circuit at Federal Triangle\nA sick guy at Pentagon City\nI might consider this some sort of perfect storm of mishaps, all just happening to occur during a single commute on all of the lines I take, except that this is starting to be the norm.\n","permalink":"https://bobcopeland.com/blog/2006/06/delayed/","summary":"\u003cp\u003eDelays on Metro today:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eA train experiencing mechanical problems at Reagan National\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eA broken track circuit at Federal Triangle\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eA sick guy at Pentagon City\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eI might consider this some sort of perfect storm of mishaps, all just happening to occur during a single commute on all of the lines I take, except that this is starting to be the norm.\u003c/p\u003e","title":"Delayed"},{"content":"Look what I did:\n","permalink":"https://bobcopeland.com/blog/2006/06/banshee/","summary":"\u003cp\u003eLook what I did:\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/banshee-sm.png\"\u003e\u003c/p\u003e","title":"Banshee"},{"content":"I was planning Wednesday morning to try out my aerial kite photography rig on the beach, but the saltwater that thoroughly soaked us on the day before destroyed the CVS \u0026ldquo;disposable\u0026rdquo; digital camera. It would turn on but then emit woeful beeps and Windows warned me that the USB device was out of spec. Oh well \u0026ndash; I\u0026rsquo;ll try to get another camera and give this another shot soon.\nWe decided instead to have a leisurely breakfast then head out for an afternoon of kayaking. The resort had a half-dozen kayaks available for checkout so we took a two-seater into the bay. This is a fun way to spend an hour, but we\u0026rsquo;d have done well to remember this rule: start out against the current, so you can just coast back to the launching point. Our trip back was exhausting.\nAfter a few hours of relaxing seaside, it was time to make dinner plans. The Terrace at the Buccaneer hotel is a highly rated restaurant, and for good reason. There we enjoyed a four course meal on the veranda overlooking a bay and the lights of the Christainsted harbor. The food was excellent and service unmatched: a great place to spend our last night out.\nThursday morning we headed out to the airport, and arrived on time despite the unreliabile cab service. One long flight back to Baltimore and we were home. It is good to be back, but I won\u0026rsquo;t complain if I find my way back to the island some day.\n","permalink":"https://bobcopeland.com/blog/2006/06/st-croix-wrapup/","summary":"\u003cp\u003eI was planning Wednesday morning to try out my aerial kite photography rig on the beach, but the saltwater that thoroughly soaked us on the day before destroyed the CVS \u0026ldquo;disposable\u0026rdquo; digital camera. It would turn on but then emit woeful beeps and Windows warned me that the USB device was out of spec. Oh well \u0026ndash; I\u0026rsquo;ll try to get another camera and give this another shot soon.\u003c/p\u003e\n\u003cp\u003eWe decided instead to have a leisurely breakfast then head out for an afternoon of kayaking. The resort had a half-dozen kayaks available for checkout so we took a two-seater into the bay. This is a fun way to spend an hour, but we\u0026rsquo;d have done well to remember this rule: start out against the current, so you can just coast back to the launching point. Our trip back was exhausting.\u003c/p\u003e","title":"St. Croix wrapup"},{"content":"We ate dinner last night at Kendrick\u0026rsquo;s in Christainsted. The waiter earned Angeline\u0026rsquo;s ire by arguing with her over how she should have her food cooked. I had a grilled filet mignon in an orange-tinted bouillabaise, and Ange had a pan-seared tuna. My filet was a little overly clove-y, but done to perfection. The food was good, but as a Frommer\u0026rsquo;s two-star recommendation, I expected more.\nWe got up this morning to do a half day trip on Buck Island, the best beach and snorkeling spot around St. Croix. I had arranged a cab to pick us up at 11 so we could make the check-in time at 11:30. It finally showed, after a couple of calls, twenty-five minutes late. But all was well, we arrived just in time to board.\nThe transportation to and from the island is in a low two sail, one screw vessel that barely seats the thirty of us on her bulkheads and deck. Angeline and I found a nice spot next to a hatch and relaxed as the ship slowly left port. The seas were a bit rough that day, and we were soaked by spray that washed over the decks. And just in case anyone wasn\u0026rsquo;t fully wet, a hard rainstorm hit at the halfway point and drenched us for a good twenty minutes.\nThe rain dissipated as we neared the island. Someone spotted a dorsal fin off the bow, and we all craned our necks to see the source: a pair of dolphins swimming ahead of the ship. We watched, enthralled, as they swam on either side of the boat, came up for air a few times, and eventually lost interest and headed off.\nWe spent the next forty minutes or so snorkeling, near a large coral reef. All sorts of tropical fish swam in this underwater ecosystem. Blue ones, silver ones, skinny ones, fat ones. Yes, I am no marine biologist. I also swallowed a liter or so of saltwater due to poor snorkel technique.\nThe way home had another rain storm in store for us, of course. On the way we saw a pair of sea turtles mating on top of the water. The circle of life, and all that. We ate early dinner/really late lunch at Rum Runners in town. I had a jerk-style pork tenderloin and Angeline had huge cheese-covered scallops. This may have been the best meal so far despite the restaurant\u0026rsquo;s lack of stars in the guidebook.\nThe water here must be extremely salty, as cakes of salt kept appearing on our limbs and especially in our bathing suits. Nasty.\n","permalink":"https://bobcopeland.com/blog/2006/06/tuesday-on-st-croix/","summary":"\u003cp\u003eWe ate dinner last night at Kendrick\u0026rsquo;s in Christainsted. The waiter earned Angeline\u0026rsquo;s ire by arguing with her over how she should have her food cooked. I had a grilled filet mignon in an orange-tinted bouillabaise, and Ange had a pan-seared tuna. My filet was a little overly clove-y, but done to perfection. The food was good, but as a Frommer\u0026rsquo;s two-star recommendation, I expected more.\u003c/p\u003e\n\u003cp\u003eWe got up this morning to do a half day trip on Buck Island, the best beach and snorkeling spot around St. Croix. I had arranged a cab to pick us up at 11 so we could make the check-in time at 11:30. It finally showed, after a couple of calls, twenty-five minutes late. But all was well, we arrived just in time to board.\u003c/p\u003e","title":"Tuesday on St. Croix"},{"content":"Last night our flight got in okay. We took a long winding cab ride through slums and by dilapidated edifices, through the small nice touristy town of Christiansted, and finally to the hotel. I highly recommend the Chenay Bay Beach Resort, by the way. Each room is a separate little cottage with kitchenette, ample bedroom and bathroom. I only wish the showers had more water pressure, but it\u0026rsquo;s no huge annoyance. The deal is good during summer too: this being the offseason, our fourth night was free.\nWe got in a little beach time after arriving then cleaned up for dinner at the hotel: swordfish for me and mahi-mahi for Angeline. Both were delicious.\nThis morning we toured Christiansted. There are a few historical destinations here including a fort, an old church building, and some relics of the sugar (and slave) trade. The whole slavery business is rather downplayed by the historical displays; one might miss it entirely if not for a few passing references to cannon being used to put down slave insurrections. One display features a letter of commendation given to a military officer for putting down \u0026ldquo;labor\u0026rdquo; riots.\nWe ate lunch at the aptly named Luncheria, whose bartender is said by Frommer\u0026rsquo;s to make the best margaritas on the island. Apparently Frommer\u0026rsquo;s definition of best is:\n4. adj. (referencing Margaritas) Containing the most alcohol and, consequently, tasting like a glassful of cheap tequila\nAfter lunch, we visited a few shops to pick up souvenirs and headed home for some more beach time.\n","permalink":"https://bobcopeland.com/blog/2006/06/monday-on-st-croix/","summary":"\u003cp\u003eLast night our flight got in okay. We took a long winding cab ride through slums and by dilapidated edifices, through the small nice touristy town of Christiansted, and finally to the hotel. I highly recommend the Chenay Bay Beach Resort, by the way. Each room is a separate little cottage with kitchenette, ample bedroom and bathroom. I only wish the showers had more water pressure, but it\u0026rsquo;s no huge annoyance. The deal is good during summer too: this being the offseason, our fourth night was free.\u003c/p\u003e","title":"Monday on St. Croix"},{"content":"I\u0026rsquo;m sitting in the Luis Arroz San Juan Memorial International Regional Airport and Helicopter Concern, or something like that, in the heart of Puerto Rico. Angeline and I have decided to bid a \u0026ldquo;screw this\u0026rdquo; to working life and move down here\u0026hellip; for a few days, anyway. I\u0026rsquo;ll try to report on the goings on as the days progress.\nToday we awoke at a far-too-early 4 AM, jumped in the car and headed to The Right Honorable Jeremiah Hartsfield-Maynard Jackson-William Franklin Campbell Atlanta International Airport. The Delta ticketing agent there gave Angeline crap about being Canadian because she couldn\u0026rsquo;t read Angeline\u0026rsquo;s passport. Myself, I claimed to be a US citizen and they just took my word for it. Moral: lie about your citizenship if you\u0026rsquo;re on a visa.\nAfter this, we hopped on board the plane and settled down for three and a half hours of mild discomfort, in which we finished two crossword puzzles, watched half of the in-flight movie (The Pink Panther) and snoozed a bit. Soon we debarked into the frigid overly air-conditioned SJU terminal complex. We have two hours here to wait around until boarding the shuttle over to St. Croix where we shall be spending the next few days. And they just called us so, bye.\n","permalink":"https://bobcopeland.com/blog/2006/06/beach-bound/","summary":"\u003cp\u003eI\u0026rsquo;m sitting in the Luis Arroz San Juan Memorial International Regional Airport and Helicopter Concern, or something like that, in the heart of Puerto Rico. Angeline and I have decided to bid a \u0026ldquo;screw this\u0026rdquo; to working life and move down here\u0026hellip; for a few days, anyway. I\u0026rsquo;ll try to report on the goings on as the days progress.\u003c/p\u003e\n\u003cp\u003eToday we awoke at a far-too-early 4 AM, jumped in the car and headed to The Right Honorable Jeremiah Hartsfield-Maynard Jackson-William Franklin Campbell Atlanta International Airport. The Delta ticketing agent there gave Angeline crap about being Canadian because she couldn\u0026rsquo;t read Angeline\u0026rsquo;s passport. Myself, I claimed to be a US citizen and they just took my word for it. Moral: lie about your citizenship if you\u0026rsquo;re on a visa.\u003c/p\u003e","title":"Beach bound"},{"content":"\nKAP Rig\nOriginally uploaded by bluesterror.\nI made some more progress on the kite camera rig over the weekend. I attached the battery pack to the back and the RF receiver to the L-bracket using those foam mounting squares that are so good at tearing up walls. Then I velcro-ed the servo just above the shutter button so that pushing on the stick will cause it to snap a picture. I had to wrap a rubber band around the servo and camera body; otherwise the servo would simply lift up instead of applying force to the shutter. Finally, I finished up the lingering bits of the Pivacet suspension. So everything is ready to go for the next sunny weekend!\n","permalink":"https://bobcopeland.com/blog/2006/06/kap-rig/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/161399817/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://static.flickr.com/49/161399817_279d6e4a78_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/161399817/\"\u003eKAP Rig\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eI made some more progress on the kite camera rig over the weekend. I attached the battery pack to the back and the RF receiver to the L-bracket using those foam mounting squares that are so good at tearing up walls. Then I velcro-ed the servo just above the shutter button so that pushing on the stick will cause it to snap a picture. I had to wrap a rubber band around the servo and camera body; otherwise the servo would simply lift up instead of applying force to the shutter. Finally, I finished up the lingering bits of the Pivacet suspension. So everything is ready to go for the next sunny weekend!\u003c/p\u003e","title":"KAP Rig"},{"content":"My ride home last evening was much easier than the ride out. I was carrying less weight in my backpack (though still around 15lbs or so), had eaten something, and tightened the rear shocks up. And I noticed during the ride home that the rear tire would occasionally slip out of the dropout slightly and rotate sideways about 25 degrees, such that the edge of the tire would rub against the frame of the bike. Surprise, losing half of your energy to friction really makes a difference. Correcting this made the ride much easier. Though I\u0026rsquo;m still going to stick to the car for now: externalities aside, oil is just so much cheaper than food, and I\u0026rsquo;m lazy.\n","permalink":"https://bobcopeland.com/blog/2006/05/saddle-sore/","summary":"\u003cp\u003eMy ride home last evening was much easier than the ride out. I was carrying less weight in my backpack (though still around 15lbs or so), had eaten something, and tightened the rear shocks up. And I noticed during the ride home that the rear tire would occasionally slip out of the dropout slightly and rotate sideways about 25 degrees, such that the edge of the tire would rub against the frame of the bike. Surprise, losing half of your energy to friction really makes a difference. Correcting this made the ride much easier. Though I\u0026rsquo;m still going to stick to the car for now: externalities aside, oil is just so much cheaper than food, and I\u0026rsquo;m lazy.\u003c/p\u003e","title":"Saddle sore"},{"content":"Hmm\u0026hellip; I forgot how much bike riding sucked\u0026hellip; or how much I suck at bike riding. So I think after one half of a commute, this idea is dead. I\u0026rsquo;ll try and dial back my suspension some though and see if I can\u0026rsquo;t make the return trip a little more comfortable this evening. It probably would have helped if I had a) worn shorts and b) had any sugar in my system to speak of this morning.\nI don\u0026rsquo;t know why I never did this before, but I took the time last night to compute the gear ratios and shifting patterns for my bike. It has a 22-32-44 chainring up front and 32-11 in the back. Interestingly, only two gears on the 22 cog are even useful, and in practice I can\u0026rsquo;t ever see using them anyway. 32x17 seems to be the starting point for any real riding, and I get too easily winded even four or so gears above that.\nSo\u0026hellip;aren\u0026rsquo;t cars awesome?\n","permalink":"https://bobcopeland.com/blog/2006/05/reunbiked/","summary":"\u003cp\u003eHmm\u0026hellip; I forgot how much bike riding sucked\u0026hellip; or how much I suck at bike riding. So I think after one half of a commute, this idea is dead. I\u0026rsquo;ll try and dial back my suspension some though and see if I can\u0026rsquo;t make the return trip a little more comfortable this evening. It probably would have helped if I had a) worn shorts and b) had any sugar in my system to speak of this morning.\u003c/p\u003e","title":"Reunbiked"},{"content":"Some days I feel a distinct lack of purpose. I call them weekdays! Hah-hah. But seriously ladies and gentlemen, your narrator is out of shape. It seems going to the gym only on presidential birthdays isn\u0026rsquo;t the best health plan. And while I may weigh less than this time last year, I\u0026rsquo;m certainly not as fit. So next week, provided it doesn\u0026rsquo;t rain and I can hit the bike store this weekend to get a lock [note copious outs], I\u0026rsquo;m going to try this bike-to-work thing. Well, not all the way to work, but at least to the bus stop. Someone\u0026rsquo;s got to use that bike path. I\u0026rsquo;ll apprise readers of the results of the experiment as it progresses.\n","permalink":"https://bobcopeland.com/blog/2006/05/rebiked/","summary":"\u003cp\u003eSome days I feel a distinct lack of purpose. I call them weekdays! Hah-hah. But seriously ladies and gentlemen, your narrator is out of shape. It seems going to the gym only on presidential birthdays isn\u0026rsquo;t the best health plan. And while I may weigh less than this time last year, I\u0026rsquo;m certainly not as fit. So next week, provided it doesn\u0026rsquo;t rain and I can hit the bike store this weekend to get a lock [note copious outs], I\u0026rsquo;m going to try this bike-to-work thing. Well, not all the way to work, but at least to the bus stop. Someone\u0026rsquo;s got to use that bike path. I\u0026rsquo;ll apprise readers of the results of the experiment as it progresses.\u003c/p\u003e","title":"Rebiked"},{"content":" I spent a vulgarity-filled evening last night installing a new microwave oven into the formerly blank area above my stove. This last and final piece of kitchen project 2005-6 may well have been the most annoying of the bunch. To begin with, I had to patch up the drywall holes left by the electricians when installing a new circuit \u0026ndash; they had reattached the cutouts but left the putty work to me. So I embarked on the now-familiar task of covering a wall in joint compound, then sanding it into oblivion, priming and painting. This naturally left me with a nice thin coat of sheetrock dust throughout the kitchen. After the paint dried, I began drilling holes as needed in the base cabinet. My drill\u0026rsquo;s battery died after approximately three seconds of this. Why do they even make cordless drills, I ask you?\nOnce the battery charged up, I made the 2\u0026quot; cutout for the electrical cord, then began attaching the mounting bracket. A sharp, pointy bracket that made my knuckles bleed. The toggle bolts that came with the bracket were of the exceedingly cheap variety, so I managed to (ahem) bust a nut during this procedure. And once on, the broken toggle bolts were impossible to get back off, so I had to haul out the dremel to cut the screws. I ended up using two of my own drywall fasteners that were much stronger than those supplied.\nWith that behind me, I hefted the microwave oven onto the bracket (a two person job, according to the manual, but since I am virtually five men put together, I managed on my own), then faced the prospect of my pre-drilled cabinet holes being about 1/4\u0026quot; off of where they should have been. Nothing is easy. I cursed the screws, the microwave, the cabinet, my drill and everything else nearby as I spent the next twenty minutes correcting this mistake. Ultimately, I succeeded.\nMay the popcorn making commence!\n","permalink":"https://bobcopeland.com/blog/2006/05/microwave/","summary":"\u003cp\u003e\u003ca href=\"http://apps.bobcopeland.com/gallery/view_photo.php?set_albumName=kitchen\u0026amp;id=img_0944\"\u003e\u003cimg loading=\"lazy\" src=\"http://apps.bobcopeland.com/albums/kitchen/img_0944.thumb.jpg\"\u003e\u003c/a\u003e\nI spent a vulgarity-filled evening last night installing a new microwave oven into the formerly blank area above my stove. This last and final piece of kitchen project 2005-6 may well have been the most annoying of the bunch. To begin with, I had to patch up the drywall holes left by the electricians when installing a new circuit \u0026ndash; they had reattached the cutouts but left the putty work to me. So I embarked on the now-familiar task of covering a wall in joint compound, then sanding it into oblivion, priming and painting. This naturally left me with a nice thin coat of sheetrock dust throughout the kitchen. After the paint dried, I began drilling holes as needed in the base cabinet. My drill\u0026rsquo;s battery died after approximately three seconds of this. Why do they even make cordless drills, I ask you?\u003c/p\u003e","title":"Microwave"},{"content":"\nIMG_0931\nOriginally uploaded by bluesterror.\nI made a bit more progress with the kite cradle. I picked up a 1/4\u0026quot; dowel and some vinyl tubing from Home Depot, and scavenged various other bits of wood from the ex-kitchen cabinets. Pictured is more or less what the thing should look like once hitched to the kite, although I still haven\u0026rsquo;t decided how to mount the servos and R/C receiver \u0026ndash; duct tape is a leading candidate. This design, incidentally, is straight from the pages of Make: magazine, except that I pretty much ignored the directions and got all the wrong sizes for everything, and also that mine will be R/C controlled instead of timed with silly putty.\n","permalink":"https://bobcopeland.com/blog/2006/05/kap-2/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/146660303/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://static.flickr.com/56/146660303_10d81e48fe_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/146660303/\"\u003eIMG_0931\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eI made a bit more progress with the kite cradle. I picked up a 1/4\u0026quot; dowel and some vinyl tubing from Home Depot, and scavenged various other bits of wood from the ex-kitchen cabinets. Pictured is more or less what the thing should look like once hitched to the kite, although I still haven\u0026rsquo;t decided how to mount the servos and R/C receiver \u0026ndash; duct tape is a leading candidate. This design, incidentally, is straight from the pages of Make: magazine, except that I pretty much ignored the directions and got all the wrong sizes for everything, and also that mine will be R/C controlled instead of timed with silly putty.\u003c/p\u003e","title":"KAP"},{"content":"Dear Slashdot, I briefly lifted my null route of your IP to read some blather about microkernels. It\u0026rsquo;s not even a debate among Linux kernel developers, so why you bringin\u0026rsquo; up old shit? Oh yeah, so that people who have no clue can bitch about the Linux development process (\u0026ldquo;I want my latest network card to work but I don\u0026rsquo;t want any other work done! Oh and how about a stable ABI so NVidia can screw us more?\u0026rdquo;). *plonk*\nIn other news, Joshua \u0026ldquo;Joshy\u0026rdquo; Marinacci has abandoned his roller blades and taken up writing Java books about \u0026ldquo;Killer GUIs\u0026rdquo;. On his blog you can find him reminiscing about his days as a UA. My opinion: the users in the Mac labs, more often than not, *were* idiots. And they had baggy pants.\n","permalink":"https://bobcopeland.com/blog/2006/05/paleolithic/","summary":"\u003cp\u003eDear Slashdot, I briefly lifted my null route of your IP to read \u003ca href=\"http://linux.slashdot.org/linux/06/05/10/0439246.shtml\"\u003esome blather about microkernels\u003c/a\u003e. It\u0026rsquo;s not even a debate among Linux kernel developers, so why you bringin\u0026rsquo; up old shit? Oh yeah, so that people who have no clue can bitch about the Linux development process (\u0026ldquo;I want my latest network card to work but I don\u0026rsquo;t want any other work done! Oh and how about a stable ABI so NVidia can screw us more?\u0026rdquo;). *plonk*\u003c/p\u003e","title":"Paleolithic"},{"content":"Recently added to my bookshelf:\nSpook by Mary Roach. 4 stars. I believe Stiff was a notch funnier, but Spook doesn\u0026rsquo;t disappoint. Roach turns a skeptic\u0026rsquo;s eye on the afterlife and various occult shenanigans. Loses half a point for fart jokes.\nNever Let Me Go by Kazuo Ishiguro. 4 stars. This novel reminds me of my youth, growing up as a member of the experimental group in a controlled scientific study.\nThe Three Musketeers by Alexander Dumas. 3 stars. Don\u0026rsquo;t quite see the magic in this book of swashbuckledom. The Count of Monte Cristo was much better. D\u0026rsquo;Artagnan was a man slut.\nMarathon Man by William Goldman. 2.5 stars. From the author of the Princess Bride comes an altogether unengaging spy novel, complete with cartoonish Nazi supervillains. The Dustin Hoffman movie of same might be better.\n","permalink":"https://bobcopeland.com/blog/2006/05/more-readings/","summary":"\u003cp\u003eRecently added to my bookshelf:\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"http://www.amazon.com/gp/product/0393329127\"\u003e\u003cimg loading=\"lazy\" src=\"http://images.amazon.com/images/P/0393329127.01._SCTHUMBZZZ_V54435651_.jpg\"\u003e\u003c/a\u003e \u003cem\u003eSpook\u003c/em\u003e by Mary Roach. 4 stars. I believe Stiff was a notch funnier, but Spook doesn\u0026rsquo;t disappoint. Roach turns a skeptic\u0026rsquo;s eye on the afterlife and various occult shenanigans. Loses half a point for fart jokes.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"http://www.amazon.com/gp/product/1400078776\"\u003e\u003cimg loading=\"lazy\" src=\"http://images.amazon.com/images/P/1400078776.01._SCTHUMBZZZ_.jpg\"\u003e\u003c/a\u003e\u003cem\u003eNever Let Me Go\u003c/em\u003e by Kazuo Ishiguro. 4 stars. This novel reminds me of my youth,\ngrowing up as a member of the experimental group in a controlled scientific\nstudy.\u003c/p\u003e","title":"More readings"},{"content":"\nPower supply\nOriginally uploaded by bluesterror.\nI\u0026rsquo;ve made some slight progress on my aerial photography project. I bought a used R/C airplane radio with servos and a receiver. The receiver and servos were meant for park flyers (i.e. super light planes) so I figure that will be a good match for the kite where it\u0026rsquo;s all about weight. But you gotta power those things somehow, so I built a simple battery supply using a Radio Shack AA battery holder and shorting one of the terminals. The batteries add a lot of weight, but I can probably throw a resistor in series with the PS and power the camera off of the batteries as well. The idea is to mount the servo on top of the camera near the shutter button, then just wiggle the stick to snap a picture. I\u0026rsquo;ve tested this in a limited fashion and it seems to work nicely. The camera, of course, is the \u0026ldquo;one-time-use\u0026rdquo; CVS camera which has been hacked to be many-time-use.\n","permalink":"https://bobcopeland.com/blog/2006/05/kap/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/139706042/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://static.flickr.com/49/139706042_090fa0b7c8_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/139706042/\"\u003ePower supply\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eI\u0026rsquo;ve made some slight progress on my aerial photography project. I bought a used R/C airplane radio with servos and a receiver. The receiver and servos were meant for park flyers (i.e. super light planes) so I figure that will be a good match for the kite where it\u0026rsquo;s all about weight. But you gotta power those things somehow, so I built a simple battery supply using a Radio Shack AA battery holder and shorting one of the terminals. The batteries add a lot of weight, but I can probably throw a resistor in series with the PS and power the camera off of the batteries as well. The idea is to mount the servo on top of the camera near the shutter button, then just wiggle the stick to snap a picture. I\u0026rsquo;ve tested this in a limited fashion and it seems to work nicely. The camera, of course, is the \u0026ldquo;one-time-use\u0026rdquo; CVS camera which has been hacked to be many-time-use.\u003c/p\u003e","title":"KAP"},{"content":"I am a bit late in getting to the requisite blog entries. Partly that is because my Dell laptop is sucking now. After only having the thing for two years, the power connector has broken internally such that batteries can no longer be charged; this appears to have happened to many many other Dell laptop owners. Great work, guys. So I take back any good things I said about Dell, especailly after half the desktops at work showed up with bad RAM.\nAnyway, the Shinedown/Trapt show at Ram\u0026rsquo;s Head was great. Trapt led off, lead singer Chris Brown causing the womenfolk to swoon at his sensitive yet profanity-laden lyrics, punctuated with his ever-unnecessarily-flexed biceps. Brent Smith of Shinedown won the most acrobatic award, doing a nice half gainer off of the balcony early in the set, along with a jump from the top of the ridiculously high drum riser that left the audience wondering if he sprained an ankle. Of course both bands pulled out all of the hits, Shinedown with SAVE ME and I DARE YOU, and Trapt with HEADSTRONG, STILL FRAME. Shinedown performed a cover of Skynyrd\u0026rsquo;s SIMPLE MAN with the help of the audience, then raged against the record industry and gave us advice on making it through our teenage years. In fact, teen angst seemed to be the big social message here and we got an earful from both bands about all of the people \u0026ldquo;putting us down\u0026rdquo; and how we could turn that into \u0026ldquo;positive energy\u0026rdquo; and whatever else the fuck. Back in my day, this would never have flown, but the mostly college-aged crowd didn\u0026rsquo;t seem to mind so much. Anyway the main thing is the music and both bands pulled it off, never eliciting my usual reaction to radio bands which is \u0026ldquo;wow they really suck live!\u0026rdquo; In fact Smith, though nearly hoarse at the end, was still hitting all of the high notes in the double encore. Both guitarists were energetic, and while there was nothing particularly exciting in the solos, they carried off everything effortlessly. Shinedown\u0026rsquo;s bass player had a nice solo groove in there at one point.\nIn all, definitely going to be a highlight of this concert season. Looking forward, we\u0026rsquo;ve got Al Di at the Birchmere coming up again, Chili Cookoff (maybe)\u0026hellip; and uh that\u0026rsquo;s all I have so far.\n","permalink":"https://bobcopeland.com/blog/2006/05/424/","summary":"\u003cp\u003eI am a bit late in getting to the requisite blog entries. Partly that is because my Dell laptop is sucking now. After only having the thing for two years, the power connector has broken internally such that batteries can no longer be charged; this appears to have happened to many many other Dell laptop owners. Great work, guys. So I take back any good things I said about Dell, especailly after half the desktops at work showed up with bad RAM.\u003c/p\u003e","title":"Shinedown Redux"},{"content":"I\u0026rsquo;ve been meaning to do something about my spam situation, which rather sucks at the moment. Now that my email address appears occasionally on the linux kernel mailing list and elsewhere, I\u0026rsquo;ve not suprisingly got a signal-to-noise ratio of something like 200:1. I\u0026rsquo;ve had spam assassin in the loop for a while, but the Bayesian analysis always invokes the OOM killer on my memory poor firewall so it\u0026rsquo;s not running with full effectiveness. Thus I took a little time out to add a whitelist to the front end to make things go better: if you\u0026rsquo;re in the whitelist, it skips all the filters. Meanwhile SA will get the threshold cranked up to consider practically everything spam, and I\u0026rsquo;ll be more likely to insert one-off regexps that trash certain spams that I get over and over again.\nTo make the whitelist, I went to my existing mail folders (in mbox format, of course). This was easy enough:\n#! /bin/sh for i in `/bin/ls | grep -v junk`; do formail -s formail -zx \u0026#34;From: \u0026#34; -zx \u0026#34;To: \u0026#34; \u0026lt; $i | sed -e \u0026#34;s/^.*\u0026lt;(.*)\u0026gt;.*$/1/g\u0026#34; \u0026gt;\u0026gt; whitelist.uns done cat whitelist.uns | sort | uniq \u0026gt; whitelist rm whitelist.uns Then, it took a while to figure out how to make the proper procmail recipe to use it, but I eventually came up with this:\nMAILDIR=Mail FGREP=/bin/fgrep :0: * !^List-Id:.* * ? formail -zx \u0026#34;From:\u0026#34; | ${FGREP} -F -v -i -w -f whitelist { :0fw * \u0026lt;100000 | spamassassin :0: * ^X-Spam-Status: Yes junk :0: * ^Subject:.*Corel Draw.* junk :0: * ^Subject: *[^ ]* new(s)?$ junk :0D: * ^Subject:.*(O|0)EM * junk :0D: * ^Subject:.*[A-Z]+[a-z][a-z][a-z][A-Z]+ junk } :0Ecf | formail -A\u0026#34;X-Whitelist-Passed: OK\u0026#34; # kill html email :0 * ^Content-type: text/html { :0bfw | (echo \u0026#34;[html stripped]\u0026#34;; lynx -dump -force_html -stdin) :0ahfw | formail -i\u0026#34;Content-type: text/plain\u0026#34; } ","permalink":"https://bobcopeland.com/blog/2006/04/procced-mail/","summary":"\u003cp\u003eI\u0026rsquo;ve been meaning to do something about my spam situation, which rather sucks at the moment. Now that my email address appears occasionally on the linux kernel mailing list and elsewhere, I\u0026rsquo;ve not suprisingly got a signal-to-noise ratio of something like 200:1. I\u0026rsquo;ve had spam assassin in the loop for a while, but the Bayesian analysis always invokes the OOM killer on my memory poor firewall so it\u0026rsquo;s not running with full effectiveness. Thus I took a little time out to add a whitelist to the front end to make things go better: if you\u0026rsquo;re in the whitelist, it skips all the filters. Meanwhile SA will get the threshold cranked up to consider practically everything spam, and I\u0026rsquo;ll be more likely to insert one-off regexps that trash certain spams that I get over and over again.\u003c/p\u003e","title":"procced mail"},{"content":"As soon as I discovered that it wasn\u0026rsquo;t Chris Cornell behind a certain song from the point of view of the overmedicated, I\u0026rsquo;ve been enjoying Shinedown. So next Monday night, AC and I are going to see if their stage show holds up to the CD. Also on the ticket is Trapt, whose song Still Frame was once played by my old band, and two bands with whom I\u0026rsquo;m unfamiliar. See you there at Ram\u0026rsquo;s Head Live in Baltimore, doors open at 7pm.\n","permalink":"https://bobcopeland.com/blog/2006/04/shinedown/","summary":"\u003cp\u003eAs soon as I discovered that it wasn\u0026rsquo;t Chris Cornell behind a certain song from the point of view of the overmedicated, I\u0026rsquo;ve been enjoying Shinedown. So next Monday night, AC and I are going to see if their stage show holds up to the CD. Also on the ticket is Trapt, whose song Still Frame was once played by my old band, and two bands with whom I\u0026rsquo;m unfamiliar. See you there at Ram\u0026rsquo;s Head Live in Baltimore, doors open at 7pm.\u003c/p\u003e","title":"Shinedown"},{"content":"Yesterday, Director\u0026rsquo;s awards were distributed here at work, and the powers that be were nice enough to honor myself and a couple of other programmers on our mad software skillz even though we are only contractors. Despite the fact that everyone pronounces \u0026ldquo;Director\u0026rdquo; in hushed tones as if they are Death Star peons discussing The Emporer, sure that their thoughts are being probed by some dark-side evildoings, we didn\u0026rsquo;t realize that the awards ceremony was An Affair, which is to say that suits were required. So I show up, along with my coworkers, in full-on business casual to a gathering of hundreds of ensuited Vic Mackeys. Like the jackasses that wear a T-shirt on picture day1, we ignored the occasional looks of disdain directed towards our section during the service. I say service, because it was practically a church affair, with a prayer at the beginning, a prayer at the end, and lots of boredom in between that mostly didn\u0026rsquo;t apply to me. The only difference was that instead of an organ, the pre-ceremony music was played by members of The President\u0026rsquo;s Own Marine Corps band. After an interminable wait, during which people who actually deserved awards were recognized, we eventually got called, walked across the stage, shook hands with Palpitane and the second-in-command at DOJ, then hid behind better dressed personnel for the group photo. So I guess what I am saying is, fear my awesome certificate, bitches!\n[1] Usually me, in early grades at least, because my organizational skills are so slight, not because of any illusions of being too cool for school.\n","permalink":"https://bobcopeland.com/blog/2006/04/awarded/","summary":"\u003cp\u003eYesterday, Director\u0026rsquo;s awards were distributed here at work, and the powers that be were nice enough to honor myself and a couple of other programmers on our mad software skillz even though we are only contractors. Despite the fact that everyone pronounces \u0026ldquo;Director\u0026rdquo; in hushed tones as if they are Death Star peons discussing The Emporer, sure that their thoughts are being probed by some dark-side evildoings, we didn\u0026rsquo;t realize that the awards ceremony was An Affair, which is to say that suits were required. So I show up, along with my coworkers, in full-on business casual to a gathering of hundreds of ensuited Vic Mackeys. Like the jackasses that wear a T-shirt on picture day1, we ignored the occasional looks of disdain directed towards our section during the service. I say service, because it was practically a church affair, with a prayer at the beginning, a prayer at the end, and lots of boredom in between that mostly didn\u0026rsquo;t apply to me. The only difference was that instead of an organ, the pre-ceremony music was played by members of The President\u0026rsquo;s Own Marine Corps band. After an interminable wait, during which people who actually deserved awards were recognized, we eventually got called, walked across the stage, shook hands with Palpitane and the second-in-command at DOJ, then hid behind better dressed personnel for the group photo. So I guess what I am saying is, fear my awesome certificate, bitches!\u003c/p\u003e","title":"Awarded"},{"content":"I\u0026rsquo;ve been scanning the local venues and home pages of a few favored artists to find good shows to attend this summer. Who would have guessed that Stanley Jordan, two-handed tapping jazz guitarist extraordinaire, would be a full-on nerd? Of course, I mean that in the most complimentary sense. Watch as he schools usenet entities on his APL and C=64 FORTH hackery. Neat.\n","permalink":"https://bobcopeland.com/blog/2006/04/stanley-jordan/","summary":"\u003cp\u003eI\u0026rsquo;ve been scanning the local venues and home pages of a few favored artists to find good shows to attend this summer. Who would have guessed that Stanley Jordan, two-handed tapping jazz guitarist extraordinaire, would be a \u003ca href=\"http://www.stanleyjordan.com/Links/Computing.html\"\u003efull-on nerd\u003c/a\u003e? Of course, I mean that in the most complimentary sense. Watch as he \u003ca href=\"http://groups.google.com/group/comp.lang.apl/msg/11788d7221d96f58?hl=en\"\u003eschools usenet entities\u003c/a\u003e on his APL and C=64 FORTH hackery. Neat.\u003c/p\u003e","title":"Stanley Jordan"},{"content":"I\u0026rsquo;m in something of a manic mode now that winter has fully departed. This weekend saw the embarkation on/completion of a few projects. I finished up all of the remaining niggling table-saw work required for my kitchen \u0026ndash; the quarter round floor molding and the remaining decorative molding under the cabinets. Then I cleaned up my garage a bit; who knows, maybe in a month or two I\u0026rsquo;ll be able to get my car back in there. I also took the first steps in what I hope to be a less sucky landscape for my house: I mulched an area around my trees that tends to grow weeds like crazy, pulled up said weeds, removed a rotten and termite infested bench, and started a little indoor herb garden. I still had time to play a few rounds of The Ur-Quan Masters, until I remembered what an incredible time sink StarCon2 happened to be, at which point I resigned my post as intergalactic diplomat forever and went back to noodling on the guitar.\n","permalink":"https://bobcopeland.com/blog/2006/04/projects-afoot/","summary":"\u003cp\u003eI\u0026rsquo;m in something of a manic mode now that winter has fully departed. This weekend saw the embarkation on/completion of a few projects. I finished up all of the remaining niggling table-saw work required for my kitchen \u0026ndash; the quarter round floor molding and the remaining decorative molding under the cabinets. Then I cleaned up my garage a bit; who knows, maybe in a month or two I\u0026rsquo;ll be able to get my car back in there. I also took the first steps in what I hope to be a less sucky landscape for my house: I mulched an area around my trees that tends to grow weeds like crazy, pulled up said weeds, removed a rotten and termite infested bench, and started a little indoor herb garden. I still had time to play a few rounds of \u003ca href=\"http://sc2.sourceforge.net/\"\u003eThe Ur-Quan Masters\u003c/a\u003e, until I remembered what an incredible time sink StarCon2 happened to be, at which point I resigned my post as intergalactic diplomat forever and went back to noodling on the guitar.\u003c/p\u003e","title":"Projects afoot"},{"content":"I suppose I should say a word or two about the latest Derek Trucks showing, and compare it to the other 6(?) times I\u0026rsquo;ve seen them, but what is there to say except that DTB was good as always and the 9:30 Club was really smokey. Kofi was probably super high as he was more animated than I\u0026rsquo;d ever seen him, standing up in the middle of a solo and banging out the bass chords with his fist, bellowing \u0026ldquo;I have a Wah-Wah pedal\u0026rdquo; during a particularly wokka-wokka keyboard part, and acting the preacher during their gospel number, testifying that \u0026ldquo;one man saved his life\u0026rdquo; \u0026ndash; nope, not Jesus, but Derek Trucks! I picked up their new album Songlines which is interesting in that each song flows into the next, much like at their shows. On the whole it\u0026rsquo;s worth the $15 and it\u0026rsquo;s nice to hear Mattison on a studio release, but unfortunately it fails to live up to past glory like Soul Serenade when all the songs were brand new. There are definitely a lot more people at shows compared with 6 years ago so the word is getting out.\n","permalink":"https://bobcopeland.com/blog/2006/04/no-through-trucks/","summary":"\u003cp\u003eI suppose I should say a word or two about the latest Derek Trucks showing, and compare it to the other 6(?) times I\u0026rsquo;ve seen them, but what is there to say except that DTB was good as always and the 9:30 Club was really smokey. Kofi was probably super high as he was more animated than I\u0026rsquo;d ever seen him, standing up in the middle of a solo and banging out the bass chords with his fist, bellowing \u0026ldquo;I have a Wah-Wah pedal\u0026rdquo; during a particularly wokka-wokka keyboard part, and acting the preacher during their gospel number, testifying that \u0026ldquo;one man saved his life\u0026rdquo; \u0026ndash; nope, not Jesus, but Derek Trucks! I picked up their new album \u003cem\u003eSonglines\u003c/em\u003e which is interesting in that each song flows into the next, much like at their shows. On the whole it\u0026rsquo;s worth the $15 and it\u0026rsquo;s nice to hear Mattison on a studio release, but unfortunately it fails to live up to past glory like \u003cem\u003eSoul Serenade\u003c/em\u003e when all the songs were brand new. There are definitely a lot more people at shows compared with\n6 years ago so the word is getting out.\u003c/p\u003e","title":"No Through Trucks"},{"content":"This weekend is shaping up to be a full one. Six points music festival is going on, but my money is going to the 9:30 Club to see DTB again. I hear they have a whole new setlist and a new CD, so that should be a good change of pace. On top of that: apartment shopping, batting practice, guitar lesson, baking, yardwork, etc. w00t.\n","permalink":"https://bobcopeland.com/blog/2006/04/busy/","summary":"\u003cp\u003eThis weekend is shaping up to be a full one. Six points music festival is going on, but my money is going to the 9:30 Club to see DTB again. I hear they have a whole new setlist and a new CD, so that should be a good change of pace. On top of that: apartment shopping, batting practice, guitar lesson, baking, yardwork, etc. w00t.\u003c/p\u003e","title":"Busy"},{"content":"A great companion to High Fidelity, I just started reading Sex, Drugs, and Cocoa Puffs by Chuck Klosterman. This is a collection of hilarious essays deconstructing pop culture and its many important implications for us as human beings. Think of it as an embittered yet philosophical X-Entertainment.\nI picked this book up because of the title, obviously, but I took it home because a scan of the book found an entire chapter dedicated to \u0026ldquo;Saved By The Bell.\u0026rdquo; I\u0026rsquo;m not sure why I watched this particular bit of inane zeitgeist twice every afternoon after school, except perhaps, as Klosterman says, \u0026ldquo;because it was on TV.\u0026rdquo; But there were always lessons to be learned in the glib storylines, such as when Zack Morris bought securities on margin (Screech: \u0026ldquo;on margarine\u0026rdquo;) using Miss Bliss\u0026rsquo;s brokerage account (Lesson: buy low sell high), or the time when Zack beat Jessie on the SATs, scoring 1502 (Lessons: don\u0026rsquo;t judge a book by its cover and you can somehow get two extra points on the SATs). And people said TV has no value.\nAnyhow, the book had me laughing out loud on the bus, so it gets my high recommendation. Unless you\u0026rsquo;re a hater.\n","permalink":"https://bobcopeland.com/blog/2006/03/readings-2/","summary":"\u003cp\u003eA great companion to \u003cem\u003eHigh Fidelity\u003c/em\u003e, I just started reading \u003cem\u003eSex, Drugs, and Cocoa Puffs\u003c/em\u003e by Chuck Klosterman. This is a collection of hilarious essays deconstructing pop culture and its many important implications for us as human beings. Think of it as an embittered yet philosophical \u003ca href=\"http://www.x-entertainment.com/\"\u003eX-Entertainment\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eI picked this book up because of the title, obviously, but I took it home because a scan of the book found an entire chapter dedicated to \u0026ldquo;Saved By The Bell.\u0026rdquo; I\u0026rsquo;m not sure why I watched this particular bit of inane zeitgeist twice every afternoon after school, except perhaps, as Klosterman says, \u0026ldquo;because it was on TV.\u0026rdquo; But there were always lessons to be learned in the glib storylines, such as when Zack Morris bought securities on margin (Screech: \u0026ldquo;on margarine\u0026rdquo;) using Miss Bliss\u0026rsquo;s brokerage account (Lesson: \u003cem\u003ebuy low sell high\u003c/em\u003e), or the time when Zack beat Jessie on the SATs, scoring 1502 (Lessons: \u003cem\u003edon\u0026rsquo;t judge a book by its cover\u003c/em\u003e and \u003cem\u003eyou can somehow get two extra points on the SATs\u003c/em\u003e). And people said TV has no value.\u003c/p\u003e","title":"++Readings"},{"content":" Saturday was perfect weather for the 40th Annual Smithonian Kite Festival. AC and I relived our youth on the Washington Monument grounds, getting my pair of kites up into the air with various levels of success. AC proved superior at piloting, managing to get the hard-to-fly spinning diamond to the end of its tether, 150 feet up, and the froggy kite to somewhere in the 200 ft. range. Unlike our Pakistani counterparts, for whom kites are apparently illegal, we tangled lines with other freedom-loving fliers sporting dragonflies, airplanes, fish, monkeys, boxes, rings, and multifarious other shapes. Much fun was had.\nAfter lunch, we strolled over to the Sackler museum where they are currently hosting a Hokusai exhibit. You might recognize the \u0026ldquo;Great Wave\u0026rdquo; (left) from the cover of half a dozen computer science books. If you do, then you are a nerd. Just saying. Yeah, I am.\nMason in the Final Four? Are you kidding me? The ACC sucks.\n","permalink":"https://bobcopeland.com/blog/2006/03/kites-flown/","summary":"\u003cp\u003e\u003ca href=\"http://apps.bobcopeland.com/gallery/view_photo.php?set_albumName=kites\u0026amp;id=IMG_0884\"\u003e\u003cimg loading=\"lazy\" src=\"http://apps.bobcopeland.com/albums/kites/IMG_0884.thumb.jpg\"\u003e\u003c/a\u003e Saturday was perfect weather for the 40th Annual Smithonian Kite Festival. AC and I relived our youth on the Washington Monument grounds, getting my pair of kites up into the air with various levels of success. AC proved superior at piloting, managing to get the hard-to-fly spinning diamond to the end of its tether, 150 feet up, and the froggy kite to somewhere in the 200 ft. range. Unlike our Pakistani counterparts, for whom kites are apparently illegal, we tangled lines with other freedom-loving fliers sporting dragonflies, airplanes, fish, monkeys, boxes, rings, and multifarious other shapes. Much fun was had.\u003c/p\u003e","title":"Kites flown"},{"content":"Those who have seen the recorded programs list on my DVR or have seen me in a kitchen store probably know that I am one of the many food geeks who worships upon the altar of the great foodsmith AB. Nice new website, Alton, but I miss the blog. So last weekend, thanks to my wonderful birthday gift of a food processor, I made a pilgrimage to the temple of taste: I built the Burger of The Gods. This Good Eats recipe is pretty simple: a pound of meat, a dash of salt, add fire. But the inventive part is that you start with a couple of steaks, and grind the meat yourself. The idea is that, free of handling and bits of intestine, self-ground meat is a lot safer than the ground meat you get at the store, and consequently cooking it to death is not required. And apart from cleaning the equipment afterwards, chopping up the meat in a food processor is quick and dead simple. The result: heavenly.\nI\u0026rsquo;ve had other favorite burgers in the past: the ones I\u0026rsquo;d make with butter in the middle, Five Guys, the list goes on. But if one had to annoint a pope of hamburgerdom, this sandwich would get a Habemus Papam from any conclave.\n","permalink":"https://bobcopeland.com/blog/2006/03/blessed-beef/","summary":"\u003cp\u003eThose who have seen the recorded programs list on my DVR or have seen me in a kitchen store probably know that I am one of the many food geeks who worships upon the altar of the great foodsmith \u003ca href=\"http://altonbrown.com\"\u003eAB\u003c/a\u003e. Nice new website, Alton, but I miss the blog. So last weekend, thanks to my wonderful birthday gift of a food processor, I made a pilgrimage to the temple of taste: I built the \u003ca href=\"http://www.foodnetwork.com/food/recipes/recipe/0,,FOOD_9936_13959,00.html\"\u003eBurger of The Gods\u003c/a\u003e. This Good Eats recipe is pretty simple: a pound of meat, a dash of salt, add fire. But the inventive part is that you start with a couple of steaks, and grind the meat yourself. The idea is that, free of handling and bits of intestine, self-ground meat is a lot safer than the ground meat you get at the store, and consequently cooking it to death is not required. And apart from cleaning the equipment afterwards, chopping up the meat in a food processor is quick and dead simple. The result: heavenly.\u003c/p\u003e","title":"Blessed Beef"},{"content":"Well, as of yesterday, after a long protracted review and release process, several lines of code by me have found their way into an operating system: Linux 2.6.16 includes my Rio Karma drivers. So you can go ahead and blame me if Linux sucks. Then I\u0026rsquo;ll blame Jeff Garzik in turn, just because.\nLast weekend was nice. Angeline and I spent most of it shopping for her DC area apartment for her new job at NIH beginning this summer. If anyone knows of a cheap but nice apartment convenient to Bethesda, let\u0026rsquo;s hear it.\nNote to job seekers: don\u0026rsquo;t put \u0026ldquo;career\u0026rdquo; or \u0026ldquo;job\u0026rdquo; in your resume. I keep getting keyword searches in my httpd logs for \u0026ldquo;objective education experience oracle unix -job -career.\u0026rdquo; I guess said headhunters won\u0026rsquo;t see this post, so let me take this opportunity to tell them that they are ugly and they smell. I also get lots of referrer spam from ballsacks.net. Just thought you should know.\n","permalink":"https://bobcopeland.com/blog/2006/03/open-sores/","summary":"\u003cp\u003eWell, as of yesterday, after a long protracted review and release process, several lines of code by me have found their way into an operating system: Linux 2.6.16 includes my Rio Karma drivers. So you can go ahead and blame me if Linux sucks. Then I\u0026rsquo;ll blame Jeff Garzik in turn, just because.\u003c/p\u003e\n\u003cp\u003eLast weekend was nice. Angeline and I spent most of it shopping for her DC area apartment for her new job at NIH beginning this summer. If anyone knows of a cheap but nice apartment convenient to Bethesda, let\u0026rsquo;s hear it.\u003c/p\u003e","title":"Open sores"},{"content":"I finally jumped on the Sarah Vowell bandwagon and started reading Assassination Vacation. I\u0026rsquo;m too lazy to find Amazon links so search yourself if you are one of the three people who hasn\u0026rsquo;t read it yet. Anyway, so far it\u0026rsquo;s very amusing, and I can\u0026rsquo;t help comparing to Mary Roach\u0026rsquo;s Stiff (4.2 stars), another book by a woman fascinated with death. I give AV 3.9 stars out of five; she loses a tenth of a point for unnecessarily inserting political views, though I generally agree with them. It is nice to know that so many pieces of presidents happen to reside nearby, so perhaps I shall inspect them someday.\nOther recent readings include:\nHigh Fidelity - Nick Hornby ****\nLittle Children - Tom Perotta **\nThe Smithsonian Institution - Gore Vidal (no stars)\nI\u0026rsquo;ve really been a slacker at reading lately.\n","permalink":"https://bobcopeland.com/blog/2006/03/readings/","summary":"\u003cp\u003eI finally jumped on the Sarah Vowell bandwagon and started reading \u003cem\u003eAssassination Vacation\u003c/em\u003e. I\u0026rsquo;m too lazy to find Amazon links so search yourself if you are one of the three people who hasn\u0026rsquo;t read it yet. Anyway, so far it\u0026rsquo;s very amusing, and I can\u0026rsquo;t help comparing to Mary Roach\u0026rsquo;s \u003cem\u003eStiff\u003c/em\u003e (4.2 stars), another book by a woman fascinated with death. I give \u003cem\u003eAV\u003c/em\u003e 3.9 stars out of five; she loses a tenth of a point for unnecessarily inserting political views, though I generally agree with them. It is nice to know that so many pieces of presidents happen to reside nearby, so perhaps I shall inspect them someday.\u003c/p\u003e","title":"Readings"},{"content":"Thanks to all who showed up this weekend and left beer at my house. My 31st year shall begin with much drinking.\nNow it\u0026rsquo;s time to look forward to the next big event\u0026hellip; after St. Patrick\u0026rsquo;s Day\u0026hellip; and that is of course the annual Smithsonian Kite Festival. I went last year as a spectator and watched hundreds of people try to get little squares of fabric way up in the sky. This year, I plan to have a square of my own. I have a couple of prefab kites ready to go, and I also have some plain nylon in transit to my house, where, should enough time and creativity strike, I shall try to construct a third. So, on the 25th of March, why not join me with your own sail on the Mall. Or if you aren\u0026rsquo;t into the whole kite scene, there\u0026rsquo;s always the enjoyable prospect of freezing in the blustery wind while taking pictures of cherry blossoms.\nFor myself, this may be the springboard into a new hobby. I still need to do something with my hacked CVS camera, and rigging up a pivacet suspension and a remote shutter trigger to take pictures from the kite\u0026rsquo;s point of view sure seems like it could waste some time.\nMore info on the kite festival.\n","permalink":"https://bobcopeland.com/blog/2006/03/kites-2/","summary":"\u003cp\u003eThanks to all who showed up this weekend and left beer at my house. My 31st year shall begin with much drinking.\u003c/p\u003e\n\u003cp\u003eNow it\u0026rsquo;s time to look forward to the next big event\u0026hellip; after St. Patrick\u0026rsquo;s Day\u0026hellip; and that is of course the annual Smithsonian Kite Festival. I went last year as a spectator and watched hundreds of people try to get little squares of fabric way up in the sky. This year, I plan to have a square of my own. I have a couple of prefab kites ready to go, and I also have some plain nylon in transit to my house, where, should enough time and creativity strike, I shall try to construct a third. So, on the 25th of March, why not join me with your own sail on the Mall. Or if you aren\u0026rsquo;t into the whole kite scene, there\u0026rsquo;s always the enjoyable prospect of freezing in the blustery wind while taking pictures of cherry blossoms.\u003c/p\u003e","title":"Kites"},{"content":"A few months ago I bowed to peer pressure and purchased a new phone. Prior to that, my antenna had been held on with hot melt glue for several months. So I read the internets, picked out a phone, found an unlocked version (I\u0026rsquo;m not going to be a serf to the mobile companies!) and plonked down the requisite credit card number into the order form. When it arrived a few days later, my co-workers were mystified. \u0026ldquo;That\u0026rsquo;s not a RAZR,\u0026rdquo; they said, incredulously. \u0026ldquo;Why get a dumpy looking Nokia [ 6230 for those who care]? Paris Hilton wouldn\u0026rsquo;t touch that.\u0026rdquo;) Well, a few reasons: I get craptastic reception at the house, and Nokias are legendary for good reception. On that front, I\u0026rsquo;ve been very pleased; no dropouts anywhere in my house whereas I had to stand on the porch with my old phone. Also, it has a decent MP3 player built in with expandable flash memory. I have a real MP3 player already but it never hurts to have a few tunes with you for bumpy places such as the gym where the hard drive is unwelcome. Reason the third: EDGE.\nI spend at least two hours every day on a bus getting to work, and it sure would be nice to use the net some during that block of time. So effective today I\u0026rsquo;m on T-Mobile\u0026rsquo;s Total Internet thingy. With that, I can connect my phone via a USB cable to the laptop and use it as a modem to connect at a decent speed from anywhere. It works pretty well \u0026ndash; better than dialup, worse than anything else. I posted this from the bus.\nSpeaking of internet, my mom \u0026amp; dad have just joined the 18th century by getting on the DSL bandwagon\u0026hellip; sort of: they got the 256k ADSL. Hey, but remember when people were paying $100/mo for ISDN? You know you wanted it. Anyway, I give my parents -5 seconds until their Windows 95 machine is rooted.\n","permalink":"https://bobcopeland.com/blog/2006/03/mobile/","summary":"\u003cp\u003eA few months ago I bowed to peer pressure and purchased a new phone. Prior to that, my antenna had been held on with hot melt glue for several months. So I read the internets, picked out a phone, found an unlocked version (I\u0026rsquo;m not going to be a serf to the mobile companies!) and plonked down the requisite credit card number into the order form. When it arrived a few days later, my co-workers were mystified. \u0026ldquo;That\u0026rsquo;s not a RAZR,\u0026rdquo; they said, incredulously. \u0026ldquo;Why get a dumpy looking Nokia [ \u003cem\u003e6230 for those who care\u003c/em\u003e]? Paris Hilton wouldn\u0026rsquo;t touch that.\u0026rdquo;) Well, a few reasons: I get craptastic reception at the house, and Nokias are legendary for good reception. On that front, I\u0026rsquo;ve been very pleased; no dropouts anywhere in my house whereas I had to stand on the porch with my old phone. Also, it has a decent MP3 player built in with expandable flash memory. I have a real MP3 player already but it never hurts to have a few tunes with you for bumpy places such as the gym where the hard drive is unwelcome. Reason the third: EDGE.\u003c/p\u003e","title":"Mobile"},{"content":"I decided to put some new color on the walls of my breakfast area before my newly rescheduled party (March 4th, 8pm, be there) and so I hopped on down to Home Depot. Yellow was the decided color, because breakfasts are supposed to be sunny early morning affairs. I spent half an hour pouring over the little cards trying to pick out one that wouldn\u0026rsquo;t be too bright, too washed out, too dark, or ugly. A tough set of requirements when dealing with yellow. Anyway, picked up the best candidate and headed for home, and spent the day painting. End result: hideous. It looks like a dayglo schoolbus parked in the room. So I get to repaint it a new color. Awesome. I\u0026rsquo;ll update this with a picture later when I get rejoined with my mini-USB cable.\nThose who didn\u0026rsquo;t quite get my Halloween costume may be pleased to know that the Venture Bros. are back on Adult Swim on the weekends. Set your TiVos. Next episode:\nCareers in Science - The family travels to space to repair an orbiting space station. Cartoon Network, Sat Feb 25, 2006, 11:00 PM (30 mins)\nUpdate:\n","permalink":"https://bobcopeland.com/blog/2006/02/yellow-for-a-day/","summary":"\u003cp\u003eI decided to put some new color on the walls of my breakfast area before my newly rescheduled party (March 4th, 8pm, be there) and so I hopped on down to Home Depot. Yellow was the decided color, because breakfasts are supposed to be sunny early morning affairs. I spent half an hour pouring over the little cards trying to pick out one that wouldn\u0026rsquo;t be too bright, too washed out, too dark, or ugly. A tough set of requirements when dealing with yellow. Anyway, picked up the best candidate and headed for home, and spent the day painting. End result: hideous. It looks like a dayglo schoolbus parked in the room. So I get to repaint it a new color. Awesome. I\u0026rsquo;ll update this with a picture later when I get rejoined with my mini-USB cable.\u003c/p\u003e","title":"Yellow for a day"},{"content":"I\u0026rsquo;m a believer in Sturgeon\u0026rsquo;s law, but why must bad SF be so very bad? Especially when written by non-scientific sorts, as in my latest literary conquest, The Smithsonian Institution by Gore Vidal. This is a truly lamentable alternate history wherein the main character goes back in time to prevent World War II, all the while cavorting with a President\u0026rsquo;s wife in Gore\u0026rsquo;s so-bad-they-are-amusing love scenes which always end, \u0026ldquo;he entered her.\u0026rdquo; Now of course time travel is a stretch, yet I didn\u0026rsquo;t think anyone could do it worse than Michael Crichton. Alas, try this garbage on:\nThe light string, enormously magnified, could pinpoint any instant in space-time. The theorem that he had devised for Dr. Oppenheimer to keep one detonating atom from setting off random explosions within other atoms could also be adapted to provide sufficient velocity for a human being to go either backwards or forward in time and, once located in the desired space-time, he would be able to synchronize with the speed of those already there for a limited period \u0026ndash; the limitation being the amount of power he could produce to provide him with sufficient velocity needed to do what he had to do and return to his home time-space.\nAhh, it is so clear now: use string theory! And um, some theorem, and do something else and go really fast and add power\u0026hellip; and you need to use the time-space, or space-time, or whatever that jigger is. Easy.\n","permalink":"https://bobcopeland.com/blog/2006/02/90-crap/","summary":"\u003cp\u003eI\u0026rsquo;m a believer in Sturgeon\u0026rsquo;s law, but why must bad SF be so very bad? Especially when written by non-scientific sorts, as in my latest literary conquest, \u003cem\u003eThe Smithsonian Institution\u003c/em\u003e by Gore Vidal. This is a truly lamentable alternate history wherein the main character goes back in time to prevent World War II, all the while cavorting with a President\u0026rsquo;s wife in Gore\u0026rsquo;s so-bad-they-are-amusing love scenes which always end, \u0026ldquo;he entered her.\u0026rdquo; Now of course time travel is a stretch, yet I didn\u0026rsquo;t think anyone could do it worse than Michael Crichton. Alas, try this garbage on:\u003c/p\u003e","title":"90% crap"},{"content":"In case you missed the thirty hours of news coverage, it snowed this weekend. My car is punk: it has a snohawk.\n","permalink":"https://bobcopeland.com/blog/2006/02/white-stuff/","summary":"\u003cp\u003eIn case you missed the thirty hours of news coverage, it snowed this weekend. My car is punk: it has a snohawk.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/snow2.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/punkcar1.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/punkcar2.jpg\"\u003e\u003c/p\u003e","title":"White stuff"},{"content":"There\u0026rsquo;s a raging debate on at work on the best cut of beef around here: Mortons vs. L\u0026rsquo;Auberge. This weekend I made my first long overdue trip to the one place that could possibly top either of those: Five Guys. Bacon double cheeseburger with pickels, lettuce, fried onions, ketchup and mustard, and those wonderful fries whose pedigree is prominently displayed for all to see\u0026hellip; Yum.\nWhat other \u0026ldquo;super\u0026rdquo; activity did I do this weekend? Oh yeah, I ignored some football game while learning as many songs as I could. Guess what? Plenty of previously unobjectionable songs really start to suck on their tenth consecutive listen.\n","permalink":"https://bobcopeland.com/blog/2006/02/cow/","summary":"\u003cp\u003eThere\u0026rsquo;s a raging debate on at work on the best cut of beef around here: Mortons vs. L\u0026rsquo;Auberge. This weekend I made my first long overdue trip to the one place that could possibly top either of those: Five Guys. Bacon double cheeseburger with pickels, lettuce, fried onions, ketchup and mustard, and those wonderful fries whose pedigree is prominently displayed for all to see\u0026hellip; Yum.\u003c/p\u003e\n\u003cp\u003eWhat other \u0026ldquo;super\u0026rdquo; activity did I do this weekend? Oh yeah, I ignored some football game while learning as many songs as I could. Guess what? Plenty of previously unobjectionable songs really start to suck on their tenth consecutive listen.\u003c/p\u003e","title":"Cow"},{"content":"It\u0026rsquo;s about time I got back on the road again. The Herndon circuit. Crossroads, will you ever let me go? So, I\u0026rsquo;m auditioning for a new band next Tuesday. If all turns out well, I\u0026rsquo;ll be back where I belong this summer: playing cheesy 80s pop songs to drunk people who don\u0026rsquo;t care what day it is much less that there\u0026rsquo;s a band playing. Before I get there though, I have to pass the audition, and before that, I have to learn forty songs this weekend. I heard you had a big mp3 collection\u0026hellip;\n","permalink":"https://bobcopeland.com/blog/2006/02/band/","summary":"\u003cp\u003eIt\u0026rsquo;s about time I got back on the road again. The Herndon circuit. Crossroads, will you ever let me go? So, I\u0026rsquo;m auditioning for a new band next Tuesday. If all turns out well, I\u0026rsquo;ll be back where I belong this summer: playing cheesy 80s pop songs to drunk people who don\u0026rsquo;t care what day it is much less that there\u0026rsquo;s a band playing. Before I get there though, I have to pass the audition, and before that, I have to learn forty songs this weekend. I heard you had a big mp3 collection\u0026hellip;\u003c/p\u003e","title":"Band"},{"content":"I\u0026rsquo;m Kevin Bacon on BoingBoing today, for some reason. First we have the link to BBS Ads which then links to my projects page because they used my awesome ansiconv program. Actually this program is pretty dead and numerous better projects have sprung up to replace it, but I still claim first mover status.\nThen there\u0026rsquo;s former roommate Matt\u0026rsquo;s dad, saying that beer serving robots are just an attention grab compared to real robots like Roomba. To that I have to say: I want a beer pouring Roomba!\nAnyone know what happened to Matt?\n","permalink":"https://bobcopeland.com/blog/2006/01/two-degrees/","summary":"\u003cp\u003eI\u0026rsquo;m Kevin Bacon on BoingBoing today, for some reason. First we have the link to \u003ca href=\"http://mbox.bz/slurp/ascii/bbsads/\"\u003eBBS Ads\u003c/a\u003e which then links to my \u003ca href=\"/projects.html\"\u003eprojects\u003c/a\u003e page because they used my awesome ansiconv program. Actually this program is pretty dead and numerous better projects have sprung up to replace it, but I still claim first mover status.\u003c/p\u003e\n\u003cp\u003eThen there\u0026rsquo;s former roommate Matt\u0026rsquo;s dad, \u003ca href=\"http://www.newscientist.com/article.ns?id=dn8642\"\u003esaying\u003c/a\u003e that beer serving robots are just an attention grab compared to real robots like Roomba. To that I have to say: I want a beer pouring Roomba!\u003c/p\u003e","title":"Two degrees"},{"content":"I still hate Java, but I do have to say that J2SE \u0026ldquo;5\u0026rdquo; is a much needed improvement. Ahh, generics, where have you been all this time? This week I\u0026rsquo;ve been rewriting an old buggy, crufty server we had sitting around (before: 5000 lines of code, after: 600) and discovered one of the neatest new whizbang features: jconsole, a standalone JVM monitor and JMX console. If you\u0026rsquo;ve used JBoss\u0026rsquo; jmx-console webapp before, it\u0026rsquo;s the same idea, just prettier.\nAll you have to do to use it is add -Dcom.sun.management.jmxremote to the java command line, and then run jconsole. Then you can monitor memory usage, get live stack traces on all the running threads, and get general VM statistics. If you create an MBean interface and implementation and register it with the platform MBean server, then you can interact with the application just as if deployed in a JMX container. For example, I have MBean methods to make the server enter and leave maintenance mode for software upgrades. To use them, we just connect with jconsole and click the proper button. Neat.\n","permalink":"https://bobcopeland.com/blog/2006/01/jconsole/","summary":"\u003cp\u003eI still hate Java, but I do have to say that J2SE \u0026ldquo;5\u0026rdquo; is a much needed improvement. Ahh, generics, where have you been all this time? This week I\u0026rsquo;ve been rewriting an old buggy, crufty server we had sitting around (before: 5000 lines of code, after: 600) and discovered one of the neatest new whizbang features: jconsole, a standalone JVM monitor and JMX console. If you\u0026rsquo;ve used JBoss\u0026rsquo; jmx-console webapp before, it\u0026rsquo;s the same idea, just prettier.\u003c/p\u003e","title":"jconsole"},{"content":"Recent minutiae:\nSaturday, saw vampires.\nSunday, visited National Building Museum. Didn\u0026rsquo;t pay $5 suggested donation. About as dry as sounds, though translucent and fiber optic concrete are interesting.\nTuesday, used no pronouns or articles.\n","permalink":"https://bobcopeland.com/blog/2006/01/day-verbed-noun/","summary":"\u003cp\u003eRecent minutiae:\u003c/p\u003e\n\u003cp\u003eSaturday, saw vampires.\u003c/p\u003e\n\u003cp\u003eSunday, visited National Building Museum. Didn\u0026rsquo;t pay $5 suggested donation. About as dry as sounds, though translucent and fiber optic concrete are interesting.\u003c/p\u003e\n\u003cp\u003eTuesday, used no pronouns or articles.\u003c/p\u003e","title":"day verbed noun"},{"content":"ChangeLog-2.6.16-rc1: commit 0e6e1db4ac7acfe3e38bbef9eba59233ba7f6b9a Author: Bob Copeland Date: Mon Jan 16 22:14:20 2006 -0800 [PATCH] partitions: Read Rio Karma partition table The Rio Karma portable MP3 player has its own proprietary partition table. The partition layout is similar to a DOS boot sector but it begins at a different offset and uses a different magic number (0xAB56 instead of 0xAA55). Add support for it to enable mounting the device. Signed-off-by: Bob Copeland Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Who wants to touch me?\n","permalink":"https://bobcopeland.com/blog/2006/01/in-kernel/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eChangeLog-2.6.16-rc1:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ecommit 0e6e1db4ac7acfe3e38bbef9eba59233ba7f6b9a\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eAuthor: Bob Copeland\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eDate:   Mon Jan 16 22:14:20 2006 -0800\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[PATCH] partitions: Read Rio Karma partition table\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eThe Rio Karma portable MP3 player has its own proprietary partition table.\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eThe partition layout is similar to a DOS boot sector but it begins at a\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003edifferent offset and uses a different magic number (0xAB56 instead of\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e0xAA55).  Add support for it to enable mounting the device.\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eSigned-off-by: Bob Copeland\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eSigned-off-by: Andrew Morton\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eSigned-off-by: Linus Torvalds\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eWho wants to touch me?\u003c/p\u003e","title":"in-kernel"},{"content":"By the way, readers of this who happen to know where I live, if you are wondering what to do next Saturday night, the 21st: party at my house! Though I may cancel the thing since there are a few conflicts and I\u0026rsquo;ve heard yesses from only a couple of people. Incriminating photos will be posted here.\n","permalink":"https://bobcopeland.com/blog/2006/01/fete/","summary":"\u003cp\u003eBy the way, readers of this who happen to know where I live, if you are wondering what to do next Saturday night, the 21st: party at my house! Though I may cancel the thing since there are a few conflicts and I\u0026rsquo;ve heard yesses from only a couple of people. Incriminating photos will be posted here.\u003c/p\u003e","title":"Fete"},{"content":"While riding the Rosslyn escalator today, I wondered where it stood in the hierarchy of tall escalators. Wikipedia seems self-contradictory on this point, but I believe it is credible in proclaiming Wheaton the West\u0026rsquo;s largest. Go WMATA! Now if you can just extend the superior escalator tech to keeping them running.\nI believe myself simpatico with everyone at hates-software. So allow me to air a gripe of my own: LaTeX, WTF? Why must you have no useful interaction mode that actually tells where the errors are? Why must I run you twice to fix up references, couldn\u0026rsquo;t you try rescanning yourself? Why must you, even in batchmode, tell me that you got wedged, and refuse to exit? Too bad you are still way better than Word.\nCrankcase oil smell not doing it for you? Better go more manly\u0026hellip;I think. Orange County Choppers, the tough guys known for the series American Chopper, now have their own line of cologne: Full Throttle. Hilarious.\n","permalink":"https://bobcopeland.com/blog/2006/01/mishmash/","summary":"\u003cp\u003eWhile riding the Rosslyn escalator today, I wondered where it stood in the hierarchy of tall escalators. Wikipedia seems self-contradictory on this point, but I believe it is credible in \u003ca href=\"http://en.wikipedia.org/wiki/Escalator\"\u003eproclaiming Wheaton\u003c/a\u003e the West\u0026rsquo;s largest. Go WMATA! Now if you can just extend the superior escalator tech to keeping them running.\u003c/p\u003e\n\u003cp\u003eI believe myself simpatico with everyone at \u003ca href=\"http://we.hates-software.com/\"\u003ehates-software\u003c/a\u003e. So allow me to air a gripe of my own: LaTeX, WTF? Why must you have no useful interaction mode that actually tells where the errors are? Why must I run you twice to fix up references, couldn\u0026rsquo;t you try rescanning yourself? Why must you, even in batchmode, tell me that you got wedged, and refuse to exit? Too bad you are still way better than Word.\u003c/p\u003e","title":"Mishmash"},{"content":"Yeah, I got nothing.\n","permalink":"https://bobcopeland.com/blog/2006/01/still-here/","summary":"\u003cp\u003eYeah, I got nothing.\u003c/p\u003e","title":"Still here"},{"content":"Well I trust everyone had a good set of holidays. I worked through most of it, but I did take an extra day off to celebrate the birth of Santa Claus, that fickle diety who will destroy the universe if retailers end the year in the red. Once again we made it, barely.\nChristmas dinner was gluttonous, featuring a 10 lb. turkey, cranberry sauce, green bean casserole, baked macaroni \u0026amp; cheese, mashed potatoes (AB\u0026rsquo;s \u0026ldquo;mashers\u0026rdquo;), dinner rolls, a bottle of white wine and the piece de resistance, a Ghirardelli chocolate cheesecake, all homemade. Not a bad meal for the two of us.\nNo one came through on the NYE invite, TYVM. What do I pay you friends for? So I spent the 31st playing with my robot. Really: I bought myself one of those Roomba things that day. My house has never been cleaner.\nSo here\u0026rsquo;s hoping \u0026lsquo;06 is a good one filled with joy, and that our robotic housekeepers postpone the revolution until next year.\n","permalink":"https://bobcopeland.com/blog/2006/01/year/","summary":"\u003cp\u003eWell I trust everyone had a good set of holidays. I worked through most of it, but I did take an extra day off to celebrate the birth of Santa Claus, that fickle diety who will destroy the universe if retailers end the year in the red. Once again we made it, barely.\u003c/p\u003e\n\u003cp\u003eChristmas dinner was gluttonous, featuring a 10 lb. turkey, cranberry sauce, green bean casserole, baked macaroni \u0026amp; cheese, mashed potatoes (AB\u0026rsquo;s \u0026ldquo;mashers\u0026rdquo;), dinner rolls, a bottle of white wine and the piece de resistance, a Ghirardelli chocolate cheesecake, all homemade. Not a bad meal for the two of us.\u003c/p\u003e","title":"++year;"},{"content":"\nOh, the humanity!\n","permalink":"https://bobcopeland.com/blog/2005/12/chipotle/","summary":"\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/burrito.jpg\"\u003e\u003cbr\u003e\nOh, the humanity!\u003c/p\u003e","title":"Chipotle"},{"content":"\n","permalink":"https://bobcopeland.com/blog/2005/12/happy-christmas/","summary":"\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/xmas.jpg\"\u003e\u003c/p\u003e","title":"Happy Christmas"},{"content":"For those still looking for gifts, Shinedown is the best Soundgarden cover band this side of Audioslave. And, the CD doesn\u0026rsquo;t have any of that XCP BS. Not to be confused with Trey Anastasio\u0026rsquo;s solo effort, Shine, which does have XCP, and it really sucks besides.\nWeary of travel, I am spending the X-mas and New Year\u0026rsquo;s here in VA. I\u0026rsquo;m going to cook a turkey on Christmas morning with AC. Should any friends reading this feel like joining us in person, you are more than welcome to drop by. There will be way too much food for the two of us to eat. Also, my yearly confession of no social life: invite me to your NYE party, kthx.\n","permalink":"https://bobcopeland.com/blog/2005/12/holidays-are-here-again/","summary":"\u003cp\u003eFor those still looking for gifts, Shinedown is the best Soundgarden cover band this side of Audioslave. And, the CD doesn\u0026rsquo;t have any of that XCP BS. Not to be confused with Trey Anastasio\u0026rsquo;s solo effort, Shine, which \u003cem\u003edoes\u003c/em\u003e have XCP, and it really sucks besides.\u003c/p\u003e\n\u003cp\u003eWeary of travel, I am spending the X-mas and New Year\u0026rsquo;s here in VA. I\u0026rsquo;m going to cook a turkey on Christmas morning with AC. Should any friends reading this feel like joining us in person, you are more than welcome to drop by. There will be way too much food for the two of us to eat. Also, my yearly confession of no social life: invite me to your NYE party, kthx.\u003c/p\u003e","title":"Holidays are here again"},{"content":"Did I say patching the hole in my wall was the last engineering hurdle for my kitchen? Well, in fact, I had plenty this weekend. My original sink was about 75% of the size of the new one. My new sink, in addition to being wider in the front-to-back dimension, is also an inch deeper than the previous one. And, it\u0026rsquo;s an undermount whereas the previous went on top of the countertop. So my installation of the new garbage disposer with the new sink faced two problems: the old waste line plumbing was too tall to mate with the much lower discharge side of the disposer, and, more annoyingly, was two inches too short to reach the unit.\nI decided to tackle problem number two first. After a half hour spent rummaging through Lowes\u0026rsquo; selection of PVC thingys, I found a good approximation to the discharge tube of the disposer, but without the 90 degree bend, and I also grabbed a 90 degree elbow. This is not schedule 40 PVC; it\u0026rsquo;s really flimsy plastic stuff, but it\u0026rsquo;s a good match for the tube that came with the disposer. I did the obvious thing: instead of bending after one inch, I fashioned a tube that travelled horizontally three inches before turning downward into the waste pipe. It lined up well with the existing waste line.\nSo the height now needed to be solved. I took a hacksaw to the existing schedule 40 PVC line, before I realized that did no good. I\u0026rsquo;d have to replace the whole P-trap since the previous stuff was solvent welded. I then intended to just detach the existing U segment of the trap and put a new one on. However, I soon discovered that the old traps had the nut on the top whereas newly made ones have it on the bottom. F-bomb.\nThe only avenue now available (I\u0026rsquo;d already cut the U segment in half in a misguided effort to get it off) was to do what I should have done in the first place. I cut the old waste line just before the old trap and decided to extend the line two inches and put a new trap on, to solve both problems at once. A vigorous bit of hacksawing, a coupler, two cuts of PVC pipe with the table saw, a near-vomit-inducing bout with PVC primer and cement fumes, and a waste line adapter later, and I had the original disposer tubing connected to the waste line. For the first time since August my kitchen has running water again. Yay!\n","permalink":"https://bobcopeland.com/blog/2005/12/pipes/","summary":"\u003cp\u003eDid I say patching the hole in my wall was the last engineering hurdle for my kitchen? Well, in fact, I had plenty this weekend. My original sink was about 75% of the size of the new one. My new sink, in addition to being wider in the front-to-back dimension, is also an inch deeper than the previous one. And, it\u0026rsquo;s an undermount whereas the previous went on top of the countertop. So my installation of the new garbage disposer with the new sink faced two problems: the old waste line plumbing was too tall to mate with the much lower discharge side of the disposer, and, more annoyingly, was two inches too short to reach the unit.\u003c/p\u003e","title":"Pipes"},{"content":"While in Atlanta, I finally faced the object of my derision. I became one of them. I paid ten bucks to watch a commercial. In short, I went to World of Coke.\nListen: there isn\u0026rsquo;t a whole lot to do in Atlanta, touristly speaking. We didn\u0026rsquo;t have time to visit the zoo/Cyclorama, and the new aquarium was fully booked. The olympic park took a few minutes to circumnavigate, as did the Adult Swim section of the Turner store at CNN center. The High closed too early. Plus, I like the soft drink, isn\u0026rsquo;t that enough reason to go? Okay, enough rationalizing.\nOn the inside, it\u0026rsquo;s like Willy Wonka\u0026rsquo;s chocolate factory without Oompa-loompahs\u0026hellip; or\u0026hellip; well okay it\u0026rsquo;s not like that at all. It\u0026rsquo;s like a monument to a global marketing machine. But that\u0026rsquo;s not all bad: plenty of memories were rekindled, such as the Mean Joe Green commercial and Tab, and there were some interesting exhibits including the chunky pin-up girls of yesteryear and six foot bottle sculptures in obsidian and granite. And at then end you can drink as much as you like of Coke and weird other-worldly sodas sold in various hemispheres. The \u0026ldquo;bitter apertif\u0026rdquo; drink won most disgusting award, while the Chinese green apple was pretty tasty. The floor is really sticky.\n","permalink":"https://bobcopeland.com/blog/2005/12/world-of-carbonated-beverage/","summary":"\u003cp\u003eWhile in Atlanta, I finally faced the object of my derision. I became one of them. I paid ten bucks to watch a commercial. In short, I went to World of Coke.\u003c/p\u003e\n\u003cp\u003eListen: there isn\u0026rsquo;t a whole lot to do in Atlanta, touristly speaking. We didn\u0026rsquo;t have time to visit the zoo/Cyclorama, and the new aquarium was fully booked. The olympic park took a few minutes to circumnavigate, as did the Adult Swim section of the Turner store at CNN center. The High closed too early. Plus, I like the soft drink, isn\u0026rsquo;t that enough reason to go? Okay, enough rationalizing.\u003c/p\u003e","title":"World of Carbonated Beverage"},{"content":" Since I\u0026rsquo;ve been slacking, I have a number of unposted posts swimming in my head. You may get to see them, or not, so there. Anyway, here\u0026rsquo;s an update on my decade long kitchen project. A couple of weeks ago saw the arrival of hundreds of pounds of rock on my doorstep. The results, I have to say, are well worth the trouble.\nTasks remaining: replumb the P-trap to fit with the garbage disposal, add cover panels, base trim, molding, quarter-round around the edges of floor, and install an over-the-range microwave. Easy!\n","permalink":"https://bobcopeland.com/blog/2005/12/the-kitchening/","summary":"\u003cp\u003e\u003ca href=\"http://apps.bobcopeland.com/gallery/view_photo.php?set_albumName=kitchen\u0026amp;id=countertop_001\"\u003e\u003cimg loading=\"lazy\" src=\"http://apps.bobcopeland.com/albums/kitchen/countertop_001.thumb.jpg\"\u003e\u003c/a\u003e Since I\u0026rsquo;ve been slacking, I have a number of unposted posts swimming in my head. You may get to see them, or not, so there. Anyway, here\u0026rsquo;s an update on my decade long kitchen project. A couple of weeks ago saw the arrival of hundreds of pounds of rock on my doorstep. The results, I have to say, are well worth the trouble.\u003c/p\u003e\n\u003cp\u003eTasks remaining: replumb the P-trap to fit with the garbage disposal, add cover panels, base trim, molding, quarter-round around the edges of floor, and install an over-the-range microwave. Easy!\u003c/p\u003e","title":"The Kitchening"},{"content":"I am finished with my whirlwind tour of North America including five nights in Atlanta and three in Toronto. In this new age of starbucksification, let it be said that there is no place un like home. Click your heels thrice and have a McGriddle, Dot, you\u0026rsquo;re still in Kansas. More later.\n","permalink":"https://bobcopeland.com/blog/2005/12/back/","summary":"\u003cp\u003eI am finished with my whirlwind tour of North America including five nights in Atlanta and three in Toronto. In this new age of starbucksification, let it be said that there is no place \u003cem\u003eun\u003c/em\u003e like home. Click your heels thrice and have a McGriddle, Dot, you\u0026rsquo;re still in Kansas. More later.\u003c/p\u003e","title":"Back"},{"content":"As authority on all things good, it is occasionally my responsibility to advise you, the public, on which products to avoid. First up is the Poulan \u0026ldquo;Weed Eater\u0026rdquo; brand leaf blower. This is a product with an identity crisis: it has never, as far as I know, eaten a weed while in my employ. I bought this a couple of years ago, and while it has served me well for two seasons, yesterday the throttle control decided to jettison itself in the middle of leaf cleaning duty. I believe a piece of the throttle is now forever missing (possibly at the bottom of a mountain of leaves), without which I shall no longer be able to start the engine on the thing.\nAlso, stay away from Giant brand shaving gel. When they are out of the real thing, as was the case this weekend, you would be better advised to shave with hot pepper sauce.\nI recently turned off images in firefox to reduce my traffic footprint on the corporate firewall. Here\u0026rsquo;s my plea to web developers everywhere: please don\u0026rsquo;t set the alt tag on your 1x1 transparent layout hacks to anything but \u0026rsquo; \u0026lsquo;. pixelItblankcanspacebe1x1hardemptytospacerread. Thank you for trying to be accessible, though.\nNew countertop arrives tomorrow. Antsy.\n","permalink":"https://bobcopeland.com/blog/2005/11/caveat-canem/","summary":"\u003cp\u003eAs authority on all things good, it is occasionally my responsibility to advise you, the public, on which products to avoid. First up is the Poulan \u0026ldquo;Weed Eater\u0026rdquo; brand leaf blower. This is a product with an identity crisis: it has never, as far as I know, eaten a weed while in my employ. I bought this a couple of years ago, and while it has served me well for two seasons, yesterday the throttle control decided to jettison itself in the middle of leaf cleaning duty. I believe a piece of the throttle is now forever missing (possibly at the bottom of a mountain of leaves), without which I shall no longer be able to start the engine on the thing.\u003c/p\u003e","title":"Caveat Canem"},{"content":"Man you know you\u0026rsquo;ve been gone a while when you come back and LJ has a whole ton of new features.\nAnyway, I have a table saw now. 4800 RPMs \u0026ndash; Yum. And I haven\u0026rsquo;t even lost a digit yet! Word is that my kitchen will be completed within two weeks, as that is when my countertop is installed. Just in time for the holidays. I may throw one of those \u0026ldquo;party\u0026rdquo; things once I get it all cleaned up. Pictures of the completed thing to appear soon.\nI\u0026rsquo;ll be in ATL for Thanksgiving starting on 11/23 through 11/28. AC is going with and we\u0026rsquo;re going to try to sight-see on Sunday. And possibly watch the UGA game somewhere if it isn\u0026rsquo;t too late in the day. So hit me up, you individuals who will also be there.\n","permalink":"https://bobcopeland.com/blog/2005/11/vidi/","summary":"\u003cp\u003eMan you know you\u0026rsquo;ve been gone a while when you come back and LJ has a whole ton of new features.\u003c/p\u003e\n\u003cp\u003eAnyway, I have a table saw now. 4800 RPMs \u0026ndash; Yum. And I haven\u0026rsquo;t even lost a digit yet! Word is that my kitchen will be completed within two weeks, as that is when my countertop is installed. Just in time for the holidays. I may throw one of those \u0026ldquo;party\u0026rdquo; things once I get it all cleaned up. Pictures of the completed thing to appear soon.\u003c/p\u003e","title":"Vidi"},{"content":"Happy halloween, you evil devil worshippers.\nThis year I went as The Monarch from Venture Bros. (No, not a transformer, or the Burger King guy!) I used three cans of spraypaint and a large box to masquerade as the world\u0026rsquo;s most diabolical butterfly (sans wings). Ange was a good enough sport to go as Doctor Girlfriend. I think it turned out nicely:\nTo continue the Venture Bros. theme, I ripped off the skull from their logo for a jack-o-lantern. Watch out kids.\n","permalink":"https://bobcopeland.com/blog/2005/10/halloween/","summary":"\u003cp\u003eHappy halloween, you evil devil worshippers.\u003c/p\u003e\n\u003cp\u003eThis year I went as The Monarch from Venture Bros. (No, not a transformer, or the Burger King guy!) I used three cans of spraypaint and a large box to masquerade as the world\u0026rsquo;s most diabolical butterfly (sans wings). Ange was a good enough sport to go as Doctor Girlfriend. I think it turned out nicely:\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/monarch.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/images/lj/monarch2.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eTo continue the Venture Bros. theme, I ripped off the skull from their logo for a jack-o-lantern. Watch out kids.\u003c/p\u003e","title":"Halloween"},{"content":"Ange and I made a return trip to Philly last weekend to see dead people. We visited the Body Worlds exhibit there, which consists of actual corpses whose blood has been replaced with plastic (let\u0026rsquo;s see if they notice the difference!). And then their skin, musculature, and innards are disected for all to see. It was actually pretty interesting, and not too disturbing except for the guy that was carrying around his hairy skin like a coat. I learned some new words that will come in handy next time I am impersonating a doctor.\nAfter that, we met up with high school buddy D.A. and chowed down on some food at Monk\u0026rsquo;s Cafe. Here, a religious order painstakingly prepares hamburgers and beer for your consumption on the holiest day of the week. And you don\u0026rsquo;t have to know any Latin. It was good catching up and great food too.\nNext, AC and I headed to a gelatto shop whose name escapes me. I haven\u0026rsquo;t had gelatto before, but let me tell you, one day this thing is going to be big. I had something made with coffee and she had something with sweet potatoes in it. Even so, they were both delicious.\nFinally, we capped off the day in the Eastern State Penitentiary. This is where I finally got my camera out and managed to snap a picture or two. Eastern State was the birthplace of the Pennsylvania System (a plan to rehabilitate prisoners), and ultimately a model for how not to treat criminals. Some say the Pen is haunted. And by some, I mean Steve Buscemi. But whatever. On evenings in Fall you can pay extra and be guaranteed to see ghosts - for they host a haunted house after hours around Halloween. We, however, just did the historical tour because we had to head back.\n","permalink":"https://bobcopeland.com/blog/2005/10/philly-2/","summary":"\u003cp\u003eAnge and I made a return trip to Philly last weekend to see dead people. We visited the \u003ca href=\"http://www.bodyworlds.com/\"\u003eBody Worlds\u003c/a\u003e exhibit there, which consists of actual corpses whose blood has been replaced with plastic (let\u0026rsquo;s see if they notice the difference!). And then their skin, musculature, and innards are disected for all to see. It was actually pretty interesting, and not too disturbing except for the guy that was carrying around his hairy skin like a coat. I learned some new words that will come in handy next time I am impersonating a doctor.\u003c/p\u003e","title":"Philly 2"},{"content":"It\u0026rsquo;s time to play the blog drinking game: every time someone says they\u0026rsquo;ve been bad about updates, you drink. Get your shotglass ready\u0026hellip;\nSo anyway, not a lot has been happening lately. Last weekend I bought a countertop for my kitchen: Impala Black granite. I purchased from Lowe\u0026rsquo;s after the \u0026ldquo;20% cheaper than home centers\u0026rdquo; place never called me back. But I got pretty much the exact same stone (and for less). Here\u0026rsquo;s an interesting fact about granite: there are only so many different colors, and apparently, they don\u0026rsquo;t go in for variety in naming. So I GISed to get a picture from some other vendor: clicky clicky.\nI\u0026rsquo;m still under budget, but I expect that the aquisition of a new over-the-range microwave and a table saw will put me a couple hundred over.\nAlso, I patched over the hole where my vent hood used to be. It\u0026rsquo;s amazing that you can slop a bunch of mud over a hole and no one is the wiser. Actually, I didn\u0026rsquo;t do a very chocotastic job on it so I may give that one another go this week, but it remains the last engineering hurdle for me to overcome.\n","permalink":"https://bobcopeland.com/blog/2005/10/stoned/","summary":"\u003cp\u003eIt\u0026rsquo;s time to play the blog drinking game: every time someone says they\u0026rsquo;ve been bad about updates, you drink. Get your shotglass ready\u0026hellip;\u003c/p\u003e\n\u003cp\u003eSo anyway, not a lot has been happening lately. Last weekend I bought a countertop for my kitchen: Impala Black granite. I purchased from Lowe\u0026rsquo;s after the \u0026ldquo;20% cheaper than home centers\u0026rdquo; place never called me back. But I got pretty much the exact same stone (and for less). Here\u0026rsquo;s an interesting fact about granite: there are only so many different colors, and apparently, they don\u0026rsquo;t go in for variety in naming. So I GISed to get a picture from some other vendor: \u003ca href=\"http://www.normandeaustone.com/images/Impala_Black4x4.jpg\"\u003eclicky clicky\u003c/a\u003e.\u003c/p\u003e","title":"Stoned"},{"content":"I\u0026rsquo;m entering a new phase in the product cycle at work so I get to think more about the current state of the way-behind-the-times while designing a new system.\nSwing\u0026rsquo;s MVC design for tables and combo boxes and so on totally misses the point. MVC is about abstracting away the UI from the model; making the tables explicitly require a model that implements a javax.swing interface does nothing to reduce the coupling between interface and core code. What if I want a curses-based view instead of Swing on top of the same model? I am annoyed that Gtk2 seems to have picked up this misfeature.\nWhy did Java \u0026ldquo;5\u0026rdquo; introduce only an \u0026ldquo;enhanced for-loop\u0026rdquo; to go with generics? They should\u0026rsquo;ve taken a cue from STL and stressed algorithmic reuse. Where is a method like Perl\u0026rsquo;s map? Also, while we\u0026rsquo;re at it, I want real closures.\nEJB is way too complex, and Sun figured that out, and released a new spec. So far things are looking much better. I don\u0026rsquo;t like annotations as they clutter the code and seem like a reinvention of #pragma: it looks like something the compiler shouldn\u0026rsquo;t know about, but does. On the other hand deployment descriptors were 1e15 times worse. The EJB 3 persistence model is a lot cleaner, and surprise, you can use your database code outside the container now. Way to finally support one of the basic goals of OO. In fact, I had a real-world problem to solve earlier this year: write a small application that reuses our DB backend stuff, all command line based, without hitting the EJB tier. This is harder than it sounds, and eventually had me writing my own datasource provider with connection and statement pooling that wrapped the JDBC drivers of our database. Ick.\nI hate VMs. Operating systems are there for a reason. If I get another OutOfMemory exception because I didn\u0026rsquo;t pass -Xmx19201231230 to my leak-free Java program\u0026hellip;\nAJAX? A new name for what we did with javascript in hidden frames back in 1996? Okay, XmlHttpRequest, I\u0026rsquo;ll give you that. But it doesn\u0026rsquo;t deserve being thought of as a new technology. Same for \u0026ldquo;Service Oriented Architecture,\u0026rdquo; \u0026ldquo;Enterprise Service Bus,\u0026rdquo; and every other re-invention of RPC.\nI still think Grady Booch is an idiot.\nKernel programming is fun: you can use goto, bitwise ops, cast pointers to structures, and it\u0026rsquo;s all okay. Also: don\u0026rsquo;t comment too much.\n","permalink":"https://bobcopeland.com/blog/2005/10/nerd-stuff/","summary":"\u003cp\u003eI\u0026rsquo;m entering a new phase in the product cycle at work so I get to think more about the current state of the way-behind-the-times while designing a new system.\u003c/p\u003e\n\u003cp\u003eSwing\u0026rsquo;s MVC design for tables and combo boxes and so on totally misses the point. MVC is about abstracting away the UI from the model; making the tables explicitly require a model that implements a javax.swing interface does nothing to reduce the coupling between interface and core code. What if I want a curses-based view instead of Swing on top of the same model? I am annoyed that Gtk2 seems to have picked up this misfeature.\u003c/p\u003e","title":"Nerd stuff"},{"content":"You know what\u0026rsquo;s great? When you are on your way home from work and a high speed police chase breaks out, ending in a wreck about 100 yards in front of your vehicle that ultimately closes down the interstate, such that your conveyance must execute a three point turn an hour later to go the wrong way off the highway, thus extending the usual 45 minute commute to three hours.\nOh wait, not great. What\u0026rsquo;s the word I\u0026rsquo;m looking for? Suckass.\n","permalink":"https://bobcopeland.com/blog/2005/10/traffic-2/","summary":"\u003cp\u003eYou know what\u0026rsquo;s great? When you are on your way home from work and a high speed police chase breaks out, ending in a wreck about 100 yards in front of your vehicle that ultimately closes down the interstate, such that your conveyance must execute a three point turn an hour later to go the wrong way off the highway, thus extending the usual 45 minute commute to three hours.\u003c/p\u003e","title":"Traffic"},{"content":"A.C. and I went hiking last Sunday, on what was supposed to be a two hour, 6.8 mile loop around Loch Raven north of Baltimore. Of course, it was a total debacle thanks to Bryan Mackay, author of Baltimore Trails, who is officially no longer my friend.\nSoon after beginning the hike a few things became apparent: the trail is not blazed, and Mackay has done a craptacular job of indicating which way to go. At least three forks in the trail passed without comment, so we had to backtrack a time or two, including one unfortunate half-mile side-trip ending at an abandoned campfire and a newspaper dispenser.\nThe point at which A.C. likely gave up hiking for good came at the 4 mile mark, where we are advised that the only ways to continue are to go back the way we came, take a two mile death-defying road detour, or walk across a shallow river along some near-pebbles strewn far and wide. We elected to do the balancing act, and while neither of us fell in, our collective nimbleness was tested far too often. I\u0026rsquo;ll stick to bridges, thanks. A much easier crossing point, several hundred yards upstream, again was omitted.\nAll the same, I did get some half decent snapshots of the dam and the lake. And we made it back to the car just before the sun disappeared, which is always a plus.\n","permalink":"https://bobcopeland.com/blog/2005/10/dam/","summary":"\u003cp\u003eA.C. and I went hiking last Sunday, on what was supposed to be a two hour, 6.8 mile loop around Loch Raven north of Baltimore. Of course, it was a total debacle thanks to Bryan Mackay, author of \u003cem\u003eBaltimore Trails\u003c/em\u003e, who is officially no longer my friend.\u003c/p\u003e\n\u003cp\u003eSoon after beginning the hike a few things became apparent: the trail is not blazed, and Mackay has done a craptacular job of indicating which way to go. At least three forks in the trail passed without comment, so we had to backtrack a time or two, including one unfortunate half-mile side-trip ending at an abandoned campfire and a newspaper dispenser.\u003c/p\u003e","title":"Dam"},{"content":"My new contender for worst song ever is the dance mix of \u0026ldquo;Kiss the Rain.\u0026rdquo; Somehow I managed to escape this song for most of its lifetime; however, it caught up with me: they play it every single time I am at the gym. Hearing the lady wail a barely-on-key refrain over and over and over again provides a strong incentive to either work out more often such that if I ever meet the guilty sampler, I may handily pummel him, or else to never work out again. I\u0026rsquo;m not sure which.\nAlso, gym people, please stop playing anything by Cher, kthx.\n","permalink":"https://bobcopeland.com/blog/2005/09/bad-music/","summary":"\u003cp\u003eMy new contender for worst song ever is the dance mix of \u0026ldquo;Kiss the Rain.\u0026rdquo; Somehow I managed to escape this song for most of its lifetime; however, it caught up with me: they play it \u003cstrong\u003eevery single time\u003c/strong\u003e I am at the gym. Hearing the lady wail a barely-on-key refrain over and over and over again provides a strong incentive to either work out more often such that if I ever meet the guilty sampler, I may handily pummel him, or else to never work out again. I\u0026rsquo;m not sure which.\u003c/p\u003e","title":"Bad music"},{"content":"Allow me once again to sing the praises of freecycle, the group that exemplifies \u0026ldquo;one man\u0026rsquo;s trash is another man\u0026rsquo;s trash.\u0026rdquo; While I\u0026rsquo;ve unloaded a few junky things this route, last week was my first pick-up. A poster offered an \u0026ldquo;old\u0026rdquo; Dell case with Pentium III (733 mHz) motherboard and CPU, and I didn\u0026rsquo;t hesitate to grab it.\nNow, let\u0026rsquo;s put \u0026ldquo;old\u0026rdquo; into context: the machine was evidently made around Y2K. I had my firewall running off of a machine that was also given to me, \u0026ldquo;old,\u0026rdquo; in 1999. It was a Pentium 100 that used to belong to a Gateway, had 64 megs of RAM and sat in an AT case. Remember ISA? Big keyboard connectors? Serial ports? This machine has served me faithfully, running a 2.0 Linux kernel for years, delivering mail and proxying all of my network traffic, even back to the days when the upstream connection was a modem. As of yesterday it was on a 160 day uptime \u0026ndash; certainly I\u0026rsquo;ve had longer, but still not bad. I think the last downtime was when I painted my room and had to move it.\nEnter my new \u0026ldquo;old\u0026rdquo; box. It came without RAM, but luckily I already had 512 megs of SDRAM sitting around. The CPU, video card, and network card included all looked fine, so I grabbed one of the net cards from box #1 and threw it in, swapped in my hard drive, and had it up and running. The fan was very noisy, so I took a trip down to Best Buy.\nWhen are we going to get a Fry\u0026rsquo;s in NoVA already? To think that my best local so-called computer store is Best Buy\u0026hellip; this is a sad state of affairs. Well, they did have case fans, but only the kind with blue blinking LEDs. Resigned, I plopped down my $10 and headed home to install the thing. The good news is that the machine is now quiet enough to act as the new firewall for my home. The bad news: blue blinking LEDs. How am I supposed to sleep with these things flashing all night? There\u0026rsquo;s no off switch and you can\u0026rsquo;t cover up the fan. One of these days I might take a soldering iron to the blinking light portion of this thing.\nAnyway, a new, much faster, hash is born. Let us hope he is as reliable as his predecessor. And I look forward to getting a free Athlon 64 in 2011.\n","permalink":"https://bobcopeland.com/blog/2005/09/new-computer/","summary":"\u003cp\u003eAllow me once again to sing the praises of \u003ca href=\"http://freecycle.org/\"\u003efreecycle\u003c/a\u003e, the group that exemplifies \u0026ldquo;one man\u0026rsquo;s trash is another man\u0026rsquo;s trash.\u0026rdquo; While I\u0026rsquo;ve unloaded a few junky things this route, last week was my first pick-up. A poster offered an \u0026ldquo;old\u0026rdquo; Dell case with Pentium III (733 mHz) motherboard and CPU, and I didn\u0026rsquo;t hesitate to grab it.\u003c/p\u003e\n\u003cp\u003eNow, let\u0026rsquo;s put \u0026ldquo;old\u0026rdquo; into context: the machine was evidently made around Y2K. I had my firewall running off of a machine that was also given to me, \u0026ldquo;old,\u0026rdquo; in 1999. It was a Pentium 100 that used to belong to a Gateway, had 64 megs of RAM and sat in an AT case. Remember ISA? Big keyboard connectors? Serial ports? This machine has served me faithfully, running a 2.0 Linux kernel for years, delivering mail and proxying all of my network traffic, even back to the days when the upstream connection was a modem. As of yesterday it was on a 160 day uptime \u0026ndash; certainly I\u0026rsquo;ve had longer, but still not bad. I think the last downtime was when I painted my room and had to move it.\u003c/p\u003e","title":"New computer"},{"content":"Despite earning my degree in computer engineering, I haven\u0026rsquo;t done anything useful with assembly language since I was a strapping young idealistic lad convinced that compilers lie along the road to inefficiency. Much has changed. Heck, I write Java code for a living now \u0026ndash; pretty much the opposite of efficient. I have to have a gig of ram just to run that sucky ant program.\nWhile hacking my MP3 player, I discovered that the filesystem uses hashing to quickly lookup file names, which brought up the question of which hash function it uses. While I suppose one could reverse the hash function knowing a very large set of inputs and outputs, I decided it would probably be much more expedient to just put my atrophied x86 asm knowledge to work for me.\nThis turned out to be a lot easier than I thought. It only took about 20 minutes and I never had to step through code in a debugger.\nStep 1: Disassemble Windows program for loading files onto the device, including the data segment. Look for the offset of a useful printf format string (\u0026ldquo;hash is %d, expected %d\u0026rdquo;). Step 2: Search disassembly for loading said offset in a call to printf. Not surprisingly, this is right after the computation of the hash. Step 3: Examine nearby calls for things like shifts and mods (common hashing operations). Step 4: Relearn the stupidities of the x86 ISA (ecx is a loop counter, eax and edx figure in mysteriously for divides, etc). Step 5: Convinced that a nearby call is it, reimplement in C and test.\nBooyeah.\n","permalink":"https://bobcopeland.com/blog/2005/09/hashed/","summary":"\u003cp\u003eDespite earning my degree in computer engineering, I haven\u0026rsquo;t done anything useful with assembly language since I was a strapping young idealistic lad convinced that compilers lie along the road to inefficiency. Much has changed. Heck, I write Java code for a living now \u0026ndash; pretty much the opposite of efficient. I have to have a gig of ram just to run that sucky ant program.\u003c/p\u003e\n\u003cp\u003eWhile hacking my MP3 player, I discovered that the filesystem uses hashing to quickly lookup file names, which brought up the question of which hash function it uses. While I suppose one could reverse the hash function knowing a very large set of inputs and outputs, I decided it would probably be much more expedient to just put my atrophied x86 asm knowledge to work for me.\u003c/p\u003e","title":"hashed"},{"content":" As promised, here is another installment of My Kitchen Hates Me. Since last update, some doors have been added to the high cabinets and they have entered actual use; most of the base cabinets are in place and just need to be leveled and mounted to the wall; the pantry is ready to go; the trim was painted white and looks really nice. Still remaining: I need to get a vent hood and possibly cut down the appropriate cabinet so that the hood will fit over the existing hole, buy a countertop, move two base cabinets over about 4 inches so that a drawer will open fully instead of hitting the door molding, attach cover panels and kickplates and doors and drawers. So, most of the hard work is done.\nWhen I get an ETA on the countertop install, I\u0026rsquo;ll start planning a welcome-back-to-my-house party as only the brave have ventured in since\u0026hellip; how many years has it been since I started this project? Dave, you\u0026rsquo;ll have to drive down from Philly (and bring some cheesesteaks).\nIn other news, A.C. and I and a bunch of others went kayaking on the Potomac. I now regret not having tried that much earlier. It\u0026rsquo;s a lot easier than my previous kayaking expedition, which I spent the whole time calculating how quickly I could pull my skirt and how many ways I would die if I didn\u0026rsquo;t. Kayaking the Potomac is a breeze, like those pedal boats but not as cheesy.\n","permalink":"https://bobcopeland.com/blog/2005/09/my-eatin-room/","summary":"\u003cp\u003e\u003ca href=\"http://apps.bobcopeland.com/gallery/view_photo.php?set_albumName=kitchen\u0026amp;id=IMG_0758\"\u003e\u003cimg loading=\"lazy\" src=\"http://apps.bobcopeland.com/albums/kitchen/IMG_0758.thumb.jpg\"\u003e\u003c/a\u003e As promised, here is another installment of My Kitchen Hates Me. Since last update, some doors have been added to the high cabinets and they have entered actual use; most of the base cabinets are in place and just need to be leveled and mounted to the wall; the pantry is ready to go; the trim was painted white and looks really nice. Still remaining: I need to get a vent hood and possibly cut down the appropriate cabinet so that the hood will fit over the existing hole, buy a countertop, move two base cabinets over about 4 inches so that a drawer will open fully instead of hitting the door molding, attach cover panels and kickplates and doors and drawers. So, most of the hard work is done.\u003c/p\u003e","title":"My eatin' room"},{"content":"Last weekend saw the debut of my cowor-ker\u0026rsquo;s new rock band, the 15th Annual Rosslyn Jazz fest, GT vs UNC \u0026ndash; watched at Mister Days, and lots of work on my kitchen. My goal was to complete the kitchen cabinets on Sunday; I didn\u0026rsquo;t, but I did at least finish hanging all of the wall cabinets. So if I get the base cabinets finished this week I can go buy a countertop. Expect a kitchen pictorial update soon.\nI have also made some progress on my Karma reverse-engineering project. It is taking longer than I had hoped since I have had to learn all sorts of esoteric kernel stuff, but now one can, if one is bold and doesn\u0026rsquo;t mind kernel deadlocks or huge memory leaks, mount and read the files from the Karma. Neat.\n","permalink":"https://bobcopeland.com/blog/2005/09/blah-3/","summary":"\u003cp\u003eLast weekend saw the debut of my cowor-ker\u0026rsquo;s new rock band, the 15th Annual Rosslyn Jazz fest, GT vs UNC \u0026ndash; watched at Mister Days, and lots of work on my kitchen. My goal was to complete the kitchen cabinets on Sunday; I didn\u0026rsquo;t, but I did at least finish hanging all of the wall cabinets. So if I get the base cabinets finished this week I can go buy a countertop. Expect a kitchen pictorial update soon.\u003c/p\u003e","title":"Blah"},{"content":"Now that it\u0026rsquo;s Wednesday, it\u0026rsquo;s time to recap the weekend. I\u0026rsquo;m a slacker.\nSaturday night I had the pleasure of seeing Derek Trucks Band (again) with Angeline up at the Recher. DTB was in good form with a mostly new set (not even Joyful Noise made an appearance) featuring some good gospel-y numbers and a straight-ahead jazz rendition of Greensleeves. Good stuff, listen for yourself.\nA pleasant surprise was Baltimore-based opener Jayakar, who turned out a set full of nicely arranged, funky, memorable jam tunes. Apart from some weakness in the vocals department, the band has got it together and I look forward to seeing them on their own soon.\nOn top of that, we discovered a nearby billiards and table tennis Mecca, as well as a nice place for a five mile hike. Thus I suggest a new slogan for the Maryland tourism board: \u0026ldquo;Baltimore: why not?\u0026rdquo;\n","permalink":"https://bobcopeland.com/blog/2005/09/labor-days-are-here-again/","summary":"\u003cp\u003eNow that it\u0026rsquo;s Wednesday, it\u0026rsquo;s time to recap the weekend. I\u0026rsquo;m a slacker.\u003c/p\u003e\n\u003cp\u003eSaturday night I had the pleasure of seeing Derek Trucks Band (again) with Angeline up at the Recher. DTB was in good form with a mostly new set (not even Joyful Noise made an appearance) featuring some good gospel-y numbers and a straight-ahead jazz rendition of Greensleeves. Good stuff, \u003ca href=\"http://www.archive.org/audio/etreelisting-browse.php?collection=etree\u0026amp;cat=Derek%20Trucks%20Band%3A%202005\"\u003elisten for yourself\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eA pleasant surprise was Baltimore-based opener \u003ca href=\"http://www.jayakarband.com\"\u003eJayakar\u003c/a\u003e, who turned out a set full of nicely arranged, funky, memorable jam tunes. Apart from some weakness in the vocals department, the band has got it together and I look forward to seeing them on their own soon.\u003c/p\u003e","title":"Labor days are here again"},{"content":" Since the last update, I\u0026rsquo;ve had my new appliances delivered, painted the ceiling, put together and hung a few of the cabinets, and redid the plumbing on my hot water sink line to accomodate my dishwasher (this last involved me getting soaked with warm water four times before I figured out how to attach a compression valve). So, things are coming along. The cabinets, as pictured, show the interior; once finished they will be the darker wood color on the outside.\nNow I just need to finish the cabinets, buy a countertop, and I\u0026rsquo;m good to go.\n","permalink":"https://bobcopeland.com/blog/2005/08/kitchen-update-3/","summary":"\u003cp\u003e\u003ca href=\"http://apps.bobcopeland.com/gallery/view_album.php?set_albumName=kitchen\"\u003e\u003cimg loading=\"lazy\" src=\"http://apps.bobcopeland.com/albums/kitchen/IMG_0751.thumb.jpg\"\u003e\u003c/a\u003e Since the last update, I\u0026rsquo;ve had my new appliances delivered, painted the ceiling, put together and hung a few of the cabinets, and redid the plumbing on my hot water sink line to accomodate my dishwasher (this last involved me getting soaked with warm water four times before I figured out how to attach a compression valve). So, things are coming along. The cabinets, as pictured, show the interior; once finished they will be the darker wood color on the outside.\u003c/p\u003e","title":"Kitchen update"},{"content":"Just to follow up the earlier post, I officially announce my Karma driver web page, including the kernel patch such as it is. I\u0026rsquo;ve worked out some more details about the disk so I expect to be able to mount it shortly. Peter from empeg declares it \u0026ldquo;could be useful.\u0026rdquo;\n","permalink":"https://bobcopeland.com/blog/2005/08/good-karma/","summary":"\u003cp\u003eJust to follow up the \u003ca href=\"http://www.livejournal.com/users/bluesterror/93280.html\"\u003eearlier post\u003c/a\u003e, I officially announce my \u003ca href=\"/karma/\"\u003eKarma driver\u003c/a\u003e web page, including the kernel patch such as it is. I\u0026rsquo;ve worked out some more details about the disk so I expect to be able to mount it shortly. Peter from empeg declares it \u0026ldquo;could be useful.\u0026rdquo;\u003c/p\u003e","title":"Good Karma"},{"content":"\nCVS camera\nOriginally uploaded by bluesterror.\nEveryone\u0026rsquo;s done it by now so it\u0026rsquo;s not cool anymore, but I now have my very own hacked CVS digital camera. For those living under a rock, CVS sells one-time-use digital cameras for $20, and video cameras for $30. The idea is you are supposed to return the camera, pay them to develop it, and they keep the camera. The only advantages of the still camera over a disposable film camera are that you can preview and delete photos after you take them and presumably you get a digital copy of the prints. So, the only thing to do is hack the cam so you can get the pictures off yourself and keep it for good.\nOf course, it didn\u0026rsquo;t take long for every hacker with a logic analyzer to reverse engineer these things, so I didn\u0026rsquo;t have to do any trailblazing for the hack. I just built a cable using a USB cable (from an old digicam) and my old Palm III cradle. Then I loaded a patched firmware, a rather involved process that requires opening the camera and shorting a couple of pins on its PCB as it boots up.\nDoes it take good pictures? It is decent, but nothing to write home about. It has just over a megapixel CCD and a really bright flash. It is focused like your usual point \u0026amp; shoot, so anything closer than a couple of feet will be blurry. Still, it may make a worthy camera for some aerial photography experiments later on, and a good camera to carry places where the normal digicam might get broken or stolen. Here\u0026rsquo;s a picture of the cable taken with the camera.\n(This entry tests the flickr \u0026ldquo;Blog This\u0026rdquo; button. If you read this, it worked.)\n","permalink":"https://bobcopeland.com/blog/2005/08/20-digicam/","summary":"\u003cp\u003e\u003ca href=\"http://www.flickr.com/photos/67517783@N00/35866395/\" title=\"photo sharing\"\u003e\u003cimg loading=\"lazy\" src=\"http://photos32.flickr.com/35866395_d5dc36920c_m.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://www.flickr.com/photos/67517783@N00/35866395/\"\u003eCVS camera\u003c/a\u003e\u003cbr\u003e\nOriginally uploaded by \u003ca href=\"http://www.flickr.com/people/67517783@N00/\"\u003ebluesterror\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eEveryone\u0026rsquo;s done it by now so it\u0026rsquo;s not cool anymore, but I now have my very own hacked CVS digital camera. For those living under a rock, CVS sells one-time-use digital cameras for $20, and video cameras for $30. The idea is you are supposed to return the camera, pay them to develop it, and they keep the camera. The only advantages of the still camera over a disposable film camera are that you can preview and delete photos after you take them and presumably you get a digital copy of the prints. So, the only thing to do is hack the cam so you can get the pictures off yourself and keep it for good.\u003c/p\u003e","title":"$20 digicam"},{"content":" I painted my kitchen. It\u0026rsquo;s gray, not purple. Or so I tell myself.\n","permalink":"https://bobcopeland.com/blog/2005/08/kitchen-update-2/","summary":"\u003cp\u003e\u003ca href=\"http://apps.bobcopeland.com/gallery/view_photo.php?set_albumName=kitchen\u0026amp;id=IMG_0736\"\u003e\u003cimg loading=\"lazy\" src=\"http://apps.bobcopeland.com/albums/kitchen/IMG_0736.thumb.jpg\"\u003e\u003c/a\u003e I painted my kitchen. It\u0026rsquo;s gray, not purple. Or so I tell myself.\u003c/p\u003e","title":"Kitchen update"},{"content":"My poor MP3 player is destined to be relegated to the trash heap with all of the other Not-An-iPods. For good reason, really, since I have broken it in several different ways since I\u0026rsquo;ve had it: first the hard drive failed, then after replacing the unit, I dropped the new one and the scroll wheel broke off, and the battery leads came off the mainboard. I\u0026rsquo;ve soldered the battery back on and glued the scroll wheel back, so it continues to hobble along. Other than build quality, it is a fine MP3 player: it does OGG and FLAC, gapless, has a decent UI, fits nicely in one\u0026rsquo;s pocket.\nWhat is most annoying about this device is that you have to use Rio\u0026rsquo;s software to transfer stuff to it over USB, and this only works in Windows. Otherwise, you are stuck using a Java app over ethernet in Linux which is sloooooooow. It would be nice if you could just use it like any old hard drive. Imagine being able to use a hard drive like a hard drive!\nSo, armed with the recent purchase of the book Linux Device Drivers, I have set out to reverse engineer this bad boy. It isn\u0026rsquo;t a straight up mass storage device, but if you poke around on it you can make it enter mass storage mode (also, you can make it reboot). From there, it should be a \u0026ldquo;simple\u0026rdquo; matter of using dd and figuring out the file system to make this thing a bit more user-friendly.\nIt took me a couple weeks of looking at hex dumps, but I\u0026rsquo;ve got phase one completed. Life is good.\nAug 17 08:09:10 dust kernel: usb 1-2: new high speed USB device using address 2 Aug 17 08:09:10 dust kernel: usb 1-2: Product: Rio Karma Aug 17 08:09:10 dust kernel: usb 1-2: Manufacturer: Rio Aug 17 08:09:10 dust kernel: usb 1-2: SerialNumber: 00000000000000000 Aug 17 08:09:15 dust kernel: scsi0 : SCSI emulation for USB Mass Storage devices Aug 17 08:09:15 dust kernel: Vendor: Rio Model: Rio Karma Rev: 0101 Aug 17 08:09:15 dust kernel: Type: Direct-Access ANSI SCSI revision: 02 Aug 17 08:09:15 dust kernel: SCSI device sda: 39070080 512-byte hdwr sectors (20004 MB)\n","permalink":"https://bobcopeland.com/blog/2005/08/karma/","summary":"\u003cp\u003eMy poor MP3 player is destined to be relegated to the trash heap with all of the other Not-An-iPods. For good reason, really, since I have broken it in several different ways since I\u0026rsquo;ve had it: first the hard drive failed, then after replacing the unit, I dropped the new one and the scroll wheel broke off, and the battery leads came off the mainboard. I\u0026rsquo;ve soldered the battery back on and glued the scroll wheel back, so it continues to hobble along. Other than build quality, it is a fine MP3 player: it does OGG and FLAC, gapless, has a decent UI, fits nicely in one\u0026rsquo;s pocket.\u003c/p\u003e","title":"Karma"},{"content":"I am usually rather obsessive about checking that my keys and wallet are on my person when leaving a building, room, chair, or any given two-square-foot area. This fact makes it all the more annoying that all my faculties broke down yesterday, such that I found myself in Reston, with my keys in Crystal City, wondering how to get home without being able to start or even enter my car.\nGreat ideas usually come to me when faced with such adversities. Yesterday I had only lousy ones, so I decided to walk home from the Park \u0026amp; Ride. It is only 4.5 miles or so, but I was in work shoes, long pants, had my backpack, and it was 124.3 degrees outside. The W\u0026amp;OD bike path is probably as close to a straight shot as one can wish for, so I set out on a journey, not unlike the Incredible Journey, though maybe a lower budget version without pets and Michael J. Fox. Here is how it broke down by the mile markers:\n17 - A journey of a thousand miles begins with a single step. 17.5 - Clearly, the mile markers need to be recalibrated, for I\u0026rsquo;ve certainly walked several miles by this point. Worked out a strategy for getting to work the next day without a cab ride or 4.5 mile walk. 18 - Visited first 7-11. No salad dressing to be found. Bought blue Gatorade. 19 - Rabbit. 19.5 - Visited second 7-11. Bought salad dressing. 20.5 - Local band plays \u0026ldquo;American Band\u0026rdquo; and \u0026ldquo;Pride and Joy\u0026rdquo; as I walk by, as part of a Thursday night concert series. Herndon has a Thursday night concert series? 21 - Walked into a tree. Then I broke into my house and collapsed.\n","permalink":"https://bobcopeland.com/blog/2005/08/hike/","summary":"\u003cp\u003eI am usually rather obsessive about checking that my keys and wallet are on my person when leaving a building, room, chair, or any given two-square-foot area. This fact makes it all the more annoying that all my faculties broke down yesterday, such that I found myself in Reston, with my keys in Crystal City, wondering how to get home without being able to start or even enter my car.\u003c/p\u003e","title":"Hike"},{"content":"I think it would be nice to get a contract law degree on the side, because I hate signing forms whose sole purpose is to screw me over legally. And the most dreadful of these: the waiver. I understand that these are even questionable legally, and yet I still get anxious when putting my Johnny H on the bottom of some form that says Company X has the right to do anything they would like including harvesting my organs and using my house for parties while I recuperate, whilst I am legally bound to sit there and take it. Screw that!\nRecently, I had to fill out a waiver for an upcoming softball tournament. They helpfully sent it to us as a Word document for us to print out and sign. I can\u0026rsquo;t pass up such an inviting opportunity to take back some rights. Where I supposedly declared my absolution of all guilt on behalf of the organizer, I slipped in a few words that make the whole waiver rather useless to them (\u0026ldquo;unless the undersigned agrees\u0026hellip;\u0026rdquo;). Then, just to make sure no one was reading it, I made the following additional edits:\nI further understand that consumption of alcoholic beverages will be monitored and if necessary, police officers may assist in escorting any overly intoxicated individual off the premises became: I further understand that consumption of alcoholic beverages will be monitored and if necessary, police officers may assist in intoxicating any overly escorted individual off the premises.\nAnd:\n[the risks] include those foreseen and unforseen, known and unknown became: [the risks] include those foreseen and unforseen, in universes known and unknown.\nMinor edits that I doubt anyone will read anyway, but it will be nice if I can compel the local police to help me get drunk.\n","permalink":"https://bobcopeland.com/blog/2005/08/forms/","summary":"\u003cp\u003eI think it would be nice to get a contract law degree on the side, because I hate signing forms whose sole purpose is to screw me over legally. And the most dreadful of these: the waiver. I understand that these are even questionable legally, and yet I still get anxious when putting my Johnny H on the bottom of some form that says Company X has the right to do anything they would like including harvesting my organs and using my house for parties while I recuperate, whilst I am legally bound to sit there and take it. Screw that!\u003c/p\u003e","title":"Forms"},{"content":"\nYay, I have a new horizontal surface!\n","permalink":"https://bobcopeland.com/blog/2005/07/kitchen-update/","summary":"\u003cp\u003e\u003ca href=\"http://apps.bobcopeland.com/gallery/view_photo.php?full=1\u0026amp;set_albumName=kitchen\u0026amp;id=IMG_0734\"\u003e\u003cimg loading=\"lazy\" src=\"http://apps.bobcopeland.com/albums/kitchen/IMG_0734.thumb.jpg\"\u003e\u003c/a\u003e\u003cbr\u003e\nYay, I have a new horizontal surface!\u003c/p\u003e","title":"Kitchen update"},{"content":"So, the weekend was a smash. It began on Saturday (as many weekends do), with the fun that is removing kitchen cabinets. Armed with a crowbar, an electric screwdriver, and a healthy disregard for safety, Angeline and I tore into the melamine boxes, liberating screws and nails from twenty years of servitude. In the space of a couple of hours, we pulled out all of the base cabinets, the countertop, and the range hood. We then took a break and screened Jerome\u0026rsquo;s new favorite movie, Wedding Crashers. I concur with his review.\nThe next morning I unwired all of the appliances in preparation for the arrival of hired hands Scott and Jerome. I didn\u0026rsquo;t even electrocute myself. After help arrived, we drew on Scott\u0026rsquo;s extensive mechanical engineering background and J\u0026rsquo;s immense skill in belt-tightening to move the big stuff in about half an hour. Then we chatted a bit over a beer and an orange (it\u0026rsquo;s a breakfast drink). I\u0026rsquo;d blog more about this but it really deserves a podcast.\nSunday evening I went to go see the Dragonflys [sic]. I went solo but had a great time anyway. The State was sparsely populated, so I was one of only maybe half a dozen people in the dance floor area \u0026ndash; most other patrons had taken a table. Barraco joked, \u0026ldquo;what is this, dinner theater?\u0026rdquo; I situated myself just to the left of Jimmy Herring\u0026rsquo;s monitor, directly in front of the stage (a convenient place, by the way, to rest one\u0026rsquo;s Sam Adams). This ensured the mix that I heard was about 95% Jimmy\u0026rsquo;s Super Reverb and 5% everyone else. They played a lot of the tunes from the CD which I am completely unfamiliar with (note, Jimmy does not appear on the recording), but there were also a few blues and jam tunes on which the band wailed. In fact the only song I recognized was a perfect cover of Steely Dan\u0026rsquo;s Kid Charlemagne. Larry Carlton\u0026rsquo;s solo on that song is widely considered one of the best rock solos of all time, and Jimmy resisted the urge to go crazy, playing the solos note for note. On other tunes, Herring played firey jazz lines, always with a wry smile peeking out under his beard, and at times full on laughter when he and another band member would quote each other\u0026rsquo;s phrases. I couldn\u0026rsquo;t hear Barraco that well, but he is a fine keyboard player with a good voice. The bandmates connected for tight vocal harmonies and plenty of rhythmic and melodic interest. In all, the show was well worth the $13 and if Jimmy ever blows up, I\u0026rsquo;m going to miss being able to watch from ten feet away.\n","permalink":"https://bobcopeland.com/blog/2005/07/weekend-2/","summary":"\u003cp\u003eSo, the weekend was a smash. It began on Saturday (as many weekends do), with the fun that is removing kitchen cabinets. Armed with a crowbar, an electric screwdriver, and a healthy disregard for safety, Angeline and I tore into the melamine boxes, liberating screws and nails from twenty years of servitude. In the space of a couple of hours, we pulled out all of the base cabinets, the countertop, and the range hood. We then took a break and screened Jerome\u0026rsquo;s new favorite movie, Wedding Crashers. I concur with \u003ca href=\"http://www.livejournal.com/users/teamferrara/85638.html\"\u003ehis review\u003c/a\u003e.\u003c/p\u003e","title":"Weekend"},{"content":"People often ask me to recommend new music. They ask, I presume, because radio sucks now, and because, as a musician, I must have my fingers on the pulse of the underground. Unfortunately, my few musical discoveries have been more or less serendipitous, or else the artists that I do like are not accessible to the average non-musician. (My mom once said of a frenetic Coltrane solo, \u0026ldquo;That sounds like a bunch of noise.\u0026rdquo; \u0026ldquo;Of course,\u0026rdquo; I replied.)\nBut here is a brand new band, whom I haven\u0026rsquo;t ever heard, yet who I know will destroy every other band in their path. Called The Dragonflys (yes, spelled thus), the band features Jimmy Herring on guitar and Rob Barraco on keys, both of The Dead and many other bands. I have waxed rhapsodic about Jimmy Herring before, so I\u0026rsquo;ll neglect to do so again. But this weekend\u0026rsquo;s show at The State Theater is going to be an amazing set, and I\u0026rsquo;ll stake a pile of cash on that without having listened to a single Dragonflys track.\nDragonflys. The State. Sunday. 8:30pm. I encourage both of my readers to attend.\n","permalink":"https://bobcopeland.com/blog/2005/07/that-guy-named-after-fish/","summary":"\u003cp\u003ePeople often ask me to recommend new music. They ask, I presume, because radio sucks now, and because, as a musician, I must have my fingers on the pulse of the underground. Unfortunately, my few musical discoveries have been more or less serendipitous, or else the artists that I do like are not accessible to the average non-musician. (My mom once said of a frenetic Coltrane solo, \u0026ldquo;That sounds like a bunch of noise.\u0026rdquo; \u0026ldquo;Of course,\u0026rdquo; I replied.)\u003c/p\u003e","title":"That guy named after fish"},{"content":"Angeline and I spent yesterday afternoon in the home of Will Smith and Benjamin \u0026ldquo;DJ Bizzy\u0026rdquo; Franklin: Philadelphia, PA. Unfortunately I forgot my camera, so you don\u0026rsquo;t get any pictures. This being my first visit to Philly, we had to go see the large, bronze, cracked\u0026hellip;hot steamy bread with gooey cheesy meat and onions \u0026hellip; where was I? Oh yes, the Liberty Bell. So we looked at the bell, then headed off for lunch.\nAfter much research we decided to try out Jim\u0026rsquo;s on 4th and South for an authentic bite. Much has been said by Philly natives about how there is something special about their sandwiches that can\u0026rsquo;t be duplicated in any other place, but I think this is mostly bunk. That said, Jim\u0026rsquo;s may well have taken the top spot on my list. The differentiating factor is mainly the rolls, and Jim doesn\u0026rsquo;t disappoint on that score.\nAfter lunch, we hit the Rodin museum. Here you can see one of the casts of The Thinker, the Gates of Hell, and lots of hands and people in uncomfortable somersault embraces. Victor Hugo figures prominently. And there\u0026rsquo;s a walrus-looking thing by some lesser sculptor, too.\nAnyway, Philadelphia is a nice city and worth the occasional three hour drive. I\u0026rsquo;m sure I\u0026rsquo;ll be back sometime this year.\n","permalink":"https://bobcopeland.com/blog/2005/07/philadelphia/","summary":"\u003cp\u003eAngeline and I spent yesterday afternoon in the home of Will Smith and Benjamin \u0026ldquo;DJ Bizzy\u0026rdquo; Franklin: Philadelphia, PA. Unfortunately I forgot my camera, so you don\u0026rsquo;t get any pictures. This being my first visit to Philly, we had to go see the large, bronze, cracked\u0026hellip;hot steamy bread with gooey cheesy meat and onions \u0026hellip; where was I? Oh yes, the Liberty Bell. So we looked at the bell, then headed off for lunch.\u003c/p\u003e","title":"Philadelphia"},{"content":"One other observation about Ohio: fully half of my meals on my trip were the saltiest meals I\u0026rsquo;d ever eaten. Now, I am a connoisseur of salt. I like it. I have three different types of salt in my pantry. But this\u0026hellip; this is too much. I\u0026rsquo;m not sure if this is a regional thing, or whether I just got unlucky, but it\u0026rsquo;s surprising that I didn\u0026rsquo;t undergo wholesale plasmolysis and dry up to a tiny wrinkled husk.\n","permalink":"https://bobcopeland.com/blog/2005/07/salt/","summary":"\u003cp\u003eOne other observation about Ohio: fully half of my meals on my trip were the saltiest meals I\u0026rsquo;d ever eaten. Now, I am a connoisseur of salt. I like it. I have three different types of salt in my pantry. But this\u0026hellip; this is too much. I\u0026rsquo;m not sure if this is a regional thing, or whether I just got unlucky, but it\u0026rsquo;s surprising that I didn\u0026rsquo;t undergo wholesale plasmolysis and dry up to a tiny wrinkled husk.\u003c/p\u003e","title":"Salt"},{"content":"Last night I went to go see the guitarist Eric Johnson. This makes the fifth show of his that I\u0026rsquo;ve seen. It was a decent show, but I don\u0026rsquo;t think EJ brought anything new to this tour. He has a new CD out (I haven\u0026rsquo;t heard it) and most of the selections he played from it were less than stellar, except \u0026ldquo;12 to 12\u0026rdquo; which has been in his setlist for years. Anyway, he played lots of Ah Via stuff including \u0026ldquo;Cliffs of Dover\u0026rdquo; which I am happy to learn is hybrid picked. String skipping that intro is damn near impossible.\nI\u0026rsquo;m also coming to the realization that EJ can\u0026rsquo;t improvise his way out of a paper bag. The protracted opening to \u0026ldquo;Cliffs\u0026rdquo; had no direction apart from \u0026ldquo;play a set of dispersed triads in a random key center and then play a fast descending pentatonic lick.\u0026rdquo; Melodic development in many of his solos was absent, which is a shame because the guy does possess the ability to write good lines (see Manhattan\u0026rsquo;s non-improvised jazz solo).\nWhat did make the ticket price worthwhile was opener Josh Dion Band. Dion is a energetic singer/drummer with great chops on both sides of the slash. His band, a seven person crew with keys, bass, guitar, and three backup singers, delivered a high powered set of funk that never flagged. I\u0026rsquo;m looking forward to seeing these guys again.\n","permalink":"https://bobcopeland.com/blog/2005/07/ej/","summary":"\u003cp\u003eLast night I went to go see the guitarist Eric Johnson. This makes the fifth show of his that I\u0026rsquo;ve seen. It was a decent show, but I don\u0026rsquo;t think EJ brought anything new to this tour. He has a new CD out (I haven\u0026rsquo;t heard it) and most of the selections he played from it were less than stellar, except \u0026ldquo;12 to 12\u0026rdquo; which has been in his setlist for years. Anyway, he played lots of Ah Via stuff including \u0026ldquo;Cliffs of Dover\u0026rdquo; which I am happy to learn is hybrid picked. String skipping that intro is damn near impossible.\u003c/p\u003e","title":"EJ"},{"content":"I\u0026rsquo;ve been derelict in my duties to describe the magic of Ohio. So I\u0026rsquo;ll let you know when I figure it out. Just kidding. Canton is nice enough, the people are friendly except for the guy at Radio Shack, and where else can you visit the home of Goodyear, the birthplace of Hoover vacuum cleaners, and the Pro football hall of fame all in one day? I didn\u0026rsquo;t manage to visit any of these though.\nOn July 1st I hit the road about 3pm. The trip was supposed to take about seven hours; it ultimately took eight and a half. Congratulations to the highway designer who saved so many taxpayer dollars by making the only road out of town a single-laner. I arrived at 11:30, crashed. I spent most of the next morning just driving around the vast shopping mall that is North Canton.\nOf course the real magic that drew me there was the official legal union between Scott and Jill. Their wedding was lovely and I know they will have a wonderful life together. Also it was good to see a number of people whom I haven\u0026rsquo;t seen in a while; I shall have to do a better job so that we don\u0026rsquo;t have to make a 14 hour round trip to catch up. I forgot my camera so no pictures this time.\nI resisted the urge to make a side trip to Cleveland on Sunday to see plastinated corpses and the rock \u0026amp; roll hall of fame. Perhaps next time I am in town.\n","permalink":"https://bobcopeland.com/blog/2005/07/ohio/","summary":"\u003cp\u003eI\u0026rsquo;ve been derelict in my duties to describe the magic of Ohio. So I\u0026rsquo;ll let you know when I figure it out. Just kidding. Canton is nice enough, the people are friendly except for the guy at Radio Shack, and where else can you visit the home of Goodyear, the birthplace of Hoover vacuum cleaners, and the Pro football hall of fame all in one day? I didn\u0026rsquo;t manage to visit any of these though.\u003c/p\u003e","title":"Ohio"},{"content":"build.ejb.classes: [javac] Compiling 1337 source files to /home/bob/projects/... Heh. In other news, I am playing around with greasemonkey. Finally, a use for javascript! I\u0026rsquo;ve already fixed the brain-dead handling of attachments with MS Outlook\u0026rsquo;s web interface, where it tells you that PDFs are too dangerous to launch directly, whereas you can click on Word and Excel files with no problems.\nAnd with that I\u0026rsquo;m off to Ohio this weekend. If anyone can recommend roadside attractions along the PA turnpike, let\u0026rsquo;s hear \u0026rsquo;em. Ok, didn\u0026rsquo;t think so.\n","permalink":"https://bobcopeland.com/blog/2005/07/k-rad/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003ebuild.ejb.classes:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e[javac] Compiling 1337 source files to /home/bob/projects/...\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eHeh. In other news, I am playing around with \u003ca href=\"http://greasemonkey.mozdev.org/\"\u003egreasemonkey\u003c/a\u003e. Finally, a use for javascript! I\u0026rsquo;ve already fixed the brain-dead handling of attachments with MS Outlook\u0026rsquo;s web interface, where it tells you that PDFs are too dangerous to launch directly, whereas you can click on Word and Excel files with no problems.\u003c/p\u003e\n\u003cp\u003eAnd with that I\u0026rsquo;m off to Ohio this weekend. If anyone can recommend roadside attractions along the PA turnpike, let\u0026rsquo;s hear \u0026rsquo;em. Ok, didn\u0026rsquo;t think so.\u003c/p\u003e","title":"k-rad"}]