<?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>Thoughts by Techxplorer</title>
	<atom:link href="http://techxplorer.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://techxplorer.com</link>
	<description>Thoughts on my experiences with technology</description>
	<lastBuildDate>Sat, 04 Feb 2012 08:36:32 +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>Extracting Textual Data from a Zip File in Java</title>
		<link>http://techxplorer.com/2012/02/04/extracting-textual-data-from-a-zip-file-in-java/</link>
		<comments>http://techxplorer.com/2012/02/04/extracting-textual-data-from-a-zip-file-in-java/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 08:35:54 +0000</pubDate>
		<dc:creator>techxplorer</dc:creator>
				<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://techxplorer.com/?p=2300</guid>
		<description><![CDATA[One of my development tasks this past week was to extract the contents of a file that was compressed and stored in a zip file using Java for the Serval Maps Android application that I&#8217;m developing as part of my work for the Serval Project. The file in question contains a list of coordinates that [...]]]></description>
			<content:encoded><![CDATA[<p>One of my development tasks this past week was to extract the contents of a file that was compressed and stored in a <a title="Wikipedia article on this topic" href="http://en.wikipedia.org/wiki/Zip_(file_format)">zip file</a> using Java for the Serval Maps <a title="Official Android website" href="http://www.android.com">Android</a> application that I&#8217;m developing as part of my work for the <a title="Serval Project homepage" href="http://www.servalproject.org">Serval Project</a>.</p>
<p>The file in question contains a list of coordinates that I use as a source of location data that I can provide to my application using mock locations. Using this class I can provide geo-coordinates to my application during testing that appear to come from the GPS hardware, from the perspective of the rest of the code. The coordinates are in fact sourced from the file. I&#8217;ll write about this improved class in a future post.</p>
<p>The code that I developed to extract the contents of the file looks something like this:</p>
<pre class="brush: java; gutter: true">// declare helper constants
private final String LOCATION_FILE = &quot;mock-locations.txt&quot;;
private final String LOCATION_ZIP_FILE = &quot;mock-locations.zip&quot;;

// open the zip file and get the required file inside
ZipInputStream mZipInput = new ZipInputStream(context.getAssets().open(LOCATION_ZIP_FILE));
ZipEntry mZipEntry;

// look for the required file
while((mZipEntry = mZipInput.getNextEntry())!= null) {

  // read the bytes from the file and convert them to a string
  if(mZipEntry.getName().equals(LOCATION_FILE)) {

    // store the incoming data in a byte array stream
    ByteArrayOutputStream mByteStream = new ByteArrayOutputStream();
    byte[] mBuffer = new byte[1024];
    int mCount;

    // read in the data until it is all gone
    while((mCount = mZipInput.read(mBuffer)) != -1) {
      mByteStream.write(mBuffer, 0, mCount);
    }

    // store the data for later
    locations = new String(mByteStream.toByteArray(), &quot;UTF-8&quot;);
  }

  // play nice and tidy up
  mZipInput.closeEntry();
}

// play nice and tidy up
mZipInput.close();</pre>
<p>The basic process that this code undertakes is to:</p>
<ol>
<li>Open the zip file stored in the assets folder using the <a title="Official documentation on the class" href="http://developer.android.com/reference/java/util/zip/ZipInputStream.html">ZipInputStream</a> class</li>
<li>Loop through the contents of the zip file looking for the required file by examining the series <a title="Official Documentation on this class" href="http://developer.android.com/reference/java/util/zip/ZipEntry.html">ZipEntry</a> objects</li>
<li>Once found read the contents of the file into a <a title="Official documentation on this class" href="http://developer.android.com/reference/java/io/ByteArrayOutputStream.html">ByteArrayOutputStream</a></li>
<li>Convert the byte array into a string and store it for later use</li>
</ol>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techxplorer.com/2012/02/04/extracting-textual-data-from-a-zip-file-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux.conf.au Presentations</title>
		<link>http://techxplorer.com/2012/02/04/linux-conf-au-presentations/</link>
		<comments>http://techxplorer.com/2012/02/04/linux-conf-au-presentations/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 07:46:47 +0000</pubDate>
		<dc:creator>techxplorer</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[serval project]]></category>

		<guid isPermaLink="false">http://techxplorer.com/?p=2294</guid>
		<description><![CDATA[Earlier this month Linux.conf.au 2012 was held in Ballarat, Vic. The Serval Project was fortunate to be awarded two presentation slots at the conference. I was scheduled to present, but unfortunately had to pull out at the last moment due to illness. My presentation was to focus on my work on the prototype Serval Maps application, which [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lcaunderthestars.org.au/"><img class="alignright size-full wp-image-2274" title="200px-SpeakerWebBadge" src="http://techxplorer.com/wp-content/uploads/2012/01/200px-speakerwebbadge.png" alt="" width="200" height="200" /></a>Earlier this month <a title="Conference Homepage" href="http://lcaunderthestars.org.au/">Linux.conf.au 2012</a> was held in Ballarat, Vic. The <a title="Serval Project homepage" href="http://www.servalproject.org">Serval Project</a> was fortunate to be awarded two presentation slots at the conference. I was <a title="Conference programme entry for my talk" href="http://lcaunderthestars.org.au/schedule/126/view_talk?day=wednesday">scheduled to present</a>, but unfortunately had to pull out at the last moment due to illness.</p>
<p>My presentation was to focus on my work on the prototype Serval Maps application, which was the topic of my <a title="Direct link to my honours thesis" href="http://bytechxplorer.com/studies/honours-thesis/">honours thesis</a> last year.</p>
<p>Fortunately <a title="Dr Paul's blog" href="http://servalpaul.blogspot.com.au/">Dr Paul Gardner-Stephen</a>, Serval Project Co-Founder and Shuttleworth Fellow, was able to attend and presented instead. You can read his <a title="Direct link to his blog post" href="http://servalpaul.blogspot.com.au/2012/01/at-lca-2012-linux-conf-au.html">notes on the conference here</a>.</p>
<p>The presentation by Paul is now available on <a title="Direct link to the presentation" href="http://www.youtube.com/watch?v=bIVtXkDAIQ8&amp;feature=player_embedded">YouTube here</a>.</p>
<p>The Serval Project also had another presentation at the conference which focused on our Rhizome technology. That presentation, by Jeremy Lakeman, is also available on <a title="Direct link to the presentation on YouTube" href="http://www.youtube.com/watch?v=u-v4yhTyP_c&amp;feature=player_embedded">YouTube here</a>.</p>
<p>It is unfortunate that I was unable to attend and present, it was something that I was looking forward to. Hopefully I&#8217;ll be able to present next year on one of the many interesting things that the Serval Project is undertaking this year.</p>
]]></content:encoded>
			<wfw:commentRss>http://techxplorer.com/2012/02/04/linux-conf-au-presentations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Relocation is Complete</title>
		<link>http://techxplorer.com/2012/02/04/relocation-is-complete/</link>
		<comments>http://techxplorer.com/2012/02/04/relocation-is-complete/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 06:45:52 +0000</pubDate>
		<dc:creator>techxplorer</dc:creator>
				<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://techxplorer.com/?p=2289</guid>
		<description><![CDATA[The relocation of Thoughts by Techxplorer to a new host is complete. It was surprising simple but I know this is only due to the efforts of the developers of WordPress for the excellent export / import functionality, and the admins at Dreamhost for implementing sane defaults in their web server configurations. Please let me know if you notice anything not [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2291" class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/trevor-dennis/2227202261"><img class="size-full wp-image-2291" title="truck-moving-house" src="http://techxplorer.com/wp-content/uploads/2012/02/truck-moving-house.jpg" alt="" width="240" height="126" /></a><p class="wp-caption-text">By: Trevor Dennis</p></div>
<p>The relocation of <a title="Blog homepage" href="http://techxplorer.com">Thoughts by Techxplorer</a> to a new host is complete. It was surprising simple but I know this is only due to the efforts of the developers of <a title="Official WordPress website" href="http://wordpress.org">WordPress</a> for the excellent export / import functionality, and the admins at <a title="Official Dreamhost homepage" href="http://dreamhost.com">Dreamhost</a> for implementing sane defaults in their web server configurations.</p>
<p>Please <a title="Email me" href="mailto:corey@techxplorer.com">let me know</a> if you notice anything not working as it should.</p>
<p>The photo &#8220;<a title="Direct link to the photo" href="http://www.flickr.com/photos/trevor-dennis/2227202261/">Moving House &#8211; Kiwi Style</a>&#8221; was uploaded to <a title="Flickr homepage" href="http://www.flickr.com/">Flickr</a> by <a title="Flickr profile page" href="http://www.flickr.com/people/trevor-dennis/">Trevor Dennis</a> and used under the terms of a <a title="Details of the license" href="http://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techxplorer.com/2012/02/04/relocation-is-complete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts by Techxplorer is Moving</title>
		<link>http://techxplorer.com/2012/02/03/thoughts-by-techxplorer-is-moving/</link>
		<comments>http://techxplorer.com/2012/02/03/thoughts-by-techxplorer-is-moving/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 06:55:58 +0000</pubDate>
		<dc:creator>techxplorer</dc:creator>
				<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://techxplorer.wordpress.com/?p=2281</guid>
		<description><![CDATA[Over the coming days this blog Thoughts by Techxplorer is moving hosts. During this time odd things may happen. Your patience and understanding during this time is appreciated. A new post will be added once normal operation has been restored. The photo &#8220;Construction Night&#8221; was uploaded to Flickr by mpnchar and used under the terms of a [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2282" class="wp-caption alignright" style="width: 250px"><a href="http://techxplorer.com/wp-content/uploads/2012/02/night-construction.jpg"><img class="size-full wp-image-2282" title="night-construction" src="http://techxplorer.com/wp-content/uploads/2012/02/night-construction.jpg" alt="" width="240" height="159" /></a><p class="wp-caption-text">By: mpnchar</p></div>
<p>Over the coming days this blog <a title="Blog homepage" href="http://techxplorer.com">Thoughts by Techxplorer</a> is moving hosts.</p>
<p>During this time odd things may happen. Your patience and understanding during this time is appreciated.</p>
<p>A new post will be added once normal operation has been restored.</p>
<p>The photo &#8220;<a title="Direct link to the photo" href="http://www.flickr.com/photos/26754927@N07/3155267321/">Construction Night</a>&#8221; was uploaded to <a title="Flickr homepage" href="http://www.flickr.com/">Flickr</a> by <a title="Flickr profile page" href="http://www.flickr.com/people/26754927@N07/">mpnchar</a> and used under the terms of a <a title="Details of this license" href="http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en">Creative Commons license</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techxplorer.com/2012/02/03/thoughts-by-techxplorer-is-moving/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preparing for linux.conf.au</title>
		<link>http://techxplorer.com/2012/01/08/preparing-for-linux-conf-au/</link>
		<comments>http://techxplorer.com/2012/01/08/preparing-for-linux-conf-au/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 01:10:15 +0000</pubDate>
		<dc:creator>techxplorer</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[serval project]]></category>

		<guid isPermaLink="false">http://techxplorer.com/?p=2273</guid>
		<description><![CDATA[This time next week I&#8217;ll be in Ballarat getting ready for registration at linux.conf.au 2012. A colleague and I are presenting two talks related to the Serval Project on the Wednesday afternoon. My talk will focus on the Serval Maps application that I developed as the focus of my honours study last year. My honours thesis [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lcaunderthestars.org.au/"><img class="alignright size-full wp-image-2274" title="200px-SpeakerWebBadge" src="http://techxplorer.com/wp-content/uploads/2012/01/200px-speakerwebbadge.png" alt="" width="200" height="200" /></a>This time next week I&#8217;ll be in Ballarat getting ready for registration at <a title="Official conference website" href="http://lcaunderthestars.org.au">linux.conf.au 2012</a>. A colleague and I are presenting two talks related to the <a title="Official Serval Project website" href="http://www.servalproject.org">Serval Project</a> on the <a title="Conference programme for Wednesday" href="http://lcaunderthestars.org.au/programme/schedule/wednesday">Wednesday afternoon</a>.</p>
<p>My talk will focus on the Serval Maps application that I developed as the focus of <a title="More information about my studies" href="http://bytechxplorer.com/studies/">my honours study</a> last year. My <a title="Direct link to my honours thesis" href="http://bytechxplorer.com/studies/honours-thesis/">honours thesis</a> is available online. After the talk the presentation slides will be available on my website.</p>
<p>Speaking of my presentation slides, I really should stop procrastinating and get back to working on them.</p>
]]></content:encoded>
			<wfw:commentRss>http://techxplorer.com/2012/01/08/preparing-for-linux-conf-au/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Honours Thesis is Online</title>
		<link>http://techxplorer.com/2011/12/28/my-honours-thesis-is-online/</link>
		<comments>http://techxplorer.com/2011/12/28/my-honours-thesis-is-online/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 07:00:26 +0000</pubDate>
		<dc:creator>techxplorer</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[honours-thesis]]></category>
		<category><![CDATA[serval project]]></category>

		<guid isPermaLink="false">http://techxplorer.com/?p=2265</guid>
		<description><![CDATA[This past year I&#8217;ve been studying part time for a Bachelor of Science (Honours) degree specialising in Computer Science at Flinders University. The focus of my studies has been my honours thesis. My thesis explored the following research question: Is it possible to provide collaborative mapping services on mobile devices in an infrastructure independent manner? [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2267" class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/samhames/4699360569/"><img class="size-full wp-image-2267" title="A thesis of procrastination?" src="http://techxplorer.com/wp-content/uploads/2011/12/writing-thesis.jpg" alt="" width="240" height="144" /></a><p class="wp-caption-text">By: Sam Hames</p></div>
<p>This past year I&#8217;ve been studying part time for a <a title="More information about the degree" href="http://www.flinders.edu.au/courses/rules/undergrad/hbsc/hbsc_home.cfm">Bachelor of Science (Honours) degree</a> specialising in Computer Science at <a title="Flinders University homepage" href="http://www.flinders.edu.au">Flinders University</a>. The focus of my studies has been my honours thesis. My thesis explored the following research question:</p>
<blockquote><p>Is it possible to provide collaborative mapping services on mobile devices in an infrastructure independent manner?</p></blockquote>
<p>To explore this question I developed an Android based application that could support four core objectives. They were:</p>
<ol>
<li>have the users own geographic location displayed on a map;</li>
<li>add incidents, represented by a marker, onto a map;</li>
<li>be able to see the geographic location of other users of the application on the map; and</li>
<li>share details of incidents with other users of the application on the network.</li>
</ol>
<p>The software that I developed uses the resilient Ad Hoc mesh network provided by the <a title="Serval Project homepage" href="http://www.servalproject.org">Serval Project</a> to ensure that communication between instances of the application are infrastructure independent.</p>
<p>The thesis is <a title="More information about my thesis" href="http://bytechxplorer.com/studies/honours-thesis/">available online</a> on my <a title="Stuff by Techxplorer homepage" href="http://bytechxplorer.com/">Stuff by Techxplorer</a> website.</p>
<p>The photo &#8220;<a title="Direct link to the photo" href="http://www.flickr.com/photos/samhames/4699360569/">Writing Thesis</a>&#8221; was uploaded to <a title="Flickr homepage" href="http://www.flickr.com/">Flickr</a> by <a title="Flickr Profile Page" href="http://www.flickr.com/people/samhames/">Sam Hames</a> and used under the terms of a <a title="Details of the license" href="http://creativecommons.org/licenses/by-sa/2.0/deed.en">Creative Commons License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techxplorer.com/2011/12/28/my-honours-thesis-is-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Version of Techxplorer&#8217;s CMS Released</title>
		<link>http://techxplorer.com/2011/12/27/first-version-of-techxplorers-cms-released/</link>
		<comments>http://techxplorer.com/2011/12/27/first-version-of-techxplorers-cms-released/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 07:31:23 +0000</pubDate>
		<dc:creator>techxplorer</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[multimarkdown]]></category>

		<guid isPermaLink="false">http://techxplorer.com/?p=2261</guid>
		<description><![CDATA[Today I released the first version of Techxplorer&#8217;s CMS. The source code is available on GitHub. Techxplorer&#8217;s CMS is a series of PHP scripts, and accompanying JavaScript files, that I use in conjunction with MultiMarkdown to manage the Stuff by Techxplorer website. The CMS was designed with similar goals to that of the MultiMarkdown CMS. I decided to develop [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2262" class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/depone/63690548/"><img class="size-full wp-image-2262" title="content-management" src="http://techxplorer.com/wp-content/uploads/2011/12/content-management.jpg" alt="" width="240" height="180" /></a><p class="wp-caption-text">By: depone</p></div>
<p>Today I released the first version of <a title="Direct link for more information" href="http://bytechxplorer.com/development/personal/techxplorers-cms">Techxplorer&#8217;s CMS</a>. The source code is <a title="Download the source code for the project" href="https://github.com/techxplorer/Techxplorer-s-CMS">available on GitHub</a>.</p>
<p>Techxplorer&#8217;s CMS is a series of PHP scripts, and accompanying JavaScript files, that I use in conjunction with <a title="More information about MultiMarkdown" href="http://fletcherpenney.net/multimarkdown/">MultiMarkdown</a> to manage the <a title="Stuff by Techxplorer homepage" href="http://bytechxplorer.com/">Stuff by Techxplorer</a> website. The CMS was designed with similar goals to that of the <a title="MultiMarkdown CMS homepage" href="http://fletcherpenney.net/multimarkdown/cms/">MultiMarkdown CMS</a>. I decided to develop my own system for three main reasons:</p>
<ol>
<li>I wanted to see if I could do it</li>
<li>I wanted something in PHP as I’m allergic to Perl</li>
<li>I didn’t need all of the functionality that the MultiMarkdown CMS provides</li>
</ol>
<p>The current version of the system provides the following capabilities:</p>
<ol>
<li>Convert MultiMarkdown source files into HTML files when the md file is newer or there is no corresponding HTML file</li>
<li>Match the URL of the request to a HTML file in the content directory</li>
<li>Incorporate the HTML from the file into the website template</li>
<li>Automatically add a table of contents via JavaScript when required</li>
<li>Automatically create links from citations to a bibliography when required</li>
<li>Add an image cycle to a page</li>
<li>Automatically include page, directory and site specific metadata</li>
</ol>
<p>The photo &#8220;<a title="Direct link to the photo" href="http://www.flickr.com/photos/depone/63690548/">Content Management</a>&#8221; was uploaded to <a title="Flickr homepage" href="http://www.flickr.com/">Flickr</a> by <a title="Flickr profile page" href="http://www.flickr.com/people/depone/">depone</a> and used under the terms of a <a title="More information about the license" href="http://creativecommons.org/licenses/by-sa/2.0/deed.en">Creative Commons License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techxplorer.com/2011/12/27/first-version-of-techxplorers-cms-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Expo Poster Won an Award</title>
		<link>http://techxplorer.com/2011/12/27/my-expo-poster-won-an-award/</link>
		<comments>http://techxplorer.com/2011/12/27/my-expo-poster-won-an-award/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 07:11:01 +0000</pubDate>
		<dc:creator>techxplorer</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[honours-thesis]]></category>
		<category><![CDATA[poster presentation]]></category>
		<category><![CDATA[serval project]]></category>

		<guid isPermaLink="false">http://techxplorer.com/?p=2254</guid>
		<description><![CDATA[In November this year my honours course required that I develop a poster presentation. A poster presentation is basically an A1 sized poster that you stand in front of while people wander around the expo. It is a great opportunity for the school to promote the research and projects that have been undertaken over the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://bytechxplorer.com/assets/images/expo-poster-prize.jpg"><img class="alignright size-full wp-image-2255" title="expo-poster-prize" src="http://techxplorer.com/wp-content/uploads/2011/12/expo-poster-prize-thumbnail.jpg" alt="" width="240" height="334" /></a>In November this year my honours course required that I develop a poster presentation. A poster presentation is basically an A1 sized poster that you stand in front of while people wander around the expo. It is a great opportunity for <a title="CSEM school homepage" href="http://flinders.edu.au/science_engineering/csem/">the school</a> to promote the research and projects that have been undertaken over the course of the year by the students.</p>
<p>In the morning members of the school are invited to attend and check out what we&#8217;ve been doing. Some are assigned individual students and they must assess their posters. At the same time a group of industry representatives is also working their way through the expo evaluating a number of projects for awards.</p>
<p>My poster, and presentation, was selected for the &#8220;Most Outstanding Software Engineering Project 2011&#8243;. On Christmas Eve the award arrived in the mail, which was a very pleasant surprise.</p>
<p>The poster is <a title="Download my poster" href="http://bytechxplorer.com/downloads/comp4007-poster.pdf">available as a PDF</a> via my <a title="Stuff by Techxplorer homepage" href="http://bytechxplorer.com/">bytechxplorer.com</a> site and my <a title="View my honours thesis online" href="http://bytechxplorer.com/studies/honours-thesis/">honours thesis is also available</a>.</p>
<p>Many thanks to my supervisors for providing feedback on my poster and for giving me the opportunity to work on the <a title="Serval Project homepage" href="http://www.servalproject.org">Serval Project</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techxplorer.com/2011/12/27/my-expo-poster-won-an-award/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using timestamp Fields in MySQL with Lithium</title>
		<link>http://techxplorer.com/2011/11/25/using-timestamp-fields-in-mysql-with-lithium/</link>
		<comments>http://techxplorer.com/2011/11/25/using-timestamp-fields-in-mysql-with-lithium/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 04:51:54 +0000</pubDate>
		<dc:creator>techxplorer</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[li3]]></category>
		<category><![CDATA[lithium]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://techxplorer.com/?p=2248</guid>
		<description><![CDATA[This post is a continuation of the series of posts that I&#8217;ve written on my experiences with the Lithium framework. In the MARQues project I wanted to have a very simple way of logging the occurrence of various activities. The two activities I&#8217;m most interested in are the two types of searching that a user can undertake. I want the system to be able [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2252" class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/tonivc/2283676770"><img class="size-full wp-image-2252" title="time" src="http://techxplorer.com/wp-content/uploads/2011/11/time.jpg" alt="" width="240" height="180" /></a><p class="wp-caption-text">By: Toni Verdú Carbó</p></div>
<p>This post is a continuation of the series of posts that I&#8217;ve written on <a title="List of posts tagged Lithium" href="http://techxplorer.com/tag/lihtium/">my experiences</a> with the <a title="Lithium homepage" href="http://lithify.me/">Lithium</a> framework.</p>
<p>In the <a title="MARQues project Google Code page" href="http://code.google.com/p/marques-project/">MARQues project</a> I wanted to have a very simple way of logging the occurrence of various activities. The two activities I&#8217;m most interested in are the two types of searching that a user can undertake. I want the system to be able log when a search is undertaken and what search terms were used.</p>
<p>Initially I&#8217;d developed my simple activity logging table in the MySQL database with a <a title="Direct link to the MySQL documentation on this type of field" href="http://dev.mysql.com/doc/refman/5.1/en/timestamp.html">timestamp field</a>. Unfortunately this field doesn&#8217;t currently work with the Lithium framework. No matter what I did the field was always populated with zeros. This is a <a title="Direct link to the bug report" href="https://github.com/UnionOfRAD/lithium/issues/28">known issue</a> and is currently marked as an enhancement.</p>
<p>To resolve the issue I changed the field to an ordinary <a title="Direct link to the MySQL documentation on this type of field" href="http://dev.mysql.com/doc/refman/5.1/en/datetime.html">datetime field</a> and used the PHP <a title="Direct link to the PHP documentation on this function" href="http://www.php.net/manual/en/function.date.php">date function</a> to populate it. For example I use the model like this:</p>
<pre class="brush: php; auto-links: true; collapse: false; gutter: true; first-line: 1; highlight: []; html-script: false; light: false; pad-line-numbers: true; toolbar: true'">

// build an array of values
$log = array(
  'type'  =&gt; 'search',
  'notes' =&gt; $this-&gt;request-&gt;data['search'],
  'timestamp' =&gt; date('Y-m-d H:i:s')
);

// create an instance of the model using the values
$activity = ActivityLogs::create($log);

// save the model
$activity-&gt;save();
</pre>
<p>I hope this post proves useful to other who may be experiencing similar issues.</p>
<p>The photo &#8220;<a title="Direct link to the photo on Flickr" href="http://www.flickr.com/photos/tonivc/2283676770">The passage of Time</a>&#8221; was uploaded to <a title="Flickr homepage" href="http://www.flickr.com/">Flickr</a> by <a title="Flickr profile page" href="http://www.flickr.com/people/tonivc/">Toni Verdú Carbó</a> and used under the terms of a <a title="More information about the license" href="http://creativecommons.org/licenses/by-nc-nd/2.0/">Creative Commons License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techxplorer.com/2011/11/25/using-timestamp-fields-in-mysql-with-lithium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making IE9 Behave</title>
		<link>http://techxplorer.com/2011/11/25/making-ie9-behave/</link>
		<comments>http://techxplorer.com/2011/11/25/making-ie9-behave/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 02:58:02 +0000</pubDate>
		<dc:creator>techxplorer</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[IE9]]></category>
		<category><![CDATA[marques]]></category>

		<guid isPermaLink="false">http://techxplorer.com/?p=2240</guid>
		<description><![CDATA[Recently I discovered that the main page of a website that I&#8217;m developing wasn&#8217;t rendering properly in Internet Explorer 9 (IE9). The page in question includes HTML5 specific elements, included the appropriate doctype and the response headers included the appropriate mime-type as well. In browsers such as Google Chrome and Mozilla Firefox the page would render as expected. [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2243" class="wp-caption alignright" style="width: 179px"><a href="http://www.flickr.com/photos/horrigans/3445692558/"><img class="size-full wp-image-2243" title="naughty-child" src="http://techxplorer.com/wp-content/uploads/2011/11/naughty-child.jpg" alt="" width="169" height="240" /></a><p class="wp-caption-text">By: Sarah Horrigan</p></div>
<p>Recently I discovered that the main page of a website that I&#8217;m developing wasn&#8217;t rendering properly in <a title="Wikipedia article on this topic" href="http://en.wikipedia.org/wiki/Internet_Explorer_9">Internet Explorer 9</a> (IE9). The page in question includes <a title="Wikipedia article on this topic" href="http://en.wikipedia.org/wiki/HTML5">HTML5</a> specific elements, included the appropriate <a title="Wikipedia article on this topic" href="http://en.wikipedia.org/wiki/Doctype">doctype</a> and the response headers included the appropriate <a title="Wikipedia article on this topic" href="http://en.wikipedia.org/wiki/Internet_media_type">mime-type</a> as well.</p>
<p>In browsers such as Google Chrome and Mozilla Firefox the page would render as expected. In IE9 the page would render, and the icon for compatibility mode would appear. The intention of this mode, as far as I can tell, is to alert the user that the page may be using content that works best in another rendering mode. Unfortunately for me in my experience this mode doesn&#8217;t understand HTML5 specific tags. If a user used this mode the page would fail to render properly.</p>
<p>To fix this it is necessary to define a <a title="More information on this topic" href="http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx">document compatibility mode</a> by including an Internet Explorer specific meta tag in the head of the page.</p>
<p>In my case the header went from this:</p>
<pre class="brush: xml; auto-links: true; collapse: false; gutter: true; first-line: 1; highlight: []; html-script: false; light: false; pad-line-numbers: true; toolbar: true'">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;title&gt;My HTML page&lt;/title&gt;
  &lt;/head&gt;
&lt;/html&gt;
</pre>
<p>to this:</p>
<pre class="brush: xml; auto-links: true; collapse: false; gutter: true; first-line: 1; highlight: []; html-script: false; light: false; pad-line-numbers: true; toolbar: true'">

&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;!-- Explicitly Enable IE9 Standards mode --&gt;
    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=9&quot; &gt;
    &lt;title&gt;My HTML page&lt;/title&gt;
  &lt;/head&gt;
&lt;/html&gt;
</pre>
<p>There are two things that irk me about this situation. First, while it is possible to determine that IE 9 has decided that compatibility mode should be presented as an option to the user, it isn&#8217;t possible to determine why. Which makes it near impossible to diagnose what is going on.</p>
<p>Second, is that my standards compliant page, which validated fine according to the <a title="Direct link to the validator" href="http://validator.w3.org/">W3C Validator</a>, now must contain a vendor specific extension. I was naive enough to think that the days of vendor specific extension in the HTML were going to be a thing of the past.</p>
<p>The photo &#8220;<a title="Direct link to the photo" href="http://www.flickr.com/photos/horrigans/3445692558/">Little Monkey</a>&#8221; was uploaded to <a title="Flickr homepage" href="http://www.flickr.com/">Flickr</a> by <a title="Flickr profile page" href="http://www.flickr.com/people/horrigans/">Sarah Horrigan</a> and used under the terms of a <a title="Direct link to the license information" href="http://creativecommons.org/licenses/by-nc/2.0/deed.en">Creative Commons license</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techxplorer.com/2011/11/25/making-ie9-behave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

