<?xml version="1.0" encoding="iso-8859-15"?>
<!-- generator="Kukkaisvoima version 9-pr0.1" -->
<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/"
>
<channel>
<title>datensal.at: Weblog</title>
<link>http://datensal.at/index.cgi</link>
<description>Jee</description>
<pubDate>Sat, 09 Jan 2010 19:51:57 +0200</pubDate>
<lastBuildDate>Sat, 09 Jan 2010 19:51:57 +0200</lastBuildDate>
<generator>http://23.fi/kukkaisvoima/</generator>
<language>en</language>
<item>
<title>More Weblog Features
</title>
<link>http://datensal.at/index.cgi/morekukkafeatures%3A2010-01-09%3ASoftware%2CWeblog</link>
<comments>http://datensal.at/index.cgi/morekukkafeatures%3A2010-01-09%3ASoftware%2CWeblog#comments</comments>
<pubDate>Sat, 09 Jan 2010 19:51:57 +0200</pubDate>
<dc:creator>Juergen</dc:creator>
<category>Software</category>
<category>Weblog</category>
<guid isPermaLink="false">http://datensal.at/index.cgi/morekukkafeatures%3A2010-01-09%3ASoftware%2CWeblog/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<div align="justify">There wasn't much publishing going on here since I switched from <a href="http://drupal.org/" target="_blank">Drupal</a>  to python-based <a href="http://23.fi/kukkaisvoima" target="_blank">Kukkaisvoima</a>. On one hand that was because of a new job situation. Just didn't have the time to write alot. On the other hand I still wasn't satisfied by the security (anti-spam) mechanisms offered by the minimalistic software. So, during the holidays I started enhancing this thing a little with a sweet anti-spam mechanism based on <img src="http://datensal.at/cgi-bin/mimetex.cgi?\LaTeX"> respectively <a href="http://www.forkosh.dreamhost.com/source_mimetex.html" target="_blank">mimetex</a> (I hope you like math! :)). <br/>
Today I finished the second feature which you can see on the right: the microblog badge. It fetches my <a href="http://identi.ca/" target="_blank">identi.ca</a> statuses via <a href="http://status.net/" target="_blank">status.net</a> api using the command line microblogging client <a href="http://code.google.com/p/pytwerp/" target="_blank">pyTwerp</a> written in Python. Since it is developed for output to <b>stdout</b> no HTML is generated. Hence no hyperlinks to users, tags, groups and other locations are formatted. So, I had to refresh my regular expression skills to make the hyperlinks show up. To integrate the script into the blog layout I used the example code snippet of Michael Gangolf's PHP-based <a href="http://migaweb.de/laconica/" target="_blank">laconi.ca badge</a>. Two into one... badge done!<br />
I guess from now on there aren't any more serious reasons to excuse the low frequent blog post situation here... poor me!
</div><br/ > ]]></content:encoded>
<wfw:commentRss>http://datensal.at/index.cgi/morekukkafeatures%3A2010-01-09%3ASoftware%2CWeblog/feed/</wfw:commentRss>
</item>
<item>
<title>Photoblog
</title>
<link>http://datensal.at/index.cgi/photoblog%3A2009-09-29%3ASoftware%2CWeblog</link>
<comments>http://datensal.at/index.cgi/photoblog%3A2009-09-29%3ASoftware%2CWeblog#comments</comments>
<pubDate>Tue, 29 Sep 2009 12:49:19 +0200</pubDate>
<dc:creator>Juergen</dc:creator>
<category>Software</category>
<category>Weblog</category>
<guid isPermaLink="false">http://datensal.at/index.cgi/photoblog%3A2009-09-29%3ASoftware%2CWeblog/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<div align="justify">Finally I started my own photoblog at <a href="http://gelbersprudel.de/" target="_blank">gelbersprudel.de</a> after having found this neat software named "<a href="http://www.pixelpost.org/" target="_blank">pixelpost</a>". <br/>
I'm gonna publish the best shots I took over a longer period. I still consider myself as a bloody beginner concerning photography so I'm looking forward to constructive criticism. 
<a href="http://gelbersprudel.de/" target="_blank">Check it out</a> every once in a while. :)</div><br/> ]]></content:encoded>
<wfw:commentRss>http://datensal.at/index.cgi/photoblog%3A2009-09-29%3ASoftware%2CWeblog/feed/</wfw:commentRss>
</item>
<item>
<title>Weightloss... the Python Style - New Blog Software
</title>
<link>http://datensal.at/index.cgi/kukkaisvoima%3A2009-09-25%3ASoftware%2CWeblog</link>
<comments>http://datensal.at/index.cgi/kukkaisvoima%3A2009-09-25%3ASoftware%2CWeblog#comments</comments>
<pubDate>Fri, 25 Sep 2009 15:34:33 +0200</pubDate>
<dc:creator>Juergen</dc:creator>
<category>Software</category>
<category>Weblog</category>
<guid isPermaLink="false">http://datensal.at/index.cgi/kukkaisvoima%3A2009-09-25%3ASoftware%2CWeblog/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<div align="justify">It's done! My weblog is completely ported to the new blog software.<br/>
Under the hood a minimalistic lightning-fast python script with the tongue twisting name <a href="http://23.fi/kukkaisvoima" target="_blank">Kukkaisvoima</a> is doing a fantastic job now.<br/>
While my former choice <a href="http://drupal.org" target="_blank">Drupal</a> came with about 500 files in the default installation Kukkaisvoima consists of just one file. Yes right.. just ONE! And believe me, it isn't packed with 2 millions lines of code (roughly 1000 lines after my modifications!). I wasn't happy with Drupal anymore since it usually took a whole while until some html code was rendered in the browser. It just felt too sluggish for a simple weblog like mine. Though <a href="http://wordpress.org" target="_blank">Wordpress</a> wasn't an option in my opinion. Since everybody uses it the effort put into hacking that software is humongous and I already did my experiences concerning hacked root servers misused as bot drones.<br/>
I'm happy with the new minimalism so I'm writing this article in my favorite text editor <a href="http://kate-editor.org" target="_blank">Kate</a> saving it as a simple text file and uploading it to the scripts data directory. Done! No database, no HTML form editor.<br/>
Anyway, the original software was a little too minimalistic for my taste. So I modified the python sourcecode to make it meet my demands. I wanted to have the opportunity to create static sites that don't show up in the article and category list. In addition to that I tried to port the beautiful Wordpress Theme <a href="http://wpthemes.info/misty-look/" target="_blank">Misty Look</a> which worked not that bad. Though I had to modify the script again since functionality and layout isn't seperated that well. Not even talking of the CSS work that had to be done (I kinda hate that). After some code cosmetics I'm gonna publish the modified source code and the Misty Look Stylesheet file on this site. So be patient.<br/><br/>
Oh, and as you may have figured out at this point I'm partly writing english from now on. Similar to my decision to micro-blog bilingual I'm gonna do that here as well. Germany-related topics are still gonna be posted in german though as well as some more complex ones that are just too tough (for me) to translate into english.</div><br/>

]]></content:encoded>
<wfw:commentRss>http://datensal.at/index.cgi/kukkaisvoima%3A2009-09-25%3ASoftware%2CWeblog/feed/</wfw:commentRss>
</item>
<item>
<title>Neues Gewand
</title>
<link>http://datensal.at/index.cgi/neuesgewand%3A2009-08-23%3ANetzkultur%2CWeblog</link>
<comments>http://datensal.at/index.cgi/neuesgewand%3A2009-08-23%3ANetzkultur%2CWeblog#comments</comments>
<pubDate>Sun, 23 Aug 2009 13:03:08 +0200</pubDate>
<dc:creator>Juergen</dc:creator>
<category>Netzkultur</category>
<category>Weblog</category>
<guid isPermaLink="false">http://datensal.at/index.cgi/neuesgewand%3A2009-08-23%3ANetzkultur%2CWeblog/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<div align="justify">Habe dem Blog mal ein minimalistischeres &Auml;u&szlig;eres verpasst. Zuviel Design liegt einfach zu schwer auf der Netzhaut.
<br/>Hmmm... das h&auml;tte jetzt eigentlich auch in einen <a href="http://identi.ca/datensalat" target="_blank">dent</a> gepasst. 
Verdammt, <a href="http://de.wikipedia.org/wiki/Mikro-Blogging" target="_blank">Microblogging</a> pr&auml;gt die Informationsaufbereitung mehr, als man denkt. =)</div> ]]></content:encoded>
<wfw:commentRss>http://datensal.at/index.cgi/neuesgewand%3A2009-08-23%3ANetzkultur%2CWeblog/feed/</wfw:commentRss>
</item>
<item>
<title>Drupal Kategorien mit Anzahl enthaltener Artikel als Liste ausgeben
</title>
<link>http://datensal.at/index.cgi/drupalkategorien%3A2008-10-18%3ACode%2CSoftware%2CWeblog</link>
<comments>http://datensal.at/index.cgi/drupalkategorien%3A2008-10-18%3ACode%2CSoftware%2CWeblog#comments</comments>
<pubDate>Sat, 18 Oct 2008 13:03:08 +0200</pubDate>
<dc:creator>Juergen</dc:creator>
<category>Code</category>
<category>Software</category>
<category>Weblog</category>
<guid isPermaLink="false">http://datensal.at/index.cgi/drupalkategorien%3A2008-10-18%3ACode%2CSoftware%2CWeblog/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<div align="justify">Weblogs bestehen f&uuml;r gew&ouml;hnlich, unabh&auml;ngig von ihrem durch verschiendenste Templates angepassten Layout, aus folgenden grundlegenden Komponenten: Einem Hauptmen&uuml; mit der groben Struktur des Weblogs (Home, Impressum, Kontakt etc.), der Kategorienliste, dem Archiv, eventuell einer Tag-Cloud und nat&uuml;rlich dem Hauptbereich, in dem die Artikel gelistet werden. Bei expliziter Blog-Software wie <a href="http://www.wordpress.org/" target="_blank">Wordpress</a> oder <a href="http://s9y.org/" target="_blank">Serendipity</a> mu&szlig; man sich um das Vorhandensein bzw. die Darstellung dieser Komponenten in der Regel keine Sorgen machen. 
<p><a href="http://drupal.org" target="_blank">Drupal</a> ist jedoch ein ausgewachsenes Content Management System (CMS), mit einer ganz eigenen Philosophie bez&uuml;glich der Strukturierung und Organisation. Das sogenannte <a href="http://drupal.org/node/299" target="_blank">Taxonomie</a>-System ist ein m&auml;chtiges, zentrales Konstrukt, das schier unbegrenzte Flexibilit&auml;t gew&auml;hrleistet. Auch ein Weblog l&auml;sst sich mit Drupal relativ einfach durch das Aktivieren eines Moduls realisieren. Jedoch fehlt zun&auml;chst die M&ouml;glichkeit, mit einem Klick einen Block ins Layout zu zaubern, der die definierten Kategorien ausgibt. Hierzu liefert aber das Taxonomie-System die n&ouml;tige Funktionalit&auml;t. </p>
<p>Mit Hilfe des <a href="http://www.tobiasbaehr.de/artikel/wie-kann-ich-eine-einfache-liste-der-begriffe-eines-vokabulars-ausgeben" target="_blank">Mini-Tutorials</a> von Tobias B&auml;hr, habe ich mir zun&auml;chst eine Liste meines Kategorien-Vokabulars erstellen lassen. Da ich noch die Anzahl der mit der jeweiligen Kategorie verkn&uuml;pften Artikel ausgeben lassen wollte, habe ich Tobias' Code-Snippet noch um die Funktion <a href="http://api.drupal.org/api/function/taxonomy_term_count_nodes/6" target="_blank"><strong>taxonomy_term_count_nodes($tid)</strong></a> erg&auml;nzt:<br />
<div class="geshifilter"><pre class="php geshifilter-php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$vid</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">2</span>; <span style="color: #666666; font-style: italic;">/* &lt;---- hier kommt die Vokabular-ID hin */</span>
<span style="color: #000088;">$terms</span> <span style="color: #339933;">=</span> taxonomy_get_tree<span style="color: #009900;">&#40;</span><span style="color: #000088;">$vid</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">print</span> <span style="color: #0000ff;">&quot;&lt;ul&gt;&quot;</span>;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$terms</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$term</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #990000;">print</span> <span style="color: #0000ff;">&quot;&lt;li&gt;&quot;</span><span style="color: #339933;">.</span>l<span style="color: #009900;">&#40;</span><span style="color: #000088;">$term</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #339933;">,</span><span style="">'taxonomy/term/'</span><span style="color: #339933;">.</span><span style="color: #000088;">$term</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">tid</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="">'title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$term</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; (&quot;</span><span style="color: #339933;">.</span>taxonomy_term_count_nodes<span style="color: #009900;">&#40;</span><span style="color: #000088;">$term</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">tid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;)&lt;/li&gt;&quot;</span>;
<span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">/* end foreach */</span>
<span style="color: #990000;">print</span> <span style="color: #0000ff;">&quot;&lt;/ul&gt;&quot;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div><br />
Fertig ist die Kategorienliste mit Artikelanzahl.
</p></div><br/> ]]></content:encoded>
<wfw:commentRss>http://datensal.at/index.cgi/drupalkategorien%3A2008-10-18%3ACode%2CSoftware%2CWeblog/feed/</wfw:commentRss>
</item>
</channel>
</rss>
