The Daily Parker

Politics, Weather, Photography, and the Dog

Work overload link roundup

Or, a few reasons why the "Send to Kindle" button helps me get through the day:

Open houses

Parker and I ran around all day because I had an open house. (For some reason, people don't want to meet dogs at open houses.) I'm now catching up on everything I didn't do all day.

The best part of having an open house, though: my apartment Inner Drive Technology WHQ is spotless.

Spring was here, briefly

I didn't post a lot yesterday because (a) I had tons to do for work and (b) once I'd finished, I had to go out into this:

It got all the way up to 21°C, briefly, and there were actual leaves on the trees for the first time since November.

Today it's sunny and 7°C. It might get up to 14°C sometime this coming week, once it stops raining.

Hey, at least it's spring.

Stuff I didn't get to this afternoon

Busy day, so I'm just flagging these for later:

Back to the mines...

Cool time at Wrigley

I mean that literally. With the wind whipping off the lake, our shaded seats never got above 10°C, and felt a whole lot colder. We fled after the 5th inning.

One of the (metaphorically) cool things was how the Cubs used the names of the two teams that played at Weeghman Park when it opened on 23 April 1914: the Chicago Federals and the Kansas City Packers. Here's the scoreboard:

And here's first baseman Mark Rizzo in his historical uniform:

The Cubs lost, of course, 7-5. Some things really never change.

Happy Birthday, Wrigley Field

The park is 100 years old today:

The ballpark, which opened April 23, 1914, and celebrates its centennial Wednesday, is a quintessential Chicago building: practical, quietly graceful, a creature of function, not fashion. Despite those rationalist roots, it's a vessel for human emotion: hope, dreams, escapism, nostalgia, wonder — and, as Cubs fans know all too well, disappointment, disgust and bitterness.

Only a smattering of those fans, I suspect, could name the original architects of Wrigley (Zachary Taylor Davis — who also designed Comiskey Park — and his brother Charles). Fewer still would be able to tell you that the ballpark actually reflects the hand of many architects, including the designers of the eclectic Wrigley Building and the art deco Chicago Board of Trade Building.

What those architects wrought, working in a sequence that now covers 10 decades, is remarkable: a building shaped by many different hands that still hangs together beautifully. It helps us hang together, too, creating a shared, almost familylike experience that's all too rare in a world where people devise their own reality on smartphone screens.

Yes, Wrigley needs help; some fans call it a dump. The ballpark is rich in lore but poor in amenities, and its bones have shown inevitable signs of age. Netting prevents chunks of concrete from falling on fans.

A planned revamp, part of a $500 million redevelopment of Wrigley and its environs, promises to finally bring the ballpark into the 21st century. But it's stalled by a bitter dispute between the Ricketts family, which owns the Cubs, and the owners of rooftop seating perches that peek into the ballpark. Work isn't expected to start until next offseason. So with Wrigley in limbo, here are five reasons why the ballpark captivated us in its first century...

Naturally, as an involuntary season-ticket holder, I'm going to the game, and possibly some of the pre-game festivities. And because it's a beautiful, sunny morning in April, I'm wearing long johns, heavy wool socks, a long-sleeve shirt, an undershirt, a warm hoodie, a winter coat, and fleece gloves. How else would someone dress for a game at Wrigley before Memorial Day?

Game-time forecast: sunny, breezy, 6°C. Brrr.

What dogs can do that chimps can't

We've bred wolves for 40,000 years to have social intelligence, which makes them better than chimps and cats at understanding us:

[Duke Canine Center student Evan] MacLean stands near a wall with the dog on a slack leash, while a female graduate student sits on a chair in the center of the room. She sets two opaque red cups upside down on the floor, one on each side of her. Then, as [the dog] Napoleon watches intently, a third graduate student enters the room. She places the dog’s tennis ball under one of the cups and pretends to place it under the other, obscuring her motions with a small black board so the terrier isn’t sure which cup contains the ball. If this were a shell game, the dog would have a fifty-fifty shot of picking the right cup. But the seated graduate student gives him a hand, or, more precisely, a finger. She points to the cup on her right, and when MacLean lets go of the leash, Napoleon runs over to it and retrieves his ball. Over several trials, the dog always goes for the cup that is pointed out. Even when the seated student merely gazes at the correct cup, Napoleon gets the message.

This may seem like a simple test, and, indeed, even one-year-old children pass it. But our closest relatives, chimpanzees, fail miserably. They ignore the human helper, pick cups at random, and rarely score above chance. Brian Hare’s lab has become famous for spotting this difference. Napoleon has performed more than just a neat cognitive trick. He has displayed a more complex skill related to the development of theory of mind in children. He wasn’t just clued into the pointing student’s attention; he had shown behavior consistent with understanding her intention. He showed that he realized that the student wanted to show him something, that she had a desire.

It may not have taken 40,000 years for dogs to develop this skill, by the way. The Russian silver foxes are only a few dozen generations away from wild foxes, and they also have similar cognitive characteristics.

Head-scratching software bug

I don't know how this little snippet of code got into a project at work (despite the temptation to look at the file's history):

Search = Search.Replace("Search…", "");

// Perform a search that depends on the Search member being an empty string
// Display the list of things you find

First, I can't fathom why the original developer made the search method dependent on a hard-coded string.

Second, as soon as the first user hit this code after switching her user profile to display Japanese, the search failed.

The fix was crushingly simple:

var localizedSearchPrompt = GetLocalizedString("SearchPrompt");
Search = Search.Replace(localizedSearchPrompt, string.Empty);

(The GetLocalizedString method in this sample is actually a stub for the code that gets the string in the current user's language.)

The moral of the story is: avoid hard-coded strings, just like you've been taught since you started programming.

Skokie Swift turns 50

CTA service on the Skokie Swift (now Yellow Line) began 20 April 1964:

The five-mile-long Niles Center branch of the ‘L’ had opened in 1925. Using the tracks of the North Shore electric interurban line, trains ran from Howard-Paulina station to Dempster Street in the suburb of Niles Center (today’s Skokie). There were seven stops between the terminals. North Shore continued to run trains after CTA service was discontinued in 1948.

In 1963 North Shore itself went out of business. During the fifteen years since CTA had eliminated the Niles Center branch, Skokie and other nearby towns had enjoyed a population boom. Perhaps the old ‘L’ line could now earn some money.

CTA’s new plan was to make the line a feeder to the mainline North Side ‘L’. Trains would run express between Dempster and Howard, with no intermediate stops. In a savvy bit of marketing, the re-born service was named the Skokie Swift.

Service officially began on April 20, 1964. Ridership surpassed all expectations, and CTA soon increased the number of trains. Today the route is known as the Yellow Line.

Before 1963, the North Shore Line actually ran trains all the way up to Mundelien.