<?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>Themer</title>
	<atom:link href="http://www.themer.me/feed" rel="self" type="application/rss+xml" />
	<link>http://www.themer.me</link>
	<description></description>
	<lastBuildDate>Wed, 25 Jan 2012 10:27:34 +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>Fix: MySQL MAMP PRO &#8211; Neverending &#8220;Loading&#8221;</title>
		<link>http://www.themer.me/blog/misc/fix-mysql-mamp-pro-neverending-loading</link>
		<comments>http://www.themer.me/blog/misc/fix-mysql-mamp-pro-neverending-loading#comments</comments>
		<pubDate>Fri, 06 Jan 2012 20:08:30 +0000</pubDate>
		<dc:creator>Methemer</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.themer.me/?p=554</guid>
		<description><![CDATA[So Today I encountered a weird bug in MAMP PRO 2.0.1: After doing a restart of MAMP PRO, ...]]></description>
			<content:encoded><![CDATA[<p>So Today I encountered a weird bug in MAMP PRO 2.0.1:</p>
<p>After doing a restart of MAMP PRO, MySQL was loading, but didn&#8217;t load. None of the settings were&nbsp;accessible, even after I killed everything and restarted it. This happens when you add a new &#8220;host&#8221;, and don&#8217;t specify the file-path (&#8220;Disc Location&#8221;). To get out of the loop here is what you have to do:</p>
<ol>
<li>Start MAMP PRO</li>
<li>Open Terminal</li>
<li>Enter:&nbsp;/Applications/MAMP/bin/stop.sh</li>
</ol>
<p>Whola!&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themer.me/blog/misc/fix-mysql-mamp-pro-neverending-loading/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Blankwork 1.1</title>
		<link>http://www.themer.me/blog/blankwork-1-1</link>
		<comments>http://www.themer.me/blog/blankwork-1-1#comments</comments>
		<pubDate>Thu, 05 Jan 2012 23:27:14 +0000</pubDate>
		<dc:creator>Methemer</dc:creator>
				<category><![CDATA[Notebook]]></category>

		<guid isPermaLink="false">http://www.themer.me/?p=546</guid>
		<description><![CDATA[I&#8217;ve been working on the next step and bugfixes (yes, I found them) while working on the additional ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on the next step and bugfixes (yes, I found them) while working on the additional screencasts for Blankwork, and I&#8217;ve accidentally moved Blankwork to version 1.1</p>
<p>I really hope I will be able to publish it soon. Until then, &#8211; I&#8217;ve made the first (out of 3) screencast on Blankwork. This one is a &#8220;teaster trailer&#8221; kind of a video. I&#8217;m not doing much of explaining here, I&#8217;m rather just doing a quick show&amp;tell how blankwork works.</p>
<p>Any feedback is very welcome on the video, so tell me if you have any thoughts about it <img src='http://www.themer.me/wp-content/plugins/tango-smileys-extended/tango24/smile.png' alt='Smile' title='Smile' class='tse-smiley' height='20' width='20' />.</p>
<p><iframe src="http://www.youtube.com/embed/0UkJT6PEjC4?hd=1" frameborder="0" width="680" height="491"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.themer.me/blog/blankwork-1-1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Filter an HTML Select Dropdown in Regex</title>
		<link>http://www.themer.me/snippets/filter-an-html-option-in-regex</link>
		<comments>http://www.themer.me/snippets/filter-an-html-option-in-regex#comments</comments>
		<pubDate>Fri, 16 Dec 2011 12:12:04 +0000</pubDate>
		<dc:creator>Methemer</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[filtering]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.themer.me/?p=523</guid>
		<description><![CDATA[I have had a repeated need for this. Baiscally what it does it turns: &#60;option value=&#34;99&#34;&#62;Awesome Number&#60;/option&#62;&#60;option value=&#34;100&#34;&#62;Top ...]]></description>
			<content:encoded><![CDATA[<p>I have had a repeated need for this.</p>
<p>Baiscally what it does it turns:</p>
<p><!--DEVFMTCODE--><pre class="devcodeblock" title="HTML"><div class="devcodeoverflow"><ol><li></li><li><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;99&quot;</span>&gt;</span>Awesome Number<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span></li><li><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100&quot;</span>&gt;</span>Top Number<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span></li><li></li></ol></div></pre><!--END_DEVFMTCODE--><br />
into<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title="HTML"><div class="devcodeoverflow"><ol><li></li><li>Awesome Number is 99</li><li>Top Number is 100</li><li></li></ol></div></pre><!--END_DEVFMTCODE--></p>
<p>Sometimes useful, decided to save &amp; share <img src='http://www.themer.me/wp-content/plugins/tango-smileys-extended/tango24/nerd.png' alt='Nerd' title='Nerd' class='tse-smiley' height='20' width='20' /></p>
<p>
Search:<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title="pcre"><div class="devcodeoverflow"><ol><li>/<[^"]*value="([^"]+)">([^<]+)/</li></ol></div></pre><!--END_DEVFMTCODE--><br />
Replace:<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title="pcre"><div class="devcodeoverflow"><ol><li>$2 is $1</li></ol></div></pre><!--END_DEVFMTCODE--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.themer.me/snippets/filter-an-html-option-in-regex/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canon Powershot SX230HS and CHDK</title>
		<link>http://www.themer.me/blog/misc/canon-powershot-sx230hs-and-chdk</link>
		<comments>http://www.themer.me/blog/misc/canon-powershot-sx230hs-and-chdk#comments</comments>
		<pubDate>Sat, 26 Nov 2011 02:15:21 +0000</pubDate>
		<dc:creator>Methemer</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.themer.me/?p=479</guid>
		<description><![CDATA[A while back I heard Douglas Kirkland say &#8220;The best camera to use ? The one that you ...]]></description>
			<content:encoded><![CDATA[<p>A while back I heard Douglas Kirkland say &#8220;The best camera to use ? The one that you have with you.&#8221;, and that phrase has haunted me ever since. Even though I&#8217;ve wanted to have a DSLR for a long time now, and still haven&#8217;t managed to buy one, today I decided that it was time I got a camera. A camera that I can have, and have with me. And I think it is a good starting point at the moment.<span id="more-479"></span><br />
I did some research, but apparently not enough of it. I knew that you can&#8217;t take RAW images with PowerShot 230HS, and still &#8211; the best camera to use is the one you can afford and can have with you, so I decided to go for it anyway. Little did I know, but I accidentally googled around for RAW and SX230HS, and suddenly I found CHDK &#8211; Canon Hack Development Kit, which allows you(me) to upgrade the camera to shoot in raw, and not only that! You can have zebra patterns, histogram display, and various other things. I took my time, and jailbreaked the Canon and I&#8217;m happy with that find very much. I haven&#8217;t gotten any good images yet, but as soon as I make any, I will post them up on Flickr probably.<br />
Anyway &#8211; I&#8217;m very excited about this, and very thankful for the developers of this magical stuff.<br />
If you want to find out more about CHDK, give them a visit or Wikia &#8211; http://chdk.wikia.com/wiki/CHDK</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themer.me/blog/misc/canon-powershot-sx230hs-and-chdk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to clean an URL with Regex</title>
		<link>http://www.themer.me/blog/scripting/clean-url-with-regex</link>
		<comments>http://www.themer.me/blog/scripting/clean-url-with-regex#comments</comments>
		<pubDate>Sat, 20 Aug 2011 15:32:48 +0000</pubDate>
		<dc:creator>Methemer</dc:creator>
				<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.themer.me/?p=460</guid>
		<description><![CDATA[A regex pattern to fix 1st level domains. Useful for when data is submitted from users: Turns this: ...]]></description>
			<content:encoded><![CDATA[<p>A regex pattern to fix 1st level domains. Useful for when data is submitted from users:</p>
<p>Turns this:</p>
<p>google.com<br />
www.google.com<br />
google.com/<br />
http://google.com<br />
http://www.google.com<br />

http://www.google.com/</p>

<p>Into This:</p>
<p>http://www.google.com<br />
http://www.google.com<br />
http://www.google.com<br />
http://www.google.com<br />
http://www.google.com<br />

http://www.google.com</p>

<p>Expression:<br />
<pre>Search: 
((http:\/\/)?(www\.)?([\w\d-]*?\.)(\w{2,4})/?)
Replace:
http://www.$4$5</pre><br />
PHP Usage:<br />
<pre class="brush:php">	# Fix the URL:
	$fixedURL = preg_replace('/((http:\/\/)?(www\.)?([\w\d-]*?\.)(\w{2,4})/?)/i', 'http://www.$4$5', $previousURL);</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.themer.me/blog/scripting/clean-url-with-regex/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Danish ZIP Codes (PHP Array)</title>
		<link>http://www.themer.me/blog/scripting/danish-zip-codes-php-array</link>
		<comments>http://www.themer.me/blog/scripting/danish-zip-codes-php-array#comments</comments>
		<pubDate>Fri, 29 Jul 2011 07:20:36 +0000</pubDate>
		<dc:creator>Methemer</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://www.themer.me/?p=450</guid>
		<description><![CDATA[Just in case someone needs this some day. Usage: [0] =&#62; Region Title, [1] =&#62; Min ZIP Number, ...]]></description>
			<content:encoded><![CDATA[<p>Just in case someone needs this some day.</p>
<p>Usage: [0] =&gt; Region Title, [1] =&gt; Min ZIP Number, [2] =&gt; Max ZIP Number<br />
<pre class="brush:php">
$denmark = array(
array('København', 1000, 1799),
array('Frederiksberg', 1800, 2999),
array('Nordsjælland', 3000, 3699),
array('Bornholm', 3700, 3799),
array('Færøerne', 3800, 3899),
array('Grønland', 3900, 3999),
array('Øvrige Sjælland', 4000, 4999),
array('Fyn', 5000, 5999),
array('Sønderjylland', 6000, 6999),
array('Vestjylland', 7000, 7999),
array('Østjylland og Midtjylland', 8000, 8999),
array('Nordjylland', 9000, 9999)
);</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.themer.me/blog/scripting/danish-zip-codes-php-array/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trouble replacing an ampersand ( &amp; ) in PHP with str_replace &#8211; Solution</title>
		<link>http://www.themer.me/blog/scripting/trouble-replacing-an-ampersand-in-php-with-str_replace-solution</link>
		<comments>http://www.themer.me/blog/scripting/trouble-replacing-an-ampersand-in-php-with-str_replace-solution#comments</comments>
		<pubDate>Wed, 20 Jul 2011 01:07:26 +0000</pubDate>
		<dc:creator>Methemer</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.themer.me/?p=443</guid>
		<description><![CDATA[Now this took about a half an hour until I figured this out. Posting this, just in case ...]]></description>
			<content:encoded><![CDATA[<p>Now this took about a half an hour until I figured this out. Posting this, just in case someone finds it &#8211; I hope I save you 30 minutes.<br />
I fetched a link from HTML content with preg_match(), and I had to replace some data in that link.<br />
<pre class="brush:php">
str_replace("upgrade-plugin&amp;plugin",'update-selected&amp;plugins', $updateItem);</pre><br />
For some reason &#8211; the ampersand ( &amp; ) wasn&#8217;t replacing and so the string wasn&#8217;t replacing at all. At the end I figured it&#8217;s the ampersand problem, and here is the fix (sometimes the simplest things&#8230;)<br />
<pre class="brush:php">
str_replace("upgrade-plugin&amp;amp;plugin",'update-selected&amp;plugins', $updateItem);</pre><br />
Update:<br />
I had to use this method, because the ampersand was extracted from HTML document with preg_match. To avoid issues like this &#8211; use<br />
<pre class="brush:php">html_entity_decode()</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.themer.me/blog/scripting/trouble-replacing-an-ampersand-in-php-with-str_replace-solution/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get and Display Custom Taxonomies function</title>
		<link>http://www.themer.me/blog/wordpress/get-and-display-custom-taxonomies-fucntion</link>
		<comments>http://www.themer.me/blog/wordpress/get-and-display-custom-taxonomies-fucntion#comments</comments>
		<pubDate>Wed, 15 Jun 2011 17:29:25 +0000</pubDate>
		<dc:creator>Methemer</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.themer.me/?p=437</guid>
		<description><![CDATA[The new WordPress Custom Post types are awesome, and if you do want to categorize them differently, you ...]]></description>
			<content:encoded><![CDATA[<p>The new WordPress Custom Post types are awesome, and if you do want to categorize them differently, you can even add your own Taxonomies for them (like categories, tags, and even introduce your own names, like &#8220;colors&#8221;, &#8220;style&#8221;, etc. etc.). All seem unlimited, but I found myself struggling finding a way to reasonably display them afterwards.<br />
Hope this function helps, if you ever find yourself in my position<br />
<pre class="brush:php">function get_taxonomy_display($taxonomy_name) {
return strip_tags( get_the_term_list( $wp_query-&gt;post-&gt;ID, '$taxonomy_name', '', ', ', '' ) );
}
$custom_categories = get_taxonomy_display('enter_your_taxonomy_name');
echo $custom_categories</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.themer.me/blog/wordpress/get-and-display-custom-taxonomies-fucntion/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Pseudo Class Fix in IE</title>
		<link>http://www.themer.me/blog/scripting/pseudo-class-fix-in-ie</link>
		<comments>http://www.themer.me/blog/scripting/pseudo-class-fix-in-ie#comments</comments>
		<pubDate>Fri, 13 May 2011 07:31:02 +0000</pubDate>
		<dc:creator>Methemer</dc:creator>
				<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.histographical.com/?p=424</guid>
		<description><![CDATA[CSS Pseudo Classes are just plain awesome. Unfortenatley Internet Explorer 6 and 7 doesn&#8217;t support them. I am ...]]></description>
			<content:encoded><![CDATA[<p>CSS Pseudo Classes are just plain awesome.</p>
<p>Unfortenatley Internet Explorer 6 and 7 doesn&#8217;t support them. I am very thankful that I found a Javascript Fix for that, so I wanted to share.</p>
<p>This little awesome JavaScript not only fixes that, but a whole bunch of unsupported things in IE.</p>
<p>[info]List of fixes: http://ie7-js.googlecode.com/svn/test/index.html [/info]</p>
<p>[download]http://code.google.com/p/ie7-js/[/download]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themer.me/blog/scripting/pseudo-class-fix-in-ie/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress archive title display switch</title>
		<link>http://www.themer.me/blog/wordpress/wordpress-archive-title-display-switch</link>
		<comments>http://www.themer.me/blog/wordpress/wordpress-archive-title-display-switch#comments</comments>
		<pubDate>Sat, 16 Apr 2011 07:51:18 +0000</pubDate>
		<dc:creator>Methemer</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[blankwork]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.histographical.com/?p=385</guid>
		<description><![CDATA[While creating my Blankwork I was looking for different examples of archives pages, since I never used them ...]]></description>
			<content:encoded><![CDATA[<p>While creating my Blankwork I was looking for different examples of archives pages, since I never used them much. In the end, I was pretty disapointed with all of them.</p>
<p>For example, an else if statement list with opening PHP tags every time, repeating same text and adding comments in between. In my code editor it looked like one big rainbow. An example (which is short and a bit more readable):</p>
<p><pre class="brush: php; title: ; notranslate">&lt;?php /* If this is a category */ if (is_category()) { ?&gt;
 &lt;h2&gt;Archive for category &amp;#8216;&lt;?php single_cat_title(); ?&gt;&amp;#8217; Category&lt;/h2&gt;

 &lt;?php /* If this is a tag */ } elseif( is_tag() ) { ?&gt;
 &lt;h2&gt;Archive for tag &amp;#8216;&lt;?php single_tag_title(); ?&gt;&amp;#8217;&lt;/h2&gt;
</pre></p>
<p>I like when everything is clear and easy readable even in code. of course you can dig-through anything, but I made this little snippet just for those, who want a little more clean archives code.</p>
<p>So, I made my own little snippet, which is a bit more Designer friendly, here you go:</p>
<p><pre class="brush: php; title: ; notranslate">
&lt;?php if (have_posts()):the_post() ?&gt;

 &lt;?php
 // Switch Archive Names
 // If a category, set Category title
 if(is_category()):
 $return = single_term_title(&quot;&quot;, false).&quot; Category&quot;;

 elseif (is_tag()):
 $return = single_term_title(&quot;&quot;, false).&quot; Tag&quot;;

 elseif (is_day()):
 $return = the_time('F jS, Y');

 elseif (is_month()):
 $return = the_time('F, Y');

 elseif (is_year()):
 $return = the_time('Y');

 elseif (is_author()):
 $return = &quot;Author: &quot;.get_the_author();

 else:
 $return = &quot;s&quot;;

 endif;
 rewind_posts();

 // If there is something to return, add a &quot;for&quot; before
 // For example &quot;Blog Category &quot; to &quot;for Blog Category&quot;
 // When Return is displayed, it should look like:
 // &quot;Archive for Blog Category&quot;
 // -or-
 // &quot;Archive for Author: admin
 if($return != NULL) $return = &quot; for &quot;.$return;
 ?&gt;
 &lt;h2&gt;Archive&lt;?php echo $return ?&gt;&lt;/h2&gt;

</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.themer.me/blog/wordpress/wordpress-archive-title-display-switch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced
Database Caching 10/57 queries in 0.019 seconds using disk: basic
Object Caching 997/1085 objects using disk: basic
Content Delivery Network via Rackspace Cloud Files: c806596.r96.cf2.rackcdn.com

Served from: www.themer.me @ 2012-02-06 11:22:48 -->
