Professional Courtesy

So I sit down tonight to make some layout changes to a client’s website. The changes were minor, moving a form from the bottom of the page to the top and shifting some data around. No big deal, right? The code in question involves some external javascript code supplied by a third-party vendor. No big deal, I thought. Famous last words.

I move the code around and refresh the page. There is significant lag while the browser tries to render the form. Odd, I think, but maybe the server the javascript is being pulled from is slow. Better to pull the javascript local, right? I pull the code down and crack it open, with the intent of either embedding it directly in the page or at least pull it from a local file.

Holy shit what a disaster.

The file consisted of 5 lines of code, only one of which was actually necessary. The problem was that the single line was approximately 46,838 characters long. Yes, you read that right: 46,838 characters.

Let this serve as a public plea to anyone who develops web applications in any form: For the love of all that is sacred, never, ever, neglect the endline. Endline characters are my friend. They should be your friend, too. If you can’t grasp the fact that an application, especially a web browser, might have problems handling FOURTY SIX THOUSAND characters without a line break, then I have one favor to ask: find a new line of work. People like you make it more difficult for people like me to do my job. Sure, I get to play the part of hero when I show my client their “new and improved website” that loads an order of magnitude faster because I simply applied sane whitespace rules. At the end of the day, however, I would rather spend my time doing my job and not cleaning up your crap.

Wifi for everyone — Penguicon-style

I rolled into the hotel for Penguicon around 2pm today. Got checked in and inquired about wifi access. Last year they had arranged for free wifi access for the weekend. This year, however, the hotel is only offering us $5 coupons per day, for 24 hours of access. When the clerk was getting my coupon, I glanced at the stack and noticed that some of the numbers were the same. I promptly setup a ad-hoc wifi network so that the rest of the gang could use the internet.

Later that night, when Kyle got his coupon we confirmed that the coupon numbers are identical. Ineptitude rules.

Flickr and f-spot

I went to export a picture from f-spot to flickr this morning. The export failed and reported a problem logging in. Naturally, I double-checked my password and tried it a few more times without luck. Flickr had recently made some changes on their end, so I killed f-spot and fired it up in a terminal. Sure enough, somewhere during the login process it was throwing an integer overflow exception. Flickr is just too cool to be held back, so I grabbed f-spot from CVS, found the bug, wrote a patch, and saw it get committed this morning.

It’s a good start to the day so far. A meeting with a client I expected to last more than an hour took all of 10 minutes and I feel pretty good considering I was up until 2am trying to downgrade my laptop from Breezy to Hoary (and subsequently repair udev) to troubleshoot a smbfs issue.

Hopefully this bodes well for my productivity at Penguicon. I’m going to be hacking on some Mono apps all weekend, if all goes as planned.

What am I?

Once upon a time I used a wireless ISP. I dropped them when I was able to get cable. I got to keep the hardware, since I had to pay for it. I pulled the access point out of the attic and disassembled it. It uses a nice Senao PCMCIA card, which I’m currently using for wardriving. I’d like to figure out how to program this embedded device, though. It’s got a flash chip on it, but I don’t know who made it so I don’t know where to start.

What am I?

The only identifiable markings I can find is “3752-030000010” printed on the circuit board and “8520-203000UFO-R03 BP27001 01629” on a label attached to the board. Anyone have an idea what this might be?

Flickr

I’ve been using Flickr for a while now. I was getting frustrated with my old gallery, so I decided to stick with Flickr and signed up yesterday. Hours later they cut their prices. I was just about to send them an email when I noticed something very cool:

We’ve extended the length of your pro account to double whatever you originally paid for! So, now your pro account will expire on 18th April, 2007. You can check on your account if you wish.

But wait! There’s MORE…
You also have 2 FREE Pro Accounts to give away!

So in addition to the doubled bandwidth for uploads, they’ve given me an extra year, plus two Pro accounts to give away. Sweet!

iPhoto to Flickr

If you haven’t seen Flickr yet, it’s worth a few minutes. It’s a photo hosting service done right. I’ve been using it for a bit now and it’s much easier to manage than Gallery, which I’ve been using to manage all of my photographs. Now I’ve found Flickr Export for iPhoto, which will (as the name says) export photos from iPhoto to Flickr. It even makes it easy to drop images into my blog. Integration is the future 🙂

Mystery Machine

It also works nicely with f-spot, which I also use, especially when I’m mobile.

The road to Penguicon

Penguicon is coming up soon — starting on April 22nd in Novi, Michigan. I finally got my tickets booked today (after fighting with the hotel for a week about the conference rate). I’m really excited to see the ArsLinux crew again.

Some of the programming for Penguicon is disappointing this year (okay, more than some). As such, we decided to have some of our own panels, tapping on the resources from #linux. Here comes ArsLinuxCon2005. We’ve got a really talented little community, so it should be a fairly educational weekend.

Random chaos

It’s been a pretty hectic week so I’ll be brief.

  • I spent a good chunk of today working on Linux.Ars, which should be going live later tonight. I think it turned out pretty good.
  • I’m trying to make preparations for Penguicon later this month. A bunch of us aren’t happy with some of the programming changes, so we’re working on some alternative programming.
  • I’ve been spent a lot of hours working on contract work, but I’m learning some new software management techniques. It’s not as boring as it sounds, honestly.
  • Congrats to Jorge, who’s going to Ubuntu Down Under later this month. Too bad he’ll miss Penguicon this year. We’ll miss you, whip.
  • I’ve been spending a little bit of my free time helping to test and build packages for the upcoming Ubuntu Hoary release. I have officially become a contributor. Maybe one day I’ll even become a Master of the Universe.

That’s about it for now. The rest of what little free time I’ve had lately has been spend doing yardwork. My contract has some major deadlines coming up throughout the next month, so I may be a bit scarce. Busy is good.

Chicago Nights

Dena got me front row center tickets to Les Miserables for Christmas. We drove downtown yesterday and checked in to the Chicago Regency ($60 via Priceline) . We dropped off our bags and headed off to find some lunch. The show was great. Afterwards, we headed back to the hotel to rest.

I made reservations for dinner at Vong’s Thai Kitchen, a few blocks northwest of the hotel.

On the way to dinner, I made Dena take me to the Lego store on Michigan Avenue:

Afterwards, we took a walk along the Chicago River:

We got up at 6am (5am before the time change) and headed home. It was a really long day but a lot of fun.