<?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>Then each went to his own home &#187; Blog</title>
	<atom:link href="http://www.pui.ch/phred/archives/category/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pui.ch/phred</link>
	<description>Philipp Kellers weblog</description>
	<lastBuildDate>Tue, 17 Aug 2010 19:58:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tracking new referrers via RSS: a poor mans solution</title>
		<link>http://www.pui.ch/phred/archives/2006/03/tracking-referers.html</link>
		<comments>http://www.pui.ch/phred/archives/2006/03/tracking-referers.html#comments</comments>
		<pubDate>Tue, 28 Mar 2006 12:42:26 +0000</pubDate>
		<dc:creator>Philipp Keller</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.pui.ch/phred/?p=38</guid>
		<description><![CDATA[And now to something completely different (No, I won&#8217;t post cat photos now)
Trackbacks are out, unfortunately. Probably due to a misuse of spammers a lot of blogs have closed their trackback ping urls.
However, as I want to know what is currently written about my articles: criticism, praise or different views or whatever, I need to [...]]]></description>
			<content:encoded><![CDATA[<p>And now to something completely different (No, I won&#8217;t post cat photos now)</p>
<p>Trackbacks are out, unfortunately. Probably due to a misuse of spammers a lot of blogs have closed their trackback ping urls.<br />
However, as I want to know what is currently written about my articles: criticism, praise or different views or whatever, I need to somehow track new referrers to my blog. I tried different solutions that all weren&#8217;t satisfying:</p>
<ul>
<li>I tried to skim through my <a href="http://awstats.sourceforge.net/">awstats</a> statistics but it was a pain to extract the new trackbacks from the old ones. Awstats way of displaying referrers is ok to have an idea of how my visitors reach my site but it falls short in showing me new referrers. </li>
<li>I created a <a href="http://www.technorati.com/watchlist/">watch list at technorati</a>, but it seems to track just a portion of the whole cake.</li>
</ul>
<p>I ended up writing a python script for it. As a beginner in python, programming this task was easy enough to have a good result in small time.<br />
In the danger of presenting the 1324th solution to this problem I hereby present my script. If you already have got a solution I&#8217;d be interested since I didn&#8217;t find any service or blog post concerning this problem.<span id="more-38"></span></p>
<h2>latestReferrers.py</h2>
<p>The script reads from an apache access log file, counts how many times a referrer occurs and writes the output in RSS 2.0 format using <a href="http://www.dalkescientific.com/Python/PyRSS2Gen.html">PyRSS2Gen</a>. Have a look at <a href="http://www.pui.ch/cgi-bin/latestReferrers.py">my referrer feed</a> to see how this looks. The the script needs and no javascript, no database and no cron job (as it is directly called by the http request). All it needs is an apache log file.<br />
Now, apache log files mostly are <a href="http://httpd.apache.org/docs/2.0/logs.html#rotation">log rotated</a>, that means working on the latest log file just covers the last day or the last week (this depends on how much traffic your website has). This somehow is a problem as I don&#8217;t want referrer urls showing up again after each log rotation.<br />
Now the neat thing about rss aggregators is that they just show up new items so you won&#8217;t see referrers over and over again. I just have to subscribe to my latestReferrer.py rss feed and tell the aggregator that it shouldn&#8217;t notice me if the feed has changed and voilà, I&#8217;ve got a poor mans solution to my &#8220;new referrers&#8221; problem.</p>
<p>If you want to install <a href="http://www.pui.ch/phred/modules/latestReferrers.tar.gz">latestReferrers.py</a>: put the python scripts into a directory where apache grants the right to execute (i.e. cgi-bin), edit the few variables at the start (regex of urls/agents you don&#8217;t want to show up in your referrers, number of times a url has to show up in the access log so it shows up in you rss, etc.), subscribe to your new feed via a feed aggregator and then leave a comment here.. :-)<br />
The code is published under <a href="http://www.gnu.org/copyleft/lesser.html">LGPL</a>.</p>
<h2>Other solutions</h2>
<ul>
<li><a href="http://www.reeferss.com/">reeferss</a> offers a &#8220;latest referrers RSS feed&#8221; (requires javascript on your site). No installation required. Neat!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pui.ch/phred/archives/2006/03/tracking-referers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My home is now Wordpress</title>
		<link>http://www.pui.ch/phred/archives/2005/03/my-home-is-now-wordpress.html</link>
		<comments>http://www.pui.ch/phred/archives/2005/03/my-home-is-now-wordpress.html#comments</comments>
		<pubDate>Tue, 29 Mar 2005 19:46:48 +0000</pubDate>
		<dc:creator>Philipp Keller</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.pui.ch/phred/archives/2005/03/my-home-is-now-wordpress.html</guid>
		<description><![CDATA[Finally I moved my blog from Movabletype to Wordpress. This because we use blogs at the company where I work and we wanted a free open source blogger we could offer our customers. So to learn Wordpress I just moved my blog.. It was a bunch of work, the import of the posts was easy, [...]]]></description>
			<content:encoded><![CDATA[<p>Finally I moved my blog from <a href="http://www.sixapart.com/movabletype/">Movabletype</a> to <a href="http://wordpress.org/">Wordpress</a>. This because we use blogs <a href="http://www.citrin.ch">at the company where I work</a> and we wanted a free open source blogger we could offer our customers. So to learn Wordpress I just moved my blog.. It was a bunch of work, the import of the posts was easy, but then to style up the site and integrate <a href="http://www.pui.ch/phred/tools/">my tools</a> (if you care: I created a <a href="http://codex.wordpress.org/Pages#Pages_can_use_Different_Templates">separate page template for these pages</a>, then in the post I put just the url of the <a href="http://www.php.net">PHP</a> script I wanted to call and in the page template I did an <code>include</code> of that particular script) was a bunch of work..<br />
<span id="more-27"></span><br />
Advantages of wordpress:</p>
<ul>
<li>it is PHP. I am much more familiar with PHP than with perl</li>
<li>it is more &#8220;community spirited&#8221;. The <a href="http://codex.wordpress.org">documentation</a> is a wiki site. I hope there will be many plugins and stuff in the future</li>
<li>I think it&#8217;s better structured. I have not yet looked at the code but just from using this it feels more logic (that is: to me, a web application programmer.. :-)</li>
<li>I can manage my pages (as my <a href="http://www.pui.ch/phred/about/">about</a> and <a href="http://www.pui.ch/phred/creation/">creations</a> page). With Movabletype I hacked the blog into some wrapper just to include my static pages. Now with wordpress managing this pages I can have comments on these pages too and I can alter them from the webfrontend.</li>
<li>Adding a post into multiple categories is much faster than in Movabletype. And I need multiple categories desperately (at least three per post..)</li>
<li>I have &#8220;edit&#8221; links to every post also in the frontend. That helps a lot.</li>
<li>The posts seem to be valid HTML automatically. In MT I had problems all the time to keep my pages valid HTML</li>
</ul>
<p>Disadvantages of wordpress:</p>
<ul>
<li>I cannot have static html pages. I miss that quite much.</li>
<li>The user interface is not as polished as in Movabletype. Deleting multiple post or just altering a post and watching the frontend doesn&#8217;t run as smooth as in MT.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pui.ch/phred/archives/2005/03/my-home-is-now-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment Spam, update III</title>
		<link>http://www.pui.ch/phred/archives/2005/03/comment_spam_up_2.html</link>
		<comments>http://www.pui.ch/phred/archives/2005/03/comment_spam_up_2.html#comments</comments>
		<pubDate>Thu, 10 Mar 2005 12:27:41 +0000</pubDate>
		<dc:creator>Philipp Keller</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://www.pui.ch/home/?p=17</guid>
		<description><![CDATA[On my &#8220;recent&#8221; two entries about comment spam I stated the actions I wanted to take against the comment spam.
The solution, at the moment:

Changed the position of my comment-script (as suggested). Resulting to that actionIn the last two months I had 47 error hits (404) on /mt/mt-comments.cgi. That means that this action prevented 47 spams
Installed [...]]]></description>
			<content:encoded><![CDATA[<p>On my &#8220;recent&#8221; <a href="http://www.pui.ch/phred/archives/2005/02/comment_spam_up.html">two</a> <a href="http://www.pui.ch/phred/archives/2005/02/comment_spam_up_1.html">entries</a> about comment spam I stated the actions I wanted to take against the comment spam.<br />
The solution, at the moment:</p>
<ul>
<li>Changed the position of my comment-script (<a href="http://sixapart.com/pronet/comment_spam.html#commentscript">as suggested</a>). Resulting to that actionIn the last two months I had 47 error hits (404) on /mt/mt-comments.cgi. That means that this action prevented 47 spams</li>
<li>Installed <a href="http://bradchoate.com/weblog/2004/11/05/mt-dsbl">Brad Choates MTDSBL Plugin</a>. Since this plugin deletes comments coming from not trustworthy ips (that is: open proxies), I don&#8217;t have statistic info on that. </li>
<li>Installed <a href="http://www.jayallen.org/projects/mt-blacklist/">Jay Allens MT-Blacklist</a>. And this plugin finally saves my days:<br />
<img alt="blacklist_statistic.png" src="http://www.pui.ch/phred/archives/blacklist_statistic.png" width="255" height="243" /><br />
Of the over 500 comment spams, 60 comments have been moderated because they contain too many links, I had to &#8220;despam&#8221; them (updates sent to the central MT-Blacklist server). On the first days, I had to despam quite a few comments but in the last two weeks, just one comment-spam wave hit me. About 3 comments finally came &#8220;through&#8221; so they appeared on my page.
</li>
</ul>
<p>So, in the end, I am content with these three techniques working together. Ok, I have to admit that I rather have any comments on my sites (3 so far) so the best action would have been to block all comments :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pui.ch/phred/archives/2005/03/comment_spam_up_2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment Spam, update II</title>
		<link>http://www.pui.ch/phred/archives/2005/02/comment_spam_up_1.html</link>
		<comments>http://www.pui.ch/phred/archives/2005/02/comment_spam_up_1.html#comments</comments>
		<pubDate>Sat, 05 Feb 2005 10:27:44 +0000</pubDate>
		<dc:creator>Philipp Keller</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://www.pui.ch/home/?p=13</guid>
		<description><![CDATA[Still in battle to fight my comment spam. See my previous posts on that subject.
The movable type plugin from Brad Choate did just half the work. Interestingly it just blocked half the spams. After each non-approved spam, the spammer sent another spam through a non-blacklisted relay.. :-) In a way fighting this is fun, but [...]]]></description>
			<content:encoded><![CDATA[<p>Still in battle to fight my comment spam. See my <a href="http://www.pui.ch/phred/archives/2005/02/link_spammers_h.html">previous</a> <a href="http://www.pui.ch/phred/archives/2005/02/comment_spam_up.html">posts</a> on that subject.<br />
The <a href="http://bradchoate.com/weblog/2004/11/05/mt-dsbl">movable type plugin from Brad Choate</a> did just half the work. Interestingly it just blocked half the spams. After each non-approved spam, the spammer sent another spam through a non-blacklisted relay.. :-) In a way fighting this is fun, but in a way I&#8217;d like to do more serious things!</p>
<p>I now installed <a href="http://www.jayallen.org/projects/mt-blacklist/">Jay Allens MT-Blacklist</a> and it looks promising. It also fights trackback pings and since trackback ping spamming hits me since yesterday, I&#8217;m looking quite forward to see this movabletype-blacklist-plugin doing some good work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pui.ch/phred/archives/2005/02/comment_spam_up_1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment Spam, update I</title>
		<link>http://www.pui.ch/phred/archives/2005/02/comment_spam_up.html</link>
		<comments>http://www.pui.ch/phred/archives/2005/02/comment_spam_up.html#comments</comments>
		<pubDate>Fri, 04 Feb 2005 12:30:34 +0000</pubDate>
		<dc:creator>Philipp Keller</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://www.pui.ch/home/?p=12</guid>
		<description><![CDATA[This is an update of my previous link-spammer-entry.
Since renaming the comment-script-filename doesn&#8217;t really do it (well, in a way I expected that), I installed Brad Choates MT-DSBL Movable Type plugin (very very easy to install). It seems to work since I tested to add a comment via anonymizer (a free anonymizer proxy) and the comment [...]]]></description>
			<content:encoded><![CDATA[<p>This is an update of my previous <a href="http://www.pui.ch/phred/archives/2005/02/link_spammers_h.html">link-spammer-entry</a>.</p>
<p>Since renaming the comment-script-filename doesn&#8217;t really do it (well, in a way I expected that), I installed <a href="http://bradchoate.com/weblog/2004/11/05/mt-dsbl">Brad Choates MT-DSBL Movable Type plugin</a> (very very easy to install). It seems to work since I tested to add a comment via <a href="http://www.anonymizer.com/">anonymizer (a free anonymizer proxy)</a> and the comment is set for moderation now..</p>
<p>P.S: There has been set up a <a href="http://nonofollow.net/">domain&#038;website for anti-nofollow enthusiast</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pui.ch/phred/archives/2005/02/comment_spam_up.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up PhotoBlogs: MTEmbedImage</title>
		<link>http://www.pui.ch/phred/archives/2005/01/setting_up_phot.html</link>
		<comments>http://www.pui.ch/phred/archives/2005/01/setting_up_phot.html#comments</comments>
		<pubDate>Tue, 11 Jan 2005 14:11:46 +0000</pubDate>
		<dc:creator>Philipp Keller</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.pui.ch/home/?p=5</guid>
		<description><![CDATA[Ok, I&#8217;ve spent several hours to get MTEmbedImage (a thumbnail tool for Movabletype)  working, so I thought I&#8217;ll share it with the world.
The stumbling blocks were these:

The basename of MTEmbedImage is from the Movabletype directory, and not from the blog (like someone stated in the comments of MTEmbedImage)
When I copy-pasted some code into the [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, I&#8217;ve spent several hours to get <a href="http://www.bradchoate.com/weblog/2002/08/07/mtembedimage">MTEmbedImage (a thumbnail tool for Movabletype)</a>  working, so I thought I&#8217;ll share it with the world.</p>
<p>The stumbling blocks were these:</p>
<ul>
<li>The basename of MTEmbedImage is from the Movabletype directory, and <em>not</em> from the blog (like someone stated in the comments of MTEmbedImage)</li>
<li>When I copy-pasted some code into the textarea of Movabletype, then it ended up utf8-encoded. I just saw this when I copy-pasted it into my <a href="http://www.nedit.org/">editor</a> to write an email concerning this plugin that didn&#8217;t work..</li>
</ul>
<p><span id="more-5"></span><br />
Finally, here is my code:</p>
<blockquote><p><code><br />
&lt;div class="photo"&gt;<br />
&lt;MTEmbedImage basename="../photos/archives/[MTEntryExcerpt].jpg"<br />
                 default="default" height="160" thumbsuffix="-160"&gt;<br />
  &lt;a href="&lt;$MTEntryPermalink valid_html="1"$&gt;" class="noborder"&gt;<br />
    &lt;img src="/mt/&lt;MTEmbedImageThumbFilename&gt;" alt="&lt;$MTEntryTitle$&gt;"<br />
         height="&lt;MTEmbedImageThumbHeight&gt;" width="&lt;MTEmbedImageThumbWidth&gt;" /&gt;<br />
  &lt;/a&gt;<br />
&lt;/MTEmbedImage&gt;<br />
&lt;/div&gt;<br />
</code>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.pui.ch/phred/archives/2005/01/setting_up_phot.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>New home, with blog</title>
		<link>http://www.pui.ch/phred/archives/2004/12/new_home.html</link>
		<comments>http://www.pui.ch/phred/archives/2004/12/new_home.html#comments</comments>
		<pubDate>Fri, 03 Dec 2004 12:39:33 +0000</pubDate>
		<dc:creator>Philipp Keller</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.pui.ch/home/?p=2</guid>
		<description><![CDATA[This is my new Homepage now. You know, for a webcentered guy like me that is something..! For a long time I resisted that blog movement thingie. I thought these are all people that don&#8217;t have real life friends but want to express their feelings and thus they are doing this via the web.
It took [...]]]></description>
			<content:encoded><![CDATA[<p>This is my new Homepage now. You know, for a webcentered guy like me that <strong>is</strong> something..! For a long time I resisted that blog movement thingie. I thought these are all <a href="http://www.pouet.net/topic..php?which=938">people</a> that don&#8217;t have real life friends but want to express their feelings and thus they are doing this via the web.<br />
It took a while to appreciate that new form of information flow.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pui.ch/phred/archives/2004/12/new_home.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
