Wednesday, 6 April 2005

WishRSS Now Offers Buy for List Owner

I’m extremely pleased to announce an update to WishRSS. You can now purchase items from your friend’s WishList and for them, just click the “Purchase for WishList Owner” link in the list’s webpage or in the RSS feed. Of course, if you’d rather purchase it for yourself, there’s the “Purchase for Yourself” link.

Enjoy. WishRSS.

Learning Ruby – Day 8

Day 8, What are regular expressions?

If you don’t know about regular expression matching, or regex, it’s basically a language to find the useful needles in haystacks of text and code. Think ‘find and replace’ turned to 11.

I do just enough regular expression matching to forget how it works. I always end up googling for a quick reference, not quit finding what I need. My text editor of choice, SubEthaEdit has a nicely-formatted pattern reference in the Help menu, though it lacks ‘How RegEx Works’ documentation.

Enter Day 8 of Teach Yourself Ruby in 21 days. Everything about regex is covered; groupings, greediness, repetition, alternators, everything. A while back, I was thinking of picking up one of the many books specifically covering Regex. Now, I’m sure this one chapter will serve me well as that reference.


This post documents my journey through Sam’s Teach Yourself Ruby in 21 days. I’ll be joining Al Abut in his effort to learn Ruby and blog along the way.


Tuesday, 5 April 2005

First Crack 35. Honey Wine Tasting with Christopher Hadden

We’re tasting honey wine, or mead, with homebrewer-extraordinaire Christopher Hadden. We taste the Dry Mead from White Winter Winery and discuss mead’s history, brewing process, where you can pick some up.

Listen to Honey Wine Tasting with Christopher Hadden [32 min]

Got questions about coffee or comments about the show? Call: 206-20-BEAN-1

Like the show? Support the First Crack Podcast

Learning Ruby – Day 7

Day 7, playing catch-up.

I’m continually impressed with how concise the Ruby language is. As I mentioned in Day 4, Ruby frowns upon loops. I’m getting the impression Ruby also frowns upon taking up 2 or more lines to describe an action. Slagell’s examples of doing something a traditional way take up multiple lines, his here’s-a-better-way examples are single line. If we compare writing code to writing words and say each a chunk of code is a paragraph and each line of code is a sentence. Writing Ruby is more like dialog than narrative.

Note to self:
In Ruby, double quotes acknowledges backslash-escaped characters, i.e. "n" = new line. Single quotes will not, i.e. 'n' = n. Same is true for evaluating expressions within #{...}

Two Cool Things in Ruby:

  1. Chained Assigment
    Want to give a number of variables the same value?
    DaveSpeaks = JoeSpeaks = KatSpeaks = FrankSpeaks = "English"
  2. Multiple Assignment
    Want to quickly set the values of multiple variables at the same time?
    DaveSpeaks, JoeSpeaks, KatSpeaks = "English", "Dutch", "German"

The start of the day has quite a bit on binary numbers. I’m not sure when binary arithmetic will come in handy (a position I also expressed regarding Jr. High Algebra) but it’s nice to know it’s here when the need arises. The example Slagell offers at the chapter end feels like a band-aid for a poorly designed system. If any of you following along can provide a comment on when it’s beneficial to use binary arithmetric, I’d be extremely grateful.

As I finished up today’s exercises, Bic Runga’s ‘Listening for the Weather’ came through my iTunes. What an excellent way to wrap up Day 7.


This post documents my journey through Sam’s Teach Yourself Ruby in 21 days. I’ll be joining Al Abut in his effort to learn Ruby and blog along the way.


Kayak and PinPoint Changing the Face of Online Travel

A couple years back, I helped Orbitz.com redesign their shopping process. During that time, if you wanted to book travel the major players were Expedia and Travelocity, with Orbitz aiming to be the more usable, better-looking alternative.

Today, those three players are equally mature and equally less than compelling. They don’t capture all airlines and have yet to offer the recreational traveler’s dream: give me the cheapest flight to Brussels, anytime, any day, in the next 1, 3, and 6 months.

Enter Kayak.com. Think of it as Froogle for travel. Just the bare-minimum needed to start a travel search. If you want something a little sexier, check out Pinpoint Travel. Pinpoint uses Kayak’s engine and leverages the new AJAX web application model making a very interesting and helpful interface – like Google Suggests. Also, by asking me questions about my personal preferences, Pinpoint does an excellent job of keeping me engaged while it’s searching.

On the downside, AJAX relies heavily on Javascript so Pinpoint isn’t accessible and for some odd reason neither is Kayak.

Monday, 4 April 2005

More Gets You to Better

As I mentioned in my interview at Podcast411.com, I had an art professor who believed everyone had 5,000 bad drawings in them. Five thousand drawings bad drawings before the good ones could come out.

This perspective is re-iterated in Throw More Pots over at Crossroads Dispatches.

In this same token, I’m a firm believer every organization needs a playground, a skunkworks, a sandbox. Whatever it’s called, it’s a mentality where people can develop a million small ideas to find the ones that work. Whether drawings or pots or business models.

With the relative low cost of website development, in comparison to traditional television marketing, there’s a huge opportunity to try a million different small (potentially better) campaigns and cumulatively get the same return – if not a greater return.

Spring Cleaning at the Work Better Weblog

So we’re back. My apologies if you stopped by over the last couple days to find us not here. I was working on a new visual presentation for the website and the CMS ended up not cooperating.

Everything is mostly back to normal now. Though for the next few days, if you hit the site, verses reading the RSS feed, you’ll still see the somethings moving around.

What Price Garbage Avoidance

We’ve got a Rainbow Foods just south of us and a Cub Foods just north of us. Both are just on the border of walking-distance away (that’s a different story). At both stores, I’m struck by how much of we don’t see, how many aisles we don’t walk down, and how much crap we don’t buy. The other day, looking for a change, we picked up a few things at the local Whole Foods store. Though there were still huge sections we avoided, I felt the high fructose corn syrup content of the store was a factor of 10 lower. Refreshing.

The price difference between the Rainbow and the Whole Foods made me wonder:

In the age of scarcity, price is the value of receiving something wanted.
In the age of plenty, price is the value of filtering out something unwanted.

This filtering-out is why Tivo can charge a monthly subscription and why AOL is marketing themselves on virus, spam, and pop-up protection.

I was listening to my backlog of SXSW ( ) music tonight when Rob McColley’s TeeVee came through my iPod. He sings, appropriately:

’cause the free stuff you get these days
I’d pay to keep away from me.

Sunday, 3 April 2005

Learning Ruby – Day 6

Day 6, How to deal with files and other data streams.

What’s a reliable way to get the last item in an array? ask for the -1 item, i.e. array[-1].
Finally, a logical reason to start arrays at 0 rather than 1 – so we can count backwards.

Looks like the “then” part of an “if…then” statement can come first. As in this example from the book, removing a leading zero from a decimal number.
avg[0,1] = '' if avg[0, 2] == "0."

This will take some getting accustomed to. I’m more familiar with it written this way:

if avg[0,2] == "0."
avg[0,1] == ''
end

To accommodate When Bad Things Happen, Ruby has a pretty cool construct:

begin
#...
rescue BadThing1Happened
#...
rescue BadThing2Happened
#...
end

Two cool things here; first – this seems like a simple way to write more readable code – error conditions or otherwise, second – the word “rescue”, makes you feel like a superhero for catching Bad Things. Incentive enough for writing better code.


This post documents my journey through Sam’s Teach Yourself Ruby in 21 days. I’ll be joining Al Abut in his effort to learn Ruby and blog along the way.