<?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/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
    <title>/var/log/vshivak - PEAR</title>
    <link>http://kuziel.info/log/</link>
    <description>thoughts of Marek Kuziel</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.0.1 - http://www.s9y.org/</generator>
    
    

<item>
    <title>Book about PEAR Installer coming out soon!</title>
    <link>http://kuziel.info/log/archives/2006/10/28/Book-about-PEAR-Installer-coming-out-soon!</link>
            <category>Lab</category>
            <category>PEAR</category>
            <category>PHP</category>
            <category>vshivak</category>
    
    <comments>http://kuziel.info/log/archives/2006/10/28/Book-about-PEAR-Installer-coming-out-soon!#comments</comments>
    <wfw:comment>http://kuziel.info/log/wfwcomment.php?cid=32</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://kuziel.info/log/rss.php?version=2.0&amp;type=comments&amp;cid=32</wfw:commentRss>
    

    <author>nospam@example.com (Marek Kuziel)</author>
    <content:encoded>
    &lt;p&gt;This is a book I have been awaiting for a quite long time! The &lt;a href=&quot;http://www.packtpub.com/PEAR-Installer/book&quot; title=&quot;http://www.packtpub.com/PEAR-Installer/book&quot;&gt;book about new version of the PEAR Installer&lt;/a&gt; (&lt;strong&gt;note&lt;/strong&gt;: PEAR Installer is part of the PEAR package), the package that allows you to deploy your PHP projects anywhere without a hassle.&lt;/p&gt;&lt;p&gt;As of version 1.4.0, PEAR (Installer) contains channel support, that allows PHP developers to deploy their PHP projects via their own channel server!&lt;/p&gt;&lt;p&gt;As a PHP developer, you might had been playing with the idea to automate deployment processes for your PHP (web)applications, right? OK, maybe not. Frankly, I don&amp;#39;t know anyone else in person, who would have tried to do deployment of the entire websites, or PHP applications using PEAR Installer and own channel server. I hope this book will change this&amp;#160; soon. &lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://kuziel.info/log/archives/2006/10/28/Book-about-PEAR-Installer-coming-out-soon!#extended&quot;&gt;Continue reading &quot;Book about PEAR Installer coming out soon!&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 28 Oct 2006 12:34:45 +1300</pubDate>
    <guid isPermaLink="false">http://kuziel.info/log/archives/2006/10/28/32</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/</creativeCommons:license>
</item>
<item>
    <title>Do you really think you own your code?</title>
    <link>http://kuziel.info/log/archives/2006/05/11/Do-you-really-think-you-own-your-code</link>
            <category>Lab</category>
            <category>Open Source</category>
            <category>PEAR</category>
            <category>vshivak</category>
    
    <comments>http://kuziel.info/log/archives/2006/05/11/Do-you-really-think-you-own-your-code#comments</comments>
    <wfw:comment>http://kuziel.info/log/wfwcomment.php?cid=26</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://kuziel.info/log/rss.php?version=2.0&amp;type=comments&amp;cid=26</wfw:commentRss>
    

    <author>nospam@example.com (Marek Kuziel)</author>
    <content:encoded>
    &lt;p&gt;I work on a new project, or rather on a set of small projects
by creating small PEAR packages, that will provide my own native PEAR
commands.&lt;/p&gt;

&lt;p&gt;My intention is to create simple tools, that would potentially
save me a lot of time when it comes to repetitive tasks. See for example
my &lt;a href=&quot;http://kuziel.info/log/archives/2006/04/26/Kuziel_PEAR_Command_Database-fix-release-1.0.3&quot;&gt;Kuziel_PEAR_Command_Database&lt;/a&gt; package which is
the first official package of the whole project).&lt;/p&gt;

&lt;p&gt;I reckon &quot;don&#039;t repeat yourself&quot; is a good rule, however, you have to put a lot of
energy to create such a tools to be able to do so. Hence, why I started work on this &quot;project&quot;.&lt;/p&gt;

&lt;p&gt;I discussed the idea of the project in our cosy private IRC chat
room with &lt;a href=&quot;http://nb.inode.co.nz/&quot;&gt;Jim&lt;/a&gt; to get his opinions on this.&lt;/p&gt;

&lt;P&gt;&lt;b&gt;Note:&lt;/b&gt; You can read about &lt;a href=&quot;http://37signals.com/svn/archives2/the_importance_of_instant_feedback.php&quot;&gt;the importance of instant feedback&lt;/a&gt; in a post 
by Matt on 37signals&#039;s blog.&lt;/p&gt;

&lt;p&gt;Anyway, if you think about repetitive tasks, it is mostly about
some sort of generation of something. Generation of code, configurations, and so
on.&lt;/p&gt;

&lt;p&gt;And here comes the problem. Actually, not really a problem, but rather
something worth to discuss, before you start doing generators of
any sort.&lt;/p&gt;
&lt;p&gt;So, the thing is that in some cases it is not very clear 
who owns the copyright of the generated code!&lt;/p&gt;

&lt;p&gt;Jim, raised the question about this on RoR&#039;s &lt;a href=&quot;http://www.ruby-forum.com/topic/65177&quot;&gt;
forum bridge&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And if case you&#039;re interested, you can also read his thoughts about it, in his post &lt;a href=&quot;http://nb.inode.co.nz/archives/2006-05-11T12_42_44.html&quot;&gt;Who owns your code?&lt;/a&gt;

&lt;p&gt;As for my project, I think I need to spend some time over the weekend re-reading parts of
&lt;a href=&quot;http://kuziel.info/log/archives/2006/04/02/Book-Innovation-Happens-Elsewhere&quot;&gt;Innovation happens elsewhere&lt;/a&gt;, where open source licencing and copyright issues are discussed very well and also keep my eye on the RoR forum&#039;s discussion to see where it will go.&lt;/p&gt;

&lt;p&gt;And as for now: &quot;All your code are belong to us …&quot; &lt;img src=&quot;http://kuziel.info/log/templates/default/img/emoticons/tongue.png&quot; alt=&quot;:-P&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 11 May 2006 17:17:00 +1200</pubDate>
    <guid isPermaLink="false">http://kuziel.info/log/archives/2006/05/11/26</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/</creativeCommons:license>
</item>
<item>
    <title>Kuziel_PEAR_Command_Database - fix release (1.0.3)</title>
    <link>http://kuziel.info/log/archives/2006/04/26/Kuziel_PEAR_Command_Database-fix-release-1.0.3</link>
            <category>Lab</category>
            <category>PEAR</category>
            <category>PHP</category>
            <category>vshivak</category>
    
    <comments>http://kuziel.info/log/archives/2006/04/26/Kuziel_PEAR_Command_Database-fix-release-1.0.3#comments</comments>
    <wfw:comment>http://kuziel.info/log/wfwcomment.php?cid=24</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://kuziel.info/log/rss.php?version=2.0&amp;type=comments&amp;cid=24</wfw:commentRss>
    

    <author>nospam@example.com (Marek Kuziel)</author>
    <content:encoded>
    &lt;p&gt;I&amp;#39;ve packaged and deployed to my PEAR channel new version of Kuziel_PEAR_Command_Database package.&lt;/p&gt;&lt;p&gt;For those of you who don&amp;#39;t know what is it about, this package provides native PEAR commands for DB_DataObject and MDB2_Schema packages which will help you when it comes to generating DB DataObject classes and/or MDB2 schemas.&lt;/p&gt;&lt;p&gt;For more information about the package please read my previous &lt;a href=&quot;archives/2006/03/28/Kuziel_PEAR_Command_Database-package&quot;&gt;Kuziel_PEAR_Command_Database package&lt;/a&gt; entry.&lt;/p&gt;&lt;p&gt;Actually, I&amp;#39;d be interested if anyone uses this package (beside me and those of you who I bothered with it &lt;img src=&quot;http://kuziel.info/log/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; ). Please, leave me a comment if you&amp;#39;re using it. Thanks! &lt;br /&gt;   &lt;/p&gt;&lt;p&gt;Here are the release notes for version 1.0.3:&lt;/p&gt;&lt;p&gt;Fix: short options for &amp;#39;mdb2-create-schema&amp;#39; command were too long (2 characters) instead of&amp;#160;&amp;#160; required one character which caused that after installation almost all PEAR commands disappeared&amp;#160;&amp;#160; and it was unpossible to do anything with the PEAR repository.In case you have previus version installed and this happend to you. Solution how to fix this&amp;#160;&amp;#160; is to remove all files of this package (lib/PEAR/Command/Database.xml and&amp;#160;&amp;#160; lib/PEAR/Command/Database.php) and upgrade to this, fixed, version.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Important note:&lt;/strong&gt; This version contains following options set for MDB2 Schema&lt;/p&gt; &lt;ul&gt;   &lt;li&gt;portability = MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_FIX_CASE&lt;/li&gt;   &lt;li&gt;seqcol_name = id&lt;/li&gt; &lt;/ul&gt; 
    </content:encoded>

    <pubDate>Wed, 26 Apr 2006 18:18:00 +1200</pubDate>
    <guid isPermaLink="false">http://kuziel.info/log/archives/2006/04/26/24</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/</creativeCommons:license>
</item>
<item>
    <title>Installation of local PEAR repository</title>
    <link>http://kuziel.info/log/archives/2006/04/02/Installation-of-local-PEAR-repository</link>
            <category>Lab</category>
            <category>PEAR</category>
            <category>PHP</category>
            <category>vshivak</category>
    
    <comments>http://kuziel.info/log/archives/2006/04/02/Installation-of-local-PEAR-repository#comments</comments>
    <wfw:comment>http://kuziel.info/log/wfwcomment.php?cid=15</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://kuziel.info/log/rss.php?version=2.0&amp;type=comments&amp;cid=15</wfw:commentRss>
    

    <author>nospam@example.com (Marek Kuziel)</author>
    <content:encoded>
    &lt;p&gt;I use PEAR a lot. All my current work is based on PEAR libraries (only) and I create and deploy everything via PEAR. I think it&amp;#39;s been two or three years since I started playing with PEAR extensively.&lt;/p&gt; &lt;p&gt;Because of that, I need quite a lot of PEAR repositories for development, testing, staging, live versions, etc. That&amp;#39;s a quite a lot of repositories considering number of projects I work on.&lt;/p&gt; &lt;p&gt;I think it is a good practice to have one repository per project and per purpose. Although, for development purposes I usually use only one global repository with recent version of all packages I need. But testing, staging and especially live versions of my applications are in separate PEAR repositories.&lt;/p&gt; &lt;p&gt;Therefore, creation of new PEAR repository is sort of routine task for me.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried quite a few ways of doing it, but here&amp;#39;s the one I use mostly, because it&amp;#39;s quick and safe way how to get new local PEAR repository in a few seconds.&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://kuziel.info/log/archives/2006/04/02/Installation-of-local-PEAR-repository#extended&quot;&gt;Continue reading &quot;Installation of local PEAR repository&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 02 Apr 2006 11:11:00 +1200</pubDate>
    <guid isPermaLink="false">http://kuziel.info/log/archives/2006/04/02/15</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/</creativeCommons:license>
</item>
<item>
    <title>Kuziel_PEAR_Command_Database package</title>
    <link>http://kuziel.info/log/archives/2006/03/28/Kuziel_PEAR_Command_Database-package</link>
            <category>Lab</category>
            <category>PEAR</category>
            <category>PHP</category>
            <category>vshivak</category>
    
    <comments>http://kuziel.info/log/archives/2006/03/28/Kuziel_PEAR_Command_Database-package#comments</comments>
    <wfw:comment>http://kuziel.info/log/wfwcomment.php?cid=12</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://kuziel.info/log/rss.php?version=2.0&amp;type=comments&amp;cid=12</wfw:commentRss>
    

    <author>nospam@example.com (Marek Kuziel)</author>
    <content:encoded>
    &lt;p&gt; It is a first package deployed via my channel &lt;a href=&quot;http://pear.kuziel.info&quot;&gt;pear.kuziel.info&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt; It provides commands for two PEAR libraries. DB DatabObject and MDB2 Schema. &lt;/p&gt;  &lt;h3&gt;Installation&lt;/h3&gt;  &lt;p&gt; Here&amp;#39;s the real example of what the help text of my &lt;a href=&quot;archives/2006/03/27/Serendipity-plugin-Very-Lite-PEAR-Channel-Frontend&quot;&gt;(Very Lite) PEAR Channel Frontend Serendipity plugin&lt;/a&gt; says. &lt;br /&gt; To discover my channel and install this package run:&lt;br /&gt; &lt;/p&gt;&lt;pre&gt;pear channel-dicover pear.kuziel.info&lt;br /&gt;pear install kuziel/Kuziel_PEAR_Command_Database&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h3&gt;DB DataObject: dbdo-create-table&lt;/h3&gt; &lt;p&gt; This command is replacement for original createTables.php from DB DataObject package. &lt;/p&gt; &lt;p&gt; It generates DB DatabObject classes and database (schema) ini file for given DB DatabObject configuration ini file. &lt;/p&gt; &lt;p&gt; For more information about the configuration have a look at &lt;a href=&quot;http://pear.php.net/manual/en/package.database.db-dataobject.intro-configuration.php&quot;&gt;DB DataObject Configuration Options&lt;/a&gt;  documentation. &lt;/p&gt; &lt;p&gt; Run it:&lt;br /&gt; &lt;/p&gt;&lt;pre&gt;pear dbdo-create-tables /full/path/to/your/your-dbdo.ini&lt;br /&gt;&lt;/pre&gt; or, in case you&amp;#39;re located in the same directory where your DB DataObject ini file is, run:&lt;br /&gt; &lt;pre&gt;pear dbdo-create-tables your-dbdo.ini&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;&amp;#160;&lt;/p&gt; &lt;p&gt; If you like shortcuts, you can use &amp;#39;ddct&amp;#39; as a shortcut for &amp;#39;dbdo-create-tables&amp;#39;. So, the previous example can also look like:&lt;br /&gt; &lt;/p&gt;&lt;pre&gt;pear ddct your-dbdo.ini&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h3&gt;MDB2 Schema&lt;/h3&gt; &lt;p&gt; There are two commands available for MDB2 Schema package, only command &amp;#39;mdb2-create-schema&amp;#39; is working at the moment. There is also second command &amp;#39;mdb2-update-schema&amp;#39; available, however, it is not implemented yet. &lt;/p&gt;  &lt;h4&gt;MDB2 Schema: mdb2-create-schema&lt;/h4&gt;  &lt;p&gt; This command creates MDB2 Schema (xml) file for given database. &lt;/p&gt; &lt;p&gt; If you run it like this:&lt;br /&gt; &lt;/p&gt;&lt;pre&gt;pear mdb2-create-schema pgsql://username:password@host/database&lt;br /&gt;&lt;/pre&gt; &lt;br /&gt;Where, of course, &amp;#39;pgsql://username:password@host/database&amp;#39; is replaced with your real DSN, command will create database.xml file with structure and data dump of your database. &lt;p&gt;&amp;#160;&lt;/p&gt; &lt;p&gt; Shortcut for the command &amp;#39;mdb2-create-schema&amp;#39; is &amp;#39;mdb2cs&amp;#39;. So previous example would look like:&lt;br /&gt; &lt;/p&gt;&lt;pre&gt;pear mdb2cs pgsql://username:password@host/database&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;&amp;#160;&lt;/p&gt; &lt;p&gt; &lt;strong&gt;Note:&lt;/strong&gt; MDB2 Schema package has some issues with table names (, or more precisely with underscores in your table names), so this command may fail if you don&amp;#39;t have &amp;quot;correct&amp;quot; table names. &lt;/p&gt;  &lt;h3&gt;Help information&lt;/h3&gt; &lt;p&gt; For more information about the commands run:&lt;br /&gt; &lt;/p&gt;&lt;pre&gt;pear help dbdo-create-tables&lt;br /&gt;pear help mdb2-create-schema&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;&amp;#160;&lt;/p&gt; &lt;p&gt; &lt;strong&gt;Note:&lt;/strong&gt; At the moment Kuziel_PEAR_Command_Database package has its dependencies set for DB DataObject and MDB2 Schema only as optional, not required. It&amp;#39;s because you may want to use only DB DataObject, or only MDB2 Schema command. If it is not obvious, you have to have those packages installed if you want to use their commands &lt;img src=&quot;http://kuziel.info/log/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;. &lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 28 Mar 2006 00:22:02 +1200</pubDate>
    <guid isPermaLink="false">http://kuziel.info/log/archives/2006/03/28/12</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/</creativeCommons:license>
</item>
<item>
    <title>Serendipity plugin - (Very Lite) PEAR Channel Frontend</title>
    <link>http://kuziel.info/log/archives/2006/03/27/Serendipity-plugin-Very-Lite-PEAR-Channel-Frontend</link>
            <category>Lab</category>
            <category>PEAR</category>
            <category>PHP</category>
            <category>vshivak</category>
    
    <comments>http://kuziel.info/log/archives/2006/03/27/Serendipity-plugin-Very-Lite-PEAR-Channel-Frontend#comments</comments>
    <wfw:comment>http://kuziel.info/log/wfwcomment.php?cid=11</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://kuziel.info/log/rss.php?version=2.0&amp;type=comments&amp;cid=11</wfw:commentRss>
    

    <author>nospam@example.com (Marek Kuziel)</author>
    <content:encoded>
    &lt;p&gt;I have created small Serendipity plugin for displaying information about your PEAR channel.&lt;/p&gt;
&lt;p&gt;It is sidebar plugin which shows list of categories with sublisted packages within the each category. Mouse over the package name shows summary of the package.&lt;/p&gt;
&lt;p&gt;It allows you to:
&lt;ul&gt;
&lt;li&gt;define your channel&#039;s 3rd party frontend and administration pages.&lt;/li&gt;
&lt;li&gt;decide if to show help for installation and channel discovery.&lt;/li&gt;
&lt;li&gt;choose categories from your channel server to hide (ie. &#039;Default&#039; category you may be not using at all).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It is still just in very basic code. It really just does the minumum, but I think it provides enough information of what categories and what packages are deployed via my channel.&lt;/p&gt;
&lt;p&gt;I need to add few more checkings and clean it up a bit, but I think I can release it in next few days.&lt;/p&gt;
&lt;p&gt;You can see how it works on the right side of this log.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 27 Mar 2006 23:55:28 +1200</pubDate>
    <guid isPermaLink="false">http://kuziel.info/log/archives/2006/03/27/11</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/</creativeCommons:license>
</item>

</channel>
</rss>