<?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>Japh &#187; General Chatter</title>
	<atom:link href="http://japh.com.au/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://japh.com.au</link>
	<description>Web developer, technologist, innovator. I love the internet.</description>
	<lastBuildDate>Tue, 13 Jul 2010 10:48:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get yourself a Satellite developer</title>
		<link>http://japh.com.au/general/get-yourself-a-satellite-developer/</link>
		<comments>http://japh.com.au/general/get-yourself-a-satellite-developer/#comments</comments>
		<pubDate>Sat, 30 May 2009 05:08:34 +0000</pubDate>
		<dc:creator>Japh</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General Chatter]]></category>

		<guid isPermaLink="false">http://japh.com.au/?p=151</guid>
		<description><![CDATA[The new Satellite website is now live!
If you don&#8217;t already know, I recently started full-time freelance development.  The idea is that anyone who needs development work done, wherever they are, can contact me to help out on their project.
Whether you are a freelance designer who needs some development done (or even some training), or [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>The new <a title="Satellite - International Web Development" href="http://satellitedev.com">Satellite website</a> is now live!</p>
<p>If you don&#8217;t already know, I recently started full-time freelance development.  The idea is that anyone who needs development work done, wherever they are, can contact me to help out on their project.</p>
<p>Whether you are a freelance designer who needs some development done (or even some training), or a freelance developer who needs an extra pair of hands, or even a bigger business who needs to bring someone else in on a project&#8230;  <a title="Satellite - International Web Development" href="http://satellitedev.com">I&#8217;m available for hire!</a></p>
<p>I would love to hear any feedback on the new website too, so feel free to leave any comments in that regard as well.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://japh.com.au/general/get-yourself-a-satellite-developer/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Excuse me while I change in front of you!</title>
		<link>http://japh.com.au/general/excuse-me-while-i-change-in-front-of-you/</link>
		<comments>http://japh.com.au/general/excuse-me-while-i-change-in-front-of-you/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 02:59:47 +0000</pubDate>
		<dc:creator>Japh</dc:creator>
				<category><![CDATA[General Chatter]]></category>

		<guid isPermaLink="false">http://japh.com.au/?p=111</guid>
		<description><![CDATA[Have you ever seen that in shopping centres when a new store is moving in where an old store used to be?  I liked it, thought it was clever, and now I&#8217;ve used it!
So I&#8217;ve decided to shift to a different domain name, and have (again) re-skinned the blog.  This time, I think I&#8217;ll stick [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Have you ever seen that in shopping centres when a new store is moving in where an old store used to be?  I liked it, thought it was clever, and now I&#8217;ve used it!</p>
<p>So I&#8217;ve decided to shift to a different domain name, and have (again) re-skinned the blog.  This time, I think I&#8217;ll stick with it.  Maybe a few tweaks here and there.  I also hope to blog a little more, and do a few guest posts around the place, which I&#8217;ll link to from here as well.</p>
<p>While I&#8217;m here, I might just tell you about an iPhone app I recently tried and love.  It&#8217;s called <a href="http://instapaper.com">Instapaper</a> and it&#8217;s fantastic!</p>
<p>You&#8217;ve possibly already heard of it, but if you haven&#8217;t, I suggest you give it a try.  I read quite a few different blog posts around the place, some from feeds in Google Reader, and some that people link to on <a href="http://twitter.com/japh">Twitter</a>.  More often than not though, I&#8217;m not in a position to read a full article right at that moment, and this is where Instapaper comes in.  What to do when I&#8217;m lining up to use the ATM, or sitting in a small room contemplating life?  I could read those articles!</p>
<p>Instapaper provides a bookmark you can use to say &#8220;Read later&#8221;, and it&#8217;ll save the page (in a readable format) to your Instapaper account, which you can then open on the iPhone.  The big bonus for me, is that it actually downloads the articles to your phone, so even if you have no connectivity you can still read them (assuming you sync while you still have a connection).  Considering the coverage some of the networks local to my area have, this is a particularly awesome feature.</p>
<p>Keen to hear your thoughts, both on Instapaper, and the blog in general, so feel free to leave a comment.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://japh.com.au/general/excuse-me-while-i-change-in-front-of-you/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Must-have iPhone apps (update)</title>
		<link>http://japh.com.au/general/must-have-iphone-apps-update/</link>
		<comments>http://japh.com.au/general/must-have-iphone-apps-update/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 04:16:50 +0000</pubDate>
		<dc:creator>Japh</dc:creator>
				<category><![CDATA[General Chatter]]></category>

		<guid isPermaLink="false">http://japheththomson.com/?p=96</guid>
		<description><![CDATA[It&#8217;s been about six months since I got my iPhone, so I figure it&#8217;s time to revise the must-have app list.  I&#8217;m not going to list all the apps I have installed, just the ones I&#8217;d recommend to a new iPhone owner (Luke, I&#8217;m looking at you. Congrats!)
The list is as follows (prices are [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been about six months since I got my iPhone, so I figure it&#8217;s time to revise the must-have app list.  I&#8217;m not going to list all the apps I have installed, just the ones I&#8217;d recommend to a new iPhone owner (Luke, I&#8217;m looking at you. Congrats!)<br />
The list is as follows (prices are as of 13th March, 2009):</p>
<ul>
<li><span class="Apple-style-span" style="font-weight: bold">Currency</span> (free)</li>
<li><span class="Apple-style-span" style="font-weight: bold">DomainScout</span> (free)</li>
<li><span class="Apple-style-span" style="font-weight: bold">eBay Mobile</span> (free) (official app this time!)</li>
<li><span class="Apple-style-span" style="font-weight: bold"><del datetime="2009-03-13T08:22:04+00:00">FTP On The Go</del></span> ($12.99 AUD, stricken from the list&#8230; poor value for money)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Google Earth</span> (free)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Google Mobile App</span> (free)</li>
<li><span class="Apple-style-span" style="font-weight: bold">iSSH</span> ($5.99 AUD)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Koi Pond</span> ($1.19 AUD) (ok, this one&#8217;s not really a <em>must</em>-have&#8230; but it&#8217;s relaxing)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Live Poker</span> (free)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Midomi</span> (free)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Ocarina</span> ($1.19 AUD) (by Smule, they do really nicely made apps)</li>
<li><span class="Apple-style-span" style="font-weight: bold">OzWeather</span> ($2.49 AUD) (better for us Aussies than the Yahoo one, comes from <a title="Bureau of Meteorology" href="http://www.bom.gov.au" target="_blank">BoM</a>)</li>
<li><span class="Apple-style-span" style="font-weight: bold">reMovem</span> ($4.99 AUD) (I mainly bought this one for my wife&#8230;)</li>
<li><span class="Apple-style-span" style="font-weight: bold">SnapTell</span> (free) (like Midomi, but for books and DVD covers, etc.)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Tweetie</span> ($3.99 AUD) (yes, <a title="Twitter" href="http://twitter.com" target="_blank">Twitter</a> is all the rage right now, so get this and follow <a title="@japh" href="http://twitter.com/japh" target="_blank">@japh</a>.)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Units</span> (free)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Wikipanion</span> (free)</li>
<li><span class="Apple-style-span" style="font-weight: bold">WordPress</span> (free)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Zenbe Lists</span> ($3.99 AUD) (You&#8217;ll need to create an account at <a title="Zenbe Lists" href="http://lists.zenbe.com/" target="_blank">http://lists.zenbe.com/</a>)</li>
<li><span class="Apple-style-span" style="font-weight: bold"><a title="Zen Bound" href="http://zenbound.com/">Zen Bound</a></span> ($5.99 AUD) (an AMAZING game!)</li>
</ul>
<p>So that&#8217;s the update in alphabetical order, if you know of any other must-haves, let me know!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://japh.com.au/general/must-have-iphone-apps-update/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Please vote for Cali!</title>
		<link>http://japh.com.au/general/please-vote-for-cali/</link>
		<comments>http://japh.com.au/general/please-vote-for-cali/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 23:57:04 +0000</pubDate>
		<dc:creator>Japh</dc:creator>
				<category><![CDATA[General Chatter]]></category>

		<guid isPermaLink="false">http://japheththomson.com/?p=80</guid>
		<description><![CDATA[You may (or maybe not, I guess) have heard of &#8220;The Best Job In The World&#8221; website?  Well they&#8217;re down to finalists now!  50 finalists, the top 11 of which will be sent to Australia to continue the selection process.
As a follower of GeekBrief, I&#8217;d like to support Cali Lewis coming on over to Australia [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>You may (or maybe not, I guess) have heard of &#8220;<a title="The Best Job In The World" href="http://www.islandreefjob.com/">The Best Job In The World</a>&#8221; website?  Well they&#8217;re down to finalists now!  50 finalists, the top 11 of which will be sent to Australia to continue the selection process.</p>
<p>As a follower of GeekBrief, I&#8217;d like to support Cali Lewis coming on over to Australia and briefing from our beautiful coast for a while!  So if you could please send her a vote (at least one, but one each day would be nice!), that would be much appreciated.</p>
<p>You can vote here:  <a title="Vote for Cali Lewis - Island Reef Job" href="http://www.islandreefjob.com/Cali">http://www.islandreefjob.com/Cali</a></p>
<p><!-- Smart Youtube --><span class="youtube"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/ZVfn_Sb7rUc&amp;rel=1&amp;color1=3a3a3a&amp;color2=999999&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/ZVfn_Sb7rUc&amp;rel=1&amp;color1=3a3a3a&amp;color2=999999&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" ></embed><param name="wmode" value="transparent" /></object></span></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://japh.com.au/general/please-vote-for-cali/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>First NETTUTS Tutorial Posted!</title>
		<link>http://japh.com.au/general/first-nettuts-tutorial-posted/</link>
		<comments>http://japh.com.au/general/first-nettuts-tutorial-posted/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 10:39:09 +0000</pubDate>
		<dc:creator>Japh</dc:creator>
				<category><![CDATA[General Chatter]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://japheththomson.com/?p=78</guid>
		<description><![CDATA[I wrote my first tutorial for NETTUTS recently and it was published last night.
Title: Create a Slick Flickr Gallery with SimplePie
 Description: I&#8217;ve wanted to write a tutorial for quite some time now, and APIs have always been a particular interest of mine. So with my wife&#8217;s recent foray into photography, I decided a Flickr [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I wrote my first tutorial for <a title="NETTUTS" href="http://net.tutsplus.com" target="_blank">NETTUTS</a> recently and it was published last night.</p>
<p><strong>Title</strong>: <a title="Create a Slick Flickr Gallery with SimplePie" href="http://net.tutsplus.com/tutorials/php/create-a-slick-flickr-gallery-with-simplepie/">Create a Slick Flickr Gallery with SimplePie</a><br />
<strong> Description</strong>: I&#8217;ve wanted to write a tutorial for quite some time now, and APIs have always been a particular interest of mine. So with my wife&#8217;s recent foray into photography, I decided a Flickr tutorial would be first cab off the rank! Using RSS, Flickr and jQuery all together was pretty fun too.</p>
<p>Check it out!  <img src='http://japh.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://japh.com.au/general/first-nettuts-tutorial-posted/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Tracking memory usage</title>
		<link>http://japh.com.au/general/tracking-memory-usage/</link>
		<comments>http://japh.com.au/general/tracking-memory-usage/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 12:35:51 +0000</pubDate>
		<dc:creator>Japh</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General Chatter]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://japheththomson.com/?p=67</guid>
		<description><![CDATA[Recently I received a warning from my host that I was WAY over my memory limit.  I had some long running processes going, and a few cron scripts that altogether were using about 220mb out of my 120mb of allowed memory usage&#8230;  oops!
Anyway, there&#8217;s currently no way from my control panel to see [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Recently I received a warning from my host that I was WAY over my memory limit.  I had some long running processes going, and a few cron scripts that altogether were using about 220mb out of my 120mb of allowed memory usage&#8230;  oops!</p>
<p>Anyway, there&#8217;s currently no way from my control panel to see how memory I&#8217;m currently using, I have to run a command from a terminal, and certainly no way to tell usage over time.  So, after looking at a thread my hosting provider pointed me to, I decided to have a play with the Google Charts API!<br />
<span id="more-67"></span><br />
This is a pretty rudimentary solution, but it&#8217;s working so far for me.</p>
<p><strong>1. A very simple bash script</strong></p>

<div class="wp_codebox"><table><tr id="p675"><td class="code" id="p67code5"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-u</span> username <span style="color: #660033;">-o</span> pid,rss,<span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-e</span> mpm <span style="color: #660033;">-v</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{sum+=$2} END {print &quot;,&quot;, sum}'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>webroot<span style="color: #000000; font-weight: bold;">/</span>mem<span style="color: #000000; font-weight: bold;">/</span>memdata.csv</pre></td></tr></table></div>

<p>The script basically just outputs the current memory usage at the time of running and appends it to a CSV file.</p>
<p><strong>2. Add the script to the crontab</strong></p>
<p>By running the following command (or one similar), I edit my crontab:</p>

<div class="wp_codebox"><table><tr id="p676"><td class="code" id="p67code6"><pre class="bash" style="font-family:monospace;">crontab <span style="color: #660033;">-e</span></pre></td></tr></table></div>

<p>I then insert this line:</p>

<div class="wp_codebox"><table><tr id="p677"><td class="code" id="p67code7"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>full<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>script<span style="color: #000000; font-weight: bold;">/</span>memlogger</pre></td></tr></table></div>

<p>So now that bash script will be run every hour, on the hour.</p>
<p><strong>3. Writing a PHP script to display a Google Chart</strong></p>

<div class="wp_codebox"><table><tr id="p678"><td class="code" id="p67code8"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Settings</span>
<span style="color: #000088;">$max_mem</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">120</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Your memory limit, in MB</span>
<span style="color: #000088;">$data_file</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'memdata.csv'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$chart_width</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">550</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$chart_height</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">400</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;!</span>DOCTYPE html <span style="color: #000000; font-weight: bold;">PUBLIC</span> <span style="color: #0000ff;">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color: #0000ff;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>html xmlns<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>meta http<span style="color: #339933;">-</span>equiv<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Content-Type&quot;</span> content<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/html; charset=utf-8&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;</span>title<span style="color: #339933;">&gt;</span>Memory Usage<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h2<span style="color: #339933;">&gt;</span>Memory Usage<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$md</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data_file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$md</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/(\s+|\n)/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$md</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$md</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #339933;">,</span> <span style="color: #000088;">$md</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/array_shift"><span style="color: #990000;">array_shift</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$md</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$max</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$min</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$md</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$v</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$v</span> <span style="color: #339933;">&gt;</span> <span style="color: #000088;">$max</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$max</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$v</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$base</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$max</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$base</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$max_mem</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">1024</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$max</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$base</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$base</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://chart.apis.google.com/chart?cht=lc&amp;chd=t:&lt;?php echo implode(',', <span style="color: #006699; font-weight: bold;">$md</span>); ?&gt;&amp;chs=&lt;?php echo <span style="color: #006699; font-weight: bold;">$chart_width</span>; ?&gt;x&lt;?php echo <span style="color: #006699; font-weight: bold;">$chart_height</span>; ?&gt;&amp;chxt=y,r&amp;chxr=0,&lt;?php echo <span style="color: #006699; font-weight: bold;">$min</span>; ?&gt;,&lt;?php echo <span style="color: #006699; font-weight: bold;">$max</span>; ?&gt;|1,&lt;?php echo <span style="color: #006699; font-weight: bold;">$min</span>; ?&gt;,&lt;?php echo <span style="color: #006699; font-weight: bold;">$max</span>; ?&gt;&amp;chds=&lt;?php echo <span style="color: #006699; font-weight: bold;">$min</span>; ?&gt;,&lt;?php echo <span style="color: #006699; font-weight: bold;">$max</span>; ?&gt;&amp;chm=r,FF0000,0,&lt;?php echo <span style="color: #006699; font-weight: bold;">$base</span>; ?&gt;,&lt;?php echo <span style="color: #006699; font-weight: bold;">$base</span>+0.005; ?&gt;&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>p<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>This code basically just imports the data into an array, and then works a few things out for proper axis labelling, and away it goes!  It&#8217;s pretty quick and dirty, and could probably have been done nicer&#8230;  maybe I&#8217;ll come back and fix it up some time.</p>
<p>It also uses your memory limit amount to show a red line on the graph if you go over  <img src='http://japh.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Here&#8217;s the chart using some sample data:<br />
<img src="http://japh.com.au/wp-content/uploads/2009/02/memory-usage-chart-300x245.jpg" alt="Memory Usage Chart" title="Memory Usage Chart" width="300" height="245" class="alignnone size-medium wp-image-75" /></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://japh.com.au/general/tracking-memory-usage/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The new theme (debugged!)</title>
		<link>http://japh.com.au/general/the-new-theme/</link>
		<comments>http://japh.com.au/general/the-new-theme/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 13:17:43 +0000</pubDate>
		<dc:creator>Japh</dc:creator>
				<category><![CDATA[General Chatter]]></category>

		<guid isPermaLink="false">http://japheththomson.com/?p=61</guid>
		<description><![CDATA[Ok, so I&#8217;ve been looking around for a new look and feel for my blog.  I found this FREEmium theme for WordPress, and I fell in love.  Sure, it&#8217;s not 100% perfect, but it&#8217;ll do til I can do something for myself.
Anyway, after installing it and sitting back to think &#8220;ah, that looks better!&#8221;, I [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Ok, so I&#8217;ve been looking around for a new look and feel for my blog.  I found this FREEmium theme for WordPress, and I fell in love.  Sure, it&#8217;s not 100% perfect, but it&#8217;ll do til I can do something for myself.</p>
<p>Anyway, after installing it and sitting back to think &#8220;ah, that looks better!&#8221;, I browsed to another page on my site and&#8230; whoops!  All pages and posts other than the home page itself had an odd quirk&#8230;</p>
<p>When I was logged in to WordPress everything looked fine:</p>
<p><img class="alignnone size-medium wp-image-62" title="Blog Post - Logged In" src="http://japh.com.au/wp-content/uploads/2009/01/blogpost-loggedin-300x219.png" alt="Blog Post - Logged In" width="300" height="219" /></p>
<p>But when I logged out&#8230;</p>
<p><img class="alignnone size-medium wp-image-63" title="Blog Post - Logged Out" src="http://japh.com.au/wp-content/uploads/2009/01/blogpost-loggedout-264x300.png" alt="Blog Post - Logged Out" width="264" height="300" /></p>
<p>I was devastated&#8230; my near-perfect theme was ruined.  Then I remembered, I know PHP, all is not lost!  <img src='http://japh.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, after digging around, I finally worked out how to fix it!</p>
<p>In the comments.php file, the following lines:</p>

<div class="wp_codebox"><table><tr id="p6111"><td class="code" id="p61code11"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// If registration required and not logged in ?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// if you delete this the sky will fall on your head ?&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Should be:</p>

<div class="wp_codebox"><table><tr id="p6112"><td class="code" id="p61code12"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// If registration required and not logged in ?&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// if you delete this the sky will fall on your head ?&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>That&#8217;s it!  Sorted!  Hope that helped someone else  <img src='http://japh.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://japh.com.au/general/the-new-theme/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Burned my feed</title>
		<link>http://japh.com.au/general/burned-my-feed/</link>
		<comments>http://japh.com.au/general/burned-my-feed/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 14:21:35 +0000</pubDate>
		<dc:creator>Japh</dc:creator>
				<category><![CDATA[General Chatter]]></category>

		<guid isPermaLink="false">http://japheththomson.com/2009/01/20/burned-my-feed/</guid>
		<description><![CDATA[Just a quick update to let you know I&#8217;ve switched my feed over to feedburner, which will hopefully just have worked transparently for you.  If you notice any issues though, please let me know!
Also, I will hopefully be releasing the code for The Grey Album in the next week or so   
I&#8217;m [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Just a quick update to let you know I&#8217;ve switched my feed over to feedburner, which will hopefully just have worked transparently for you.  If you notice any issues though, please let me know!</p>
<p>Also, I will hopefully be releasing the code for The Grey Album in the next week or so  <img src='http://japh.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m in the process of giving my blog a new look too&#8230; please bare with me while I iron out the kinks!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://japh.com.au/general/burned-my-feed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APIs and The Grey Album</title>
		<link>http://japh.com.au/general/apis-and-the-grey-album/</link>
		<comments>http://japh.com.au/general/apis-and-the-grey-album/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 14:05:09 +0000</pubDate>
		<dc:creator>Japh</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General Chatter]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[photo album]]></category>

		<guid isPermaLink="false">http://japheththomson.com/?p=43</guid>
		<description><![CDATA[Lately I&#8217;ve been playing around with a few different APIs.  Getting the hang of using them and seeing what they can do.  I&#8217;ve had a brief play with both the Flickr and Twitter APIs, and they&#8217;re both actually very user-friendly yet powerful.
I decided to build a simple photo album script using mostly PHP [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve been playing around with a few different APIs.  Getting the hang of using them and seeing what they can do.  I&#8217;ve had a brief play with both the Flickr and Twitter APIs, and they&#8217;re both actually very user-friendly yet powerful.</p>
<p>I decided to build a simple photo album script using mostly PHP and jQuery to do the tricky parts, and the SimplePie library for actually importing the photo stream.  I&#8217;ve called it <a title="The Grey Album" href="http://japheththomson.com/greyalbum/">The Grey Album</a>, and though I probably wouldn&#8217;t call it a complete and comprehensive script, it seems to do the job.  Any feedback is most welcome!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://japh.com.au/general/apis-and-the-grey-album/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Must-have iPhone apps</title>
		<link>http://japh.com.au/general/must-have-iphone-apps/</link>
		<comments>http://japh.com.au/general/must-have-iphone-apps/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 07:26:55 +0000</pubDate>
		<dc:creator>Japh</dc:creator>
				<category><![CDATA[General Chatter]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.japheththomson.com/2008/09/06/must-have-iphone-apps/</guid>
		<description><![CDATA[Ok, this is a little off-topic, but now that I&#8217;ve had my iPhone for a few weeks and have gotten past the initial excitement and installation (and eventual removal) of all the show-off apps, I have a good collection of useful ones  :)  (and maybe still a few show-off ones&#8230;  ;) ) The list is as [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Ok, this is a little off-topic, but now that I&#8217;ve had my iPhone for a few weeks and have gotten past the initial excitement and installation (and eventual removal) of all the show-off apps, I have a good collection of useful ones  :)  (and maybe still a few show-off ones&#8230;  ;) ) The list is as follows:</p>
<ul>
<li><span class="Apple-style-span" style="font-weight: bold">Cannon Challenge</span> (ok, so the first item on my list being a game isn&#8217;t promising, but I&#8217;m going in alphabetical order!)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Currency</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Facebook</span> (obviously not such a must-have if you&#8217;re not on <a title="Facebook" href="http://www.facebook.com" target="_blank">Facebook</a>&#8230; but who&#8217;s not these days?  :P)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Flashlight</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">FTP On The Go</span> (not free)<span id="more-6"></span></li>
<li><span class="Apple-style-span" style="font-weight: bold">GarageBuy</span> (for eBay users)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Google Mobile App</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">IceTV</span> (free, but have to create an account on <a title="IceTV" href="http://www.icetv.com.au/" target="_blank">their website</a>)</li>
<li><span class="Apple-style-span" style="font-weight: bold">iSSH</span> (not free)</li>
<li><span class="Apple-style-span" style="font-weight: bold">LinkedIn</span> (not relevant if you don&#8217;t have an account)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Lonely Planet Mandarin</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Midomi</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Mocha VNC Lite</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">MotionX Dice</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Palringo Instant Messenger</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Remote</span> (controls iTunes from your iPhone)</li>
<li><span class="Apple-style-span" style="font-weight: bold">reMovem (free)</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Seismometer</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Sol Free Solitaire</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Stanza</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Tap Tap Revenge</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Twitterific</span> (obviously you&#8217;ll need a <a title="Twitter" href="http://twitter.com" target="_blank">Twitter</a> account for this one)</li>
<li><span class="Apple-style-span" style="font-weight: bold">Units</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">whois</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Wikipanion</span></li>
<li><span class="Apple-style-span" style="font-weight: bold">Zenbe Lists</span> (free, but you&#8217;ll need to create an account at <a title="Zenbe Lists" href="http://lists.zenbe.com/" target="_blank">http://lists.zenbe.com/</a>)</li>
</ul>
<p>So there it is, if you know of any other must-haves, post a comment!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://japh.com.au/general/must-have-iphone-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
