More Magento Annoyances

This week I had to deal with yet more stupid Magento behaviour. First, I had to overload a core controller class. Naively, I tried doing it the easy way at first—ie: simply duplicating the file and file path in the /app/code/local directory and making my changes there. (Which, BTW, always struck me as a deeply stupid way to go about things, but that’s another story)—but that didn’t work.

This week I had to deal with yet more stupid Magento behaviour. First, I had to overload a core controller class. Naively, I tried doing it the easy way at first—ie: simply duplicating the file and file path in the /app/code/local directory and making my changes there. (Which, BTW, always struck me as a deeply stupid way to go about things, but that’s another story)—but that didn’t work. A further bit of research told me that hey, controllers can’t be overridden that way. What you have to do, apparently, is create your own extension, with a controller class extending the core class, and perform other configuration magic.

Read the whole tutorial in the official Wiki here. Speaking of, I’m a little appalled at how incomplete and in need of a cleanup this article is, for what you’d think is a pretty important operation. Not only that, but the editors can’t even seem to agree on the details. For example, regarding Step 2, should the rewritten URL in the config file contain a leading slash or not? For the record, I did need those slashes, but maybe that depends on the version. That, plus lines like

(comments I’m not a 100% sure about are ending with “(?)”):

and

You need to get extra precise with the rewrite regular expression cause this causes a very hard time. In this part.

make the article look really unprofessional. Guys, it’s your freaking official freaking Wiki, you need to (a) be 110% sure about what you’re putting up, and (b) write in correct English. Sheesh.

Anyway. So I followed the instructions and it worked. Yay? But wait! In a crazy twist, my override controller (ie: in the extension) was actually extending my local controller (ie: the duplicate of the core class, that I’d forgotten to delete). So… a local override could have worked after all? Or is it a bug? I have no idea. I decided to just delete the local override and call it a day.

(There was another issue that at first I blamed on a Magento default template, but on mature reflection may have been caused by our team.)

Movie Review: The Last Airbender

Against my better judgment I went to see The Last Airbender. Ohmygod, that was bad. I blame the heat wave and needing to spend an afternoon in an air-conditioned theatre. Plus, let’s be honest, a sick train-wreck curiosity. I just had to see if the movie was as bad as everybody said.

Against my better judgment I went to see The Last Airbender. Ohmygod, that was bad. I blame the heat wave and needing to spend an afternoon in an air-conditioned theatre. Plus, let’s be honest, a sick train-wreck curiosity. I just had to see if the movie was as bad as everybody said.

I loved the original TV show. It had a great story, well-developed characters, cool mythology, amazing visuals and exciting action. This movie… has none of that. The acting is sub-par, the martial arts and special effects are just about decent, the writing is awkward and painfully expository, the characters are boring and one-dimensional, with none of the zip and fun of the TV show. Shyamalan claims to be a fan, so I hear, but nothing about this movie tells me he really respects the source material. None of what made the show really come alive was translated to the big screen.

Part of the problem, I’ll admit, is that Shyamalan decided to condense all of season one into 1 hour and 45 minutes of movie. Fair enough, I guess, though it does mean dropping a lot of excellent characters and world-building, not to mention development of the characters that remain. The Kyoshi warriors? King Bumi? the “sexyfine” Haru? Jet? Jeong Jeong? Bato? The mechanist community? Master Pakku? Avatar Roku? Fucking Koh the Face Stealer? All gone, sorry. Gone also is the chemistry between Aang and Katara, gone is Katara’s growth into Team Mom and badass waterbending fighter, gone is Iroh’s sweetness and coolness, gone is most of the world’s mythology, the Avatar’s history and their relationship with the spirit world.

What’s left? The bare bones of the first season story arc: the premiere (Aang is found and captured, escapes, and head north with Sokka and Katara, pursued by Zuko and Zhao); a bit of The Southern Air Temple, where Aang deals with the loss of all his friends and his culture; a bit of Imprisoned, which begins a fairly irrelevant subplot of the Gaang fomenting rebellion in Earth Kingdom villages; most of The Blue Spirit, where Aang is captured by Zhao and broken out by Zuko; and the finale, where the Fire Nation attacks the Northern Water Tribe city (more about that later). In between all that we get told some of Aang and Zuko’s backstories, in flashbacks and amazingly awkward exposition.

What’s also left, of course, is the magical kung fu, but that mostly falls flat. The FX are competently done, and so are the martial arts (I guess; I’m not an expert), but together they just don’t work. The connection between physical movements and elemental effects are broken because for some reason, Benders need to do various moves for a few seconds (to “warm up” their ch’i, I guess) before anything happens. These moves are usually too quick and small to really look good on screen. The end result isn’t cool, it’s not pretty, it’s just really distracting. Maybe it was a mistake to translate an animated show to live action, or maybe a better director could have made it work, I don’t know.

Shyamalan’s failure as a writer is most obvious in the climactic battle between the Fire Nation and the Northern Water Tribe: almost all of the amazingly epic scenes in the series were either left out of the movie, or simply ruined. Not just done badly: done wrong. Zhao killing the Moon Spirit, Iroh unloading a can of whoop-ass, Yue’s sacrifice, Aang saving the day, Zhao’s death, every single one of them was a middle finger aimed at the fans. I honestly can’t understand how Shyamalan could think his changes are an improvement on the series. I’ll just highlight a couple:

In the TV series, Yue’s farewell scene was touching and wonderfully done. She becomes the new Moon Spirit, ascending to a higher plane of existence, and even has time for a final ethereal kiss with Sokka. In the movie she just… dies. Her life energy flows into the Koi fish, and her body stays floating in the pool. Lame.

In the TV series, Aang merges with the Ocean Spirit to lay some righteous smackdown on the Fire Nation fleet, in an awesome spectacle that combined stunning visuals, lovely music, and epic action. In the movie, Aang was never near the spirit pool. But that’s okay, I thought, he doesn’t need the Ocean Spirit. Yeah, he’s in the Avatar State now, that’s awesome! And summoning a tidal wave, like he almost did a couple of times before. He wasn’t ready then, but “water is the element of acceptance,” so let your emotions flow, and unleash all your rage and grief at the Fire Nation fleet!

… any minute now…

No? You’re just going to… hold it there? Oh, you’re waiting for the fleet to turn and run? Huh. Okay. I was hoping for some epic kickassery, but whatever floats your boat, I guess.

The movie ends with Aang accepting his destiny and the Firelord expositing about Sozin’s comet, thus setting up the rest of the trilogy. But with the horrible reviews this movie’s getting I’d be very surprised to see the sequel. Good thing, too. The last thing I want to see is Shyamalan fucking up Toph, Azula, Zuko’s change(s) of heart, and all the shadowy, creepy plots in Ba Sing Se.

Mind you, if he does make that movie, I have a feeling I might go see it. Because I am weak that way. Though if it’s any comfort, I promise I’ll feel really bad about it.

This is what happens when you mix science and religion

Dr. Hugh Ross is full of shit.

Sure, he’s obviously a smart guy. He knows a lot about science–Astronomy, Mathematics, etc… But he’s also a biblical literalist, and what’s worse, he’s trying to support the one with the other.

Dr. Hugh Ross is full of shit.

Sure, he’s obviously a smart guy. He knows a lot about science—Astronomy, Mathematics, etc… But he’s also a creationist, a biblical literalist, and what’s worse, he’s trying to support the one with the other.

Last night I went to a debate sponsored by CFI and Reasons to Believe: “What’s right and wrong with Christianity?”, taking place at Tenth Avenue Church. Dr. Ross took the “right” side and spoke first, basically blathering on about how modern science fit so well with the biblical creation story, therefore it has to be true. Humans are so unlikely, what with our big brains with no survival value, therefore we must have been designed. Christianity is unique, therefore etc… And so on.

All this delivered at a well-rehearsed breakneck pace, too fast for the audience to do more than go “wait… what?” before moving on to the next bible verse or pretty graph or inspirational urban legend. It was dizzying, frustrating, incredibly condescending, but really not that surprising. I didn’t know Dr. Ross, but I’d read and heard similar “christianity is right and other religions are wrong neener neener” arguments before and, honestly, theists never come up with anything really new.

Which is actually okay, for his usual audience. Because even though last night the people filling the pews were mostly atheists and skeptics, I had the definite impression Dr. Ross was only used to preaching to the choir. Everything he said was designed to appeal to Christians, to reassure them that their beliefs were right. There was nothing there for nonbelievers, or even believers of other faiths. In fact, he kept using loaded terms, like “atheist scientists,” that implied a definite us-vs-them attitude. I’ve seen that before, too, in that creationism vs evolution debate a few years back.

Brian Lynchehaun (who I remember from Skepticamp), addressing the “wrong” side, didn’t go into historical truth or scientific truth, though he easily could have. His speech (much shorter, less rehearsed) dealt with the morality of Christianity; his thrust was that the Bible was not a perfect moral code. In fact, it wasn’t even an especially good one. Its commandments are inconsistent, and its elevation of faith is dangerous because it leaves you open to a whole slew of scams that wouldn’t work on skeptics.

This is what happens when you don’t keep religion and science separate: leave the door open for God or mysticism in your theories and you’re opening a Pandora’s box, because there’s no end to what you can put in. You say Jesus’ body was never found? Maybe the apostles took him. Maybe the Pharisees took him. Maybe he rose from the dead. Maybe he was beamed up by time-traveling Christians out to clone a Messiah 2.0. Mr. Lynchehaun did point out that “God” as an explanation is no less silly than “superpowerful little green men.”

But Dr. Ross isn’t even doing that. He doesn’t respect science, he’s just whoring it out to service his pre-existing beliefs. He’s wrapping the bible in a white lab coat to give it extra prestige for his ignorant flock, thereby twisting and demeaning both spheres. And it’s ironic that he and his audience even want a reason for believing in Christ. What it tells me is that, if they seek (pseudo-)scientific justifications for their faith, then it’s probably a pretty weak faith to begin with, and they’re willing to grab at any straw to hold their house of cards together*. Frankly, I’d have a lot more respect for Christians if they just appealed to simple faith to defend their beliefs. They’d still be wrong, sure, but at least I’d respect the honesty.

(* Apologies for the mixed metaphor)

Burn in Hell, Jerry Falwell

Okay, I wasn’t going to write about Falwell’s death… but then I thought, what the hell, all the cool kids are doing it. Let’s start with a stirring eulogy by Christopher Hitchens:

Okay, I wasn’t going to write about Falwell’s death… but then I thought, what the hell, all the cool kids are doing it. Let’s start with a stirring eulogy by Christopher Hitchens:

“People like that should be out in the street, shouting and hollering with a cardboard sign and selling pencils from a cup.” Ha! Yeah, Hitchens is kind of an obnoxious asshole who loves to hear himself talk sometimes (seriously, “Chaucerian frauds”?). But when he’s right, he’s right.

Marc Adams came to SFU in 1998 to talk about his experiences growing up gay in a fundamentalist Baptist environment. Adams had gone to Falwell’s Liberty University. He survived—not all gay students did.

Marc talked about Kent, a student who was kicked out of Liberty for being gay. Even though they were in the same prayer group together, Marc was too busy trying to “become straight” to reach out to Kent. They never talked about being gay, not even as Marc helped Kent carry his suitcases to the curb. Marc feared a close association with Kent would arouse suspicions about his own sexuality. “A couple months after that I got a letter from him in the mail and the first thing he said was that his parents obviously did not kill him, but they did throw him out of the house and he was living on the street. He told me though, that he had found a way to cure himself of his homosexuality, that he had been able to do it, and he left a phone number for me to call. And so I called the number and it rang to his parents house and his brother told me how Kent had, just a couple days earlier, broken into their house and taken one of his father’s guns, and blown off the back of his head.”

I remember some members of the audience were in tears during Adams’ talk. Me, I wasn’t crying; I was angry. If I’d had the power, I would have cheerfully burned Liberty University to the ground right then. Though he didn’t pull the trigger, Falwell and his followers are to blame for filling that boy’s head with lies, fear and shame, making him feel he had no other options.

Here’s something I didn’t know: before getting into the homophobia and anti-abortion business in the 70’s, Falwell used to be a segregationist. From a sermon he made four years after the 1954 landmark case Brown v. Board of Education:

“If Chief Justice Warren and his associates had known God’s word and had desired to do the Lord’s will, I am quite confident that the 1954 decision would never have been made,” Falwell boomed from above his congregation in Lynchburg. “The facilities should be separate. When God has drawn a line of distinction, we should not attempt to cross that line.”

Falwell’s jeremiad continued: “The true Negro does not want integration… He realizes his potential is far better among his own race.” Falwell went on to announce that integration “will destroy our race eventually. In one northern city,” he warned, “a pastor friend of mine tells me that a couple of opposite race live next door to his church as man and wife.”

Not too surprising from a little toad (thanks, Christopher!) whose other career highlights include bigotry, lies, corruption, and the outing of Tinky Winky. Blaise Pascal wrote, “Men never do evil so completely and cheerfully as when they do it from religious conviction.” Falwell spent his life proving Pascal right, and inspiring others to do the same. He was a monster and a creator of monsters. The world is better off without him.

PS: This will blow your irony meters. Apparently, Fred Phelps (yes, that Fred Phelps) will picket Falwell’s funeral. For real. Damn, that’s too funny.

Comic Book Review: Seekers Into The Mystery

They say confession’s good for the soul, so here goes:

I’ve read The Celestine Prophecy.

Yes, that’s right. Me, the hard-nosed skeptic. Well, that wasn’t always the case. There was a time when I was a bit more interested in the woo-woo side of things. And in my defense, I didn’t really know what the book was about until I actually read it.

They say confession’s good for the soul, so here goes:

I’ve read The Celestine Prophecy.

Yes, that’s right. Me, the hard-nosed skeptic. Well, that wasn’t always the case. There was a time when I was a bit more interested in the woo-woo side of things. And in my defense, I didn’t really know what the book was about until I actually read it. See, sometime in 1995 I’d heard about this new Vertigo series called Seekers Into The Mystery, to be written by J.M. DeMatteis (who’d also written Moonshadow, which at the time I loved); it was described as “X-Files meets The Celestine Prophecy.” Well, that was enough to pique my interest. I really liked X-Files, I liked J.M. DeMatteis so to get the proper feel, I also decided to read Celestine. Continue reading “Comic Book Review: Seekers Into The Mystery

“I appointed you as a prophet to the nations.”

Because, honestly: how is this billboard not shameless religious propaganda?

Oy.

before

That kind of crap really makes my blood boil, it does, and not just because I’m firmly pro-choice. Leaving aside my views for the moment, this is more evidence that the anti-choice movement was and still is driven by sectarian, dogmatic principles. Because, honestly: how is this billboard not shameless religious propaganda? It consists only of a Bible verse (actually, only part of a verse, more on that later), and is signed “God”—though that bit seems to have been plastered over by some anarchists. It’s the arrogance I cannot stand, of people who’re so sure they know the mind of (their) God; their presumption as they cheerfully insult non-Christian believers, moderate Christians, and atheists; their cowardice, as they hide behind their holy book and three-letter deity, instead of owning their positions and thinking for themselves; and their self-delusion, if they believe this particular quote has any relevance whatsoever to anyone outside of their movement.

(To be fair, this eyesore is marginally less boneheaded and blasphemous than those other “God Speaks” billboards, if only because it quotes actual Scripture instead of just making shit up and putting words in God’s mouth. The question of whether said Scripture is itself made-up shit is not one we will address at this time.)

Just for fun, let’s take a closer look at the Bible quote and see what, if anything, the hell it has to do with the abortion debate. The reference (in case it’s not clear) is Jeremiah 1:5. Here are the first five verses from Jeremiah 1 (New International Version):

1The words of Jeremiah son of Hilkiah, one of the priests at Anathoth in the territory of Benjamin.
2The word of the LORD came to him in the thirteenth year of the reign of Josiah son of Amon king of Judah,
3and through the reign of Jehoiakim son of Josiah king of Judah, down to the fifth month of the eleventh year of Zedekiah son of Josiah king of Judah, when the people of Jerusalem went into exile.
4The word of the LORD came to me, saying,
5“Before I formed you in the womb I knew you, before you were born I set you apart; I appointed you as a prophet to the nations.”

Seen in context, this looks more about some prophet saying how special he is, and not much about how wrong it is to abort fetuses (at least those that won’t grow up to be Old Testament prophets). So I have to wonder, why did they pick this verse? Is Jeremiah 1:5 the best Biblical support the anti-choice movement can come up with? Well, yeah, it kind of is. Good thing they had that cutesy widdle baby and teddy bear to give people warm fuzzies and distract them from the lack of message.

Because I’m feeling especially mean (and I want to show off my mad photoshopping skillz), here’s another heartwarming Bible verse. There’s lots more where those came from. Exactly why do they call it “The Good Book”?

happy

Movie Review: What The Bleep Do We Know

Tag line: “It’s time to get wise!”

Uh-huh.

I heard about this movie from a friend of mine, who’d seen it, loved it, and urged me to go see it for myself. From the online trailer, and a couple of reviews I’d read, it looked like your typical pretentious yet shallow New Age fluff, and thus a complete waste of my time. Hell, I’d already suffered through half an hour of Waking Life, people! Nobody should have to endure that twice.

Tag line: “It’s time to get wise!”

Uh-huh.

I heard about this movie from a friend of mine, who’d seen it, loved it, and urged me to go see it for myself. From the online trailer, and a couple of reviews I’d read, it looked like your typical pretentious yet shallow New Age fluff, and thus a complete waste of my time. Hell, I’d already suffered through half an hour of Waking Life, people! Nobody should have to endure that twice.

But: This friend is an even bigger skeptic than I am, and every time we saw each other he asked if I’d seen it. When I answered no, he kept insisting I had to see it. Okay, obviously somebody somewhere was missing something, and I couldn’t be sure it wasn’t me. I trusted my friend’s judgement so, even though my expectations weren’t high, I decided I had to go see it for myself. Keep an open mind, right?

My verdict: Bleah. Where do I even start? How about with the lazy, lazy writing? There’s no story here. Most of the movie is taken up by talking heads babbling a lot of platitudes about the wonders and mysteries of Quantum Mechanics and the human mind. Most of what isn’t talking heads is pretty special effects, of atomic nuclei and galaxies and… a sort of wormhole thingy, which maybe was supposed to represent quantum tunneling? I don’t know. Oh, and a shimmering grid occasionally overlaid on the “normal” world, vanishing and reappearing at random, that was supposed to symbolize how illusory the real world is. It looks just like the Enterprise-D’s holodeck grid, except that grid was yellow and this one is blue. A blatant ripoff, in my opinion.

The rest of the movie was taken up by a paper-thin parable, further driving home the messages of the talking heads. The characters are completely two-dimensional, and even that’s probably generous: there’s the Hard-Nosed Skeptic, who eventually starts believing in spite of her better judgement… and for some reason was written as speech-impaired (possibly hearing-impaired as well, though that wasn’t consistently portrayed. More sloppy writing); there’s her roommate (or lover? again, that part wasn’t clear), the Somewhat Ditzy But Nice And Well-Meaning Believer; and you’ve got the Inexplicably Wise Basketball-Playing Kid, who appears out of nowhere to spout yet more wisdom at the Skeptic and coax her “down the rabbit hole.” Viewers may identify with one or more of them to some extent, because they’re so archetypal (to be charitable), but they have no way to really connect with them, or understand what makes them tick. But then, we’re not supposed to connect with these characters. They—along with the talking heads—exist only to serve as mouthpieces for the movie’s Big Message.

And what is that message? The usual New Agey clichés: The denial of objective reality (‘cos we create our own reality, inside our minds and by interacting with the universe, because of quantum); the need for a “new paradigm;” the glorification of mystery over knowledge, and childlike wonder over skepticism; cool-sounding myths that are highly suspect (though not provably false), like the one about Native Caribbean people at first not being able to see Colombus’ ships on the ocean because they’d never seen ships like that before; cool-sounding myths that are provably false, like Transcendental Meditation reducing crime rates. And through it all, very complex topics like QM and cognitive science being either misrepresented or mangled into sweet-tasting sound bites to support these mystical beliefs.

I walked out of the theatre after about 45 minutes; I’d been checking my watch and rolling my eyes for… well, pretty much all of the movie up to that point, really, but the mention of Transcendental Meditation was the last straw.

So what was I supposed to get out of this movie? That the world is a strange and exciting place? Yes, it certainly is. But I already knew that, from reading legitimate science books. That we can be slaves to our own perceptions and assumptions? That it wouldn’t hurt to look at the world with wonder and fresh eyes from time to time? You won’t find me disagreeing. But I believe that movies like What The Bleep Do We Know? are more a distraction than anything else. One may watch it and feel suitably enlightened or at least pleasantly confused, but ultimately the movie offers no genuine substance. Instead it shows some seriously exciting science, hopelessly distorted into a colourful kaleidoscopic jumble that gives lay people only the illusion of understanding. Do you want to see the world and appreciate its beauty? Do you want to change your life, become more than who you are now? Then go out there and do it. You don’t need to waste your time with this vapid mystical fluff. The world is exciting enough without filling your head with other people’s fantasies. As the late, great, Douglas Adams wrote, “Isn’t it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?”

…This I Know, For The Bling-Bling Tells Me So

So I’m driving to work this morning, grooving to La bottine souriante, when a car pulls up next to me at a red light. I don’t really pay attention, until I see the guy in the front passenger’s side pulling down his window, specifically trying to get my attention. What the hell? Do I know him? A quick memory scan turns up negative. Has he spotted my rainbow flag bumper sticker and now wants to cruise me? He’s cute, young, with a nice smile and dark spiky hair… and wearing a huge-ass, gaudy gold crucifix, which he’s holding up with a hand graced by an equally huge-ass, equally gaudy gold ring. Get down with your gangsta self, white boy!

So I’m driving to work this morning, grooving to La bottine souriante, when a car pulls up next to me at a red light. I don’t really pay attention, until I see the guy in the front passenger’s side pulling down his window, specifically trying to get my attention. What the hell? Do I know him? A quick memory scan turns up negative. Has he spotted my rainbow flag bumper sticker and now wants to cruise me? He’s cute, young, with a nice smile and dark spiky hair… and wearing a huge-ass, gaudy gold crucifix, which he’s holding up with a hand graced by an equally huge-ass, equally gaudy gold ring. Get down with your gangsta self, white boy! But wait, he’s not just holding up the crucifix, he’s actually kissing it, in between trying to tell me something which I can’t hear because my window is still up.

Whoah. Is this is how the young queers dress and cruise nowadays? Okay, so the light’s still red, and I’m kind of curious (and kind of apprehensive) about this grinning freak. I roll down the window, and finally hear what he has to say.

“Jesus loves you!”

Oh. Well, that’s great. And Santa loves you too. So this wasn’t about my rainbow flag sticker, but my “Born OK The First Time” sticker, and Darwin fish.

Message delivered, my new hit-and-run missionary friend rolls up his window and, the light having turned green, we drive off in different directions.

Seriously, what the fuck is wrong with these people? Did they just see a passing heathen, ripe for witnessing, and just unloaded their little catch phrase, which of course I have not heard a million times before, not in person, in print, on TV, on the Net, not me, because I was raised by wolves—atheist wolves, in fact—and have only just this week rejoined civilization. Then they move on, their bellies full of the warm glow of a job well done, having earned another brownie point from Jesus. Not interested in a dialogue. Or even in an argument. Not interested in wondering if this brain-dead tactic actually works. Because I can tell you right now, Gentle Reader, that it did not work on me. Not today, and none of the other times that shit’s been pulled. Did I get all misty-eyed at the thought that some imaginary resurrected being loves me, me personally? Did I suddenly develop a driving urge to immediately explore the holy books relating the story of this Jesus character?

No. No, I did not. But was I pissed at the interruption of a kick-ass Franco-Canadian musical moment? Why, yes I was. Was I filled with disdain for the hiphop missionary, and all missionaries like him, repeating words that had no meaning outside their religion, unable to see any points of view besides their own? I believe that was the case as well. Was I motherfucking creeped out by the crazily compulsive kissing of the crucifix? I will not deny this. And was I more grateful than ever for leaving the baggage of faith behind, having seen—as if I needed another reminder—how it can mess people up? You better believe that’s a yes.