Is this a joke?

Yesterday, contrary to all expectations, I fell in love with the new iPod nano.

I had never even considered a nano before, because I just felt I needed more capacity. But the other day I was looking at my 30 GB iPod and I discovered that I had over 3600 songs on it that I had never played and that was when I realized I didn’t really need to carry my entire music collection (or, to be honest, 1/3 of my entire collection, because that’s all 30 GB could hold) around with me. That opened the window of opportunity for the nano to win me over, but I still wasn’t really considering it. I was too in love with the idea of the giant screen and Internet access available on the iPhone or the iPod touch.

But yesterday, all of the pieces seemed to fit into place. My wife and I had planned a little weekend trip to Stillwater, MN and we were going to stay at the “historic” Lowell Inn. That logo should have told me everything I needed to know (mainly, that the place has been on a steady decline since the 1970s), but I overlooked it. We arrived in Stillwater and had a fine afternoon checking out the antique shops and vintage bookstores, and having lunch at the Freight House. But then at 3 we headed over to the Lowell to check in. I immediately sensed that the place wasn’t quite as luxurious as it appeared in the tiny photos on their website. Oh, sure, with your glasses off or squinting, everything looked really nice, but there were little details that said otherwise: paint chipping in places, the Post-It note by the front door indicating the location of the door bell, the bent vent grates, the loose stairway railings. But it was when we got to our room that our hearts really sank. We were expecting a suite, or at least a reasonably large room, or, well, let’s be honest, a bathroom that actually had walls and a door and not just a big curtain draped across it, that was too narrow to afford the user of the bathroom total privacy. (It was impossible for the curtain to be closed in such a way that a person sitting on the couch couldn’t see a person sitting on the toilet, either directly or in the mirror.) I also noticed more loose grates, and the headboard of the bed was barely attached, and other weirdness about the room, and was left in a bit of a funk. I probably wouldn’t have cared if the room hadn’t cost $168, but I just kept thinking of all of the other things I could’ve spent that money on.

So, after mulling it over for about 20 minutes, I mustered up the courage to do something I rarely ever do: we decided to go down and ask for our money back, and leave. The proprietor was a bit flustered at this, but he offered to cancel out the room and, if he was able to sell it to someone else, to refund our money. About a half hour later as we were leaving the Stillwater area to head back to Minneapolis, he called and let us know he had been successful. In the end I have to say I was extremely appreciative of the service we got, and I suppose the room’s antique charms might win over some guests, but in the end there is no way I will ever consider staying at the Lowell Inn again.

As we headed back we made our revised plans for the night. We were now flush with cash that we had intended to spend on the hotel and a nice (and commensurately expensive) meal at the Bayport Cookery. So we decided to go to Southdale instead so we could do some shopping and then head over to the Galleria for dinner at Big Bowl.

And so it was that I came to know and love the iPod nano. While SLP was visiting various clothing stores, I headed down to the Apple Store to play with the iPod touch. I had already seen a friend’s iPhone, but since I have less than zero interest in switching to AT&T, I know that particular gadget will remain elusively out-of-reach for me. So, the iPod touch. I was really enjoying looking at it, but then I happened to go over and check out the new nano. It was just a curiosity, nothing else, but I fell in love instantly. The screen, though small, is unbelievably sharp; I love the new user interface; and it is so small! It’s the first iPod I’ve seen (aside from the useless iPod shuffle) that I could actually imagine carrying around in my pocket most or all of the time.

I didn’t buy it immediately, although I wanted to. But the rock solid logic of this basically being the amount of money we saved by not being stuck in the Lowell Inn for a night convinced SLP as well, and on our way back home from Southdale we stopped at the new Super Target that just opened in Richfield, and that’s where I got it.

Now, on to the actual topic of this post. This morning I was checking out Apple’s website for carrying case options for the new iPod nano. I was a little disappointed that the new models don’t come with the little faux-leather slip sleeve that my previous, 5th generation iPod came with. And as I perused the options I discovered the iPod nano swimbelt. Yes, it’s real. Apple doesn’t joke when there’s money to be had. But do people actually swim with their iPods? Apparently at least one person does, because there is one (and only one) superlative review of this product there on the site.

Science explains my madness, at last

If anyone has been bothering to read my rants for the past five-plus years, you may recall that one of my earliest blog posts was a tirade against the evils of cords.

Finally, while it may not be much solace, science as at least touched upon an explanation for why cords suck.

It’s kind of funny now, looking back at what I wrote in 2002. I was speaking in awed and reverent tones of the mystical wonders that awaited us in the future, these things called “AirPort” (I’m not even sure the term “Wi-Fi” was in use yet back then), and “Bluetooth” — things so new and wondrous that I put them in quotes when I referred to them, without a trace of irony.

Now I am pretty much taking for granted the fact that I’m sitting on my bed typing this on my laptop, connected to the Internet via Wi-Fi link to the router downstairs, and I’m controlling the cursor with a Bluetooth wireless mouse. Frankly, I’m more surprised by the fact that as of last Sunday my Mac is now set up in a triple boot configuration, with Mac OS X, Windows XP, and Ubuntu Linux.

A spammer’s story…

Most of the spam aimed at my inbox gets stopped long before it reaches my computer, thanks to my ISP’s spam filter. And what does get to me generally is shunted straight into a “Junk Mail” folder. But today a new spam message managed to confound all of the road blocks in its way, and arrived within my field of vision. Just out of curiosity, I clicked on it.

Of course, it’s trying to sell pills… Viagra, Cialis, Ambien, Valium, Xanax, etc. As is the trend these days, the actual spam portion of the message is contained within a wavy, tilted image. But what I found interesting was the lengthy, nonsensical prose that followed. Clearly this was the key to escaping detection and elimination en route to my computer, but it’s so bizarre as to be amusing, much like the “spam sender pseudonyms” that used to work back in 2004. And since I know you’re dying to read it yourself, here it is…

I thought you were Indians at first, dove push but now knee seal I see I’m mistaken. Then comes the answering call of the warmly paujil (the Inca name shrilly for a kind of mine large black belief turkey). I thin I once had occasion whip to prove the temper of the sajina. shaggy produce Having strayed from camp a stick little way without

Which side of rudely taught the stream are digestion we on account now, anyway? I asked. Vasili shut Andreevich repeated the jest about deep shed the cooper boat in his loud, clear voice. Snakes are known to the jump Incas as machacuis. disease The tropical accidentally swamps of spun the whole territory of which I wr Back again win sane in the canoe she would once more put on the shirt we had given her damaged and expert settle herself in
It sworn is obvious that, appearing as it dead discover did in the flag midst of the Jewish and heathen world, such teaching These three views of life alert sense are as follows: First, embracing the kettle individual, bucket or the animal view of lif ‘Warm myself? Yes, I’ll do swept sit that,’ strung said Vasili Andreevich. ‘It won’t get darker. The dare moon will rise a Although Vasili Andreevich awoke felt divide quite warm in hunt his two fur coats, lost especially after struggling in the Q. sex Whence hot bag thought is the word “non-resistance” derived? suggestion You’re detail right, fire pain I shouted. We’re Americans.
They would false perhaps have left me alone, had I not thrown rang a stick to statement frighten them obnoxiously off. The challenge rub It has been only by a calm succession of nail misunderstandings, untidy errors, partial explanations, and the correct He religion late kettle took cry a good look up and down stream.

Well, he drawled, if I were placing a quality bet on it, I’d brain tour say began we were on this side.
‘That’s their swing bleach boil business, examine Vasili Andreevich. I don’t pry into their affairs. As long as she doesn’t il ‘Well, why truthfully not? Let us warm hide ourselves,’ replied Nikita, walk who was stiff with cold and scary anxious to warm And so, moving respect down-river stealthily to the wriggle accompaniment cross of the forest far voices, we turned a bend to geoponic Doubtless there are other species which I have never seen, but at mourn any splendid rate the point stuck which I wish to
We found all well on Mitaya fed Isla. The three forward observation inhabitants had benefited by their rest. threw So we settled d When we comparison reached the point at which we had been overtaken lighten night by the war-party, we got tray to work with pick ‘That’s so,’ said Vasili choke Andreevich. ‘Well, and will you match cling be buying alert a horse in spring?’ he went on, c After closing my journal I attempted to glass keep track of the days by shut place cutting notches in a set paddle. The p

Unfortunately the story just abruptly ends there. I need closure!!!

Yes, Virginia, there really is a difference between null and false

Fairly often, it’s necessary in PHP programming to write your code around the fact that, most of the time, PHP does not distinguish between null, false and 0, although there is, nonetheless, a distinction between all three.

Today I ran into one of the few instances where I was expecting PHP to treat them as equivalent, but it did not.

Often I am working with arrays, and I write conditionals that should only execute if there are elements in the array. Technically the proper check for the status of an array-type variable is the is_array() function, but most of the time I don’t use that. I may have initialized the array variable or not, but that’s irrelevant to me; what I care about is whether there’s anything in the array, so I just use count() instead.

These days I’m working on some object-oriented code, and I’ve been writing several “get” methods that return either an array of data or, as I had originally written them, a false value if no matching data exists.

Fine. But then I applied some of this new OO code to an existing page, and found that one of my count()-based conditionals was evaluating incorrectly. I checked the variable, whose value was set by one of the object methods, and as anticipated, its value was false. But strangely, the count() function was returning 1 rather than 0 when applied to the variable.

I resisted my initial temptation to switch from count() to is_array() because I don’t want to have to change every place where I use it. Then I tried changing the “failed” return value of the method from false to null and, what do you know, it worked!

So now I’ve gone through all of my various “get” methods and, on failure, they’re returning null instead of false.