<?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>Lasse Bunk&#039;s weblog &#187; WordPress</title>
	<atom:link href="http://lassebunk.dk/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://lassebunk.dk</link>
	<description>Ruby on Rails, programming, and SEO</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:51:41 +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>Creating your own WordPress plugin database migration framework</title>
		<link>http://lassebunk.dk/2012/01/14/wordpress-plugin-database-migration-framework/</link>
		<comments>http://lassebunk.dk/2012/01/14/wordpress-plugin-database-migration-framework/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 22:58:42 +0000</pubDate>
		<dc:creator>lassebunk</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://lassebunk.dk/?p=2413</guid>
		<description><![CDATA[How to create a database migration framework for WordPress that automatically migrates changes to your plugin database structure.]]></description>
			<content:encoded><![CDATA[<p>So, how do you migrate changes to your database structure from one version to another (like you may know it from <a href="http://guides.rubyonrails.org/migrations.html">Ruby on Rails</a>) when you are writing a WordPress plugin? Here&#8217;s one way to do it.</p>
<p>Let&#8217;s assume that the database migration should take place when the plugin is activated. Assuming your plugin is named <strong>myplugin</strong>, put this code in the <strong>myplugin.php</strong> file:</p>
<pre class="brush: php; title: ; notranslate">
register_activation_hook(__FILE__, 'myplugin_install');
</pre>
<p>This makes WordPress execute the <code>myplugin_install()</code> method when the user activates your plugin.</p>
<p>Next, add this method:</p>
<pre class="brush: php; title: ; notranslate">
function myplugin_install() {
  myplugin_migrate();
}
</pre>
<p>And our migration method:</p>
<pre class="brush: php; title: ; notranslate">
function myplugin_migrate() {
  global $wpdb;

  $migs = myplugin_migrations();

  $current_migration = get_option('myplugin_current_migration', 0);
  $needed_migration = count($migs);

  for ($i = $current_migration; $i &lt; $needed_migration; $i++) {
    $mig = $migs[$i];
    $wpdb-&gt;query($mig);
  }

  if ($current_migration == 0) {
    add_option('myplugin_current_migration', $needed_migration);
  } else {
    update_option('myplugin_current_migration', $needed_migration);
  }
}
</pre>
<p>What this does is that it runs through database statements (queries) returned from the <code>myplugin_migrations()</code> method. Let&#8217;s implement the actual migrations – add this method:</p>
<pre class="brush: php; title: ; notranslate">
function myplugin_migrations() {
  global $wpdb;

  $migs = array();

  // Create example table
  $migs[] = '
  CREATE TABLE '.$wpdb-&gt;prefix.'myplugin_examples (
    id int(11) NOT NULL AUTO_INCREMENT,
    name varchar(255) NOT NULL,
    PRIMARY KEY (id)
  )';

  // Add examples
  $migs[] = &quot;INSERT INTO &quot;.$wpdb-&gt;prefix.&quot;myplugin_examples SET name='First example'&quot;;
  $migs[] = &quot;INSERT INTO &quot;.$wpdb-&gt;prefix.&quot;myplugin_examples SET name='Second example'&quot;;

  // Return the migrations
  return $migs;
}
</pre>
<p>That would create an example table and insert some values.</p>
<p>Now imagine that two months later you need a <strong>description</strong> field in your <strong>examples</strong> table. What do you do? It&#8217;s as easy as adding one line of code to the migrations:</p>
<pre class="brush: php; title: ; notranslate">
// Add description field to examples
$migs[] = &quot;ALTER TABLE &quot;.$wpdb-&gt;prefix.&quot;myplugin_examples ADD description VARCHAR( 255 ) NOT NULL&quot;;
</pre>
<p>Deactivate and activate the plugin, and you table now has an extra field. Easy as cake! <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Share your thoughts, opinions, and suggestions below.</p>
<p>
<a href="http://twitter.com/lassebunk" onclick="abtest.trackGoal(21, this);">Follow me on Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://lassebunk.dk/2012/01/14/wordpress-plugin-database-migration-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Split testing button colors using A/B Test for WordPress (video)</title>
		<link>http://lassebunk.dk/2012/01/14/split-test-button-colors-ab-test-wordpress/</link>
		<comments>http://lassebunk.dk/2012/01/14/split-test-button-colors-ab-test-wordpress/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 17:31:57 +0000</pubDate>
		<dc:creator>lassebunk</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[A/B Test for WordPress]]></category>
		<category><![CDATA[A/B testing]]></category>
		<category><![CDATA[Multivariate testing]]></category>
		<category><![CDATA[Split testing]]></category>

		<guid isPermaLink="false">http://lassebunk.dk/?p=2366</guid>
		<description><![CDATA[How to use A/B Test for WordPress to split test the colors of a button linking to a product page.]]></description>
			<content:encoded><![CDATA[<p>In this presentation I&#8217;m demonstrating how to use the <a href="/plugins/abtest/">A/B Test for WordPress</a> plugin to split test button colors on your <a href="http://wordpress.org">WordPress</a> site:</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/Ia15LQJGG9A" frameborder="0" allowfullscreen></iframe></p>
<p>Visit the plugin page: <a href="/plugins/abtest/">A/B Test for WordPress</a></p>
<p>
<a href="http://twitter.com/lassebunk" onclick="abtest.trackGoal(21, this);">Follow me on Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://lassebunk.dk/2012/01/14/split-test-button-colors-ab-test-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the A/B Test for WordPress plugin to split test between themes</title>
		<link>http://lassebunk.dk/2012/01/14/abtest-wordpress-plugin-split-test-themes/</link>
		<comments>http://lassebunk.dk/2012/01/14/abtest-wordpress-plugin-split-test-themes/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 14:30:21 +0000</pubDate>
		<dc:creator>lassebunk</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[A/B Test for WordPress]]></category>
		<category><![CDATA[A/B testing]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Multivariate testing]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Split testing]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://lassebunk.dk/?p=2289</guid>
		<description><![CDATA[How to use the A/B Test for WordPress plugin to split test between your WordPress themes.]]></description>
			<content:encoded><![CDATA[<p>I recently created the <a href="/plugins/abtest/">A/B Test for WordPress</a> plugin which enables the <a href="http://wordpress.org">WordPress</a> blog or site owner to easily split test content, stylesheets, javascripts, and, what we&#8217;ll be discussing today, themes.</p>
<p>Let&#8217;s say you have a blog and you have been using the standard WordPress Twenty Eleven theme for a while but now you saw this great looking theme that&#8217;s just a must have. How do you find out if this new theme will make your site perform better or worse, and how will it affect outbound link clicks to your new book at Amazon? Let&#8217;s find out <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>WordPress comes with the Twenty Eleven theme, so we&#8217;ll split test between this and another theme. Let&#8217;s install the free <a href="http://wordpress.org/extend/themes/adventure-journal">Adventure Journal</a> theme:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.53.48-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.53.48-PM-450x256.png" alt="" title="Screen Shot 2012-01-14 at 3.53.48 PM" width="450" height="256" class="alignnone size-medium wp-image-2308" /></a></p>
<p>For information on how to install themes, visit <a href="http://codex.wordpress.org/Using_Themes">Using Themes</a> on the WordPress site.</p>
<p>Then <a href="/plugins/abtest/">intall the plugin</a> and activate it in <strong>Plugins</strong>:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.36.21-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.36.21-PM-450x146.png" alt="" title="Screen Shot 2012-01-14 at 3.36.21 PM" width="450" height="146" class="alignnone size-medium wp-image-2299" /></a></p>
<p>Click the <strong>A/B Testing</strong> link right below <strong>Settings</strong>:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.41.42-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.41.42-PM.png" alt="" title="Screen Shot 2012-01-14 at 3.41.42 PM" width="280" height="132" class="alignnone size-full wp-image-2301" /></a></p>
<p>Click <strong>Create new experiment</strong>:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.42.47-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.42.47-PM.png" alt="" title="Screen Shot 2012-01-14 at 3.42.47 PM" width="275" height="194" class="alignnone size-full wp-image-2302" /></a></p>
<p>Enter <strong>&#8220;Split testing my theme&#8221;</strong> as <strong>Name</strong> and select <strong>Theme</strong> as <strong>Experiment type</strong>:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.46.10-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.46.10-PM.png" alt="" title="Screen Shot 2012-01-14 at 3.46.10 PM" width="381" height="234" class="alignnone size-full wp-image-2304" /></a></p>
<p>Click <strong>Create experiment</strong>.</p>
<p>Click <strong>Edit</strong> below <strong>Experiment 1</strong>:<br />
<a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.48.11-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.48.11-PM.png" alt="" title="Screen Shot 2012-01-14 at 3.48.11 PM" width="438" height="250" class="alignnone size-full wp-image-2305" /></a></p>
<p>Select the <strong>Adventure Journal</strong> theme:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.56.51-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.56.51-PM.png" alt="" title="Screen Shot 2012-01-14 at 3.56.51 PM" width="372" height="242" class="alignnone size-full wp-image-2311" /></a></p>
<p>Click <strong>Update variation</strong>.</p>
<p>Do the same for <strong>Variation 2</strong> where you select <strong>Twenty Eleven</strong> as the theme.</p>
<p>Click <strong>Back to experiments</strong> at the bottom of the page:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.58.53-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-3.58.53-PM.png" alt="" title="Screen Shot 2012-01-14 at 3.58.53 PM" width="250" height="64" class="alignnone size-full wp-image-2312" /></a></p>
<p>Now we&#8217;re going into <strong>Debug mode</strong> to test our variations. About the Debug mode:</p>
<p><em>&#8220;Normally, when a user first sees a variation to an experiment, this variation is locked for this user so that – in this session – she always sees the same variation.<br />
If you want to test your experiments without this variation lock taking place for you (and only you), you can enable debug mode. Also, when entering debug mode, all tracking will be disabled for your session.&#8221;</em></p>
<p>Click <strong>Enter debug mode</strong> in the top right corner of the screen:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.02.28-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.02.28-PM.png" alt="" title="Screen Shot 2012-01-14 at 4.02.28 PM" width="261" height="87" class="alignnone size-full wp-image-2316" /></a></p>
<p>Debug mode is now <strong>on</strong>:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.03.06-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.03.06-PM.png" alt="" title="Screen Shot 2012-01-14 at 4.03.06 PM" width="255" height="61" class="alignnone size-full wp-image-2317" /></a></p>
<p>Now go to the <strong>front page</strong> of your site, and you&#8217;ll see one of the themes being displayed:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.03.48-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.03.48-PM-450x212.png" alt="" title="Screen Shot 2012-01-14 at 4.03.48 PM" width="450" height="212" class="alignnone size-medium wp-image-2318" /></a></p>
<p>Now click <strong>Refresh</strong> a couple of times, and you&#8217;ll see that the theme changes:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.05.10-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.05.10-PM-450x218.png" alt="" title="Screen Shot 2012-01-14 at 4.05.10 PM" width="450" height="218" class="alignnone size-medium wp-image-2319" /></a></p>
<p>Neat, eh? <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Back into the <strong>admin</strong> interface, click <strong>Exit debug mode</strong>:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.06.45-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.06.45-PM.png" alt="" title="Screen Shot 2012-01-14 at 4.06.45 PM" width="262" height="102" class="alignnone size-full wp-image-2322" /></a></p>
<p>We&#8217;ll now set up a link and track when this link is clicked. We&#8217;ll use a link to a book on Amazon to simulate an author site with a &#8220;Buy my book&#8221; link.</p>
<p>Click <strong>Split testing my theme</strong> and scroll down to <strong>Goals</strong>:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.08.52-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.08.52-PM.png" alt="" title="Screen Shot 2012-01-14 at 4.08.52 PM" width="410" height="228" class="alignnone size-full wp-image-2323" /></a></p>
<p>Click <strong>Get tracking code</strong> right below <strong>Goal 1</strong> and you&#8217;ll see this screen:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.09.52-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.09.52-PM-450x197.png" alt="" title="Screen Shot 2012-01-14 at 4.09.52 PM" width="450" height="197" class="alignnone size-medium wp-image-2324" /></a></p>
<p>Select the <strong>javascript</strong> code below <strong>To track a link</strong> and copy it to the clipboard using <strong>CMD + C</strong> (on a Mac) or <strong>CTRL + C</strong> (on a PC):</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.11.54-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.11.54-PM-450x56.png" alt="" title="Screen Shot 2012-01-14 at 4.11.54 PM" width="450" height="56" class="alignnone size-medium wp-image-2327" /></a></p>
<p>We&#8217;ll now create a <strong>widget</strong> with our link to Amazon.</p>
<p>Click <strong>Appearance</strong> and then <strong>Widgets</strong> in the menu to the left:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.13.39-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.13.39-PM.png" alt="" title="Screen Shot 2012-01-14 at 4.13.39 PM" width="238" height="122" class="alignnone size-full wp-image-2329" /></a></p>
<p>Insert a widget by dragging a <strong>Text</strong> box from the <strong>Available Widgets</strong> box:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.16.21-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.16.21-PM.png" alt="" title="Screen Shot 2012-01-14 at 4.16.21 PM" width="272" height="80" class="alignnone size-full wp-image-2331" /></a></p>
<p>Onto the <strong>Main Sidebar</strong> on the right:<br />
<a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.17.50-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.17.50-PM-450x409.png" alt="" title="Screen Shot 2012-01-14 at 4.17.50 PM" width="450" height="409" class="alignnone size-medium wp-image-2332" /></a></p>
<p>Enter <strong>&#8220;Buy my book&#8221;</strong> as <strong>Title</strong> and insert this code below:<br />
<code><br />
&lt;a href=&quot;http://www.amazon.com/WordPress-Power-Guide-Blogging-ebook/dp/B004UW29IK/ref=sr_1_1?ie=UTF8&amp;qid=1326554345&amp;sr=8-1&quot; onclick=&quot;abtest.trackGoal(1, this);&quot;&gt;Buy my book on Amazon&lt;/a&gt;<br />
</code></p>
<p>Like this:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.21.28-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.21.28-PM-450x171.png" alt="" title="Screen Shot 2012-01-14 at 4.21.28 PM" width="450" height="171" class="alignnone size-medium wp-image-2335" /></a></p>
<p>Notice how we&#8217;re using the <code>onclick=&quot;abtest.trackGoal(1, this);&quot;</code> code? That&#8217;s what&#8217;s tracking our link when we click it.</p>
<p>Click <strong>Save</strong>.</p>
<p>Now go back onto the <strong>front page</strong> and you&#8217;ll see that the widget has been inserted into your site:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.23.03-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.23.03-PM.png" alt="" title="Screen Shot 2012-01-14 at 4.23.03 PM" width="343" height="104" class="alignnone size-full wp-image-2336" /></a></p>
<p>So far so good.</p>
<p>Try clicking the <strong>link</strong>.<br />
You have now tracked a goal completion!</p>
<p>Back into the <strong>admin</strong> interface, click on the <strong>experiment</strong> and you&#8217;ll see that it has tracked a goal completion:</p>
<p><a href="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.27.45-PM.png"><img src="http://lassebunk.dk/media/2012/01/Screen-Shot-2012-01-14-at-4.27.45-PM-450x77.png" alt="" title="Screen Shot 2012-01-14 at 4.27.45 PM" width="450" height="77" class="alignnone size-medium wp-image-2337" /></a></p>
<p>Nice! Now you just need to wait and see which theme performs better.</p>
<p>For more info, installation instructions, and tutorials, visit the <a href="/plugins/abtest/">A/B Test for WordPress</a> plugin page.</p>
<p>Also, please feel free to <a href="/contact/">contact me</a> if you have any questions.</p>
<p>
<a href="http://twitter.com/lassebunk" onclick="abtest.trackGoal(21, this);">Follow me on Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://lassebunk.dk/2012/01/14/abtest-wordpress-plugin-split-test-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to the A/B Test for WordPress plugin (video)</title>
		<link>http://lassebunk.dk/2012/01/14/ab-test-for-wordpress/</link>
		<comments>http://lassebunk.dk/2012/01/14/ab-test-for-wordpress/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 00:28:48 +0000</pubDate>
		<dc:creator>lassebunk</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[A/B Test for WordPress]]></category>
		<category><![CDATA[A/B testing]]></category>
		<category><![CDATA[Multivariate testing]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Split testing]]></category>

		<guid isPermaLink="false">http://lassebunk.dk/?p=2235</guid>
		<description><![CDATA[A/B testing plugin for WordPress that makes it easy to A/B test any WordPress blog or site.]]></description>
			<content:encoded><![CDATA[<p><a href="/plugins/abtest/">A/B Test for WordPress</a> is a <a href="http://wordpress.org">WordPress</a> <a href="http://wordpress.org/extend/plugins/">plugin</a> that makes it easy to A/B split test your WordPress blog or site.</p>
<p><a href="/plugins/abtest/">Visit the plugin page</a> for more information, download, tutorials, and videos.</p>
<p>Here is a video introduction:</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/4VRxXj2e3_I" frameborder="0" allowfullscreen></iframe></p>
<p>&rarr; <a href="http://downloads.wordpress.org/plugin/abtest.zip">Download the plugin</a> (or <a href="/plugins/abtest/">see more information</a>)</p>
<p>Please feel free to <a href="/contact/">contact me</a> if you have any questions.</p>
<p>
<a href="http://twitter.com/lassebunk" onclick="abtest.trackGoal(21, this);">Follow me on Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://lassebunk.dk/2012/01/14/ab-test-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Three months on the Mac stack</title>
		<link>http://lassebunk.dk/2009/09/24/three-months-on-the-mac-stack/</link>
		<comments>http://lassebunk.dk/2009/09/24/three-months-on-the-mac-stack/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 13:39:45 +0000</pubDate>
		<dc:creator>lassebunk</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Amiga]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[C64]]></category>
		<category><![CDATA[Compiler]]></category>
		<category><![CDATA[Github]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[Netbooks]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Slicehost]]></category>
		<category><![CDATA[Slices]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VMware Fusion]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://lassebunk.dk/?p=221</guid>
		<description><![CDATA[I started out using Windows and ended up using OS X and Linux.]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">It’s actually four months now – since May 1st – but I’ve been wanting to write this article for a month. Hence the – somewhat misleading – title.</p>
<p>I bought my <a href="http://www.apple.com/macbook/">MacBook</a> on May 1th after viewing a <a href="http://rubyonrails.org/screencasts">screencast where a guy sets up a blog in 15 minutes</a> using <a href="http://rubyonrails.org">Ruby on Rails</a>. I immediately said to my stepdad: “I’m going to buy a Mac and learn Ruby on Rails!”</p>
<p>And so I did &#8211; the day after, I bought a Mac.</p>
<p>I’ve always been a dedicated user of <a href="http://www.microsoft.com">Microsoft</a>&#8216;s products. First <a href="http://en.wikipedia.org/wiki/Commodore_64">C64</a>, then <a href="http://en.wikipedia.org/wiki/Amiga">Amiga</a>, then <a href="http://en.wikipedia.org/wiki/Power_Macintosh_5300">Mac</a>, then PC. I liked the way everything was tested and came from one place, unlike <a href="http://en.wikipedia.org/wiki/Open_source">open source</a>. I’ve always been saying stuff like “I like to pay for my software because then I&#8217;m be sure about the quality.” – but in reality, everyone who uses Windows and other Microsoft products know that this isn’t always the case.</p>
<p>So I bought the Mac, and the first thing that surprised me, was how much of day-to-day work was done in the <a href="http://en.wikipedia.org/wiki/Apple_Terminal">Terminal</a>, or <a href="http://en.wikipedia.org/wiki/Command-line_interface">command line</a>. When I installed Ruby on Rails, it was via command line; when I installed plugins, it was via command line. Evererything command line. <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Over the next few days I began to get a hang of it. I bought a couple of <a href="http://en.wikipedia.org/wiki/Domain_name">domain names</a> and signed up for a <a href="http://en.wikipedia.org/wiki/Slice_%28disk%29">slice</a> at <a href="http://www.slicehost.com">Slicehost</a> – because I had read some <a href="http://railswork.com">job description</a> that said that you should&#8217;ve at least tried to use a whole day of setting a slice.</p>
<p>Coming from Windows, Linux is a whole other deal to setup. I used a lot of the <a href="http://articles.slicehost.com/">Slicehost articles</a> that guides you through the whole process from setup and security to getting your slice to run as a <a href="http://www.apache.org">webserver</a>.</p>
<p>In the beginning I was a little nervous about all the command lines, if they would really work and so one. But the more you try it, the more calm you get. It just works! And lucky me there was a lot of helpful articles about Unix and Linux commands out there (just search for the command on <a href="http://www.google.com">Google</a>).</p>
<p>Since starting out on the Mac, I’ve learned a multitude of things:</p>
<ul>
<li> Setting up an <a href="http://www.ubuntu.com/">Ubuntu</a> <a href="http://en.wikipedia.org/wiki/Slice_%28disk%29">slice</a> at <a href="http://www.slicehost.com">Slicehost</a>.</li>
<li>Setting up a <a href="http://www.apache.org">web server</a>.</li>
<li>Setting up <a href="http://www.ubuntu.com/GetUbuntu/download-netbook">Ubuntu Netbook Remix</a> on my <a href="http://eeepc.asus.com/">netbook</a>.</li>
<li>Setting up <a href="http://www.ubuntu.com/getubuntu/download-server">Ubuntu server</a> at home, also on my netbook – which now functions as my testing server.</li>
<li>Programming a little <a href="http://www.php.net">PHP</a> – see Tweet My Cam.</li>
<li>Programming <a href="http://rubyonrails.org">Ruby on Rails</a>.</li>
<li>Tweaking some <a href="http://www.java.com">Java</a> code, <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html">compiling</a> and <a href="http://forums.sun.com/thread.jspa?threadID=174214">signing</a> a <a href="http://en.wikipedia.org/wiki/Java_applet">java applet</a> in one day – see a demo <a href="http://lassebunk.dk/2009/07/19/using-the-clipboard-to-post-images/">here</a>.</li>
<li>Download and compile software (<a href="http://tldp.org/LDP/LG/current/smith.html">configure, make, make install</a>).</li>
<li><a href="http://railsontherun.com/2008/3/3/how-to-use-github-and-submit-a-patch">Submitted a patch</a> to a Ruby on Rails <a href="http://github.com/technoweenie/restful-authentication">plugin</a> on <a href="http://github.com">Github</a>.</li>
<li>Setting up <a href="http://wordpress.org">WordPress</a> and <a href="http://mu.wordpress.org/">WordPress Mu</a> blogs and making my own <a href="http://lassebunk.dk">theme</a> – see <a href="http://lassebunk.dk">my private blog</a> and <a href="http://userdriven.dk">private work blog</a>.</li>
<li>Setting up a <a href="http://subversion.tigris.org/">Subversion</a> repository at <a href="http://www.xp-dev.com/">XP-Dev.com</a>.</li>
<li>Using the Subversion repository <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>Loving <a href="http://macromates.com/">Textmate</a> as my favorite editor – also over <a href="http://www.microsoft.com/visualstudio">Visual Studio</a>.</li>
<li>Plus a bunch of other things.</li>
</ul>
<p>In short I’ve learned so much about the open source world that just wasn’t that easy on the Microsoft platform.</p>
<p>I still use Microsoft Windows and other products, but now it’s through <a href="http://www.vmware.com/products/fusion/">VMware Fusion</a> on the Mac.</p>
<p>I’m happy about the Mac because <a href="http://www.apple.com/macosx/">OS X</a> is very unobtrusive, fast operating system and what it does, it does very good. But at the same time, I also want a netbook that’s easier to carry, so I may end up running both systems for different purposes (unless I&#8217;m just installing Ubuntu on the netbook too <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ).</p>
<p>Hope you found this post interesting – I wrote it to tell about a beautiful (yak, I know) progress from Windows to Mac and Linux. Thumbs up if this has made you want to try it too. And please tell me in the comments. <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>
<a href="http://twitter.com/lassebunk" onclick="abtest.trackGoal(21, this);">Follow me on Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://lassebunk.dk/2009/09/24/three-months-on-the-mac-stack/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

