<?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>av01d</title>
	<atom:link href="http://www.avoid.org/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.avoid.org</link>
	<description>Gadgets, Computers and Nerdy Stuff</description>
	<lastBuildDate>Mon, 08 Apr 2013 09:59:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Apache &#8220;rewrite rule&#8221; for REST API</title>
		<link>http://www.avoid.org/?p=126</link>
		<comments>http://www.avoid.org/?p=126#comments</comments>
		<pubDate>Mon, 08 Apr 2013 09:59:48 +0000</pubDate>
		<dc:creator>Arjan</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.avoid.org/?p=126</guid>
		<description><![CDATA[Here&#8217;s how you can configure your Apache webserver for a REST API, without using rewrite rules (thus: you don&#8217;t need the rewrite engine). Simply add the following line to your &#60;VirtualHost&#62;: AliasMatch ^/api/rest/v1/(.*)$ /var/www/[mywebsite]/htdocs/api/rest/v1/index.php In index.php, you can read the parameters like so: &#60;?php    $path = preg_replace('~^/rest/v1/~', '', $_SERVER['SCRIPT_NAME']);    $parts = explode('/', $path);&#8230;]]></description>
		<wfw:commentRss>http://www.avoid.org/?feed=rss2&#038;p=126</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript: Add URL parameter</title>
		<link>http://www.avoid.org/?p=121</link>
		<comments>http://www.avoid.org/?p=121#comments</comments>
		<pubDate>Sun, 17 Mar 2013 09:17:21 +0000</pubDate>
		<dc:creator>Arjan</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.avoid.org/?p=121</guid>
		<description><![CDATA[Here&#8217;s a handy function for adding a new parameter to a URL: function addUrlParam(param, value) { var url = location.href; if (location.search.indexOf(param) != -1) return url; var hash = location.hash, sep = url.indexOf('?') == -1 ? '?' : '&#38;'; return url.replace(hash,'') + sep + encodeURIComponent(param) + (value ? '=' + encodeURIComponent(value) : '') + hash;&#8230;]]></description>
		<wfw:commentRss>http://www.avoid.org/?feed=rss2&#038;p=121</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hotmail breaks some utf-8 email headers</title>
		<link>http://www.avoid.org/?p=113</link>
		<comments>http://www.avoid.org/?p=113#comments</comments>
		<pubDate>Wed, 17 Aug 2011 13:26:58 +0000</pubDate>
		<dc:creator>Arjan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.avoid.org/?p=113</guid>
		<description><![CDATA[Hotmail has a bad habit of breaking some email headers, when those headers are utf8-encoded. Campaign Monitor describes it in detail. After some testing, I found out that the problem only occurs with relatively long headers. For example, an email with (random) subject &#8220;婰婜孲 訬軗郲, 榃痯痻 熿熼燛 鷢黳鼶 誙 慛慖 羳蟪蠁 湹渵焲 箛箙 瑽&#8221; displays&#8230;]]></description>
		<wfw:commentRss>http://www.avoid.org/?feed=rss2&#038;p=113</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SynoExt add-on for Firefox 4, 5 and 6</title>
		<link>http://www.avoid.org/?p=99</link>
		<comments>http://www.avoid.org/?p=99#comments</comments>
		<pubDate>Sat, 25 Jun 2011 12:27:21 +0000</pubDate>
		<dc:creator>Arjan</dc:creator>
				<category><![CDATA[DiskStation]]></category>

		<guid isPermaLink="false">http://www.avoid.org/?p=99</guid>
		<description><![CDATA[The SynoExt add-on for Firefox is great for people who have a Synology DiskStation: downloading torrents on the NAS straight from the browser. Too bad the extension isn&#8217;t being maintained, and is now incompatible with new Firefox versions (everything newer than 3.6 won&#8217;t work). Turns out that there is a very easy fix, simply editing&#8230;]]></description>
		<wfw:commentRss>http://www.avoid.org/?feed=rss2&#038;p=99</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Slow/crashing IE9, blank screens</title>
		<link>http://www.avoid.org/?p=92</link>
		<comments>http://www.avoid.org/?p=92#comments</comments>
		<pubDate>Thu, 26 May 2011 11:46:43 +0000</pubDate>
		<dc:creator>Arjan</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.avoid.org/?p=92</guid>
		<description><![CDATA[At work, I am running Windows 7 (64-bit) on a Dell Optiplex 780 PC. When Internet Explorer 9 was released, I installed the 64-bit version on this PC. Right from the start IE9 was unbearably slow, pages didn&#8217;t load, or only showed after you moved the mouse (it reminded me of a &#8220;peekaboo&#8221; bug). It&#8230;]]></description>
		<wfw:commentRss>http://www.avoid.org/?feed=rss2&#038;p=92</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript addClass/removeClass functions</title>
		<link>http://www.avoid.org/?p=78</link>
		<comments>http://www.avoid.org/?p=78#comments</comments>
		<pubDate>Fri, 18 Mar 2011 20:29:03 +0000</pubDate>
		<dc:creator>Arjan</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.avoid.org/?p=78</guid>
		<description><![CDATA[While looking for compact Javascript addClass and removeClass functions, I stumbled upon http://snipplr.com/view/3561/addclass-removeclass-hasclass/. This code allows for a few optimizations: The &#8216;match&#8217; method is deprecated, &#8216;test&#8217; should be used instead. The &#8216;addClass&#8217; function references a non-existing &#8216;this&#8217; object. The &#8216;removeClass&#8217; function declares a new variable &#8216;reg&#8217;, which is unnecessary. The &#8216;removeClass&#8217; function doesn&#8217;t handle multiple&#8230;]]></description>
		<wfw:commentRss>http://www.avoid.org/?feed=rss2&#038;p=78</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP: Determine the Quarter for a timestamp</title>
		<link>http://www.avoid.org/?p=75</link>
		<comments>http://www.avoid.org/?p=75#comments</comments>
		<pubDate>Thu, 03 Feb 2011 18:29:25 +0000</pubDate>
		<dc:creator>Arjan</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.avoid.org/?p=75</guid>
		<description><![CDATA[PHP&#8217;s date and strftime functions are great for retreiving date-related info formatting them. The only thing missing is a way to determine the quarter (Q1-Q4) for a timestamp. Here&#8217;s a very short function that will return the quarter for a timestamp: /** * Return the quarter for a timestamp. * @returns integer */ function quarter($ts)&#8230;]]></description>
		<wfw:commentRss>http://www.avoid.org/?feed=rss2&#038;p=75</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Replace \u characters in json string</title>
		<link>http://www.avoid.org/?p=67</link>
		<comments>http://www.avoid.org/?p=67#comments</comments>
		<pubDate>Mon, 10 Jan 2011 20:12:19 +0000</pubDate>
		<dc:creator>Arjan</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.avoid.org/?p=67</guid>
		<description><![CDATA[In PHP, if you JSON-encode a string that contains accented characters, the result contains unicode sequences (for example: \u00e9 represents the é character). &#60;?php $string = 'åbcdéfg'; print json_encode($string) . "\n"; ?&#62; Running this gives the following output: "\u005e5bcd\u00e9fg" If you want to replace the unicode sequences back to their character representation, here&#8217;s what you&#8230;]]></description>
		<wfw:commentRss>http://www.avoid.org/?feed=rss2&#038;p=67</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Enable SSH&amp;SCP on DiskStation</title>
		<link>http://www.avoid.org/?p=52</link>
		<comments>http://www.avoid.org/?p=52#comments</comments>
		<pubDate>Sun, 28 Mar 2010 17:24:54 +0000</pubDate>
		<dc:creator>Arjan</dc:creator>
				<category><![CDATA[DiskStation]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[synology]]></category>

		<guid isPermaLink="false">http://arjan.webpower.nl/?p=52</guid>
		<description><![CDATA[Enabling SSH on a DiskStation is easy. Download and install the Synology &#8220;Enable SSH&#8221; patch. Install it via the DiskStation manager (via System -&#62; Firmware Update). Voila: you should now be able to SSH to your DiskStation. But SCP does not work yet. When you try to SCP to the DiskStation, you probably see either&#8230;]]></description>
		<wfw:commentRss>http://www.avoid.org/?feed=rss2&#038;p=52</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Properly Mounting DiskStation shares in OSX</title>
		<link>http://www.avoid.org/?p=46</link>
		<comments>http://www.avoid.org/?p=46#comments</comments>
		<pubDate>Sat, 20 Mar 2010 14:53:17 +0000</pubDate>
		<dc:creator>Arjan</dc:creator>
				<category><![CDATA[DiskStation]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[afp]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[shares]]></category>
		<category><![CDATA[smb]]></category>

		<guid isPermaLink="false">http://arjan.webpower.nl/?p=46</guid>
		<description><![CDATA[Mounting shares (called &#8220;Shared Folders&#8221; on the DiskStation) in OSX is very easy. In Finder, click Go -&#62; Connect to Server. Depending on whether your share is available as AFP (Apple Filing Protocol) or SMB (Samba), you enter afp://192.168.1.2 or smb://192.168.1.2 respectively. Click Connect, then select the shares you want to share. Easy. However, making&#8230;]]></description>
		<wfw:commentRss>http://www.avoid.org/?feed=rss2&#038;p=46</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
