Monday, September 18, 2006

Sexy Recession

Tonight I saw no less than four ads for 'sexy' commercials for products. From 'sexy' makup to 'sexy' undergarments, it was a veritable cornucopia of underweight, over-painted, and under-dressed women (and a few leather-coated men). The topper was the advertisement from JCPenny, of all retailers, with few words, lots of innuendo, high heels, and leather coats.

The last time I saw such overt advertising was the Victoria's Secret SuperBowl-advertised online lingerie show that clogged the internet back in 1999. And while that is an interesting story on it's own, I find it a good example of my new theory of predicting recessions: overtly sexual advertising is the harbinger of recessions. As advertising agencies run out of ideas that work due to a cooling economy, they inevitably turn to sex as the path to sales. But it's a last-ditch effort in an already softening market.

Things have gotten increasingly 'sexy' on TV lately and are getting 'sexier' (and I mostly skip commercials with a TiVo, so I may be underestimating the extent). Between that and other indicators, I expect the recession to hit somewhere between April and August of next year (though I hope I'm wrong and it never happens).

Don't go crazy this holiday season...

Thursday, September 14, 2006

The Other Reason Apple now Offers Album Art for Free

With the latest release of iTunes, Apple added some very nice features. Several of them depend upon you having album art in order to make effective use of them. So it's not that surprising that Apple now offers album art through the iTunes music store. It is a bit surprising that they offer free album art even for albums you didn't buy through the music store. While this is mostly to enable the cool new album views in iTunes, there are at least a couple of other reasons.

We can figure out one of the reasons by noticing the wording on the Apple description of iTunes: "As long as you have an iTunes Store account, iTunes will automatically fetch available album art for any CD you imported to iTunes." So, Apple wants to make sure people keep their accounts with the store. This makes sense, as the number of competitors to iTMS increases, Apple will need to do everything it can to keep people buying from them.

A second, less tangible reason is aesthetic: album artwork seems likely to push more people toward iPods with color screens that can display the artwork well. I'm betting Apple hopes this will drive buyers toward the upper end of the product line.

Regardless, I'm enjoying looking at the artwork.

Tuesday, September 12, 2006

WiFi on Wintel - only a geek could work it out and no one could love it

I recently installed a generic WiFi card in the Wintel PC I retired as a game machine and gave to my girls to play educational games on. Talk about an experience in frustration.

It's not that I was unable to figure it out. I did get it working. And I certainly forgot one thing while doing so that slowed me down for a bit. But the completely opaque manner in which the install went and the total lack of helpful information while troubleshooting the configuration was such a strong reminder of why I can't stand Wintel PCs that it's put me on a quest to replace the girls' machine with a Mac (running Bootcamp if necessary to play any educational PC-only games).

Things started out innocently enough. I opened up the PC and installed the WiFi card. After carefullly hooking everything back up, I turned on the PC, driver disk in hand. Things seemed alright at first, with the hardware wizard finding the new hardware (though it's announcement that it found an 'ethernet controller' presaged many similarly misleading or missing messages). I chose the innocuous radio button that said I had a driver disk (I had one, after all). That's when things started going south.

The new hardware wizard found the drivers. That's right: drivers. Five of them to be exact. They all had wonderful names with seemingly random letters and numbers, and different suffixes. I sighed and chose to move on with the default choice of the first driver. To my surprise, this seemed to work okay. Once I rebooted, the WiFi network 'connection' (which said it wasn't connected) showed up.

I've had some experience configuring wireless connections, due to helping a friend get his wireless connection working at St. Louis Bread Company a couple of years ago, because I've had a wireless network at home for a few years, and I've used WiFi from my old PowerBook G4 for years. Otherwise, I think what I managed to work out in about two hours would have taken days and a great deal of pain.

I knew everything I needed to know to connect to the wireless network, since I manage the wireless base stations that make up the network. I knew the network name (called SSID in technical parlance), I knew the password to join the network, I knew that it was a WPA2 Personal network, and I knew it was within range (the PC was no more than eight feet from two base stations).

The first symptom was that the PC failed to find the network. I knew it was there (the iMac eight feet from the PC and the laptop I could walk around with both could connect to the network fine). I also knew it wasn't a problem with some Mac-only solution, since one of the base stations is a LinkSys WRT45GL (an open-source based router). After about half an out I finally decided to make the base station publish it's network name (less secure but I suspected it might be preventing the PC from finding the network, even though I'd given it the network name).

Sure enough, publishing the network name allowed the PC to find the network. But even though the PC said it was 'connected' to the network, it then asked me if I wanted to connect to it (sigh), and when I clicked yes, it spent about a minute 'connecting' to the network it said it was connected to and then silently failed (no dialog message, no error message, nothing).

Tweny minutes of poking around the maze of dialog boxes, tab panes, and options (with many circular trips through them) finally revealed that the installation had defaulted the card to use 802.11b networking only. I have my network configured for 802.11g only because it helps performance of the network. It would seem to me that the correct default is that which allows the most chance of success (support for both B and G). It was an option, it just wasn't the default. Go figure. I changed the setting to 802.11g only and tried again.

I got almost the same results. This time, Windows claimed to have successfully connected to the network, but any attempt to use the network to communicate failed. There was no error message, and I was disconnected from the network each time I tried to use it. After about 20 minutes I remembered that I had MAC address filtering turned on (so that only the wireless network cards with ethernet addresses I specified could join the network). It took me at least five minutes to track down the network ID on the PC, but once I did I added it to the list of devices allowed to join the network. A similar thing happened when I tried to first connect my iMac to the wireless network. But in that case, I got an error message stating that my computer (the iMac) was not in the list of devices authorized to join the network. Much better than a silent failure.

So, after that change, I was finally able to join the network with the PC. But to my dismay, it didn't automatically connect to the network when I logged in under one of my daughter's accounts, even though I specified in the properties for the network that it should do so. I joined the network, and I think that it's now going to join it automatically from now on. But it's a PC, so who really knows.

Monday, September 11, 2006

You won't see me mongering 9/11

I had forgotten that today is 9/11 until I checked Goggle news. This is going to be one painful news cycle. I hope it dies down before the end of the week. I hate news mongering.

17" MacBook Pro Screen Flex and Drained Batteries

More than a year ago, my friend Brad Shuler gave me a strip of paper with some little bits of some kind of plastic on them. He told me they were to keep my 15" PowerBook G4 from having its lid pop open while in a backpack or shoulder bag. When this happens, the machine can come out of sleep and end up draining it's battery completely.

The idea behind these little do-dads (called Wildeepz by their maker) is to bridge the small gap between the screen and the rest of the laptop when the laptop is closed. By creating positive pressure, as slight as it may be, they keep the lid lock engaged and prevent the lid from popping open and waking the laptop.

I had completely forgotten Brad gave them to me, and it hadn't been an issue until I recently got a Mac Book Pro of the 17" variety. Then I had my first drained battery the other day, and my conversations with Brad came rushing back. I still didn't remember he'd given me some of them, so I was debating whether to spend the $17 for the ones from Radtech or try to find some equivalent. Much to my surprise, I was organizing all my computer boxes and gear (a long-delayed task) and found the little strip of Wildeepz. Two little do-dads later and my 17" MBP is protected from unintended wakups and drained batteries.

Open Source Router

As part of a project to move my noisy Power Mac G4 to the basement (see my blog entery Silence is Golden), I recently bought a LinkSys WRT45GL. This is a 4-port ethernet and WiFi (802.11g) router which is hooked up to my DSL line and provides a firewall and port forwarding for the G4. I know that Kevin Heifner got this same router and immediately installed Thibor's HyperWRT version of the firmware. I don't use Vonage, and Skype has been working fine for me, so I didn't go so far as to replace the stock firmware (yet).

This router has the distinction of being built on top of a Linux kernel (interestingly, it was only after someone figured out that the firmware was based upon Linux that the firmware and technical details were released: the wikipedia for the WRT45GL).

I don't know if I'll ever replace the stock firmware with one of the open source versions, but it's nice to have the option. I doubt I'll try to do anything about it unless I run into a problem caused by the current firmware that isn't addressed by a stock updated from Cisco and is solved by some open source version with very high stability. I don't mind spending time setting these sorts of things up, but I do not want to maintain them on a regular basis.

By the way, I was amazed at the level of detail about the WRT45GL available from wikipedia. There's another blog topic for some other time.

Sunday, September 10, 2006

Silence is Golden

I recently got a new 20" iMac (yes, recently enough to be saddened that they just came out with a 24" model). Since I got the new machine, I've been working to make a place in the basement where I could move the six year old Power Mac G4). The G4 is the mail server for the family domain and will eventually host a family web site.

I finally got that project completed today. It involved running ethernet cables to the attic and basement (solid masonry homes substantially decrease the range of WiFi), putting a shield along the stringers for the basement stairs (to prevent dust, crud, and dropped objects from falling onto the computer), and getting power to the location.

The actual move of the computer was anti-climactic, which is a good thing. Shut it down, disconnect the wires, move the UPS, move the computer, monitor and keyboard, and hook everything back up. A small hiccup with the outlet having a loose wire was quickly solved and everything 'just worked'. Of course, this was after about two months of on-and-off work to get networking cables run and tested, get the dirt shield created, etc. I ran into a problem with attenuation of the Ethernet signal that required me to install a 5-port ethernet switch in the basement. Just goes to show you that 'cat-5' wiring isn't always really 'cat-5' (whether it was not up to spec to begin with, or whether I crimped something and created a problem will probably never be known).

With the G4's (notorioiusly loud) cooling fans no longer generating dBs, the study where the iMac is located is now soothingly quiet. Tonight, while I was fighting with the PC the kids use to play computer games, it was noisy again (the PCs fans are even louder than the G4s). But after I shut that off, I sat in front of the iMac and enjoyed the quiet. In fact, it was so quiet I could hear the sound of a cricket outside the study window trying to foster a next generation before the end of summer.

As for the girl's PC, configuring it to use a WiFi card and to use the printer attached to the iMac was a blunt reminder of just how crappy PC hardware and software really is. But that's a story for another day.

Now, I have to figure out how to convince my wife to let me buy a 24" iMac and give the 20" iMac to the girls. Then we'd be PC-free once again.

Monday, August 14, 2006

Parallels and the Mac: Friendly Frankenstein


So I've been working with Parallels Desktop for Mac lately and it's a rather nice package. It does most of the things you'd want and does them well. Today I discovered that the full-screen mode is just a big window with no border or with the border outside the visible region of the display. As a result, you can Cmd-tab to other Mac applications and the full-screen Windows VM is still there. You can even bring up Expose and Dashboard.

It's quite the strange sight.

Friday, October 21, 2005

Pell-mell to Hell

I just checked Google News before heading to bed and was confronted with this:

Cutting the rainforest to build computers

It reminded me of Collapse: How Societies Choose to Succeed or Fail by Jared Diamond.

Will we destroy the biosphere to the point where it can't sustain us before we learn to appreciate the consequences of our actions?

I fear we will.

Saturday, October 01, 2005

Macintosh: Apple and O'Reilly Safari Bookshelf team up

Well, Apple has teamed with the O'Reilly folks to offer a Safari-style subscription service for searching and reading 1000 Mac-related books online.

Brad Shuler told me about nine months ago he thought such 'online bookshelves' were the wave of the future. I mostly dismissed the idea at the time, probably because I like reading a physical book and find I absorb the material better that way. I think I was wrong. Given the high cost of printing and the speed at which the software market is changing, I think this is the wave of the future, even if I don't want it to be.

Tuesday, September 27, 2005

Walking: Full keyboard access on a Macintosh

So, a number of people have commented about the inability to navigate GUI's completely via the keyboard (without having to use the mouse). I don't find using the mouse that much of a burden, but there are times (especially when filling out forms in websites) that I'd like to do things like pick my state from the choice/combobox without having to go to the mouse.

It turns out you can turn on "full keyboard access" on the Mac and do this. It's available in Mac OS X 10.3 and for all I know it was there in earlier versions as well. If you open the System Preferences and choose "Keyboard & Mouse", there are three sub-panels labeled "Keyboard", "Trackpad", and "Keyboard Shortcuts". If you navigate to "Keyboard Shortcuts", there is a checkbox at the bottom that says "Turn on full keyboard access". If you check this, you can navigate menus, lists, etc. using the keyboard.

Brad Shuler told me that Weiqi Gao blogged about wanting this but I couldn't find the relevant blog entry. Brad also told me there are more fine-grained control options available under Tiger (10.4). Maybe he'll describe them in his blog.

Wednesday, September 14, 2005

Society: Can you pay for your health care?

A study (published by Reuters in the U.K. but not in the U.S. as far as I can find) shows that a patient's success getting follow-up care after an emergency room visit for a serious condition was determined primarily by the quality of their health care plan.

So if you thought that America has great health care, it depends on how much money you make and the job you have. The 45 million (>15%) people without health care insurance get a raw deal. Those with Medicaid don't do much better.

History: What a Day

Today is a very diverse history day. For example:


It was on this day in 1638, a young clergyman, just 31 years old, died in Massachusetts, and in his will, left his library and half of his estate to a local college. To honor his memory, the college changed its name. The clergyman was named John Harvard, and the college changed its name to Harvard University, and it's the oldest in America.

And that's just the start. Go. read

Monday, September 05, 2005

Walking: Paper-like displays

I've been following the research into "paper-like" displays for at least ten years now. My dream is to have a display that is essentially an unrollable scroll. It would be like paper or thick plastic, have a high contrast display, allow for large 'paper' sizes (e.g. a 17-20 inch high-definition display) and consume little power (to make portable computer batteries last as long as possible).

This article suggests that we are finally getting to the point where the very first of these sorts of devices will be practical. It's quite a bit smaller than I'd like, and it's only 4-gray monochrome, but if it actually makes it into production it would be a good start.

Of course, I've seen predictions of commercial products like this coming "in one or two years" for at least the last ten, so I'm not holding my breath.

Thursday, May 12, 2005

Admin: Getting a picture again

It turned out to be much more difficult than I expected to get my picture back on the blog profile. It's done now, but it wasn't straightforward. I had to dig through HTML source and find the 'true' URL for the image stored on Flickr. Flickr uses JavaScript to obfuscate (perhaps unintentionally) the image so Blogger doesn't like it. You have to dig and find the 'normal' .jpg URL.

Admin: Trying to get a picture again


BrianSmiling.jpg
Originally uploaded by icebrg.
I lost my picture. So I'm trying to use Flickr to get a photo online that I can use in my blogger profile.

Tuesday, May 10, 2005

A Belated Mother's Day Offering

I am only mediocre when it comes to being a good person. I don't think I'm a bad person, and I think I've never done anything particularly terrible, but since even sociopaths feel that way I know that's no compass for moral values. My wife, on the other hand, is an amazingly good person. How she manages to see through the frustration and temptations of life on a day-to-day basis I find unfathomable. She knows she's not perfect, which I am constantly forgetting, and still manages to see the best in others, despite the pell-mell pace of our lives and the concerted efforts of fools to find her last nerve.

That doesn't mean she fails to spot the fools; she just manages to view them as human despite their (sometimes considerable) flaws, while I tend to write them off and continue my blissful and fruitless search for moral fortitude in the modern world. And I know that she would credit much of her world view to her upbringing, in particular to her mother.

I have to agree with her. My mother-in-law is one of the most nurturing, kind-hearted people I know. She has a bedrock of morals that amazes me, and I'm rather too jaded to be easily amazed (okay, 'cynical' is more appropriate, since I'm not nearly experienced enough to call myself jaded). I know it's my duty as son-in-law to hate her, and while I might have been inclined to skip it just because I'm contrary, I didn't need to.

I know I'm incredibly lucky to have fooled my wife into marrying me, and just as lucky to have a mother-in-law I love and who I believe loves me in spite of myself. I suspect I'll not live up to the love and devotion of either of them, but they inspire me to be the person they see in me.

Thursday, May 05, 2005

Tinkering: Bash and Subversion 2

It turns out that just doing -W with the names of the options to svn ends up disabling the normal file name completion. This is rather painful when you want to do things like type 'svn add ' and hit tab to get a list of files you might want to add to the repository. To fix this, you have to specify the -f option after the -W option, like this:

complete -W 'add blame praise annotate cat checkout co cleanup commit ci
copy delete del remove rm diff di export help h import info list ls log merge
mkdir move mv rename ren propdel pdel pd propedit pedit pe propget pget
pg proplist plist pl propset pset ps resolved revert status stat st switch sw
update up' -f svn

This turns file/directory completion back on, which is good, but leaves all the svn commands (like help, diff, etc.) still in the list of completions even after you've provided a command to svn, which is bad. If anyone knows how to make bash only list file/directory completions when I've already specified the command for svn to use, I'd love to know.

One other handy thing in bash is the FIGNORE environment variable. This variable is a colon-separated list of names to ignore. So, setting it to ignore the .svn directory is as simple as:

export FIGNORE='.svn'

Of course, if you already have things in FIGNORE (e.g. the .ssh directory, the CVS directory, etc.), you will need to append .svn to the list.

I'm really looking forward to full integration of Subversion with IDEA, but even after that comes about, some things are just easier on the command line and this makes them even easier.

Wednesday, May 04, 2005

Tinkering: Bash and Subversion

Bash has a very handy and (as far as I'm concerned) obscure feature that allows you to specify completion words for commands. This is useful for providing some brief feedback when typing a command line. For example, you can specify the completions for the 'svn' command like this:

complete -W 'add blame praise annotate cat checkout co cleanup commit ci
copy delete del remove rm diff di export help h import info list ls log merge
mkdir move mv rename ren propdel pdel pd propedit pedit pe propget pget
pg proplist plist pl propset pset ps resolved revert status stat st switch sw
update up' svn

This is great when you type 'svn' and then hit the TAB key to get a list of possible completions.

I wish you could specify completions for secondary commands. This would allow me to specify the options for the 'svn commit' versus 'svn diff' versus every other svn command. I hope I've just missed how to do this (despite trying some of the more obvious possibilities). If so, please let me know how it works.

Saturday, February 19, 2005

Thinking: Runtime Geography of a Java VM

Alex Miller read about my notion of runtime geography and posted some excellent analysis. As I've thought about it more, I agree that the notion of runtime geography is more intuitive and feels more general than the notion of an ontology, so let's run with it and see where we end up.

If we think about locating things on a map, there are numerous types of things, and their locations can be specified in a variety of ways. For example, we have towns and cities, which have a name (not always unique) and occupy a particular area centered on a point that we can specify with a longitude and lattitude. We can also talk about things in a relative manner ("Chicago is about 350 miles north-northeast of St. Louis). We sometimes want to find things based upon nearness (Where's the nearest pizza place that delivers?). We can also talk about roads, rivers, right-of-ways, etc., all which follow a route (which is usually specified by a width and a series of points specifying its path).

So, if we're going to have a runtime geography for the objects in the VM, we have to solve several problems and answer a number of questions:

  • What are the various dimensions used to create the space? Anything that might be a dimension must be something for which we can directly assign a value to an object, or one for which we can derive a value for an object based upon some affiliated/associated object.

  • How do we make the geography available to Java code? Once we've come up with some definition of the runtime location of objects, we need to be able to assign a location to an object and we then need to be able to specify a location or region to locate one or more objects.

  • How do we avoid conflicts with other ways of organizing objects in the VM? There are at least two ways to define a 'location' for an object at runtime today: the ClassLoader that loaded it's class and the package it is defined in. We might be tempted to include the Thread(Group} which is executing code of this object, but this has the problem that (a) it is transient and (b) it can result in multiple locations for the same object. We should leverage these if possible or at least not clash with them.

  • How does our solution fit into a distributed system? There are many situations where multiple Java VMs communicate with each other. Should the runtime geography be a purely internal thing which is never exposed outside a VM, or should we expose it and use it across VMs?


To make the whole discussion concrete, I'm going to focus on two particular uses of a runtime geography that are fairly different from each other. While I hope a well-conceived runtime geography will be applied to many problems, these two seem like a good start:

  • Dependency injection at object construction time - finding objects required by the constructed object based upon where in the program the object is created

  • Location-dependant logging - specifying different logging levels for the same kind of object used in different locations in the program. For example, assume StringTokenizer produced logging messages for your favorite logging API. If a JDBC driver and some user-written piece of code in the same program use a StringTokenizer and you want to crank up the logging messages for StringTokenizers 'inside' the JDBC driver but not 'inside' the rest of the program, how can we use runtime geography to do this? What if we want to crank up all logging inside the JDBC driver?


In addition, we should meet some design goals:

  • Make things as simple to use as possible.

  • Make the description and use of geography easy to understand - in particular, draw upon the analogy of real-world geography as much as possible.

  • Put information in as few places as possible - avoid multiple configuration files that all depend upon each other and which depend upon magic strings or magic numbers. Of course, this can compromise the utility of things if we overly restrict the facility, so we need to 'right-size' it.

  • Geography locations should be defined at compile-time, just as in real-world geography. This is essentially saying that objects won't change their location during runtime. This might conflict with use in a distributed manner, but seems like a good simpifying assumption, at least for now.

  • It should be possible to specify the 'query' used to navigate the geography both at compile-time and at runtime.

  • Don't conflict with other ways of defining object location.


  • This feels like enough to start mashing ideas together. Now it's time to do the serious thinking... :-)