Phil Nelson Writes Here

Tuesday, 6 January 2009

Using Mediawiki’s SocialProfile Extension Without exec() Support in PHP

Wikia’s great MediaWiki extension, SocialProfile, isn’t exactly the easiest thing to set up or use, especially if you are on a shared hosting environment. One of the many problems you might encounter is this PHP error when trying to enable user avatar uploads: Warning: exec() has been disabled for security reasons in /path/to/your/mediawiki/extensions/SocialProfile/SpecialUploadAvatar.php on line 262

What this means is that your web host has disabled the PHP function exec(), which allows the execution of unix commands from within PHP. As you can imagine, if misused this function could present serious security implications for a host, so it is very often disabled. Fortunately for you, I’ve gone ahead and re-written the function to use PHP’s graphics library, GD, instead.

Installation

To install the file, open up SocialUploadAvatar.php in your favorite text-editor and navigate to line 257. You should see a function named createThumbnail, which we’re going to entirely replace. Delete the function (lines 257 to 277 in version 1.3 of the script), and replace it with this linked file.

That’s it! You should be good, now, provided you have GD installed.

5 years, 8 months, 9 days after Launch, Most Music on iTunes Is Now DRM-Free

I knew they’d see it my way, eventually.

4chan Hacks Macrumorslive Keynote Coverage

If you follow along, you’ll see how quickly they find the admin UI, and then crack a single user’s password, and all hell breaks loose. After someone posted a goatse photo, the site was taken down entirely.

Monday, 5 January 2009

Tighten up the graphics

This can only be an ancient promotional spot for prolific good-graphics-makers Videlectrix.

Sunday, 4 January 2009

A Gift: My Version of The She-Ra Theme (MP3, AAC, Ringtone)

We’ve been watching season 1 of She-Ra: Princess of Power all day, and I cannot get the theme tune out of my head. A MIDI file and 20 minutes with Garageband later, this came out: A “cover” of the She-Ra theme by me, sans lyrics, plus awesomely cheesy techno rock touches. Enjoy it in AAC, MP3, and M4R (Ringtone) flavors.

I really did very little to the original arrangement, which is pretty great on it’s own.

Monday, 29 December 2008

Twit 4 Dead

Left 4 Dead-related twitterbots that talk to each other. Tom at Infovore:

Enter @louis_l4d, @zoey_l4d, @bill_l4d and @francis_l4d. You might notice that they’re named for the characters in Left 4 Dead.

This is not a coincidence.

With collected conversations. Fun code. “Cover me!”

“milkman, keep those bottles quiet”

This flickr set of old milk caps is great. Every single one is beautiful.

Sunday, 28 December 2008

This Is Why You Can’t Buy A Decent Chemistry Set For Your Kid Anymore

18-year-old college student with home chem lab arrested on suspicion of making meth and bombs. Cops admit they were wrong, but are still prosecuting.

2008 was the year that ability finally equaled intent. As far as the police are concerned (in the US or Canada at least), if you can do something, that means you are doing it.

Wednesday, 24 December 2008

The Elderly Criminals Of Japan

It is apparently a much bigger problem than youth crimes:

On Japan’s northern island of Hokkaido, more elderly than teenagers — by a 3 to 2 ratio — were arrested in 2006, police said.

Despite the arrest numbers, prosecutions of the elderly in a culture that holds them in high regard are rare. Stores often don’t even report the crime to police, according to security experts.

May The Christmas Chicken Cluck Upon Your Soul

Going dark until 2009, probably. See you on the other side.

Eye On Springfield

“Eye On Springfield is a retrospective of Simpsons hilarity spanning from seasons 1 to 9, when it was still funny.”

Monday, 22 December 2008

Paul Graham on a world After Credentials

As business breaks down from giant MegaCorps into more, smaller, units that can individually measure performance, credentials become less and less important.

Friday, 19 December 2008

Psychopedia, The Official Psychonauts Wiki

Looks like it is based on Mediawiki, with a heavy custom skin and uploads disabled. And hosted by the developers of the game, Double Fine.

Thursday, 18 December 2008

Mightier, indie game that lets your draw your own levels

Print out where all the stars and stuff are, and draw around them. Then scan it with your webcam, and play. Very cool.

A Mother’s Letter to Apple about Macworld Expo

If you consider yourself part of Apple’s family, you are delusional. Marvel is not your friend, Apple is not your friend, Nintendo is not your friend. They are gigantic businesses. Never forget this.

Also, family reunions are dumb.

You are on philnelson.name, a web log and idea dump by web developer Phil Nelson. He thinks we'll get along just fine. This site is valid HTML & CSS. If you want you can , but he might not get back to you right away, and he is already sorry about that. Don't want to scroll? Head back up ↑