<?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>info.michael-simons.eu &#187; Hacks</title>
	<atom:link href="http://info.michael-simons.eu/tag/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://info.michael-simons.eu</link>
	<description>Just another nerd blog</description>
	<lastBuildDate>Fri, 09 Jul 2010 07:40:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress 2.2 Update</title>
		<link>http://info.michael-simons.eu/2007/05/17/wordpress-22-update/</link>
		<comments>http://info.michael-simons.eu/2007/05/17/wordpress-22-update/#comments</comments>
		<pubDate>Thu, 17 May 2007 11:24:15 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[janb]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/2007/05/17/wordpress-22-update/</guid>
		<description><![CDATA[WordPress 2.2 arrived a day ago. Updating was no problem at all. Prominent new features are wigdet support without the need for an external plugin and a working atom 1.0 feed. I could drop two plugins: the widget plugin and the atom10 plugin. Nice. All others work as before (some important to mention are UTW, [...]]]></description>
			<content:encoded><![CDATA[<p>
WordPress 2.2 arrived a day ago.<br />
Updating was no problem at all. Prominent new features are wigdet support without the need for an external plugin and a working atom 1.0 feed.</p>
<p>I could drop two plugins: the widget plugin and the atom10 plugin. Nice. All others work as before (some important to mention are UTW, WP-Cache and the nice extended live archive(*).</p>
<p>A really nice site effect of the update: the WP Team finally managed to put a &#8220;SET NAMES blah&#8221; into wp-db.php, so that setting &#8220;UTF-8&#8243; i.e. in wp-admin really means UTF-8 in the database. I always hacked my wp-db(**) for my other blog <a href="http://planet-punk.de">planet-punk.de</a>, since there are a lot of old posts from another legacy system that _are_ indeed UTF-8 but which where maltransformed by wp without that hack before 2.2.</p>
<p>I do have a local development system on my mac but i tend to test things twice or more often. Other people maybe don&#8217;t have or want that luxury and need to udate their blogs directly on the server. Either way, it&#8217;s a good idea, to put your blog to maintenance while updating your wp core files. This is easily accomplished with .htacess and mod_rewrite. First create a file &#8220;maintenance.html&#8221; for your visitors. Than look up your external ip and add the following to your .htaccess:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">IfModule</span> mod_rewrite.c&gt;
<span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">On</span>
<span style="color: #00007f;">RewriteCond</span> %{REMOTE_ADDR} !87.78.68.17 [NC]
<span style="color: #00007f;">RewriteRule</span> ! maintenance.html$ maintenance.html [R=<span style="color: #ff0000;">301</span>,L]
&lt;/<span style="color: #000000; font-weight:bold;">IfModule</span>&gt;</pre></div></div>

<p>and replace 87.78.68.17 with your external ip. Remember commenting these entries when you&#8217;re done.</p>
<p><small>(*) If you have any questions about my plugins, don&#8217;t hesitate to ask, i just don&#8217;t want a plugin list in case of bugs in any plugin.</small></p>
<p><small>(**) The hack <em>was</em>: Add the following to <em>__construct</em> in your wp-db.php (./wp-includes/) :</small></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">select</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dbname</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SET NAMES 'utf8'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p class="akst_link"><a href="http://info.michael-simons.eu/?p=78&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_78" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2007/05/17/wordpress-22-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Suchphrasen speichern mit BBClone</title>
		<link>http://info.michael-simons.eu/2006/05/11/suchphrasen-speichern-mit-bbclone/</link>
		<comments>http://info.michael-simons.eu/2006/05/11/suchphrasen-speichern-mit-bbclone/#comments</comments>
		<pubDate>Thu, 11 May 2006 16:20:45 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Webdevelopment]]></category>
		<category><![CDATA[BBClone]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/2006/05/11/suchphrasen-speichern-mit-bbclone/</guid>
		<description><![CDATA[Seit geraumer Zeit nutze ich BBClone für Statistiken. Einfach und gut zu bedienen, wie ich finde. Leider speichert BBClone in den Top n nur einzelne Suchwörter und keine Phrasen. Das kann man aber leicht ändern, wie ich in diesem Blog gefunden habe. Gleichzeit wird dort auch beschrieben, wie man BBClone die Zusammenarbeit mit WordPress nahe [...]]]></description>
			<content:encoded><![CDATA[<p>Seit geraumer Zeit nutze ich <a href="http://www.bbclone.de" rel="external">BBClone</a> für Statistiken. Einfach und gut zu bedienen, wie ich finde.</p>
<p>Leider speichert BBClone in den Top n nur einzelne Suchwörter und keine Phrasen. Das kann man aber leicht ändern, wie ich in diesem <a href="http://jei.afraid.org/wordpress/index.php?tag=bbclone">Blog</a> gefunden habe. Gleichzeit wird dort auch beschrieben, wie man BBClone die Zusammenarbeit mit WordPress nahe bringt.</p>
<p>Ich habe den <a id="p35" rel="attachment" href="http://info.michael-simons.eu/2006/05/11/suchphrasen-speichern-mit-bbclone/log_processorphptxt/" title="log_processor.php.txt">BBClone Log Processor</a> entsprechend angepasst. Um ihn im eigenem BBClone zu verwenden, einfach runterladen, die Endung .txt entfernen und die entsprechende log_processor.php im BBClone Verzeichnis ersetzen.<br />
Die Datei basiert auf dem Log Processor von BBClone 0.4.8b.</p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=36&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_36" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2006/05/11/suchphrasen-speichern-mit-bbclone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
