Wednesday Briefs

Aug 8, 2007

Several short thoughts for today:

The Java Popup you Can't Stop
A story over at Slashdot discusses a newly discovered means of bypassing popup blockers using Java. There are two proofs of concept available: an applet based version and a JavaScript version. The applet concept works in any browser, while the JavaScript concept works only in Opera and Gecko-based browsers. I couldn't get the JavaScript version to work for me, but the applet concept works surprisingly well. Pretty scary!
Bridge Collapse Alters Amazon Rankings
I noticed just the other night that the list of bestselling automotive items at Amazon.com yields some surprising results: 4 out of the top 5 selling items are "life hammers" designed to help you break out of your car as you sink into the water. The bridge collapse in Minneapolis is no doubt the cause of this interesting shift in the top selling list.
Michael Vick Dog Chew Toy
This is so great. Payback's a bitch! Thanks dad!
Barry Bonds is a Big, Dumb, Moron
Title says it all.

I was touching up some of my photographs recently when I noticed that one shot in particular had substantial vignetting. Wishing to use this photograph as a desktop wallpaper, I set out to try and remove this effect from the photograph. All of the standard Photoshop tools failed to do the trick. Both the clone tool and healing tool produced poor results. Disappointed, I searched the web for help. Thankfully, I found the answer I was looking for: a new filter introduced in Photoshop CS2.

For the sake of discussion purposes, here is the original, unedited image (scaled down of course):

Original, unedited photo; note the strong vignetting in the corners

The vignetting in this image is most apparent in the upper left and right corners. In order to fix this unwanted effect, I fired up the new Lens Correction filter made available in Photoshop CS2 (it's under the Filter » Distortion menu).

The Lens Correction filter window

This particular filter allows you to alter a number of things: chromatic aberration, vignetting, and perspective problems. Two sliders for tweaking vignetting are available along the right hand side of the filter; one handles the amount of correction desired (either lighter or darker), while the other handles the midpoint (which I still don't fully understand; a trip through the documentation is in order). I lightened the corners by a value of +18, which gave me the following result:

An updated version of the original, without vignetting

As you can see, the results are stunning. Not only was the vignetting removed from the upper corners (where it is most apparent), the lower corners were also updated, as were the edges of the photo. After tweaking the levels of this photo, the final result is definitely desktop wallpaper worthy:

The final version with improved levels and no vignetting

This new filter is fairly well hidden, like many of Photoshop's features, but I'm glad that I stumbled upon it. I was definitely impressed with the results, and I have yet one more trick in my bag for future photo editing.

Wii Sports is the only game that my family currently owns for use with our Nintendo Wii. As such, it gets a fair amount of play time around our house. Although it's a fun game, there are a number of areas that Nintendo could have greatly improved upon. Here's a short list of improvements that I've thought up for the game:

  1. Video Replays: When an exciting event takes place in the game, I'd like to be able to save a video snippet of what happened (a "play of the day" if you will). For example, I have hit two holes-in-one in golf over the past several weeks (a pretty exciting event, both times). Having a video replay would allow me to relive that exciting moment, and share it with others.
  2. Larger Golf Course: I really enjoy the golf game, but nine holes is just not enough. Why can't we have 36 holes, or better yet, 72? I can't believe the courses take up that much space, and I would guess that they are pretty easy to develop (given the basic building blocks).
  3. Bowling Tournaments: It would be fun to have some sort of bowling ladder available, where you could compete against either another individual or another team (either computer controlled or human). A handicapping system could even be provided, to allow weaker bowlers to challenge the seasoned pros.
  4. Improved User Settings: Every time one switches users during a game, Wii Sports asks you which handedness you prefer (right or left handed). Shouldn't I only set this once?
  5. Fix the Baseball Bug: When playing against the computer in baseball, the "home" team (the player) starts first (top of the inning), while the computer starts second (bottom of the inning). If the "home" team is ahead at the beginning of the last inning, the game ends via the mercy rule. I'm no baseball expert, but I know that the mercy rule only applies to the bottom of the inning! This should clearly be fixed.

If you own Wii Sports, what do you think? Are there other improvements that could be made?

Firefox Trunk Freeze

Aug 2, 2007

Last Wednesday was apparently a freeze day for the Gecko 1.9 rendering engine (which will appear in Firefox 3). A laundry list of new features have been added, as can be seen from the most recent nightly build report. Full page zoom is one of the biggest new features coming, though it has not yet been enabled via the GUI (you have to download a separate test extension to play around with it).

One particularly nasty regression (bug 390451) lurks in the nightly builds, so I'm not planning on switching my base install to this alpha. But it looks like it won't be much longer before we can enjoy some new Firefox features.

Anorexic Web Writing

Jul 31, 2007

A List Apart fails to disappoint. While I don't read every article in each issue (not all of them apply to my web development efforts), I have yet to find one that hasn't taught me something new. The latest issue is a prime example. Two new articles tackle the problem of weak writing on the web:

  1. Better Writing Through Design — by Bronwyn Jones
  2. Reviving Anorexic Web Writing — by Amber Simmons

Both articles are excellent reads, but the latter is my personal favorite. Mrs. Simmons points out a number of interesting thoughts on where writing for the web becomes anemic. One specific example that hits close to home for me is alt text. Improving my alt text writing is a subtle, yet important improvement that would benefit my websites in a number of ways.

I recently installed Apple iTunes for the first time (the QuickTime install on my laptop was having lots of problems). One of the first things I tried out was subscribing to a video podcast (specifically The Totally Rad Show), which was fairly easy to do. As soon as I started to play the latest episode, I noted that playback performance was horrible. I never had this kind of performance problem with QuickTime, so I was a little surprised that iTunes would be so different.

A quick Google search turned up a support article from Apple on iTunes performance in Windows XP and 2000. All of the standard suggestions are there (make sure you're computer is fast enough, download the latest version, etc.), but one suggestion caught my eye: "Disable Direct3D video acceleration in QuickTime."

I ventured to the Windows Control Panel, opened the QuickTime item, and turned off the Direct3D video acceleration. To my surprise, performance was restored! Who knew that a simple toggle could solve such an annoying problem?

In loosely related news, I'm getting closer to actually buying an iPod (something I thought I'd never do). More on this later.

You don't know the power of the Dark Side; I must obey my master. — Darth Vader

Nintendo’s Gamble

Jul 23, 2007

Nintendo announced a new peripheral at this year's E3: the Wii Fit. It's an interesting concept, but one that has sharply divided the gaming community. I've read a number of comments saying that Nintendo is further alienating the "hard-core" gaming community; catering to the "soccer-moms" of America isn't what gamers are looking for, so how could Nintendo sell out like that?

Other comments have praised the device, saying that kids clearly need to get exercise, and this is one more step in encouraging such behavior. I tend to agree with this latter group; the Wii Fit is a great idea, though the 'games' they've shown for the device seem bland. As far as alienating the hard-core gaming community is concerned, I don't think Nintendo is doing that at all. It's simply a matter of broadening their horizons. While Microsoft and Sony are locked in the never ending battle of "bigger, faster, better," Nintendo is quietly expanding their horizons, gobbling up market share that no one has claimed. And they are making a profit the entire time. Microsoft is losing money like crazy with the 360 (especially after the recent "recall" announcement), as is Sony. Nintendo has made a profit since day 1, and continues to do so.

In the end, I think Nintendo will come out on top. The Wii may not have the flashiest graphics around, but it's got creativity, something the other guys don't. What do you think of the Wii Fit? Will it be a success, or a flop?

I recently stumbled upon an excellent article explaining why the "black bars" still show up for some movies, even on high-definition televisions. Not being the owner of a high-def TV, I had always wondered what really happened in these cases. Now I finally understand what's going on, and that one shouldn't panic when the bars continue to show up.

Castlevania: Dawn of Sorrow Screenshot

Castlevania: Dawn of Sorrow is the latest Nintendo DS game that I've been playing over the past few weeks. I just beat it last night, so I thought I'd share a few thoughts on the game.

This is the first Castlevania game that I've ever played, though the series dates all the way back to the original NES title. For those not familiar with the series, you play as a crusader set out to destroy the evil that has taken up residence in Dracula's castle. It's a classic 2D side-scrolling game, and is an incredible blast to play.

Your character has two ways to attack the various monsters throughout the castle: either with a number of weapons or via special abilities which come through harvesting the monster's souls. Each soul you collect gives you a different ability. Some abilities cost mana to use, while others act as "enchantments" and are active all the time. You can equip three souls at any time (one "bullet" soul, one "guardian" soul, and one "enchantment" soul). There are also a few ability souls collected through the game, which are always active. This specific aspect of the game is quite enjoyable. Collecting all of the souls is much more difficult than you might think. I've been playing off and on for several weeks and only have about 75% of the souls collected.

Interestingly enough, there are only two real "levels" to the game: Dracula's castle and an area (presumably of Hell) called simply "The Abyss." The castle "level" has a number of stages, and is incredibly large. It took a long time to explore the entire level, and I have undoubtedly missed some hidden rooms.

When your character dies, the game is over. There are no "extra mans" to be had, so you have to be very careful. Thankfully, you can save the game any time at a number of save points throughout the castle. Make sure to save often; I lost a number of hard to get souls last night because I got overconfident.

I highly recommend this game. I've had a ton of fun playing it, and I've already started the next game (Castlevania: Portrait of Ruin). This is excellent proof that 2D games are not dead (and shouldn't be). My final rating: A+

MozillaZine has announced that Firefox 2.0.0.5 has been released (though, as of this writing, I still don't see it via auto-update). I enjoy looking through change logs (weird as that may seem), so for every new Firefox release, I take a look at Bugzilla to figure out what has been fixed and what is new. Here's how I do it:

  1. Browse to the BugZilla keywords description page (the link to this page is also available on the advanced search form).
  2. Look for the "fixed[versionNumberHere]" and "verified[versionNumberHere]" keywords. Note that the [versionNumberHere] bit refers to the Gecko version number, not the Firefox version number. For example, Firefox 2.0.0.5 uses Gecko version 1.8.1.5 (as you might guess, the 2.0 release used 1.8.1). Firefox 3 will use Gecko 1.9.
  3. Out to the right of each keyword, you should see a count of the total bugs that particular keyword corresponds to. Click that number, and you will see all of the bugs that use the specified keyword.

Here are the fixed bugs and verified bugs for 2.0.0.5. If you really want to get clever, you can combine these keywords together (separated by a comma) on the advanced BugZilla search page. You'll need to tweak some of the default settings on that form to get it to work, but it can be done (as this query for Firefox 1.5.0.5 indicates).

There are two special notes about doing things this way:

  1. These queries are looking at fixes in the Gecko engine. As such, bug fixes for Thunderbird and Seamonkey will also show up.
  2. You may not see everything, particularly high-risk security fixes. For all security changes, see the known vulnerabilities page.

MP3 Player Ideas?

Jul 15, 2007

My Creative Zen Micro only has 5GB of storage and, having filled that up, I'm looking for a new (and larger) MP3 player. All of the major players (the iPod, the Zune, and the Creative Zen Vision M) have their own frustrating drawbacks, like non-replaceable batteries.

As such, I've been trying to figure out which way to go, mostly by reading reviews around the web. The more I read, the less impressed I am with each player. What MP3 player(s) do you use and/or own? Any comments or suggestions would be appreciated.

As I recently mentioned, the way I was handling the "skip to main content" links on this site wasn't as accessible as I had originally thought. I have fixed this issue, and hopefully things will be much better. Please let me know if anything looks odd or out of place.

A few weeks ago, I purchased a pair of Audio Technica ATH-ANC7 Noise-Cancelling Headphones. Over the July 4th holiday, my family and I went to visit my grandmother in Georgia, so I got a great chance to try them out. As the title of this post suggests, I really like them.

I attempted to take some pictures of the headphones, but they turned out really bad. Rather than horrify you with my pathetic attempts, I've decided to go with some stock photos.

Audio Technica ATH-ANC7 Headphones

As one might guess from the above picture, the ear pieces on these headphones are large enough to cover your ears. This design passively reduces any ambient noise, even before the noise-cancellation circuitry is turned on. Another plus is that active cancellation doesn't need to be enabled to listen to music (unlike the mega-expensive Bose headphones). Passive mode works well enough that, in a quiet place like my office, I don't really need to enable the active cancellation. However, it's worthwhile to note that, when in passive mode, any music played through the headphones sounds slightly muffled.

Enabling active mode is done through the flick of a switch located on the left ear piece. When enabled, any sound coming through the headphones is amplified, in addition to the added noise-cancellation. The difference between music quality in the enabled and disabled states is startling. What once was muffled becomes crystal clear. You literally have to hear the difference to understand what I'm talking about. Again, in a quiet enough location, I can live in passive mode. But active mode is good enough that many people may prefer to leave it enabled all the time.

So how does the actual noise-cancellation stack up? On our trip to Georgia, I used active mode the entire time to block out all the road noise. Needless to say, I was astounded at how well it worked. In the past, I ran my MP3 player at a volume level of 14 or 15 to hear the music over the noise. Now I can run the volume down to 7 or 8 and still hear amazingly well (even music with a high dynamic range). Great sounding music, and I'm saving my ears: win-win!

Package contents

This second photograph showcases everything that you get with the package. The headphones and accessories come in an ultra-nice carrying case, which is rigid enough to prevent it from being crushed. A little zippered pouch holds the various accessories: the detachable headphone cable (5 feet long), a 6.3mm stereo adapter, an airline adapter, and a single AAA battery. Yes, this pair of headphones uses a single AAA battery. Shocked? I know I was. The battery lives in a tiny compartment in the left ear-cup, neatly tucked out of sight. I partially expected the included battery to be a no-name brand, but they actually shipped an Energizer brand battery. Time will tell how long the battery life is. I haven't been keeping track of how long I've used the headphones, but a rough number of "days" will suffice.

Several other points are worth mentioning. These headphones are extremely comfortable, and I find that I can wear them for an extended period of time without causing my ears to hurt. The adjustable band at the top of the headphones also allows folks with a large cranium (like myself) to wear them comfortably, without having their brains squeezed out of their head. Yet another plus is that the headphones are surprisingly lightweight. And I can even store my MP3 player in the case (in the middle of where the headphones themselves live). Score!

Overall, I couldn't be any happier with these headphones. Note that the availability (and pricing) of these is hit-or-miss. The ATH-ANC7's were recently one of two pairs recommended by a reviewer from the NY Times (his video review is pretty funny). Due to the upswing in demand, they disappeared shortly after the review was released. They used to be available at Amazon for around $135, but they shortly thereafter disappeared. I picked mine up on eBay for just under $200 (shipping included). Amazon now lists them again at $180 (as of this writing), but I know that Dustin recently bought a pair for around $160 at Amazon. So your pricing and participation may vary, as they say.

If you're in the market for noise-canceling headphones, I strongly suggest checking out the Audio Technica ATH-ANC7's. I've been thoroughly impressed, and they are quite a step up from my $10 Sony ear-buds. :-D

Accessible Hidden Text

Jul 10, 2007

I just ran across an excellent article entitled Why “left: -9999px;” is Better For Accessibility Than “display: none;”. It discusses the two primary means by which web developers try to hide text (usually to allow for accessible logos or titles), and why using an offset is (often) better than just simply making it invisible. The author also explains why this is better, using some documentation from Microsoft on Internet Explorer accessibility. Looks like I need to fix my websites!

I've come across a few articles on how to optimize WordPress performance (all of the following links come from the first linked story in the list below):

WordPress is by far my favorite content management system, but I opted to use Movable Type over at Born Geek, mainly because it uses static HTML pages (which load faster). Considering the content in the above guides, I may eventually switch from Movable Type to WordPress.

Can anyone recommend to me a secure (i.e., spam-resistant) contact form? I use the NMS FormMail script over at Born Geek, but spam is starting to pour through it. A replacement would be great, so any recommendations would be appreciated.

CNN Redesign

Jul 5, 2007

I've been out of town, so I know that this story is a few days old, but I really dig the new look at CNN.com. It's clean, sleek, and takes up much more screen real estate. The HTML doesn't validate, nor does the CSS, but I still think this is a step in the right direction.

Several weeks ago, I finally got around to installing Windows Media Player 11. Having put it through its paces, I'd like to share my thoughts on this release.

The most apparent change in WMP 11 is the new look and feel, courtesy of Windows Vista. In fact, the player features the Vista-esque minimize, maximize, and close buttons in the upper right hand corner. Strangely enough, a 1-pixel "dead zone" exists above each of these buttons when the application is maximized. I tend to run most applications maximized, and when I want to either minimize or close a window, I throw my mouse all the way up to the upper right of the screen. With Media Player 11, I can't do that. Instead, I have to move the mouse down at least 1 pixel from the top to activate any of the buttons. What an unnecessary aggravation, not to mention a break in the Windows XP standard!

The entire interface, as with most things Microsoft tries to make modern, looks like it has been coated in plastic. Everything is black, with the exception of the buttons, which sport an electric blue, back-lit effect. Overall, the interface feels uninspired, but it's one I can live with. It took me a while to figure out that you have to right click the top of the player to access the standard application menus. Why exactly is Microsoft getting rid of the menus in all of its new applications? Internet Explorer 7 does the same thing.

The new media library interface is a prime example of Media Player's stance as an iTunes wannabe. Gone is the oh-so-useful tree control for browsing through your stored albums. Instead, the user is presented with a visual collection of music "stacks," as Microsoft calls them. The more albums in your library for a particular artist, the bigger that artist's stack will be. This new interface is fairly confusing to me. I have a much harder time finding the artist I want to listen to now, mostly because I can't quickly scan for the artist's name (looking down an alphabetized tree control was much easier). One other problem is that the media library is very slow, especially on initial startup. It takes Media Player a while to load all of the album art it needs to display, and this initial slowdown is quite noticeable.

Speaking of album art, Media Player occasionally can't find the appropriate album cover image. One 2-disc collection of mine (John Denver's Rocky Mountain Collection) has the correct album image for disc 1, but only has a blank placeholder for disc 2. I note that some of the meta-data for disc 2 also differs, so it's no doubt a problem with the music database service that Microsoft uses. It's still a noteworthy annoyance.

I can find at least one positive note about the new media library interface. Playing music from the artist level, rather than the album level, allows me to listen to all of a particular artist's albums without having to click through them. Media Player automatically moves to the next album in the list when the current album has finished playing, a most welcome feature.

Playing videos through WMP 11 is fine, though I have experienced some occasional stuttering on locally saved files. I recently attempted to watch an episode of Diggnation that I had downloaded, and I found that I could not jump around in the video without experiencing incredible delays of 5 to 10 seconds or more. This wasn't a problem in version 10.

Ripping music has changed slightly (progress bars now advance in 10% increments), but still seems fast. I have not yet performed a sync operation with my Creative Zen Micro, so I can't comment on that part of the application. I'm avoiding the "built-in" Napster and URGE music stores, since I still prefer to obtain music on CD.

I'm not sure how to sum up Media Player 11. While it has a few nice features, I think Microsoft has generally taken a step in the wrong direction with this. Have you used WMP 11? If so, what do you think?

Matt Mullenweg has an interesting post on security in WordPress. He points out that, as a product becomes more popular, its security issues garner more attention:

When a product is popular, not only does it have more eyes from security professionals on it, but any problems garner a level of attention which is not quite warranted by the frequency of the general event, like Angelina Jolie having a baby. There are certainly things intrinsic to coding that can make software more or less secure, but all things being equal the software with the most eyes on it, which usually means Open Source, will be the most robust in the long term.

Zeldman on Maybe

Jun 22, 2007

Jeffrey Zeldman has written an intriguing article on why "maybe" is one option too many. He compares the usage of "maybe" in questionnaires to five-star rating systems, exposing a point I had never thought of. As always, it's a well written article that makes you think. Zeldman FTW.