<?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>Matt Geri &#187; General</title>
	<atom:link href="http://mattgeri.com/blog/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattgeri.com</link>
	<description>Adventurous web and mobile developer</description>
	<lastBuildDate>Thu, 10 May 2012 19:43:46 +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>It&#8217;s been a long time coming</title>
		<link>http://mattgeri.com/blog/2012/01/its-been-a-long-time-coming/</link>
		<comments>http://mattgeri.com/blog/2012/01/its-been-a-long-time-coming/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 20:15:38 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Freelancing]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://mattgeri.com/?p=481</guid>
		<description><![CDATA[It can safely be said, that for the first time in history I have a personal website that doesn&#8217;t have a section which displays a &#8220;coming soon&#8221; sign on it. This website has been through many iterations in the past and every time it has never been complete. I&#8217;ve been working extremely hard over the [...]]]></description>
			<content:encoded><![CDATA[<p>It can safely be said, that for the first time in history I have a personal website that doesn&#8217;t have a section which displays a &#8220;coming soon&#8221; sign on it. This website has been through many iterations in the past and every time it has never been complete.</p>
<p>I&#8217;ve been working extremely hard over the past week and a bit to revamp the sites theme and complete all the sub page sections on the top menu. Finally, about 10 minutes ago I pushed the last changes.</p>
<p>I am very happy with the outcome. I&#8217;ve added sections where I can show off some of my work, link to articles I write, share my talks and lots more. Most importantly, since I am back in the freelance game (more on this later), I have added a section called &#8220;Consulting&#8221;. In this section you will find a list of services that I offer as a freelancer and consultant, testimonials from previous clients and also some of my client portfolio.</p>
<p>There are sections of the site that I want to improve on and I have still got to add quite a few projects I&#8217;ve worked on and articles that I have written, but that will only happen throughout the year.</p>
<p>I&#8217;m planning on blogging a lot more this year and also writing many more technical articles (especially on other development websites). My plan is to keep this site fresh and up to date with what&#8217;s happening in my life and development life.</p>
<p>Stay tuned.</p>
]]></content:encoded>
			<wfw:commentRss>http://mattgeri.com/blog/2012/01/its-been-a-long-time-coming/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Back to blogging</title>
		<link>http://mattgeri.com/blog/2011/07/back-to-blogging/</link>
		<comments>http://mattgeri.com/blog/2011/07/back-to-blogging/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 11:00:18 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://mattgeri.com/?p=215</guid>
		<description><![CDATA[It&#8217;s been a long time since I last fired up the WordPress admin section of my blog, way too long in fact. Blogging is one of those things that if you don&#8217;t constantly remind and engage yourself in it, you eventually end up forgetting about it. A lot has gone down since my last blog [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long time since I last fired up the WordPress admin section of my blog, way too long in fact. Blogging is one of those things that if you don&#8217;t constantly remind and engage yourself in it, you eventually end up forgetting about it.</p>
<p>A lot has gone down since my last blog post including turning 25 year old and getting back into the freelance business. I also have a lot of exciting things happening this year. More on all that in future posts though. For now though, I am looking forward to sharing my thoughts again and hearing your feedback!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattgeri.com/blog/2011/07/back-to-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My new blog theme has gone live</title>
		<link>http://mattgeri.com/blog/2010/08/mynew-blog-theme-has-gone-live/</link>
		<comments>http://mattgeri.com/blog/2010/08/mynew-blog-theme-has-gone-live/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 18:13:37 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://mattgeri.com/?p=71</guid>
		<description><![CDATA[Over the past few weeks I have been working on a new custom theme for my blog and I have finally finished the first version and activated it. It is still a little rough around the edges and as time goes by I know I will be tinkering with and changing it quite a lot, [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past few weeks I have been working on a new custom theme for my blog and I have finally finished the first version and activated it. It is still a little rough around the edges and as time goes by I know I will be tinkering with and changing it quite a lot, but for now, I just wanted to get it out there <img src='http://mattgeri.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I am also going to start moving all my old posts from iarematt.com over to this blog now and setup a permanent 301 redirect from there to here. So you will notice over the next week or so that this blog will start filling up a bit.</p>
<p>I also still have to install a bunch of plugins (including MobilePress). That will happen over the next week as well.</p>
<p>All in all, I am really happy with the new theme. Some of the cool things that I have added to the theme so far are:</p>
<ul>
<li>Custom logo that I created in Fireworks</li>
<li>A slick code syntax highlighter</li>
<li>Original icons that I created &#8211; see the category and comments below (I also plan to release these plus a couple more icons soon)</li>
<li>Favicon derived from my new logo</li>
</ul>
<p>So there it is. Browse around the blog and let me know what you think! Oh, and it has only been tested in Chrome, Firefox and Safari.</p>
]]></content:encoded>
			<wfw:commentRss>http://mattgeri.com/blog/2010/08/mynew-blog-theme-has-gone-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to my &#8220;new&#8221; blog</title>
		<link>http://mattgeri.com/blog/2010/07/welcome-to-my-new-blog/</link>
		<comments>http://mattgeri.com/blog/2010/07/welcome-to-my-new-blog/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 14:47:54 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://mattgeri.com/?p=1</guid>
		<description><![CDATA[Thanks for visiting. It&#8217;s been quite a while since I have blogged and I suppose, as they say, now is as good a time as any to get started again. I have decided to switch domains from my old iarematt.com back to mattgeri.com which I have owned for many years. The iarematt.com domain will still [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks for visiting. It&#8217;s been quite a while since I have blogged and I suppose, as they say, now is as good a time as any to get started again.</p>
<p>I have decided to switch domains from my old iarematt.com back to <a href="http://mattgeri.com">mattgeri.com</a> which I have owned for many years. The iarematt.com domain will still be online for the time being while I transfer all the best blog posts from that blog to this one, then I will do a simple 301 redirect from there to here.</p>
<p>You will notice that if you browse around there are a few empty pages, unfinished content pieces and even fewer features that you would find on a traditional blog. I plan to finish writing and completing these pages over time. The reason I decided to leave these pages and features unfinished or out completely is that, in the past, I have spent countless hours developing the &#8220;perfect blog&#8221; and there never seems to be an end to it. So I thought, rather get something out on the interweb and start blogging, than spend the next few months developing a perfect blog and perhaps never get there.</p>
<p>The same will go for some of the projects I plan to work on in my spare time. I&#8217;m adopting a sort of agile development philosophy where I will release early and often. So while they may not be perfect projects at first, over time, they will grow into pretty awesome things (hopefully).</p>
<p>Without pressuring myself, I plan to try post a couple posts a week. Most of them will be related to web development, mobile development, ubuntu server admin, technology and other interesting topics mostly related to creating websites.</p>
<p>So there it is, my return to blogging! Woot.</p>
]]></content:encoded>
			<wfw:commentRss>http://mattgeri.com/blog/2010/07/welcome-to-my-new-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mail &amp; Guardian Post &#8211; Temporarily Closed</title>
		<link>http://mattgeri.com/blog/2009/03/mail-guardian-post-temporarily-closed/</link>
		<comments>http://mattgeri.com/blog/2009/03/mail-guardian-post-temporarily-closed/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 19:34:03 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mail & Guardian]]></category>

		<guid isPermaLink="false">http://iarematt.com/?p=136</guid>
		<description><![CDATA[Update: *Sigh*, some people are really pathetic. This post has been removed for now, but will definitely probably be back soon once everything with the M&#038;G is sorted out&#8230;]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> *Sigh*, some people are really pathetic. This post has been removed for now, but will <s>definitely</s> probably be back soon once everything with the M&#038;G is sorted out&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mattgeri.com/blog/2009/03/mail-guardian-post-temporarily-closed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I&#8217;ve joined GitHub</title>
		<link>http://mattgeri.com/blog/2009/01/ive-joined-github/</link>
		<comments>http://mattgeri.com/blog/2009/01/ive-joined-github/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 22:40:19 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[GIT]]></category>
		<category><![CDATA[GitHub]]></category>

		<guid isPermaLink="false">http://iarematt.com/?p=117</guid>
		<description><![CDATA[Just a quick note to let fellow coders know that I have joined GitHub and you should follow me I haven&#8217;t put up any code yet but I have a few projects that are in desperate need of finishing and they will definitely go up once I have the final release versions done. I have [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note to let fellow coders know that I have joined <a href="https://github.com/MattGeri">GitHub</a> and you should follow me <img src='http://mattgeri.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I haven&#8217;t put up any code yet but I have a few projects that are in desperate need of finishing and they will definitely go up once I have the final release versions done. I have been using SVN for a while now and haven&#8217;t got my hands dirty yet with git, so I am really looking forward to diving in.</p>
<p>For those of you who don&#8217;t know what git or GitHub is (I suspect very few of you), git is basically version control for code and github is hosting for your git repo&#8217;s. GitHub offers you free hosting for unlimited open source projects and if you want private projects they have a subscription model. What I really like about GitHub is that it has a social element to it. You can follow other users and interact in various ways.</p>
<p>So follow me and lets connect <img src='http://mattgeri.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://mattgeri.com/blog/2009/01/ive-joined-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Ramblings On Blogging</title>
		<link>http://mattgeri.com/blog/2009/01/some-ramblings-on-blogging/</link>
		<comments>http://mattgeri.com/blog/2009/01/some-ramblings-on-blogging/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 22:21:44 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://iarematt.com/?p=113</guid>
		<description><![CDATA[As I fully expected, my blogging journey so far this year has been full of new learning experiences. Mostly good experiences and some challenging ones. Something I wanted to touch on today is what having a &#8220;personal&#8221; blog means and why you should have one. I have done a lot of thinking about my blog [...]]]></description>
			<content:encoded><![CDATA[<p>As I fully expected, my blogging journey so far this year has been full of new learning experiences. Mostly good experiences and some challenging ones. Something I wanted to touch on today is what having a &#8220;personal&#8221; blog means and why you should have one.</p>
<p>I have done a lot of thinking about my blog and what the purpose of it should be. Should it be to teach others something I know, or to share experiences, or should it be to brand myself or even something else? Other thoughts that I have had is who am I trying to target with my blog? In the end I have come to the conclusion that a &#8220;personal&#8221; blog should really be about anything you want and the target audience should be whoever the heck wants to read it <img src='http://mattgeri.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>A personal blog is all about you, the blogger. Now, that may sound a bit egotistical but it is true. The point of a personal blog is to write about your experiences and share a little piece of your life with the world. Not only that, I feel another good use of a personal blog is for it to be used as a reference. What kind of reference? It doesn&#8217;t really matter. If you are a coder you can post code snippets which you find useful and that may need in the future. If you are a Mom with a kid you can document milestones in the kids life. You can document whatever you feel like.</p>
<p>There are a few things that I want to achieve with this blog and I have documented some of them in my <a href="http://mattgeri.com/about/">about</a> page. Mostly though I want to be able to look back in a few years and say &#8220;Hey, I remember when I was working on that project&#8221; or &#8220;Where is that useful little code snippet that I documented&#8221; etc. I want to also connect with my readers and be able to launch open-source projects and get feedback and even contributors.</p>
<p>One thing I have found is that the key to successful blogging is to keep posting . As long as you keep your blog active and post a few times a week you will definitely build a readership and start reaping the rewards. I have started lots of blogs before and all of them failed in the end because I didn&#8217;t keep them active.</p>
<p>And that is about it for tonight. I slacked off a little last week and missed a few posts but all will change this week <img src='http://mattgeri.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I have a ton of drafts that I need to finish and I am really looking forward to getting them out <img src='http://mattgeri.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://mattgeri.com/blog/2009/01/some-ramblings-on-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery scrolling pagination plugin</title>
		<link>http://mattgeri.com/blog/2009/01/jquery-scrolling-pagination-plugin/</link>
		<comments>http://mattgeri.com/blog/2009/01/jquery-scrolling-pagination-plugin/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 21:57:44 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://iarematt.com/?p=107</guid>
		<description><![CDATA[Pagination is a simple concept that can be executed in very many different ways. In some ways pagination is one of the most crucial parts of a website. It breaks your content up and helps visitors navigate your website easily. If it weren&#8217;t for pagination our blogs would probably be one very long page and [...]]]></description>
			<content:encoded><![CDATA[<p>Pagination is a simple concept that can be executed in very many different ways. In some ways pagination is one of the most crucial parts of a website. It breaks your content up and helps visitors navigate your website easily. If it weren&#8217;t for pagination our blogs would probably be one very long page and most likely take quite a long time to load if you have a reasonable amount of posts.</p>
<p>I have seen tons of different implementations of pagination. My favorite probably being <a href="http://www.mis-algoritmos.com/2007/05/27/digg-style-pagination-class/">Digg like pagination</a> as implemented on this blog. While the Digg like pagination class is a very basic form of pagination there are a lot of websites out there that have implemented quite exotic pagination.</p>
<p>One such example of exotic pagination is <a href="http://www.dzone.com">dzone.com</a>. I recently joined dzone.com and even though the website is rather cluttered and busy their pagination totally rocks. What happens is when you come to the end of the current page you are viewing (it is actually a little frame) there is a Ajax call which loads the next results (that would be listed on a second page). So basically as you keep scrolling down to view more content, it automatically loads it for you without you having to click a next page button. Check it out at dzone.com.</p>
<p>Luckily for us, South African PHP developer and jQuery extraordinaire, <a href="http://calisza.wordpress.com/">Barry Roodt</a>, has developed a jQuery plugin that does all the above and can be implemented on your own site with very little effort. The current version of the plugin is 0.1b and you can get it <a href="http://calisza.wordpress.com/2009/01/18/jquery-plugin-jqpageflow-scrolling-pagination-made-easy/">here</a>.</p>
<p>Definitely check out Barrys plugin (there is also a demo <a href="http://flexidev.co.za/projects/jqpageflow">here</a> for you to see how it works) and let him know if you implement it on your own site. I am definitely planning on playing around with it in the near future!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattgeri.com/blog/2009/01/jquery-scrolling-pagination-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP code to check if a directory is empty</title>
		<link>http://mattgeri.com/blog/2009/01/php-code-to-check-if-a-directory-is-empty/</link>
		<comments>http://mattgeri.com/blog/2009/01/php-code-to-check-if-a-directory-is-empty/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 22:14:09 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://iarematt.com/?p=102</guid>
		<description><![CDATA[While dealing with files and directories in PHP you will most likely at some point want to check if a folder/directory is empty. To do this, you need to write a script that does the check. There are two ways of doing this. The first is supported in PHP 4 and 5 only and the [...]]]></description>
			<content:encoded><![CDATA[<p>While dealing with files and directories in PHP you will most likely at some point want to check if a folder/directory is empty. To do this, you need to write a script that does the check. There are two ways of doing this. The first is supported in PHP 4 and 5 only and the second will only work if you are running PHP 5 on your server. Here they are:</p>
<h3>Method 1:</h3>
<p>This code works with PHP 4 and PHP 5.</p>
<pre><code class="PHP">// Open directory and create an object
// The dir() function creates the object
$directory = dir('path_to_directory');

// Loop while the read method goes through each and
// every file
while ((FALSE !== ($item = $directory->read())) &#038;&#038; ( ! isset($directory_not_empty)))
{
	// If an item is not "." and "..", then something
	// exists in the directory and it is not empty
	if ($item != '.' &#038;&#038; $item != '..')
	{
		$directory_not_empty = TRUE;
	}
}

// Close the directory
$directory->close();
</code></pre>
<h3>Method 2:</h3>
<p>Although the code below is a lot neater and lighter, it will only work with PHP 5.</p>
<pre><code class="PHP">
// Scans the path for directories and if there are more than 2
// directories i.e. "." and ".." then the directory is not empty
if ( ($files = @scandir('path_to_directory') &#038;&#038; (count($files) > 2) )
{
	$directory_not_empty = TRUE;
}
</code></pre>
<p>And there you have it. Two simple ways of checking if a directory is empty. Let me know if you found this useful in the comment block below.</p>
]]></content:encoded>
			<wfw:commentRss>http://mattgeri.com/blog/2009/01/php-code-to-check-if-a-directory-is-empty/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Getting A Little More Technical</title>
		<link>http://mattgeri.com/blog/2009/01/getting-a-little-more-technical/</link>
		<comments>http://mattgeri.com/blog/2009/01/getting-a-little-more-technical/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 21:43:43 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://iarematt.com/?p=101</guid>
		<description><![CDATA[As you probably know, I relaunched my blog on 1st of January and since then it has really started to take off. I am getting quite a decent amount of search engine traffic and the amount of direct traffic I am getting is also on the increase (which tells me people like my posts and [...]]]></description>
			<content:encoded><![CDATA[<p>As you probably know, I relaunched my blog on 1st of January and since then it has really started to take off. I am getting quite a decent amount of search engine traffic and the amount of direct traffic I am getting is also on the increase (which tells me people like my posts and are coming back to read more). Most importantly though, I am really enjoying blogging and am I loving the feedback I am getting.</p>
<p>Anyway, one of my goals (not made public) was to start writing a lot more technical/development related posts. Now, I know that may not be everyones cup of tea and it may even drive a few return visitors away from the blog but it is something I really want to start doing. I especially want to talk about some of the stuff I am currently working on and explain how I am doing it. Heck, you may be able to tell me how to do it better. That&#8217;s what I want.</p>
<p>What I am going to do though (to cater for visitors who are not so interested in development but are interested in technology) is supplement each development related post with a non-technical post. Those non-technical posts will be stuff like reviews, current happenings on the web, tech trends, a lot about mobile stuff and I also hope to start videocasting soon!</p>
<p>At the current rate, I am getting out about 2-4 blog posts a day (usually more on the weekends when I am not working). So I definitely think I will be able to manage one technical and one non-technical post a day. What do you think of this idea? What do you want to read more of?</p>
]]></content:encoded>
			<wfw:commentRss>http://mattgeri.com/blog/2009/01/getting-a-little-more-technical/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

