<?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>Inside the id10t &#187; Projects</title>
	<atom:link href="http://id10t.us/blog/category/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://id10t.us/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 29 Jun 2010 15:15:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>OGame Mine Signatures v1.14 released</title>
		<link>http://id10t.us/blog/2010/02/ogame-mine-signatures-v1-14-released/</link>
		<comments>http://id10t.us/blog/2010/02/ogame-mine-signatures-v1-14-released/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 14:38:34 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Confirmation]]></category>

		<guid isPermaLink="false">http://id10t.us/blog/?p=162</guid>
		<description><![CDATA[This version includes the following changes: Added email confirmation to the registration page Added email confirmation to the profile page Enjoy.]]></description>
			<content:encoded><![CDATA[<p>This version includes the following <a rel="me" href="http://ogametools.id10t.us/mines/changelog.php">changes</a>:</p>
<ul>
<li>Added email confirmation to the registration page</li>
<li>Added email confirmation to the profile page</li>
</ul>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://id10t.us/blog/2010/02/ogame-mine-signatures-v1-14-released/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>OGame Mine Signatures v1.13 released</title>
		<link>http://id10t.us/blog/2009/12/ogame-mine-signatures-v1-13-released/</link>
		<comments>http://id10t.us/blog/2009/12/ogame-mine-signatures-v1-13-released/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 04:13:09 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://id10t.us/blog/?p=156</guid>
		<description><![CDATA[This version includes the following change: Added support for themes to the style page Enjoy.]]></description>
			<content:encoded><![CDATA[<p>This version includes the following <a rel="me" href="http://ogametools.id10t.us/mines/changelog.php">change</a>:</p>
<ul>
<li>Added support for themes to the style page</li>
</ul>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://id10t.us/blog/2009/12/ogame-mine-signatures-v1-13-released/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Query profiling for MySQLi</title>
		<link>http://id10t.us/blog/2009/11/query-profiling-for-mysqli/</link>
		<comments>http://id10t.us/blog/2009/11/query-profiling-for-mysqli/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 01:09:59 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[MySQLi]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://id10t.us/blog/?p=91</guid>
		<description><![CDATA[After many hours of searching and not finding any examples for query profiling I liked, I decided to &#8220;bite the bullet&#8221; and write my own. This extends the default MySQLi class and adds the query profiling I was looking for with a very minimal amount of code. The joys of OOP. Usage example. This also [...]]]></description>
			<content:encoded><![CDATA[<p>After many hours of searching and not finding any examples for query profiling I liked, I decided to &#8220;bite the bullet&#8221; and write my own. This extends the default MySQLi class and adds the query profiling I was looking for with a very minimal amount of code. The joys of OOP. <img src='http://id10t.us/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
//mysqlii.php

//Create class
class mysqlii extends mysqli
{
	//Create properties
	var $query_time;
	var $query_count;

	//Override default method
	function query($query)
	{
		//Start timer, run query, stop timer
		$query_begin = microtime(TRUE);
		$result = parent::query($query);
		$query_end = microtime(TRUE);

		//Die if query problem
		if($this-&gt;error):
			die('An error has occurred! Please try your request again shortly.');
		endif;

		//Set properties
		$this-&gt;query_time += $query_end - $query_begin;
		$this-&gt;query_count++;

		//Return query results
		return $result;
	}
}
?&gt;
</pre>
<p>Usage example. This also includes page profiling.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
//Start timer
$page_begin = microtime(TRUE);

//Include new class
include('mysqlii.php');

//Open connection to database
$db = @new mysqlii('host', 'username', 'password', 'database');

//Die if connection error
if($db-&gt;connect_error):
	die('Unable to connect to the database!');
endif;

//Build and run query
$query = &quot;SELECT * FROM test&quot;;
$db-&gt;query($query);

//Continue your code

//Close connection to database
$db-&gt;close();

//Stop timer and set variable
$page_end = microtime(TRUE);
$page_time = $page_end - $page_begin;

printf('Page generation: %fs', $page_time); //Page generation: 0.257650s
printf('DB queries: %u (%fs)', $query_count, $query_time) //DB queries: 1 (0.002195s)
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://id10t.us/blog/2009/11/query-profiling-for-mysqli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OGame Mine Signatures v1.12 released</title>
		<link>http://id10t.us/blog/2009/11/ogame-mine-signatures-v1-12-released/</link>
		<comments>http://id10t.us/blog/2009/11/ogame-mine-signatures-v1-12-released/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 21:08:12 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[DejaVu]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[ogame.cz]]></category>
		<category><![CDATA[Sans]]></category>

		<guid isPermaLink="false">http://id10t.us/blog/?p=114</guid>
		<description><![CDATA[I know it hasn&#8217;t been long since the last release but this version brings many new features that I feel shouldn&#8217;t wait. This version includes the following changes: Added action confirmation Minor adjustments to the top stats page Changed signature font to DejaVu Sans Mono Added ogame.cz to domains Redesigned changelog and faq pages Enjoy.]]></description>
			<content:encoded><![CDATA[<p>I know it hasn&#8217;t been long since the last release but this version brings many new features that I feel shouldn&#8217;t wait.</p>
<p>This version includes the following <a rel="me" href="http://ogametools.id10t.us/mines/changelog.php">changes</a>:</p>
<ul>
<li>Added action confirmation</li>
<li>Minor adjustments to the top stats page</li>
<li>Changed signature font to DejaVu Sans Mono</li>
<li>Added ogame.cz to domains</li>
<li>Redesigned changelog and faq pages</li>
</ul>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://id10t.us/blog/2009/11/ogame-mine-signatures-v1-12-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OGame Mine Signatures v1.11 released</title>
		<link>http://id10t.us/blog/2009/11/ogame-mine-signatures-v1-11-released/</link>
		<comments>http://id10t.us/blog/2009/11/ogame-mine-signatures-v1-11-released/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 04:30:32 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Optimizations]]></category>

		<guid isPermaLink="false">http://id10t.us/blog/?p=109</guid>
		<description><![CDATA[This version includes the following changes: Code optimizations Added FAQs Added top stats (currently showing top 10) Added information to the footer Enjoy.]]></description>
			<content:encoded><![CDATA[<p>This version includes the following <a href="http://ogametools.id10t.us/mines/changelog.php">changes</a>:</p>
<ul>
<li>Code optimizations</li>
<li>Added FAQs</li>
<li>Added top stats (currently showing top 10)</li>
<li>Added information to the footer</li>
</ul>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://id10t.us/blog/2009/11/ogame-mine-signatures-v1-11-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OGame Mine Signatures v1.10 released</title>
		<link>http://id10t.us/blog/2009/11/ogame-mine-signatures-v1-10-released/</link>
		<comments>http://id10t.us/blog/2009/11/ogame-mine-signatures-v1-10-released/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 17:23:50 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://id10t.us/blog/?p=41</guid>
		<description><![CDATA[This version includes the following changes: Added &#8220;Remember Me&#8221; (with profile options) Fixed the empire view reader for Google Chrome Fixed negative planet temperature bug (again) Enjoy.]]></description>
			<content:encoded><![CDATA[<p>This version includes the following <a rel="me" href="http://ogametools.id10t.us/mines/changelog.php">changes</a>:</p>
<ul>
<li>Added &#8220;Remember Me&#8221; (with profile options)</li>
<li>Fixed the empire view reader for <a href="http://www.google.com/chrome">Google Chrome</a></li>
<li>Fixed negative planet temperature bug (again)</li>
</ul>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://id10t.us/blog/2009/11/ogame-mine-signatures-v1-10-released/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

