<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>TREVOR.MORSE</title><generator>Tumblr (3.0; @trevormorse)</generator><link>http://trevormorse.com/</link><item><title>FRAPI VM</title><description>&lt;p&gt;We had been discussing creating a VM for FRAPI for quite a while now. So prompted by this tweet from &lt;a href="http://twitter.com/beriberikix/status/32852666975522817" target="_blank"&gt;@beriberikix&lt;/a&gt; I finally sat down and put something together in VMWare. Though it was created in VMWare you should be able to&lt;a href="http://www.lylebackenroth.com/blog/2009/03/04/howto-convert-vmware-image-to-virtualbox-image-or-import-vmware-image-into-virtualbox/" target="_blank"&gt; import it into VirtualBox&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It is a base Ubuntu 10.10 32-bit server install with everything necessary to power FRAPI including nginx, php-fpm and all the necessary libraries. The username and password to get logged in are “frapi”. Nginx is configured to serve the admin interface as &lt;a href="http://admin.frapi" target="_blank"&gt;http://admin.frapi&lt;/a&gt; and the api itself as &lt;a href="http://api.frapi" target="_blank"&gt;http://api.frapi&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;All you should need to get things going is to fire up the VM, login and determine the ip, then make a host entry for both admin.frapi and api.frapi on your machine pointing to that ip.&lt;/p&gt;
&lt;p&gt;I am definitely not a sys admin so this VM should not be considered ready for production and should only be used for testing and development. However, if you do have suggestions for better configurations or just ways to make the VM better then hop on #frapi on freenode and let us know!&lt;/p&gt;
&lt;p&gt;You can grab the VM here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://s3.amazonaws.com/frapi-us/frapi_vm.tar.gz" target="_blank"&gt;FRAPI VM&lt;/a&gt;&lt;/p&gt;</description><link>http://trevormorse.com/post/3110981140</link><guid>http://trevormorse.com/post/3110981140</guid><pubDate>Fri, 04 Feb 2011 17:20:17 -0500</pubDate><category>FRAPI REST WEB SERVICES</category></item><item><title>web2project 2.2 released!</title><description>&lt;a href="http://wiki.web2project.net/index.php?title=2.2_Release_Notes"&gt;web2project 2.2 released!&lt;/a&gt;</description><link>http://trevormorse.com/post/2387129093</link><guid>http://trevormorse.com/post/2387129093</guid><pubDate>Mon, 20 Dec 2010 07:18:41 -0500</pubDate></item><item><title>Accessing FRAPI with Flash</title><description>&lt;p&gt;Over the past few weeks I have been building some REST API’s for work using FRAPI. If your building RESTful API’s you should definitely head over to &lt;a href="http://getfrapi.com" target="_blank"&gt;&lt;a href="http://getfrapi.com" target="_blank"&gt;http://getfrapi.com&lt;/a&gt;&lt;/a&gt; and check it out!&lt;/p&gt;
&lt;p&gt;The latest project was to power a flash application that would be making calls directly to FRAPI. FRAPI was set up on a different domain then the flash that would be calling it, so it needed a crossdomain.xml file in the root to allow access.&lt;/p&gt;
&lt;p&gt;Of course by default FRAPI would handle that request with rewrite rules and map it to an XML request to the crossdomain action. When flash tries to access this file it gets the default error response, instead of the expected XML content.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;response&gt;
    &lt;errors&gt;	
        &lt;error code="ERROR_INVALID_ACTION_REQUEST"&gt;
            &lt;message&gt;Invalid requested action&lt;/message&gt;
            &lt;name&gt;ERROR_INVALID_ACTION_REQUEST&lt;/name&gt;
            &lt;at&gt;&lt;/at&gt;
        &lt;/error&gt;
    &lt;/errors&gt;
&lt;/response&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So there were two options, modify the apache rewrite rule, or create an action in FRAPI to handle it.&lt;/p&gt;
&lt;p&gt;The apache rewrite rule is fairly easy and quick to implement, and simply needs to go in the .htaccess file before the normal rewrite rules.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_FILENAME} !-f&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This simply checks that the request is not for an actual file before processing any of the rewrite rules FRAPI normally applies.&lt;/p&gt;
&lt;p&gt;However, my preference was to create an action in FRAPI to keep everything in the Custom directory of FRAPI as that is what we stored in our version control system so that we can easily upgrade/deploy to a new version of FRAPI and not have to worry about our code being overwritten, or losing our modifications to .htaccess.&lt;/p&gt;
&lt;p&gt;The first thing I did was create an action that was enabled, public and had a custom route of “crossdomain”, no code required as we are not doing any processing. All that was needed after that was to create a Crossdomain.xml.tpl (substitue Crossdomain for whatever you named your action) file in the custom/Output/xml/ directory of our FRAPI install with the following content.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;cross-domain-policy&gt;
    &lt;allow-access-from domain="*" /&gt;
&lt;/cross-domain-policy&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Voila! The next time crossdomain.xml is accessed you will get the proper XML response and flash will be happy. Below is a sample of the output.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;cross-domain-policy&gt;
    &lt;allow-access-from domain="*" /&gt;
&lt;/cross-domain-policy&gt;
&lt;/code&gt;&lt;/pre&gt;</description><link>http://trevormorse.com/post/1269886136</link><guid>http://trevormorse.com/post/1269886136</guid><pubDate>Fri, 08 Oct 2010 12:38:00 -0400</pubDate><category>FRAPI REST WEB SERVICES</category></item><item><title>Awesome video on what motivates us.</title><description>&lt;iframe width="400" height="225" src="http://www.youtube.com/embed/u6XAPnuFjJc?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Awesome video on what motivates us.&lt;/p&gt;</description><link>http://trevormorse.com/post/616976832</link><guid>http://trevormorse.com/post/616976832</guid><pubDate>Thu, 20 May 2010 16:05:36 -0400</pubDate><category>motivation</category><category>open-source</category></item><item><title>So true!</title><description>&lt;img src="http://28.media.tumblr.com/tumblr_l23kujqaBS1qawqoqo1_r1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;So true!&lt;/p&gt;</description><link>http://trevormorse.com/post/581051605</link><guid>http://trevormorse.com/post/581051605</guid><pubDate>Sat, 08 May 2010 06:51:00 -0400</pubDate><category>browsers iesucks</category></item><item><title>Some great developer tools for Chrome</title><description>&lt;a href="http://mashable.com/2010/04/14/chrome-extensions-web-design/"&gt;Some great developer tools for Chrome&lt;/a&gt;</description><link>http://trevormorse.com/post/525718161</link><guid>http://trevormorse.com/post/525718161</guid><pubDate>Fri, 16 Apr 2010 08:52:00 -0400</pubDate><category>developer</category><category>tools</category><category>chrome</category></item><item><title>Great advice!</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_kwk5mw6qkX1qawqoqo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Great advice!&lt;/p&gt;</description><link>http://trevormorse.com/post/344594035</link><guid>http://trevormorse.com/post/344594035</guid><pubDate>Wed, 20 Jan 2010 13:20:56 -0500</pubDate></item><item><title>After MANY hours of play this is exactly how I feel!</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_kvvrkt1oYo1qawqoqo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;After MANY hours of play this is exactly how I feel!&lt;/p&gt;</description><link>http://trevormorse.com/post/321591103</link><guid>http://trevormorse.com/post/321591103</guid><pubDate>Thu, 07 Jan 2010 09:14:53 -0500</pubDate></item><item><title>Metro 2033. Had not heard about this before today, but looks...</title><description>&lt;object id="ignplayer" width="480" height="270" data="http://media.ign.com/ev/embed.swf" type="application/x-shockwave-flash"&gt;&lt;param name="movie" value="http://media.ign.com/ev/embed.swf" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="bgcolor" value="#000000" /&gt;&lt;param name="flashvars" value="vgroup=Metro2003_trl_TheLastRefuge_102209&amp;object=39148" /&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Metro 2033. Had not heard about this before today, but looks amazing along the lines of Fallout 3.&lt;/p&gt;</description><link>http://trevormorse.com/post/319860760</link><guid>http://trevormorse.com/post/319860760</guid><pubDate>Wed, 06 Jan 2010 09:40:00 -0500</pubDate><category>xbox360</category><category>games</category></item><item><title>If this is real you can count me out for NATAL and 3D...</title><description>&lt;iframe width="400" height="300" src="http://www.youtube.com/embed/h5W7Eu36JYs?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;If this is real you can count me out for NATAL and 3D shooters…&lt;/p&gt;</description><link>http://trevormorse.com/post/316669239</link><guid>http://trevormorse.com/post/316669239</guid><pubDate>Mon, 04 Jan 2010 14:10:41 -0500</pubDate></item><item><title>IGN's Top 25 Xbox 360 Games</title><description>&lt;a href="http://xbox360.ign.com/articles/104/1045042p1.html"&gt;IGN's Top 25 Xbox 360 Games&lt;/a&gt;</description><link>http://trevormorse.com/post/307952674</link><guid>http://trevormorse.com/post/307952674</guid><pubDate>Wed, 30 Dec 2009 08:21:51 -0500</pubDate></item><item><title>Photo</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_kuyk81pbGo1qawqoqo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;</description><link>http://trevormorse.com/post/291859370</link><guid>http://trevormorse.com/post/291859370</guid><pubDate>Sun, 20 Dec 2009 10:55:12 -0500</pubDate><category>fanboys</category></item><item><title>Running PHP as a Daemon</title><description>&lt;a href="http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/"&gt;Running PHP as a Daemon&lt;/a&gt;</description><link>http://trevormorse.com/post/288242514</link><guid>http://trevormorse.com/post/288242514</guid><pubDate>Thu, 17 Dec 2009 20:58:50 -0500</pubDate></item><item><title>Dependency Injection in PHP</title><description>&lt;a href="http://www.potstuck.com/2009/01/08/php-dependency-injection/"&gt;Dependency Injection in PHP&lt;/a&gt;</description><link>http://trevormorse.com/post/288239883</link><guid>http://trevormorse.com/post/288239883</guid><pubDate>Thu, 17 Dec 2009 20:56:00 -0500</pubDate></item><item><title>Red Dead Redemption </title><description>&lt;a href="http://www.gametrailers.com/video/gameplay-series-red-dead/59977"&gt;Red Dead Redemption &lt;/a&gt;: &lt;p&gt;This looks like it’s going to be awesome!&lt;/p&gt;</description><link>http://trevormorse.com/post/286518631</link><guid>http://trevormorse.com/post/286518631</guid><pubDate>Wed, 16 Dec 2009 16:29:58 -0500</pubDate></item><item><title>Christmas tree is up for this year!</title><description>&lt;img src="http://28.media.tumblr.com/tumblr_kum7llTgLF1qawqoqo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Christmas tree is up for this year!&lt;/p&gt;</description><link>http://trevormorse.com/post/282336201</link><guid>http://trevormorse.com/post/282336201</guid><pubDate>Sun, 13 Dec 2009 18:51:24 -0500</pubDate></item><item><title>Saw this tonight, if you get the chance definitely do!</title><description>&lt;iframe width="400" height="300" src="http://www.youtube.com/embed/XwabsKiaRIE?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Saw this tonight, if you get the chance definitely do!&lt;/p&gt;</description><link>http://trevormorse.com/post/280938653</link><guid>http://trevormorse.com/post/280938653</guid><pubDate>Sat, 12 Dec 2009 20:21:00 -0500</pubDate><category>movies</category></item><item><title>Homemade Gingerbread Latte</title><description>&lt;a href="http://recipecircus.com/recipes/adraxlir/BEVERAGES/Starbucks_Gingerbread_Latte.html"&gt;Homemade Gingerbread Latte&lt;/a&gt;</description><link>http://trevormorse.com/post/280653536</link><guid>http://trevormorse.com/post/280653536</guid><pubDate>Sat, 12 Dec 2009 15:52:00 -0500</pubDate><category>homemade</category><category>latte</category><category>coffee</category></item><item><title>UFO over Norway?</title><description>&lt;a href="http://www.huffingtonpost.com/2009/12/09/ufo-over-norway-residents_n_385810.html"&gt;UFO over Norway?&lt;/a&gt;: &lt;p&gt;UFO Over Norway: Residents Baffled By Mysterious Swirling Blue Light In The Sky (VIDEO)&lt;/p&gt;</description><link>http://trevormorse.com/post/277513334</link><guid>http://trevormorse.com/post/277513334</guid><pubDate>Thu, 10 Dec 2009 08:21:00 -0500</pubDate></item><item><title>New version of web2project</title><description>&lt;p&gt;Web2project v1.2 has been released! It includes 10 new features, over 30 bug fixes, and over 10 miscellaneous improvements. Check out the release notes &lt;a title="web2project v1.2 release notes" target="_blank" href="http://wiki.web2project.net/index.php?title=V1.2_Release_Notes#Installation_Instructions"&gt;here&lt;/a&gt;, or get to downloading &lt;a title="Download web2project" target="_blank" href="http://sourceforge.net/projects/web2project/files/"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><link>http://trevormorse.com/post/276442888</link><guid>http://trevormorse.com/post/276442888</guid><pubDate>Wed, 09 Dec 2009 14:54:37 -0500</pubDate></item></channel></rss>

