sesam.hu

Engineering Manager | Trail Runner | Stockholm, Sweden

Analytics plugin bug

You may have noticed a recent issue with comment author links: they had  '%20rel='external%20nofollow" appended to the end of the URL. Apparently this is an incompatibility bug with the Google Analytics plugin by Rich Boakes (v0.68) and the latest release of WP. I found a thread on the WP support forums detailing a fix which I'm happy to say works. Simply change the following line in googleanalytics.php:

function comment_author_link($text) {
	static $anchorPattern = '(.*href\s*=\s*)[\"\']*(.*)[\"\'] (.*)';

To this:

function comment_author_link($text) {
	static $anchorPattern = '(.*href\s*=\s*)[\"\']*(.*\?)[\"\'] (.*)';

Gotta love regexp. :)

Bag of Hurt

DRM getting out of hands again: imagine the poor schoolteacher's shock when his new aluminum MacBook refused to play a movie he bought from the iTunes Store because a "a display that is not authorized to play protected movies" was connected.

The technology is called HDCP - High-bandwidth Digital Content Protection - and its main purpose is to protect digital content traveling through various high definition capable display ports from being copied. In this case it also prevented the teacher from showing a movie to his class on a projector.

Arguably a presentation of a movie to a classroom of kids stretches Fair Use or Private Viewing, and I don't know what the relevant US laws say. But still I think that if any DRM causes this kind of frustration to the rightful owners of the content, then it is flawed, and very much so.

Also if we assume that the exact same thing could happen to anyone who would want to watch a perfectly legally obtained HD movie at home, it's hard to argue that the protection used is effective. (In the teacher's case the Mini DisplayPort - VGA adapter caused the error.) Rightful owners should not be treated like criminals.

Commenters pointed out that the incorporation of the HDCP technology is probably the price Apple had to pay for getting a permission to put BluRay devices in future Macs. Also, since Apple is in the unique position of offering a download-and-carry model with the iTunes Store - meaning the customers will have a fully assembled movie file on their end when buying content - the licensors can play all kinds of hardball games with Apple in exchange for letting their content in.

Prop 8 - The Musical

Proposition 8 was a California ballot proposition that changed the state Constitution to restrict the definition of marriage to a union between a man and a woman and eliminated the right of same-sex couples to marry. (src) A lot of prominent people opposed the proposition in many ways, however I found this one unique: Funny Or Die's Prop 8 - The Musical, starring - among others - Jack Black, John C. Reilly, Neil Patrick Harris.

 

'Jesus Christ!'
'Hey, how's it goin''

Coltrane

SeSam.hu is now upgraded to WordPress version 2.7. Apparently the Make It Worn template works flawlessly with it.

Visitors won't notice much - maybe slight speed improvements - but for me it's a huge change. The revamped admin interface is a pure win. Almost everything is a box: reorganisable, customisable and removable. The whole blogging experience is starting to feel like using a desktop software. It puts in such sharp contrast the times when I used to edit HTML by hand in Notepad for each and every post. And it wasn't even that long ago.

Kudos to the WP team who continue giving this awesome CMS away, absolutely free of charge.

MIW public

I have finally created a page for the Make It Worn WordPress template. It is now available for download and (strictly non-commercial) use. The only changes I made for the release are a slightly better accentuated blockquote style and validation of the code. I hope at least some people would find the template to their liking.

Busy Bees

I should have suspected this when I saw the service truck stop in front of the block.

Before a new tenant moves in the apartments are usually refurbished. Mostly just the wallpaper changed but sometimes more. So now all morning I've been listening to holes being drilled, nails being hammered and wooden planks being sawed. Of course, what better time to do construction work than a Saturday morning.

This commitment to work the Japanese have can prove pretty annoying.

Beware of what you draw

Should I start asking people walking down a street if they agree with the importance of the freedom of speech I bet most of them would nod vehemently. But what if I asked if it's OK to draw profane cartoons about Islam? Or Christianity? Or cartoons in which the Simpsons kids are having sex?

Now we know what the law thinks, least in Australia:

Cartoon characters are people too, a judge has ruled in the case of a man convicted over cartoons based on The Simpsons, in which children are shown having sex.

Now this one raises a plethora of questions. Does it mean cartoon characters have human rights as well? What constitutes as a cartoon character? If an Australian kid scribbles an obscene cartoon on the side of his math book in class using stick figures can he be prosecuted? And why is pornography special when in almost any cartoon the characters break the law in many ways?

Neil sums up smartly at the beginning of his quite lengthy post regarding the topic:

If you accept -- and I do -- that freedom of speech is important, then you are going to have to defend the indefensible. That means you are going to be defending the right of people to read, or to write, or to say, what you don't say or like or want said.

Just another example I stumbled upon is the joint decision of UK internet providers to collectively block a wikipedia page for allegedly dangerous imagery:

The blocked page of the online encyclopaedia shows an album cover of German heavy metal band Scorpions, released in 1976. Internet providers acted after online watchdog the Internet Watch Foundation warned them its picture may be illegal. The IWF said it was a "potentially illegal child sexual abuse image".

The album cover belongs to Virgin Killer featuring a naked prepubescent girl. The decision stirred up so much controversy the wiki page was even locked up for a while preventing edit warring.

I tend to think looking at that album cover or the comic with the Simpsons can't turn anyone into a pedophiliac. And I believe it's absurd that something drawn, i.e. not real, can be grounds for child porn prosecution.

For this is war

A rough animation from the upcoming LFG Comic feature film that redefines teaser:

[youtube width="480" height="295"]http://www.youtube.com/watch?v=nFdLtoKQ7HU[/youtube]

If you missed out on it, there's also Slaughter Your World, which started it all.

OCD much?

Besides the new look Google Reader now has the option to hide the number that shows how many unread items a folder or feed has. I haven't really made up my mind if I'd want that or not, however someone pointed out in a comment I'm too lazy to look up that it could end the frustration and forced reading of feeds you're not really interested in just because you have a Reader backlog.

It's a valid point. My news folder usually bloats to 1000+ unread in matters of days. Even though I usually just scan the headlines for interesting bits of information. I also have a hard time keeping up with Sorozatjunkie: the parts that interest me are accompanied with a lot of completely irrelevant noise.

On more than one occasion I forced myself to read, or rather scan through, feeds I ignored for days just to make the unread number disappear. I can be very obsessive-compulsive about things like that. I'd also feel guilty about removing the feeds that I only rarely check. On the other hand I don't have a problem using "Mark all as read" to clean things up.

Trends report that I have a 100% reading rate of - among others - MacRumors, Yummie, isolde, Neil Gaiman and xkcd.

Do you use Reader? If yes, would you hide the number of unread items?

Marketing

If you think spam mail and pushy direct marketing is restricted to the so-called Western cultures you're very mistaken. Every day I get between five to ten items of various spam mail usually advertising apartments, various services and paid sex.

The ones that knock sometimes turn out to be from Kobe University: freshmen trying to recruit people to their respective clubs. The only thing that bothers me about this is how on earth they know my address? Although seeing how "safe society" always trumps privacy here I should not really be surprised.

Then I get newspaper salespeople and Jehovah's Witnesses. The latter are without exception sweet-looking old ladies with carefully hidden craziness in their eyes. This is why I never open my door to sweet-looking old ladies anymore but put on some loud Marilyn Manson instead.

Finally there's the J-com serviceman, the very reason I wrote this post. J-com devised some cunning plan to get to japanese people building on their natural habit of trying to keep things in the best condition. It starts with a pamphlet announcing that J-com - only working in the best interest of their customers - will have a maintenance person visit each household and check their cable connection. We're supposed to fill in a date that's good for us and wait.

Then the guy would come, and he'd crawl under my desk and check the "signal strength" coming from my cable I never use anyway. Then he'd announce me it's working perfectly. Seriously, what a shock, it has been like that the other fifteen times he or any of his colleague was here.

After that he'd announce that the exceptionally good reception I have makes me a prime candidate for J-com's this and that cable service, leaving a packet of colourful marketing material on my desk...

I have to endure this comedy every three months or so, even though I told them I don't want cable TV, my ISP is another company and I don't want to switch. I can see how it works though, Japanese would never say flat out no for a "serviceman" trying to check their connection (allegedly).