« April 2007 | Main | June 2007 »

May 25, 2007

JavaScript Coding, Texas Style

Today I was adding some new JavaScript functionality when my debugger told me that I had something wrong with a line. The guilty code:


The corrected line is:


I had to chuckle. Who knows what my fingers were thinking. There's no logical accidental keystroke explanation. The only thing I can figure I have some hidden Texan tendencies which pulled me into thinking the JavaScript needed more drawl.

I have not been to Texas before...perhaps it's time for a visit.

Posted by mike at 9:59 AM

May 23, 2007

One Computer Running Windows, Mac OS X, and Linux

If you have an Intel Mac and have a need (or want) to use more than OS X you definitely need to take a look at Parallels. I installed Windows on my Mac using Parallels today and am stunned at the experience. Read on for details.

I bought a license for Parallels early last year when it was in beta. Up until today I've used it for running my development environment for work (Red Hat Linux). It has worked very well, over the last year the Parallels software has gotten better and better at the small things like UI, networking, sleeping and waking up and more. Running Linux on OS X has been great...it allows me to have my work and my Mac bundled together.

Over the last 6 months I've gotten heavily into doing web development with newer technologies like Ajax, DHTML, grid control, and more. These web technologies require good testing across multiple browsers on multiple operating systems. I had been using my Windows laptop but sometimes it's not readily available (like if I'm at a conference and only brought the Mac). The Windows laptop is about a year old (Dell) and has pretty decent specs but even with just Firefox and IE running it has periods of really frustrating slowness.

So with that in mind, today I figured I'd try Windows running on OS X in Parallels to give myself a one-machine solution for cross-browser testing. I started the install before dinner assuming it would take forever. In fact, I was suspicious that maybe it wouldn't even install. Sometimes it is difficult to run Windows on a computer designed for it, let alone through a piece of software on a Mac. I figured that even if Windows ran slower on my Mac that then I'd have it everywhere I travelled, and wouldn't have to switch back and forth between machines.

To my suprise, when I got back from dinner there was a fresh Windows install up and waiting for me on my Mac. What is more suprising than that are two things, Parallels speed and OS integration:

  1. Could it be possible that Windows on my Intel Mac actually runs faster than on my Windows laptop. I can't believe how quickly things launch and close, how fast application switching is. Can you believe I can get from the machine being Off to starting up and launching Internet Explorer in 16 seconds? It takes about that much time on my Windows laptop just to launch IE.
  2. Parallels really nailed integration between Windows and OS X. Two things that came up immediately:
    1. When using Windows on my Mac there's no "mouse capture" inside Windows. This is hard to describe, but in all other virtualization software I've run you have to choose to either be in one or the other by some click or keystroke. On Parallels, when you move over the Windows box the mouse interacts with the UI for Windows. When you move the cursor back outside the window it is back in OS X. There's no key combination to "release" the mouse from the other operating system. This makes Windows OS and programs feel like just another thing running on your Mac. It helps productivity a lot when going between coding and testing because it cuts out most of the clunkiness and frustration of trying to remember to hit a special key combination to move between OSs.
    2. The second integration thing I noticed is that each running Windows programs shows up as a separate entry on my Mac dock. So when I'm looking at the dock or Apple-tabbing through applications each Windows program has an entry and I can quickly switch to a specific program running inside Windows, even if I'm currently working in a program on OS X.

Parallels had me feeling good about the cost of a license for the ability to run a text-based Linux OS, but the way Windows runs really makes the software worth it's price.

Another experience that solidifies sticking with Apple all these years.

Posted by mike at 8:07 PM

May 10, 2007

Arcade Fire at the Orpheum in Boston

In a stroke of luck I ended up getting a ticket to the Arcade Fire (band site)concert in Boston tonight. I've been listening to their latest, Neon Bible, nonstop since I picked it up last month. The New York Times has a pretty decent article on the band.

The show was at the Orpheum, a good place to catch live music because it isn't so huge like a football or basketball arena. Even the bad tickets in the theater (the ones still available an hour after tickets went on sale) are close enough to see the action on stage.

Two things of note about the show:

I like this snip from the New York Times article that gets at the energy of the performance and the instrument switching:

The exhilarating spectacle the band creates for its live shows arises from the conflagration of energies, the barely controlled chaos of seven precocious musicians, all of whom play multiple instruments (sometimes swapping between songs, sometimes swapping within songs) and who generate countermelodies, sonic textures and onstage interactions that are part riotous play, part unnerving provocation. There’s Richie, who plays bowed double bass and taught himself an idiosyncratic electric guitar (he appears to be wringing the neck of a dead chicken) and embraces the use of police sirens and megaphones; and Will, the technically dextrous, highly tactile keyboardist, who often leaves the ivories to bait Richie onstage, grabbing his friend’s double bass or drumming on his head with sticks or enacting various scenes of mock-torture; and Jeremy, the amply-tattooed heavy-metal enthusiast, who pummels the drums (or the piano when Régine takes a turn on percussion) with such ferocity that Win sometimes looks back and thinks Jeremy’s arms are going to snap right off.

The musicians kept things pretty tight, and close to the form of the albums (not a lot of experimentation or derivation from the recordings).

Definitely worth checking out if you appreciate a good indie band...and can get tickets. Looks like most of their shows sell out very quickly.

Posted by mike at 11:15 PM