<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Tobias Eisenschmidt</title>
	
	<link>http://www.tobiaseisenschmidt.de</link>
	<description>PHP developer and frontend engineer</description>
	<lastBuildDate>Sat, 16 Feb 2013 21:51:21 +0000</lastBuildDate>
	<language>de-DE</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TobiasEisenschmidt" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="tobiaseisenschmidt" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Star Trek XII Trailer</title>
		<link>http://www.tobiaseisenschmidt.de/blog/star-trek-xii-trailer/</link>
		<comments>http://www.tobiaseisenschmidt.de/blog/star-trek-xii-trailer/#comments</comments>
		<pubDate>Thu, 06 Dec 2012 13:27:06 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Movie]]></category>
		<category><![CDATA[Star Trek]]></category>
		<category><![CDATA[Trailer]]></category>

		<guid isPermaLink="false">http://www.tobiaseisenschmidt.de/?p=785</guid>
		<description><![CDATA[First teaser trailer for J.J. Abram's new Star Trek movie.]]></description>
				<content:encoded><![CDATA[<p><iframe width="640" height="360" src="http://www.youtube.com/embed/diP-o_JxysA" frameborder="0" allowfullscreen></iframe></p>
<p>As a trekkie who grew up with TNG and loves every single Star Trek series, I really hated JJ Abram&#8217;s Star Trek movie. It doesn&#8217;t have anything to do with Star Trek and imo it even fails as an action movie, or scifi movie, &#8230; it just fails. hard.</p>
<p>Being an optimist, I told myself: &#8220;The next Star Trek movie&#8217;s gonna be good &#8230; now that the characters are set up, J.J. Abrams can focus on a good story&#8221;. Now that I&#8217;ve seen the trailer, I kinda lost that hope &#8211; it just looks like the same superficial action flick that was Star Trek 2009.</p>
<p>But I&#8217;m not here to tell you what to think. I just wanna whine about stuff on the interwebs <img src='http://www.tobiaseisenschmidt.de/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tobiaseisenschmidt.de/blog/star-trek-xii-trailer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minecraft JavaScript Port Explained</title>
		<link>http://www.tobiaseisenschmidt.de/blog/minecraft-javascript-port-explained/</link>
		<comments>http://www.tobiaseisenschmidt.de/blog/minecraft-javascript-port-explained/#comments</comments>
		<pubDate>Mon, 03 Dec 2012 16:57:19 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Minecraft]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.tobiaseisenschmidt.de/?p=779</guid>
		<description><![CDATA[Minecraft4k in JavaScript and how notch creates textures on the fly.]]></description>
				<content:encoded><![CDATA[<p>Yesterday, notch &#8211; creator of Minecraft &#8211; posted a <a href="http://jsdo.it/notch/dB1E">JavaScript port of Minecraft4k</a>. The code is pretty interesting as he doesn&#8217;t rely on canvas, but only uses it as a framebuffer &#8211; the rest is low level JS and could probably be ported to any programming language with basic pixel drawing abilities.</p>
<p>Today, YouTube user CooperPress uploaded a video explaining notch&#8217;s code &#8211; especially how he generates the textures on the fly.</p>
<p><iframe width="640" height="360" src="http://www.youtube.com/embed/WaZvDCmlERc" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tobiaseisenschmidt.de/blog/minecraft-javascript-port-explained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Running ImageMagick or GraphicsMagick on MAMP</title>
		<link>http://www.tobiaseisenschmidt.de/blog/php-running-imagemagick-or-graphicsmagick-on-mamp/</link>
		<comments>http://www.tobiaseisenschmidt.de/blog/php-running-imagemagick-or-graphicsmagick-on-mamp/#comments</comments>
		<pubDate>Wed, 28 Nov 2012 16:43:47 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.tobiaseisenschmidt.de/?p=756</guid>
		<description><![CDATA[How to run ImageMagick or GraphicsMagick in a MAMP environment - aka "the libfreetype problem"]]></description>
				<content:encoded><![CDATA[<h4>Scenario</h4>
<p>MAMP 2.1.1 on Mac OS X 10.7<br />
GraphicsMagick 1.3.17 (installed via macports)</p>
<h4>Problem</h4>
<p>Invoking GraphicsMagick or ImageMagick via PHP&#8217;s system commands (system, exec, etc.) does not work &#8211; depending on your error reporting settings, there will either be no output at all or something along these lines:</p>
<blockquote><p>Command output: &#8220;dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib<br />
Reason: Incompatible library version: convert requires version 16.0.0 or later, but libfreetype.6.dylib provides version 15.0.0&#8243;</p></blockquote>
<h4>Solution</h4>
<p>MAMP is bundled with an outdated version of libfreetype (15.0.0). Luckily, Mac OS X already ships with the latest version &#8211; we just have to instruct MAMP not to use its bundled version:</p>
<ol>
<li>1. Open up the following file: /Applications/MAMP/Library/bin/envvars</li>
<li>2. Add a &#8216;#&#8217; to the last line, so it reads: #export DYLD_LIBRARY_PATH</li>
</ol>
<p>I hope it helps <img src='http://www.tobiaseisenschmidt.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tobiaseisenschmidt.de/blog/php-running-imagemagick-or-graphicsmagick-on-mamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: How to rename a blob on Windows Azure</title>
		<link>http://www.tobiaseisenschmidt.de/blog/php-how-to-rename-a-blob-on-windows-azure/</link>
		<comments>http://www.tobiaseisenschmidt.de/blog/php-how-to-rename-a-blob-on-windows-azure/#comments</comments>
		<pubDate>Tue, 27 Nov 2012 19:24:29 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Azure]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.tobiaseisenschmidt.de/?p=668</guid>
		<description><![CDATA[Ready-to-use PHP script for renaming and/or moving blobs on Microsoft's Windows Azure Blob Storage platform.]]></description>
				<content:encoded><![CDATA[<p>At work, we are currently using Microsoft&#8217;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&#8217;s pretty easy to upload, list, delete and download blobs, but there&#8217;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.<span id="more-668"></span></p>
<p><i>Note: I assume, you have read the official <a href="http://www.windowsazure.com/en-us/develop/php/how-to-guides/blob-service/">How to use the Blob service from PHP</a> tutorial and managed to set up a connection to your Azure Blob storage.</i></p>
<h4>azure_api.php</h4>
<pre class="prettyprint">
&lt;?php

require_once 'vendor/autoload.php';

use WindowsAzure\Common\ServicesBuilder;
use WindowsAzure\Common\ServiceException;

class AzureAPI {

    function __construct($connectionString) {

        $this->blobRestProxy = ServicesBuilder::getInstance()->createBlobService($connectionString);
    }

    function renameBlob($source_container, $source_name, $destination_container, $destination_name) {

        try {

            $this->blobRestProxy->copyBlob($destination_container, $destination_name, $source_container, $source_name);

            $this->blobRestProxy->deleteBlob($source_container, $source_name);
        }

        catch(ServiceException $e) {

            die($e->getMessage());
        }

        return true;
    }

}</pre>
<h4>Example usage</h4>
<pre class="prettyprint">
&lt;?php

require_once 'azure_api.php';

$connectionString = ''; // Your connection string (DefaultEndpointsProtocol=[http|https];AccountName=[yourAccount];AccountKey=[yourKey])

$azure = new AzureAPI($connectionString);

$azure->renameBlob('foo', 'bar', 'assets', 'archived'); // move blob 'bar' from container 'assets' to 'bar' in container 'archived'</pre>
<p> <img src='http://www.tobiaseisenschmidt.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tobiaseisenschmidt.de/blog/php-how-to-rename-a-blob-on-windows-azure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
