<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pyblosxom · I still don't have a title</title><link>https://oskuro.net/en/tags/pyblosxom/</link><description>Jordi's random rants</description><generator>Hugo</generator><language>en</language><copyright>© Jordi Mallach, CC-BY-SA 3.0</copyright><lastBuildDate>Fri, 13 Jun 2008 16:24:00 +0000</lastBuildDate><atom:link href="https://oskuro.net/en/tags/pyblosxom/index.xml" rel="self" type="application/rss+xml"/><item><title>Upgrade to PyBlosxom 1.4.3</title><link>https://oskuro.net/en/posts/pyblosxom-1.4.3/</link><pubDate>Fri, 13 Jun 2008 16:24:00 +0000</pubDate><guid>https://oskuro.net/en/posts/pyblosxom-1.4.3/</guid><category>site</category><category>meta</category><category>pyblosxom</category><description>&lt;p&gt;This week I spent some time upgrading &lt;a href="http://pyblosxom.sourceforge.net/"&gt;PyBlosxom&lt;/a&gt; to version 1.4.3. I was still using 1.2, which probably was insecure and buggy. This is the first step in a bigger plan to replace Apache2 with &lt;a href="http://nginx.net/"&gt;nginx&lt;/a&gt; in this server, but that will come later.&lt;/p&gt;
&lt;p&gt;I was lucky to find PyBlosxom&amp;rsquo;s author, &lt;a href="http://www.bluesock.org/~willg/"&gt;Will&lt;/a&gt;, on IRC at the right time, who kindly answered a few questions and helped solve a few issues with the comments plugin and flavours. So, after a while, I had fixed a few subtle, 4 year old bugs in my XHTML templates and more notably, fixed lots of small bits in the rss feed, which finally makes Liferea and &lt;a href="http://advogato.org/"&gt;Advogato&lt;/a&gt; like my entries.&lt;/p&gt;
&lt;p&gt;But, the biggest achievement was getting a brand new &lt;code&gt;comments.py&lt;/code&gt; plugin from Will, which allows to close comments on entries after an expiration date. So, even if I was happily using &lt;a href="http://mako.cc/"&gt;Mako&lt;/a&gt;&amp;rsquo;s Akismet plugin, I still was getting 5 or 6 spams each day on very old entries (favourites being one about &lt;a href="https://oskuro.net/en/posts/alonso-2007"&gt;Alonso visiting València&lt;/a&gt; and one remembering the &lt;a href="https://oskuro.net/en/posts/seventieth-anniversary-spanish-war"&gt;70&lt;sup&gt;th&lt;/sup&gt; anniversary of the Spanish Civil War&lt;/a&gt;). Well, not any longer.&lt;/p&gt;
&lt;p&gt;My dear spammers, you can now go pester someone else, or pick new entries pretty quickly before they get closed down. It&amp;rsquo;s been a nice fight, but it&amp;rsquo;s a good time to wish you go away and fuck off. With love, Jordi.&lt;/p&gt;
&lt;p&gt;Thank you, Will!&lt;/p&gt;</description></item><item><title>Comments upgrade</title><link>https://oskuro.net/en/posts/comments-upgrade/</link><pubDate>Tue, 14 Jun 2005 18:14:00 +0000</pubDate><guid>https://oskuro.net/en/posts/comments-upgrade/</guid><category>site</category><category>meta</category><category>pyblosxom</category><description>&lt;p&gt;I just upgraded the &lt;code&gt;comments&lt;/code&gt; plugin from the PyBlosxom contrib prerelease distribution. You should not find tracebacks so easily in this blog now, and actually submitting comments without an email address won&amp;rsquo;t break it badly anymore. Thanks for the pointer, &lt;a href="http://bluesock.org/~willg/blog/"&gt;will&lt;/a&gt;!&lt;/p&gt;</description></item><item><title>Upgrade to pyblosxom 1.2</title><link>https://oskuro.net/en/posts/pyblosxom-1.2/</link><pubDate>Tue, 24 May 2005 19:47:00 +0000</pubDate><guid>https://oskuro.net/en/posts/pyblosxom-1.2/</guid><category>site</category><category>meta</category><category>pyblosxom</category><description>&lt;p&gt;Today, being on vacation and with little fun stuff to do, I decided to have a look at my old blog spam problem. Lately, I had been using a poor-man&amp;rsquo;s spam cleaner for the comment spams, consisting on combining find, grep with an always growing list of forbidden patterns, and rm. This worked well for some time, and the spam problem was a minor annoyance now: I just had to check for non-removed entries every now and then and add those patterns to the regexp.&lt;/p&gt;
&lt;p&gt;Yesterday I found out I had something like 3.000 new comments, so I thought my cheap system was broken and it hadn&amp;rsquo;t deleted anything in many days. Nope, it was working correctly according to the logs, but everytime it ran it deleted something like 100 files or so. After adding the missing patterns and deleting the thousands of new files, I observed my webserver logs with &lt;code&gt;tail -f&lt;/code&gt; for a moment and found I was getting one new comment every two seconds or so. WTF?! Are they generally getting this aggresive everywhere, or is this dude just pissed about my site? I hope the mail to the corresponding abuse@ address works.&lt;/p&gt;
&lt;p&gt;As they submitted them quicker than the slow CPU could delete them, I removed comments temporarily, and looked at installing &lt;a href="http://pyblosxom.sourceforge.net/"&gt;PyBlosxom&lt;/a&gt; 1.2, as people had told me there&amp;rsquo;s improvements against spam in this release.&lt;/p&gt;
&lt;p&gt;This site is now running 1.2, but I see nothing spam-oriented in the new comments plugin. Does anyone know what the Nice Way of blocking spam in PyBlosxom is, that is not too expensive CPU-wise? Comments should be working right now.&lt;/p&gt;
&lt;p&gt;On another note, the site is crawling today because of the two triathlon pics I posted earlier, which are making people hit MaxClients quite fast.&lt;/p&gt;</description></item><item><title>A few suggestions to parasites</title><link>https://oskuro.net/en/posts/spammer-parasites/</link><pubDate>Fri, 11 Feb 2005 10:40:00 +0000</pubDate><guid>https://oskuro.net/en/posts/spammer-parasites/</guid><category>site</category><category>meta</category><category>pyblosxom</category><category>spam</category><description>&lt;p&gt;Dear assholes,&lt;/p&gt;
&lt;p&gt;If you plan to take advantage of my blog to rank your shitty pharmacy webpage high on Google, take the following into consideration:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;if you hit my poor Pentium 150 with hundreds of stupid HTTP requests to my blog, at least do it a few at a time during the day. Your referral stats pointing to your pharmacy shit will still show up (in the case that the blog stats are public, and in my case they aren&amp;rsquo;t), and you will not kill the box in about 15 minutes like you did 3 times in the last two days.&lt;/li&gt;
&lt;li&gt;if you kill my box, Google won&amp;rsquo;t be able to do its fine job and we&amp;rsquo;ll both lose.&lt;/li&gt;
&lt;li&gt;at least, point to an existing website.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks for considering a symbiotic relationship in the future.&lt;/p&gt;
&lt;p&gt;So the bastards did it again yesterday, and this time I had to drive to where the box is located and see what was going on in console. As expected, OOM killer fun, and by no means I could recover it, even after taking it off the network and trying to SysRQ it a bit.&lt;/p&gt;
&lt;p&gt;It seems the spammers are trying to take advantage of referral stats now, and hit sites with tons of requests. Every request to /blog in this site means a not so cheap python process which takes quite some memory, which is a scarce resource in poor &lt;code&gt;natura.oskuro.net&lt;/code&gt;. With just a few blog processes going on, the box starts swapping to its death.&lt;/p&gt;
&lt;p&gt;I know, I should add limits to my Apache2 configuration, and possibly pyblosxom caches. For now, stopping spamd has helped a bit, as that process only was sucking ~35% of the memory.&lt;/p&gt;</description></item><item><title>Note to self...</title><link>https://oskuro.net/en/posts/comment-breakage/</link><pubDate>Tue, 29 Jun 2004 12:08:00 +0000</pubDate><guid>https://oskuro.net/en/posts/comment-breakage/</guid><category>site</category><category>meta</category><category>pyblosxom</category><description>&lt;p&gt;If you &lt;a href="https://oskuro.net/en/posts/pyblosxom-xhtml"&gt;ask for comments&lt;/a&gt;, make sure your comment system doesn&amp;rsquo;t break. I hadn&amp;rsquo;t noticed the permission problems after moving the cgi to /var. It&amp;rsquo;s fixed now&amp;hellip; sorry about that, folks.&lt;/p&gt;
&lt;p&gt;In the meanwhile, &lt;a href="http://www.burtonini.com/"&gt;Ross&lt;/a&gt; and I agreed on IRC that suffixes are bad, and I got rid of them entirely. He also told me about the &lt;span class="kbd"&gt;py[&amp;lsquo;defaultFlavour&amp;rsquo;]&lt;/span&gt; config option, which I hand&amp;rsquo;t found, everything is ok now (well, except for the content_type vs. IE problem which I still need suggestions for).&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Update&lt;/em&gt;: James pointed me at a &lt;a href="http://diveintomark.org/archives/2003/08/15/slugs"&gt;nice post&lt;/a&gt; on blog URLs.&lt;/p&gt;</description></item><item><title>PyBlosxom and XHTML</title><link>https://oskuro.net/en/posts/pyblosxom-xhtml/</link><pubDate>Mon, 28 Jun 2004 20:32:00 +0000</pubDate><guid>https://oskuro.net/en/posts/pyblosxom-xhtml/</guid><category>site</category><category>meta</category><category>pyblosxom</category><description>&lt;p&gt;As I said in a &lt;a href="https://oskuro.net/en/posts/css"&gt;previous post&lt;/a&gt;, I spent some time cleaning up my &lt;a href="http://roughingit.subtlehints.net/pyblosxom/"&gt;PyBlosxom&lt;/a&gt; flavour to make it XHTML 1.1 compliant. I also decided to start using my vanity domain a bit better, and moved the blog to the webserver&amp;rsquo;s &lt;a href="https://oskuro.net/en/"&gt;rootdir&lt;/a&gt;. In order to maintain backwards compatibility and not break a lot of links to my blog out there, I installed a Redirect rule so calls to the old dir look at the new dir, and that seems to work.&lt;/p&gt;
&lt;p&gt;The main problem is now that I&amp;rsquo;m not too sure about how to solve the &lt;span class="kbd"&gt;application/xhtml+xml&lt;/span&gt; problem with Internet Explorer. The mod_rewrite rules &lt;a href="http://www.spacelabs.nl/about/"&gt;sjoerd&lt;/a&gt; and &lt;a href="http://blog.clearairturbulence.org/"&gt;thom&lt;/a&gt; shared don&amp;rsquo;t work too well for pyblosxom:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;RewriteEngine On
RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml
RewriteCond %{REQUEST_URI} \.xhtml$
RewriteRule .* - &amp;quot;[T=text/html]&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It&amp;rsquo;s easy to have URLs like /blog/2004/Jun/28, and if I understand correctly, the Redirect won&amp;rsquo;t work with this type of URLs. I also don&amp;rsquo;t know if it&amp;rsquo;s possible to make &amp;ldquo;xhtml&amp;rdquo; the default flavour in pyblosxom, instead of &amp;ldquo;html&amp;rdquo;. I&amp;rsquo;m actually not sure if the permalink for this entry &amp;ldquo;should&amp;rdquo; end up with .html, .xhtml, or no suffix at all. Suggestions welcome. :)&lt;/p&gt;</description></item><item><title>Upgraded to pyblosxom 1.0.0</title><link>https://oskuro.net/en/posts/pyblosxom-1.0/</link><pubDate>Fri, 11 Jun 2004 00:00:00 +0000</pubDate><guid>https://oskuro.net/en/posts/pyblosxom-1.0/</guid><category>site</category><category>meta</category><category>pyblosxom</category><description>&lt;p&gt;This afternoon I spent some time upgrading pyblosxom to version 1.0.0.&lt;/p&gt;
&lt;p&gt;I had been using the Debian package, which had 0.8.1&amp;hellip; &lt;em&gt;in experimental&lt;/em&gt;&amp;hellip; the package in unstable is still at 0.7.x. I obviously grabbed the tarball and installed it in /usr/local. After the upgrade, it seems the rss generator has become a lot more picky, and would choke in the dozen HTML small errors that I had all over my blog posts. &lt;a href="http://www.debianslashrules.org/"&gt;Omnic&lt;/a&gt; noticed my posts were empty in &lt;a href="http://planet.debian.net/"&gt;Planet Debian&lt;/a&gt; just as I was closing terminals in preparation for heading to bed. It should be ok now.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ll probably start writing a new style sheet for the entire web tomorrow, and think about moving the whole blog to the topdir of my webserver, as I really have no other uses for it.&lt;/p&gt;</description></item><item><title>Blog spam: nothing new...</title><link>https://oskuro.net/en/posts/blog-spam2/</link><pubDate>Thu, 10 Jun 2004 14:52:00 +0000</pubDate><guid>https://oskuro.net/en/posts/blog-spam2/</guid><category>site</category><category>meta</category><category>pyblosxom</category><category>spam</category><description>&lt;p&gt;Thanks to all the people who replied to my &lt;a href="https://oskuro.net/en/posts/blog-spam"&gt;previous post&lt;/a&gt; on blog spam. It&amp;rsquo;s obviously not new, and it seems MT users have been hit quite &lt;a href="http://www.veazeys.com/cgi-bin/mt-comments.cgi?entry_id=88"&gt;badly&lt;/a&gt; by this. I guess removing links from comments is the first, quick step, but some kind of URL filter for the comment module in pyblosxom would be handy. Has anyone hacked something similar?&lt;/p&gt;
&lt;p&gt;Just an extension that lets you create a blacklist of URLs would be a start, as the spammer URLS are always the same. They do know about some anti-anti-spam techniques though, and for example write &amp;ldquo;online casino&amp;rdquo; as &amp;ldquo;on&amp;amp;#108;ine-cas&amp;amp;#105;no&amp;rdquo;, so to read links they should be rendered first.&lt;/p&gt;</description></item><item><title>Blog spam</title><link>https://oskuro.net/en/posts/blog-spam/</link><pubDate>Wed, 09 Jun 2004 16:54:00 +0000</pubDate><guid>https://oskuro.net/en/posts/blog-spam/</guid><category>site</category><category>meta</category><category>pyblosxom</category><category>spam</category><description>&lt;p&gt;The other day I found one comment in one of my blog&amp;rsquo;s posts which sounded weird. It said &amp;ldquo;HI, Wow.. this is a very informative website! I enjoy your site very much! Keep up the good work!&amp;rdquo; or similar. The author name linked to what looked like a pretty boring personal website. Yesterday I discovered most of my blog posts have one or more of these messages. What the fuck, they are spamming me through my blog! They basically write random nonsense like that, and add a link to an online-casino or whatever in the link you can leave as signature in pyblosxom.&lt;/p&gt;
&lt;p&gt;Has anyone else had problems like this in their blogs? If it continues, it&amp;rsquo;ll be easy to fix: I will just remove the comments module from my install and be done with it. Thanks to those who post useful stuff every now and then, though. It&amp;rsquo;s nice to read replies to some of my posts.&lt;/p&gt;</description></item><item><title>Yet Another Blog® is born</title><link>https://oskuro.net/en/posts/yab/</link><pubDate>Sat, 03 Jan 2004 20:35:00 +0000</pubDate><guid>https://oskuro.net/en/posts/yab/</guid><category>site</category><category>meta</category><category>pyblosxom</category><description>&lt;p&gt;Yes, I had been procrastinating about doing this for a looong time already, but never sat down to do it, basically because I didn&amp;rsquo;t know what software I should use, or anything.&lt;/p&gt;
&lt;p&gt;I have been an &lt;a href="http://advogato.org/"&gt;Advogato&lt;/a&gt; user before, but gradually stopped posting there, even if I liked participating in that community. Now, with Keybuk very recently opening &lt;a href="http://people.debian.org/~keybuk/planetdebian/"&gt;PlanetDebian&lt;/a&gt;, IRC appears to be full of people that just stopped procrastinating about building their own blog, so here I am.&lt;/p&gt;
&lt;p&gt;Of course, this site needs a lot of work, and it&amp;rsquo;ll get there, but for now it&amp;rsquo;ll be using the simple 1993 look that comes with the pyblosxom Debian package. Pyblosxom is quite neat, I must say!&lt;/p&gt;
&lt;p&gt;I plan talking about my Debian &amp;amp; GNOME stuff here, and hopefully less about my triathlon stuff. For that, I tend to use my Drupal-based blog at &lt;a href="http://triatlo.uv.es/"&gt;my team&amp;rsquo;s website&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>