Several years ago, when Safari got built-in RSS, I was thrilled. Finally RSS became useful to me and I’ve been using it — and Safari — ever since. Recently, though, that has changed.
At the Online News Association’s annual conference last week in San Francisco, I showed a few cool tools journalists might find uses for.
The first tool I showed was Swivel. This is a great and easy tool for taking data and creating interactive graphics from them. Here’s an example:
Swivel is free, though if you want to keep the data private, you have to pony up some cash.
- Download the app
- Create an AudioBoo account
- Use the app to record audio
- Snap a photo to go with the audio
- Title the audio and tag it with keywords
- Publish the clip
Here’s an example of the embedded audio player:
Those were the two main tools, but we had some extra time, so I offered two bonus tools.
The first bonus tool wasn’t really a tool, so much as just something too damn cool not to show. Specifically, Yelp!’s secret “Monocle” augmented reality tool. Basically, it works by layering information over a live camera image. Here, watch this YouTube video to better explain it:
And here’s the last one: regular expressions, also known as grep, or pattern-matching search.
Basically, this is a method of search or find-and-replace that uses wild cards and variables. Say, for example, you have a list of names, like this:
- Jefferson, Thomas
- Washington, George
- Adams, John
- Franklin, Benjamin
- Lincoln, Abraham
- Hancock, John
- Jay, John
And, you want to change the order of each name to make it first name, space, last name. That is, instead of “Jefferson, Thomas” you want “Thomas Jefferson.”
Without grep/regular expressions, you’d have to cut/paste a bunch of names or retype them. (Or, you could find the comma and replace it with a tab, copy the lines to an Excel spreadsheet, change the orders of the columns, then copy the lines back to a text editor and then find/replace the tabs with spaces.) But, there’s a far easier way.
and replace with this:
So, how does that work? Simple. The period is a wild card for any character. The asterisk means “repeat.” So .* means “any character followed by any character, followed by any character, etc.” Because .* is followed by a comma and a space, that first set will find all the characters until it reaches a comma and space. And the parenthesis assigns that text string to a variable. So, it will find “Jefferson” and assign it the variable “1.” (The first set of parentheses gets the variable “1,” the second set of parentheses gets “2” and so on.)
After the space, another .* will find the remainder of the line and, thanks to the parenthesis, assign it the variable “2.”
Finally, it replaces what it finds with the value of “2,” followed by a space, followed by the variable “1.”
See? Yeah, I know it’s kind of obtuse. But, play with it and check out this awesome grep reference site.