Archive for March, 2008

Happy Easter

We hope you’re all able to get a little time off work (unlike me), and spend it with your loved ones. Our hearts go out to our cousins in South Dakota, who lost their garage and car to fire. Thankfully, everyone is ok.

Click “continue reading” to see a video of the fire.
I want more, more, mmmooorrre…

Me as a South Park Character

I was told about this great site that allows you to create your own South Park characters. This is what I thought I would look like, if I were in South Park:

BMH as a South Park character

Photographers’ Bill of Rights

When walking about the city and shooting photos, I often wonder what laws prohibit me from shooting. I don’t remember where I saw this now, but this guide is a helpful tool in knowing what you can/can’t take photos of.

A few of the “Ten Legal Commandments:”

I. Anyone in a public place can take pictures of anything they want. Public places include parks, sidewalks, malls, etc. Malls? Yeah. Even though it’s technically private property, being open to the public makes it public space.

II. If you are on public property, you can take pictures of private property. If a building, for example, is visible from the sidewalk, it’s fair game.

III. If you are on private property and are asked not to take pictures, you are obligated to honor that request. This includes posted signs.

Guide to Hiring Women (hilarity)

A friend sent me this guide from the 1943 issue of Transportation Magazine that provides helpful tips for companies hiring women. I think it’s good to take a laugh at these things, as it proves that we recognize the claims are outlandish and unreasonable. Here are a few samples to get you started.

1. Pick young married women. They usually have more of a sense of responsibility than their unmarried sisters, they’re less likely to be flirtations, they need the work, or they wouldn’t be doing it, they still have the pep and interest to work hard and to deal with the public efficiently.

3. General experience indicates that “husky” girls - those who are just a little on the heavy side - are more even tempered and efficient than their underweight sisters.

8. Give every girl an adequate number of rest periods during the day. You have to make some allowances for feminine psychology. A girl has more confidence and is more efficient if she can keep her hair tidied, apply freh lipstick and wash her hands several times a day.

See the full list here (apologies for the poor quality):
Guide to Hiring Women

Netflix’s Strange Recommendations

Netflix’s Strange Recommendations

Generally, Netflix’s recommendations are pretty reliable, when I pay attention that is. I happened to notice this rather strange recommendation awhile ago. Pi is a pretty intense film about a man who knows the secret to pi, a mathematical constant that represents the relationship between a circle’s circumference and it diameter.

If you haven’t seen How to Lose a Guy in 10 Days, or The Longest Yard, they are not exactly movies I would recommend when one has said they’ve enjoyed Pi. I guess this is why Netflix is always looking to improve its recommendation system.

Catnip Fiends

Wallace has discovered the joys of catnip. I fear we may need to send him to rehab…evidence below.

Wallace Attacks the Goodies

Wallace Dives In

New Records

Here are some new pick ups, from Orpheus, San Francisco, and a couple that I bought online.

Panda Bear - Person Pitch
Panda Bear - Person Pitch

David Bowie - The Man Who Sold the World
David Bowie - The Man Who Sold the World
(Note: This is the original U.S. release.)

David Bowie - Scary Monsters
David Bowie - Scary Monsters (and Super Creeps)
(Note: This is an original, sealed copy.)
I want more, more, mmmooorrre…

New Music

I’ve gotten a lot of new records lately, and I wanted to share a few samples of things I’ve been enjoying. I’ll leave the opinions of each up to you (mostly because I’m too tired to write much about them).


Jason Collett - Charlyn, Angel of Kensington from Here’s to Being Here
Jason Collett is a member of a collective of musicians called Broken Social Scene, but this is from his first true solo album. edit:Kyle reminded me that this is not in fact Collett’s first solo record. Not sure why I forget about this previous, but thanks for the update, Kyle. I can tell all ready that this is going to be towards the top of my year’s best list.


Caribou - Melody Day from Andorra
Caribou are a new discovery for me. They sound a lot like the Beach Boys, but with some obvious modern twists. I’ve only listened to this record a few times, but I’m going to enjoy getting to know it more in the near future.


David Bowie - Changes from Hunky Dory
What else can be said about Bowie? He’s actually a new discovery as well. I had always written-off music from the 70’s and 80’s music, but lately I’ve been enjoying it a lot more.


Vampire Weekend - A Punk from Vampire Weekend
Vampire Weekend are the new indie-music critics favorite band, and it’s hard to disagree. They make incredibly catching stuff that doesn’t seem to leave my head for days on end.


Yeasayer - Sunrise from All Hour Cymbals
Yeasayer are another band that brings an entirely new meaning to what music should sound like. I can’t get enough of this record either, and am really looking forward to their show.

Learning

As you might be able to tell from the “ what I’m doing” notification to the right, I’m very excited. I try to teach myself new technical things in my free time, because I don’t have much of an opportunity to work on very technical tasks at work anymore. Tonight, I learned a new trick.

I will fully admit that I am a pretty poor code writer. I’ve been meaning to learn PHP for quite some time, and it always seems overwhelmingly difficult compared to ColdFusion, which is what I’ve been using for dynamic pages for quite some time (since version 4, if I recall correctly).

The main task that I’ve wanted to accomplish with PHP is parsing XML. This is a way to bring content from web pages elsewhere, and use it on your own page. This is how the “Now Spinning,” “What I’m Doing,” and “Recent Wine” items all work (basically). On my blog however, this parsing is all handled by WordPress, the software I use. I just tell it where the feed is and it handles the rest. I wanted to figure out how to do this on my own.

And today I did (kind of). I found this nice utility called, Magpie RSS, to assist me. Magpie is an XML parser for PHP that makes things a little easier. I am told that PHP has its own built-in parser, but I found Magpie gave me enough assistance to make this task as easy as I needed it to be. Magpie is free and open source, and will usually work anywhere, as long as your server is running PHP.

To get MagpieRSS running was pretty quick:

  • I downloaded the software.
  • Uploaded the files rss_cache.inc, rss_fetch.inc, rss_parse.inc, and rss_utils.inc to a new directory called “magpierss” in the same folder as the page that I wanted to use to parse XML. I also uploaded the folder extlib to the same directory.
  • Then I used <?php require_once('magpierss/rss_fetch.inc'); to invoke the fetch function.

And that’s basically it. Magpie is ready to parse the XML. Now, I had zero base for PHP, so I also had to learn some proper syntax for creating the code to format the data into usable form. I snagged this code from a page in WordPress, and made some minor alterations to get it to work with Magpie.


<?php require_once('magpierss/rss_fetch.inc');

$url = 'http://corkd.com/feed/cellar/bmh';
$rss = fetch_rss( $url );
if ( $rss ) {
/* echo "Title: " . $rss->channel['title'] . “<p>”; */
echo “<ul>”;
$i = 1;
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
$description = $item['description'];
echo “<li>$title<br />$description</li>”;
if ($i == 5 ) break;
$i = $i + 1;
}
echo “</ul>”;
}
?>

I’m still not positive what each piece of this code does, but, it works, and right now that is all that matters to me. As you can tell the code is fairly lengthy, especially when compared to the ColdFusion code I would need to do the same thing:


<cfhttp url="hhttp://corkd.com/feed/cellar/bmh" method="get">
<cfset quote = xmlParse(cfhttp.filecontent)>
<p><cfoutput>#quote.rss.channel.item[1].description.XmlText#</cfoutput><br />
~ <cfoutput>#quote.rss.channel.item[1].title.XmlText#</cfoutput></p>

This always seemed so much easier to me, but now that I’ve learned some PHP syntax, it’s not all that different.

It’s always nice to accomplish something like this, especially when I’ve been meaning to figure it out for awhile. I’m going to go ahead and pat myself on the back. And now I’m going to go play a game of FIFA ‘08 on the Wii.

Logitech Drivers Break Growl

Growl is a universal notification system for Mac that I’ve come to know and love. I’ve also come to love Logitech mice. They fit my hands really well, and don’t have too many features, just the ones that I need. Unfortunately, the Logitech drivers conflict with Growl, in a nuclear way, and render Growl useless.

After tweeting about this, my friend Kyle sent me this post, which explains a simple fix.

Open finder and navigate to \Library\InputManagers\LCC Scroll Enhancer Loader\ and remove LCC Scroll Enhancer Loader.bundle. I moved it to an external drive, in case I realize I need it, but the instructions call for deleting it all together.

Thanks Kyle!