Archive for May, 2008

Eclipse and CakePHP, BFF

Friday, May 30th, 2008

As popular and awesome as CakePHP is, there just isn’t enough documentation on it. I guarantee many hours or days learning to wrangle with it.

Using Eclipse to maintain CakePHP projects is even worse. Precisely one tutorial exists, and it just doesn’t, um, cut the cake. It left me more confused than before I started.

After spending an hour on IRC’s #cakephp, one very patient user guided me through the process. By the end of the session, all I really needed was a visualisation of the setup. He took a desktop snap and sent it to me. Bam! Eclipse and CakePHP were together in five minutes.

In the interest of aiding visual learners out there and filling in the gaps left by the CakePHP/Eclipse tutorial, I pass this image on to you.

Eclipse setup for CakePHP work

As the tutorial mentions, you will be creating two separate Eclipse projects: one for Cake core, and another for your project. Select everything inside /cake/cake and copy it into the core project; using /cake/cake as an include path works too. ((My biggest criticism yet of CakePHP: the developers didn’t spend any time thinking of the repercussions from naming a directory and its child the same thing.))

In your other project, use the core as an included project (right-click or whatever on Include Paths > Configure Include Path). Finally, select everything inside /cake/app and copy it into your project (again, including /cake/app is also valid).

That should work. If it doesn’t, feel free to comment below, though I’m likely to be of insufficient help. Otherwise, hum to yourself as you happily code away:

This was a triumph
I’m making a note here: ‘HUGE SUCCESS’…

Responses to comments after the jump…
(more…)

Alles Klar, Herr Kommissar?

Thursday, May 29th, 2008

In 7th grade (1997) I sneaked into Frau Bouska’s classroom at the end of her German 1B class, the 8th grader class. The room was dark, and every face was glued to the TV set up front. A man was dancing in place and singing. It made sense in theory, but it was in German and had the production values of a scaled back cable access TV channel, so it made my brain hurt.

‘What is this?’ I asked The Frau. She refused to tell me; for the answer, she said, I’d ‘have to wait ’til next year.’ It was clearly too special for 7th graders to appreciate.

Fast forward to 1998. She popped the PAL-to-NTSB-converted cassette in the VCR, and the secret was unwrapped. We were watching Falco music videos. To the unfamiliar, you probably know Falco best as the singer of ‘Rock Me Amadeus.’ To the girls, Falco was swoon-worthy and extremely sexy in his Miami Vice-style garb. To me, he became my favourite 1980s icon and one of mainland Europe’s finest pop musicians. As we watched the TV, everyone in the room agreed: we were watching a treasure.

‘Der Kommissar’ (imported to America by After The Fire) featured a music video so primitive, it wasn’t just filmed at the birth of the music video boom, it was music video’s premature baby, the result of snorting too many cocaine lines in discotheque bathrooms. It was a flagrant abuse of green screen technology. And for that, it was brilliant.

Today I compliment Frau Bouska for her decision to hold these videos only for advanced ages. Falco videos are fine wines intended to be aged. For a chaser, here’s the video to Rock Me Amadeus, which actually has production quality to it, likely because it had three more years of experience and development behind it than ‘Der Kommissar’:

Forever Forever Forever Forever: CWRU's Ridiculous Alma Mater

Monday, May 26th, 2008

It’s been a little over a year since I graduated from Case Western Reserve University (May 20th, 2007). My commencement was god-awful, with laughter in all the wrong places. The commencement speaker Richard Lederer ((Who? Yeah, that’s the question I asked.)), a man who makes a living cracking jokes about motherfuckin’ grammar, failed to score points with most of the crowd. Grammar can be funny, but he talked about his professional poker-playing kids ((Both their Wikipedia articles are longer than his; the latter is three times so.)) more than his livelihood, so I had all the reasons I needed to take a nap for 20 minutes.

All the laughter was pent up in preparation for Case Western’s alma mater song. A tune that should inspire pride and honour in alumni instead made me struggle to keep from snickering. It was written in 1990, even though CWRU was founded in 1826.

Shine on, forever, Case Western Reserve.
Loyal and true are we (are we).
Your brave sons and daughters,
Your knowledge we use to make our history.

Our school days we will cherish forever more,
A lifetime of friends from the start (the start).
Shine on, forever, Case Western Reserve.
You’ll be forever in our hearts.

Let me outline a few rules for any future anthem writers that may be reading:

  1. Don’t make your school song so generic that the college’s name can be swapped out with another and have it still make sense.
  2. Don’t use the same noun word (pronouns excluded) more than twice. Count the number of times forever is used above. Thanks to Warren for pointing out that, in fact, forever is not a noun.
  3. CWRU’s song could have been produced by a computer algorithm told to give weight to a short list of sentimentalist buzzwords. If your school song passes the Turing Test, you’re doing it wrong.
  4. Creativity is rewarded, which is why ‘The Eyes of Texas’ is one of the most famous alma maters of all time to the point it is considered an unofficial state song. Phrases like ‘make our history’ are clearly plagiarised from Party of Five screenplays.

Confirmed In Bacon

Friday, May 23rd, 2008

What is it about bacon and stupid Internet ideas? No garden bench or tantalising pose makes clothing-qua-bacon look good. Were he wearing bacon-qua-clothing, and he were a she, then we’d have something.

Since we’re discussing food: I’m down to 174 lbs., which isn’t an outstanding drop since last I brought it up. Exercise hasn’t been that good lately due to IOL preparations and other work. It really is the diet/exercise duo that produces good results—news at 11.

Boo-Urns

Sunday, May 18th, 2008

Orchestral music has become a historical artifact. People come up in their finest attire to observe silently from a distance as if the men and women were in a glass box. At some point we started experiencing obligation to appreciate what we see and hear in artistic performances. Anything less would produce hurt feelings—heaven forbid!

Concert-goers didn’t used to be this way. Emotional reaction from audiences were commonplace to the point that composers feared their reactions. Stravinsky’s 1913 première of The Rite of Spring resulted in public, violent rioting. More importantly, music was not a presentation piece; it was a way to socialise, see, and be seen. Prior to the 20th century, it was encouraged to converse, stand up, and walk around during an opera. Today, chatting to the guy next to you during live classical music is akin to pulling down an Elgin Marble and taking a poo on it.

Orchestras have much to learn from the customs of this generation and, surprisingly, many preceding it. I don’t go to rock concerts because of the music—I have the MP3s and good speakers to boot. Instead, I go to concerts to move and live with the crowd. Meanwhile, sitting in a dark concert hall is uncomfortable and awkward. Yes, the music’s pretty—it doesn’t stop my eyes from wandering, desperately seeking amusement. I don’t advocate laser light shows to accompany Mahler’s 5th Symphony. (I bet Gus would approve if it were suggested.) The act of concertgoing would benefit from deformalisation. The sooner orchestras stop being wrapped up in how sacred their work is, the more effectively we can heal the rift between contemporary genres and classical music.

Deformalisation would break down the sense of obligation as well. Patrons visit concert halls to appreciate music, and it would take sheer musical butchery to leave the goal unfulfilled. Changing attitudes to accomodate pursuing amusement instead of appreciation carries a bonus: if a patron comes to be amused and is not indulged, his time and money is being wasted. If Michael Richards can’t get away with disregarding his audience, why should your favourite local orchestra? Booing and showing displeasure towards repulsive contemporary music is the only way for a crowd to communicate its sentiments of the moment. You can’t write a letter from the mezzanine, and even the laziest slob with some musical sense has a say.

In hindsight, my reforms produce an amusing double-edged sword of theatre-going. On one hand, I insist people should go to have fun and listen casually. On the other hand, consider the responsibility of booing down bad music, preventing it from reaching future music appreciation classes in which it shouldn’t belong. If the partition bothers you, throwing chairs always speaks louder than words!

Butt Loop

Tuesday, May 13th, 2008

Artist unknown. I’ve always questioned the wisdom of certain programming keywords (for? try? catch? bunt?), so a puerile programming language makes just as much sense…maybe more.

Butt Loop


UPDATE: Much changes in a year. About February 2009 I added the webcomic Saturday Morning Breakfast Cereal to my daily RSS rounds. Revisiting this post today (almost May 2009), I immediately recognise the art as being from said comic. Another loose end tied up.

The Farts of Chairman Mao

Friday, May 9th, 2008

My farts are socialist farts. They have to be fragrant.

Mao Tse-Tung

The current generation is woefully unaware of who Mao Tse-Tung was. 70 million people died from starvation and warfare under his command, which makes Stalin’s Gulag Archipelago blanche in comparison. Even if that number refuses to stick in Americans’ heads, I at least pray that people learn that, well, Mao was kind of a dick, too. I recommend Mao: The Unknown Story (Chang & Halliday) for detail on the man’s background. It takes no time at all for the authors to show that he was 1/3 sociopath, 1/3 lazy, 1/3 blockhead. With a bonus 1% dedicated to scatalogical.