<?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>Intrepid Blog &#187; wordpress</title>
	<atom:link href="http://blog.affien.com/archives/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.affien.com</link>
	<description>A few thoughts</description>
	<lastBuildDate>Mon, 23 Jan 2012 08:47:37 +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>Upgrading wordpress with git</title>
		<link>http://blog.affien.com/archives/2007/06/07/upgrading-wordpress-with-git/</link>
		<comments>http://blog.affien.com/archives/2007/06/07/upgrading-wordpress-with-git/#comments</comments>
		<pubDate>Thu, 07 Jun 2007 21:03:56 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2007/06/07/upgrading-wordpress-with-git/</guid>
		<description><![CDATA[I didn't like upgrading wodpress much. Everytime I did  [...]]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t like upgrading wodpress much. Everytime I did it, I needed to re-apply all my little tweaks to the new wordpress. It took too much time.</p>
<p>I tried to <code>diff -uNr</code> on the current version I was running and the newer version and then applying the resulting diff to the current version, but it seems wordpress has been backporting changes so I got conflicts, quite a lot of them.</p>
<p>Because I was quite tired of porting my changes, I&#8217;ve tried git, the Source Code Managment tool used by the linux kernel, to do it for me:</p>
<p>I did this all in the parent directory of the root of blog.w-nz.com. This folder contains:</p>
<ul>
<li><code>htdocs</code> current installation (2.1.2)</li>
<li><code>2.1.2</code> the unmodified wordpress</li>
<li><code>2.2.0</code> the new wordpress I want to upgrade to</li>
</ul>
<p>First, I created an empty git repository:</p>
<blockquote><p>
<code>mkdir git; cd git; git init-db; cd ..</code>
</p></blockquote>
<p>Then I copied over the unmodified version of wordpress I was running, and commited them:</p>
<blockquote><p><code>cp 2.1.2/* git -R<br />
cd git<br />
git add *<br />
git commit -a -s<br />
cd ..</code></p></blockquote>
<p>Then I copied over my current installation:</p>
<blockquote><p><code>cp htdocs/* git -R<br />
git status # lets see what changed</code></p></blockquote>
<p>There are lots of files like uploads I want git to ignore, so I edit <code>.gitignore</code> to make git ignore them.  There weren&#8217;t any files I added though, otherwise I&#8217;d had to run <code>git add</code> to let git know.</p>
<p>And let commit my changes:</p>
<blockquote><p><code>git commit -a -s</code></p></blockquote>
<p>Now, lets go back to the original commit &#8212; the clean 2.1.2 wordpress &#8212; and start a branch from there:</p>
<blockquote><p><code>git checkout HEAD^ # HEAD^ means parent commit of HEAD: the previous commit<br />
git checkout -b tmp # create a new branch tmp from here</code></p></blockquote>
<p>Now I&#8217;m in a branch without my own changes, which was forked from the master branch.  Lets apply the new wordpress on this branch:</p>
<blockquote><p><code>cd ..<br />
cp 2.2.0/* git -R<br />
cd git<br />
git status # see what changed</code></p></blockquote>
<p><code>git-status</code> showed me that there are a few new files in wordpress 2.2.0, I <code>git-add</code>-ed all of these new files. And then committed  it all:</p>
<blockquote><p><code>git commit -a -s</code></p></blockquote>
<p>Now I&#8217;ve got two branches:</p>
<ul>
<li><code>master</code> which contains wordpress 2.1.2 with my own changes on top as a commit</li>
<li><code>tmp</code> which is forked from the wordpress 2.1.2 from the master branch without my own changes but with the 2.2.0 changes on top</li>
</ul>
<p>What I want to do is to reapply the 2.2.0 changes on top of my current changes&#8217; commit instead of on top of the 2.1.2 commit. To do this, git has a very powerfull util called <code>git-rebase</code>:</p>
<blockquote><p><code>git rebase master</code></p></blockquote>
<p>This will search down the tree until the point where the current branch (tmp) forked from the target branch (master). Then it will re-apply all commits in between on the latest commit of the target branch.</p>
<p>Just like if I&#8217;d use diff/patch I get a merge conflict. <code>git rebase</code> lets me know this and <code>git status</code> shows me which one are these. The one little difference with the diff/patch approach is, that there are way less merge conflicts (git is smarter) and that the merge conflict are way easier to identify and they&#8217;re inline in the original files. Not to mention that when I would have fucked up I&#8217;d always have a way back.</p>
<p>After I fixed the merge conflict, I <code>git update-index</code> each conflicted file (to tell git it&#8217;s resolved) and <code>git rebase --continue</code>-ed.</p>
<p>Now I&#8217;ve got my updated wordpress in the <code>git</code> folder.  Then I backuped the current, copied over from git and visited <code>wp-admin/upgrade.php</code> and I&#8217;m done <img src='http://blog.affien.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>By the way: &#8220;I didn&#8217;t say Subversion doesn&#8217;t work.  Subversion users are just ugly and stupid.&#8221; &#8212; Linus on <a href="http://www.youtube.com/watch?v=4XpnKHJAok8">this Google tech talk</a>.</p>
<p><strong>Sidenote</strong>, I switched from <a href="http://wordpress-plugins.feifei.us/hashcash/">Hashcash</a> to <a href="http://akismet.com/">Akismet</a>. Hashcash didn&#8217;t work anymore and Akismet theoretically should be the best solution because it isn&#8217;t based on security by obscurity. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2007/06/07/upgrading-wordpress-with-git/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hashcash 3.2</title>
		<link>http://blog.affien.com/archives/2007/01/03/hashcash-32/</link>
		<comments>http://blog.affien.com/archives/2007/01/03/hashcash-32/#comments</comments>
		<pubDate>Wed, 03 Jan 2007 00:34:32 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[hashcash]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2007/01/03/hashcash-32/</guid>
		<description><![CDATA[I upgraded to hashcash 3.2. I hope that will stop the n [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded to <a href="http://elliottback.com/wp/archives/2005/10/23/wordpress-hashcash-30-beta/">hashcash 3.2</a>. I hope that will stop the new wave of spam I had on this blog. When you&#8217;re upgrading yourself, note that now wp-hashcash resides in its own subdirectory in the plugins folder, I didn&#8217;t notice that and couldn&#8217;t find what was wrong until I noticed the &#8216;/wp-hashcash/&#8217; bit in the source.</p>
<p>By the way, happy new year!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2007/01/03/hashcash-32/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WP 2.0.4</title>
		<link>http://blog.affien.com/archives/2006/08/18/wp-204/</link>
		<comments>http://blog.affien.com/archives/2006/08/18/wp-204/#comments</comments>
		<pubDate>Fri, 18 Aug 2006 00:03:47 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/08/18/wp-204/</guid>
		<description><![CDATA[Upgraded to Wordpress 2.0.4.

As usual, slam the F5 b [...]]]></description>
			<content:encoded><![CDATA[<p>Upgraded to <a href="http://wordpress.org/development/2006/07/wordpress-204/">WordPress 2.0.4</a>.</p>
<p>As usual, slam the F5 button (or similar) once (or twice on stupid browsers) to invalidate the old stylesheets and images in the cache. If your browser is really stupid (*cough* IE *cough*), you might need to purge the whole cache manually, but that isn&#8217;t my concern <img src='http://blog.affien.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2006/08/18/wp-204/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://blog.affien.com/archives/2006/05/25/e/</link>
		<comments>http://blog.affien.com/archives/2006/05/25/e/#comments</comments>
		<pubDate>Thu, 25 May 2006 21:39:27 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/05/25/e/</guid>
		<description><![CDATA[[tex]\displaystyle e=\lim_{n\to\infty} \left(1+\frac{1} [...]]]></description>
			<content:encoded><![CDATA[<p><img src='/wp-latexrender/pictures/1009c260f8e155097d4994706600402b.png' title='\displaystyle e=\lim_{n\to\infty} \left(1+\frac{1}{n}\right)^n' alt='\displaystyle e=\lim_{n\to\infty} \left(1+\frac{1}{n}\right)^n' align=absmiddle></p>
<p>Yay, it seems <a href="http://www.sixthform.info/steve/wordpress/">the wordpress <img src='/wp-latexrender/pictures/89a89e0981b83735997c42f3f5d93a6b.png' title='\TeX' alt='\TeX' align=absmiddle> plugin</a> works.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2006/05/25/e/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anonymous comments disabled re-enabled</title>
		<link>http://blog.affien.com/archives/2006/05/19/anonymous-comments-disabled/</link>
		<comments>http://blog.affien.com/archives/2006/05/19/anonymous-comments-disabled/#comments</comments>
		<pubDate>Fri, 19 May 2006 21:09:49 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/05/19/comments-disabled/</guid>
		<description><![CDATA[I've disabled anonymous comments for my blog, because m [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve disabled anonymous comments for my blog, because my blog is spammed with ~100 spam-comments a day &#8212; it seems they&#8217;ve worked around <a href="http://elliottback.com/wp/archives/2005/10/23/wordpress-hashcash-30-beta/">Hashcash 3.0</a>. I&#8217;ll look into this a bit more when I&#8217;ve got time. Sorry for the inconvenience.</p>
<p><strong>Update</strong> Seems it were nasty trackbacks instead of comments. So I just disabled trackbacks. You can comment again.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2006/05/19/anonymous-comments-disabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgraded to WordPress 2.0.1</title>
		<link>http://blog.affien.com/archives/2006/03/01/upgraded-to-wordpress-201/</link>
		<comments>http://blog.affien.com/archives/2006/03/01/upgraded-to-wordpress-201/#comments</comments>
		<pubDate>Wed, 01 Mar 2006 17:41:16 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/03/01/upgraded-to-wordpress-201/</guid>
		<description><![CDATA[Just upgraded to Wordpress 2.0.1, which was way too eas [...]]]></description>
			<content:encoded><![CDATA[<p>Just upgraded to <a href="http://wordpress.org/development/2006/01/201-release/">WordPress 2.0.1</a>, which was way too easy:</p>
<p><code># in my blog.w-nz.com htdocs folder<br />
wget http://wordpress.org/latest.tar.gz<br />
tar -xvzpf latest.tar.gz<br />
cp wordpress/* . -R</code></p>
<p>Visit the upgrade script, which consisted out of one simple click and I was done.</p>
<p>Great stuff.</p>
<p>PS. I reuploaded my logo and google analytics code too, but they don&#8217;t count, really (even though they consisted out of more work that the rest of the upgrade).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2006/03/01/upgraded-to-wordpress-201/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to wordpress 2.0</title>
		<link>http://blog.affien.com/archives/2006/01/01/welcome-to-wordpress-20/</link>
		<comments>http://blog.affien.com/archives/2006/01/01/welcome-to-wordpress-20/#comments</comments>
		<pubDate>Sun, 01 Jan 2006 16:16:11 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/01/01/welcome-to-wordpress-20/</guid>
		<description><![CDATA[I've just upgraded my blog to the new wordpress 2.0, wh [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just upgraded my blog to the <a title="wordpress 2.0 release post" href="http://wordpress.org/development/2005/12/wp2/">new wordpress 2.0</a>, which seems to work properly.</p>
<p>Espacially the back-end has got a face lift, which looks and feels really nice.</p>
<p><ins>Update: redid the logo and changed the theme to show the author</ins></p>
<p>And offcourse: <strong>Happy newyear!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2006/01/01/welcome-to-wordpress-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spam, spam and more spam</title>
		<link>http://blog.affien.com/archives/2005/09/11/spam-spam-and-more-spam/</link>
		<comments>http://blog.affien.com/archives/2005/09/11/spam-spam-and-more-spam/#comments</comments>
		<pubDate>Sun, 11 Sep 2005 10:23:34 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[hashcash]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2005/09/11/spam-spam-and-more-spam/</guid>
		<description><![CDATA[I noticed I had an enourmous amount of spam in my moder [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed I had an enourmous amount of spam in my moderation queue.</p>
<p>The plugin I used to protect myself from spam wp-hashcash, seemed to have been mastered by spammers.</p>
<p>A download of the newest version did the trick.</p>
<p>If anyone experiences problems with posting comments, please <a href="mailto:bas.westerbaan@gmail.com">mail me</a>.</p>
<p><ins>Update I: Seems <em>some</em> spam prevailed even over this version. I&#8217;d better get to making my own custom changes to wp-hashcsah.</ins></p>
<p><ins>Update II: I changed the secret codes in the plugin. And I broke it for a while. Either one of those could have resulted in the fortunate (hopefully not temporarilly) stop of spam.</ins></p>
<p><ins>Update III: According to Elliot Back, the creator of hashcash, the spammers bruteforce the secret value. Changing it usually is efficient enough to keep them at bay for a while. He&#8217;s working on a newer version which features bigger, thus harder to bruteforce values. I just hope they won&#8217;t suck my bandwidth <strong>too</strong> much.</ins></p>
<p><ins>Update IV: Unfortunately there seems to be a lot of computing power or a hack behind the breaking of the hashcash security -_-, I keep getting spam :-/</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2005/09/11/spam-spam-and-more-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bye Bye Spam</title>
		<link>http://blog.affien.com/archives/2005/06/25/bye-bye-spam/</link>
		<comments>http://blog.affien.com/archives/2005/06/25/bye-bye-spam/#comments</comments>
		<pubDate>Sat, 25 Jun 2005 22:19:54 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[hashcash]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2005/06/25/bye-bye-spam/</guid>
		<description><![CDATA[I just installed Hash Cash, which is an anti spam plugi [...]]]></description>
			<content:encoded><![CDATA[<p>I just installed <a href="http://elliottback.com/wp/archives/2005/05/11/wordpress-hashcash-20/">Hash Cash</a>, which is an anti spam plugin for WordPress.</p>
<p><em>Hash Cash</em> protects this blog from spam by requiring the client to execute javascript which calculates a checksum of the content from a seed which is very hard to extract.</p>
<p>Since I installed it I haven&#8217;t got any spam comments <img src='http://blog.affien.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p>The downside is that it disallows anyone who hasn&#8217;t got a javascript enabled browser to post a comment.</p>
<p><ins>Now I still need to get some good means to combat trackback spam. Just putting them under moderation isn&#8217;t good enough for they keep coming</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2005/06/25/bye-bye-spam/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Note on logo</title>
		<link>http://blog.affien.com/archives/2005/04/15/note-on-logo/</link>
		<comments>http://blog.affien.com/archives/2005/04/15/note-on-logo/#comments</comments>
		<pubDate>Fri, 15 Apr 2005 22:42:52 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2005/04/15/note-on-logo/</guid>
		<description><![CDATA[I found some time to change the default logo of the wor [...]]]></description>
			<content:encoded><![CDATA[<p>I found some time to change the default logo of the wordpress theme to something I liked a bit more. I guess I`ll have to do a better layout for the website once but it takes too damned much time.</p>
<p>Anyways, I was required to change both the CSS as obviously the Image, so <strong>press refresh</strong> a few times if it doesn&#8217;t show up properly.</p>
<p>(the logo itself is a part of a &#8216;o&#8217;, yeah.. the letter &#8216;o&#8217;&#8230; of the word opeth.. that opeth:<br />
<img src="http://w-nz.com/images/opeth-logo1.jpg" alt="opeth logo" />)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2005/04/15/note-on-logo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

