<?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>Mal Curtis</title>
	<atom:link href="http://mal.co.nz/feed/" rel="self" type="application/rss+xml" />
	<link>http://mal.co.nz</link>
	<description>Changing the World One Semi-Colon at a Time</description>
	<lastBuildDate>Thu, 07 Jul 2011 22:54:21 +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>2degrees Mobile &amp; 1Password settings</title>
		<link>http://mal.co.nz/2011/07/2degrees-mobile-1password-settings/</link>
		<comments>http://mal.co.nz/2011/07/2degrees-mobile-1password-settings/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 22:54:21 +0000</pubDate>
		<dc:creator>Mal Curtis</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://mal.co.nz/?p=160</guid>
		<description><![CDATA[Trying to get 2degrees in NZ to work with 1Password? Here are the settings! This is tested in both FireFox and Chrome on a Mac. Note: hdnAction and externalURLRedirect both [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to get 2degrees in NZ to work with 1Password? Here are the settings! This is tested in both FireFox and Chrome on a Mac.</p>
<p><em>Note: hdnAction and externalURLRedirect both need to be checkboxes to work in Chrome.<br />
</em><br />
<a href="http://mal.co.nz/wp-content/uploads/2011/07/Screen-shot-2011-07-08-at-10.50.55-AM.png"><img src="http://mal.co.nz/wp-content/uploads/2011/07/Screen-shot-2011-07-08-at-10.50.55-AM.png" alt="" title="Screen shot 2011-07-08 at 10.50.55 AM" width="582" height="600" class="alignnone size-full wp-image-161" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://mal.co.nz/2011/07/2degrees-mobile-1password-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Twitter no longer accepts url encoding spaces as +</title>
		<link>http://mal.co.nz/2010/12/twitter-longer-accepts-url-encoding-spaces/</link>
		<comments>http://mal.co.nz/2010/12/twitter-longer-accepts-url-encoding-spaces/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 22:56:41 +0000</pubDate>
		<dc:creator>Mal Curtis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://mal.co.nz/?p=138</guid>
		<description><![CDATA[At the end of every SitePoint Course lesson there&#8217;s a link to shout out to Twitter that you&#8217;ve completed that days lesson. We try and mix these up as much [...]]]></description>
			<content:encoded><![CDATA[<p>At the end of every SitePoint Course lesson there&#8217;s a link to shout out to Twitter that you&#8217;ve completed that days lesson. We try and mix these up as much as possible, from the original &#8220;Woohoo! I just finished day 1&#8230;&#8221; to the more obscure &#8220;Bickity Bam!&#8221; and &#8220;Holy Guacamole&#8221;.</p>
<p>Most recently we&#8217;ve noticed a few tweets in the form &#8220;Bickity+Bam!+I+just+completed+lesson+7+of+SitePoint&#8217;s+CSS3+Live+course+#css3live&#8221;, and on investigation it looks like once New Twitter was rolled out, Twitter no longer accepted the more common method of encoding spaces as a + sign, and only accepts the strict RFC 3986 specification of %20.</p>
<p>If you&#8217;re a PHP user, this simple means swapping from urlencode() to rawurlencode().</p>
<pre class="brush: php">
$url = urlencode("http://twitter.com/?status=What are these plus signs?"); // Bad
$url = rawurlencode("http://twitter.com/?status=No plus signs here mofo'"); // Good
</pre>
<p>Done.</p>
<p><strong>Update</strong> This is actually more likely to be part of their security upgrades after the <a href="http://www.receptional.com/blogs/social-media/about-twitter-url-injection-attack">url injection issues</a> they were having </p>
]]></content:encoded>
			<wfw:commentRss>http://mal.co.nz/2010/12/twitter-longer-accepts-url-encoding-spaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browser doesn&#8217;t fire Blur before onBeforeUnload event</title>
		<link>http://mal.co.nz/2010/11/browser-fire-blur-onbeforeunload-event/</link>
		<comments>http://mal.co.nz/2010/11/browser-fire-blur-onbeforeunload-event/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 13:16:24 +0000</pubDate>
		<dc:creator>Mal Curtis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[active element]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://mal.co.nz/?p=127</guid>
		<description><![CDATA[While playing around with the Dirty Forms plugin I realised that the blur event of an input was not being fired when refreshing the page. This happens in Chrome and [...]]]></description>
			<content:encoded><![CDATA[<p>While playing around with the <a href="/code/jquery-dirty-forms">Dirty Forms</a> plugin I realised that the blur event of an input was not being fired when refreshing the page. This happens in Chrome and FireFox (and most likely others). I decided I&#8217;d see what I could do to handle this, and came across the document.activeElement property which is available in all recent releases of browsers &#8211; apparently even IE &#8211; and it&#8217;s part of the HTML5 spec.</p>
<pre class="brush: js">
$(window).bind('beforeunload', function(){
  if(document.activeElement) $(document.activeElement).blur();
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://mal.co.nz/2010/11/browser-fire-blur-onbeforeunload-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple Says My Face Causes Cellular Interference</title>
		<link>http://mal.co.nz/2010/11/apple-face-cellular-interference/</link>
		<comments>http://mal.co.nz/2010/11/apple-face-cellular-interference/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 12:00:24 +0000</pubDate>
		<dc:creator>Mal Curtis</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://mal.co.nz/?p=87</guid>
		<description><![CDATA[While lying on the couch coding tonight, I had my iPhone 4 tucked under my chin. I don&#8217;t know why &#8211; it was just comfortable. Anyway &#8211; after a while, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mal.co.nz/wp-content/uploads/2010/11/myface.jpg" rel="facebox"><img src="http://mal.co.nz/wp-content/uploads/2010/11/myface-150x150.jpg" alt="" title="myface" width="150" height="150" class="alignright size-thumbnail wp-image-88" /></a>While lying on the couch coding tonight, I had my iPhone 4 tucked under my chin. I don&#8217;t know why &#8211; it was just comfortable. Anyway &#8211; after a while, it popped up with a message saying that I had attached an incompatible accessory and it would possibly cause cellular interference. Apparently my face is incompatible with the iPhone 4.</p>
]]></content:encoded>
			<wfw:commentRss>http://mal.co.nz/2010/11/apple-face-cellular-interference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Event Target for Submit wrong in IE7</title>
		<link>http://mal.co.nz/2010/11/event-target-for-submit-wrong-in-ie7/</link>
		<comments>http://mal.co.nz/2010/11/event-target-for-submit-wrong-in-ie7/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 23:57:32 +0000</pubDate>
		<dc:creator>Mal Curtis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[event.target]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[submit]]></category>

		<guid isPermaLink="false">http://mal.co.nz/?p=31</guid>
		<description><![CDATA[While working on the Dirty Forms plugin, I discovered &#8211; much to my annoyance that when firing the Submit event, IE7 passes the target property as a reference to the [...]]]></description>
			<content:encoded><![CDATA[<p>While working on the <a href="/code/jquery-dirty-forms">Dirty Forms</a> plugin, I discovered &#8211; much to my annoyance that when firing the Submit event, IE7 passes the target property as a reference to the submit input (if you clicked it) rather than what every same browser does, which is pass the form as the target.</p>
<p>This is easily fixed with jQuery</p>
<pre class="brush: js">var target = $(event.target);
if(!target.is('form')) target = target.closest('form');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://mal.co.nz/2010/11/event-target-for-submit-wrong-in-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Live Binding to Submit in IE7</title>
		<link>http://mal.co.nz/2010/11/jquery-live-binding-to-submit-in-ie7/</link>
		<comments>http://mal.co.nz/2010/11/jquery-live-binding-to-submit-in-ie7/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 23:54:54 +0000</pubDate>
		<dc:creator>Mal Curtis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[live]]></category>
		<category><![CDATA[submit]]></category>

		<guid isPermaLink="false">http://mal.co.nz/?p=28</guid>
		<description><![CDATA[While working on Dirty Forms, I was running into issues getting IE7 to work with binding to the Submit event on a form, using the .live() method. It turns out [...]]]></description>
			<content:encoded><![CDATA[<p>While working on <a href="/code/jquery-dirty-forms">Dirty Forms</a>, I was running into issues getting IE7 to work with binding to the Submit event on a form, using the .live() method.</p>
<p>It turns out that jQuery 1.4.2 has a bug which doesn&#8217;t allow this to work, so you should use 1.4.3 or higher.</p>
]]></content:encoded>
			<wfw:commentRss>http://mal.co.nz/2010/11/jquery-live-binding-to-submit-in-ie7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

