<?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>World of WildCraze</title>
	<atom:link href="http://wildcraze.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://wildcraze.info</link>
	<description>Technology, entertainment and the Internet</description>
	<lastBuildDate>Sat, 28 Apr 2012 13:48:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Games on Git</title>
		<link>http://wildcraze.info/2012/games-on-git/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=games-on-git</link>
		<comments>http://wildcraze.info/2012/games-on-git/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 14:57:48 +0000</pubDate>
		<dc:creator>WildCraze</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://wildcraze.info/?p=274</guid>
		<description><![CDATA[&#8220;Games I play&#8221; feature has been released on Github. Using Github, I can easily make sure the lastest version is up for grabs should I make changes to it. Download: https://github.com/craze/CrazeXfire/zipball/master URL: https://github.com/craze/CrazeXfire]]></description>
			<content:encoded><![CDATA[<p>&#8220;Games I play&#8221; feature has been released on Github. Using Github, I can easily make sure the lastest version is up for grabs should I make changes to it.</p>
<p>Download: <a href="https://github.com/craze/CrazeXfire/zipball/master" title="Download generated ZIP file">https://github.com/craze/CrazeXfire/zipball/master</a><br />
URL: <a href="https://github.com/craze/CrazeXfire" title="View project page">https://github.com/craze/CrazeXfire</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wildcraze.info/2012/games-on-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minecraft 1.8 Trailer</title>
		<link>http://wildcraze.info/2011/minecraft-1-8-trailer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=minecraft-1-8-trailer</link>
		<comments>http://wildcraze.info/2011/minecraft-1-8-trailer/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 18:18:58 +0000</pubDate>
		<dc:creator>WildCraze</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[minecraft]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://wildcraze.info/?p=246</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><iframe src="http://www.youtube.com/embed/tYoO9XkCCHg" frameborder="0" width="560" height="345"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://wildcraze.info/2011/minecraft-1-8-trailer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CaptainSparklez &#8211; Revenge</title>
		<link>http://wildcraze.info/2011/captainsparklez-revenge/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=captainsparklez-revenge</link>
		<comments>http://wildcraze.info/2011/captainsparklez-revenge/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 21:23:58 +0000</pubDate>
		<dc:creator>WildCraze</dc:creator>
				<category><![CDATA[Videos]]></category>
		<category><![CDATA[minecraft]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://wildcraze.info/?p=224</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><iframe src="http://www.youtube.com/embed/cPJUBQd-PNM" frameborder="0" width="560" height="345"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://wildcraze.info/2011/captainsparklez-revenge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The games I play is done</title>
		<link>http://wildcraze.info/2011/the-games-i-play-is-done/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-games-i-play-is-done</link>
		<comments>http://wildcraze.info/2011/the-games-i-play-is-done/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 19:26:25 +0000</pubDate>
		<dc:creator>WildCraze</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[xfire]]></category>

		<guid isPermaLink="false">http://wildcraze.info/?p=216</guid>
		<description><![CDATA[My Games page works, so there&#8217;s not much left to do with it. My next step is to clean up some of the code and put it up for grabs somewhere. I ended up having a servers.php file and a gameplay.php. One for each part of my Games page, with the added feature of favorite &#8230; <a class="read-excerpt" href="http://wildcraze.info/2011/the-games-i-play-is-done/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My Games page works, so there&#8217;s not much left to do with it. My next step is to clean up some of the code and put it up for grabs somewhere. </p>
<p>I ended up having a servers.php file and a gameplay.php. One for each part of my Games page, with the added feature of favorite servers. A future update might include the ability to add more servers manually, but I won&#8217;t be bothered with it at the moment. My main goal was to have the page update automatically, which it kind of does. The favorites list requires manual attention, but this is all done within the Xfire client with a mere point and two clicks.</p>
<p>These files are sharing my CrazeDownload class and a config file. One bonus feature is that files downloaded to cache by one of the pages can be accessed locally from the other one as well. In this particular case it can be useful for icons. More of a proof of concept really, as icons are tiny enough anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://wildcraze.info/2011/the-games-i-play-is-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The games I play lasted one day</title>
		<link>http://wildcraze.info/2011/the-games-i-play-lasted-one-day/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-games-i-play-lasted-one-day</link>
		<comments>http://wildcraze.info/2011/the-games-i-play-lasted-one-day/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 15:38:52 +0000</pubDate>
		<dc:creator>WildCraze</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[xfire]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://wildcraze.info/?p=197</guid>
		<description><![CDATA[I had my games list running for almost a whole day, before something went wrong. One of my arrays wasn&#8217;t detected as an array, resulting in unexpected errors. So a check was added to verify array and rather display a message instead of technical stuff. Then I started the troubleshooting process. Upon examining the XML &#8230; <a class="read-excerpt" href="http://wildcraze.info/2011/the-games-i-play-lasted-one-day/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had my games list running for almost a whole day, before something went wrong. One of my arrays wasn&#8217;t detected as an array, resulting in unexpected errors. So a check was added to verify array and rather display a message instead of technical stuff. Then I started the troubleshooting process.</p>
<p>Upon examining the XML cache, I found it to contain a message saying my IP wasn&#8217;t allowed for the account I used. My first thought was that my script somehow triggered Xfire flood protection and the IP ended up suspended. To sort it out, I wrote an email to Xfire asking for assistance in resolving my issue. Just before I sent it, I noticed the XML system was off the grid completely moments before the entire Xfire.com website went down. Head of support over at Xfire confirms that they just suffered an outage of some kind. Because of this, I assume the XML system just hasn&#8217;t returned to a working state yet.</p>
<p>Confident that the issue is all on Xfire&#8217;s end, I prettied up some of my new error checks and went about with business as usual. The games page will now show a non-tech message until Xfire returns.</p>
]]></content:encoded>
			<wfw:commentRss>http://wildcraze.info/2011/the-games-i-play-lasted-one-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Class: CrazeDownload</title>
		<link>http://wildcraze.info/2011/crazedownload/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=crazedownload</link>
		<comments>http://wildcraze.info/2011/crazedownload/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 22:31:54 +0000</pubDate>
		<dc:creator>WildCraze</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://wildcraze.info/?p=173</guid>
		<description><![CDATA[First posted as part of the games I play project. I don&#8217;t think there will be major changes to this file, so here it is. My Xfire page, Games,  is using this class to download the XML data and the game icons to go with it. To use this class, include it in your script &#8230; <a class="read-excerpt" href="http://wildcraze.info/2011/crazedownload/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>First posted as part of the games I play project. I don&#8217;t think there will be major changes to this file, so here it is. My Xfire page, Games,  is using this class to download the XML data and the game icons to go with it.</p>
<p>To use this class, include it in your script and create a new CrazeDownload instance with remote resource location as parameter. Optional parameters are minimum time before redownload and local cache filename.</p>
<p>object CrazeDownload(String <em>$remote_url</em> [,int <em>$ttl</em> [,String <em>$local_filename</em>]])</p>
<pre class="brush: php; title: Example; notranslate">
  // We need to include the file to use the features in it
  include &quot;classes/CrazeDownload.class.php&quot;;

  // Creating a CrazeDownload will copy remote resource to local cache
  $resource = new CrazeDownload('http://example.net/feed.xml');

  // We can now ask which file to use instead of the URL
  $filename = $resource-&gt;cachefile();
</pre>
<p>The class itself:</p>
<pre class="brush: php; collapse: true; light: false; title: CrazeDownload.class.php; toolbar: true; notranslate">&lt;?php
/*
 * CrazeDownload copies remote data to local cache
 *
 * @package Craze
 * @author Geir Andre Halle
 * @version v11.8.3
 * @copyright 2009,2011 Geir Andre Halle
 * @license http://www.gnu.org/licenses/gpl.txt
 */
class CrazeDownload {
    // Initializing variables
    private $cachepath = 'cache/' ;    // Local folder for temporary storage
    private $cachefile = '' ;          // Filename variable for use later

    /*
     * @param string $url uniform resource locator/identifier
     * @param int $ttl Time-to-live, in seconds between refresh
     * @param string $filename For occasions you don't want an encoded string
     */
    function __construct($url, $ttl = 300, $filename = &quot;&quot;) {

        // Generated filename is encoded from url to avoid slashes and colons in the filesystem
        if (&quot;&quot; != $filename) {
                $this-&gt;cachefile = $this-&gt;cachepath . $filename;
        } else {
                $this-&gt;cachefile = $this-&gt;cachepath . str_replace(&quot;/&quot;,&quot;-&quot;,base64_encode($url));
        }

        // Folders are not created automatically (by design choice). Tell user where to make one.
        if (!is_dir($this-&gt;cachepath)) {
            die (&quot;Cache folder not found! Try to create manually: $this-&gt;cachepath&quot;);
        } elseif(!is_writable($this-&gt;cachepath)) {
            die (&quot;Cache folder $this-&gt;cachepath not writable!&quot;);
        }

        // If local file does not exist or is too old, retrieve remote data.
        if ( (!file_exists($this-&gt;cachefile)) || ((time() - filemtime($this-&gt;cachefile)) &gt; $ttl) ) {

            // File transfer
            $remoteio = curl_init() ;
            curl_setopt($remoteio, CURLOPT_URL, $url) ;
            curl_setopt($remoteio, CURLOPT_HEADER, 0) ;
            curl_setopt($remoteio, CURLOPT_RETURNTRANSFER, true) ;
            $remotecontent = curl_exec($remoteio) ;
            curl_close($remoteio) ;

            // Save resource to local file
            $cacheio = fopen($this-&gt;cachefile, 'w');
            fwrite($cacheio, $remotecontent);

            // Clean up
            fclose($cacheio);
        }
    }

    /*
     * @return string Local filename
     */
    public function cachefile() {
        return &quot;$this-&gt;cachefile&quot; ;
    }
}
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://wildcraze.info/2011/crazedownload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The games I play page is being tested live</title>
		<link>http://wildcraze.info/2011/the-games-i-play-page-is-being-tested-live/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-games-i-play-page-is-being-tested-live</link>
		<comments>http://wildcraze.info/2011/the-games-i-play-page-is-being-tested-live/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 15:12:10 +0000</pubDate>
		<dc:creator>WildCraze</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wildcraze.info/?p=153</guid>
		<description><![CDATA[Success! Or so it seems. I just finished my first version of my games I play page. Look for &#8216;Games&#8217; in the menu. Just need to test it for a couple of days while cleaning up some of the code before I release the source. Ended up using my custom downloader and SimpleXML. Again, code &#8230; <a class="read-excerpt" href="http://wildcraze.info/2011/the-games-i-play-page-is-being-tested-live/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Success! Or so it seems.</h3>
<p>I just finished my first version of my games I play page. Look for &#8216;Games&#8217; in the menu. Just need to test it for a couple of days while cleaning up some of the code before I release the source. Ended up using my custom downloader and SimpleXML. Again, code is far from what it could be, but my attention span has little room for subtle improvements once something works.</p>
]]></content:encoded>
			<wfw:commentRss>http://wildcraze.info/2011/the-games-i-play-page-is-being-tested-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The games I play project</title>
		<link>http://wildcraze.info/2011/the-games-i-play-project/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-games-i-play-project</link>
		<comments>http://wildcraze.info/2011/the-games-i-play-project/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 09:06:58 +0000</pubDate>
		<dc:creator>WildCraze</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[steam]]></category>
		<category><![CDATA[xfire]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://wildcraze.info/?p=135</guid>
		<description><![CDATA[Background Few days back, I gave myself this challenge: I want a list of the games I play to put on this webpage. Easily done to write one up and put it here, but I had a couple of concerns. I don&#8217;t want to have to update it every time I start or stop playing &#8230; <a class="read-excerpt" href="http://wildcraze.info/2011/the-games-i-play-project/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Background</h3>
<p>Few days back, I gave myself this challenge: I want a list of the games I play to put on this webpage.</p>
<p>Easily done to write one up and put it here, but I had a couple of concerns. I don&#8217;t want to have to update it every time I start or stop playing a game, and I don&#8217;t want it to show games I stopped playing long time ago.</p>
<ul>So I made myself a list with specifications:</p>
<li>Automatically updated</li>
<li>Current games only</li>
<li>Sorted list, most active on top</li>
<li>List includes game graphics or icons</li>
<li>Cache remote data, out of good habit</li>
</ul>
<h3>Xfire</h3>
<p>My first design choice was to create a PHP page using data from Xfire. With Xfire I have access to my list of games, and can sort out which ones I visited in the last 7 days. Did consider Steam, but couldn&#8217;t be too sure how it would work out with non-Steam games. Or would it even function at all if my profile was set to private?</p>
<p>A drawback with Xfire is how you get access to the gameplay feeds. Your webserver IP has to be enabled on your account, and you have to send you username and password in cleartext each time you access the feed. To make it slightly worse, a single Xfire account can only have one IP tied to it. For my own safety, I created a new Xfire account with the sole purpose of holding my webserver IP and access the restricted XML feeds. Xfire confirms that this is the recommended way of doing it, as they acknowledge the security risks involved in sending passwords of personal accounts unencrypted over the Internet.</p>
<p>Before I actually got any work done, I contacted Xfire support and requested access from my webserver IP with the new secondary Xfire account I created. By doing this first I could download my XML file and get an idea of what I&#8217;m up against.</p>
<p>The Xfire feed I plan to use is available at http://www.xfire.com/xml/<span style="color: #ff6600;">xfireusername</span>/user_gameplay/ once Xfire adds my webserver IP to an account. It appears important that the IP is added to the account I will be using for cleartext authentication, so the IP has to be tied to the second account I created just for this purpose. The username in the address is replaced with my main Xfire ID, while the secondary account with password is added behind the address as GET parameters. Accessing the feed without login info gives an error notice specifying the need to use the format <span style="color: #ff6600;">&lt;url&gt;</span>?u=<span style="color: #ff6600;">&lt;xfire login&gt;</span>&amp;p=<span style="color: #ff6600;">&lt;xfire password&gt;</span> where the orange parts are replaced with real information.</p>
<p>To sum up some of the Xfire stuff: You don&#8217;t have to log in with the username you&#8217;re trying to get feeds from, but the one you use for login must be associated with the webserver IP and should not be used for anything else. At least nothing important you can&#8217;t afford to loose.</p>
<h3>Coding</h3>
<p>The next thing I did, was to prepare one of my previous PHP-classes for new use. It is a download class that copies remote data and stores a local cache for some time before it&#8217;s redownloaded. I was quite confident it would be handy as my gameplay doesn&#8217;t warrant updates every few seconds, and I already had a simple code for using a cache. Not perfect, but it gets the job done.</p>
<p>Now that I have a sample XML and a functional downloader, I&#8217;m prepared to proceed with the next step. Start planning how my program should work with the XML data. That also means I need to attack it from the other end and make some decisions on what I want to end up with.</p>
<p>Will share some code when I no longer make changes to it. Can&#8217;t say when, as work on this undertaking will be on and off.</p>
]]></content:encoded>
			<wfw:commentRss>http://wildcraze.info/2011/the-games-i-play-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ape With AK-47</title>
		<link>http://wildcraze.info/2011/ape-with-ak-47/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ape-with-ak-47</link>
		<comments>http://wildcraze.info/2011/ape-with-ak-47/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 07:05:21 +0000</pubDate>
		<dc:creator>WildCraze</dc:creator>
				<category><![CDATA[Videos]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://wildcraze.info/?p=108</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><center><iframe width="560" height="349" src="http://www.youtube.com/embed/GhxqIITtTtU" frameborder="0" allowfullscreen></iframe></center></p>
]]></content:encoded>
			<wfw:commentRss>http://wildcraze.info/2011/ape-with-ak-47/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minecraft Levitates!</title>
		<link>http://wildcraze.info/2011/minecraft-levitates/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=minecraft-levitates</link>
		<comments>http://wildcraze.info/2011/minecraft-levitates/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 22:37:14 +0000</pubDate>
		<dc:creator>WildCraze</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[minecraft]]></category>
		<category><![CDATA[screenshot]]></category>

		<guid isPermaLink="false">http://wildcraze.info/?p=75</guid>
		<description><![CDATA[A screenshot of a future update to the 3D survival game of Minecraft was recently revealed on Twitter by creator Markus &#8220;Notch&#8221; Persson. In this screenshot we can see what appears to be a Minecraft player far above ground. Most likely this new addition to the franchise is some kind of flying or levitation, to &#8230; <a class="read-excerpt" href="http://wildcraze.info/2011/minecraft-levitates/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignnone" style="width: 650px"><img class="  " src="http://i.imgur.com/IKc7E.png" alt="Minecraft levitation" width="640" height="360" /><p class="wp-caption-text">Levitating in Minecraft.</p></div>
<p>A screenshot of a future update to the 3D survival game of Minecraft was recently revealed on Twitter by creator Markus &#8220;Notch&#8221; Persson. In this screenshot we can see what appears to be a Minecraft player far above ground. Most likely this new addition to the franchise is some kind of flying or levitation, to enable access to high and otherwise unreachable places. It could also mean alternate means of transport for the adventurer.</p>
]]></content:encoded>
			<wfw:commentRss>http://wildcraze.info/2011/minecraft-levitates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

