The iPhone and iPod Touch are great for playing music while you gaze at the screen. They're also great for playing music while the screen is off: save power! extend battery life! The catch is that the typical way of stopping the music is so cumbersome. If the screen is off, that means the device is locked. So you turn it on, do the "slide to unlock" thing, and then hit the Pause button.
When the (non-iPhone) phone rings, or someone walks into your office to talk to you, or your speakers start blaring some inappropriate song, or you need to dash out of your car... that's just not fast enough.
Here's the shortcut: Unplug the audio cord from the iPhone or iPod. Even though the internal speaker could keep playing a tinny version of the same song, the device detects the unplugging and pauses the music automatically.
Saturday, May 09, 2009
Wednesday, January 28, 2009
How to Interpret "Lost"
[Spoiler warning: I'm not going to give away specifics about the Lost plots from earlier seasons, but I will go into the themes a little bit, which may take away some of the surprise factor if you start from the very beginning.]
With the new season of "Lost" just starting, you may be a bit confused depending on where exactly you are in time (just like the characters). Maybe you've been away for long enough that you're having trouble remembering all the plot threads. Maybe you've caught up on your own timeline with the season DVDs. Or maybe, like me, you watched from the beginning in blocks of 3-4 hours per week, when the Sci-Fi and G4TV channels recently ran all the episodes to lead up to the latest season premiere.
I think this last way, in big multi-episode sessions, is the most effective. I remember hearing about some of the plot mysteries during the first season. Mysterious hatches! Polar bears! Seemed like the questions around those things dragged on for weeks and months. Viewing the episodes back-to-back gave the same feelings of wonder and suspense, but resolved the mysteries reasonably quickly.
Now is a significant time for Lost to resume, not least because we recently lost both Ricardo Montalban and Patrick McGoohan. Some say that Lost is like Fantasy Island. (Whatever you can imagine, can happen. Your fate may depend on whether you choose good or evil.) Others say it's like The Prisoner. (You'll never get away. Everything goes topsy-turvy. You can never tell whose side anyone is on.) The emphasis shifts each season. Sometimes things seem like magic, other times there are malevolent plots afoot.
I say the right way to think of Lost, is as a real-world, present-day version of Zork. (By the way, you can now download all of Zork I, II, and III.) You start with this giant unexplored area, that you map a little at a time. You find puzzles, locked doors and such, that take a long time to get past. The Dharma Initiative is like the Great Underground Empire, a Macguffin that is a convenient excuse whenever the creator wants a certain object or map location to exist. Once you know how to get past the obstacles and get from place to place, later puzzles involve going back and forth on long journeys through well-trodden territory. Landmarks that once were mysterious and intimidating, are now mundane and familiar. And when you try to solve the final riddles, you realize that actions and choices from the past have to go together in specific ways so that everything lines up perfectly in the present.
Here are the riddles I'm still waiting to find the answers to... I'll be peeved if these things don't get resolved by the end of the series! [OK, these might be a little spoiler-worthy if you haven't seen the first season or two.]
1) What is the origin of Hurley's nickname?
2) Who is the "him" who is supposed to be the replacement for the guardian of the hatch? Will anyone ever answer the riddle correctly?
3) How did Inman get to the island?
4) Why does it seem like the Dharma Initiative is still active in the background (think Inman, and the plane drops), when by all rights it should be defunct?
With the new season of "Lost" just starting, you may be a bit confused depending on where exactly you are in time (just like the characters). Maybe you've been away for long enough that you're having trouble remembering all the plot threads. Maybe you've caught up on your own timeline with the season DVDs. Or maybe, like me, you watched from the beginning in blocks of 3-4 hours per week, when the Sci-Fi and G4TV channels recently ran all the episodes to lead up to the latest season premiere.
I think this last way, in big multi-episode sessions, is the most effective. I remember hearing about some of the plot mysteries during the first season. Mysterious hatches! Polar bears! Seemed like the questions around those things dragged on for weeks and months. Viewing the episodes back-to-back gave the same feelings of wonder and suspense, but resolved the mysteries reasonably quickly.
Now is a significant time for Lost to resume, not least because we recently lost both Ricardo Montalban and Patrick McGoohan. Some say that Lost is like Fantasy Island. (Whatever you can imagine, can happen. Your fate may depend on whether you choose good or evil.) Others say it's like The Prisoner. (You'll never get away. Everything goes topsy-turvy. You can never tell whose side anyone is on.) The emphasis shifts each season. Sometimes things seem like magic, other times there are malevolent plots afoot.
I say the right way to think of Lost, is as a real-world, present-day version of Zork. (By the way, you can now download all of Zork I, II, and III.) You start with this giant unexplored area, that you map a little at a time. You find puzzles, locked doors and such, that take a long time to get past. The Dharma Initiative is like the Great Underground Empire, a Macguffin that is a convenient excuse whenever the creator wants a certain object or map location to exist. Once you know how to get past the obstacles and get from place to place, later puzzles involve going back and forth on long journeys through well-trodden territory. Landmarks that once were mysterious and intimidating, are now mundane and familiar. And when you try to solve the final riddles, you realize that actions and choices from the past have to go together in specific ways so that everything lines up perfectly in the present.
Here are the riddles I'm still waiting to find the answers to... I'll be peeved if these things don't get resolved by the end of the series! [OK, these might be a little spoiler-worthy if you haven't seen the first season or two.]
1) What is the origin of Hurley's nickname?
2) Who is the "him" who is supposed to be the replacement for the guardian of the hatch? Will anyone ever answer the riddle correctly?
3) How did Inman get to the island?
4) Why does it seem like the Dharma Initiative is still active in the background (think Inman, and the plane drops), when by all rights it should be defunct?
Friday, January 23, 2009
Don't Feed the Time Machine
Most technology issues are very simple. It's all about the grinding noises. If you hear grinding noises because your hard drive is busy all the time, that's bad. SSDs = less grinding noises. Client/server = the grinding noises happen mostly in a server room, not your office. Cloud computing = the server room with all the grinding noises is even farther away, probably near a river with a waterfall to mask the noise even more.
OS X Leopard's Time Machine feature is great... with the exception of the frequent grinding noises. Wake up from a long sleep -- Time Machine does a backup, might as well go for a coffee break. Right around the time you want to check mail, listen to music, work on that critical document -- the hour between backups expires, more grinding noises that slow down the machine and kill your concentration. Something like Time Capsule, doing the backup to a wireless network drive, is really just a way to transfer the grinding noises to another room.
But if you just have a regular computer + hard drive setup with Time Machine, don't despair.
The first way to lessen the noise is to set Time Machine preferences to exclude folders with frequent activity, big files or lots of files, and unimportant data. Open System Preferences and go into the Time Machine pane, or pick "Open Time Machine Preferences" from the icon in the status bar at the top-right part of the screen. This preference pane has a little + icon where you can select folders. Making a selection means that folder, and everything underneath it, is left out of the Time Machine backups.
For example, I leave out my iTunes Music folder because I back up changes there on my own schedule. No point in spending time every hour backing up songs where I fixed a typo in the album name. I'll do a big backup once a month to take care of that. Similarly, I have a central download directory, but what I want to back up are the applications that I actually install, so I'll leave out the download directory with its original .dmg and .zip files. And if you do programming, you might want to exclude certain directories based on your style of work. If you keep everything up-to-date using CVS, you might exclude your source directories and just make sure the CVS repository is included in Time Machine. If you generate all kinds of binary files, PDF documents, or what have you over and over again, stash them all in destination directories that are excluded from Time Machine backups.
Another technique that achieves the same result is to put certain folders on another drive, and refer to them using symbolic links. (Just make sure that external drive is excluded from Time Machine backups, using the preferences pane as above.) In Terminal, you'll use a command like "ln -s /volumes/Other_Drive/Some_Folder /users/Me/Some_Folder". (Like with the 'cp' command, the first argument is the item that already exists, and the second is the new one you're creating.) You'll be able to do all the normal operations with the folder like it existed in your home directory, but Time Machine will know that it's really on the other hard drive, and will include/exclude it based on the preference settings for that drive. For example, I recently used this technique with a big "Podcasts" directory; I freed up the space on my internal drive, and took those files out of the Time Machine backups all in one step.
If after going through these exercises you still hear a lot of grinding every hour, you'll need to track down folders that applications are updating without your knowledge. Those files might not be worth backing up. The command (again, from Terminal) to run is:
That will display a list of files that were updated within the last 60 minutes. On my system, this technique pointed out folders such as ~/Library/Caches, ~/Library/Cookies, and ~/Library/Safari that were being updated constantly based on normal web browsing activity. The information there is the kind of stuff I clear out periodically anyway to keep the browser running fast, and if I had a system crash it wouldn't be high on my list of things to recover, so it's back to Time Machine preferences for a few new items to exclude.
OS X Leopard's Time Machine feature is great... with the exception of the frequent grinding noises. Wake up from a long sleep -- Time Machine does a backup, might as well go for a coffee break. Right around the time you want to check mail, listen to music, work on that critical document -- the hour between backups expires, more grinding noises that slow down the machine and kill your concentration. Something like Time Capsule, doing the backup to a wireless network drive, is really just a way to transfer the grinding noises to another room.
But if you just have a regular computer + hard drive setup with Time Machine, don't despair.
The first way to lessen the noise is to set Time Machine preferences to exclude folders with frequent activity, big files or lots of files, and unimportant data. Open System Preferences and go into the Time Machine pane, or pick "Open Time Machine Preferences" from the icon in the status bar at the top-right part of the screen. This preference pane has a little + icon where you can select folders. Making a selection means that folder, and everything underneath it, is left out of the Time Machine backups.
For example, I leave out my iTunes Music folder because I back up changes there on my own schedule. No point in spending time every hour backing up songs where I fixed a typo in the album name. I'll do a big backup once a month to take care of that. Similarly, I have a central download directory, but what I want to back up are the applications that I actually install, so I'll leave out the download directory with its original .dmg and .zip files. And if you do programming, you might want to exclude certain directories based on your style of work. If you keep everything up-to-date using CVS, you might exclude your source directories and just make sure the CVS repository is included in Time Machine. If you generate all kinds of binary files, PDF documents, or what have you over and over again, stash them all in destination directories that are excluded from Time Machine backups.
Another technique that achieves the same result is to put certain folders on another drive, and refer to them using symbolic links. (Just make sure that external drive is excluded from Time Machine backups, using the preferences pane as above.) In Terminal, you'll use a command like "ln -s /volumes/Other_Drive/Some_Folder /users/Me/Some_Folder". (Like with the 'cp' command, the first argument is the item that already exists, and the second is the new one you're creating.) You'll be able to do all the normal operations with the folder like it existed in your home directory, but Time Machine will know that it's really on the other hard drive, and will include/exclude it based on the preference settings for that drive. For example, I recently used this technique with a big "Podcasts" directory; I freed up the space on my internal drive, and took those files out of the Time Machine backups all in one step.
If after going through these exercises you still hear a lot of grinding every hour, you'll need to track down folders that applications are updating without your knowledge. Those files might not be worth backing up. The command (again, from Terminal) to run is:
find ~ -mmin -60
That will display a list of files that were updated within the last 60 minutes. On my system, this technique pointed out folders such as ~/Library/Caches, ~/Library/Cookies, and ~/Library/Safari that were being updated constantly based on normal web browsing activity. The information there is the kind of stuff I clear out periodically anyway to keep the browser running fast, and if I had a system crash it wouldn't be high on my list of things to recover, so it's back to Time Machine preferences for a few new items to exclude.
Tuesday, January 06, 2009
Looking Ahead to OS X Snow Leopard
Here is a piece looking at what's known about the next release of OS X, 10.6 aka Snow Leopard:
Mac OS X Snow Leopard 10.6 - the story so far | News | TechRadar UK
The focus is largely on performance -- graphics, multi-core, etc. Which raises one question with me. What's up with OS X grinding to a halt whenever there's any I/O?
By which I mean... when copying files from one disk to another, or pictures off a compact flash card, or Time Machine starts doing a backup... everything seems to come to a stop. I might expect that some other I/O-bound process could become twice as slow, or even 5x as slow if there was contention on the same disk for writing things like browser cache files, causing seeking back and forth.
But my perception is that it's worse than that. Browser windows freeze completely until Time Machine is finished. Operations slow to a crawl when I'm pretty sure they're not touching the disk that's being copied to or from. Pictures take forever to come off a compact flash card when nothing else is tying up the processor. You would think it would be an obvious optimization to make Time Machine run at a low priority when the foreground app was doing I/O, or to speed up copies between compact flash cards and Firewire external drives, where the internal drive shouldn't be involved at all. Yet in this one area, I find Windows beating OS X in speed.
I don't know if it's something deep within BSD, like you periodically hear some bugaboo in Linux internals that makes certain operations really slow. I've seen these slowdowns when copying or moving files both from the Finder and the Terminal.
Mac OS X Snow Leopard 10.6 - the story so far | News | TechRadar UK
The focus is largely on performance -- graphics, multi-core, etc. Which raises one question with me. What's up with OS X grinding to a halt whenever there's any I/O?
By which I mean... when copying files from one disk to another, or pictures off a compact flash card, or Time Machine starts doing a backup... everything seems to come to a stop. I might expect that some other I/O-bound process could become twice as slow, or even 5x as slow if there was contention on the same disk for writing things like browser cache files, causing seeking back and forth.
But my perception is that it's worse than that. Browser windows freeze completely until Time Machine is finished. Operations slow to a crawl when I'm pretty sure they're not touching the disk that's being copied to or from. Pictures take forever to come off a compact flash card when nothing else is tying up the processor. You would think it would be an obvious optimization to make Time Machine run at a low priority when the foreground app was doing I/O, or to speed up copies between compact flash cards and Firewire external drives, where the internal drive shouldn't be involved at all. Yet in this one area, I find Windows beating OS X in speed.
I don't know if it's something deep within BSD, like you periodically hear some bugaboo in Linux internals that makes certain operations really slow. I've seen these slowdowns when copying or moving files both from the Finder and the Terminal.
Tuesday, December 09, 2008
Puts the World in Perspective - Canon EF 100mm f/2.8 USM Lens
I've been thinking about writing a little post about macro photography, and I wanted to write a review of the Canon EF 100mm f/28. USM macro lens, so to kill 2 birds with one stone I thought I'd write the review on epinions and link to it from the blog:
Puts the World in Perspective - Canon EF 100mm f/2.8 USM Lens - Epinions.com
Buy the lens from Amazon
Puts the World in Perspective - Canon EF 100mm f/2.8 USM Lens - Epinions.com
Buy the lens from Amazon
Tuesday, December 02, 2008
Link of the Day - Fashion Your Firefox
One of the problems with Firefox is the need to sort through dozens of add-ons to see if they help with the things you like to do. The Fashion Your Firefox page groups together related add-ons to save some time. (Requires Firefox 3.)
Personally, I find that Firefox is the #1 memory hog on my system, so I'm tempted to install several different instances, each with just a few add-ons, and switch between them.
Personally, I find that Firefox is the #1 memory hog on my system, so I'm tempted to install several different instances, each with just a few add-ons, and switch between them.
Saturday, November 29, 2008
Link of the Day: Tag That Image - Visual Bookmarking Sites Worth Browsing - Bits Blog - NYTimes.com
It's good to see community-based tagging evolving to include images too. As a photographer, I enjoy browsing gallery sites with a wide variety of images, to get new ideas and explore new perspectives. The sites mentioned in this blog post (WeHeartIt, Fffffound, and Visualize.us) stream pictures that have been tagged by users, so you can explore by serendipity, or drill down by tag.
Tag That Image: Visual Bookmarking Sites Worth Browsing - Bits Blog - NYTimes.com
There are other sites (like ImgFave) mentioned in the comments too, so they're worth reading.
Tag That Image: Visual Bookmarking Sites Worth Browsing - Bits Blog - NYTimes.com
There are other sites (like ImgFave) mentioned in the comments too, so they're worth reading.
Saturday, November 08, 2008
Loupe the Loupe
One of Photoshop's relatively new tools is the "loupe". This handy previewing tool lets you make judgment calls about one or more photos from the Bridge, without actually opening the pictures in the editor. The loupe technique is faster, and can avoid a lot of hassle with juggling windows and changing zoom levels.
You access the Loupe by clicking on an image in the Preview pane in the Bridge. A rectangular window appears showing a 100% zoom of a small part of the picture. You can drag the window (based on the idea of a jeweller's loupe, a one-eyed magnifying glass) around to examine the most important area of the photo.
One corner of the loupe bulges out, almost like an arrow from a cartoon speech bubble. The arrow points to the spot in the photo that's being magnified, so you can see the scaled-down region and the magnified version at the same time. If the loupe blocks part of the photo you want to see, drag it to the left or right to flip the loupe so the arrow comes out of a different corner.
You can use the magnification to judge whether a photo is worth saving, cropping, or blowing up. For example, you can quickly check whether a wildlife shot has enough detail to be worth cropping and showing at close to original size. You can look at some small detail, like a license plate or sign, to see if it's legible at full size.
Where the loupe really comes in handy is to compare multiple photos. Selecting multiple pictures in the Bridge displays several seriously scaled-down thumbnails in the Preview area. If you took several pictures in quick succession, for example an action sequence where some shots are blurry, or a group photograph where different people have eyes open or closed, picking the ideal one can normally be time-consuming. Put them all up in the Preview pane, open a loupe on each one pointing to the same spot, and quickly decide which ones are too blurry, which ones are too shaded, which one has the best detail for the important region, and so on.
In this example, I put a loupe on 2 photos taken a couple of seconds apart, to see whether the shadows on the face in the first photo are too bad.
You access the Loupe by clicking on an image in the Preview pane in the Bridge. A rectangular window appears showing a 100% zoom of a small part of the picture. You can drag the window (based on the idea of a jeweller's loupe, a one-eyed magnifying glass) around to examine the most important area of the photo.
One corner of the loupe bulges out, almost like an arrow from a cartoon speech bubble. The arrow points to the spot in the photo that's being magnified, so you can see the scaled-down region and the magnified version at the same time. If the loupe blocks part of the photo you want to see, drag it to the left or right to flip the loupe so the arrow comes out of a different corner.
You can use the magnification to judge whether a photo is worth saving, cropping, or blowing up. For example, you can quickly check whether a wildlife shot has enough detail to be worth cropping and showing at close to original size. You can look at some small detail, like a license plate or sign, to see if it's legible at full size.
Where the loupe really comes in handy is to compare multiple photos. Selecting multiple pictures in the Bridge displays several seriously scaled-down thumbnails in the Preview area. If you took several pictures in quick succession, for example an action sequence where some shots are blurry, or a group photograph where different people have eyes open or closed, picking the ideal one can normally be time-consuming. Put them all up in the Preview pane, open a loupe on each one pointing to the same spot, and quickly decide which ones are too blurry, which ones are too shaded, which one has the best detail for the important region, and so on.
In this example, I put a loupe on 2 photos taken a couple of seconds apart, to see whether the shadows on the face in the first photo are too bad.
A Contrarian View on Color Calibration
Although people say that serious attention to color issues is the mark of a serious photographer, I think these days the "return on investment" isn't great enough to spend a lot of time and energy on it.
The basic issue: screens emit light, printed photos reflect light, so color and brightness that you see on the screen may turn out different in a print. Also, different computer screens (even different operating systems) vary in their display properties, so colors might not be consistent from one machine to another.
For example, when I print a photo at a local location, it will typically turn out a little darker and a little less saturated than it looks on my screen. When my photos (edited on OS X) get projected on a Windows PC at a photo club competition, I know the color balance and brightness will be a little different. And even if I just transfer photos from the iMac to the Powerbook to do a slideshow, the max brightness on the Powerbook still seems dingy by comparison. (Curse this bright iMac screen! ;-)
Old-school photographers often advise a complicated procedure to calibrate your monitor so that it's "accurate" -- the idea being that you'll edit the color balance, saturation, brightness, and so on so that it looks right on the screen, and will reproduce accurately when printed. That's the theory, anyway.
However, there are so many variables to consider that you can drive yourself crazy -- what "color space" is the photo using in Photoshop, what kind of printer are you printing on, what are all the other print settings in Photoshop, how long has it been since you calibrated your monitor because monitors "drift" over time!
And then you transfer the pictures to a computer that wasn't calibrated, or was calibrated differently, or you print on a different printer or type of paper, and once again you don't like the way it looks.
My advice? Follow only the simplest procedures that give the most bang for the buck:
The basic issue: screens emit light, printed photos reflect light, so color and brightness that you see on the screen may turn out different in a print. Also, different computer screens (even different operating systems) vary in their display properties, so colors might not be consistent from one machine to another.
For example, when I print a photo at a local location, it will typically turn out a little darker and a little less saturated than it looks on my screen. When my photos (edited on OS X) get projected on a Windows PC at a photo club competition, I know the color balance and brightness will be a little different. And even if I just transfer photos from the iMac to the Powerbook to do a slideshow, the max brightness on the Powerbook still seems dingy by comparison. (Curse this bright iMac screen! ;-)
Old-school photographers often advise a complicated procedure to calibrate your monitor so that it's "accurate" -- the idea being that you'll edit the color balance, saturation, brightness, and so on so that it looks right on the screen, and will reproduce accurately when printed. That's the theory, anyway.
However, there are so many variables to consider that you can drive yourself crazy -- what "color space" is the photo using in Photoshop, what kind of printer are you printing on, what are all the other print settings in Photoshop, how long has it been since you calibrated your monitor because monitors "drift" over time!
And then you transfer the pictures to a computer that wasn't calibrated, or was calibrated differently, or you print on a different printer or type of paper, and once again you don't like the way it looks.
My advice? Follow only the simplest procedures that give the most bang for the buck:
- Do a one-time calibration with the simplest, cheapest method. Perhaps borrow a ColorVision Spyder and choose the automated mode where the device rests against the monitor for a few minutes and you don't have to do anything. Or on OS X, use System Preferences -> Displays -> Color -> Calibrate.
- Change your display's "Gamma" setting if your images are consistently too dark or too light when printed or on another computer. On OS X, you might find that your images are too dark when displayed on a PC or printed. In the System Preferences ... Calibrate procedure mentioned above, you can set up an alternative profile with a different (darker) gamma value, and switch to it at the drop of a hat. That darker monitor setting will "fool" you into brightening your pictures more than you normally would, which will give better results in print or on Windows PCs.
- If you can get a printer profile for your exact printer or your favorite online service, why not. For example, the Dry Creek Photo site has color profiles for many photo labs across the country, including every Costco. You can select the printer profile when printing in Photoshop. (Select Print -> Color Management -> Photoshop Manages Colors to enable the Printer Profile list.)
- When you think you have something close, run a bunch of test prints with variations of overall saturation, brightness, etc. Include a caption on each print to say which is which! These days, you can get 8x10s for only a few dollars each. Figure out how much your time is worth to sidestep hours of fiddling with printer settings.
- If you find you need to boost brightness by 10%, lower red saturation by 5%, etc. for every picture to get it to display properly on Uncle Bob's laptop or print on your local photo lab's professional printer, set up a Photoshop action, save a set of layers, or find some other way to apply that action to a whole set of photos at once. (Leaving the originals unchanged.) You might display photos in so many different contexts, no one color setting will work perfectly for them all.
Saturday, October 04, 2008
How to do Browser-Based Presentations
If PowerPoint or Keynote aren't lively enough for your presentations, why not run a live demo from a browser instead? You can drive home that what you're talking about actually exists, you can pull in information from other sources rather than showing a single screenshot or brief excerpt.
A couple of things to keep in mind when you go this route...
In most browsers, it's easy to boost the font size as needed to make the presentation visible. You know how people doing projected presentations always make lame jokes about "reading the eye chart" because they put too much small-font text on their slides? With a browser, you can bump up the font size if this happens. Firefox or Safari: Ctrl-+ for Windows, Cmd-+ for OS X. (Although this is how those keyboard shortcuts are billed, you don't need the Shift key, so it ends up really being Ctrl/Cmd-=.)
I see live demos that bog down because the presenter spends a lot of time getting back to their original page, switching between tabs, looking for the right tab, or waiting for pages to load. Here are some tips for keeping the demo going at a reasonable pace:
When you're whipping up the text of your presentation, the key point is to get it out fast. Presentation software is good for flowing text into templates with headings, paragraphs, and list bullets. To get the same kind of efficiency for text you'll slap on a web page, you can use Markdown, a text-to-HTML converter that lets you write in wiki-like style (start a line with a * to make it a bullet point, and so on).
A couple of things to keep in mind when you go this route...
In most browsers, it's easy to boost the font size as needed to make the presentation visible. You know how people doing projected presentations always make lame jokes about "reading the eye chart" because they put too much small-font text on their slides? With a browser, you can bump up the font size if this happens. Firefox or Safari: Ctrl-+ for Windows, Cmd-+ for OS X. (Although this is how those keyboard shortcuts are billed, you don't need the Shift key, so it ends up really being Ctrl/Cmd-=.)
I see live demos that bog down because the presenter spends a lot of time getting back to their original page, switching between tabs, looking for the right tab, or waiting for pages to load. Here are some tips for keeping the demo going at a reasonable pace:
Whatever is the main page of your demo/presentation, set up as many ways as you can to get back there quickly. Make it your home page, just until the presentation is over. Make it a "quick link" on the browser bookmark bar.
Browsers that can do tabs typically have a preference that doesn't have much use in day-to-day browsing. Firefox: When I open a link in a new tab, switch to it immediately. Safari: Select tabs and windows as they are created. Turn this setting on during the presentation. Every time you want to show what's behind another link, open the link in a new tab, which will immediately appear. (Windows: Ctrl-click. OS X: Cmd-click.) When finished with that page, close the tab and you'll instantly be back at your start page. (Windows: Ctrl-W. OS X: Cmd-W.)
When you're 10-20 seconds from the end of your spiel on one page, close it and open the next link. Wrap up that discussion, with the audience focus on your voice rather than the screen image, while the next page loads.
When you're whipping up the text of your presentation, the key point is to get it out fast. Presentation software is good for flowing text into templates with headings, paragraphs, and list bullets. To get the same kind of efficiency for text you'll slap on a web page, you can use Markdown, a text-to-HTML converter that lets you write in wiki-like style (start a line with a * to make it a bullet point, and so on).
Friday, October 03, 2008
OS X Tip: Storing Screencaptures in a Different Folder
You may be familiar with the keyboard shortcuts Cmd-Shift-3 and Cmd-Shift-4 to do screen captures in OS X. The "3" shortcut takes a picture of the whole screen. The "4" shortcut lets you drag an area to capture. By default, the screen captures are stored in your Desktop folder. Adding the Ctrl key to the key sequence puts the result on the clipboard.
But what if you want to store the pictures somewhere else?
With the Mac's eye-catching GUI, it's easy to forget there's a real UNIX system under the hood. You can invoke the screen capture feature from the Terminal command line with the screencapture command:
There are other options you can use, like -c to send output to the clipboard, or -t to set the output filetype. (I've got my system set to save JPGs by default, so I didn't use -t jpg in the examples above.)
In the UNIX shell, you could use the alias command to run screencapture with a preselected set of options. But that still forces you to specify the full path to the file on the command line, or switch to the directory where you want the file stored.
A more convenient technique is to use shell functions, which let you pass parameters. For example, here I create 2 commands I can use to take screen captures. blogsnap foo puts the output in foo.jpg in a predefined folder. clipsnap sends the output straight to the clipboard. mailsnap sends the output straight into a new mail message.
You can paste the commands below straight into a terminal window to define those commands temporarily, or put them into the shell initialization file (depending on the shell, typically .profile, .bashrc, or .kshrc) so that they're available in each new Terminal window.
But what if you want to store the pictures somewhere else?
With the Mac's eye-catching GUI, it's easy to forget there's a real UNIX system under the hood. You can invoke the screen capture feature from the Terminal command line with the screencapture command:
screencapture ~/pic_in_home_directory.jpg # Waits a few seconds, then captures full screen
screencapture -iW /tmp/pic_in_some_other_directory.jpg # -i = use mouse to select; -W = capture full window
There are other options you can use, like -c to send output to the clipboard, or -t to set the output filetype. (I've got my system set to save JPGs by default, so I didn't use -t jpg in the examples above.)
In the UNIX shell, you could use the alias command to run screencapture with a preselected set of options. But that still forces you to specify the full path to the file on the command line, or switch to the directory where you want the file stored.
A more convenient technique is to use shell functions, which let you pass parameters. For example, here I create 2 commands I can use to take screen captures. blogsnap foo puts the output in foo.jpg in a predefined folder. clipsnap sends the output straight to the clipboard. mailsnap sends the output straight into a new mail message.
blogsnap() {
screencapture -iW ~/documents/Blogs/Screencaps/$1.jpg
}
clipsnap() {
screencapture -icW
}
mailsnap() {
screencapture -iWM /tmp/$$.jpg
}
You can paste the commands below straight into a terminal window to define those commands temporarily, or put them into the shell initialization file (depending on the shell, typically .profile, .bashrc, or .kshrc) so that they're available in each new Terminal window.
Tuesday, September 02, 2008
US Open: Federer at the Halfway Point
Well, after tonight's 5-set victory over Andreev, Federer is actually past the halfway point, but everything still applies!
The last few Grand Slam tournaments, you can sort of see Federer's preparation for the later rounds (especially an anticipated match against Nadal). For example, at the French Open, he was leaving a bigger margin for error around the court, not aiming quite so close to the lines. That was working well, cutting down on unforced errors, but he seemed to forget that strategy in the final.
Now in the US Open, different tactics but same theme. Against Alves, a right-hander, Federer was hitting tons of slice serves breaking wide in the deuce court. Why do that against a right-hander? It may still prompt a weak return that can be volleyed or angled away for a winner. But I think it's really practice for Nadal. The same play came up now and then against Andreev.
Another tactic that proved counterproductive against Andreev was to consistently approach and then volley over to the deuce side, Andreev's forehand, his best shot. Roger lost a number of points to passing shots where clearly the higher percentage play was to go to the backhand. I think he's been focusing so much on Nadal that those attacks, to a left-hander's backhand, are stuck in his head against other opponents.
I was pleased to see Federer hustling around the court and banging flat backhands against Stepanek. That's the style that will intimidate even the toughest opponents. Just have to remember to keep doing it in the last couple of rounds. I hope Muller in the quarterfinals will be an easier match, the better to recover from 5 sets in the round of 16.
The last few Grand Slam tournaments, you can sort of see Federer's preparation for the later rounds (especially an anticipated match against Nadal). For example, at the French Open, he was leaving a bigger margin for error around the court, not aiming quite so close to the lines. That was working well, cutting down on unforced errors, but he seemed to forget that strategy in the final.
Now in the US Open, different tactics but same theme. Against Alves, a right-hander, Federer was hitting tons of slice serves breaking wide in the deuce court. Why do that against a right-hander? It may still prompt a weak return that can be volleyed or angled away for a winner. But I think it's really practice for Nadal. The same play came up now and then against Andreev.
Another tactic that proved counterproductive against Andreev was to consistently approach and then volley over to the deuce side, Andreev's forehand, his best shot. Roger lost a number of points to passing shots where clearly the higher percentage play was to go to the backhand. I think he's been focusing so much on Nadal that those attacks, to a left-hander's backhand, are stuck in his head against other opponents.
I was pleased to see Federer hustling around the court and banging flat backhands against Stepanek. That's the style that will intimidate even the toughest opponents. Just have to remember to keep doing it in the last couple of rounds. I hope Muller in the quarterfinals will be an easier match, the better to recover from 5 sets in the round of 16.
Saturday, August 16, 2008
John's Olympic Experience (first week)
With the first week almost over, I thought I'd offer my personal perspective so far.
Television coverage has been inexplicably bad, as noted by The Chronicle.
Now, I happen to like beach volleyball. It's a sport I'm pretty good at, from experience with tennis and regular volleyball. I have this fantasy of wangling my way onto the Latvian team by way of my paternal grandmother. So I don't mind that coverage. But I do agree that other sports like table tennis, and non-US athletes, have gotten the least coverage ever.
The announcing I also don't mind so much. The schmaltz factor seems to be toned down since Athens. If you like to quantify such things, here's Slate magazine's "Sap-O-Meter":
But I can't let the piss-poor tennis coverage pass. We scanned the TV listings and Tivo'ed sometimes 8-12 hours per day, any block on any channel that mentioned "tennis" in its program summary. We didn't get any tennis the first 3 days, and after that only a few points here and there, no charts showing the draws or results, hardly even any match highlights. It was over a day between the time we heard that James Blake lost in the semifinals, to the point we heard who he had lost to, i.e. the other player besides Nadal who would be in the gold-medal match. Couldn't find the men's semifinals anywhere.
On other occasions when big tennis events are covered on more than one channel simultaneously, we've always been able to pick up the pattern after the first day. One channel has highlights, another jumps around while matches are on live, a certain time slot has the best match of the day, any remaining American will get a night match, and so on. This time, not a glimmer of any pattern. And online updates are a Catch-22. Because we're a day or so behind with the watching, it's no good reading the tennis news or going to the Olympic site for the draw, that would just give away matches that we forlornly imagine might be in some block we haven't seen yet.
The most interesting tennis story for me from the Olympics is Roger Federer. I'm concerned by his lack of confidence lately, and I didn't think he played very well in the Wimbledon final, despite all the "best match of all time" blather. His loss to Blake demonstrated that he didn't read my blog post about things to learn from Nadal. He didn't change up the speed when the rallies got hard and flat as Blake prefers. When he ran around his backhand, his forehands were either predictable inside-out ones, or he missed the occasional down-the-line attempt or didn't put anything on it.
Winning the doubles gold may help Federer get back on track. In doubles, you have to keep things positive with your partner all the time. Instead of hanging your head after you (or your partner) make a bad shot, you have to cultivate short-term memory loss. If the opponents win a point with a good play, you can still give your partner a fist bump or low five to acknowledge that you're following the right strategy. Serving in doubles involves changing positions, going for extra angle, and getting a high percentage of first serves -- all things that have gone wrong for a game or two during each of Federer's recent losses. The net play forces you to hit volleys in crunch situations, unlike the Wimbledon final where Roger had too many desperation volleys in the fifth set, and even ceded the net to Rafa over the last couple of games. And doing it for Queen and Country, and mentoring a less-experienced player through a bunch of tough matches, may help Roger in singles when he needs to visualize the positives of getting through a close match, not just the negatives like "shouldn't lose to this guy", "there goes the #1 ranking", "Rafa made a comeback, maybe this guy will too", and so on.
Television coverage has been inexplicably bad, as noted by The Chronicle.
Now, I happen to like beach volleyball. It's a sport I'm pretty good at, from experience with tennis and regular volleyball. I have this fantasy of wangling my way onto the Latvian team by way of my paternal grandmother. So I don't mind that coverage. But I do agree that other sports like table tennis, and non-US athletes, have gotten the least coverage ever.
The announcing I also don't mind so much. The schmaltz factor seems to be toned down since Athens. If you like to quantify such things, here's Slate magazine's "Sap-O-Meter":
But I can't let the piss-poor tennis coverage pass. We scanned the TV listings and Tivo'ed sometimes 8-12 hours per day, any block on any channel that mentioned "tennis" in its program summary. We didn't get any tennis the first 3 days, and after that only a few points here and there, no charts showing the draws or results, hardly even any match highlights. It was over a day between the time we heard that James Blake lost in the semifinals, to the point we heard who he had lost to, i.e. the other player besides Nadal who would be in the gold-medal match. Couldn't find the men's semifinals anywhere.
On other occasions when big tennis events are covered on more than one channel simultaneously, we've always been able to pick up the pattern after the first day. One channel has highlights, another jumps around while matches are on live, a certain time slot has the best match of the day, any remaining American will get a night match, and so on. This time, not a glimmer of any pattern. And online updates are a Catch-22. Because we're a day or so behind with the watching, it's no good reading the tennis news or going to the Olympic site for the draw, that would just give away matches that we forlornly imagine might be in some block we haven't seen yet.
The most interesting tennis story for me from the Olympics is Roger Federer. I'm concerned by his lack of confidence lately, and I didn't think he played very well in the Wimbledon final, despite all the "best match of all time" blather. His loss to Blake demonstrated that he didn't read my blog post about things to learn from Nadal. He didn't change up the speed when the rallies got hard and flat as Blake prefers. When he ran around his backhand, his forehands were either predictable inside-out ones, or he missed the occasional down-the-line attempt or didn't put anything on it.
Winning the doubles gold may help Federer get back on track. In doubles, you have to keep things positive with your partner all the time. Instead of hanging your head after you (or your partner) make a bad shot, you have to cultivate short-term memory loss. If the opponents win a point with a good play, you can still give your partner a fist bump or low five to acknowledge that you're following the right strategy. Serving in doubles involves changing positions, going for extra angle, and getting a high percentage of first serves -- all things that have gone wrong for a game or two during each of Federer's recent losses. The net play forces you to hit volleys in crunch situations, unlike the Wimbledon final where Roger had too many desperation volleys in the fifth set, and even ceded the net to Rafa over the last couple of games. And doing it for Queen and Country, and mentoring a less-experienced player through a bunch of tough matches, may help Roger in singles when he needs to visualize the positives of getting through a close match, not just the negatives like "shouldn't lose to this guy", "there goes the #1 ranking", "Rafa made a comeback, maybe this guy will too", and so on.
Saturday, August 09, 2008
Inside Outside, Metadata
Every time I hear the word "metadata", I cringe a little bit. It's one of these simple intuitive notions that everyone has experience with, but in the tech world it's loaded up with so much jargon that it gets lost in the clouds.
With iTunes, you might be familiar with metadata as the editable Song, Artist, Album, etc. fields on the Info panel when you do File -> Get Info. This is information about each song that's stored inside the song file.
There's also metadata that's outside the file itself, like what directory it's in or even the filename. You can move the file around and rename it, and it's still the same song. It just might be harder to find unless you name it and file it in a logical way.
When you import songs into iTunes, this "inside/outside" distinction can be important if the songs come from a source other than songs ripped from a CD by iTunes. For example, maybe the songs have names like "01 - Great Song.mp3" in a folder "My Favorite Band/Their Best Album". You drag a bunch of songs like that into iTunes, only to discover that the fields in the "Get Info" panel are all blank, and now the song is filed in your iTunes Music folder under "Unknown Artist/Unknown Album".
How do you avoid that happening? The key is to make sure that all the information -- the metadata -- that you know about each song gets stored inside the song file before you let iTunes start messing around with the file names and locations.
You have some options, depending on how you're importing...
Let's say you are ripping a CD out in the woods or in a plane, someplace with no Internet access so iTunes can't automatically retrieve the track info. If it's a well-known CD, you can probably retrieve the track info later, so no worries. But if it's an indie release, an import, or just something obscure, you might be forever left with some files named "Track 20" and so on and nothing else to go by.
When you're ripping or importing a bunch of songs all from the same artist, import them into a playlist named for the artist and album. That way, even if no other information is available, you can go back to that playlist, select all the songs, and in the "Get Info" dialog, fill in the same artist, album, genre, year, "Disc n of n", and so on for all the songs at once. If you're importing several albums by the same artist, you can make a separate playlist for each one. Perhaps make an iTunes folder named for the artist, then separate playlists underneath named for each album.
Let's say you're importing songs that weren't created by iTunes, say a fanboy collection of bootlegs that are arranged in some special hierarchy, like one folder named "1972" with a bunch of concerts from the same tour, then another one "1975" and so on. You want to preserve the information from this hierarchy so you can fill in the year etc. if those fields aren't filled in in the "Get Info" panel.
This situation calls for a more elaborate process. Make sure that the setting under Preferences -> Advanced -> General, "Copy files to iTunes Music folder when adding to library" is turned off. Then you can drag the files into iTunes and the Get Info -> Summary panel will still show you the full folder path of the file. You can examine the files to see which info fields are filled in, which ones you need to fill in yourself, and you can refer to the Summary panel if the track number, year, album, etc. aren't available in the title of the song.
When you're done with this initial step, remove the files from your iTunes library -- select the songs and hit Delete within the main Music part of the library, or Alt-Delete within a playlist. Because the songs aren't actually underneath the iTunes Music folder, iTunes won't ask about moving the original files to the trash. They'll stay exactly where they are, just now with some extra metadata inside the actual files.
Now you can go back to Preferences and turn the "Copy files..." setting back on. Import the files again, and now they'll go into the iTunes Music folder under the familiar "Artist/Album" folder path. Because you've already filled in these info fields for all the songs, you don't have to worry about them ending up under "Unknown Artist/Unknown Album".
In this example, we see some files that I really did rip way out in the wilderness with no Internet access. Learn from my mistake! First, we see the completely unhelpful song names, with no artist or album filled in. Because I just imported them into my main music library, instead of dragging into a descriptively named playlist, there's no clue I can use to go back and fill in the info. The Get Info -> Summary panel is no help, it shows me they're filed under "Unknown Artist/Unknown Album". I tried using the menu item Advanced -> Get CD Track names, but the CD was too obscure , it isn't listed in the Internet CD Database. If I had imported existing MP3s from a folder named after some combination of band, album, year, etc., I could avoid the "Unknown Artist/Unknown Album" mystery by unchecking the "Copy files..." option in Preferences -> Advanced -> General, at least until I had filled in all the other fields. Then I could turn on that option, remove the files from the library, and re-import them to file them in a central, easy to find location.

When you import songs that have all the info encoded into the filename, such as "1. 1991 - One-Hit Wonder - Flash in the Pan - Only Album.mp3", it doesn't have to be tedious to retype all these items in the Get Info fields. For users of iTunes on the Mac, there's an Applescript called TrackParser that can pull out these extra pieces of information from the song name, fill them into the appropriate fields, and strip them out of the song name field.
In this example, we start with a song that has all the info packed into the song name. After running the TrackParser script, we construct a pattern using placeholders for the important parts, and matching the punctuation and spacing of the remainder of the song name. First, we click the "Test Run" button to see whether the pattern will pull out the right pieces of information and put them in the right fields; we keep clicking OK until we're satisfied that the pattern is accurate, then click Cancel to end the test run. We go through the same steps again, and the same pattern is still filled in. Clicking Run this time makes the script really fill in the other fields and trim the extra info out of the song name. In the end, the Get Info panel reflects the right song information.
With iTunes, you might be familiar with metadata as the editable Song, Artist, Album, etc. fields on the Info panel when you do File -> Get Info. This is information about each song that's stored inside the song file.
There's also metadata that's outside the file itself, like what directory it's in or even the filename. You can move the file around and rename it, and it's still the same song. It just might be harder to find unless you name it and file it in a logical way.
When you import songs into iTunes, this "inside/outside" distinction can be important if the songs come from a source other than songs ripped from a CD by iTunes. For example, maybe the songs have names like "01 - Great Song.mp3" in a folder "My Favorite Band/Their Best Album". You drag a bunch of songs like that into iTunes, only to discover that the fields in the "Get Info" panel are all blank, and now the song is filed in your iTunes Music folder under "Unknown Artist/Unknown Album".
How do you avoid that happening? The key is to make sure that all the information -- the metadata -- that you know about each song gets stored inside the song file before you let iTunes start messing around with the file names and locations.
You have some options, depending on how you're importing...
Let's say you are ripping a CD out in the woods or in a plane, someplace with no Internet access so iTunes can't automatically retrieve the track info. If it's a well-known CD, you can probably retrieve the track info later, so no worries. But if it's an indie release, an import, or just something obscure, you might be forever left with some files named "Track 20" and so on and nothing else to go by.
When you're ripping or importing a bunch of songs all from the same artist, import them into a playlist named for the artist and album. That way, even if no other information is available, you can go back to that playlist, select all the songs, and in the "Get Info" dialog, fill in the same artist, album, genre, year, "Disc n of n", and so on for all the songs at once. If you're importing several albums by the same artist, you can make a separate playlist for each one. Perhaps make an iTunes folder named for the artist, then separate playlists underneath named for each album.
Let's say you're importing songs that weren't created by iTunes, say a fanboy collection of bootlegs that are arranged in some special hierarchy, like one folder named "1972" with a bunch of concerts from the same tour, then another one "1975" and so on. You want to preserve the information from this hierarchy so you can fill in the year etc. if those fields aren't filled in in the "Get Info" panel.
This situation calls for a more elaborate process. Make sure that the setting under Preferences -> Advanced -> General, "Copy files to iTunes Music folder when adding to library" is turned off. Then you can drag the files into iTunes and the Get Info -> Summary panel will still show you the full folder path of the file. You can examine the files to see which info fields are filled in, which ones you need to fill in yourself, and you can refer to the Summary panel if the track number, year, album, etc. aren't available in the title of the song.
When you're done with this initial step, remove the files from your iTunes library -- select the songs and hit Delete within the main Music part of the library, or Alt-Delete within a playlist. Because the songs aren't actually underneath the iTunes Music folder, iTunes won't ask about moving the original files to the trash. They'll stay exactly where they are, just now with some extra metadata inside the actual files.
Now you can go back to Preferences and turn the "Copy files..." setting back on. Import the files again, and now they'll go into the iTunes Music folder under the familiar "Artist/Album" folder path. Because you've already filled in these info fields for all the songs, you don't have to worry about them ending up under "Unknown Artist/Unknown Album".
In this example, we see some files that I really did rip way out in the wilderness with no Internet access. Learn from my mistake! First, we see the completely unhelpful song names, with no artist or album filled in. Because I just imported them into my main music library, instead of dragging into a descriptively named playlist, there's no clue I can use to go back and fill in the info. The Get Info -> Summary panel is no help, it shows me they're filed under "Unknown Artist/Unknown Album". I tried using the menu item Advanced -> Get CD Track names, but the CD was too obscure , it isn't listed in the Internet CD Database. If I had imported existing MP3s from a folder named after some combination of band, album, year, etc., I could avoid the "Unknown Artist/Unknown Album" mystery by unchecking the "Copy files..." option in Preferences -> Advanced -> General, at least until I had filled in all the other fields. Then I could turn on that option, remove the files from the library, and re-import them to file them in a central, easy to find location.

When you import songs that have all the info encoded into the filename, such as "1. 1991 - One-Hit Wonder - Flash in the Pan - Only Album.mp3", it doesn't have to be tedious to retype all these items in the Get Info fields. For users of iTunes on the Mac, there's an Applescript called TrackParser that can pull out these extra pieces of information from the song name, fill them into the appropriate fields, and strip them out of the song name field.
In this example, we start with a song that has all the info packed into the song name. After running the TrackParser script, we construct a pattern using placeholders for the important parts, and matching the punctuation and spacing of the remainder of the song name. First, we click the "Test Run" button to see whether the pattern will pull out the right pieces of information and put them in the right fields; we keep clicking OK until we're satisfied that the pattern is accurate, then click Cancel to end the test run. We go through the same steps again, and the same pattern is still filled in. Clicking Run this time makes the script really fill in the other fields and trim the extra info out of the song name. In the end, the Get Info panel reflects the right song information.
Sunday, August 03, 2008
Tennis - What Can a Right-Hander Learn from Nadal?
Chatting with my opponent during a match, we remarked that (as right-handers) we couldn't take a whole lot from Nadal's serving or positioning strategy. And as people with normal shoulders, we couldn't figure out how he does that heavy topspin forehand motion.
But, even so, there are some things that a right-hander can take away from the Nadal game.
Nadal's opponents usually know his game plan in advance. He has his favorite shots, and attributes like fitness and concentration, that he just figures are better than the opponent's. So it doesn't matter if the other guy is ready for what's coming, Rafa will stick to the plan knowing that he has an excellent chance if the match is played on his terms. You can do the same, whether your strength is the volley, consistency, angles, speed, and so on.
Clay-court positioning is way back behind the baseline. Why is this so effective? Just try hitting some balls from that position, next time you're picking up near the fence after a drill. You can fire line drives as hard as you like, with little worry that they'll go out. So next time your opponent hits something deep and/or high, retreat a few steps, bang an offensive shot someplace they don't expect, then move in and take control of the baseline again.
Ever notice how every left-hander has a heavy spin serve in the ad court that goes to your backhand? That's perfect for the left-hander because (a) the backhand tends to be the weak side, and (b) the ad court is where you serve most game-winning or game-saving points. A right-hander would be serving those sliders and kickers in the deuce court. Well, why not work on that serve anyway? Even though it's directed to most opponents' forehands, it can still push them way off the court and set you up for an easy putaway on the next shot.
Rafa has more options than most players when he runs around his backhand. In addition to the inside-out forehand (most players' favorite choice from that position), he'll often hit a heavy topspin forehand down the line, with plenty of margin for error. Not intended to be an outright winner, just to surprise the opponent, pull them out of their normal position, and prompt a weak response that makes the next shot much easier to put away. I find this shot is so rare for right-handers, they usually pull it into the alley when they attempt it. Practice this shot -- down-the-line forehands from your backhand corner -- with a little extra height and well inside the sideline. You'll mess up opponents who expect every forehand from that spot to be inside-out, and you're pretty much guaranteed that your next shot will be a forehand too.
While you may not be a natural right-hander who plays tennis left-handed, like Nadal, you can take advantage of your off-arm even if you don't have a powerful two-handed backhand. When cradling the racquet in the ready position between points, support it entirely by the left hand on the throat. The racquet is only a few ounces, and you only need a few seconds before the next point starts, but by the third set of a long match, the energy savings can really add up to keep your racquet arm fresh.
Rafa's Wimbledon win demonstrated some new shots, particularly the one-handed slice backhand. Take note! Even a player renowned for his speed is willing to slow down the pace when he's out of position or the ball is too low and hard to hit an aggressive shot. You can stay in lots of points with a deep slice, a defensive looper, or an off-speed ball. Just stay ready to go back on offense once this tactic disrupts your opponent's rhythm or wears out their patience.
But, even so, there are some things that a right-hander can take away from the Nadal game.
Nadal's opponents usually know his game plan in advance. He has his favorite shots, and attributes like fitness and concentration, that he just figures are better than the opponent's. So it doesn't matter if the other guy is ready for what's coming, Rafa will stick to the plan knowing that he has an excellent chance if the match is played on his terms. You can do the same, whether your strength is the volley, consistency, angles, speed, and so on.
Clay-court positioning is way back behind the baseline. Why is this so effective? Just try hitting some balls from that position, next time you're picking up near the fence after a drill. You can fire line drives as hard as you like, with little worry that they'll go out. So next time your opponent hits something deep and/or high, retreat a few steps, bang an offensive shot someplace they don't expect, then move in and take control of the baseline again.
Ever notice how every left-hander has a heavy spin serve in the ad court that goes to your backhand? That's perfect for the left-hander because (a) the backhand tends to be the weak side, and (b) the ad court is where you serve most game-winning or game-saving points. A right-hander would be serving those sliders and kickers in the deuce court. Well, why not work on that serve anyway? Even though it's directed to most opponents' forehands, it can still push them way off the court and set you up for an easy putaway on the next shot.
Rafa has more options than most players when he runs around his backhand. In addition to the inside-out forehand (most players' favorite choice from that position), he'll often hit a heavy topspin forehand down the line, with plenty of margin for error. Not intended to be an outright winner, just to surprise the opponent, pull them out of their normal position, and prompt a weak response that makes the next shot much easier to put away. I find this shot is so rare for right-handers, they usually pull it into the alley when they attempt it. Practice this shot -- down-the-line forehands from your backhand corner -- with a little extra height and well inside the sideline. You'll mess up opponents who expect every forehand from that spot to be inside-out, and you're pretty much guaranteed that your next shot will be a forehand too.
While you may not be a natural right-hander who plays tennis left-handed, like Nadal, you can take advantage of your off-arm even if you don't have a powerful two-handed backhand. When cradling the racquet in the ready position between points, support it entirely by the left hand on the throat. The racquet is only a few ounces, and you only need a few seconds before the next point starts, but by the third set of a long match, the energy savings can really add up to keep your racquet arm fresh.
Rafa's Wimbledon win demonstrated some new shots, particularly the one-handed slice backhand. Take note! Even a player renowned for his speed is willing to slow down the pace when he's out of position or the ball is too low and hard to hit an aggressive shot. You can stay in lots of points with a deep slice, a defensive looper, or an off-speed ball. Just stay ready to go back on offense once this tactic disrupts your opponent's rhythm or wears out their patience.
Tuesday, July 29, 2008
New Feature in Google Maps: Walking Directions
This is one of those features that everyone has daydreamed about when getting short-distance directions in Google Maps. You get some convoluted route with loops and hairpin turns based on one-way streets and divided roads, when all you really wanted was to walk from your hotel to a restaurant a couple of blocks away. Now you can, with walking directions in Google Maps.
Tuesday, April 29, 2008
Life without iPod
When I spilled some water on my desk, I thought I had whisked the iPod to safety in time, but the next day I noticed telltale droplets on the bottom surface and it wouldn't turn on or charge.
I Googled various combinations of "ipod water damage", and the gist of the suggestions was to keep the iPod turned off while letting it dry (under gentle sun where possible) for up to a week. I had already made some attempts to turn it on, which may have sealed its doom. I haven't been able to get a peep out of it after several days. All the advice seemed to be for a disk-based model, and I have a flash-based Nano; don't know if the all-memory models are more susceptible to damage this way.
This poses an interesting conundrum for the commute by car. I have a 6-disc CD changer, but it only reads music CDs not MP3 CDs. The compromise I've settled on is:
- 3 CDs worth of music.
- 3 CDs worth of podcasts. (I'm working my way through the early CS courses of UC Berkeley, just to see what it is that makes Silicon Valley companies so snooty when they ask where you went to school.)
- Music CDs burned at random from one of my favorite playlists, suitable for driving.
- Music CDs not labelled at all, so I can swap 3 in randomly from a bigger selection, and have no idea what will come up.
- Podcasts carefully labelled (title and episode number), so I can fill up slots 4, 5, and 6 and keep track when wrapping around. E.g. sometimes I put the next 2 episodes in CD slots 4 and 5, before I've listened to the earlier episode that's still in slot 6.
The downside of podcasts on music CDs is that one episode takes a whole CD, assuming it's reasonably long, regardless of the bit rate / sound quality.
I Googled various combinations of "ipod water damage", and the gist of the suggestions was to keep the iPod turned off while letting it dry (under gentle sun where possible) for up to a week. I had already made some attempts to turn it on, which may have sealed its doom. I haven't been able to get a peep out of it after several days. All the advice seemed to be for a disk-based model, and I have a flash-based Nano; don't know if the all-memory models are more susceptible to damage this way.
This poses an interesting conundrum for the commute by car. I have a 6-disc CD changer, but it only reads music CDs not MP3 CDs. The compromise I've settled on is:
- 3 CDs worth of music.
- 3 CDs worth of podcasts. (I'm working my way through the early CS courses of UC Berkeley, just to see what it is that makes Silicon Valley companies so snooty when they ask where you went to school.)
- Music CDs burned at random from one of my favorite playlists, suitable for driving.
- Music CDs not labelled at all, so I can swap 3 in randomly from a bigger selection, and have no idea what will come up.
- Podcasts carefully labelled (title and episode number), so I can fill up slots 4, 5, and 6 and keep track when wrapping around. E.g. sometimes I put the next 2 episodes in CD slots 4 and 5, before I've listened to the earlier episode that's still in slot 6.
The downside of podcasts on music CDs is that one episode takes a whole CD, assuming it's reasonably long, regardless of the bit rate / sound quality.
Saturday, March 22, 2008
Eyes on the Prize
What lessons can we learn from the physical world that also apply to the higher realms of the mind and the spirit? The old quote "eyes on the prize" is actually very practical advice!
It occurred to me that lately I've been biking, playing tennis, and discussing golf if not actually playing. And each of these activities has some variation of that same "eyes on the prize" lesson. Tennis in particular has the idiom "keep your eye on the ball", repeated so often perhaps people stopped thinking about what it really means.
The most accurate tennis shot comes when you keep your head still as you make contact with the ball. The natural impulse is to pull your eyes and attention away a moment before contact, swivelling your head so that you can follow your own shot and see where it lands. But that motion can result in a shot that's off-center or that goes off-target. Now, a tennis match involves hundreds or thousands of shots, but the outcome hinges on maybe a dozen or two critical moments. The more important the shot, the more temptation there is to be distracted, the more important it is to focus on this lesson at that moment. If your opponent is at the net and you must hit a precise passing shot, or you have a seemingly easy put-away close to the net, that's the time to keep your head very still and your attention focused on the ball as you hit it. Even for a moment after you hit it, since you'll either win the point or not based on how well you execute.
In tennis, experience means being able to visualize the whole court, pick a target, and hit that target without looking at it, while looking at the ball instead. You'll hear this same advice applied to the serve; look at the other side and decide on a target, then concentrate on the ball while executing the service motion. Like magic, the ball will seek the target more accurately than if you peek at the other side partway through the swing.
Cycling has different considerations, but along the same lines. You might have noticed, if you spot something dangerous in the road and fixate on it (a rut, a pebble, a bump, a gate), you are likely to ride straight at it despite a fervent desire to avoid it. Muscle memory doesn't know how to interpret a negative directive, "don't go there". You have to turn the impulse into something positive -- focus on some area away from the danger zone and steer towards it. Depending on how treacherous and steep your path is, you either focus on what's immediately in front of you (avoid this obstacle, reach that next milestone), or you let your imagination wander farther ahead to your ultimate goal (the finish line, home sweet home).
Golf offers a third variation on the same theme. As in tennis, you perform the same precise movement over and over. As in cycling, you are going for a positive goal that's a long way off, but it's important to avoid obstacles along the way (the trees, the water, the wrong fairway). During the golf swing, again you should keep your head still and focus on the spot where the ball is, even for a moment after you've actually hit it. The golf course is big enough, and usually unfamiliar enough, that you can't visualize an entire hole the way a tennis player pictures the court. But you can form a mental image of an intermediate target, something that if you can fly the ball over it probably means you're on-target. You want that target to be something positive (the green on the other side of the water hazard) rather than a negative obstacle (the tangled brush where you'll never find the ball).
The lessons for life almost write themselves. Focus on the positive steps you're taking towards your goals and to avoid potential problems, rather than fretting about the dangers themselves. Keep executing until success is ensured; don't look away too soon (the old "counting your chickens before they've hatched"). Concentrate on the things you can control (the ball), don't be distracted by your opponents or the hazards along the way. Gain experience and think ahead, so that you can either visualize your whole plan, or (if the whole system is too big or complicated) pick the right intermediate target to know you're on the right path.
It occurred to me that lately I've been biking, playing tennis, and discussing golf if not actually playing. And each of these activities has some variation of that same "eyes on the prize" lesson. Tennis in particular has the idiom "keep your eye on the ball", repeated so often perhaps people stopped thinking about what it really means.
The most accurate tennis shot comes when you keep your head still as you make contact with the ball. The natural impulse is to pull your eyes and attention away a moment before contact, swivelling your head so that you can follow your own shot and see where it lands. But that motion can result in a shot that's off-center or that goes off-target. Now, a tennis match involves hundreds or thousands of shots, but the outcome hinges on maybe a dozen or two critical moments. The more important the shot, the more temptation there is to be distracted, the more important it is to focus on this lesson at that moment. If your opponent is at the net and you must hit a precise passing shot, or you have a seemingly easy put-away close to the net, that's the time to keep your head very still and your attention focused on the ball as you hit it. Even for a moment after you hit it, since you'll either win the point or not based on how well you execute.
In tennis, experience means being able to visualize the whole court, pick a target, and hit that target without looking at it, while looking at the ball instead. You'll hear this same advice applied to the serve; look at the other side and decide on a target, then concentrate on the ball while executing the service motion. Like magic, the ball will seek the target more accurately than if you peek at the other side partway through the swing.
Cycling has different considerations, but along the same lines. You might have noticed, if you spot something dangerous in the road and fixate on it (a rut, a pebble, a bump, a gate), you are likely to ride straight at it despite a fervent desire to avoid it. Muscle memory doesn't know how to interpret a negative directive, "don't go there". You have to turn the impulse into something positive -- focus on some area away from the danger zone and steer towards it. Depending on how treacherous and steep your path is, you either focus on what's immediately in front of you (avoid this obstacle, reach that next milestone), or you let your imagination wander farther ahead to your ultimate goal (the finish line, home sweet home).
Golf offers a third variation on the same theme. As in tennis, you perform the same precise movement over and over. As in cycling, you are going for a positive goal that's a long way off, but it's important to avoid obstacles along the way (the trees, the water, the wrong fairway). During the golf swing, again you should keep your head still and focus on the spot where the ball is, even for a moment after you've actually hit it. The golf course is big enough, and usually unfamiliar enough, that you can't visualize an entire hole the way a tennis player pictures the court. But you can form a mental image of an intermediate target, something that if you can fly the ball over it probably means you're on-target. You want that target to be something positive (the green on the other side of the water hazard) rather than a negative obstacle (the tangled brush where you'll never find the ball).
The lessons for life almost write themselves. Focus on the positive steps you're taking towards your goals and to avoid potential problems, rather than fretting about the dangers themselves. Keep executing until success is ensured; don't look away too soon (the old "counting your chickens before they've hatched"). Concentrate on the things you can control (the ball), don't be distracted by your opponents or the hazards along the way. Gain experience and think ahead, so that you can either visualize your whole plan, or (if the whole system is too big or complicated) pick the right intermediate target to know you're on the right path.
Saturday, March 08, 2008
First Look at the iPhone SDK
I've just started downloading and reading up on the recently announced iPhone SDK. The Apple development environment, Objective-C and all those frameworks, has never quite appealed enough to me to dive into them. Using those same things for iPhone apps could be the tipping point for me.
Looks like quite a nice set of sample applications to use for a starting point. And FAQs and tutorials available the first day. That's a good sign for me. People have thought through use cases, likely questions, and getting-started scenarios. Too often, good technology is bogged down in technology for its own sake, or installation/startup problems are assumed to be handwaved away.
I'm a bit saddened that Palm didn't entice me with this kind of stuff several years ago when I tinkered with Palm programming. (I have a blog post in the back of my head entitled "Why Palm Didn't Take Over the World" that deals with that notion.) With all the emphasis on rewriting Palm OS using Linux and what have you, I never saw a push for things that I felt would yield a lot of bang for the buck. Enhancements to the PC-based client software -- the Windows version never changed much, and the moribund OS X version is so limited and painful I've stopped doing any entry or synching on OS X. (With the iPhone, is there any doubt that iTunes will keep gaining more and more capabilities? Already, the iPhone demos are supplied as movie downloads through the iTunes store.) Pushing the platform to its limits -- does it really take a complete Y2K-style rewrite to, let's say, allow to-do records to have more than one category, or 256 categories instead of 16, or some combination?
The thing that continues to hold me back me a bit, looking at the sample material, is what I think of as "frameworkitis". For every conceivable thing you might want to do, there's a different method with a long name. Just memorize a few hundred of those and you're off to the races. For learning any large system, there's a balance between the number of things to learn at the first, second, third, and sometimes fourth levels. When I evaluate the usability of any development environment, I look at whether too many things (class or procedure names) are pushed up to the top level, or whether you can learn a small number of general things, and then branch off to other things that follow logically. Let's break out that simulator and see how the iPhone APIs fit into that view of the world!
Looks like quite a nice set of sample applications to use for a starting point. And FAQs and tutorials available the first day. That's a good sign for me. People have thought through use cases, likely questions, and getting-started scenarios. Too often, good technology is bogged down in technology for its own sake, or installation/startup problems are assumed to be handwaved away.
I'm a bit saddened that Palm didn't entice me with this kind of stuff several years ago when I tinkered with Palm programming. (I have a blog post in the back of my head entitled "Why Palm Didn't Take Over the World" that deals with that notion.) With all the emphasis on rewriting Palm OS using Linux and what have you, I never saw a push for things that I felt would yield a lot of bang for the buck. Enhancements to the PC-based client software -- the Windows version never changed much, and the moribund OS X version is so limited and painful I've stopped doing any entry or synching on OS X. (With the iPhone, is there any doubt that iTunes will keep gaining more and more capabilities? Already, the iPhone demos are supplied as movie downloads through the iTunes store.) Pushing the platform to its limits -- does it really take a complete Y2K-style rewrite to, let's say, allow to-do records to have more than one category, or 256 categories instead of 16, or some combination?
The thing that continues to hold me back me a bit, looking at the sample material, is what I think of as "frameworkitis". For every conceivable thing you might want to do, there's a different method with a long name. Just memorize a few hundred of those and you're off to the races. For learning any large system, there's a balance between the number of things to learn at the first, second, third, and sometimes fourth levels. When I evaluate the usability of any development environment, I look at whether too many things (class or procedure names) are pushed up to the top level, or whether you can learn a small number of general things, and then branch off to other things that follow logically. Let's break out that simulator and see how the iPhone APIs fit into that view of the world!
Sunday, March 02, 2008
iTunes: Adding Track Numbers to Songs
Everyone fills in the basic facts in iTunes for their songs -- name, artist, and usually album -- but don't forget another valuable piece of information, the track number!
Track number is important when you're burning an audio CD. You'll want to sort by that field to avoid the songs coming out in alphabetical or some other unhelpful order. It's important when you want to verify that you have all the tracks from an album. When listening to the album in iTunes, you can sort the songs and turn off Shuffle to re-create the album experience. Ditto on your iPod, if you turn off Shuffle or set it to Shuffle Albums, and listen to songs in album order.
If a group of songs don't already have the Track Number field filled in, don't give up hope. A couple of Applescripts let Mac users of iTunes fill it in without a lot of gruntwork.
Use the first script if your song names in iTunes are stuffed with several pieces of information, including the track number. Typically, all the songs from an album will use the same format for the name, for example "01 - Happy Birthday - Greatest Birthday Songs" or "5. Christmas Album / Jingle Bells". But each album might use a different format. That's where the Track Parser script comes in. You select some tracks, enter a coded string that says how to interpret the data, spaces, and punctuation in the names. The script scans through the selected tracks and slots the information into the right fields, while stripping that extra information out of the name field. You can experiment by doing "test runs" on a single track before you turn it loose on dozens of songs. And you can save the string patterns, so that if you encounter similarly named songs in the future, you can "decode" them just by picking from a list of sample song names.
If the track information isn't in the song names, all is not lost. You'll just need to do a bit more work. First, you'll need to download and install the Albumize Selection script. Go to Wikipedia, Amazon.com, or some other "discography" site that lists all the tracks on that album. Turn off Shuffle in iTunes, put the tracks in a playlist, and sort that playlist by the first column -- the one with no label, just numbers. That puts the tracks in the order that is iTunes' "best guess" of the right order. Once these settings are in effect in the playlist, you can drag songs up and down to reorder them. When they're in the right order, select all the tracks from the album (or from disc N in a multi-disk set), run the Albumize Selection script from the iTunes script menu, and it will fill in the "Track X of Y" information for the selected songs.
If you have to go to these lengths to find out album information, don't forget to also fill in the year for all the songs in each album. That will let you create Smart Playlists based on year or decade, and sort an artist's work in chronological order.
Track number is important when you're burning an audio CD. You'll want to sort by that field to avoid the songs coming out in alphabetical or some other unhelpful order. It's important when you want to verify that you have all the tracks from an album. When listening to the album in iTunes, you can sort the songs and turn off Shuffle to re-create the album experience. Ditto on your iPod, if you turn off Shuffle or set it to Shuffle Albums, and listen to songs in album order.
If a group of songs don't already have the Track Number field filled in, don't give up hope. A couple of Applescripts let Mac users of iTunes fill it in without a lot of gruntwork.
Use the first script if your song names in iTunes are stuffed with several pieces of information, including the track number. Typically, all the songs from an album will use the same format for the name, for example "01 - Happy Birthday - Greatest Birthday Songs" or "5. Christmas Album / Jingle Bells". But each album might use a different format. That's where the Track Parser script comes in. You select some tracks, enter a coded string that says how to interpret the data, spaces, and punctuation in the names. The script scans through the selected tracks and slots the information into the right fields, while stripping that extra information out of the name field. You can experiment by doing "test runs" on a single track before you turn it loose on dozens of songs. And you can save the string patterns, so that if you encounter similarly named songs in the future, you can "decode" them just by picking from a list of sample song names.
If the track information isn't in the song names, all is not lost. You'll just need to do a bit more work. First, you'll need to download and install the Albumize Selection script. Go to Wikipedia, Amazon.com, or some other "discography" site that lists all the tracks on that album. Turn off Shuffle in iTunes, put the tracks in a playlist, and sort that playlist by the first column -- the one with no label, just numbers. That puts the tracks in the order that is iTunes' "best guess" of the right order. Once these settings are in effect in the playlist, you can drag songs up and down to reorder them. When they're in the right order, select all the tracks from the album (or from disc N in a multi-disk set), run the Albumize Selection script from the iTunes script menu, and it will fill in the "Track X of Y" information for the selected songs.
If you have to go to these lengths to find out album information, don't forget to also fill in the year for all the songs in each album. That will let you create Smart Playlists based on year or decade, and sort an artist's work in chronological order.
Subscribe to:
Posts (Atom)