Home
Bob's Journal [entries|friends|calendar]
Bob

[ website | bobcopeland.com ]
[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

Moving [16 Mar 2009|10:53pm]
So, let's try something new. LJ has too many ads these days (which is to say: any) and I'm too cheap to pay to make them go away. Therefore, please point your browser over to http://bobcopeland.com/blog/ and update your RSS feeds to keep getting the good stuff.

After a harrowing fight with PHP, I migrated most of the old stuff over, except slothy's last comment which came in after my LJ dump (sorry, I did appreciate the humor of it, but I'm far too lazy to move that too). I'm also far too lazy to set up dual posting, so hopefully this works out on the first try.

Ok, resume party - on the other site.
post comment

FiOS [11 Mar 2009|11:50pm]
Dear Verizon,

Thank you so much for the thoughtful racial profiling you sent us. However, despite my wife'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.
1 comment|post comment

Backup re-revisited [11 Mar 2009|04:43pm]
I'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 'git reset --hard' periodically inside source trees, that I'd accidentally do it from the wrong directory and lose any recent work. Luckily, I never did that.

Two obvious solutions: don'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'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's no real loss of convenience under this scheme.

My RPM database is now corrupted. Just in time.
post comment

sizeof() [17 Feb 2009|05:50pm]
Renaming your class variables to shorter names reduces your EJB network footprint. Finally, those people (I'm not one) who said that removing vowels from variable names improved performance are vindicated! Ok, well they were correct already in Javascript, but that doesn't count.
post comment

is-not-a [16 Feb 2009|11:18pm]
Let's dump the last useful feature in Java. What castles in the sky are people building these days?
4 comments|post comment

Smolt [11 Feb 2009|05:57pm]
The stats from smolt are pretty interesting if, like all stats, entirely useless. Some curiousities:
  • i686 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'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 :( ...I guess I need to submit a profile.
post comment

Serial offender [08 Feb 2009|10:27am]
There comes a time in every budding kernel developer's life that he has to debug a mysterious lockup, and nothing will do but a serial console. Well, for my future recollections, here's how to set it up:
  1. Get out your handy pl2303-based usb to serial adapter, because chances are good your laptop doesn't have a serial port
  2. Build your kernel with CONFIG_USB_SERIAL_CONSOLE=y
  3. Add to your kernel command line: console=ttyUSB0,115200 console=tty0
  4. Hook 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?)
  5. Set up minicom to use your serial port, say ttyS0, at 115200 baud, 8N1, and turn off all the modem init strings
  6. Don't bother futzing with getty, you only need it if you want to also allow logins over serial. For logging, it's unnecessary

Now, start minicom on computer 2 and reboot your computer under test. If all goes well, you'll capture a panic on the serial console. If all goes poorly (my case), you'll have a lockup with no oops. The usual thing to try in this case is adding "nmi_watchdog=1" 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'll get a soft lockup warning.

In my case, I still have a hard lock with no output. Ho hum.
post comment

The game [02 Feb 2009|11:14am]

Capitals warm-up
Originally uploaded by bluesterror
Did you see the game last night? Yeah, we were there! Did you see us on TV? Huh, what half-time show? Ohhh.... you are talking about that other game, what is it called, footsball? Nah, didn'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.
post comment

Android [25 Jan 2009|11:37pm]
I haven't had a chance to replace the kernel on my phone yet, but here is some useful software I recently installed:
None of that is original with me but both are very useful.
post comment

Post-(or is it peri?)-bama [20 Jan 2009|07:11pm]
We're back from the inauguration, which was a surprisingly easy affair. Ange & 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'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.

Inauguration

The 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.

On leaving, we retraced our steps but just continued up 19th to Dupont, where we again got seats on the first train. We'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.

Anyway, 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.
post comment

Prebama [19 Jan 2009|11:50am]
So it's inauguration eve in DC. You can tell because all of the subway ads have some 'Welcome to DC' 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's picture on it: key chains, mugs, postcards, buttons, playing cards, shirts, hats, knit caps, underwear and neckties. Radio Shack is even advertising: "Get your inauguration supplies here!" (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'll see how that goes.

In hacking news, I have the following patches queued so far for 2.6.29:
Bob 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.

In other news, glibc finally has endianness functions. I can't say that I'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.
post comment

Pointless calendar increment [02 Jan 2009|12:52pm]
Another year has passed, so it's time to take stock, and make soup from it.

In 2008, we downsized by selling my house, gave away lots of stuff, drove less, and called Angeline's 700 sq ft apartment home. I'd like to continue the trend of reducing even while we try to find a slightly larger place.

Angeline landed her first real job after 14 years of training, receiving offers from every place she interviewed. She'll begin at a private practice in Rockville in the middle of this year (if you have diabetes, I know a great endocrinologist!). We're very excited and hope this practice will be a great place to work.

Meanwhile, 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 where my wife found employment. I now plan to switch by the time my contract expires in March 2009.

In 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.

Most 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'd also like to make systems software a focus of my future career. To that end, I've applied for jobs with a couple of embedded device manufacturers, and applied to masters degree programs at nearby schools.

All 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.
post comment

New Toy [20 Dec 2008|11:51am]

Mutt
Originally uploaded by bluesterror
After two weeks my developer's G1 finally came in. Finally, I can use my 1990s text email client from a cell phone.
2 comments|post comment

Komi [20 Dec 2008|10:31am]
I suppose it's a bit bourgeois to go to really expensive restaurants while the economy is crashing down around us. But Angeline's birthday arrived last week, and it has been hard to resist the siren song of Komi from all the positive things we've heard. So off we went to Johnny Monis' fancy greek restaurant last Friday night.

As 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't really say whether the pairing was good or bad. The sommelier didn'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 "mezzethakia," you'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.

For pasta, I had a tagliatelle, I think, while Ange had pumpkin ravioli that were amazing. Then they brought the "salad" 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.

The 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.

Bottom line: definitely top three restaurants I've been to, top one or two in DC. Well worth eating PB&J for a month to save up the cash.
post comment

F10 [14 Dec 2008|04:27pm]
So, I'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: 'apt' is how package management should be! I still have my server running Debian stable, but I thought I'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' 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.

Here are my thoughts: I still find yum a little clunky for a few things; maybe that's just my expertise in apt speaking. LVM was the first thing to go -- it wasn'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'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'll give openSuse a spin.
1 comment|post comment

!!Open [08 Dec 2008|10:40pm]
I can now take back the things I said about the Android phone.
Enroute.
Enroute back to T-Mobile.
2 comments|post comment

Old code [03 Dec 2008|02:21pm]
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't working on Windows. So much for that. It's super fast on modern hardware though.
post comment

Backups revisited [12 Nov 2008|10:51am]
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.

Now 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's time machine supposedly works. Then I stumbled across 'gibak,' a set of shell scripts that use the git version control system as the backup tool.

In 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 'git reset' 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 'apartment burning down' scenario, though I'm admittedly vulnerable to the 'global thermonuclear war' scenario.

I've already used this scheme to rebuild a machine'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.
post comment

Hacking, the good kind [05 Nov 2008|11:29am]
I could write about the election here, but citizen905 already summed it up pretty well. So instead, here's what I've been breaking in the Linux kernel lately:
  • My 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've created for myself.
  • I added myself to MAINTAINERS for ath5k, which felt like a pretty ridiculous notoriety grab, but Nick asked me to do so twice, so there.
  • I 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.
  • Also 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.
  • For 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've been sitting on for months.
post comment

Hacked [31 Oct 2008|11:28am]
So my wife received a spam from herself. At first I thought it was one of those spams where the "From:" 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.

So what happened? Was this a cross-site request forgery (CSRF) attack? She wasn't logged into hotmail at the time that the email was sent. However, that doesn'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.

Was it spyware? Windows Defender didn't find any, and we run XP apps in unprivileged user mode (which is a huge PITA, but that'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.

I'm late to the party, but I imagine CSRF and related attacks are still very under-appreciated at the moment, and that'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'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've ever done business with?

So, I guess the moral is: get thee a password generator, and remember to log out of webmail!
1 comment|post comment

navigation
[ viewing | most recent entries ]
[ go | earlier ]

Advertisement