<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>ads' corner - Languages</title>
    <link>http://andreas.scherbaum.la/blog/</link>
    <description>a place to store my stuff</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.3 - http://www.s9y.org/</generator>
    <pubDate>Mon, 01 Mar 2010 01:36:14 GMT</pubDate>

    <image>
        <url>http://andreas.scherbaum.la/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: ads' corner - Languages - a place to store my stuff</title>
        <link>http://andreas.scherbaum.la/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Read number lines in a file - in LaTeX</title>
    <link>http://andreas.scherbaum.la/blog/archives/670-Read-number-lines-in-a-file-in-LaTeX.html</link>
            <category>TeX</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/670-Read-number-lines-in-a-file-in-LaTeX.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=670</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=670</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;Probably a rare needed feature, but i had to count the number lines in a text file - in LaTeX.&lt;/font&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/670-Read-number-lines-in-a-file-in-LaTeX.html#extended&quot;&gt;Continue reading &quot;Read number lines in a file - in LaTeX&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 28 Feb 2010 19:05:00 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/670-guid.html</guid>
    <category>LaTeX</category>
<category>Number lines in file</category>
<category>Presentation</category>
<category>Software</category>
<category>Talk</category>
<category>TeX</category>
<category>Vortrag</category>

</item>
<item>
    <title>Generate random number in LaTeX</title>
    <link>http://andreas.scherbaum.la/blog/archives/668-Generate-random-number-in-LaTeX.html</link>
            <category>TeX</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/668-Generate-random-number-in-LaTeX.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=668</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=668</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;
It is possible to generate random numbers in a TeX document. For a gimmick  i wanted a random line from a text file in my slides. The first step was to find a random number.&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt; &lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/668-Generate-random-number-in-LaTeX.html#extended&quot;&gt;Continue reading &quot;Generate random number in LaTeX&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 27 Feb 2010 20:51:58 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/668-guid.html</guid>
    <category>LaTeX</category>
<category>Presentation</category>
<category>Random number</category>
<category>Software</category>
<category>Talk</category>
<category>TeX</category>
<category>Vortrag</category>

</item>
<item>
    <title>Include and exclude latex-beamer frames</title>
    <link>http://andreas.scherbaum.la/blog/archives/633-Include-and-exclude-latex-beamer-frames.html</link>
            <category>TeX</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/633-Include-and-exclude-latex-beamer-frames.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=633</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=633</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;For my slides i sometimes want to disable parts of the presentation, as example: if the operating system is &lt;em&gt;Linux&lt;/em&gt;, i don&#039;t need &lt;em&gt;Solaris&lt;/em&gt; installation instructions. The &lt;em&gt;\ifthenelse{&amp;lt;condition&amp;gt;}{...true...}{...false...}&lt;/em&gt; from the &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=7600&amp;amp;entry_id=633&quot; title=&quot;http://ctan.org/tex-archive/help/Catalogue/entries/ifthen.html&quot;  onmouseover=&quot;window.status=&#039;http://ctan.org/tex-archive/help/Catalogue/entries/ifthen.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;ifthen&lt;/a&gt; package works very well for normal frames, but it fails, if there are examples (&lt;em&gt;verbatim&lt;/em&gt; environment) in the code.&lt;/font&gt; &lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;In such a case &lt;em&gt;\iftrue&lt;/em&gt; and &lt;em&gt;\iffalse&lt;/em&gt; are much more lazy than &lt;em&gt;\ifthenelse&lt;/em&gt; and compiling the examples results no longer in latex parser errors. The downside of this solution: i need to predefine the condition, but in my case i have them in a separate file anyway.&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;The definition looks like:&lt;/font&gt;&lt;/p&gt; 
&lt;pre&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;div class=&quot;geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\newboolean&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;usesolaris&lt;/span&gt;}&lt;br /&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\ifthenelse&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\equal&lt;/span&gt;{&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\targetos&lt;/span&gt;}{solaris}&lt;/span&gt;}{&lt;br /&gt;&amp;#160; &lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\setboolean&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;usesolaris}{true&lt;/span&gt;}&lt;br /&gt;}{&lt;br /&gt;&amp;#160; &lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\setboolean&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;usesolaris}{false&lt;/span&gt;}&lt;br /&gt;}&lt;/div&gt;
&lt;/font&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;I have defined the variable \targetos, which contains a string with the currently used platform name for my presentation. If the string matches &amp;quot;solaris&amp;quot;, the boolean \usesolaris is set to &amp;quot;&lt;em&gt;true&lt;/em&gt;&amp;quot;, else to &amp;quot;&lt;em&gt;false&lt;/em&gt;&amp;quot;. Latex compiles the &amp;quot;&lt;em&gt;\ifusesolaris&lt;/em&gt;&amp;quot; definition from the boolean, which i later can use to include or exclude frames:&lt;/font&gt;&lt;/p&gt; 
&lt;pre&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;div class=&quot;geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\ifusesolaris&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #F00000; font-weight: normal;&quot;&gt;\begin&lt;/span&gt;&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;frame&lt;/span&gt;}[&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;fragile&lt;/span&gt;]&lt;br /&gt;&amp;#160; ... frame content&lt;br /&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #F00000; font-weight: normal;&quot;&gt;\end&lt;/span&gt;&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;frame&lt;/span&gt;}&lt;br /&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\fi&lt;/span&gt;&lt;/div&gt;
&lt;/font&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;In addition, it is also possible to add code for the case where &lt;em&gt;\usesolaris&lt;/em&gt; is false. Just add &lt;em&gt;\else&lt;/em&gt; and the code before &lt;em&gt;\fi&lt;/em&gt;.&lt;br /&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 08 Dec 2009 22:46:46 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/633-guid.html</guid>
    <category>LaTeX</category>
<category>Presentation</category>
<category>TeX</category>
<category>Vortrag</category>

</item>
<item>
    <title>Making life easy for new (and old) PWN translators</title>
    <link>http://andreas.scherbaum.la/blog/archives/610-Making-life-easy-for-new-and-old-PWN-translators.html</link>
            <category>Perl</category>
            <category>PostgreSQL News</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/610-Making-life-easy-for-new-and-old-PWN-translators.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=610</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=610</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;I released &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=7420&amp;amp;entry_id=610&quot; title=&quot;http://pgfoundry.org/frs/?group_id=1000397&quot;  onmouseover=&quot;window.status=&#039;http://pgfoundry.org/frs/?group_id=1000397&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;version 3.0&lt;/a&gt; of the &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=7421&amp;amp;entry_id=610&quot; title=&quot;http://pgfoundry.org/projects/pwn-translation&quot;  onmouseover=&quot;window.status=&#039;http://pgfoundry.org/projects/pwn-translation&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;pwn-translation script&lt;/a&gt;. Although the version number is already 3.0, this is the first public available version.&lt;/font&gt;&lt;/p&gt; &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;What does it do? You feed one of &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=7425&amp;amp;entry_id=610&quot; title=&quot;http://people.planetpostgresql.org/dfetter/&quot;  onmouseover=&quot;window.status=&#039;http://people.planetpostgresql.org/dfetter/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;David Fetter&#039;s&lt;/a&gt; &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=7423&amp;amp;entry_id=610&quot; title=&quot;http://www.postgresql.org/community/weeklynews/&quot;  onmouseover=&quot;window.status=&#039;http://www.postgresql.org/community/weeklynews/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;PostgreSQL weekly news mails&lt;/a&gt; into the script and it generates a new mail with all known text parts translated into your native language. This should make life very easy for new - and already existing - pwn translators.&lt;/font&gt;&lt;/p&gt; &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/610-Making-life-easy-for-new-and-old-PWN-translators.html#extended&quot;&gt;Continue reading &quot;Making life easy for new (and old) PWN translators&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 16 Oct 2009 19:40:40 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/610-guid.html</guid>
    <category>Perl</category>
<category>PostgreSQL weekly news</category>
<category>Wöchentlicher PostgreSQL Newsletter</category>

</item>
<item>
    <title>Unterlagen für Tutorial beim Perl-Workshop in Frankfurt/Main</title>
    <link>http://andreas.scherbaum.la/blog/archives/530-Unterlagen-fuer-Tutorial-beim-Perl-Workshop-in-FrankfurtMain.html</link>
            <category>PGUG Germany</category>
            <category>Perl</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/530-Unterlagen-fuer-Tutorial-beim-Perl-Workshop-in-FrankfurtMain.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=530</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=530</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt;Die Unterlagen für &lt;a target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/archives/505-PostgreSQL-and-the-Perl-Workshop-2009-in-Frankfurt-Main.html&quot;&gt;das Tutorial&lt;/a&gt; beim &lt;a target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6729&amp;amp;entry_id=530&quot; title=&quot;http://www.perl-workshop.de/de/2009/&quot;  onmouseover=&quot;window.status=&#039;http://www.perl-workshop.de/de/2009/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Perl-Workshop 2009&lt;/a&gt; in &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=7261&amp;amp;entry_id=530&quot; title=&quot;http://www.perl-blog.de/2009/03/rueckblick-perl-workshop-2009.html&quot;  onmouseover=&quot;window.status=&#039;http://www.perl-blog.de/2009/03/rueckblick-perl-workshop-2009.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;Frankfurt/Main&lt;/a&gt; am 25.02.2009 sind unter:&lt;/p&gt; &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;/writings/perl-tutorial_2009_02_25.pdf&quot;&gt;http://andreas.scherbaum.la/writings/&lt;/a&gt;&lt;/p&gt; &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt;zu finden. Folgende Änderungen wurden gegenüber dem Vortrag vorgenommen:&lt;/p&gt; &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt;- ein falscher Variablenbezeichner im &amp;quot;Perl&amp;quot; Teil wurde korrigiert&lt;/p&gt; &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt;- Beispiele für Nutzung von SPI in Perl Stored Procedures wurden aufgenommen&lt;/p&gt; &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt; &lt;/p&gt; &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt;Viel Spass mit den Unterlagen&lt;/p&gt; &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt; &lt;/p&gt; &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;strong&gt;Update:&lt;/strong&gt; Die Unterlagen aller Vorträge gibt es im Wiki: &lt;a target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6737&amp;amp;entry_id=530&quot; title=&quot;http://conferences.yapceurope.org/gpw2009/wiki?node=Slides&quot;  onmouseover=&quot;window.status=&#039;http://conferences.yapceurope.org/gpw2009/wiki?node=Slides&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;http://conferences.yapceurope.org/gpw2009/wiki?node=Slides&lt;/a&gt;&lt;/font&gt;&lt;br /&gt;&lt;/p&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 25 Feb 2009 16:52:14 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/530-guid.html</guid>
    <category>Frankfurt/Main</category>
<category>Performance</category>
<category>Perl</category>
<category>Perl Workshop</category>
<category>PostgreSQL</category>
<category>PostgreSQL User Group Germany</category>
<category>Talk</category>
<category>Vortrag</category>

</item>
<item>
    <title>PostgreSQL and the Perl Workshop 2009 in Frankfurt (Main)</title>
    <link>http://andreas.scherbaum.la/blog/archives/505-PostgreSQL-and-the-Perl-Workshop-2009-in-Frankfurt-Main.html</link>
            <category>PGUG Germany</category>
            <category>Perl</category>
            <category>PostgreSQL News</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/505-PostgreSQL-and-the-Perl-Workshop-2009-in-Frankfurt-Main.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=505</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=505</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;There will be a workshop &amp;quot;optimize PostgreSQL, combine Perl and PostgreSQL&amp;quot; at the &lt;a target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6559&amp;amp;entry_id=505&quot; title=&quot;http://www.perl-workshop.de/en/2009/index.html&quot;  onmouseover=&quot;window.status=&#039;http://www.perl-workshop.de/en/2009/index.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Perl Workshop 2009&lt;/a&gt; on february 25 in &lt;a target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6560&amp;amp;entry_id=505&quot; title=&quot;http://en.wikipedia.org/wiki/Frankfurt_am_Main&quot;  onmouseover=&quot;window.status=&#039;http://en.wikipedia.org/wiki/Frankfurt_am_Main&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Frankfurt/Main&lt;/a&gt; in Germany.&lt;/p&gt;&lt;p&gt;More details (in german) are available at: &lt;a target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6561&amp;amp;entry_id=505&quot; title=&quot;http://www.perl-workshop.de/talks/151/view&quot;  onmouseover=&quot;window.status=&#039;http://www.perl-workshop.de/talks/151/view&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;http://www.perl-workshop.de/talks/151/view&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The full timetable (also mostly in german) for the workshop is available at: &lt;a target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6562&amp;amp;entry_id=505&quot; title=&quot;http://www.perl-workshop.de/en/2009/zeitplan.html&quot;  onmouseover=&quot;window.status=&#039;http://www.perl-workshop.de/en/2009/zeitplan.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;http://www.perl-workshop.de/en/2009/zeitplan.html&lt;/a&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 27 Dec 2008 14:24:53 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/505-guid.html</guid>
    <category>Frankfurt/Main</category>
<category>Performance</category>
<category>Perl</category>
<category>Perl Workshop</category>
<category>PostgreSQL</category>
<category>PostgreSQL User Group Germany</category>
<category>Talk</category>
<category>Vortrag</category>

</item>
<item>
    <title>xPyrus community framework released by UniHelp e.V.</title>
    <link>http://andreas.scherbaum.la/blog/archives/458-xPyrus-community-framework-released-by-UniHelp-e.V..html</link>
            <category>Magdeburg</category>
            <category>PHP</category>
            <category>PostgreSQL News</category>
            <category>UniHelp</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/458-xPyrus-community-framework-released-by-UniHelp-e.V..html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=458</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=458</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;UniHelp e.V. - a registered student association in Magdeburg/Germany - announces the release of xPyrus, a framework for operating communities and document sharing platforms.&lt;br /&gt;&lt;br /&gt;The framework is based on PHP 5 and PostgreSQL and has been running the students&#039; community UniHelp.de (a platform for exchanging study-related documents and connecting students) in Magdeburg since 2002.&lt;br /&gt;&lt;br /&gt;The entire framework is released under the GNU Affero General Public License v3 at &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6339&amp;amp;entry_id=458&quot; title=&quot;http://www.xpyrus.org/&quot;  onmouseover=&quot;window.status=&#039;http://www.xpyrus.org/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;http://www.xpyrus.org&lt;/a&gt;. A unix-based server is required for installation and use of all features, however, a hosting service can be provided by UniHelp e.V. on request, especially for student organizations.&lt;br /&gt;&lt;br /&gt;The press release can be found at:&lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6340&amp;amp;entry_id=458&quot; title=&quot;http://magdeburg.unihelp.de/blog/orgas/2_UniHelp%20e.V./archives/151&quot;  onmouseover=&quot;window.status=&#039;http://magdeburg.unihelp.de/blog/orgas/2_UniHelp%20e.V./archives/151&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;UniHelp Blogs - Press release&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Further information can be found at:&lt;br /&gt;- Homepage of the framework: &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6339&amp;amp;entry_id=458&quot; title=&quot;http://www.xpyrus.org/&quot;  onmouseover=&quot;window.status=&#039;http://www.xpyrus.org/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;http://www.xpyrus.org&lt;/a&gt;&lt;br /&gt;- Reference application: &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6341&amp;amp;entry_id=458&quot; title=&quot;http://magdeburg.unihelp.de/&quot;  onmouseover=&quot;window.status=&#039;http://magdeburg.unihelp.de/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;http://magdeburg.unihelp.de&lt;/a&gt;&lt;br /&gt;- Homepage of the publisher: &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6342&amp;amp;entry_id=458&quot; title=&quot;http://magdeburg.unihelp.de/imprint&quot;  onmouseover=&quot;window.status=&#039;http://magdeburg.unihelp.de/imprint&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;http://magdeburg.unihelp.de/imprint&lt;/a&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 09 Oct 2008 23:00:00 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/458-guid.html</guid>
    <category>Magdeburg</category>
<category>PHP</category>
<category>PostgreSQL</category>
<category>UniHelp e.V.</category>
<category>Verein</category>
<category>Verlinktes</category>
<category>xPyrus</category>

</item>
<item>
    <title>Single line input for psql copy command</title>
    <link>http://andreas.scherbaum.la/blog/archives/456-Single-line-input-for-psql-copy-command.html</link>
            <category>Code Snippets</category>
            <category>Perl</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/456-Single-line-input-for-psql-copy-command.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=456</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=456</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;I have the following problem:&lt;/p&gt;&lt;p&gt;A database server and another client machine. I have to execute several \copy commands in psql on the client machine to retrieve data and store the output in CSV files. The PostgreSQL COPY command is not an option because it stores the results on the database server, not the client machine. All \copy commands are executed from several files containing SQL commands, which are concated together by a makefile and feeded into psql. So far so good.&lt;/p&gt;&lt;p&gt;My SELECT commands used in the \copy are a bit more complicated and \copy requires to have the entire command on a single line. That can be done in two ways:&lt;/p&gt;&lt;p&gt;- Write the entire command in a single line. But that&#039;s hard to debug :-(&lt;/p&gt;&lt;p&gt;- Write the command as i like it and remove the linebreaks before feeding the command into psql.&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/456-Single-line-input-for-psql-copy-command.html#extended&quot;&gt;Continue reading &quot;Single line input for psql copy command&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 08 Oct 2008 22:26:05 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/456-guid.html</guid>
    <category>Code snippets</category>
<category>Perl</category>
<category>PostgreSQL</category>
<category>psql</category>

</item>
<item>
    <title>Manage Serendipity installations with Spartacus</title>
    <link>http://andreas.scherbaum.la/blog/archives/441-Manage-Serendipity-installations-with-Spartacus.html</link>
            <category>PHP</category>
            <category>S9y</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/441-Manage-Serendipity-installations-with-Spartacus.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=441</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=441</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;I have to manage some Serendipity (s9y) installations. Only one of them is my personal blog, the others are customer installations, all on different servers. Apart from new serendipity versions there&#039;s also the problem with updated plugins. How can one know about available updates without opening each blog in a browser window, open administration, select &amp;quot;Configure Plugins&amp;quot; and check for new sidebar and event plugins?&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/441-Manage-Serendipity-installations-with-Spartacus.html#extended&quot;&gt;Continue reading &quot;Manage Serendipity installations with Spartacus&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 13 Sep 2008 17:59:20 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/441-guid.html</guid>
    <category>PHP</category>
<category>S9y</category>
<category>Serendipity</category>
<category>lazy admin</category>

</item>
<item>
    <title>role ... cannot be dropped because some objects depend on it</title>
    <link>http://andreas.scherbaum.la/blog/archives/439-role-...-cannot-be-dropped-because-some-objects-depend-on-it.html</link>
            <category>Code Snippets</category>
            <category>PostgreSQL News</category>
            <category>SQL</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/439-role-...-cannot-be-dropped-because-some-objects-depend-on-it.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=439</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=439</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
I want to &lt;a target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6070&amp;amp;entry_id=439&quot; title=&quot;http://www.postgresql.org/docs/8.3/interactive/sql-droprole.html&quot;  onmouseover=&quot;window.status=&#039;http://www.postgresql.org/docs/8.3/interactive/sql-droprole.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;drop a ROLE&lt;/a&gt; (previously USER/GROUPs) which is still referenced by object(s) in my database. But &lt;a title=&quot;The PostgreSQL Project&quot; target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6071&amp;amp;entry_id=439&quot;  onmouseover=&quot;window.status=&#039;http://www.postgresql.org/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;PostgreSQL&lt;/a&gt; has objections:&lt;br /&gt;&lt;br /&gt;&lt;address&gt;ERROR:  role &amp;quot;xyz&amp;quot; cannot be dropped because some objects depend on it&lt;/address&gt;&lt;address&gt;DETAIL:  access to schema public&lt;/address&gt;&lt;br /&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/439-role-...-cannot-be-dropped-because-some-objects-depend-on-it.html#extended&quot;&gt;Continue reading &quot;role ... cannot be dropped because some objects depend on it&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 10 Sep 2008 20:11:07 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/439-guid.html</guid>
    <category>Code snippets</category>
<category>PostgreSQL</category>

</item>
<item>
    <title>new screen_away version  for irssi finally online</title>
    <link>http://andreas.scherbaum.la/blog/archives/376-new-screen_away-version-for-irssi-finally-online.html</link>
            <category>Perl</category>
            <category>Software</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/376-new-screen_away-version-for-irssi-finally-online.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=376</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=376</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;After exact 364 days the irssi guys published my last &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=5693&amp;amp;entry_id=376&quot;  onmouseover=&quot;window.status=&#039;http://scripts.irssi.org/scripts/screen_away.pl&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot; title=&quot;screen_away.pl&quot;&gt;screen_away.pl&lt;/a&gt; version which includes SILC support.&lt;/p&gt;&lt;p&gt;You can find the script here: &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=5694&amp;amp;entry_id=376&quot; title=&quot;http://scripts.irssi.org/&quot;  onmouseover=&quot;window.status=&#039;http://scripts.irssi.org/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;http://scripts.irssi.org/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;For anyone who don&#039;t know about screen_away: if you run irssi in a screen(1), this script set&#039;s you away if you detach the screen session and cancels the away status if the screen is reconnected. You can configure the away message and optional also change the nick (but ppl usually don&#039;t like nick changes to show the away status).&lt;/p&gt;&lt;p&gt;Install instructions are in the head of the script.&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 22 May 2008 18:50:10 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/376-guid.html</guid>
    
</item>
<item>
    <title>Stupid open_basedir handling in PHP</title>
    <link>http://andreas.scherbaum.la/blog/archives/358-Stupid-open_basedir-handling-in-PHP.html</link>
            <category>PHP</category>
            <category>Stupid</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/358-Stupid-open_basedir-handling-in-PHP.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=358</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=358</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;I have an application which has to run on different webservers (or to be more specific on servers with a different directory layout). On one server the php files are in /usr/home, the next one is using /www, the third one /var/www and last but not least my laptop has the files in my home directory which is below /home.&lt;/p&gt;&lt;p&gt;No problem - or?&lt;/p&gt;&lt;p&gt;Since we want a bit security, we have open_basedir activated. Now the script has to check if a specific directory exists. I added this directory name to the open_basedir settings on all webservers. But &lt;strong&gt;surprise&lt;/strong&gt; PHP tries to be intelligent. On servers where the specific directory does not exist, PHP removes the directory name from the open_basedir directory list (note: this cost another stat() call on startup).&lt;/p&gt;&lt;p&gt;You imagine what comes next? Now the is_dir() call on this server fails, because of an &amp;quot;open_basedir restriction in effect&amp;quot; error.&lt;/p&gt;&lt;p&gt;&lt;font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;*grrr*&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 29 Apr 2008 00:15:00 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/358-guid.html</guid>
    <category>PHP</category>
<category>stupid</category>

</item>
<item>
    <title>create language if not exist</title>
    <link>http://andreas.scherbaum.la/blog/archives/346-create-language-if-not-exist.html</link>
            <category>PL/pgSQL</category>
            <category>PostgreSQL</category>
            <category>PostgreSQL News</category>
            <category>SQL</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/346-create-language-if-not-exist.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=346</wfw:comment>

    <slash:comments>7</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=346</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;In a customer project i have to setup a database from a Makefile. Part of my problem: on windows the installer may or may not install &amp;quot;plpgsql&amp;quot; into template1 so in consequence this language would be activated in every new database. But that&#039;s not predictable. This problem can appear on different Linux/Unix distributions too.&lt;/p&gt;&lt;p&gt;In contrary to some other opinions in #postgresql i dislike filtering error messages and i prefer clean solutions.&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/346-create-language-if-not-exist.html#extended&quot;&gt;Continue reading &quot;create language if not exist&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 27 Mar 2008 08:33:14 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/346-guid.html</guid>
    <category>PostgreSQL</category>
<category>SQL</category>
<category>pl/pgSQL</category>

</item>
<item>
    <title>Understanding SQL</title>
    <link>http://andreas.scherbaum.la/blog/archives/304-Understanding-SQL.html</link>
            <category>Externes</category>
            <category>SQL</category>
            <category>Software</category>
            <category>other DBs</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/304-Understanding-SQL.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=304</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=304</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;Just have to port a &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=5164&amp;amp;entry_id=304&quot; title=&quot;http://www.phpkit.de/&quot;  onmouseover=&quot;window.status=&#039;http://www.phpkit.de/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;phpkit&lt;/a&gt; database to something else. It seems, the phpkit ppl did not really understand what SQL is for.&lt;/p&gt;&lt;p&gt;The &#039;phpkit_config&#039; table in this case contains 255(!) columns and a lot of this columns seems to be for extensions.&lt;/p&gt;&lt;p&gt;This is a very good example where you should use &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=5165&amp;amp;entry_id=304&quot; title=&quot;http://en.wikipedia.org/wiki/Database_normalization&quot;  onmouseover=&quot;window.status=&#039;http://en.wikipedia.org/wiki/Database_normalization&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;normalization&lt;/a&gt;: you don&#039;t add more and more columns to one table but you have a key/value table and for new entries you add a new key with a value. No need to change the table at all.&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 13 Jan 2008 15:29:56 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/304-guid.html</guid>
    <category>SQL</category>

</item>
<item>
    <title>BOOLEAN datatype with PHP-compatible output</title>
    <link>http://andreas.scherbaum.la/blog/archives/302-BOOLEAN-datatype-with-PHP-compatible-output.html</link>
            <category>PHP</category>
            <category>PostgreSQL News</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/302-BOOLEAN-datatype-with-PHP-compatible-output.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=302</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=302</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;If you use pure PHP (no database abstraction layer) with PostgreSQL, you may run into the problem that your BOOLEAN columns are not recognized by PHP but the value is instead returned as a string. So any code like:&lt;/p&gt;&lt;p&gt;if (!$boolean)&lt;/p&gt;&lt;p&gt;always returns true because the &#039;t&#039; and &#039;f&#039; are just strings in PHP.&lt;/p&gt;&lt;p&gt;Other programming languages like Perl, Python or Java and even the newer PHP PDO don&#039;t have this problem so it&#039;s clearly a PHP issue ... but i don&#039;t expect this one to be fixed, because this may break a lot existing applications. The column type information is available in the &lt;a title=&quot;Query result information&quot; target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=5157&amp;amp;entry_id=302&quot;  onmouseover=&quot;window.status=&#039;http://www.postgresql.org/docs/current/interactive/libpq-exec.html#LIBPQ-EXEC-SELECT-INFO&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;query result information&lt;/a&gt; so normally this should not be a big problem.&lt;/p&gt;&lt;p&gt;How to resolve this problem? There are some possibilities, one simple way would be to just use a SMALLINT instead a BOOLEAN but with the disadvantage that you loose the boolean input values. Another way is to create a new BOOLEAN type and change the output to something PHP-compatible. This new type is binary compatible with the existing BOOLEAN type so casts in either way are not a problem.&lt;/p&gt;&lt;p&gt;Note: i &lt;a title=&quot;pgsql-hackers posting&quot; target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=5158&amp;amp;entry_id=302&quot;  onmouseover=&quot;window.status=&#039;http://archives.postgresql.org/pgsql-hackers/2007-12/msg00891.php&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;asked around&lt;/a&gt;, but it seems, there is no easy solution which does &lt;strong&gt;not&lt;/strong&gt; require updates in the PHP or SQL code. Any workaround like explicit casts to integer are error-prone and you cannot easily find out, because your application will work, but in a wrong way.&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/302-BOOLEAN-datatype-with-PHP-compatible-output.html#extended&quot;&gt;Continue reading &quot;BOOLEAN datatype with PHP-compatible output&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 07 Jan 2008 12:43:31 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/302-guid.html</guid>
    <category>PHP</category>
<category>PostgreSQL</category>

</item>

</channel>
</rss>
