
Mocha Joe's
Originally uploaded by Usonian.
I haven't actually gotten many photos off of my phone yet, since Verizon wants you to pay through the nose for each one, but this is the best one yet. I would say encouraging enough to pick up a transflash card so I can just transfer photos (and video) directly to the computer. I'll get in the habit of using my phone's camera a lot more if I can expect shots like this under decent lighting conditions.
Tagged:
I always feel special when I search Google for a very specific error message and find absolutely zero other references to it online.
This time, I was developing a PHP-generated RSS feed for consumption as a podcast. I was testing the feed in iTunes, which was giving me the helpful error message
An unknown error has occurred (400)
The Apache error log, meanwhile was telling me
request failed: erroneous characters after protocol string
In the end, the problem turned out to be with unencoded spaces in the enclosure filename; where the enclosure tag should have looked like
<enclosure url="http://127.0.0.1/files/devuser/01%20In%20The%20Limelight.mp3" length="2026554" type="audio/mpeg"/>
The tag causing the error looked like
<enclosure url="http://127.0.0.1/files/devuser/01 In The Limelight.mp3" length="2026554" type="audio/mpeg"/>
(Shame on me.)
Tagged:
Speaking of haunting love songs, The Blackest Crow is just about the prettiest/saddest such tune I've heard in the oldtime/traditional genre. One of these days I'm going to memorize and practice it enough to be able to do it justice. There's a great 3/4 instrumental rendition in Brad Leftwich's Round Peak Style Clawhammer Banjo book, but I think I like Arnie Naiman and Chris Coole's 4/4 version on their Five Strings attached with No Backing album even better (which for me is saying a lot, because I'm not a huge fan of oldtime/bluegrass vocals). You can listen to it at http://www.merriweather.ca/album.aspx?album=9&style=Banjo.
The most effective verses:
The Blackest Crow
The time draws near, my dearest dear
When you and I must part
And no one knows the inner griefs
Of my poor aching heartI wish my breast was made of glass
Wherein you might behold
Oh, there you'd find your name lies writ
In letters made of goldThe blackest crow that ever flew
Will surely turn to white
If ever I prove false to you
Bright day will turn to nightBright day will turn to night, my love
The elements will mourn
If ever I prove false to you
The seas will rage and burn
This would be funny if had come from The Onion.
The New Grad's Guide to Decorating a Cubicle
It's not from The Onion, though, so it's more numbing than funny.
Tagged:
I don't spend a lot of time reading other peoples' code, but when I do, and when they format their curly braces like
if(foo) { doSomethingWith(bar); }
It drives me irrationally insane with rage.
if(foo){ doSomethingWith(bar); }
Is better. I will not entertain arguments.
Tagged:
I finally got around to fixing a critical bug in Dastardly, my first interactive fiction adventure written in Inform.
As it turned out, all it took was the addition of two characters, trapping the PutOn verb instead of the Put verb.
It only took me about 10 minutes to track the problem down when I used Inform's built-in debugging tools: actions, messages, and changes. Why didn't I use those when I was first developing the game? Because I didn't read that section of the Inform Designer's Manual, and I didn't really know about the debugging tools until I was paging through the DM4 before bed a couple of days ago.
In fairness to myself, it wasn't a bug that came to my attention until well after the game was originally released for the Hours of Inform minicomp... that's what you get for releasing a game with absolutely zero third-party testing.
Also, I didn't mention this when it first came out because of that bug, but Dastardly was reviewed in SPAG #42:
http://sparkynet.com/spag/backissues/SPAG42
Tagged:
The Bruins have to win something like 75% of their remaining games this season just to make it to the playoffs. Given their performance so far, that's probably not going to happen.
Watching them this past Thursday against the Flyers, and tonight against the Rangers, though, at least it doesn't seem quite so laughable... it's like the Bruins have woken up. It's so refreshing to watch a game and not have the perpetual sense that the Bruins are about to get scored on.
Of course, in the end they gained a point in the standings but lost 3-2 in the second round of the shootout.
I really dislike the shootout as a mechanism to decide games still tied after five minutes of overtime. It's entertaining, sure, but it really cheapens the entire 65 minutes leading up to it. It essentially takes all of that hard work from both teams and flushes it down the toilet.
Are fans really more bothered by the notion of a tied game than by 65 minutes of hockey coming down to what amounts to a game of rock, paper, scissors?
Tagged:
Simpsomaker
Originally uploaded by Usonian.
Via Steffe, make your own here.
This is by no means a complaint, because it's clear a lot of work went into this thing, but:
Things I would have included if I had made this:
Save the SWF file to your desktop, because I'm sure it's only a matter of time before Fox cease and desists this into oblivion.
Tagged:
Watching the web buzzwords change with the seasons reminds me of the dance number in The Wiz where the Wiz keeps announcing the new official color from on high, and everyone dutifully scrambles to keep up with the trend.
With his essay Web 3.0, Jeffrey Zeldman does a nice job of pointing out that plus Ça change, plus c'est la même chose.
This morning I tried unsuccessfully to get CakePHP's built-in 'Access Control List' feature working. I get the impression that ACL is bleeding edge stuff, and that the current documentaion is not accurate (or it may be that the functionality just doesn't quite work right out of the box.) That's OK. CakePHP is still quite young, and for my current purposes ACL looked like overkill anyway.
So this afternoon I set about implementing my own lightweight user authentication system, incorporating 'Users' and 'Roles' tables in the database, with corresponding CakePHP controllers and associations. Scaffolding provided instant create/edit/list/delete functionality for users and roles, including the ability to assign roles to users and vice versa. Total set-up time: maybe 30 minutes for everything.
The bigger hurdle was implementing an authentication controller for handling the login form, logging in, and logging out. This took a bit longer, but at every turn I discovered that the typical minutiae (Setting a message to be displayed on the following screen, managing session variables, et cetera) had already been taken care of for me in the base Controller class, leaving me to spend most of my time worrying about logic instead of implementation. This is good stuff.
The next step will be to write a controller 'Component' for managing user access to controller functions.
Tagged:
I like it. The Rails-style scaffolding feature is mighty impressive, as is the associations feature that provides application logic for foreign key/join relationships across tables (which is subsequently reflected in the built-in scaffolding views).
Tagged:
A few weeks ago I was working on a personal project, a web application that I put together using J2EE. (By no means is it an "Enterprise" application, but there's no other acronym that accurately summarizes "Servlets/JSP/Tomcat").
My web hosting company (Which does not offer Tomcat hosting as a service; they're strictly PHP/HTML) was even cool enough to let me run an instance of Tomcat on my account. The only problem is, Tomcat seems to get shut down every day and a half or so. There's probably some sort of daemon on the server that looks for weird processes and kills them, which is perfectly resaonable.
Since I'm not paying for Tomcat hosting, I don't think it would be fair of me to bug them about it; I need to either bite the bullet and pay to have my Java web app hosted someplace else, or rewrite it in PHP so I can just host the thing almost anywhere, and eventually even release it for widespread use.
I haven't done much of anything in PHP for a good year and a half, other than maintenance on existing applications that I wrote before that. I toyed with the idea of writing my own lightweight MVC framework in PHP, but didn't really relish the thought... it would be an interesting exercise, but really more than I want to take on for this relatively simple project. At the same time, I don't want to rebuild this application as a set of "throw this in as I need it" PHP scripts.
So I started searching for an MVC PHP framework, and came across CakePHP, which looks very encouraging... I haven't spent much time with it yet, but already I get the sense that my time would be much better spent learning the Cake framework than trying to write my own. It will be good to dust off my PHP brain cells, too, and familiarize myself with Eclipse (thanks to the PHPEclipse plugin.)
Tagged:
I upgraded to OS 10.4.4 a couple of days ago, and this morning discovered that PhpMyAdmin was telling me it couldn't connect to the database despite the fact that I knew mysqld was running, and accessible via the command-line client.
Fortunately, the fix is very simple - edit your /etc/php.ini (or create it, if it doesn't exist) file and make sure the mysql.default_socket line looks like this:
mysql.default_socket =/tmp/mysql.sock
I found this and other 10.4.4 fixes on this Macfixit.com page.
Tagged:
Uketastic
Originally uploaded by Usonian.
I got my cheapo kit-built ukulele down off the wall for the first time in months last night... when I assembled it I glued the bridge into place ever so slightly off, and the intonation on the first string is bad. It makes playing it not a lot of fun, because that one note is always just wrong enough to be distracting.
But I found as happy a medium as possible by tuning the string a bit flat when open, and away I went. I had forgotten how much different it is from mandolin, whose strings are in double courses, much closer together, and made of steel. The ukulele's strings are nylon, and the neck is nice and wide so your fingers don't have to fight for space.
Then there's the tone... high like a mando, but soft and mellow, and definitely better-suited for leisurely strumming. I love the way 7th chords sound on this thing, and the strumming action is stirring up renewed interest in tenor banjo as well.
Tagged:
algemac
Originally uploaded by Orrin.
If and when I do return to L.A., a lot of the mid-century landmarks I got used to driving past every day will probably have disappeared. I never saw Almegac's (pictured here), but it is apparently among the latest places to shut down.
They disappear without a trace... since the major roads of the entire L.A. basin basically form one continuous strip mall, things have a way of getting swallowed up gradually.
Confucius You two would probably really get along! |
Founder of Confucianism
"If a man withdraws his mind from the love of beauty, and applies it as sincerely to the love of the virtuous; if, in serving his parents, he can exert his utmost strength; if, in serving his prince, he can devote his life; if in his intercourse with his friends, his words are sincere - although men say that he has not learned, I will certainly say that he has." |
![]() |
Link: The Religion Founder You Resemble Test written by Stinkbot on Ok Cupid, home of the 32-Type Dating Test |
The Line Outside Tomoe
Originally uploaded by The Amateur Gourmet.
I am woefully inexperienced when it comes to sushi/maki.
I've had pretty good sushi (in my limited experience) before, and I've had truly crappy sushi. When it's decent I enjoy it, although I remain intimidated by the mystique surrounding it, as described (and to some extent perpetuated) by things like the Sushi Eating HOWTO.
Last night I was treated to what can only be described as amazing sushi, at Tomoe Sushi in Greenwich Village. It was one of those rare experiences where the bar got set for all future encounters with a particular type of food. Thanks Bob!
(I've been past Tomoe several times before, and the photo above is accurate; there is always a line. It is well worth the wait.)
Tagged:
You scored as English. You should be an English major! Your passion lies in writing and expressing yourself creatively, and you hate it when you are inhibited from doing so. Pursue that interest of yours! |
What is your Perfect Major?created with QuizFarm.com
The problem with this quiz (and with most guidance counselors) is that it didn't ask me about anything I'm particularly interested in. Sure, there were a couple of answers that I rated at the maximum, but where were the questions about "I enjoy playing music" and "I enjoy making things with my own hands" and "I enjoy working with computers and technology" and "I enjoy taking photographs"?
No wonder I wound up in the "Might as well major in English" pile.
On stage and in print, Béla Fleck consistently comes across as genuine, friendly, and down to earth. I'd love to meet him someday - I almost feel like I know enough about 5-string banjo that I'd be able to have a meaningful conversation with the guy beyond the usual fan-stammering.
When he was in Northampton with his acoustic Trio last August, I hear tell he spent a couple of hours busking downtown. I was at work less than a mile away. A year earlier and I would have been working downtown, and probably would have heard (and quite possibly recognized) the playing through the office window. I try not to be too bitter about that.
Anyway, I love this snippet from the interview at http://www.blueridgecountry.com/faces/bela.cfm:
"I just try to play the banjo as if it were a musical instrument.
And sometimes when I say that people laugh, but it is a musical instrument [laughs] – it’s got strings, it’s got frets, and you can play anything on it that you can figure out how to finger and play."
Tagged: