<?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>FIEG — internet, electronics &amp; games</title>
	<atom:link href="http://www.fieg.nl/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fieg.nl</link>
	<description>internet, electronics &#38; games</description>
	<lastBuildDate>Sat, 01 Feb 2014 09:02:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>Replacing Spotlight with Alfred app</title>
		<link>http://www.fieg.nl/replacing-spotlight-with-alfred-app</link>
		<comments>http://www.fieg.nl/replacing-spotlight-with-alfred-app#comments</comments>
		<pubDate>Thu, 26 Jan 2012 20:36:18 +0000</pubDate>
		<dc:creator>Jeroen Fiege</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[macosx]]></category>

		<guid isPermaLink="false">http://www.fieg.nl/?p=985</guid>
		<description><![CDATA[Do you use Spotlight a lot on your Mac? Well, Alfred app might be an app for you. I started using it a week ago and love it ever since.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-large wp-image-988" title="Alfredapp" src="http://www.fieg.nl/wp-content/uploads/2012/01/purple-1280x1024-e1327609993218-540x227.jpg" alt="" width="540" height="227" /></p>
<p>Do you use Spotlight a lot on your Mac? Well, <a href="http://www.alfredapp.com/" target="_blank">Alfred app</a> might be an app for you. I started using it a week ago and love it ever since.</p>
<ul>
<li>It&#8217;s fast,</li>
<li>it does more then Spotlight, like calculations,</li>
<li>it looks good,</li>
<li>it&#8217;s free*</li>
</ul>
<p>To use Alfred with the <strong>⌘ + Space</strong> shortcut, you first have to switch the shortcut of Spotlight to another one, before you can change it in Alfred.</p>
<p><small>*) you can optionally buy an upgrade for even more features. I&#8217;m still pleased with the free version.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fieg.nl/replacing-spotlight-with-alfred-app/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Auto start SickBeard at login on Mac OSX</title>
		<link>http://www.fieg.nl/auto-start-sickbeard-at-login-on-mac-osx</link>
		<comments>http://www.fieg.nl/auto-start-sickbeard-at-login-on-mac-osx#comments</comments>
		<pubDate>Wed, 18 Jan 2012 12:59:11 +0000</pubDate>
		<dc:creator>Jeroen Fiege</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[plex]]></category>

		<guid isPermaLink="false">http://www.fieg.nl/?p=972</guid>
		<description><![CDATA[SickBeard is an automated TV Show downloader, which I&#8217;m using together with my Plex installation. Out of the box Sickbeard does not start automatically when you boot OSX. I found a solution by using Automator. Open Automator and choose a new Workflow Add a &#8216;Run Shell Script&#8217; action Add to following script in the textbox: &#8220;/usr/local/bin/python /path/to/sickbeard/sickbeard.py &#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://sickbeard.com/">SickBeard </a>is an automated TV Show downloader, which I&#8217;m using together with <a title="Plex, Mac Mini, Harmony Remote and How They Roll Together" href="http://www.fieg.nl/plex-mac-mini-harmony-remote-and-how-they-roll-together">my Plex installation</a>. Out of the box Sickbeard does not start automatically when you boot OSX. I found a solution by using Automator.</p>
<ol>
<li>Open Automator and choose a new Workflow</li>
<li>Add a &#8216;Run Shell Script&#8217; action</li>
<li>Add to following script in the textbox: &#8220;/usr/local/bin/python /path/to/sickbeard/sickbeard.py -d&#8221;</li>
<li>Save the workflow as an Application in the SickBeard application folder</li>
<li>Goto System Preferences &gt; Accounts &gt; User &gt; Login Items</li>
<li>Add the Application you just created with Automator</li>
</ol>
<div><span style="color: #383838; font-family: arial, sans-serif;"><span style="font-size: 15px;">Done. It&#8217;s that simple.</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.fieg.nl/auto-start-sickbeard-at-login-on-mac-osx/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Single SVN repository or many? (Poll)</title>
		<link>http://www.fieg.nl/single-svn-repository-or-many-poll</link>
		<comments>http://www.fieg.nl/single-svn-repository-or-many-poll#comments</comments>
		<pubDate>Wed, 11 Jan 2012 10:01:44 +0000</pubDate>
		<dc:creator>Jeroen Fiege</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.fieg.nl/?p=963</guid>
		<description><![CDATA[A few weeks ago I had a very interesting conversation with a colleague. The question was wether or not we should store multiple (derived) projects into a single repository, or should we have a single project per repository. My personal favorite is the single project per repository, because I like the separation of projects, having &#8230;]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I had a very interesting conversation with a <a href="http://melp.nl/">colleague</a>. The question was wether or not we should store multiple (derived) projects into a single repository, or should we have a single project per repository.</p>
<p>My personal favorite is the single project per repository, because I like the separation of projects, having (somehow) meaningful revision numbers and portability in sense of moving repositories around or backing them up.</p>
<p>But my colleague pointed out some pros for his preferred method: one repository for multiple derived projects. For example, you can more easily merge changes (made in different projects) back to the &#8220;base&#8221; project.</p>
<p>While googling for some best practises, I saw that <a href="http://stackoverflow.com/questions/252459/one-svn-repository-or-many" target="_blank">the internet is pretty devided</a>. Time for a poll for my fellow developers: what&#8217;s your personal preference?</p>
<a name="pd_a_5812839"></a><div class="PDS_Poll" id="PDI_container5812839" style="display:inline-block;"></div><script type="text/javascript" language="javascript" charset="utf-8" src="http://static.polldaddy.com/p/5812839.js"></script>
			<noscript>
			<a href="http://answers.polldaddy.com/poll/5812839/">View This Poll</a><br/><span style="font-size:10px;"><a href=""></a></span>
			</noscript>
<p>Feel free to elaborate your answer in the comments below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fieg.nl/single-svn-repository-or-many-poll/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sorting multi-dimensional arrays in PHP</title>
		<link>http://www.fieg.nl/sorting-multi-dimensional-arrays-in-php</link>
		<comments>http://www.fieg.nl/sorting-multi-dimensional-arrays-in-php#comments</comments>
		<pubDate>Wed, 04 Jan 2012 20:52:56 +0000</pubDate>
		<dc:creator>Jeroen Fiege</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.fieg.nl/?p=957</guid>
		<description><![CDATA[Last june I spotted a post about sorting multi-dimensional arrays in PHP. I immediately thought of a function I regularly use to deal with this and posted it in the comments. After I while I noticed that someone made a pastebin entry with the code, nicely naming me as the author. Back in February 2011 &#8230;]]></description>
			<content:encoded><![CDATA[<p>Last june I spotted a <a href="http://shiflett.org/blog/2011/jun/sorting-multi-dimensional-arrays-in-php">post</a> about sorting multi-dimensional arrays in PHP. I immediately thought of a function I regularly use to deal with this and posted it in the comments. After I while I noticed that someone made a <a href="http://pastebin.com/N0KKCgzY">pastebin entry</a> with the code, nicely naming me as the author.</p>
<p>Back in February 2011 I also received a nice &#8220;Thank you&#8221;, when I <a href="http://stackoverflow.com/questions/5064532/merge-two-sorted-arrays-and-the-resulting-array-should-also-be-sorted/5064718#5064718">shared</a> the snippet with someone on stackoverflow. So this little snippet must be useful to other people. Reason for me to finally put this on my blog:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/*
 * Sort a multidimensional array on a column
 *
 * For example:
 * &lt;code&gt;
 * &lt;?php array_qsort2($users, &quot;username&quot;, &quot;ASC&quot;); ?&gt;
 * &lt;/code&gt;
 *
 * @param array $array array with hash array
 * @param mixed $column key that you want to sort on
 * @param enum $order asc or desc
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> array_qsort2 <span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #000088;">$array</span><span style="color: #339933;">,</span> <span style="color: #000088;">$column</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$order</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ASC&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$oper</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$order</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;ASC&quot;</span><span style="color: #009900;">&#41;</span>?<span style="color: #0000ff;">&quot;&gt;&quot;</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;&lt;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">is_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #990000;">usort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #339933;">,</span> <span style="color: #990000;">create_function</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'$a,$b'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;return (<span style="color: #000099; font-weight: bold;">\$</span>a['<span style="color: #006699; font-weight: bold;">$column</span>'] <span style="color: #006699; font-weight: bold;">$oper</span> <span style="color: #000099; font-weight: bold;">\$</span>b['<span style="color: #006699; font-weight: bold;">$column</span>']);&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
    <span style="color: #990000;">reset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.fieg.nl/sorting-multi-dimensional-arrays-in-php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install Eclipse Indigo with PDT on Mac OSX</title>
		<link>http://www.fieg.nl/install-eclipse-indigo-with-pdt-on-mac-osx</link>
		<comments>http://www.fieg.nl/install-eclipse-indigo-with-pdt-on-mac-osx#comments</comments>
		<pubDate>Mon, 12 Sep 2011 19:41:15 +0000</pubDate>
		<dc:creator>Jeroen Fiege</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.fieg.nl/?p=835</guid>
		<description><![CDATA[This thing I&#8217;m using for some years now for programming PHP, is Eclipse. Eclipse is a wonderful and powerful IDE—when installed and configured properly. I like to share my preferred Eclipse setup with you. First things, first. Why should you use Eclipse for you PHP development? There are some things why I like this so &#8230;]]></description>
			<content:encoded><![CDATA[<p>This thing I&#8217;m using for some years now for programming PHP, is Eclipse. Eclipse is a wonderful  and powerful IDE—when installed and configured properly. I like to share my preferred Eclipse setup with you.</p>
<p>First things, first. Why should you use Eclipse for you PHP development? There are some things why I like this so much. First off, it&#8217;s completely free and you get a lot of features. Secondly, it&#8217;s platform independent. Also, it&#8217;s extendable with plugins, which I&#8217;ll cover some later on in this article.</p>
<p>Although some aspects of Eclipse might feel a little slow to some of you, it is nothing compared to the features it brings you. So if you haven&#8217;t tried it yet, or have tried it but didn&#8217;t quite get the feeling of it, feel free to follow my instructions and give it a(nother) shot!</p>
<p>Let&#8217;s begin.</p>
<div class="highlight">
<p><strong>Table of contents</strong></p>
<ol>
<li><a href="#chapter1">Download an install Eclipse</a></li>
<li><a href="#chapter2">Download and install PDT</a></li>
<li><a href="#chapter3">Configuring Eclipse</a></li>
<li><a href="#chapter4">Plugins</a></li>
<li><a href="#chapter5">Workflow tips</a></li>
<li><a href="#chapter6">Final words</a></li>
</ol>
</div>
<h2 id="chapter1">Download and install Eclipse</h2>
<p>For our installation we use the latest (3.7 when writing this article) Eclipse version—which, if you haven&#8217;t already downloaded it yet, you can download here:</p>
<p><a href="http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a></p>
<p>Make sure you grab the Classic version of Eclipse.</p>
<p>Next, unpack the archived package to a location on you hard drive. I usually put this in my Applications folder. Now launch Eclipse.app—you will see the following window.</p>
<p><img class="alignnone size-large wp-image-889 shadownone" title="select workspace location" src="http://www.fieg.nl/wp-content/uploads/2011/08/select-workspace-location-540x272.png" alt="" width="540" height="272" /></p>
<p>Select a location for you workspace. Please choose wisely because all files of all your PHP projects will be stored here (you don&#8217;t want to run out of MB&#8217;s, right? And of course you make sure the location is backup&#8217;ed once in a while, right?).</p>
<p>Press <strong>Ok</strong>. You&#8217;ll see the following screen.</p>
<p><img class="alignnone size-large wp-image-890 shadownone" title="welcome" src="http://www.fieg.nl/wp-content/uploads/2011/08/welcome-540x397.png" alt="" width="540" height="397" /></p>
<p>Click the <strong>Go to workbench</strong> arrow-icon. Your workspace is loaded.</p>
<h2 id="chapter2">Download and install PDT</h2>
<p><strong>Help</strong> &gt; <strong>Install New Software</strong>. Click on the <strong>Add&#8230;</strong> button. For the Name enter PDT and for the Location enter <a href="http://download.eclipse.org/tools/pdt/updates/3.0/milestones/">http://download.eclipse.org/tools/pdt/updates/3.0/milestones/</a>.</p>
<p><img class="alignnone size-large wp-image-891 shadownone" title="add update site" src="http://www.fieg.nl/wp-content/uploads/2011/08/add-update-site-540x275.png" alt="" width="540" height="275" /></p>
<p>Click <strong>Ok</strong>.</p>
<p>Now select the <strong>PHP Development Tools (PDT) All-In-One SDK</strong> and click <strong>Next</strong>.</p>
<p><img class="alignnone size-large wp-image-892 shadownone" title="install pdt all-in-one" src="http://www.fieg.nl/wp-content/uploads/2011/08/install-pdt-all-in-one-540x501.png" alt="" width="540" height="501" /></p>
<p>Follow the instructions and PDT will be installed.</p>
<h2 id="chapter3">Configuring Eclipse</h2>
<p>Time to do some reordering of the various tabs and panels—of-course I can&#8217;t tell you how you like it best, but this is how I like it most.</p>
<p>Let&#8217;s begin with opening the PHP Perspective. Go to <strong>Window</strong> &gt; <strong>Open Perspective</strong> &gt; <strong>Other</strong>. Select <strong>PHP</strong> and click <strong>Ok</strong>. You can now close the Java Perspective by right-clicking on it and clicking <strong>Close</strong>.</p>
<p><img class="alignnone size-large wp-image-894 shadownone" title="workspace" src="http://www.fieg.nl/wp-content/uploads/2011/08/workspace-540x397.png" alt="" width="540" height="397" /></p>
<p>Notice that I closed the Type Hierarchy panel, moved the Outline panel from the right side to the left and moved the Task List to the bottom. Of course you can always reopen—via <strong>Window</strong> &gt; <strong>Show View</strong>—and rearrange the tabs to your likings.</p>
<p>Ok, this was easy, right? Now let&#8217;s do some configurations. Open the preferences.</p>
<p>The following settings can be very important when you are working in a team, with other members.</p>
<p>Goto <strong>General</strong> &gt; <strong>Workspace</strong> and choose the Text file encoding and New text file line delimiter. I prefer UTF-8 and Unix line endings. Make sure that all your team members are using the same settings, so you won&#8217;t run into problems later on.</p>
<p><img class="alignnone size-large wp-image-897 shadownone" title="workspace settings" src="http://www.fieg.nl/wp-content/uploads/2011/08/workspace-settings1-540x478.png" alt="" width="540" height="478" /></p>
<p>An other setting I always do is Suspend all validators—while working with Eclipse I noticed it regularly felt unresponsive, this happend when it was validating project files, especially with large projects. With all validators suspended this was no longer the case.</p>
<p>Goto <strong>Validation</strong> and check <strong>Suppend all validators</strong>.</p>
<p><img class="alignnone size-large wp-image-898 shadownone" title="validators" src="http://www.fieg.nl/wp-content/uploads/2011/08/validators-540x477.png" alt="" width="540" height="477" /></p>
<p>Another—yet personal—preference is turning off code folding. While using Eclipse I found the code folding feature pretty buggy. When copying some code it would not always get the complete function. Althought this might have been fixed in newer versions of Eclipse.</p>
<p>Goto <strong>PHP</strong> &gt; <strong>Editor</strong> &gt; <strong>Code folding</strong> and <em>un</em>check <strong>Enable folding</strong>.</p>
<p><img class="alignnone size-large wp-image-899 shadownone" title="code folding" src="http://www.fieg.nl/wp-content/uploads/2011/08/code-folding-540x472.png" alt="" width="540" height="472" /></p>
<p>There is also this thing in Eclipse that&#8217;s called Hyperlinking. When you hover over a function name while holding a Modifier Key, like ⌘ or OPTION, it will get a underline and you can click on it to navigate to the function. This always happened to me on accident while I wanted to copy some text (this probably has to do with the way how I select text, holding various modifier keys, like SHIFT or ⌘, in combination with arrow keys). Anyway I always turn the feature off. You can do this as followed.</p>
<p>Go to <strong>General</strong> &gt; <strong>Editors</strong> &gt; <strong>Text Editors</strong> &gt; <strong>Hyperlinking</strong> and <em>un</em>check <strong>Enable on demand hyperlink style navigation</strong>.</p>
<p><img class="alignnone size-large wp-image-900 shadownone" title="hyperlinking" src="http://www.fieg.nl/wp-content/uploads/2011/08/hyperlinking-499x540.png" alt="" width="499" height="540" /></p>
<p>Next, a setting that your coworkers will love you for when working with version control. When you create a new project in Eclipse it will create a few files and directories where it stores some project related settings. Normally Eclipse wants to commit these files to you version control system. Can you think of what will happen when your coworker is also using Eclipse and updates his working copy and all his settings are overwritten? Exactly—to prevent this from happening you can tell it to ignore the specific resources.</p>
<p>To do this go to <strong>Team</strong> &gt;<strong> Ignored Resources</strong> and add the following patterns:</p>
<ul>
<li>.settings</li>
<li>.buildpath</li>
<li>.project</li>
</ul>
<p><img class="alignnone size-large wp-image-901 shadownone" title="ignored resources" src="http://www.fieg.nl/wp-content/uploads/2011/08/ignored-resources-489x540.png" alt="" width="489" height="540" /></p>
<p>Ok, we are done here for now—let&#8217;s continue.</p>
<p>The following setting has to do with the same resources as we just ignored for version control systems. As default Eclipse hides all resources in the PHP Explorer. This not very handy when you want to edit a .htaccess file. Let&#8217;s work on that.</p>
<p>Close the preferences window—if you haven&#8217;t already. Now open the contextmenu of the PHP Explorer, click on <strong>Filters&#8230;</strong>.</p>
<p><img class="alignnone size-large wp-image-902 shadownone" title="filters" src="http://www.fieg.nl/wp-content/uploads/2011/08/filters-540x425.png" alt="" width="540" height="425" /></p>
<p>In the following window that opens uncheck <strong>.* resources</strong>. Next, check <strong>Name filter patterns</strong> and enter the following the input box: .settings, .buildpath, .project.</p>
<p><img class="alignnone size-large wp-image-903 shadownone" title="filters2" src="http://www.fieg.nl/wp-content/uploads/2011/08/filters2-456x540.png" alt="" width="456" height="540" /></p>
<p>Click <strong>Ok</strong>.</p>
<p>Ok, well done so far. Let&#8217;s continue with setting up the search. When you are developing on a project you regularly want to search—at least I want to. There are two possibilities, first you want to search inside the current document or secondly, you want to search inside the complete project/workspace. The first option works just fine in Eclipse, you press ⌘F, type your query and hit return (although you might want to check <strong>Wrap search</strong> and <strong>Incremental</strong>). The second option on the other hand works different. Try it: press CTRL + H. The following window opens. <img class="alignnone size-large wp-image-917 shadownone" title="search" src="http://www.fieg.nl/wp-content/uploads/2011/09/search-540x390.png" alt="" width="540" height="390" /></p>
<p>As you can see there are a lot of tabs. I prefer to customize this, as I don&#8217;t need all of them except for the File Search tab. Also while these tabs are active Eclipse somethings might switch to a tab based on the current context, this might confuse you when you are expecting to search through files, instead of something else. To change this you can click on Customize&#8230;</p>
<p><img class="alignnone size-full wp-image-918 shadownone" title="customize search" src="http://www.fieg.nl/wp-content/uploads/2011/09/customize-search.png" alt="" width="437" height="517" /></p>
<p>Uncheck all options except File Search and press OK. Now when you want to search, just press CTRL + H, type the query and hit return. You can also first select some text in the document and hit CTRL + H, the query will then be selected text and you only have to hit return.</p>
<p>Well done. You&#8217;ve now tackled most of the inconveniences that Eclipse has on default. Let&#8217;s continue with some useful plugins.</p>
<h2 id="chapter4">Plugins</h2>
<p>One of the pros of using Eclipse is the support for plugins. You can install plugins as follows.</p>
<p>Goto <strong>Help</strong> &gt; <strong>Install New Software</strong>. Click on the <strong>Add&#8230;</strong> button. For the Name enter the name of the plugin and for the Location enter the url of the Update site and click <strong>Ok</strong>.</p>
<p><span style="color: #000000; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px;"><img class="alignnone size-large wp-image-907 shadownone" title="install svn" src="http://www.fieg.nl/wp-content/uploads/2011/08/install-svn-540x501.png" alt="" width="540" height="501" /></span></p>
<p>Select the items you want to install, click <strong>Next</strong> and follow the instructions. After installing a new plugin it is best to restart Eclipse.</p>
<h3><span style="color: #000000; font-weight: bold; line-height: 19px;">Subclipse</span></h3>
<p><a href="http://subclipse.tigris.org/">Subclipse</a> is a plugin for using SVN in Eclipse. It takes care for all SVN actions like, update, commit, checkout etc.</p>
<p>Update site: http://subclipse.tigris.org/update_1.6.x</p>
<p>One note on installing this plugin: I had to change the <strong>SVN interface</strong> in order to make it work on my OSX install.</p>
<p>Goto <strong>preferences</strong> &gt; <strong>Team</strong> &gt; <strong>SVN</strong> &gt; Select <strong>SVNKit (Pure Java)</strong> as your <strong>Client</strong>. If it is not there, you have to install it (see the update site).</p>
<h3>EGit</h3>
<p>Rather using GIT instead of SVN? EGIT is a Team provider that does just that. You can browser repositories and push and pull changes from them.<br />
You might want to check out the extensive <a href="http://wiki.eclipse.org/EGit/User_Guide">User Guide</a>.</p>
<p>Update site: http://download.eclipse.org/releases/indigo</p>
<h3><span style="color: #000000; font-weight: bold; line-height: 19px;">FileSync</span></h3>
<p><span style="color: #000000; line-height: 19px;"><a href="http://andrei.gmxhome.de/filesync/index.html">FileSync</a> is a plugin that automatically syncs changed files to a preconfigured location on your harddrive. I use this plugin at work—where we work on a remote server—to sync changes to a mounted network drive.</span></p>
<p>Update site: http://andrei.gmxhome.de/eclipse/</p>
<h3>PHP Tool Integration</h3>
<p>This plugin adds some very useful tools to Eclipse. Tools that <a href="http://www.phpsrc.org/">PHP Tool Integration</a> includes are:</p>
<ul>
<li>PHP_CodeSniffer</li>
<li>PHPUnit</li>
<li>PHP Depend</li>
<li>PHP Copy/Paste Detector</li>
</ul>
<p>These tools can help you write better PHP code.</p>
<p>Update site: http://www.phpsrc.org/eclipse/pti/</p>
<h3>AnyEdit</h3>
<p>This plugin was brought to my attention by <a href="http://twitter.com/pkruithof">@pkruithof</a>. <a href="http://andrei.gmxhome.de/eclipse.html">AnyEdit</a> adds several new tools to the context menu of text- based Eclipse editors, to output consoles, to Eclipse main menu and editor toolbar. AnyEdit contributes also Import/Export working sets wizards.</p>
<p>AnyEdit helps to keep your code free of any trailing whitespace.</p>
<p>Update site: http://andrei.gmxhome.de/eclipse/</p>
<h2 id="chapter5">Workflow tips</h2>
<p>So, now that you have setup Eclipse for PHP and installed some plugins, I would like give you some final workflow tips. Actually these tips are the things I like most of working with Eclipse.</p>
<h3>Keyboard commands</h3>
<table style="border: solid 3px #ddd; padding: 5px;">
<tbody>
<tr>
<td>F3</td>
<td>Goto function declaration (I love this one so much!)</td>
</tr>
<tr>
<td>⌘D</td>
<td>Delete current line or selection</td>
</tr>
<tr>
<td>⌘O</td>
<td>Lookup function in document</td>
</tr>
<tr>
<td>⌘ + Option + Down</td>
<td>Duplicate current line or selection</td>
</tr>
</tbody>
</table>
<h3>SVN workflow</h3>
<p>I have taught myself a nice workflow: whenever I have made some changes to my code, and am ready to commit, I review all my changes. And it&#8217;s very easy using the Eclipse synchronize view:</p>
<p>Right-click the name of the project &gt; <strong>Team</strong> &gt; <strong>Synchronize</strong></p>
<p>The synchronize view opens. It shows you all the files that are changed, compared to the revision you checked out. Now double-click the first file in the synchronize view. A compare-editor opens. This gives you a nice view of all the changes in the file. By clicking the <strong>Next difference</strong> (yellow down arrow) icon, you step through each change for each file. By reviewing every piece of changed code, you see errors, missing comments, etc. right away and you can easily fix them.</p>
<h3>Text compare</h3>
<p>Eclipse has a very powerful compare editor. You can compare files with each other or you can compare against a certain revision. While comparing you can make changes on the fly. I use this function quite often. To start comparing two files:</p>
<p>Select two files &gt; Right-click a selected file &gt; <strong>Compare With</strong> &gt; <strong>Each Other</strong>.</p>
<p>You can now scroll through the files or jump to the next difference by pressing the <strong>Next difference</strong> icon in the top right of the editor.</p>
<h2 id="chapter6">Final words</h2>
<p>I hope you found this article useful (please &#8220;like&#8221;, if so). I must admit that Eclipse has a tough learning curve, but once you get to know all the features it will become hard to code without it.</p>
<p>Feel free to ask me any questions or to send me suggestions. You can always <a title="Contact" href="http://www.fieg.nl/contact">contact</a> me or leave a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fieg.nl/install-eclipse-indigo-with-pdt-on-mac-osx/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>The Waiting Game has begon</title>
		<link>http://www.fieg.nl/the-waiting-game-has-begon</link>
		<comments>http://www.fieg.nl/the-waiting-game-has-begon#comments</comments>
		<pubDate>Mon, 22 Aug 2011 18:19:43 +0000</pubDate>
		<dc:creator>Jeroen Fiege</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[dota2]]></category>
		<category><![CDATA[minecraft]]></category>

		<guid isPermaLink="false">http://www.fieg.nl/?p=851</guid>
		<description><![CDATA[I've listed three amazing games that will be released between now and a few months: DOTA2, Battlefield 3 and the Minecraft Adventure Update.]]></description>
			<content:encoded><![CDATA[<p>The Waiting Game has begon — I&#8217;ve listed three amazing games that will be released between now and a few months. It&#8217;s really worth to have a look at these games.</p>
<h2>DOTA 2</h2>
<p>About a week ago I read on the interwebs about a sequel of the famous Warcraft III mod: <a title="Defense of the Ancients" href="http://en.wikipedia.org/wiki/Defense_of_the_Ancients">DOTA</a>. It came to my attention because Valve (who&#8217;s working on the sequel) organized a championship, called The International. Sixteen of the worlds&#8217; best DOTA teams entered in the championship and all matches were broadcasted live throught the <a href="http://www.dota2.com/">DOTA2 website</a>. The winning team won $ 1,000,000 USD.</p>
<p>Well, I watched some <a href="http://www.dota2.com/tournaments/international/schedule/Sunday/">matches</a> and they got me all excited for DOTA2. So now the waiting game begins, because DOTA2 is scheduled for the beginning of 2012. If I&#8217;m lucky they let me in for the beta, that should start in about a few weeks (sign-up <a href="http://dota2.com/login/auth/?goto=beta">here</a> if you want to).</p>
<p>Take a look at this finale match to see what DOTA2 is all about:</p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='550' height='340' src='http://www.youtube.com/embed/sspVvYwzytk?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;hd=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<h2>Battlefield 3</h2>
<p>Another game that got my attention is Battlefield 3. While not having played Battlefield since Battlefield 1942, I&#8217;m every excited to get my hands on this new version. Check out the awesome graphics for yourself:</p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='550' height='340' src='http://www.youtube.com/embed/NDDfPxF3EFE?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p>Battlefield 3 will be released on October, 27th.</p>
<h2>Minecraft 1.8 &#8220;Adventure update&#8221;</h2>
<p>Of course I couldn&#8217;t let this one pass. Everybody who is into Minecraft is waiting for this. Notch and his coworkers are working on all the new features (rivers, villages, combat, <a href="http://www.minecraftwiki.net/wiki/Upcoming_Features">more</a>) and regularly releasing some screenshots to the public. The waiting game for this one will at least be to somewhere around september.</p>
<p>Check out these screenshot of upcoming features I&#8217;ve collected:</p>

<a href='http://www.fieg.nl/the-waiting-game-has-begon/18upd2' title='Ruins'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/08/18upd2-150x150.png" class="attachment-thumbnail" alt="Ruins" title="Ruins" /></a>
<a href='http://www.fieg.nl/the-waiting-game-has-begon/new-elderman' title='New mob: Elderman'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/08/new-elderman-150x150.png" class="attachment-thumbnail" alt="New mob: Elderman" title="New mob: Elderman" /></a>
<a href='http://www.fieg.nl/the-waiting-game-has-begon/rivers' title='Rivers'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/08/rivers-150x150.jpg" class="attachment-thumbnail" alt="Rivers" title="Rivers" /></a>
<a href='http://www.fieg.nl/the-waiting-game-has-begon/underground-ravine' title='Underground Ravines'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/08/Underground-Ravine-150x150.png" class="attachment-thumbnail" alt="Underground Ravines" title="Underground Ravines" /></a>
<a href='http://www.fieg.nl/the-waiting-game-has-begon/villages-teaser-by-jeb' title='Villages teaser by Jeb'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/08/villages-teaser-by-jeb-150x150.png" class="attachment-thumbnail" alt="Villages teaser by Jeb" title="Villages teaser by Jeb" /></a>
<a href='http://www.fieg.nl/the-waiting-game-has-begon/ravine2' title='Ravines'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/08/Ravine2-150x150.png" class="attachment-thumbnail" alt="Ravines" title="Ravines" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.fieg.nl/the-waiting-game-has-begon/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>7 WordPress Mods That Don&#8217;t Need Plugins</title>
		<link>http://www.fieg.nl/7-wordpress-mods-that-dont-need-plugins</link>
		<comments>http://www.fieg.nl/7-wordpress-mods-that-dont-need-plugins#comments</comments>
		<pubDate>Thu, 07 Jul 2011 12:00:01 +0000</pubDate>
		<dc:creator>Jeroen Fiege</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.fieg.nl/?p=669</guid>
		<description><![CDATA[Having a lot of Wordpress plugins can lead to bugs and performance issues. For some simple features it is better to just write them yourself in your functions.php, or a single custom plugin.]]></description>
			<content:encoded><![CDATA[<p>Plugins are a powerful feature of WordPress. They add useful functionalities to your WordPress installation with ease of use.</p>
<p>Although they can be powerful, they can also be pretty bad. Not all plugin writers are experienced programmers, which can lead to bugs and performance issues. An other thing with plugins is that you have to maintain them by updating them regularly, and with regularly I mean really often&#8230;</p>
<p>For some simple features it is just better to write them yourself in your <code>functions.php</code>, or a single custom plugin. Here is a list of simple mods that don&#8217;t need plugins.</p>
<h2>Add special user capabilities</h2>
<p>If you&#8217;re using WordPress for client websites like me. You might have assigned the client the &#8216;editor&#8217; role, instead of the &#8216;administrator&#8217; role, so they can&#8217;t change important settings that break the WordPress install.</p>
<p>There are some features that you would like to have available to your clients, but that aren&#8217;t when they have the &#8216;editor&#8217; role, like the Widgets page under Appearance.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$role_object</span> <span style="color: #339933;">=</span> get_role<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'editor'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// get the role</span>
<span style="color: #000088;">$role_object</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">add_cap</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_theme_options'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// add a capability</span>
<span style="color: #000088;">$role_object</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">remove_cap</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_theme_options'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// remove a capability</span></pre></td></tr></table></div>

<p>For a list of all available capabilities you can read <a href="http://codex.wordpress.org/Roles_and_Capabilities">here</a>.</p>
<h2>Adding custom post types</h2>
<p>Custom post types are a powerful feature of WordPress, which allows you to have other types then Posts or Pages. For example, if you have a website that sells books, you need a way to enter those book details.</p>
<p>Here is a template you can use to add custom post types. Just replace &#8216;book&#8217; with any other type you want. Of course you can also add multiple custom post types.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/*
* Register the custom post type for book
*
* @return void
*/</span>
<span style="color: #000000; font-weight: bold;">function</span> register_post_type_book<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$labels</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> _x<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Books'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post type general name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'singular_name'</span> <span style="color: #339933;">=&gt;</span> _x<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Book'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post type singular name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'add_new'</span> <span style="color: #339933;">=&gt;</span> _x<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'New Book'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'performance'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'add_new_item'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Add Item'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'edit_item'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit Item'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'new_item'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'New Item'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'view_item'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'View Item'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'search_items'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Search Items'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'not_found'</span> <span style="color: #339933;">=&gt;</span>  __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No items found'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'not_found_in_trash'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No items found in your trash'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'parent_item_colon'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'menu_name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Books'</span>
  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'labels'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$labels</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'public'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'publicly_queryable'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'show_ui'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'query_var'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'rewrite'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
      <span style="color: #0000ff;">'slug'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'books'</span><span style="color: #339933;">,</span>
      <span style="color: #0000ff;">'with_front'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'capability_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'hierarchical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'menu_position'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'supports'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'editor'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thumbnail'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'excerpt'</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  register_post_type<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'book'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'register_post_type_book'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>More on custom post types <a title="Custom Post Types" href="http://codex.wordpress.org/Post_Types#Custom_Types">here</a>.</p>
<h2>Add image sizes</h2>
<p>Most website designs have images displayed at multiple sizes. You might—for example—show a posts&#8217; featured image in a slideshow at a bigger size then when you show it in a listing. Wordpress makes it easy to define multiple image sizes. Just add the <code>add_image_size</code> function call to your <code>functions.php</code>. The first parameter is an identifier for this image size, the second and third are the dimensions and the last parameter indicates if the image should be cropped.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">add_image_size<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'book_thumb'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">170</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">120</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_image_size<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'book_normal'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">337</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">470</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_image_size<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'book_slideshow'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">440</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">310</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>To use the new image size in your templates you can add the following code.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">the_post_thumbnail<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'book_slideshow'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><span style="color: #555555; font-size: 22px; font-weight: bold; line-height: 19px;">Custom MCE buttons</span></p>
<p>WordPress comes with a full featured WYSIWYG editor by default. Although that might be nice for experienced users, most clients I work for don&#8217;t that have this experience. They like to give their texts funky colors, even though that doesn&#8217;t match with the overall webdesign. That&#8217;s why I normally limit the some of the editors functions.</p>
<p>Here is a template that limits the available blockformats, like H2 and H3 blocks, and disables the forecolor option.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> custom_change_mce_buttons<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$initArray</span> <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #666666; font-style: italic;">//@see http://wiki.moxiecode.com/index.php/TinyMCE:Control_reference</span>
  <span style="color: #000088;">$initArray</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'theme_advanced_blockformats'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'p,h2,h3'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// limit the available blockformats</span>
  <span style="color: #000088;">$initArray</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'theme_advanced_disable'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'forecolor'</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// disabled forecolor</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$initArray</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tiny_mce_before_init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_change_mce_buttons'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h2>Change Contact Info Form</h2>
<p>Each user in WordPress have it&#8217;s own contact information. On default there are fields for AIM, Yahoo IM and Google Talk. Well, these services feel a bit old-school and you might want to add some new ones to the list—like Twitter and Facebook.</p>
<p>Here is a simple filter function that just does that:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> new_contactmethods<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$contactmethods</span> <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$contactmethods</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Twitter'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Add Twitter</span>
  <span style="color: #000088;">$contactmethods</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'facebook'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Facebook'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Add Facebook</span>
  <span style="color: #000088;">$contactmethods</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'linkedin'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Linkedin'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Add Linkedin</span>
  <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$contactmethods</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'yim'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Remove Yahoo IM</span>
  <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$contactmethods</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'aim'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Remove AIM</span>
  <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$contactmethods</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'jabber'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Remove Jabber</span>
&nbsp;
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$contactmethods</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user_contactmethods'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'new_contactmethods'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><span style="color: #555555; font-size: 22px; font-weight: bold; line-height: 19px;">Adding shortcodes</span></p>
<p>Shortcodes are cool. They allow you to add &#8220;special stuff&#8221; to posts or pages inline. For example: insert Adsense blocks into you posts or insert a (contact)form inline.</p>
<p>Here is my adsense shortcode:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * Insert adsense into you post or page.
 *
 * Usage:
 * 	[adsense align=&quot;left|right&quot; slot=&quot;00000&quot; width=&quot;100&quot; height=&quot;100&quot;]
 *
 * @param array $atts
 * @param mixed $content
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> adsense<span style="color: #009900;">&#40;</span><span style="color: #000088;">$atts</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$nlbr</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// set defaults</span>
	<span style="color: #990000;">extract</span><span style="color: #009900;">&#40;</span>shortcode_atts<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">&quot;client&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ca-pub-000000000000000'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">&quot;slot&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'00000000000'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">&quot;width&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'200'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">&quot;height&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'200'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">&quot;align&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$atts</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// alignment</span>
    <span style="color: #000088;">$style</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$align</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;left&quot;</span><span style="color: #339933;">:</span>
    		<span style="color: #000088;">$style</span><span style="color: #339933;">.=</span><span style="color: #0000ff;">&quot;float:left; margin-right: 10px;&quot;</span><span style="color: #339933;">;</span>
    		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
    	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;right&quot;</span><span style="color: #339933;">:</span>
    		<span style="color: #000088;">$style</span><span style="color: #339933;">.=</span><span style="color: #0000ff;">&quot;float:right; margin-left: 10px;&quot;</span><span style="color: #339933;">;</span>
    		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// output ad code</span>
	<span style="color: #000088;">$retval</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;div style=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$style</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$nlbr</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$retval</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$nlbr</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$retval</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">'google_ad_client = &quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$client</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$nlbr</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$retval</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">'google_ad_slot = &quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$slot</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$nlbr</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$retval</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">'google_ad_width = '</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="color: #0000ff;">';'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$nlbr</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$retval</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">'google_ad_height = '</span><span style="color: #339933;">.</span><span style="color: #000088;">$height</span><span style="color: #339933;">.</span><span style="color: #0000ff;">';'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$nlbr</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$retval</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">'//--&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$nlbr</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$retval</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/script&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$nlbr</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$retval</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;script type=&quot;text/javascript&quot; src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;&lt;/script&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$nlbr</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$retval</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/div&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$nlbr</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$retval</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;adsense&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;adsense&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Learn more about shortcodes <a title="Mastering WordPress Shortcodes " href="http://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/">here</a> and <a title="Add Shortcodes" href="http://wp-snippets.com/add-shortcodes/">here</a>.</p>
<h2>Customizing the Admin Help texts</h2>
<p>The default contextual help texts of WordPress aren&#8217;t always that helpful, especially when you&#8217;re developing WordPress sites for clients. You might even want to add some additional help information about certain pages.</p>
<p>Here is a function to get you started:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * Customize contextual help texts
 *
 * @param string $contextual_help
 * @param string $screen_id
 * @param string $screen
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> my_contextual_help<span style="color: #009900;">&#40;</span><span style="color: #000088;">$contextual_help</span><span style="color: #339933;">,</span> <span style="color: #000088;">$screen_id</span><span style="color: #339933;">,</span> <span style="color: #000088;">$screen</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$help_text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$debug</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// toggle this to find out which $screen_id a certain page has</span>
&nbsp;
	<span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$screen_id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;dashboard&quot;</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$help_text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;p&gt;Welcome to the Dashboard, hier ziet u een overzicht van alle pagina<span style="color: #000099; font-weight: bold;">\&quot;</span>s.&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;upload&quot;</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$help_text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;p&gt;Hier kunt u afbeeldingen beheren.&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;edit-page&quot;</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$help_text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;p&gt;Hier kunt u paginas beheren.&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;page&quot;</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$help_text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;p&gt;Hier kunt u een pagina bewerken.&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">default</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$help_text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// remove default Wordpress help text</span>
&nbsp;
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$debug</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$help_text</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$screen_id</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// at least add a support text to every help text</span>
	<span style="color: #000088;">$help_text</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;p&gt;&lt;em&gt;For questions you can see our &lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>http://support.webcreate.nl/knowledgebase<span style="color: #000099; font-weight: bold;">\&quot;</span> target=<span style="color: #000099; font-weight: bold;">\&quot;</span>_blank<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;Knowledge Base&lt;/a&gt; or you can contact us at &lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>mailto:support@webcreate.nl<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;support@webcreate.nl&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$help_text</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;contextual_help&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;my_contextual_help&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h2>Final words</h2>
<p>These are just some of the mods you can do without plugins. Of course there are a lot <a title="archive of WordPress snippets" href="http://wp-snippets.com/archive/" target="_blank">more</a>. Do you have any favorite mods/snippets of your own?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fieg.nl/7-wordpress-mods-that-dont-need-plugins/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The web is losing it&#8217;s anonymity</title>
		<link>http://www.fieg.nl/the-web-is-losing-its-anonymity</link>
		<comments>http://www.fieg.nl/the-web-is-losing-its-anonymity#comments</comments>
		<pubDate>Mon, 27 Jun 2011 08:20:24 +0000</pubDate>
		<dc:creator>Jeroen Fiege</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://www.fieg.nl/?p=815</guid>
		<description><![CDATA[The New York Times wrote an excellent article about the internet losing it's anonymity. The article describes almost the same I was thinking lately about the web and my own anonymity.]]></description>
			<content:encoded><![CDATA[<p>The New York Times wrote an excellent <a title="Upending Anonymity, These Days the Web Unmasks Everyone" href="http://www.nytimes.com/2011/06/21/us/21anonymity.html?_r=2">article</a> about the internet losing it&#8217;s anonymity. The article describes almost the same I was thinking lately about the web and my own anonymity.</p>
<p>Until recent years I&#8217;ve always used a nickname on the internet. In fact, I was trying to leave no traceable &#8221;fingerprints&#8221; on the web. Where others started sharing their real name, their photos and whatever more on upcoming social networks. I&#8217;ve always withhold myself from that kind of sharing. Every account I created on a website, every IRC channel I entered and every game I played, I would use my nickname. I had a strict rule not to share any photos or other personal information on the web.</p>
<p>As I said, it&#8217;s only since recent years that I started using my real name. I guess it started with Facebook. It might have started a while before, but Facebook really pushed it through.</p>
<p>This change also came with the idea that I actually wanted to be found on the internet, in a good way. When people search my name, I want them to find the work that I&#8217;ve done, the things I wrote and so on. You could call it <a title="Personal branding" href="http://en.wikipedia.org/wiki/Personal_branding">personal branding</a>, if you like. If you would do a search for my real name on Google four years ago, you would only find a handful of page&#8217;s. If you run the same search query today there are about 500 pages having my name on them.</p>
<p>I still have some rules about sharing information about me, but they have become less strict. Nowadays I click the connect-with-facebook-buttons all the time, knowing that it will link my real name to the website. But sharing personal photos for the public is still a no-go.</p>
<p>Of course you could ask yourself why I am so protective about my personal information. Well it&#8217;s about privacy. Others say &#8220;<a title="Search for &quot;I've got nothing to hide&quot;" href="https://encrypted.google.com/search?q=i've%20got%20nothing%20to%20hide">I&#8217;ve nothing to hide</a>&#8220;, but I don&#8217;t believe that. I think everybody has something to hide, but you might only find out what that is when it is too late.</p>
<p><em>What about you? Let me know in the <a title="The web is losing it’s anonymity" href="http://www.fieg.nl/the-web-is-losing-its-anonymity#dsq-content">comments</a> below.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fieg.nl/the-web-is-losing-its-anonymity/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Minecraft Creations</title>
		<link>http://www.fieg.nl/minecraft-creations</link>
		<comments>http://www.fieg.nl/minecraft-creations#comments</comments>
		<pubDate>Thu, 16 Jun 2011 20:44:29 +0000</pubDate>
		<dc:creator>Jeroen Fiege</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[minecraft]]></category>

		<guid isPermaLink="false">http://www.fieg.nl/?p=759</guid>
		<description><![CDATA[Me and some friends have our own private Minecraft server. We have been playing for like seven months now. Let me give you a little tour of some the creations that exist on our Minecraft server. We first started on a vanilla server setup and didn&#8217;t use any /give commands. So we had to harvest &#8230;]]></description>
			<content:encoded><![CDATA[<p>Me and some friends have our own private Minecraft server. We have been playing for like seven months now. </p>
<p>Let me give you a little tour of some the creations that exist on our Minecraft server.</p>

<a href='http://www.fieg.nl/minecraft-creations/2011-06-07_00-16-37' title='Runestone Gate'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-07_00.16.37-150x150.png" class="attachment-thumbnail" alt="Runestone Gate" title="Runestone Gate" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-13_21-26-20' title='Runestone Overview'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-13_21.26.20-150x150.png" class="attachment-thumbnail" alt="Runestone Overview" title="Runestone Overview" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2010-12-12_21-17-24' title='Skycraper'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2010-12-12_21.17.24-150x150.png" class="attachment-thumbnail" alt="Skycraper" title="Skycraper" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_12-48-47' title='Ship'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_12.48.47-150x150.png" class="attachment-thumbnail" alt="Ship" title="Ship" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_22-58-53' title='Spawntown'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_22.58.53-150x150.png" class="attachment-thumbnail" alt="Spawntown" title="Spawntown" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_22-59-13' title='Spawntown church'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_22.59.13-150x150.png" class="attachment-thumbnail" alt="Spawntown church" title="Spawntown church" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_23-04-28' title='The unknown'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_23.04.28-150x150.png" class="attachment-thumbnail" alt="The unknown" title="The unknown" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_23-04-42' title='Circle in the ground, topped of with glass'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_23.04.42-150x150.png" class="attachment-thumbnail" alt="Circle in the ground, topped of with glass" title="Circle in the ground, topped of with glass" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_23-06-55' title='The glass sphere'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_23.06.55-150x150.png" class="attachment-thumbnail" alt="The glass sphere" title="The glass sphere" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_23-15-32' title='Giant submerged piramid'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_23.15.32-150x150.png" class="attachment-thumbnail" alt="Giant submerged piramid" title="Giant submerged piramid" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_23-15-02' title='Giant submerged piramid (inside)'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_23.15.02-150x150.png" class="attachment-thumbnail" alt="Giant submerged piramid (inside)" title="Giant submerged piramid (inside)" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_23-17-47' title='Signal tower from LOTR'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_23.17.47-150x150.png" class="attachment-thumbnail" alt="Signal tower from LOTR" title="Signal tower from LOTR" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_23-20-18' title='Giant art structure'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_23.20.18-150x150.png" class="attachment-thumbnail" alt="Giant art structure" title="Giant art structure" /></a>
<a href='http://www.fieg.nl/minecraft-creations/2011-06-15_23-31-01' title='Escher orientated structure'><img width="150" height="150" src="http://www.fieg.nl/wp-content/uploads/2011/06/2011-06-15_23.31.01-150x150.png" class="attachment-thumbnail" alt="Escher orientated structure" title="Escher orientated structure" /></a>

<p>We first started on a vanilla server setup and didn&#8217;t use any /give commands. So we had to harvest all our resources by hand. Now, since a few months we moved over to a bukkit server setup with some plugins, like permissions, essentials and backup. We now use the /give command generously.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fieg.nl/minecraft-creations/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Infinite Ajax Scroll, a jQuery plugin</title>
		<link>http://www.fieg.nl/infinite-ajax-scroll-a-jquery-plugin</link>
		<comments>http://www.fieg.nl/infinite-ajax-scroll-a-jquery-plugin#comments</comments>
		<pubDate>Sun, 05 Jun 2011 19:52:23 +0000</pubDate>
		<dc:creator>Jeroen Fiege</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.fieg.nl/?p=715</guid>
		<description><![CDATA[Infinite Ajax Scroll is a plugin that turns you existing pagination into an infinite scrolling one, without any hassle.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-727" title="Infinite AJAX Scroll, a jQuery plugin" src="http://www.fieg.nl/wp-content/uploads/2011/06/Infinite-AJAX-Scroll-jQuery-plugin.jpg" alt="Infinite AJAX Scroll jQuery plugin" width="540" height="205" /></p>
<p><strong>Update: Version 2 is released, check it out at <a title="Infinite AJAX Scroll" href="http://infiniteajaxscroll.com">infiniteajaxscroll.com</a>.</strong></p>
<p>I am proud to announce my first official open-source jQuery plugin release. Infinite Ajax Scroll is a plugin that turns you existing pagination into an infinite scrolling one, with ease.</p>
<h2>Features</h2>
<ul>
<li>Infinite scrolling increases usability for you visitors, by removing an extra click</li>
<li>Increase average time spent on your website by visitors</li>
<li>Graceful degration for browsers without JavaScript</li>
<li>Allows for multiple instances, like for posts and comments</li>
<li>Easy to implement</li>
<li>Clearly coded and well documented</li>
<li>Similar technique as seen on Twitter, Facebook, Google Reader and many more&#8230;</li>
</ul>
<h2>How it works</h2>
<p>After you have installed IAS you have to define a few regions of your webpage.</p>

<div class="wp_syntax">
<div class="wp_syntax_download">
<div class="wp_syntax_download_filename"><a name="file-jquery.main.js" href="#file-jquery.main.js" title="jquery.main.js">jquery.main.js</a></div>
<div class="wp_syntax_download_actions">
<a href="http://www.fieg.nl/wp-content/plugins/wp-syntax-download-extension/wp-syntax-download-extension.php/715/jquery.main.js">raw</a> <a href="http://www.fieg.nl/wp-content/plugins/wp-syntax-download-extension/wp-syntax-download-extension.php/715/download/jquery.main.js">download</a>
</div>
</div>
<table><tr>
<td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td>
<td class="code"><pre class="javascript" style="font-family:monospace;">jQuery.<span style="color: #660066;">ias</span><span style="color: #009900;">(</span><span style="color: #009900;">{</span>
  container 	<span style="color: #339933;">:</span> <span style="color: #3366CC;">".listing"</span><span style="color: #339933;">,</span>
  		<span style="color: #006600; font-style: italic;">// Enter the selector of the element containing</span>
  		<span style="color: #006600; font-style: italic;">// your items that you want to paginate.</span>
 
  <span style="color: #000066; font-weight: bold;">item</span>		<span style="color: #339933;">:</span> <span style="color: #3366CC;">".post"</span><span style="color: #339933;">,</span>
		<span style="color: #006600; font-style: italic;">// Enter the selector of the element that each</span>
		<span style="color: #006600; font-style: italic;">// item has. Make sure the elements are inside</span>
		<span style="color: #006600; font-style: italic;">// the container element.</span>
 
  pagination	<span style="color: #339933;">:</span> <span style="color: #3366CC;">"#content .navigation"</span><span style="color: #339933;">,</span>
		<span style="color: #006600; font-style: italic;">// Enter the selector of the element that contains</span>
		<span style="color: #006600; font-style: italic;">// your regular pagination links, like next,</span>
		<span style="color: #006600; font-style: italic;">// previous and the page numbers. This element</span>
		<span style="color: #006600; font-style: italic;">// will be hidden when IAS loads.</span>
 
  next		<span style="color: #339933;">:</span> <span style="color: #3366CC;">".next-posts a"</span><span style="color: #339933;">,</span>
		<span style="color: #006600; font-style: italic;">// Enter the selector of the link element that</span>
		<span style="color: #006600; font-style: italic;">// links to the next page. The href attribute</span>
		<span style="color: #006600; font-style: italic;">// of this element will be used to get the items</span>
		<span style="color: #006600; font-style: italic;">// from the next page.</span>
 
  loader	<span style="color: #339933;">:</span> <span style="color: #3366CC;">"images/loader.gif"</span>
		<span style="color: #006600; font-style: italic;">// Enter the url to the loader image. This image</span>
		<span style="color: #006600; font-style: italic;">// will be displayed when the next page with items</span>
		<span style="color: #006600; font-style: italic;">// is loaded via AJAX.</span>
<span style="color: #009900;">}</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span></pre></td>
</tr></table>
</div>

<p>IAS will now handle your webpage as follows:</p>
<ol>
<li>Monitor the scroll event for reaching the last item element</li>
<li>Insert a loader image</li>
<li>Load the next page using AJAX</li>
<li>Insert each new item after the last item</li>
</ol>
<p>You can check out a working example <a href="http://www.fieg.nl/ias-demo">here</a>.</p>
<p><a href="http://infiniteajaxscroll.com/download.html"><img class="shadownone alignnone" style="margin-right: 10px;" title="download" src="http://www.fieg.nl/wp-content/uploads/2011/06/download.gif" alt="" width="200" height="71" /></a> <a href="http://www.fieg.nl/ias-demo"><img class="size-full wp-image-736 shadownone alignnone" title="demo" src="http://www.fieg.nl/wp-content/uploads/2011/06/demobutton.gif" alt="" width="200" height="71" /></a></p>
<p>For more information about the plugin visit the <a href="http://infiniteajaxscroll.com">Infinite Ajax Scroll website</a>.</p>
<p><strong>Happy scrolling!</strong></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fieg.nl/infinite-ajax-scroll-a-jquery-plugin/feed</wfw:commentRss>
		<slash:comments>145</slash:comments>
		</item>
	</channel>
</rss>
