cvs: presentations / srm-montreal.xml /slides/srm banana.jpg banana.xml by-example.xml cray.jpg design.xml fin.xml fireworks.jpg future1.xml
future2.xml interact.xml intro.xml online1.xml online2.xml parts.xml persistant1.xml persistant2.xml phphist.xml protocols.xml qmark.png questions.xml
resources.xml srm-design.jpg srm-tree1.xml srm-tree2.xml srm-tree3.xml style.css timeline.xml tree1.xml tree2.xml
| From: | Derick Rethans | Date: | Fri, 28 Mar 2003 15:11:24 +0000 |
| Subject: | cvs: presentations / srm-montreal.xml /slides/srm banana.jpg banana.xml by-example.xml cray.jpg design.xml fin.xml fireworks.jpg future1.xml future2.xml interact.xml intro.xml online1.xml online2.xml parts.xml persistant1.xml persistant2.xml phphist.xml protocols.xml qmark.png questions.xml resources.xml srm-design.jpg srm-tree1.xml srm-tree2.xml srm-tree3.xml style.css timeline.xml tree1.xml tree2.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-625@lists.php.net to get a copy of this message | ||
derick Fri Mar 28 10:11:24 2003 EDT
Added files:
/presentations srm-montreal.xml
/presentations/slides/srm banana.jpg banana.xml by-example.xml
cray.jpg design.xml fin.xml fireworks.jpg
future1.xml future2.xml interact.xml
intro.xml online1.xml online2.xml
parts.xml persistant1.xml persistant2.xml
phphist.xml protocols.xml qmark.png
questions.xml resources.xml
srm-design.jpg srm-tree1.xml
srm-tree2.xml srm-tree3.xml style.css
timeline.xml tree1.xml tree2.xml
Log:
- Added my SRM presentation from Montreal
Index: presentations/srm-montreal.xml +++ presentations/srm-montreal.xml <presentation template="php" navmode="html" navbarbackground="#3C5BB4" stylesheet="presentations/slides/srm/style.css" backgroundfixed="1" > <topic>SRM</topic> <title>Script Running Machine</title> <event>Conférence PHP Québec</event> <location>Montreal, Canada</location> <date>March 20th, 2003</date> <speaker>Derick Rethans</speaker> <email>d.rethans@jdimedia.nl</email> <slide>slides/ze-xdebug/title.xml</slide> <slide>slides/srm/intro.xml</slide> <slide>slides/srm/timeline.xml</slide> <slide>slides/srm/phphist.xml</slide> <slide>slides/srm/online1.xml</slide> <slide>slides/srm/online2.xml</slide> <slide>slides/srm/persistant1.xml</slide> <slide>slides/srm/persistant2.xml</slide> <slide>slides/srm/tree1.xml</slide> <slide>slides/srm/tree2.xml</slide> <slide>slides/phpperform/extern_srm.xml</slide> <slide>slides/srm/banana.xml</slide> <slide>slides/ze-xdebug/opcode.xml</slide> <slide>slides/srm/interact.xml</slide> <slide>slides/srm/protocols.xml</slide> <!-- <slide>slides/srm/by-example.xml</slide> <slide>slides/srm/srm-online1.xml</slide> <slide>slides/srm/srm-online2.xml</slide> <slide>slides/srm/srm-caching1.xml</slide> <slide>slides/srm/srm-caching2.xml</slide> --> <slide>slides/srm/srm-tree1.xml</slide> <slide>slides/srm/srm-tree2.xml</slide> <slide>slides/srm/srm-tree3.xml</slide> <slide>slides/srm/parts.xml</slide> <slide>slides/srm/design.xml</slide> <slide>slides/srm/future1.xml</slide> <slide>slides/srm/future2.xml</slide> <!-- <slide>slides/srm/srm-game1.xml</slide> <slide>slides/srm/srm-game2.xml</slide> --> <slide>slides/srm/questions.xml</slide> <slide>slides/srm/fin.xml</slide> <slide>slides/srm/resources.xml</slide> </presentation> Index: presentations/slides/srm/banana.xml +++ presentations/slides/srm/banana.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Bananas</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Persistent</bullet> <bullet>Like J**a beans</bullet> <bullet>Compiled only once</bullet> </list> <image align="center" filename="banana.jpg" /> </slide> Index: presentations/slides/srm/by-example.xml +++ presentations/slides/srm/by-example.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>SRM By Example</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Who's online</bullet> <bullet>Function lib / caching</bullet> <bullet>Persistent tree</bullet> </list> </slide> Index: presentations/slides/srm/design.xml +++ presentations/slides/srm/design.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Design diagram</title> <blurb> </blurb> <blurb> </blurb> <image align="center" filename="srm-design.jpg" /> </slide> Index: presentations/slides/srm/fin.xml +++ presentations/slides/srm/fin.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title> </title> <blurb> </blurb> <blurb> </blurb> <blurb align="center" fontsize="10em">FIN</blurb> <image align="center" filename="fireworks.jpg" /> </slide> Index: presentations/slides/srm/future1.xml +++ presentations/slides/srm/future1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Future</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Periodic calling of functions</bullet> <bullet>ACLs to Bananas</bullet> <bullet>Load balancing</bullet> </list> </slide> Index: presentations/slides/srm/future2.xml +++ presentations/slides/srm/future2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Future</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Zend Engine 2</bullet> <bullet>$obj->foo = array (1, 2, 3, 4);</bullet> <bullet>echo $obj->foo[1];</bullet> </list> </slide> Index: presentations/slides/srm/interact.xml +++ presentations/slides/srm/interact.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Interaction</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="4.5em"> <bullet>With the SRM daemon</bullet> </list> <list effect="slide" fontsize="4em" marginleft="2em"> <bullet>UNIX domain sockets</bullet> <bullet>$srm = new SRM ('/var/srm.socket');</bullet> <bullet>TCP/IP sockets</bullet> <bullet>$srm = new SRM ('localhost', 7777);</bullet> </list> <list effect="slide" fontsize="4.5em"> <bullet>With Bananas</bullet> </list> <list effect="slide" fontsize="4em" marginleft="2em"> <bullet>$binsearch = new SRMApp($srm, 'binsearch');</bullet> <bullet>$binsearch->function('param1', 2);</bullet> </list> </slide> Index: presentations/slides/srm/intro.xml +++ presentations/slides/srm/intro.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Introduction</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>History</bullet> <bullet>SRM by example</bullet> <bullet>Technology</bullet> <bullet>Future</bullet> </list> </slide> Index: presentations/slides/srm/online1.xml +++ presentations/slides/srm/online1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>The Past: Users on-line</title> <blurb fontsize="4em">Typical script to count the users 'online': </blurb> <example fontsize="1.25em"><![CDATA[<?php $timeoutseconds = 300; $timestamp = time(); $timeout = $timestamp - $timeoutseconds; mysql_connect(); mysql_select_db('users'); $insert = mysql_query( "INSERT INTO online VALUES ('$timestamp', '$REMOTE_ADDR', '$PHP_SELF')"); $delete = mysql_query( "DELETE FROM online WHERE timestamp < $timeout"); $result = mysql_query( "SELECT DISTINCT ip FROM online WHERE file = '$PHP_SELF'"); $users = mysql_num_rows($result); ? >]]></example> </slide> Index: presentations/slides/srm/online2.xml +++ presentations/slides/srm/online2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>The Past: Users on-line</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>3! queries per page</bullet> <bullet>slow</bullet> <bullet>inefficient</bullet> <bullet>did I say it was slow?</bullet> </list> </slide> Index: presentations/slides/srm/parts.xml +++ presentations/slides/srm/parts.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parts</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Daemon</bullet> <bullet>SAPI for PHP</bullet> <bullet>Extension for PHP</bullet> </list> </slide> Index: presentations/slides/srm/persistant1.xml +++ presentations/slides/srm/persistant1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Persistent objects</title> <blurb>__sleep and __wakeup:</blurb> <example fontsize="1.25em"><![CDATA[// file.class.php <?php class File { function File($filename) { $this->filename = $filename; $this->fp = fopen($filename, 'rb'); } function seek($pos) { fseek($this->fp, $pos); } function __sleep() { $this->pos = ftell($this->fp); return array('fp', 'pos', 'filename'); } function __wakeup() { $this->fp = fopen($this->filename, 'rb'); fseek($this->fp, $this->pos); } } ? >]]></example> </slide> Index: presentations/slides/srm/persistant2.xml +++ presentations/slides/srm/persistant2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Persistent objects</title> <blurb>__sleep and __wakeup example:</blurb> <example fontsize="1.5em"><![CDATA[// example1.php <?php require 'file.class.php'; session_start(); $f = new File('/etc/hosts'); $f->seek(20); $_SESSION['f'] = $f; ? >]]></example> <example fontsize="1.5em"><![CDATA[// example2.php <?php require 'file.class.php'; session_start(); var_dump($_SESSION['f']); ? >]]></example> </slide> Index: presentations/slides/srm/phphist.xml +++ presentations/slides/srm/phphist.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP History (2 of 12)</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Loops in early versions</bullet> <bullet>boring! let's go on with the cool stuff...</bullet> </list> </slide> Index: presentations/slides/srm/protocols.xml +++ presentations/slides/srm/protocols.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Protocols</title> <blurb> </blurb> <blurb> </blurb> <blurb fontsize="5em">SRM's support for protocols is extensible:</blurb> <list effect="slide" fontsize="4em"> <bullet>Native protocol: fast</bullet> <bullet>XML-RPC: easy to use from other languages</bullet> <bullet>SOAP: harder to use, but widespread support</bullet> </list> </slide> Index: presentations/slides/srm/questions.xml +++ presentations/slides/srm/questions.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Questions</title> <blurb></blurb> <image filename="qmark.png" align="center"/> </slide> Index: presentations/slides/srm/resources.xml +++ presentations/slides/srm/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <link fontsize="2em" marginleft="5em" leader="These Slides: " href="http://pres.derickrethans.nl/srm-montreal" target="_new"/> <link fontsize="2em" marginleft="5em" leader="SRM: " href="http://www.vl-srm.net" target="_new"/> <blurb> </blurb> <link fontsize="2em" marginleft="5em" leader="PHP: " href="http://www.php.net" target="_new"/> </slide> Index: presentations/slides/srm/srm-tree1.xml +++ presentations/slides/srm/srm-tree1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Persistent Tree</title> <example fontsize="1.4em"><![CDATA[<?php class node { var $key; var $value; var $left; var $right; } class binsearch extends Banana { var $root = NULL; function binsearch($elements) { foreach ($elements as $key => $value) { $this->add_value($key, $value); } var_export($this->root); } function add_value($key, $value) { $ptr = &$this->root; while ($ptr != NULL) { if ($key < $ptr->key) { $ptr = &$ptr->left; } else { $ptr = &$ptr->right; } } $ptr = new node; $ptr->key = $key; $ptr->value = $value; $ptr->left = NULL; $ptr->right = NULL; var_dump(func_get_args()); } function get_value($key) { $ptr = &$this->root; while ($key != $ptr->key && $ptr != NULL) { if ($key < $ptr->key) { $ptr = &$ptr->left; } else { $ptr = &$ptr->right; } } var_dump(func_get_args()); return $ptr ? $ptr->value : FALSE; } function get_all() { var_dump(func_get_args()); return $this->root; } } $tree =& new binsearch(array()); $tree->run(); ? >]]></example> </slide> Index: presentations/slides/srm/srm-tree2.xml +++ presentations/slides/srm/srm-tree2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Persistent Tree</title> <blurb fontsize="3em">Adding a value to the binairy tree:</blurb> <example fontsize="2em"><![CDATA[<?php $s = new SRM('/tmp/srm.socket'); $t = new SRMApp($s, 'binsearch'); $t->add_value($argv[1], $argv[2]); $all = $t->get_all(); var_dump($all); ? >]]></example> </slide> Index: presentations/slides/srm/srm-tree3.xml +++ presentations/slides/srm/srm-tree3.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Persistent Tree</title> <blurb fontsize="3em">Searching for a key in the binairy tree:</blurb> <example fontsize="2em"><![CDATA[<?php $s = new SRM('/tmp/srm.socket'); $t = new SRMApp($s, 'binsearch'); echo $t->get_value($argv[1])."\n"; ? >]]></example> </slide> Index: presentations/slides/srm/style.css +++ presentations/slides/srm/style.css <style title="Default" type="text/css"> body { font-size: 12pt; margin-left:1.5em; margin-right:0em; margin-bottom:0em; background-image: url(presentations/slides/srm/cray.jpg); } ul { padding-top: 20; padding-left: 100; } th.trace { font-family: arial; font-size: 12pt; } td.trace { font-family: arial; font-size: 12pt; } th.tracesml { font-family: arial; font-size: 9pt; } td.tracesml { font-family: arial; font-size: 9pt; } div.sticky { margin: 0; position: fixed; top: 0em; left: 0em; right: auto; bottom: auto; width: auto; } div.shadow { background: #777777; padding: 0.5em; } div.navbar { background: url(images/trans.png) transparent fixed; padding: 4; margin: 0; height: 6em; background-color: #3c5bb4; color: #3c5bb4; font-family: verdana, tahoma, arial, helvetica, sans-serif; z-index: 99; } div.emcode { background: #cccccc; border: thin solid #000000; padding: 0.5em; font-family: monospace; } div.output { font-family: monospace; background: #eeee33; border: thin solid #000000; padding: 0.5em; } table.index { background: #cccccc; border: thin dotted #000000; padding: 0.5em; font-family: monospace; } td.index { background: #cccccc; padding: 1em; font-family: monospace; } h1 { font-size: 2em; } p,li { font-size: 2.6em; } a { text-decoration: none; } a:hover { text-decoration: underline; } c2right { margin : 1em 1em 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; width : 46%; float : right; } c2left { margin : 1em 1em 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; width : 46%; float : left; } box { margin : 0 0 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; float : left; } </style> Index: presentations/slides/srm/timeline.xml +++ presentations/slides/srm/timeline.xml <slide title="PHP History (1 of 12)" layout="2columns"> <table columns="2" border="0" width="100%" align="center" fontsize="3em"> <cell>June 8, 1995</cell><cell>|ff1111|PHP Tools 1.0|</cell> <cell>Oct 17, 1995</cell><cell>PHP/FI 1.92</cell> <cell>Mar. 16, 1996</cell><cell>PHP/FI 1.99k</cell> <cell>June 16, 1997</cell><cell>PHP/FI 2.0b12</cell> <cell>Oct. 29, 1997</cell><cell>PHP 3.0a1</cell> <cell>Nov. 12, 1997</cell><cell>|ff1111|PHP/FI 2.0|</cell> <cell>Dec. 8, 1997</cell><cell>PHP 3.0b1</cell> <cell>Jan. 9, 1998</cell><cell>PHP/FI 2.0.1</cell> <cell>June 6, 1998</cell><cell>|ff1111|PHP 3.0|</cell> <cell>July 4, 1998</cell><cell>PHP 3.0.1</cell> <cell>Mar. 1, 1999</cell><cell>PHP 3.0.7</cell> <cell>July 19, 1999</cell><cell>PHP 4.0b1</cell> <cell>Jan. 1, 2000</cell><cell>PHP 3.0.13</cell> <cell>Oct. 21, 2000</cell><cell>PHP 3.0.18</cell> </table> <divide /> <table columns="2" border="0" width="100%" align="center" fontsize="3em"> <cell>May 22, 2000</cell><cell>|ff1111|PHP 4.0|</cell> <cell>Oct. 11, 2000</cell><cell>PHP 4.0.3</cell> <cell>Apr. 30, 2001</cell><cell>PHP 4.0.5</cell> <cell>June 23, 2001</cell><cell>PHP 4.0.6</cell> <cell>Dec. 10, 2001</cell><cell>|ff1111|PHP 4.1.0|</cell> <cell>Dec. 26, 2001</cell><cell>PHP 4.1.1</cell> <cell>Feb. 27, 2002</cell><cell>PHP 4.1.2</cell> <cell>Apr. 22, 2002</cell><cell>|ff1111|PHP 4.2.0|</cell> <cell>May 13, 2002</cell><cell>PHP 4.2.1</cell> <cell>July 22, 2002</cell><cell>PHP 4.2.2</cell> <cell>Sep. 6, 2002</cell><cell>PHP 4.2.3</cell> <cell>Dec. 27, 2002</cell><cell>|ff1111|PHP 4.3.0|</cell> <cell>Feb. 17, 2003</cell><cell>|ff1111|PHP 4.3.1|</cell> <cell>Aug. 17, 2003</cell><cell>|ff1111|PHP 5.0|</cell> </table> </slide> Index: presentations/slides/srm/tree1.xml +++ presentations/slides/srm/tree1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>The Past: Trees</title> <example fontsize="1.25em"><![CDATA[// binsearch.class.php <?php class node { var $key; var $value; var $left; var $right; } class binsearch { var $root = NULL; function binsearch($elements) { foreach ($elements as $key => $value) { $this->add_value($key, $value); } var_export($this->root); } function add_value($key, $value) { $ptr = &$this->root; while ($ptr != NULL) { if ($key < $ptr->key) { $ptr = &$ptr->left; } else { $ptr = &$ptr->right; } } $ptr = new node; $ptr->key = $key; $ptr->value = $value; $ptr->left = NULL; $ptr->right = NULL; } function get_value($key) { $ptr = &$this->root; while ($key != $ptr->key && $ptr != NULL) { if ($key < $ptr->key) { $ptr = &$ptr->left; } else { $ptr = &$ptr->right; } } return $ptr ? $ptr->value : FALSE; } } ? >]]></example> </slide> Index: presentations/slides/srm/tree2.xml +++ presentations/slides/srm/tree2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>The Past: Trees</title> <example fontsize="1em"><![CDATA[<?php $elements = array ( 'jan' => 'Dorsten', 'derick' => 'Dieren', 'stig' => 'Trondheim', 'dan' => 'Baltimore', 'rasmus' => 'San Francisco', 'ilia' => 'Montreal' ); $tree =& new binsearch($elements); echo $tree->get_value('rasmus'); ? >]]></example> <example fontsize="1em"><![CDATA[<?php class node { var $key = 'jan'; var $value = 'Dorsten'; var $left = class node { var $key = 'derick'; var $value = 'Dieren'; var $left = class node { var $key = 'dan'; var $value = 'Baltimore'; var $left = NULL; var $right = NULL; }; var $right = class node { var $key = 'ilia'; var $value = 'Montreal'; var $left = NULL; var $right = NULL; }; }; var $right = class node { var $key = 'stig'; var $value = 'Trondheim'; var $left = class node { var $key = 'rasmus'; var $value = 'San Francisco'; var $left = NULL; var $right = NULL; }; var $right = NULL; }; } ? >]]></example> </slide>
Index: presentations/srm-montreal.xml +++ presentations/srm-montreal.xml <presentation template="php" navmode="html" navbarbackground="#3C5BB4" stylesheet="presentations/slides/srm/style.css" backgroundfixed="1" > <topic>SRM</topic> <title>Script Running Machine</title> <event>Conférence PHP Québec</event> <location>Montreal, Canada</location> <date>March 20th, 2003</date> <speaker>Derick Rethans</speaker> <email>d.rethans@jdimedia.nl</email> <slide>slides/ze-xdebug/title.xml</slide> <slide>slides/srm/intro.xml</slide> <slide>slides/srm/timeline.xml</slide> <slide>slides/srm/phphist.xml</slide> <slide>slides/srm/online1.xml</slide> <slide>slides/srm/online2.xml</slide> <slide>slides/srm/persistant1.xml</slide> <slide>slides/srm/persistant2.xml</slide> <slide>slides/srm/tree1.xml</slide> <slide>slides/srm/tree2.xml</slide> <slide>slides/phpperform/extern_srm.xml</slide> <slide>slides/srm/banana.xml</slide> <slide>slides/ze-xdebug/opcode.xml</slide> <slide>slides/srm/interact.xml</slide> <slide>slides/srm/protocols.xml</slide> <!-- <slide>slides/srm/by-example.xml</slide> <slide>slides/srm/srm-online1.xml</slide> <slide>slides/srm/srm-online2.xml</slide> <slide>slides/srm/srm-caching1.xml</slide> <slide>slides/srm/srm-caching2.xml</slide> --> <slide>slides/srm/srm-tree1.xml</slide> <slide>slides/srm/srm-tree2.xml</slide> <slide>slides/srm/srm-tree3.xml</slide> <slide>slides/srm/parts.xml</slide> <slide>slides/srm/design.xml</slide> <slide>slides/srm/future1.xml</slide> <slide>slides/srm/future2.xml</slide> <!-- <slide>slides/srm/srm-game1.xml</slide> <slide>slides/srm/srm-game2.xml</slide> --> <slide>slides/srm/questions.xml</slide> <slide>slides/srm/fin.xml</slide> <slide>slides/srm/resources.xml</slide> </presentation> Index: presentations/slides/srm/banana.xml +++ presentations/slides/srm/banana.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Bananas</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Persistent</bullet> <bullet>Like J**a beans</bullet> <bullet>Compiled only once</bullet> </list> <image align="center" filename="banana.jpg" /> </slide> Index: presentations/slides/srm/by-example.xml +++ presentations/slides/srm/by-example.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>SRM By Example</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Who's online</bullet> <bullet>Function lib / caching</bullet> <bullet>Persistent tree</bullet> </list> </slide> Index: presentations/slides/srm/design.xml +++ presentations/slides/srm/design.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Design diagram</title> <blurb> </blurb> <blurb> </blurb> <image align="center" filename="srm-design.jpg" /> </slide> Index: presentations/slides/srm/fin.xml +++ presentations/slides/srm/fin.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title> </title> <blurb> </blurb> <blurb> </blurb> <blurb align="center" fontsize="10em">FIN</blurb> <image align="center" filename="fireworks.jpg" /> </slide> Index: presentations/slides/srm/future1.xml +++ presentations/slides/srm/future1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Future</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Periodic calling of functions</bullet> <bullet>ACLs to Bananas</bullet> <bullet>Load balancing</bullet> </list> </slide> Index: presentations/slides/srm/future2.xml +++ presentations/slides/srm/future2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Future</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Zend Engine 2</bullet> <bullet>$obj->foo = array (1, 2, 3, 4);</bullet> <bullet>echo $obj->foo[1];</bullet> </list> </slide> Index: presentations/slides/srm/interact.xml +++ presentations/slides/srm/interact.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Interaction</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="4.5em"> <bullet>With the SRM daemon</bullet> </list> <list effect="slide" fontsize="4em" marginleft="2em"> <bullet>UNIX domain sockets</bullet> <bullet>$srm = new SRM ('/var/srm.socket');</bullet> <bullet>TCP/IP sockets</bullet> <bullet>$srm = new SRM ('localhost', 7777);</bullet> </list> <list effect="slide" fontsize="4.5em"> <bullet>With Bananas</bullet> </list> <list effect="slide" fontsize="4em" marginleft="2em"> <bullet>$binsearch = new SRMApp($srm, 'binsearch');</bullet> <bullet>$binsearch->function('param1', 2);</bullet> </list> </slide> Index: presentations/slides/srm/intro.xml +++ presentations/slides/srm/intro.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Introduction</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>History</bullet> <bullet>SRM by example</bullet> <bullet>Technology</bullet> <bullet>Future</bullet> </list> </slide> Index: presentations/slides/srm/online1.xml +++ presentations/slides/srm/online1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>The Past: Users on-line</title> <blurb fontsize="4em">Typical script to count the users 'online': </blurb> <example fontsize="1.25em"><![CDATA[<?php $timeoutseconds = 300; $timestamp = time(); $timeout = $timestamp - $timeoutseconds; mysql_connect(); mysql_select_db('users'); $insert = mysql_query( "INSERT INTO online VALUES ('$timestamp', '$REMOTE_ADDR', '$PHP_SELF')"); $delete = mysql_query( "DELETE FROM online WHERE timestamp < $timeout"); $result = mysql_query( "SELECT DISTINCT ip FROM online WHERE file = '$PHP_SELF'"); $users = mysql_num_rows($result); ? >]]></example> </slide> Index: presentations/slides/srm/online2.xml +++ presentations/slides/srm/online2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>The Past: Users on-line</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>3! queries per page</bullet> <bullet>slow</bullet> <bullet>inefficient</bullet> <bullet>did I say it was slow?</bullet> </list> </slide> Index: presentations/slides/srm/parts.xml +++ presentations/slides/srm/parts.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parts</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Daemon</bullet> <bullet>SAPI for PHP</bullet> <bullet>Extension for PHP</bullet> </list> </slide> Index: presentations/slides/srm/persistant1.xml +++ presentations/slides/srm/persistant1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Persistent objects</title> <blurb>__sleep and __wakeup:</blurb> <example fontsize="1.25em"><![CDATA[// file.class.php <?php class File { function File($filename) { $this->filename = $filename; $this->fp = fopen($filename, 'rb'); } function seek($pos) { fseek($this->fp, $pos); } function __sleep() { $this->pos = ftell($this->fp); return array('fp', 'pos', 'filename'); } function __wakeup() { $this->fp = fopen($this->filename, 'rb'); fseek($this->fp, $this->pos); } } ? >]]></example> </slide> Index: presentations/slides/srm/persistant2.xml +++ presentations/slides/srm/persistant2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Persistent objects</title> <blurb>__sleep and __wakeup example:</blurb> <example fontsize="1.5em"><![CDATA[// example1.php <?php require 'file.class.php'; session_start(); $f = new File('/etc/hosts'); $f->seek(20); $_SESSION['f'] = $f; ? >]]></example> <example fontsize="1.5em"><![CDATA[// example2.php <?php require 'file.class.php'; session_start(); var_dump($_SESSION['f']); ? >]]></example> </slide> Index: presentations/slides/srm/phphist.xml +++ presentations/slides/srm/phphist.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP History (2 of 12)</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>Loops in early versions</bullet> <bullet>boring! let's go on with the cool stuff...</bullet> </list> </slide> Index: presentations/slides/srm/protocols.xml +++ presentations/slides/srm/protocols.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Protocols</title> <blurb> </blurb> <blurb> </blurb> <blurb fontsize="5em">SRM's support for protocols is extensible:</blurb> <list effect="slide" fontsize="4em"> <bullet>Native protocol: fast</bullet> <bullet>XML-RPC: easy to use from other languages</bullet> <bullet>SOAP: harder to use, but widespread support</bullet> </list> </slide> Index: presentations/slides/srm/questions.xml +++ presentations/slides/srm/questions.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Questions</title> <blurb></blurb> <image filename="qmark.png" align="center"/> </slide> Index: presentations/slides/srm/resources.xml +++ presentations/slides/srm/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <link fontsize="2em" marginleft="5em" leader="These Slides: " href="http://pres.derickrethans.nl/srm-montreal" target="_new"/> <link fontsize="2em" marginleft="5em" leader="SRM: " href="http://www.vl-srm.net" target="_new"/> <blurb> </blurb> <link fontsize="2em" marginleft="5em" leader="PHP: " href="http://www.php.net" target="_new"/> </slide> Index: presentations/slides/srm/srm-tree1.xml +++ presentations/slides/srm/srm-tree1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Persistent Tree</title> <example fontsize="1.4em"><![CDATA[<?php class node { var $key; var $value; var $left; var $right; } class binsearch extends Banana { var $root = NULL; function binsearch($elements) { foreach ($elements as $key => $value) { $this->add_value($key, $value); } var_export($this->root); } function add_value($key, $value) { $ptr = &$this->root; while ($ptr != NULL) { if ($key < $ptr->key) { $ptr = &$ptr->left; } else { $ptr = &$ptr->right; } } $ptr = new node; $ptr->key = $key; $ptr->value = $value; $ptr->left = NULL; $ptr->right = NULL; var_dump(func_get_args()); } function get_value($key) { $ptr = &$this->root; while ($key != $ptr->key && $ptr != NULL) { if ($key < $ptr->key) { $ptr = &$ptr->left; } else { $ptr = &$ptr->right; } } var_dump(func_get_args()); return $ptr ? $ptr->value : FALSE; } function get_all() { var_dump(func_get_args()); return $this->root; } } $tree =& new binsearch(array()); $tree->run(); ? >]]></example> </slide> Index: presentations/slides/srm/srm-tree2.xml +++ presentations/slides/srm/srm-tree2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Persistent Tree</title> <blurb fontsize="3em">Adding a value to the binairy tree:</blurb> <example fontsize="2em"><![CDATA[<?php $s = new SRM('/tmp/srm.socket'); $t = new SRMApp($s, 'binsearch'); $t->add_value($argv[1], $argv[2]); $all = $t->get_all(); var_dump($all); ? >]]></example> </slide> Index: presentations/slides/srm/srm-tree3.xml +++ presentations/slides/srm/srm-tree3.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Persistent Tree</title> <blurb fontsize="3em">Searching for a key in the binairy tree:</blurb> <example fontsize="2em"><![CDATA[<?php $s = new SRM('/tmp/srm.socket'); $t = new SRMApp($s, 'binsearch'); echo $t->get_value($argv[1])."\n"; ? >]]></example> </slide> Index: presentations/slides/srm/style.css +++ presentations/slides/srm/style.css <style title="Default" type="text/css"> body { font-size: 12pt; margin-left:1.5em; margin-right:0em; margin-bottom:0em; background-image: url(presentations/slides/srm/cray.jpg); } ul { padding-top: 20; padding-left: 100; } th.trace { font-family: arial; font-size: 12pt; } td.trace { font-family: arial; font-size: 12pt; } th.tracesml { font-family: arial; font-size: 9pt; } td.tracesml { font-family: arial; font-size: 9pt; } div.sticky { margin: 0; position: fixed; top: 0em; left: 0em; right: auto; bottom: auto; width: auto; } div.shadow { background: #777777; padding: 0.5em; } div.navbar { background: url(images/trans.png) transparent fixed; padding: 4; margin: 0; height: 6em; background-color: #3c5bb4; color: #3c5bb4; font-family: verdana, tahoma, arial, helvetica, sans-serif; z-index: 99; } div.emcode { background: #cccccc; border: thin solid #000000; padding: 0.5em; font-family: monospace; } div.output { font-family: monospace; background: #eeee33; border: thin solid #000000; padding: 0.5em; } table.index { background: #cccccc; border: thin dotted #000000; padding: 0.5em; font-family: monospace; } td.index { background: #cccccc; padding: 1em; font-family: monospace; } h1 { font-size: 2em; } p,li { font-size: 2.6em; } a { text-decoration: none; } a:hover { text-decoration: underline; } c2right { margin : 1em 1em 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; width : 46%; float : right; } c2left { margin : 1em 1em 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; width : 46%; float : left; } box { margin : 0 0 0 0; padding-left : 1%; padding-right : 1%; border-style : solid; border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; border-right-color : inherit; border-left-color : inherit; float : left; } </style> Index: presentations/slides/srm/timeline.xml +++ presentations/slides/srm/timeline.xml <slide title="PHP History (1 of 12)" layout="2columns"> <table columns="2" border="0" width="100%" align="center" fontsize="3em"> <cell>June 8, 1995</cell><cell>|ff1111|PHP Tools 1.0|</cell> <cell>Oct 17, 1995</cell><cell>PHP/FI 1.92</cell> <cell>Mar. 16, 1996</cell><cell>PHP/FI 1.99k</cell> <cell>June 16, 1997</cell><cell>PHP/FI 2.0b12</cell> <cell>Oct. 29, 1997</cell><cell>PHP 3.0a1</cell> <cell>Nov. 12, 1997</cell><cell>|ff1111|PHP/FI 2.0|</cell> <cell>Dec. 8, 1997</cell><cell>PHP 3.0b1</cell> <cell>Jan. 9, 1998</cell><cell>PHP/FI 2.0.1</cell> <cell>June 6, 1998</cell><cell>|ff1111|PHP 3.0|</cell> <cell>July 4, 1998</cell><cell>PHP 3.0.1</cell> <cell>Mar. 1, 1999</cell><cell>PHP 3.0.7</cell> <cell>July 19, 1999</cell><cell>PHP 4.0b1</cell> <cell>Jan. 1, 2000</cell><cell>PHP 3.0.13</cell> <cell>Oct. 21, 2000</cell><cell>PHP 3.0.18</cell> </table> <divide /> <table columns="2" border="0" width="100%" align="center" fontsize="3em"> <cell>May 22, 2000</cell><cell>|ff1111|PHP 4.0|</cell> <cell>Oct. 11, 2000</cell><cell>PHP 4.0.3</cell> <cell>Apr. 30, 2001</cell><cell>PHP 4.0.5</cell> <cell>June 23, 2001</cell><cell>PHP 4.0.6</cell> <cell>Dec. 10, 2001</cell><cell>|ff1111|PHP 4.1.0|</cell> <cell>Dec. 26, 2001</cell><cell>PHP 4.1.1</cell> <cell>Feb. 27, 2002</cell><cell>PHP 4.1.2</cell> <cell>Apr. 22, 2002</cell><cell>|ff1111|PHP 4.2.0|</cell> <cell>May 13, 2002</cell><cell>PHP 4.2.1</cell> <cell>July 22, 2002</cell><cell>PHP 4.2.2</cell> <cell>Sep. 6, 2002</cell><cell>PHP 4.2.3</cell> <cell>Dec. 27, 2002</cell><cell>|ff1111|PHP 4.3.0|</cell> <cell>Feb. 17, 2003</cell><cell>|ff1111|PHP 4.3.1|</cell> <cell>Aug. 17, 2003</cell><cell>|ff1111|PHP 5.0|</cell> </table> </slide> Index: presentations/slides/srm/tree1.xml +++ presentations/slides/srm/tree1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>The Past: Trees</title> <example fontsize="1.25em"><![CDATA[// binsearch.class.php <?php class node { var $key; var $value; var $left; var $right; } class binsearch { var $root = NULL; function binsearch($elements) { foreach ($elements as $key => $value) { $this->add_value($key, $value); } var_export($this->root); } function add_value($key, $value) { $ptr = &$this->root; while ($ptr != NULL) { if ($key < $ptr->key) { $ptr = &$ptr->left; } else { $ptr = &$ptr->right; } } $ptr = new node; $ptr->key = $key; $ptr->value = $value; $ptr->left = NULL; $ptr->right = NULL; } function get_value($key) { $ptr = &$this->root; while ($key != $ptr->key && $ptr != NULL) { if ($key < $ptr->key) { $ptr = &$ptr->left; } else { $ptr = &$ptr->right; } } return $ptr ? $ptr->value : FALSE; } } ? >]]></example> </slide> Index: presentations/slides/srm/tree2.xml +++ presentations/slides/srm/tree2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>The Past: Trees</title> <example fontsize="1em"><![CDATA[<?php $elements = array ( 'jan' => 'Dorsten', 'derick' => 'Dieren', 'stig' => 'Trondheim', 'dan' => 'Baltimore', 'rasmus' => 'San Francisco', 'ilia' => 'Montreal' ); $tree =& new binsearch($elements); echo $tree->get_value('rasmus'); ? >]]></example> <example fontsize="1em"><![CDATA[<?php class node { var $key = 'jan'; var $value = 'Dorsten'; var $left = class node { var $key = 'derick'; var $value = 'Dieren'; var $left = class node { var $key = 'dan'; var $value = 'Baltimore'; var $left = NULL; var $right = NULL; }; var $right = class node { var $key = 'ilia'; var $value = 'Montreal'; var $left = NULL; var $right = NULL; }; }; var $right = class node { var $key = 'stig'; var $value = 'Trondheim'; var $left = class node { var $key = 'rasmus'; var $value = 'San Francisco'; var $left = NULL; var $right = NULL; }; var $right = NULL; }; } ? >]]></example> </slide>