cvs: presentations /slides/peru ldd2005_conclusion.xml ldd2005_conclusion2.xml ldd2005_gracias.xml pear_channels.xml pear_codingstandards.xml
pear_comunidad1.xml pear_comunidad2.xml pear_comunidad3.xml pear_installer1.xml pear_installer2.xml pear_installer3.xml pear_installer4.xml
pear_installer_gtk.xml pear_installer_web.xml pear_metas.xml pear_newpackagedef.xml pear_packages.xml pear_pearinfo.xml pear_pepr.xml pear_que_es.xml
pear_titulo.xml php5_oop_abstract.xml php5_oop_autoclassloading.xml php5_oop_call.xml php5_oop_constants.xml php5_oop_dereferencing.xml
php5_oop_exceptions.xml php5_oop_getset.xml php5_titulo.xml style.css /slides/peru/images jerry_leibowitz-Ecosystem.jpg packagemanager_gtk.png
packagemanager_web.png pear-packages.jpg pear-poster_small.jpg pear.png pear_info.jpg php-pear-gtk.png php-small.png
| From: | Jesus M. Castagnetto | Date: | Sat, 09 Apr 2005 17:02:51 +0000 |
| Subject: | cvs: presentations /slides/peru ldd2005_conclusion.xml ldd2005_conclusion2.xml ldd2005_gracias.xml pear_channels.xml pear_codingstandards.xml pear_comunidad1.xml pear_comunidad2.xml pear_comunidad3.xml pear_installer1.xml pear_installer2.xml pear_installer3.xml pear_installer4.xml pear_installer_gtk.xml pear_installer_web.xml pear_metas.xml pear_newpackagedef.xml pear_packages.xml pear_pearinfo.xml pear_pepr.xml pear_que_es.xml pear_titulo.xml php5_oop_abstract.xml php5_oop_autoclassloading.xml php5_oop_call.xml php5_oop_constants.xml php5_oop_dereferencing.xml php5_oop_exceptions.xml php5_oop_getset.xml php5_titulo.xml style.css /slides/peru/images jerry_leibowitz-Ecosystem.jpg packagemanager_gtk.png packagemanager_web.png pear-packages.jpg pear-poster_small.jpg pear.png pear_info.jpg php-pear-gtk.png php-small.png |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1101@lists.php.net to get a copy of this message | ||
jmcastagnetto Sat Apr 9 13:02:51 2005 EDT
Added files:
/presentations/slides/peru ldd2005_conclusion.xml
ldd2005_conclusion2.xml
ldd2005_gracias.xml pear_channels.xml
pear_codingstandards.xml
pear_comunidad1.xml pear_comunidad2.xml
pear_comunidad3.xml pear_installer1.xml
pear_installer2.xml pear_installer3.xml
pear_installer4.xml
pear_installer_gtk.xml
pear_installer_web.xml pear_metas.xml
pear_newpackagedef.xml pear_packages.xml
pear_pearinfo.xml pear_pepr.xml
pear_que_es.xml
/presentations/slides/peru/images jerry_leibowitz-Ecosystem.jpg
packagemanager_gtk.png
packagemanager_web.png
pear-packages.jpg
pear-poster_small.jpg pear.png
pear_info.jpg php-pear-gtk.png
php-small.png
Modified files:
/presentations/slides/peru pear_titulo.xml php5_oop_abstract.xml
php5_oop_autoclassloading.xml
php5_oop_call.xml php5_oop_constants.xml
php5_oop_dereferencing.xml
php5_oop_exceptions.xml
php5_oop_getset.xml php5_titulo.xml
style.css
Log:
All slides are now in for the LDD 2005 talk, might tweak some later.
http://cvs.php.net/diff.php/presentations/slides/peru/pear_titulo.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/pear_titulo.xml diff -u presentations/slides/peru/pear_titulo.xml:1.1 presentations/slides/peru/pear_titulo.xml:1.2 --- presentations/slides/peru/pear_titulo.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/pear_titulo.xml Sat Apr 9 13:02:49 2005 @@ -3,7 +3,7 @@ <blurb>*PEAR*: PHP Extensions and Applications Repository. El repositorio de código reusable en PHP</blurb> <list> - <bullet effect="hide">Las metas de PEAR</bullet> + <bullet effect="hide">¿Qué es PEAR?</bullet> <bullet effect="hide">¿Quiénes componen PEAR?</bullet> <bullet effect="hide">La dinámica del desarrollo en PEAR</bullet> <bullet effect="hide">Planes futuros: canales de distribución, dependencias distribuidas, http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_abstract.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_abstract.xml diff -u presentations/slides/peru/php5_oop_abstract.xml:1.1 presentations/slides/peru/php5_oop_abstract.xml:1.2 --- presentations/slides/peru/php5_oop_abstract.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_abstract.xml Sat Apr 9 13:02:49 2005 @@ -5,6 +5,5 @@ base para una serie de otras clases que la extienden e implementan sus métodos. </blurb> -<example type="php" filename="ejemplos/abstract.php" - fontsize="1.6em" result="1" /> +<example type="php" filename="ejemplos/abstract.php" result="1"/> </slide> http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_autoclassloading.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_autoclassloading.xml diff -u presentations/slides/peru/php5_oop_autoclassloading.xml:1.1 presentations/slides/peru/php5_oop_autoclassloading.xml:1.2 --- presentations/slides/peru/php5_oop_autoclassloading.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_autoclassloading.xml Sat Apr 9 13:02:49 2005 @@ -6,27 +6,27 @@ de clases cuando el programa esta corriendo. </blurb> <example title="[archivo: Math/Matrix.php]" type="php"><![CDATA[<?php - class Math_Matrix { + class Math_Matrix { /* ... */ - } + } ?>]]> </example> <example title="[archivo: Math/Quaternion.php]" type="php"><![CDATA[<?php - class Math_Quaternion { + class Math_Quaternion { /* ... */ - } + } ?>]]> </example> <example title="[archivo: calculos.php]" type="php"><![CDATA[<?php - function __autoload($classname) { + function __autoload($classname) { list($math, $fname) = explode('_', $classname); - include_once "{$math}/{$fname}.php"; - } + include_once "{$math}/{$fname}.php"; + } - $m = new Math_Matrix(); - $q = new Math_Quaternion(); + $m = new Math_Matrix(); + $q = new Math_Quaternion(); ?>]]></example> </slide> - + http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_call.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_call.xml diff -u presentations/slides/peru/php5_oop_call.xml:1.1 presentations/slides/peru/php5_oop_call.xml:1.2 --- presentations/slides/peru/php5_oop_call.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_call.xml Sat Apr 9 13:02:49 2005 @@ -4,7 +4,7 @@ Cuando un método no esta explicitamente declarado para un objeto, PHP 5 puede pasar la ejecución a un método especial llamado %__call()%. </blurb> -<example type="php" fontsize="1.6em"><![CDATA[<?php +<example type="php" result="1"><![CDATA[<?php class Delegador { private gato; private perro; http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_constants.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_constants.xml diff -u presentations/slides/peru/php5_oop_constants.xml:1.1 presentations/slides/peru/php5_oop_constants.xml:1.2 --- presentations/slides/peru/php5_oop_constants.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_constants.xml Sat Apr 9 13:02:49 2005 @@ -6,15 +6,15 @@ (%define()%). </blurb> <example type="php" result="1"><![CDATA[<?php - class TLD { + class TLD { /* ... */ - const PERU = 'pe'; + const PERU = 'pe'; /* ... */ - } - - define ('PERU', '51'); + } + + define ('PERU', '51'); - echo 'Perú: tld='.TLD::PERU.', código='.PERU; + echo 'Perú: tld='.TLD::PERU.', código='.PERU; ?>]]> </example> http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_dereferencing.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_dereferencing.xml diff -u presentations/slides/peru/php5_oop_dereferencing.xml:1.1 presentations/slides/peru/php5_oop_dereferencing.xml:1.2 --- presentations/slides/peru/php5_oop_dereferencing.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_dereferencing.xml Sat Apr 9 13:02:49 2005 @@ -6,7 +6,7 @@ intermedias: </blurb> <example type="php" result="0"><![CDATA[<?php - $obj1 = new CoolObject(); + $obj1 = new CoolObject(); // en PHP 4 se hacia $tmp = $obj1->getFooObject(); @@ -16,7 +16,7 @@ En cambio, en PHP 5 referencias indirectas (también llamadas derefencias), son permitidas.</blurb> <example type="php" result="0"><![CDATA[<?php - echo $obj1->getFooObject()->result; + echo $obj1->getFooObject()->result; ?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_exceptions.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_exceptions.xml diff -u presentations/slides/peru/php5_oop_exceptions.xml:1.1 presentations/slides/peru/php5_oop_exceptions.xml:1.2 --- presentations/slides/peru/php5_oop_exceptions.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_exceptions.xml Sat Apr 9 13:02:49 2005 @@ -6,7 +6,6 @@ basan en la clase estándar %Exception%. </blurb> <example type="php" result="1"><![CDATA[<?php - class Calc { static function log($num) { if ($num < 0) { @@ -18,10 +17,10 @@ } } - try { + try { Calc::log(-15); - } catch (Exception $e) { - echo $e->getMessage(); - } + } catch (Exception $e) { + echo $e->getMessage(); + } ?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_getset.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_getset.xml diff -u presentations/slides/peru/php5_oop_getset.xml:1.1 presentations/slides/peru/php5_oop_getset.xml:1.2 --- presentations/slides/peru/php5_oop_getset.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_getset.xml Sat Apr 9 13:02:49 2005 @@ -6,26 +6,26 @@ a las variables de una clase, cuando esta no existe explicitamente. </blurb> <example type="php" result="1"><![CDATA[<?php - class Secretos { - private $claves = array ('jorge'=>'ogrej', 'diana'=>'azul123'); + class Secretos { + private $claves = array ('jorge'=>'ogrej', 'diana'=>'azul123'); - function __get($varName) { + function __get($varName) { if (array_key_exists($varName, $this->claves)) { return $this->claves[$varName]; } - } + } - function __set($varName, $value) { + function __set($varName, $value) { $this->claves[$varName] = $value; - } + } - } + } - $obj = new Secretos(); - $obj->hugo = 'gregorian-chants_rewl'; - echo "La clave de Diana es {$obj->diana}<br />\n"; - echo "Hugo prefiere {$obj->hugo}, <br />\n"; - echo "Mientras que Jorge astutamente usa {$obj->jorge}\n"; + $obj = new Secretos(); + $obj->hugo = 'gregorian-chants_rewl'; + echo "La clave de Diana es {$obj->diana}<br />\n"; + echo "Hugo prefiere {$obj->hugo}, <br />\n"; + echo "Mientras que Jorge astutamente usa {$obj->jorge}\n"; ?> ]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/peru/php5_titulo.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_titulo.xml diff -u presentations/slides/peru/php5_titulo.xml:1.1 presentations/slides/peru/php5_titulo.xml:1.2 --- presentations/slides/peru/php5_titulo.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_titulo.xml Sat Apr 9 13:02:49 2005 @@ -3,7 +3,7 @@ <blurb>*¿Qué hay de nuevo en PHP 5?*</blurb> <list type="darrow" fontsize="3.5em"> <bullet effect="hide">Soporte para Programación Orientada a Objetos</bullet> - <bullet effect="hide">SimpleXML, DOM, y XSL</bullet> + <bullet effect="hide">SimpleXML: una forma directa y simple de manipular XML</bullet> <bullet effect="hide">SQLite: base de datos sencilla pero poderosa</bullet> <bullet effect="hide">Streams y Filtros</bullet> <bullet effect="hide">... y mucho más (SPL, SOAP, DOM, XSL, Tidy, etc.)</bullet> http://cvs.php.net/diff.php/presentations/slides/peru/style.css?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/style.css diff -u presentations/slides/peru/style.css:1.1 presentations/slides/peru/style.css:1.2 --- presentations/slides/peru/style.css:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/style.css Sat Apr 9 13:02:49 2005 @@ -50,7 +50,7 @@ div.mainarea { margin-top: 50px; top: 120px; -width: 800px; +width: 98%; height: 620px; overflow: auto; overflow: -moz-scrollbars-vertical; http://cvs.php.net/co.php/presentations/slides/peru/ldd2005_conclusion.xml?r=1.1&p=1 Index: presentations/slides/peru/ldd2005_conclusion.xml +++ presentations/slides/peru/ldd2005_conclusion.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Conclusiones (1)"> <list> <bullet> PHP 5 ha logrado mejorar enormenente el soporte para clases y objetos, sin detrimentar el soporte a un estilo de programación procedural clásico. </bullet> <bullet> Algunas nuevas extensiones como SQLite y SimpleXML, hacen posible el escribir sistemas en los que los únicos requerimientos sean Apache y PHP. </bullet> <bullet> Con flujos (streams) y filtros, uno solo esta limitado por la propia imaginación. En principio podemos procesar sencilla y consistentemente cualquier fuente de datos. </bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/ldd2005_conclusion2.xml?r=1.1&p=1 Index: presentations/slides/peru/ldd2005_conclusion2.xml +++ presentations/slides/peru/ldd2005_conclusion2.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Conclusiones (2)"> <list> <bullet> La comunidad de PEAR provee código robusto, bien mantenido, y que ha sido sometido a escrutinio colectivo. </bullet> <bullet> El comando "pear" es tu mejor amigo cuando quieras instalar una libreria o paquete. Y no necesita que el paquete provenga de PEAR, por ejemplo, el group de Horde tiene algunas librerias en el formato de PEAR. </bullet> <bullet> Atrevete a presentar un paquete a PEAR, es una buena experiencia aunque alguito dolorosa al ego %:-)% </bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/ldd2005_gracias.xml?r=1.1&p=1 Index: presentations/slides/peru/ldd2005_gracias.xml +++ presentations/slides/peru/ldd2005_gracias.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Gracias a todos ..."> <list> <bullet effect="hide"> los organizadores, por el esfuerzo de poner este evento con mucho orden y profesionalismo, </bullet> <bullet effect="hide"> los asistentes, por haber soportado bien todas estas horas sentados, y por no quedarse dormidos cuando daba mi charla, </bullet> <bullet effect="hide"> los rayados de PHP y PEAR que siempren hacen algo que nos asombra y hace la vida del programador mas simple, </bullet> <bullet effect="hide"> los usuarios de nuestros programas de Open Source, que nos dejan dorminos en nuestros laureles, y siempre encuentrar el problema que nosotros jurabamos no podia ocurrir. </bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_channels.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_channels.xml +++ presentations/slides/peru/pear_channels.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Nuevo: Canales de distribución"> <blurb> En PEAR 1.4 (en alfa en este momento), hay soporte para canales de distribución de código que no venga directamente de pear.php.net, de este modo programadores que hacen sus propios paquetes y sistemas puede beneficiarse de la infraestructura de manejo e instalación de PEAR. </blurb> <blurb> Los canales son definidos en un channel.xml, y proveen: </blurb> <list> <bullet> Una forma efectiva y robusta de distribuir dependencias. </bullet> <bullet> Un método simple de instalar programas complejos que esten usando librerias y paquetes de diversa procedencia. </bullet> <bullet> Un mecanismo para actualizaciones selectivas de componentes, pues si solamente el paquete de Foo_Bar de PEAR se ha actualizado, no hay ya necesidad de re-instalar todo el sistema, como ocurre ahora en muchos casos. </bullet> </list> <blurb> Crear un canal de distribución propio no es difÃcil, hay ya instrucciones extra-oficiales de los programadores que estan desarrollando el sistema de canales. Ver, por ejemplo, el Blog de Greg [1], y el artÃculo completo de Tobias [2]. </blurb> <link leader="[1] " href="http://greg.chiaraquartet.net/" target="_blank"/> <link leader="[2] " href="http://www.schlitt.info/applications/blog/archives/308-Set-up-your-own-PEAR-channel.html" target="_blank"/> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_codingstandards.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_codingstandards.xml +++ presentations/slides/peru/pear_codingstandards.xml <slide title='Estándares de código'> <blurb> Hay ciertas reglas y estándares para el código que esta en PEAR: </blurb> <list type='number'> <bullet> Las clases deben de tener un nombre descriptivo, e.j. *TemperatureControl*, *HTML_Table*. </bullet> <bullet> Los miembros públicos deben de seguir la convención de 'Camel caps', excepto por el constructor de la clase, e.j. *addRow()*, *solveEquation()*, *HTML_Table()*. </bullet> <bullet> Los miembros privados deben de empezar con un subrayado "%_%", e.j. *_validate()*, *$this->_numRows*. </bullet> <bullet> Las constantes deberan ser todas en mayúsculas y prefijadas con el nombre del paquete, e.j. define('*MATH_STATS_CUMMULATIVE*',1); </bullet> <bullet> Si se necesitan variable globales, sus nombres deben de estar prefijados por el nombre del paquete y empezar con un subrayado, e.j. $GLOBALS['*_PEAR_default_error_mode*'] </bullet> <bullet> En general, se prefiere que haya una clase por archivo, aunque se pueden dar excepciones que tengan una razón válida (performance por ejemplo). </bullet> <bullet> Los nombres de los paquetes siguen una jerarquÃa llana, que debe reflejar la estructura de los directorios en los que va a ser instalado, e.j. el paquete HTML_QuickForm_Controller, será instalado en HTML/QuickForm/Controller. </bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_comunidad1.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_comunidad1.xml +++ presentations/slides/peru/pear_comunidad1.xml <slide title="La comunidad de PEAR (1)"> <image filename="images/jerry_leibowitz-Ecosystem_small.jpg" align="right"/> <list> <bullet>Muchos desarrolladores de paquetes</bullet> <bullet>Grupo de administración</bullet> <bullet>Equipo de documentación</bullet> <bullet>Grupo de control de calidad (QA)</bullet> <bullet>Proceso comunitario para la aprobación de paquetes</bullet> <bullet>Una meritocracia: tu código y tus acciones son mas importantes que tu tÃtulo, nombre, posición, grado académico, etc.</bullet> <bullet>Constante competición y colaboración</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_comunidad2.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_comunidad2.xml +++ presentations/slides/peru/pear_comunidad2.xml <slide title="La comunidad de PEAR (2)"> <image filename='images/pear.png' align='right'/> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_comunidad3.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_comunidad3.xml +++ presentations/slides/peru/pear_comunidad3.xml <slide title="La comunidad de PEAR (3)"> <image filename='images/php-pear-gtk.png' align='right'/> <blurb> Y esta comunidad es parte de una más grande aún, que forma el ecosistema alrededor de PHP. </blurb> <image filename='images/php-small.png' align='left'/> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer1.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer1.xml +++ presentations/slides/peru/pear_installer1.xml <slide title='El comando "pear"'> <blurb> Cuando se instala PHP desde código, uno de los comandos que se añaden al sistema es "%pear%", el cual es el manejador de paquetes (creación, instalación, desinstalación, etc.) de PEAR. </blurb> <example type="shell"><![CDATA[$ pear help Commands: build Build an Extension From C Source bundle Unpacks a Pecl Package channel-add Add a Channel channel-alias Specify an alias to a channel name channel-delete Remove a Channel From the List channel-discover Initialize a Channel from its server channel-info Retrieve Information on a Channel channel-update Update an Existing Channel clear-cache Clear XML-RPC Cache config-create Create a Default configuration file config-get Show One Setting config-help Show Information About Setting config-set Change Setting config-show Show All Settings convert Convert a package.xml 1.0 to package.xml 2.0 format cvsdiff Run a "cvs diff" for all files in a package cvstag Set CVS Release Tag download Download Package download-all Downloads each available package from the default channel info Display information about a package install Install Package list List Installed Packages In The Default Channel list-all List All Packages list-channels List Available Channels list-files List Files In Installed Package list-upgrades List Available Upgrades login Connects and authenticates to remote server logout Logs out from the remote server makerpm Builds an RPM spec file from a PEAR package package Build Package package-dependencies Show package dependencies package-validate Validate Package Consistency remote-info Information About Remote Packages remote-list List Remote Packages run-scripts Run Post-Install Scripts bundled with a package run-tests Run Regression Tests search Search remote package database shell-test Shell Script Test sign Sign a package distribution file uninstall Un-install Package update-channels Update the Channel List upgrade Upgrade Package upgrade-all Upgrade All Packages Usage: pear [options] command [command-options] <parameters> Type "pear help options" to list all options. Type "pear help shortcuts" to list all command shortcuts. Type "pear help <command>" to get the help for the specified command. ]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer2.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer2.xml +++ presentations/slides/peru/pear_installer2.xml <slide title='Manejando paquetes'> <example type='shell' title='Instalando paquetes'><![CDATA[$ pear install PEAR_Frontend_Web downloading PEAR_Frontend_Web-0.3.tgz ... ...done: 32,821 bytes requires package `Net_UserAgent_Detect' PEAR_Frontend_Web: dependencies failed $ pear install Net_UserAgent_Detect downloading Net_UserAgent_Detect-1.0.tgz ... ...done: 7,699 bytes install ok: Net_UserAgent_Detect 1.0 $ pear install PEAR_Frontend_Web downloading PEAR_Frontend_Web-0.3.tgz ... ...done: 32,821 bytes install ok: PEAR_Frontend_Web 0.3]]></example> <example type='shell' title='Desinstalando'><![CDATA[$ pear uninstall PEAR_Info uninstall ok: PEAR_Info]]></example> <example type='shell' title='Acualizando paquetes'><![CDATA[$ pear upgrade HTML_QuickForm downloading HTML_QuickForm-3.0.tgz ... ...done: 62,379 bytes upgrade ok: HTML_QuickForm 3.0]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer3.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer3.xml +++ presentations/slides/peru/pear_installer3.xml <slide title='Listando paquetes'> <example type="shell" title="Listar paquetes instalados"><![CDATA[$ pear list INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: ========================================= PACKAGE VERSION STATE Archive_Tar 1.3.1 stable Benchmark 1.2.2 stable Cache_Lite 1.4.1 stable (...) XML_RSS 0.9.2 stable XML_Tree 2.0.0RC2 beta XML_Util 1.1.1 stable ]]></example> <example type="shell" title="Listar paquetes disponibles"><![CDATA[$ pear list-all ALL PACKAGES: ============= PACKAGE LATEST LOCAL pear/APC 2.0.4 Alternative PHP Cache pear/Cache 1.5.4 Framework for caching of arbitrary data. pear/Cache_Lite 1.4.1 1.4.1 Fast and Safe little cache system (...) pear/Services_Google 0.1.1 Provides access to the Google Web APIs pear/Services_Technorati 0.5.5 A class for interacting with the Technorati API pear/SOAP 0.8.1 0.8.1 SOAP Client/Server for PHP pear/SOAP_Interop 0.8 0.8 SOAP Interop Test Application pear/UDDI 0.2.0alpha4 UDDI for PHP pear/XML_RPC 1.3.0RC1 1.3.0RC1 PHP implementation of the XML-RPC protocol pear/XML_SVG 0.0.3 XML_SVG API ]]></example> <example type="shell" title="Listar actualizaciones disponibles"><![CDATA[$ pear list-upgrades pear.php.net Available Upgrades (alpha, beta, stable): ====================================================== Channel Package Local Remote Size pear.php.net PEAR_PackageFileManager 1.5.0 (stable) 1.5.1 (stable) 46kB ]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer4.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer4.xml +++ presentations/slides/peru/pear_installer4.xml <slide title='Consiguiendo información'> <example type="shell" title="Acerca de un paquete instalado"><![CDATA[$ pear info Math_Quaternion ABOUT MATH_QUATERNION-0.7.1 =========================== Provides Classes: Package Math_Quaternion Summary Classes that define Quaternions and their operations Description Classes that represent and manipulate quaternions. Contain definitions for basic arithmetic functions in a static class. Quaternions are an extension of the idea of complex numbers, and a quaternion is defined as: q = a + b*i + c*j + d*k In 1844 Hamilton described a system in which numbers were composed of a real part and 3 imaginary and independent parts (i,j,k), such that: i^2 = j^2 = k^2 = -1 and ij = k, jk = i, ki = j and ji = -k, kj = -i, ik = -j The above are known as "Hamilton's rules" Maintainers Jesus M. Castagnetto <jmcastagnetto@php.net> (lead) Version 0.7.1 Release Date 2003-01-17 Release License PHP Release State beta Release Notes Quaternion manipulation package. Package.xml Version 1.0 Last Installed Version - None - Last Modified 2005-04-09 ]]></example> <example type="shell" title="Acerca de un paquete remoto"><![CDATA[$ pear remote-info PHP_Compat PACKAGE DETAILS: ================ Latest 1.3.1 Installed - no - Package PHP_Compat License PHP License Category PHP Summary Provides missing functionality for older versions of PHP Description PHP_Compat provides missing functionality in the form of constants and functions for older versions of PHP. Note: PHP_Compat can be used without installing PEAR. 1) Download the package by clicking the "Download" link. 2) Find the file you need. Each function is in its own file, e.g. array_walk_recursive.php. 3) Place this file somewhere in your include_path. 4) Include it, e.g. <?php require_once 'array_walk_recursive.php';?> The function is now ready to be used. ]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer_gtk.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer_gtk.xml +++ presentations/slides/peru/pear_installer_gtk.xml <slide title='Una GUI en GTK'> <image title='... y si te gustan las GUIs y tienes php-gtk' filename='images/packagemanager_gtk.png' align='center'/> <example type='shell'><![CDATA[$ pear install PEAR_FrontEnd_Gtk]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer_web.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer_web.xml +++ presentations/slides/peru/pear_installer_web.xml <slide title='Una GUI en tu navegador'> <image title='... o si no usa tu navegador de web' filename='images/packagemanager_web.png' align='center'/> <example type='shell'><![CDATA[$ pear install PEAR_FrontEnd_Web]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_metas.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_metas.xml +++ presentations/slides/peru/pear_metas.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Las metas de PEAR"> <list> <bullet effect="hide">Proveer paquetes de código modulares y reusables.</bullet> <bullet effect="hide">Mantener un buen nivel de calidad en el código que sale del repositorio.</bullet> <bullet effect="hide">Tener un estilo de codificación consistente y claro, asi como un diseño razonable para cada paquete.</bullet> <bullet effect="hide">Asegurarse de que lo paquetes son adecuadamente mantenidos, y errores son corregidos.</bullet> <bullet effect="hide">Proveer un ambiente para la discusión constructiva en la cual todos son considerados a la par.</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_newpackagedef.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_newpackagedef.xml +++ presentations/slides/peru/pear_newpackagedef.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Nuevo: Mejorando los paquetes"> <blurb> También en PEAR 1.4, se ha incluido una actualización completa de la forma como se describen los paquetes, y como debe de manejarse: </blurb> <list> <bullet> Una forma más general de describir dependencias, de tal manera que se puedan definir no solo paquetes opcionales y requeridos, si no también versiones recomendadas o requeridas, asi como la posibilidad de que estos provengan de diferentes canales de distribución. </bullet> <bullet> Definición de nuevos roles para los archivos, y las tareas asociadas con cada nuevo rol. Esto es crÃtico para sistemas integrados (por ejemplo un CMS, o un Bulletin Board), en los cuales se requiere una organización especÃfica del código instalado. </bullet> <bullet> Posibilidad de definir tareas y scripts que corran luego de finalizada la instalación del código, para finalizar la configuración del sistema, o simplemente para limpiar archivos temporales. </bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_packages.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_packages.xml +++ presentations/slides/peru/pear_packages.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Paquetes en PEAR"> <image filename="images/pear-packages.jpg" align="center"/> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_pearinfo.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_pearinfo.xml +++ presentations/slides/peru/pear_pearinfo.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="PEAR_Info"> <image filename="images/pear_info.jpg" align="center"/> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_pepr.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_pepr.xml +++ presentations/slides/peru/pear_pepr.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="PEPr: Manejando nuevas propuestas"> <blurb> PEPr fue creado para hacer mas fácil y transparente el proceso de proponer un nuevo paquete a ser incluido en PEAR. </blurb> <break/> <blurb> El proceso de propuesta es bien directo y linear: </blurb> <list> <bullet>Discusión en pear-dev de la idea/código</bullet> <bullet>Escritura de un borrador de propuesta (opcional)</bullet> <bullet>Poner la propuesta a los comentarios de los otros desarrolladores, y cambiarla en respuesta a las ideas intercambiadas</bullet> <bullet>Sujetar la propuesta a votación general</bullet> </list> <break/> <blurb> Un paquete se aprueba si tiene *5 o más puntos positivos* al final del periodo de votación. Pasado esto, el desarrollador añade el paquete a la lista de los ofrecidos en PEAR, y empieza el ciclo de desarrollo normal. </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_que_es.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_que_es.xml +++ presentations/slides/peru/pear_que_es.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="¿Qué es PEAR?"> <image filename="images/pear-poster_small.jpg" align="right"/> <list> <bullet effect="hide">¿Una fruta dulce y jugosa?</bullet> <bullet effect="hide">¿Una comunidad de programadores?</bullet> <bullet effect="hide">¿Un repositorio de código de buena calidad y reusable?</bullet> <bullet effect="hide">¿Un sistema para la distribución y mantenimiento de código?</bullet> <bullet effect="hide">¿Un proyecto en continua evolución?</bullet> <bullet effect="hide">¿Un sitio de web todo verde?</bullet> </list> </slide>
http://cvs.php.net/diff.php/presentations/slides/peru/pear_titulo.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/pear_titulo.xml diff -u presentations/slides/peru/pear_titulo.xml:1.1 presentations/slides/peru/pear_titulo.xml:1.2 --- presentations/slides/peru/pear_titulo.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/pear_titulo.xml Sat Apr 9 13:02:49 2005 @@ -3,7 +3,7 @@ <blurb>*PEAR*: PHP Extensions and Applications Repository. El repositorio de código reusable en PHP</blurb> <list> - <bullet effect="hide">Las metas de PEAR</bullet> + <bullet effect="hide">¿Qué es PEAR?</bullet> <bullet effect="hide">¿Quiénes componen PEAR?</bullet> <bullet effect="hide">La dinámica del desarrollo en PEAR</bullet> <bullet effect="hide">Planes futuros: canales de distribución, dependencias distribuidas, http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_abstract.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_abstract.xml diff -u presentations/slides/peru/php5_oop_abstract.xml:1.1 presentations/slides/peru/php5_oop_abstract.xml:1.2 --- presentations/slides/peru/php5_oop_abstract.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_abstract.xml Sat Apr 9 13:02:49 2005 @@ -5,6 +5,5 @@ base para una serie de otras clases que la extienden e implementan sus métodos. </blurb> -<example type="php" filename="ejemplos/abstract.php" - fontsize="1.6em" result="1" /> +<example type="php" filename="ejemplos/abstract.php" result="1"/> </slide> http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_autoclassloading.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_autoclassloading.xml diff -u presentations/slides/peru/php5_oop_autoclassloading.xml:1.1 presentations/slides/peru/php5_oop_autoclassloading.xml:1.2 --- presentations/slides/peru/php5_oop_autoclassloading.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_autoclassloading.xml Sat Apr 9 13:02:49 2005 @@ -6,27 +6,27 @@ de clases cuando el programa esta corriendo. </blurb> <example title="[archivo: Math/Matrix.php]" type="php"><![CDATA[<?php - class Math_Matrix { + class Math_Matrix { /* ... */ - } + } ?>]]> </example> <example title="[archivo: Math/Quaternion.php]" type="php"><![CDATA[<?php - class Math_Quaternion { + class Math_Quaternion { /* ... */ - } + } ?>]]> </example> <example title="[archivo: calculos.php]" type="php"><![CDATA[<?php - function __autoload($classname) { + function __autoload($classname) { list($math, $fname) = explode('_', $classname); - include_once "{$math}/{$fname}.php"; - } + include_once "{$math}/{$fname}.php"; + } - $m = new Math_Matrix(); - $q = new Math_Quaternion(); + $m = new Math_Matrix(); + $q = new Math_Quaternion(); ?>]]></example> </slide> - + http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_call.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_call.xml diff -u presentations/slides/peru/php5_oop_call.xml:1.1 presentations/slides/peru/php5_oop_call.xml:1.2 --- presentations/slides/peru/php5_oop_call.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_call.xml Sat Apr 9 13:02:49 2005 @@ -4,7 +4,7 @@ Cuando un método no esta explicitamente declarado para un objeto, PHP 5 puede pasar la ejecución a un método especial llamado %__call()%. </blurb> -<example type="php" fontsize="1.6em"><![CDATA[<?php +<example type="php" result="1"><![CDATA[<?php class Delegador { private gato; private perro; http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_constants.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_constants.xml diff -u presentations/slides/peru/php5_oop_constants.xml:1.1 presentations/slides/peru/php5_oop_constants.xml:1.2 --- presentations/slides/peru/php5_oop_constants.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_constants.xml Sat Apr 9 13:02:49 2005 @@ -6,15 +6,15 @@ (%define()%). </blurb> <example type="php" result="1"><![CDATA[<?php - class TLD { + class TLD { /* ... */ - const PERU = 'pe'; + const PERU = 'pe'; /* ... */ - } - - define ('PERU', '51'); + } + + define ('PERU', '51'); - echo 'Perú: tld='.TLD::PERU.', código='.PERU; + echo 'Perú: tld='.TLD::PERU.', código='.PERU; ?>]]> </example> http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_dereferencing.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_dereferencing.xml diff -u presentations/slides/peru/php5_oop_dereferencing.xml:1.1 presentations/slides/peru/php5_oop_dereferencing.xml:1.2 --- presentations/slides/peru/php5_oop_dereferencing.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_dereferencing.xml Sat Apr 9 13:02:49 2005 @@ -6,7 +6,7 @@ intermedias: </blurb> <example type="php" result="0"><![CDATA[<?php - $obj1 = new CoolObject(); + $obj1 = new CoolObject(); // en PHP 4 se hacia $tmp = $obj1->getFooObject(); @@ -16,7 +16,7 @@ En cambio, en PHP 5 referencias indirectas (también llamadas derefencias), son permitidas.</blurb> <example type="php" result="0"><![CDATA[<?php - echo $obj1->getFooObject()->result; + echo $obj1->getFooObject()->result; ?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_exceptions.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_exceptions.xml diff -u presentations/slides/peru/php5_oop_exceptions.xml:1.1 presentations/slides/peru/php5_oop_exceptions.xml:1.2 --- presentations/slides/peru/php5_oop_exceptions.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_exceptions.xml Sat Apr 9 13:02:49 2005 @@ -6,7 +6,6 @@ basan en la clase estándar %Exception%. </blurb> <example type="php" result="1"><![CDATA[<?php - class Calc { static function log($num) { if ($num < 0) { @@ -18,10 +17,10 @@ } } - try { + try { Calc::log(-15); - } catch (Exception $e) { - echo $e->getMessage(); - } + } catch (Exception $e) { + echo $e->getMessage(); + } ?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/peru/php5_oop_getset.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_oop_getset.xml diff -u presentations/slides/peru/php5_oop_getset.xml:1.1 presentations/slides/peru/php5_oop_getset.xml:1.2 --- presentations/slides/peru/php5_oop_getset.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_oop_getset.xml Sat Apr 9 13:02:49 2005 @@ -6,26 +6,26 @@ a las variables de una clase, cuando esta no existe explicitamente. </blurb> <example type="php" result="1"><![CDATA[<?php - class Secretos { - private $claves = array ('jorge'=>'ogrej', 'diana'=>'azul123'); + class Secretos { + private $claves = array ('jorge'=>'ogrej', 'diana'=>'azul123'); - function __get($varName) { + function __get($varName) { if (array_key_exists($varName, $this->claves)) { return $this->claves[$varName]; } - } + } - function __set($varName, $value) { + function __set($varName, $value) { $this->claves[$varName] = $value; - } + } - } + } - $obj = new Secretos(); - $obj->hugo = 'gregorian-chants_rewl'; - echo "La clave de Diana es {$obj->diana}<br />\n"; - echo "Hugo prefiere {$obj->hugo}, <br />\n"; - echo "Mientras que Jorge astutamente usa {$obj->jorge}\n"; + $obj = new Secretos(); + $obj->hugo = 'gregorian-chants_rewl'; + echo "La clave de Diana es {$obj->diana}<br />\n"; + echo "Hugo prefiere {$obj->hugo}, <br />\n"; + echo "Mientras que Jorge astutamente usa {$obj->jorge}\n"; ?> ]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/peru/php5_titulo.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/php5_titulo.xml diff -u presentations/slides/peru/php5_titulo.xml:1.1 presentations/slides/peru/php5_titulo.xml:1.2 --- presentations/slides/peru/php5_titulo.xml:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/php5_titulo.xml Sat Apr 9 13:02:49 2005 @@ -3,7 +3,7 @@ <blurb>*¿Qué hay de nuevo en PHP 5?*</blurb> <list type="darrow" fontsize="3.5em"> <bullet effect="hide">Soporte para Programación Orientada a Objetos</bullet> - <bullet effect="hide">SimpleXML, DOM, y XSL</bullet> + <bullet effect="hide">SimpleXML: una forma directa y simple de manipular XML</bullet> <bullet effect="hide">SQLite: base de datos sencilla pero poderosa</bullet> <bullet effect="hide">Streams y Filtros</bullet> <bullet effect="hide">... y mucho más (SPL, SOAP, DOM, XSL, Tidy, etc.)</bullet> http://cvs.php.net/diff.php/presentations/slides/peru/style.css?r1=1.1&r2=1.2&ty=u Index: presentations/slides/peru/style.css diff -u presentations/slides/peru/style.css:1.1 presentations/slides/peru/style.css:1.2 --- presentations/slides/peru/style.css:1.1 Sat Apr 9 08:43:29 2005 +++ presentations/slides/peru/style.css Sat Apr 9 13:02:49 2005 @@ -50,7 +50,7 @@ div.mainarea { margin-top: 50px; top: 120px; -width: 800px; +width: 98%; height: 620px; overflow: auto; overflow: -moz-scrollbars-vertical; http://cvs.php.net/co.php/presentations/slides/peru/ldd2005_conclusion.xml?r=1.1&p=1 Index: presentations/slides/peru/ldd2005_conclusion.xml +++ presentations/slides/peru/ldd2005_conclusion.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Conclusiones (1)"> <list> <bullet> PHP 5 ha logrado mejorar enormenente el soporte para clases y objetos, sin detrimentar el soporte a un estilo de programación procedural clásico. </bullet> <bullet> Algunas nuevas extensiones como SQLite y SimpleXML, hacen posible el escribir sistemas en los que los únicos requerimientos sean Apache y PHP. </bullet> <bullet> Con flujos (streams) y filtros, uno solo esta limitado por la propia imaginación. En principio podemos procesar sencilla y consistentemente cualquier fuente de datos. </bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/ldd2005_conclusion2.xml?r=1.1&p=1 Index: presentations/slides/peru/ldd2005_conclusion2.xml +++ presentations/slides/peru/ldd2005_conclusion2.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Conclusiones (2)"> <list> <bullet> La comunidad de PEAR provee código robusto, bien mantenido, y que ha sido sometido a escrutinio colectivo. </bullet> <bullet> El comando "pear" es tu mejor amigo cuando quieras instalar una libreria o paquete. Y no necesita que el paquete provenga de PEAR, por ejemplo, el group de Horde tiene algunas librerias en el formato de PEAR. </bullet> <bullet> Atrevete a presentar un paquete a PEAR, es una buena experiencia aunque alguito dolorosa al ego %:-)% </bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/ldd2005_gracias.xml?r=1.1&p=1 Index: presentations/slides/peru/ldd2005_gracias.xml +++ presentations/slides/peru/ldd2005_gracias.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Gracias a todos ..."> <list> <bullet effect="hide"> los organizadores, por el esfuerzo de poner este evento con mucho orden y profesionalismo, </bullet> <bullet effect="hide"> los asistentes, por haber soportado bien todas estas horas sentados, y por no quedarse dormidos cuando daba mi charla, </bullet> <bullet effect="hide"> los rayados de PHP y PEAR que siempren hacen algo que nos asombra y hace la vida del programador mas simple, </bullet> <bullet effect="hide"> los usuarios de nuestros programas de Open Source, que nos dejan dorminos en nuestros laureles, y siempre encuentrar el problema que nosotros jurabamos no podia ocurrir. </bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_channels.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_channels.xml +++ presentations/slides/peru/pear_channels.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Nuevo: Canales de distribución"> <blurb> En PEAR 1.4 (en alfa en este momento), hay soporte para canales de distribución de código que no venga directamente de pear.php.net, de este modo programadores que hacen sus propios paquetes y sistemas puede beneficiarse de la infraestructura de manejo e instalación de PEAR. </blurb> <blurb> Los canales son definidos en un channel.xml, y proveen: </blurb> <list> <bullet> Una forma efectiva y robusta de distribuir dependencias. </bullet> <bullet> Un método simple de instalar programas complejos que esten usando librerias y paquetes de diversa procedencia. </bullet> <bullet> Un mecanismo para actualizaciones selectivas de componentes, pues si solamente el paquete de Foo_Bar de PEAR se ha actualizado, no hay ya necesidad de re-instalar todo el sistema, como ocurre ahora en muchos casos. </bullet> </list> <blurb> Crear un canal de distribución propio no es difÃcil, hay ya instrucciones extra-oficiales de los programadores que estan desarrollando el sistema de canales. Ver, por ejemplo, el Blog de Greg [1], y el artÃculo completo de Tobias [2]. </blurb> <link leader="[1] " href="http://greg.chiaraquartet.net/" target="_blank"/> <link leader="[2] " href="http://www.schlitt.info/applications/blog/archives/308-Set-up-your-own-PEAR-channel.html" target="_blank"/> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_codingstandards.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_codingstandards.xml +++ presentations/slides/peru/pear_codingstandards.xml <slide title='Estándares de código'> <blurb> Hay ciertas reglas y estándares para el código que esta en PEAR: </blurb> <list type='number'> <bullet> Las clases deben de tener un nombre descriptivo, e.j. *TemperatureControl*, *HTML_Table*. </bullet> <bullet> Los miembros públicos deben de seguir la convención de 'Camel caps', excepto por el constructor de la clase, e.j. *addRow()*, *solveEquation()*, *HTML_Table()*. </bullet> <bullet> Los miembros privados deben de empezar con un subrayado "%_%", e.j. *_validate()*, *$this->_numRows*. </bullet> <bullet> Las constantes deberan ser todas en mayúsculas y prefijadas con el nombre del paquete, e.j. define('*MATH_STATS_CUMMULATIVE*',1); </bullet> <bullet> Si se necesitan variable globales, sus nombres deben de estar prefijados por el nombre del paquete y empezar con un subrayado, e.j. $GLOBALS['*_PEAR_default_error_mode*'] </bullet> <bullet> En general, se prefiere que haya una clase por archivo, aunque se pueden dar excepciones que tengan una razón válida (performance por ejemplo). </bullet> <bullet> Los nombres de los paquetes siguen una jerarquÃa llana, que debe reflejar la estructura de los directorios en los que va a ser instalado, e.j. el paquete HTML_QuickForm_Controller, será instalado en HTML/QuickForm/Controller. </bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_comunidad1.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_comunidad1.xml +++ presentations/slides/peru/pear_comunidad1.xml <slide title="La comunidad de PEAR (1)"> <image filename="images/jerry_leibowitz-Ecosystem_small.jpg" align="right"/> <list> <bullet>Muchos desarrolladores de paquetes</bullet> <bullet>Grupo de administración</bullet> <bullet>Equipo de documentación</bullet> <bullet>Grupo de control de calidad (QA)</bullet> <bullet>Proceso comunitario para la aprobación de paquetes</bullet> <bullet>Una meritocracia: tu código y tus acciones son mas importantes que tu tÃtulo, nombre, posición, grado académico, etc.</bullet> <bullet>Constante competición y colaboración</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_comunidad2.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_comunidad2.xml +++ presentations/slides/peru/pear_comunidad2.xml <slide title="La comunidad de PEAR (2)"> <image filename='images/pear.png' align='right'/> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_comunidad3.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_comunidad3.xml +++ presentations/slides/peru/pear_comunidad3.xml <slide title="La comunidad de PEAR (3)"> <image filename='images/php-pear-gtk.png' align='right'/> <blurb> Y esta comunidad es parte de una más grande aún, que forma el ecosistema alrededor de PHP. </blurb> <image filename='images/php-small.png' align='left'/> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer1.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer1.xml +++ presentations/slides/peru/pear_installer1.xml <slide title='El comando "pear"'> <blurb> Cuando se instala PHP desde código, uno de los comandos que se añaden al sistema es "%pear%", el cual es el manejador de paquetes (creación, instalación, desinstalación, etc.) de PEAR. </blurb> <example type="shell"><![CDATA[$ pear help Commands: build Build an Extension From C Source bundle Unpacks a Pecl Package channel-add Add a Channel channel-alias Specify an alias to a channel name channel-delete Remove a Channel From the List channel-discover Initialize a Channel from its server channel-info Retrieve Information on a Channel channel-update Update an Existing Channel clear-cache Clear XML-RPC Cache config-create Create a Default configuration file config-get Show One Setting config-help Show Information About Setting config-set Change Setting config-show Show All Settings convert Convert a package.xml 1.0 to package.xml 2.0 format cvsdiff Run a "cvs diff" for all files in a package cvstag Set CVS Release Tag download Download Package download-all Downloads each available package from the default channel info Display information about a package install Install Package list List Installed Packages In The Default Channel list-all List All Packages list-channels List Available Channels list-files List Files In Installed Package list-upgrades List Available Upgrades login Connects and authenticates to remote server logout Logs out from the remote server makerpm Builds an RPM spec file from a PEAR package package Build Package package-dependencies Show package dependencies package-validate Validate Package Consistency remote-info Information About Remote Packages remote-list List Remote Packages run-scripts Run Post-Install Scripts bundled with a package run-tests Run Regression Tests search Search remote package database shell-test Shell Script Test sign Sign a package distribution file uninstall Un-install Package update-channels Update the Channel List upgrade Upgrade Package upgrade-all Upgrade All Packages Usage: pear [options] command [command-options] <parameters> Type "pear help options" to list all options. Type "pear help shortcuts" to list all command shortcuts. Type "pear help <command>" to get the help for the specified command. ]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer2.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer2.xml +++ presentations/slides/peru/pear_installer2.xml <slide title='Manejando paquetes'> <example type='shell' title='Instalando paquetes'><![CDATA[$ pear install PEAR_Frontend_Web downloading PEAR_Frontend_Web-0.3.tgz ... ...done: 32,821 bytes requires package `Net_UserAgent_Detect' PEAR_Frontend_Web: dependencies failed $ pear install Net_UserAgent_Detect downloading Net_UserAgent_Detect-1.0.tgz ... ...done: 7,699 bytes install ok: Net_UserAgent_Detect 1.0 $ pear install PEAR_Frontend_Web downloading PEAR_Frontend_Web-0.3.tgz ... ...done: 32,821 bytes install ok: PEAR_Frontend_Web 0.3]]></example> <example type='shell' title='Desinstalando'><![CDATA[$ pear uninstall PEAR_Info uninstall ok: PEAR_Info]]></example> <example type='shell' title='Acualizando paquetes'><![CDATA[$ pear upgrade HTML_QuickForm downloading HTML_QuickForm-3.0.tgz ... ...done: 62,379 bytes upgrade ok: HTML_QuickForm 3.0]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer3.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer3.xml +++ presentations/slides/peru/pear_installer3.xml <slide title='Listando paquetes'> <example type="shell" title="Listar paquetes instalados"><![CDATA[$ pear list INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: ========================================= PACKAGE VERSION STATE Archive_Tar 1.3.1 stable Benchmark 1.2.2 stable Cache_Lite 1.4.1 stable (...) XML_RSS 0.9.2 stable XML_Tree 2.0.0RC2 beta XML_Util 1.1.1 stable ]]></example> <example type="shell" title="Listar paquetes disponibles"><![CDATA[$ pear list-all ALL PACKAGES: ============= PACKAGE LATEST LOCAL pear/APC 2.0.4 Alternative PHP Cache pear/Cache 1.5.4 Framework for caching of arbitrary data. pear/Cache_Lite 1.4.1 1.4.1 Fast and Safe little cache system (...) pear/Services_Google 0.1.1 Provides access to the Google Web APIs pear/Services_Technorati 0.5.5 A class for interacting with the Technorati API pear/SOAP 0.8.1 0.8.1 SOAP Client/Server for PHP pear/SOAP_Interop 0.8 0.8 SOAP Interop Test Application pear/UDDI 0.2.0alpha4 UDDI for PHP pear/XML_RPC 1.3.0RC1 1.3.0RC1 PHP implementation of the XML-RPC protocol pear/XML_SVG 0.0.3 XML_SVG API ]]></example> <example type="shell" title="Listar actualizaciones disponibles"><![CDATA[$ pear list-upgrades pear.php.net Available Upgrades (alpha, beta, stable): ====================================================== Channel Package Local Remote Size pear.php.net PEAR_PackageFileManager 1.5.0 (stable) 1.5.1 (stable) 46kB ]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer4.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer4.xml +++ presentations/slides/peru/pear_installer4.xml <slide title='Consiguiendo información'> <example type="shell" title="Acerca de un paquete instalado"><![CDATA[$ pear info Math_Quaternion ABOUT MATH_QUATERNION-0.7.1 =========================== Provides Classes: Package Math_Quaternion Summary Classes that define Quaternions and their operations Description Classes that represent and manipulate quaternions. Contain definitions for basic arithmetic functions in a static class. Quaternions are an extension of the idea of complex numbers, and a quaternion is defined as: q = a + b*i + c*j + d*k In 1844 Hamilton described a system in which numbers were composed of a real part and 3 imaginary and independent parts (i,j,k), such that: i^2 = j^2 = k^2 = -1 and ij = k, jk = i, ki = j and ji = -k, kj = -i, ik = -j The above are known as "Hamilton's rules" Maintainers Jesus M. Castagnetto <jmcastagnetto@php.net> (lead) Version 0.7.1 Release Date 2003-01-17 Release License PHP Release State beta Release Notes Quaternion manipulation package. Package.xml Version 1.0 Last Installed Version - None - Last Modified 2005-04-09 ]]></example> <example type="shell" title="Acerca de un paquete remoto"><![CDATA[$ pear remote-info PHP_Compat PACKAGE DETAILS: ================ Latest 1.3.1 Installed - no - Package PHP_Compat License PHP License Category PHP Summary Provides missing functionality for older versions of PHP Description PHP_Compat provides missing functionality in the form of constants and functions for older versions of PHP. Note: PHP_Compat can be used without installing PEAR. 1) Download the package by clicking the "Download" link. 2) Find the file you need. Each function is in its own file, e.g. array_walk_recursive.php. 3) Place this file somewhere in your include_path. 4) Include it, e.g. <?php require_once 'array_walk_recursive.php';?> The function is now ready to be used. ]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer_gtk.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer_gtk.xml +++ presentations/slides/peru/pear_installer_gtk.xml <slide title='Una GUI en GTK'> <image title='... y si te gustan las GUIs y tienes php-gtk' filename='images/packagemanager_gtk.png' align='center'/> <example type='shell'><![CDATA[$ pear install PEAR_FrontEnd_Gtk]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_installer_web.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_installer_web.xml +++ presentations/slides/peru/pear_installer_web.xml <slide title='Una GUI en tu navegador'> <image title='... o si no usa tu navegador de web' filename='images/packagemanager_web.png' align='center'/> <example type='shell'><![CDATA[$ pear install PEAR_FrontEnd_Web]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_metas.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_metas.xml +++ presentations/slides/peru/pear_metas.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Las metas de PEAR"> <list> <bullet effect="hide">Proveer paquetes de código modulares y reusables.</bullet> <bullet effect="hide">Mantener un buen nivel de calidad en el código que sale del repositorio.</bullet> <bullet effect="hide">Tener un estilo de codificación consistente y claro, asi como un diseño razonable para cada paquete.</bullet> <bullet effect="hide">Asegurarse de que lo paquetes son adecuadamente mantenidos, y errores son corregidos.</bullet> <bullet effect="hide">Proveer un ambiente para la discusión constructiva en la cual todos son considerados a la par.</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_newpackagedef.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_newpackagedef.xml +++ presentations/slides/peru/pear_newpackagedef.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Nuevo: Mejorando los paquetes"> <blurb> También en PEAR 1.4, se ha incluido una actualización completa de la forma como se describen los paquetes, y como debe de manejarse: </blurb> <list> <bullet> Una forma más general de describir dependencias, de tal manera que se puedan definir no solo paquetes opcionales y requeridos, si no también versiones recomendadas o requeridas, asi como la posibilidad de que estos provengan de diferentes canales de distribución. </bullet> <bullet> Definición de nuevos roles para los archivos, y las tareas asociadas con cada nuevo rol. Esto es crÃtico para sistemas integrados (por ejemplo un CMS, o un Bulletin Board), en los cuales se requiere una organización especÃfica del código instalado. </bullet> <bullet> Posibilidad de definir tareas y scripts que corran luego de finalizada la instalación del código, para finalizar la configuración del sistema, o simplemente para limpiar archivos temporales. </bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_packages.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_packages.xml +++ presentations/slides/peru/pear_packages.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="Paquetes en PEAR"> <image filename="images/pear-packages.jpg" align="center"/> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_pearinfo.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_pearinfo.xml +++ presentations/slides/peru/pear_pearinfo.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="PEAR_Info"> <image filename="images/pear_info.jpg" align="center"/> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_pepr.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_pepr.xml +++ presentations/slides/peru/pear_pepr.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="PEPr: Manejando nuevas propuestas"> <blurb> PEPr fue creado para hacer mas fácil y transparente el proceso de proponer un nuevo paquete a ser incluido en PEAR. </blurb> <break/> <blurb> El proceso de propuesta es bien directo y linear: </blurb> <list> <bullet>Discusión en pear-dev de la idea/código</bullet> <bullet>Escritura de un borrador de propuesta (opcional)</bullet> <bullet>Poner la propuesta a los comentarios de los otros desarrolladores, y cambiarla en respuesta a las ideas intercambiadas</bullet> <bullet>Sujetar la propuesta a votación general</bullet> </list> <break/> <blurb> Un paquete se aprueba si tiene *5 o más puntos positivos* al final del periodo de votación. Pasado esto, el desarrollador añade el paquete a la lista de los ofrecidos en PEAR, y empieza el ciclo de desarrollo normal. </blurb> </slide> http://cvs.php.net/co.php/presentations/slides/peru/pear_que_es.xml?r=1.1&p=1 Index: presentations/slides/peru/pear_que_es.xml +++ presentations/slides/peru/pear_que_es.xml <?xml version="1.0" encoding="UTF-8"?> <slide title="¿Qué es PEAR?"> <image filename="images/pear-poster_small.jpg" align="right"/> <list> <bullet effect="hide">¿Una fruta dulce y jugosa?</bullet> <bullet effect="hide">¿Una comunidad de programadores?</bullet> <bullet effect="hide">¿Un repositorio de código de buena calidad y reusable?</bullet> <bullet effect="hide">¿Un sistema para la distribución y mantenimiento de código?</bullet> <bullet effect="hide">¿Un proyecto en continua evolución?</bullet> <bullet effect="hide">¿Un sitio de web todo verde?</bullet> </list> </slide>