Star Trek XII Trailer

First teaser trailer for J.J. Abram’s new Star Trek movie.

As a trekkie who grew up with TNG and loves every single Star Trek series, I really hated JJ Abram’s Star Trek movie. It doesn’t have anything to do with Star Trek and imo it even fails as an action movie, or scifi movie, … it just fails. hard.

Being an optimist, I told myself: “The next Star Trek movie’s gonna be good … now that the characters are set up, J.J. Abrams can focus on a good story”. Now that I’ve seen the trailer, I kinda lost that hope – it just looks like the same superficial action flick that was Star Trek 2009.

But I’m not here to tell you what to think. I just wanna whine about stuff on the interwebs :D

Minecraft JavaScript Port Explained

Minecraft4k in JavaScript and how notch creates textures on the fly.

Yesterday, notch – creator of Minecraft – posted a JavaScript port of Minecraft4k. The code is pretty interesting as he doesn’t rely on canvas, but only uses it as a framebuffer – the rest is low level JS and could probably be ported to any programming language with basic pixel drawing abilities.

Today, YouTube user CooperPress uploaded a video explaining notch’s code – especially how he generates the textures on the fly.

PHP: Running ImageMagick or GraphicsMagick on MAMP

How to run ImageMagick or GraphicsMagick in a MAMP environment – aka “the libfreetype problem”


MAMP 2.1.1 on Mac OS X 10.7
GraphicsMagick 1.3.17 (installed via macports)


Invoking GraphicsMagick or ImageMagick via PHP’s system commands (system, exec, etc.) does not work – depending on your error reporting settings, there will either be no output at all or something along these lines:

Command output: “dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
Reason: Incompatible library version: convert requires version 16.0.0 or later, but libfreetype.6.dylib provides version 15.0.0″


MAMP is bundled with an outdated version of libfreetype (15.0.0). Luckily, Mac OS X already ships with the latest version – we just have to instruct MAMP not to use its bundled version:

  1. 1. Open up the following file: /Applications/MAMP/Library/bin/envvars
  2. 2. Add a ‘#’ to the last line, so it reads: #export DYLD_LIBRARY_PATH

I hope it helps :)

PHP: How to rename a blob on Windows Azure

Ready-to-use PHP script for renaming and/or moving blobs on Microsoft’s Windows Azure Blob Storage platform.

At work, we are currently using Microsoft’s Windows Azure Blob storage for saving media assets in the cloud before pushing them to a CDN. Using the Windows Azure SDK for PHP, it’s pretty easy to upload, list, delete and download blobs, but there’s no API call for renaming blobs or moving them to a different container. However, using the following workaround, we can simply add this functionality. Weiterlesen