<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>Mesmotronic Blog &#187; Hints &amp; Tips</title>
	<atom:link href="http://blog.mesmotronic.com/index.php" rel="self" type="application/rss+xml" />
	<link>http://blog.mesmotronic.com</link>
	<description>Make it Mesmotronic</description>
	<lastBuildDate>Fri, 09 Dec 2011 22:05:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Generating a Code Signing Request using OpenSSL for Windows</title>
		<link>http://blog.mesmotronic.com/index.php/p/404</link>
		<comments>http://blog.mesmotronic.com/index.php/p/404#comments</comments>
		<pubDate>Tue, 26 Oct 2010 14:46:00 +0000</pubDate>
		<dc:creator>Mesmotronic</dc:creator>
				<category><![CDATA[Hints & Tips]]></category>
		<category><![CDATA[ios flash]]></category>

		<guid isPermaLink="false">http://blog.mesmotronic.com/?p=404</guid>
		<description><![CDATA[If you're developing apps for iOS (iPhone, iPod touch or iPad) you'll need to generate a 2048-bit Code Signing Request (CSR) before you can create a Development Certificate and start testing your apps.

On OS X, you can use Keychain Access, but on non-server editions of Windows it's a little less straight forward.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re developing apps for iOS (iPhone, iPod touch or iPad) you&#8217;ll  need to generate a 2048-bit Code Signing Request (CSR) before you can  create a Development Certificate and start testing your apps.</p>
<p>On OS X, you can use Keychain Access, but on non-server editions of Windows it&#8217;s a little less straight forward. Here&#8217;s how:</p>
<ol>
<li><a href="http://www.openssl.org/related/binaries.html" target="_blank">Download and install the latest version of OpenSSL</a></li>
<li>Once installed, you will need to add the OpenSSL <em>bin </em>folder to your PATH environment variable, e.g. <em>c:\openssl\bin</em>; if you&#8217;re not sure how, <a href="http://www.google.co.uk/search?q=edit+path+environment+variable&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-GB:official&amp;client=firefox-a" target="_blank">Google has the answer</a></li>
<li>Open a command line window by selecting <em>Start &gt; Run&#8230; </em>and entering <em>&#8220;cmd&#8221;</em>, then pressing OK</li>
<li>To make sure you can find your CSR once it&#8217;s been created, type the following and press return:
<pre>cd desktop</pre>
</li>
<li>To create your CSR, type the following an press return:
<pre>openssl req -nodes -newkey rsa:2048 -keyout request.key -out request.csr</pre>
</li>
<li>Answer each of the questions</li>
<li>That&#8217;s it: your CSR should be waiting for you on your Desktop, ready for upload to the iOS Provisioning Portal</li>
</ol>
<p>Once your CSR has been approved and you have your Developer Certificate, you&#8217;ll need to convert it to a P12 file: <a href="http://help.adobe.com/en_US/as3/iphone/WS144092a96ffef7cc-371badff126abc17b1f-7fff.html">instructions are here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mesmotronic.com/index.php/p/404/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Static initializers in AS3</title>
		<link>http://blog.mesmotronic.com/index.php/p/354</link>
		<comments>http://blog.mesmotronic.com/index.php/p/354#comments</comments>
		<pubDate>Wed, 09 Jun 2010 09:46:27 +0000</pubDate>
		<dc:creator>Mesmotronic</dc:creator>
				<category><![CDATA[Hints & Tips]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://blog.mesmotronic.com/?p=354</guid>
		<description><![CDATA[Recently, several people have asked whether it's possible to create some kind of constructor for static classes in ActionScript 3, and the answer is: yes!]]></description>
			<content:encoded><![CDATA[<p>Recently, several people have asked whether it&#8217;s possible to create some kind of constructor for static classes in ActionScript 3, and the answer is: yes!</p>
<p>The solution is  a <em>static initializer</em>. This is a block of code, surrounded by curly brackets but no function or var declaration, that runs the first time a property or method of a static class is called. Static initializers are called before any property value is returned or function executed, in the same way a constructor always runs before you can access the properties or methods or a regular class.</p>
<pre>package
{
    public class MyStaticClass
    {
        // This is the static initializer
        {
            trace("Running static initilizer!");
            staticInitializer();
        }

        // We're calling a secondary method so we can use local variables
        static private function staticInitializer():void
        {
            var now:Date = new Date;
            baseColor = now.hours &gt; 16 ? 0x000066 : 0x0000FF;
        }

        static public var baseColor:uint;
    }
}
</pre>
<p>Although it&#8217;s not strictly necessary to call a secondary method, Flash Player will throw an error if you declare local variables within the static initializer itself.</p>
<p>To prove that the static initializer is running first, simple trace out the baseColor property:</p>
<pre>trace(MyStaticClass.baseColor);
</pre>
<p>If it&#8217;s after 4pm, this will result in the following output in the console window:</p>
<pre>Running the static initializer!
102
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.mesmotronic.com/index.php/p/354/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Essential Eclipse plug-ins for Flash Builder 4 and Burrito</title>
		<link>http://blog.mesmotronic.com/index.php/p/263</link>
		<comments>http://blog.mesmotronic.com/index.php/p/263#comments</comments>
		<pubDate>Mon, 29 Mar 2010 11:01:45 +0000</pubDate>
		<dc:creator>Mesmotronic</dc:creator>
				<category><![CDATA[Hints & Tips]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://blog.mesmotronic.com/?p=263</guid>
		<description><![CDATA[With the recent relase of Adobe Flash Builder 4, we thought we'd flag up the update URLs for a few of our favourite Eclipse plug-ins to save you having to hunt around for them.]]></description>
			<content:encoded><![CDATA[<p>With the recent relase of <a title="Flash Builder 4" href="http://www.adobe.com/products/flashbuilder/">Adobe Flash Builder 4</a>, we thought we&#8217;d flag up the update URLs for a few of our favourite Eclipse plug-ins to save you having to hunt around for them.</p>
<p>To install plug-ins:</p>
<ol>
<li>Copy the appropriate URL to your clipboard</li>
<li>In Flash Builder, select <em>Install New Software&#8230;</em> from the <em>Help </em>menu</li>
<li>Click <em>Add, </em>paste URL in the <em>Location </em>field and click OK</li>
<li>Select the plug-ins to install and click <em>Finish</em></li>
</ol>
<p>If you&#8217;ve spotted anything we&#8217;ve missed, add a comment or  tweet it to <a href="http://twitter.com/mesmotronic">@mesmotronic</a>.</p>
<h3>Eclipse.org</h3>
<p>This URL contains links to most of the plug-ins hosted on Eclipse.org, allowing you to add functionality like ANT, <a href="http://www.eclipse.org/jdt/">JDT</a> (Java Development Tools) and <a href="http://www.eclipse.org/pdt/">PDT</a> (PHP Development Tools). You&#8217;ll also need to add this URL to Flash Builder to enable you to install other plug-ins, like soapUI:</p>
<pre>http://download.eclipse.org/releases/galileo/</pre>
<h3>Subclipse (SVN)</h3>
<p>If you&#8217;re a regular user of version control, and you should be, the <a title="Subclipse" href="http://subclipse.tigris.org/">subclipse</a> plug-in is essential:</p>
<pre>http://subclipse.tigris.org/update_1.6.x</pre>
<h3>soapUI</h3>
<p>For anyone who uses Web Services, <a title="soapUI" href="http://www.soapui.org">soapUI</a> offers a great way to view and test your services:</p>
<pre>http://www.soapui.org/eclipse/update/site.xml</pre>
<h3>Android SDK</h3>
<p>Now that you can develop application using <a href="http://www.theregister.co.uk/2010/02/15/adobe_air_mobile/">AIR for Android</a>, it could be argued that <a href="http://developer.android.com/sdk/eclipse-adt.html">ADT</a> (Android Developer Tools) isn&#8217;t necessarily essential, but if you&#8217;re looking to develop mobile apps for anything other than the latest handsets it&#8217;s definitely worth a look:</p>
<pre>https://dl-ssl.google.com/android/eclipse/
</pre>
<h3>TODO/FIXME</h3>
<p>For anyone who makes regular use of the Tasks panel in FlashDevelop or Eclipse&#8217;s Java profile, this is a must.</p>
<p><a href="http://www.richinternet.de/blog/index.cfm?entry=911D4B57-0F0D-5A73-AF6F4D4D04099757" target="_blank">You can download the plug-in here</a> (requires manual installation).</p>
<pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.mesmotronic.com/index.php/p/263/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Creating a simple HTTP proxy using PHP</title>
		<link>http://blog.mesmotronic.com/index.php/p/251</link>
		<comments>http://blog.mesmotronic.com/index.php/p/251#comments</comments>
		<pubDate>Tue, 23 Mar 2010 19:16:17 +0000</pubDate>
		<dc:creator>Mesmotronic</dc:creator>
				<category><![CDATA[Hints & Tips]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.mesmotronic.com/?p=251</guid>
		<description><![CDATA[Cross domain policy files are the bane of Flash and Flex developers' lives. Whether it's the Twitter API, data from Yahoo! Finance or one of any number of data sources, as soon as your SWF makes its way to the web you're immediately faced with the same problem: Security Error!]]></description>
			<content:encoded><![CDATA[<p>Cross domain policy files, or rather a lack of them, are the bane of Flash and Flex developers&#8217; lives. Whether it&#8217;s the Twitter API, data from Yahoo! Finance or one of any number of other data sources, the moment your SWF makes it to the web you&#8217;re faced with the same problem: <em>Security Error!</em></p>
<p>The solution is to create a simple proxy on your server that can load the data for you and pass it to your application. If you&#8217;re using PHP, then this is about as simple as it gets:</p>
<pre>&lt;?=file_get_contents($_REQUEST["url"])?&gt;</pre>
<p>That&#8217;s it. Just paste that into a text file, save it as <em>proxy.php</em> and upload it to your server. You can then access any data you like simply by passing it a URL. Best of all, it works with both GET and POST, for example:</p>
<p><em>http://<span style="color: #c0c0c0;">www.mydomain.com</span>/proxy.php?url=http://blog.mesmotronic.com/index.php/feed</em></p>
<p>Happy proxy-ing!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mesmotronic.com/index.php/p/251/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

