cvs: presentations / taming-large-scale.xml /slides/intro sqlex.xml /slides/taming-large-scale abstract-input-cl.xml abstract-input-web.xml
abstract-input.xml abstract-output-cl.xml abstract-output-function.xml abstract-output-web.xml abstract-output.xml adam.png atari800.png bonus.gif
branch-1.jpg branches.gif changes-dsbook.png conclusion.xml config-db.xml config-hostnames.xml config-server.xml config.xml cvs-basic-ops-1.xml
cvs-basic-ops-2.xml cvs-basic-ops.xml cvs-branch-merge.xml cvs-branch-trunk.xml cvs-branches.xml cvs-concepts.xml cvs-merge-multi.xml
cvs-staging-export-manual.xml cvs-staging-up-automatic.xml cvs-staging-up-manual.xml cvs-staging.xml cvs-towelette.jpeg cvs-trading-branches.xml
cvs.xml cvslog.txt db-copy-grid.jpg dekooning.jpeg header-bonus.xml header-config.xml header-cvs.xml header-io.xml homerclone.jpeg hydra.gif
kandinsky.png merge-1.jpg merging.gif other-tools.xml php-ini.xml pollock.jpeg production-server.xml reagan-gorby-inftreatysign87.gif rothko.jpeg
rsync.xml secretround.png stooges.jpeg ti-994a.png titlepage.xml tmr.gif topics.xml tradingplaces1.jpg tree.gif winnt4_config_server.gif wrench.jpeg
| From: | David Sklar | Date: | Mon, 28 Apr 2003 19:20:41 +0000 |
| Subject: | cvs: presentations / taming-large-scale.xml /slides/intro sqlex.xml /slides/taming-large-scale abstract-input-cl.xml abstract-input-web.xml abstract-input.xml abstract-output-cl.xml abstract-output-function.xml abstract-output-web.xml abstract-output.xml adam.png atari800.png bonus.gif branch-1.jpg branches.gif changes-dsbook.png conclusion.xml config-db.xml config-hostnames.xml config-server.xml config.xml cvs-basic-ops-1.xml cvs-basic-ops-2.xml cvs-basic-ops.xml cvs-branch-merge.xml cvs-branch-trunk.xml cvs-branches.xml cvs-concepts.xml cvs-merge-multi.xml cvs-staging-export-manual.xml cvs-staging-up-automatic.xml cvs-staging-up-manual.xml cvs-staging.xml cvs-towelette.jpeg cvs-trading-branches.xml cvs.xml cvslog.txt db-copy-grid.jpg dekooning.jpeg header-bonus.xml header-config.xml header-cvs.xml header-io.xml homerclone.jpeg hydra.gif kandinsky.png merge-1.jpg merging.gif other-tools.xml php-ini.xml pollock.jpeg production-server.xml reagan-gorby-inftreatysign87.gif rothko.jpeg rsync.xml secretround.png stooges.jpeg ti-994a.png titlepage.xml tmr.gif topics.xml tradingplaces1.jpg tree.gif winnt4_config_server.gif wrench.jpeg |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-666@lists.php.net to get a copy of this message | ||
sklar Mon Apr 28 15:20:41 2003 EDT
Added files:
/presentations taming-large-scale.xml
/presentations/slides/taming-large-scale abstract-input-cl.xml
abstract-input-web.xml
abstract-input.xml
abstract-output-cl.xml
abstract-output-function.xml
abstract-output-web.xml
abstract-output.xml
adam.png atari800.png
bonus.gif branch-1.jpg
branches.gif
changes-dsbook.png
conclusion.xml
config-db.xml
config-hostnames.xml
config-server.xml
config.xml
cvs-basic-ops-1.xml
cvs-basic-ops-2.xml
cvs-basic-ops.xml
cvs-branch-merge.xml
cvs-branch-trunk.xml
cvs-branches.xml
cvs-concepts.xml
cvs-merge-multi.xml
cvs-staging-export-manual.xml
cvs-staging-up-automatic.xml
cvs-staging-up-manual.xml
cvs-staging.xml
cvs-towelette.jpeg
cvs-trading-branches.xml
cvs.xml cvslog.txt
db-copy-grid.jpg
dekooning.jpeg
header-bonus.xml
header-config.xml
header-cvs.xml
header-io.xml
homerclone.jpeg hydra.gif
kandinsky.png merge-1.jpg
merging.gif
other-tools.xml
php-ini.xml pollock.jpeg
production-server.xml
reagan-gorby-inftreatysign87.gif
rothko.jpeg rsync.xml
secretround.png
stooges.jpeg ti-994a.png
titlepage.xml tmr.gif
topics.xml
tradingplaces1.jpg
tree.gif
winnt4_config_server.gif
wrench.jpeg
Modified files:
/presentations/slides/intro sqlex.xml
Log:
Taming Large Scale Projects - PHP Con East 2003
Index: presentations/slides/intro/sqlex.xml diff -u presentations/slides/intro/sqlex.xml:1.3 presentations/slides/intro/sqlex.xml:1.4 --- presentations/slides/intro/sqlex.xml:1.3 Sat Apr 26 13:44:23 2003 +++ presentations/slides/intro/sqlex.xml Mon Apr 28 15:20:41 2003 @@ -3,7 +3,7 @@ PHP scripts that talk to databases all look similar to the code below. Connect to the database, select a database, send a query and loop through the results. </blurb> -<example fontsize="1.75em"><![CDATA[<?php + <example fontsize="1.75em"><![CDATA[<?php mysql_pconnect("db.server.com","username","password"); mysql_select_db("products"); $result = mysql_query("SELECT * FROM details"); Index: presentations/taming-large-scale.xml +++ presentations/taming-large-scale.xml <presentation> <topic>PHP</topic> <title>Taming Large Scale PHP Projects</title> <location>New York, NY</location> <event>PHPCon East</event> <date>April 25, 2003</date> <speaker>Adam Trachtenberg, David Sklar</speaker> <url>http://talks.php.net/taming-large-scale</url> <slide>slides/taming-large-scale/titlepage.xml</slide> <slide>slides/taming-large-scale/topics.xml</slide> <slide>slides/taming-large-scale/header-cvs.xml</slide> <slide>slides/taming-large-scale/cvs.xml</slide> <slide>slides/taming-large-scale/cvs-concepts.xml</slide> <slide>slides/taming-large-scale/cvs-basic-ops-1.xml</slide> <slide>slides/taming-large-scale/cvs-basic-ops-2.xml</slide> <slide>slides/taming-large-scale/cvs-branches.xml</slide> <slide>slides/taming-large-scale/cvs-branch-trunk.xml</slide> <slide>slides/taming-large-scale/cvs-trading-branches.xml</slide> <slide>slides/taming-large-scale/cvs-staging.xml</slide> <slide>slides/taming-large-scale/cvs-staging-up-manual.xml</slide> <slide>slides/taming-large-scale/cvs-staging-up-automatic.xml</slide> <slide>slides/taming-large-scale/cvs-staging-export-manual.xml</slide> <slide>slides/taming-large-scale/production-server.xml</slide> <slide>slides/taming-large-scale/rsync.xml</slide> <slide>slides/taming-large-scale/header-config.xml</slide> <slide>slides/taming-large-scale/config.xml</slide> <slide>slides/taming-large-scale/config-hostnames.xml</slide> <slide>slides/taming-large-scale/config-db.xml</slide> <slide>slides/taming-large-scale/config-server.xml</slide> <slide>slides/taming-large-scale/header-io.xml</slide> <slide>slides/taming-large-scale/abstract-input.xml</slide> <slide>slides/taming-large-scale/abstract-input-web.xml</slide> <slide>slides/taming-large-scale/abstract-input-cl.xml</slide> <slide>slides/taming-large-scale/abstract-output.xml</slide> <slide>slides/taming-large-scale/abstract-output-web.xml</slide> <slide>slides/taming-large-scale/abstract-output-cl.xml</slide> <slide>slides/taming-large-scale/abstract-output-function.xml</slide> <slide>slides/taming-large-scale/conclusion.xml</slide> <slide>slides/taming-large-scale/header-bonus.xml</slide> <slide>slides/taming-large-scale/other-tools.xml</slide> <slide>slides/taming-large-scale/cvs-merge-multi.xml</slide> <slide>slides/taming-large-scale/php-ini.xml</slide> </presentation> Index: presentations/slides/taming-large-scale/abstract-input-cl.xml +++ presentations/slides/taming-large-scale/abstract-input-cl.xml <slide title="Command line Input Abstraction"> <list title="New Suspects"> <bullet>$argc, $argv, Environment variables</bullet> </list> <example><![CDATA[<?php if (! $ONLINE) { $userid = 'webmaster'; include_once 'Console/Getopt.php'; $o = new Console_Getopt; $opts = $o->getopt($o->readPHPArgv(),'',array('debug','name=','size==')); $form = $opts[0]; $database = getenv('DATABASE'); } ?> ]]></example> </slide> Index: presentations/slides/taming-large-scale/abstract-input-web.xml +++ presentations/slides/taming-large-scale/abstract-input-web.xml <slide title="Web Input Abstraction"> <list title="Usual Suspects"> <bullet>$_GET, $_POST, $_COOKIE, $_SERVER</bullet> </list> <example><![CDATA[<?php if ($ONLINE) { $userid = $_COOKIE['userid']; $form = $_GET; $database = $_SERVER['database'] } ?> ]]></example> </slide> Index: presentations/slides/taming-large-scale/abstract-input.xml +++ presentations/slides/taming-large-scale/abstract-input.xml <slide title="Input Abstraction"> <image align="right" marginright="1.5em" filename="pollock.jpeg" /> <list title="Advantages"> <bullet>Handy to reuse code in both contexts</bullet> <bullet>No duplicated effort</bullet> <bullet>Fewer Bugs</bullet> </list> <list title="Web Server vs. Command Line"> <bullet>Form, Cookies, Server environment variables</bullet> <bullet>Command line options, Environment variables, User</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/abstract-output-cl.xml +++ presentations/slides/taming-large-scale/abstract-output-cl.xml <slide title="Command Line Output Abstraction"> <list title="ASCII & Errors"> <bullet>ASCII: \n</bullet> <bullet>Errors: print, error_log(), display_errors=on</bullet> </list> <example><![CDATA[<?php if ($r = mysql_query($sql)) { // good } else { if (! $ONLINE) { print "Database Error: Can't Connect\n"; error_log("[DB][$sql]"); } } ?> ]]></example> </slide> Index: presentations/slides/taming-large-scale/abstract-output-function.xml +++ presentations/slides/taming-large-scale/abstract-output-function.xml <slide title="Output Abstraction Function"> <example title="Simplify Your Code"><![CDATA[<?php function msg($usr_msg, $dev_msg, $log_msg) { if ($GLOBALS['ONLINE']) { print "$usr_msg<br />"; } else { print "$dev_msg\n"; } error_log($log_msg); } if ($r = mysql_query($sql)) { // good } else { msg("Please come back later.", "Database Error: Can't Connect", "[DB][$sql]"); } } ?> ]]></example> </slide> Index: presentations/slides/taming-large-scale/abstract-output-web.xml +++ presentations/slides/taming-large-scale/abstract-output-web.xml <slide title="Web Output Abstraction"> <list title="HTML & Errors"> <bullet>HTML: &lt;pre&gt;, &lt;br /&gt;</bullet> <bullet>Errors: error_log(), display_errors=off</bullet> </list> <example><![CDATA[<?php if ($r = mysql_query($sql)) { // good } else { if ($ONLINE) { print "Please come back later.<br />"; error_log("[DB][$sql]"); } } ?> ]]></example> </slide> Index: presentations/slides/taming-large-scale/abstract-output.xml +++ presentations/slides/taming-large-scale/abstract-output.xml <slide title="Output Abstraction"> <image align="right" marginright="1.5em" filename="rothko.jpeg" /> <list title="Advantages"> <bullet>Handy to reuse code in both contexts</bullet> <bullet>No duplicated effort</bullet> <bullet>Fewer Bugs</bullet> </list> <list title="Web Server vs. Command Line"> <bullet>HTML, Hide Errors</bullet> <bullet>ASCII, Show Errors</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/conclusion.xml +++ presentations/slides/taming-large-scale/conclusion.xml <slide title="Conclusion"> <list title="More Information"> <bullet>This talk: http://talks.php.net/taming-large-scale</bullet> <bullet>CVS homepage: http://www.cvshome.org/</bullet> <bullet>PHP Manual - Using PHP from the command line: http://www.php.net/manual/en/features.commandline.php </bullet> <bullet>Managing a web site with CVS: http://www.sklar.com/page/article/web-and-cvs</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/config-db.xml +++ presentations/slides/taming-large-scale/config-db.xml <slide title="DB Configuration"> <list title="Database Configuration"> <bullet>Developers and Staging can share a common database</bullet> <bullet>To simplify copying data from staging to live database, store last modified time and last "made live" time for each record.</bullet> </list> <image filename="db-copy-grid.jpg" align="center"/> <list><bullet>Occasionally copy data from live to staging database to keep testing environment current: users, message board posts, etc.</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/config-hostnames.xml +++ presentations/slides/taming-large-scale/config-hostnames.xml <slide title="Hostnames"> <list title="Use hostnames with common tails:"> <bullet>Developer: %sklar.dev.www.example.com%</bullet> <bullet>Staging: %staging.www.example.com%</bullet> <bullet>Production: %www.example.com%</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/config-server.xml +++ presentations/slides/taming-large-scale/config-server.xml <slide title="Server Configuration"> <image filename="homerclone.jpeg" align="right" marginright="2em"/> <list title="Servers Should Be Clones"> <bullet>Developer, Staging, and Live servers should be as identical as possible</bullet> <bullet>Hardware, where relevant: disk type and size, crypto, networking</bullet> <bullet>System Software: OS, kernel, drivers and modules</bullet> <bullet>Application Software: PHP, web server, database</bullet> <bullet>Application Configuration: args to %configure%, supporting libraries and their locations</bullet> <bullet>Build configuration files like %httpd.conf% with scripts to easily substitute locally-specific info</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/config.xml +++ presentations/slides/taming-large-scale/config.xml <slide title="Configuration"> <list title="Three Levels of Servers:" effect="slide"> <bullet> <![CDATA[<img src="/home/sklar/cvs/pres-slides/slides/taming-large-scale/adam.png">]]>Individual Developer</bullet> <bullet><![CDATA[<img src="/home/sklar/cvs/pres-slides/slides/taming-large-scale/ti-994a.png">]]>Staging/Testing</bullet> <bullet><![CDATA[<img src="/home/sklar/cvs/pres-slides/slides/taming-large-scale/atari800.png">]]>Production/Live</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-basic-ops-1.xml +++ presentations/slides/taming-large-scale/cvs-basic-ops-1.xml <slide title="CVS Basics"> <image filename="changes-dsbook.png" align="left" marginright="2em"/> <list title="Making Changes"> <bullet> Checkout: %cvs checkout www.example.com%</bullet> <bullet> Change to working directory: %cd www.example.com%</bullet> <bullet> Edit files: %emacs -nw index.php%</bullet> <bullet> Commit changes: %cvs commit -m "Added search box" index.php%</bullet> </list> <list title="Getting Changes"> <bullet> Update: %cvs update%</bullet> <bullet> Resolve conflicts if necessary</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-basic-ops-2.xml +++ presentations/slides/taming-large-scale/cvs-basic-ops-2.xml <slide title="CVS File History"> <image filename="reagan-gorby-inftreatysign87.gif" align="center"/> <blurb title="%cvs log index.php%"/> <example fontsize="1em" filename="cvslog.txt"/> </slide> Index: presentations/slides/taming-large-scale/cvs-basic-ops.xml +++ presentations/slides/taming-large-scale/cvs-basic-ops.xml <slide title="CVS Basics"> <list title="Making Changes"> <bullet> Checkout: %cvs checkout www.example.com%</bullet> <bullet> Change to working directory: %cd www.example.com%</bullet> <bullet> Edit files: %emacs -nw index.php%</bullet> <bullet> Commit changes: %cvs commit -m "Added search box" index.php%</bullet> </list> <list title="Getting Changes"> <bullet> Update: %cvs update%</bullet> <bullet> Resolve conflicts if necessary</bullet> </list> <list title="See History"> <bullet>%cvs log index.php%</bullet> </list> <example fontsize="1em" filename="cvslog.txt"/> </slide> Index: presentations/slides/taming-large-scale/cvs-branch-merge.xml +++ presentations/slides/taming-large-scale/cvs-branch-merge.xml <slide title="Merging a Branch"> cvs merge -j branch-name </slide> Index: presentations/slides/taming-large-scale/cvs-branch-trunk.xml +++ presentations/slides/taming-large-scale/cvs-branch-trunk.xml <slide title="Merging Branches"> <image filename="merging.gif" align="right" marginright="2em"/> <list title="Merging a Branch"> <bullet>In a checked out copy of the trunk:</bullet> <bullet>%cvs update -j more-purple%</bullet> <bullet>Review changes, resolve conflicts</bullet> <bullet>%cvs commit -m "merged more-purple"%</bullet> </list> <image align="center" filename="merge-1.jpg"/> </slide> Index: presentations/slides/taming-large-scale/cvs-branches.xml +++ presentations/slides/taming-large-scale/cvs-branches.xml <slide title="Using Branches"> <list marginleft="0em" title="Creating a Branch"> <bullet>%cvs checkout www.example.com%</bullet> </list> <image align="right" marginright="2em" filename="branch-1.jpg"/> <list> <bullet>%cd www.example.com%</bullet> <bullet>%cvs tag -b more-purple%</bullet> <bullet>%cvs update -r more-purple%</bullet> <bullet>Edit %styles.css%</bullet> <bullet>%cvs commit -m "Now there's plenty of purple"%</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-concepts.xml +++ presentations/slides/taming-large-scale/cvs-concepts.xml <slide title="CVS Concepts"> <image filename="tree.gif" align="right" marginright="2em"/> <list fontsize="2.5em"> <bullet>*Repository:* where CVS keeps files that contain the contents and metadata of the files you're managing</bullet> <bullet>*Working Copy:* an editable version of a set of files managed by CVS</bullet> <bullet>*Trunk:* The default set of revisions to the files CVS manages.</bullet> <bullet>*Branch:* An alternate set of revisions to files. There can be many branches. </bullet> <bullet>*Merge:* To incorporate a set of revisions into a file or group of files. The revisions can come from the trunk or a branch.</bullet> <bullet>*Tag:* A symbolic name given to the state of a file at a particular time in its history. You can apply the same tag to many files at once.</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-merge-multi.xml +++ presentations/slides/taming-large-scale/cvs-merge-multi.xml <slide title="Merging from a Branch"> <image filename="branches.gif" align="right" marginright="2em"/> <list fontsize="2em" title="Merging Repeatedly from a Branch"> <bullet>Alice creates a branch %alice-mods% and commits changes to it</bullet> <bullet>Bob creates his own branch: <bullet>%cvs checkout -r bob-better-mods%</bullet> </bullet> <bullet>Bob merges changes from Alice's branch into his branch: <bullet>%cvs update -j alice-mods%</bullet></bullet> <bullet>Bob immediately tags Alice's branch to mark his merge: <bullet>%cvs rtag -F -r alice-mods alice-mods-bob%</bullet> </bullet> <bullet>Alice commits some more changes to her branch</bullet> <bullet>Bob merges those new changes into his branch using the tag he set to mark his previous merge: <bullet>%cvs update -j alice-mods-bob -j alice-mods%</bullet> </bullet> <bullet>Bob immediately updates his merge-marking tag: <bullet>%cvs rtag -F -r alice-mods alice-mods-bob%</bullet> </bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-staging-export-manual.xml +++ presentations/slides/taming-large-scale/cvs-staging-export-manual.xml <slide title="Manual Export"> <list title="Manual Export"> <bullet>Staging Server is just a series of files</bullet> <bullet>Need to jump through a few hoops</bullet> </list> <example><![CDATA[mkdir www.example.com-tmp cd www.example.com-tmp cvs export -r HEAD www.example.com mv www.example.com www.example.com-old mv www.example.com-tmp www.example.com rm -rf www.example.com-old ]]></example> <list title="Notes"> <bullet>Always get clean copy</bullet> <bullet>*No* CVS files in web tree</bullet> <bullet>Easy to modify to use tags</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-staging-up-automatic.xml +++ presentations/slides/taming-large-scale/cvs-staging-up-automatic.xml <slide title="Automatic Update"> <list title="Automatic Update"> <bullet>Staging Server is checked out copy</bullet> <bullet>CVS *automatically* keeps it in sync</bullet> <bullet>Edit %Loginfo%</bullet> </list> <example><![CDATA[^www.example.com (date; cat; (sleep 2; cd /www/www.example.com; cvs -q update -dP) &) >> $CVSROOT/CVSROOT/updatelog 2>&1 ]]></example> <list title="Notes"> <bullet>Never forget</bullet> <bullet>Slow, non-atomic</bullet> <bullet>Places CVS files in web tree</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-staging-up-manual.xml +++ presentations/slides/taming-large-scale/cvs-staging-up-manual.xml <slide title="Manual Update"> <list title="Manual Update"> <bullet>Staging Server is checked out copy</bullet> </list> <example>% cd /www/www.example.com % cvs update -dP </example> <list title="Notes"> <bullet>You control update timing</bullet> <bullet>Slow, non-atomic</bullet> <bullet>Places CVS files in web tree</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-staging.xml +++ presentations/slides/taming-large-scale/cvs-staging.xml <slide title="Updating Staging Server"> <image align="right" marginright="1.5em" filename="stooges.jpeg" /> <list title="Updating Staging Server"> <bullet>Three good solutions</bullet> <bullet>Manual Update</bullet> <bullet>Automatic Update</bullet> <bullet>Manual Export</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-trading-branches.xml +++ presentations/slides/taming-large-scale/cvs-trading-branches.xml <slide title="Trading Branches"> <image filename="tradingplaces1.jpg" align="right" marginright="2em"/> <list title="Trading Branches"> <bullet>Billy Ray creates a branch and commits changes to it</bullet> <bullet>Lewis checks out that branch:</bullet> <bullet>%cvs checkout -r our-shared-branch%</bullet> <bullet>Lewis commits changes to the branch</bullet> <bullet>Billy Ray updates her checked out copy with %cvs update%</bullet> <bullet>Billy Ray makes more changes and commits them</bullet> <bullet>Lewis updates his checked out copy with %cvs update%</bullet> <bullet>Lewis makes more changes and commits them</bullet> <bullet>... repeat as desired</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs.xml +++ presentations/slides/taming-large-scale/cvs.xml <slide title="Why use CVS?"> <image filename="hydra.gif" align="left"/> <list title="What's So Great About CVS?"> <bullet> Record change history: who, what, when </bullet> <bullet> Revert files to previous versions </bullet> <bullet> Easily share code among developers </bullet> <bullet> Manage multiple versions simultaneously </bullet> <bullet>Portable, lots of front-ends and editor integration</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvslog.txt +++ presentations/slides/taming-large-scale/cvslog.txt RCS file: /opt/repository/www.example.com/docroot/index.php,v Working file: index.php head: 1.4 branch: locks: strict access list: symbolic names: start: 1.1.1.1 initialimport: 1.1.1 keyword substitution: kv total revisions: 5; selected revisions: 5 description: ---------------------------- revision 1.4 date: 2003/03/24 16:21:01; author: sklar; state: Exp; lines: +2 -0 removed beloved <blink> tags ---------------------------- revision 1.3 date: 2002/12/10 15:50:48; author: monkey; state: Exp; lines: +1 -2 added banana catalog ---------------------------- revision 1.2 date: 2002/12/10 15:42:01; author: elephant; state: Exp; lines: +8 -0 removed frightening mouse references ---------------------------- revision 1.1 date: 2002/12/10 02:24:24; author: adam; state: Exp; branches: 1.1.1; Initial revision ---------------------------- revision 1.1.1.1 date: 2002/12/10 02:24:24; author: sklar; state: Exp; lines: +0 -0 the index page ============================================================================= Index: presentations/slides/taming-large-scale/header-bonus.xml +++ presentations/slides/taming-large-scale/header-bonus.xml <slide title="Bonus"> <image filename="secretround.png" align="right" marginright="2em"/> <blurb fontsize="8em" align="center">Extra Special Bonus Slides</blurb> </slide> Index: presentations/slides/taming-large-scale/header-config.xml +++ presentations/slides/taming-large-scale/header-config.xml <slide title="Configuration"> <blurb fontsize="10em" align="center">Configuration</blurb> <image filename="winnt4_config_server.gif" align="center"/> </slide> Index: presentations/slides/taming-large-scale/header-cvs.xml +++ presentations/slides/taming-large-scale/header-cvs.xml <slide title="CVS"> <blurb fontsize="12em" align="center">CVS</blurb> <image filename="cvs-towelette.jpeg" align="center"/> </slide> Index: presentations/slides/taming-large-scale/header-io.xml +++ presentations/slides/taming-large-scale/header-io.xml <slide title="I/O Abstraction"> <image align="left" filename="kandinsky.png"/> <blurb fontsize="8em" align="center">I/O Abstraction</blurb> </slide> Index: presentations/slides/taming-large-scale/other-tools.xml +++ presentations/slides/taming-large-scale/other-tools.xml <slide title="Other Essential Tools"> <image filename="wrench.jpeg" align="left"/> <list title="Your Project Needs:"> <bullet>Bug Tracking</bullet> <bullet>Documentation Generator (phpDocumentor)</bullet> <bullet>Code Browser (bonsai, chora)</bullet> <bullet>Coding Standards (be consistent)</bullet> <bullet>Find these tools here: <![CDATA[http://linas.org/linux/pm.html]]></bullet> </list> </slide> Index: presentations/slides/taming-large-scale/php-ini.xml +++ presentations/slides/taming-large-scale/php-ini.xml <slide title="Alternate php.ini Files"> <list title="Configuration Directives"> <bullet>%display_errors%</bullet> <bullet>%include_path%</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/production-server.xml +++ presentations/slides/taming-large-scale/production-server.xml <slide title="Production Server"> <list title="CVS Update"> <bullet>Just like manual CVS update</bullet> <bullet>Need to have CVS on production server</bullet> <bullet>Production machine needs to talk to staging server</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/rsync.xml +++ presentations/slides/taming-large-scale/rsync.xml <slide title="rsync"> <list title="rsync"> <bullet>Always get clean copy</bullet> <bullet>*No* CVS files in web tree</bullet> <bullet>Easy to modify to use tags</bullet> </list> <example><![CDATA[#!/usr/bin/php <?php $src = '/www/www.example.com/'; $dest = 'www@live.example.com:/www/www.example.com/'; $opts = '--copy-links --perms --times ' . '--recursive --delete --force --rsh=ssh ' . '--compress --verbose'; $return = `rsync $opts $src $dest 2>&1`; ?> ]]></example> <list title="Notes"> <bullet>*BE CAREFUL* (--dry-run)</bullet> <bullet>rsync is efficient and flexible</bullet> <bullet>rsync is fast: binary files</bullet> <bullet>Easy to modify for multiple machines</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/titlepage.xml +++ presentations/slides/taming-large-scale/titlepage.xml <slide template="titlepage" fontsize="4em"> <title>Welcome!</title> </slide> Index: presentations/slides/taming-large-scale/topics.xml +++ presentations/slides/taming-large-scale/topics.xml <slide title="Topics"> <image filename="tmr.gif" align="right" marginright="4em"/> <list title="Topics"> <bullet>Version Control (with CVS)</bullet> <bullet>Server organization and configuration</bullet> <bullet>Writing code for both the web and the command line</bullet> </list> </slide>
Index: presentations/slides/intro/sqlex.xml diff -u presentations/slides/intro/sqlex.xml:1.3 presentations/slides/intro/sqlex.xml:1.4 --- presentations/slides/intro/sqlex.xml:1.3 Sat Apr 26 13:44:23 2003 +++ presentations/slides/intro/sqlex.xml Mon Apr 28 15:20:41 2003 @@ -3,7 +3,7 @@ PHP scripts that talk to databases all look similar to the code below. Connect to the database, select a database, send a query and loop through the results. </blurb> -<example fontsize="1.75em"><![CDATA[<?php + <example fontsize="1.75em"><![CDATA[<?php mysql_pconnect("db.server.com","username","password"); mysql_select_db("products"); $result = mysql_query("SELECT * FROM details"); Index: presentations/taming-large-scale.xml +++ presentations/taming-large-scale.xml <presentation> <topic>PHP</topic> <title>Taming Large Scale PHP Projects</title> <location>New York, NY</location> <event>PHPCon East</event> <date>April 25, 2003</date> <speaker>Adam Trachtenberg, David Sklar</speaker> <url>http://talks.php.net/taming-large-scale</url> <slide>slides/taming-large-scale/titlepage.xml</slide> <slide>slides/taming-large-scale/topics.xml</slide> <slide>slides/taming-large-scale/header-cvs.xml</slide> <slide>slides/taming-large-scale/cvs.xml</slide> <slide>slides/taming-large-scale/cvs-concepts.xml</slide> <slide>slides/taming-large-scale/cvs-basic-ops-1.xml</slide> <slide>slides/taming-large-scale/cvs-basic-ops-2.xml</slide> <slide>slides/taming-large-scale/cvs-branches.xml</slide> <slide>slides/taming-large-scale/cvs-branch-trunk.xml</slide> <slide>slides/taming-large-scale/cvs-trading-branches.xml</slide> <slide>slides/taming-large-scale/cvs-staging.xml</slide> <slide>slides/taming-large-scale/cvs-staging-up-manual.xml</slide> <slide>slides/taming-large-scale/cvs-staging-up-automatic.xml</slide> <slide>slides/taming-large-scale/cvs-staging-export-manual.xml</slide> <slide>slides/taming-large-scale/production-server.xml</slide> <slide>slides/taming-large-scale/rsync.xml</slide> <slide>slides/taming-large-scale/header-config.xml</slide> <slide>slides/taming-large-scale/config.xml</slide> <slide>slides/taming-large-scale/config-hostnames.xml</slide> <slide>slides/taming-large-scale/config-db.xml</slide> <slide>slides/taming-large-scale/config-server.xml</slide> <slide>slides/taming-large-scale/header-io.xml</slide> <slide>slides/taming-large-scale/abstract-input.xml</slide> <slide>slides/taming-large-scale/abstract-input-web.xml</slide> <slide>slides/taming-large-scale/abstract-input-cl.xml</slide> <slide>slides/taming-large-scale/abstract-output.xml</slide> <slide>slides/taming-large-scale/abstract-output-web.xml</slide> <slide>slides/taming-large-scale/abstract-output-cl.xml</slide> <slide>slides/taming-large-scale/abstract-output-function.xml</slide> <slide>slides/taming-large-scale/conclusion.xml</slide> <slide>slides/taming-large-scale/header-bonus.xml</slide> <slide>slides/taming-large-scale/other-tools.xml</slide> <slide>slides/taming-large-scale/cvs-merge-multi.xml</slide> <slide>slides/taming-large-scale/php-ini.xml</slide> </presentation> Index: presentations/slides/taming-large-scale/abstract-input-cl.xml +++ presentations/slides/taming-large-scale/abstract-input-cl.xml <slide title="Command line Input Abstraction"> <list title="New Suspects"> <bullet>$argc, $argv, Environment variables</bullet> </list> <example><![CDATA[<?php if (! $ONLINE) { $userid = 'webmaster'; include_once 'Console/Getopt.php'; $o = new Console_Getopt; $opts = $o->getopt($o->readPHPArgv(),'',array('debug','name=','size==')); $form = $opts[0]; $database = getenv('DATABASE'); } ?> ]]></example> </slide> Index: presentations/slides/taming-large-scale/abstract-input-web.xml +++ presentations/slides/taming-large-scale/abstract-input-web.xml <slide title="Web Input Abstraction"> <list title="Usual Suspects"> <bullet>$_GET, $_POST, $_COOKIE, $_SERVER</bullet> </list> <example><![CDATA[<?php if ($ONLINE) { $userid = $_COOKIE['userid']; $form = $_GET; $database = $_SERVER['database'] } ?> ]]></example> </slide> Index: presentations/slides/taming-large-scale/abstract-input.xml +++ presentations/slides/taming-large-scale/abstract-input.xml <slide title="Input Abstraction"> <image align="right" marginright="1.5em" filename="pollock.jpeg" /> <list title="Advantages"> <bullet>Handy to reuse code in both contexts</bullet> <bullet>No duplicated effort</bullet> <bullet>Fewer Bugs</bullet> </list> <list title="Web Server vs. Command Line"> <bullet>Form, Cookies, Server environment variables</bullet> <bullet>Command line options, Environment variables, User</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/abstract-output-cl.xml +++ presentations/slides/taming-large-scale/abstract-output-cl.xml <slide title="Command Line Output Abstraction"> <list title="ASCII & Errors"> <bullet>ASCII: \n</bullet> <bullet>Errors: print, error_log(), display_errors=on</bullet> </list> <example><![CDATA[<?php if ($r = mysql_query($sql)) { // good } else { if (! $ONLINE) { print "Database Error: Can't Connect\n"; error_log("[DB][$sql]"); } } ?> ]]></example> </slide> Index: presentations/slides/taming-large-scale/abstract-output-function.xml +++ presentations/slides/taming-large-scale/abstract-output-function.xml <slide title="Output Abstraction Function"> <example title="Simplify Your Code"><![CDATA[<?php function msg($usr_msg, $dev_msg, $log_msg) { if ($GLOBALS['ONLINE']) { print "$usr_msg<br />"; } else { print "$dev_msg\n"; } error_log($log_msg); } if ($r = mysql_query($sql)) { // good } else { msg("Please come back later.", "Database Error: Can't Connect", "[DB][$sql]"); } } ?> ]]></example> </slide> Index: presentations/slides/taming-large-scale/abstract-output-web.xml +++ presentations/slides/taming-large-scale/abstract-output-web.xml <slide title="Web Output Abstraction"> <list title="HTML & Errors"> <bullet>HTML: &lt;pre&gt;, &lt;br /&gt;</bullet> <bullet>Errors: error_log(), display_errors=off</bullet> </list> <example><![CDATA[<?php if ($r = mysql_query($sql)) { // good } else { if ($ONLINE) { print "Please come back later.<br />"; error_log("[DB][$sql]"); } } ?> ]]></example> </slide> Index: presentations/slides/taming-large-scale/abstract-output.xml +++ presentations/slides/taming-large-scale/abstract-output.xml <slide title="Output Abstraction"> <image align="right" marginright="1.5em" filename="rothko.jpeg" /> <list title="Advantages"> <bullet>Handy to reuse code in both contexts</bullet> <bullet>No duplicated effort</bullet> <bullet>Fewer Bugs</bullet> </list> <list title="Web Server vs. Command Line"> <bullet>HTML, Hide Errors</bullet> <bullet>ASCII, Show Errors</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/conclusion.xml +++ presentations/slides/taming-large-scale/conclusion.xml <slide title="Conclusion"> <list title="More Information"> <bullet>This talk: http://talks.php.net/taming-large-scale</bullet> <bullet>CVS homepage: http://www.cvshome.org/</bullet> <bullet>PHP Manual - Using PHP from the command line: http://www.php.net/manual/en/features.commandline.php </bullet> <bullet>Managing a web site with CVS: http://www.sklar.com/page/article/web-and-cvs</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/config-db.xml +++ presentations/slides/taming-large-scale/config-db.xml <slide title="DB Configuration"> <list title="Database Configuration"> <bullet>Developers and Staging can share a common database</bullet> <bullet>To simplify copying data from staging to live database, store last modified time and last "made live" time for each record.</bullet> </list> <image filename="db-copy-grid.jpg" align="center"/> <list><bullet>Occasionally copy data from live to staging database to keep testing environment current: users, message board posts, etc.</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/config-hostnames.xml +++ presentations/slides/taming-large-scale/config-hostnames.xml <slide title="Hostnames"> <list title="Use hostnames with common tails:"> <bullet>Developer: %sklar.dev.www.example.com%</bullet> <bullet>Staging: %staging.www.example.com%</bullet> <bullet>Production: %www.example.com%</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/config-server.xml +++ presentations/slides/taming-large-scale/config-server.xml <slide title="Server Configuration"> <image filename="homerclone.jpeg" align="right" marginright="2em"/> <list title="Servers Should Be Clones"> <bullet>Developer, Staging, and Live servers should be as identical as possible</bullet> <bullet>Hardware, where relevant: disk type and size, crypto, networking</bullet> <bullet>System Software: OS, kernel, drivers and modules</bullet> <bullet>Application Software: PHP, web server, database</bullet> <bullet>Application Configuration: args to %configure%, supporting libraries and their locations</bullet> <bullet>Build configuration files like %httpd.conf% with scripts to easily substitute locally-specific info</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/config.xml +++ presentations/slides/taming-large-scale/config.xml <slide title="Configuration"> <list title="Three Levels of Servers:" effect="slide"> <bullet> <![CDATA[<img src="/home/sklar/cvs/pres-slides/slides/taming-large-scale/adam.png">]]>Individual Developer</bullet> <bullet><![CDATA[<img src="/home/sklar/cvs/pres-slides/slides/taming-large-scale/ti-994a.png">]]>Staging/Testing</bullet> <bullet><![CDATA[<img src="/home/sklar/cvs/pres-slides/slides/taming-large-scale/atari800.png">]]>Production/Live</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-basic-ops-1.xml +++ presentations/slides/taming-large-scale/cvs-basic-ops-1.xml <slide title="CVS Basics"> <image filename="changes-dsbook.png" align="left" marginright="2em"/> <list title="Making Changes"> <bullet> Checkout: %cvs checkout www.example.com%</bullet> <bullet> Change to working directory: %cd www.example.com%</bullet> <bullet> Edit files: %emacs -nw index.php%</bullet> <bullet> Commit changes: %cvs commit -m "Added search box" index.php%</bullet> </list> <list title="Getting Changes"> <bullet> Update: %cvs update%</bullet> <bullet> Resolve conflicts if necessary</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-basic-ops-2.xml +++ presentations/slides/taming-large-scale/cvs-basic-ops-2.xml <slide title="CVS File History"> <image filename="reagan-gorby-inftreatysign87.gif" align="center"/> <blurb title="%cvs log index.php%"/> <example fontsize="1em" filename="cvslog.txt"/> </slide> Index: presentations/slides/taming-large-scale/cvs-basic-ops.xml +++ presentations/slides/taming-large-scale/cvs-basic-ops.xml <slide title="CVS Basics"> <list title="Making Changes"> <bullet> Checkout: %cvs checkout www.example.com%</bullet> <bullet> Change to working directory: %cd www.example.com%</bullet> <bullet> Edit files: %emacs -nw index.php%</bullet> <bullet> Commit changes: %cvs commit -m "Added search box" index.php%</bullet> </list> <list title="Getting Changes"> <bullet> Update: %cvs update%</bullet> <bullet> Resolve conflicts if necessary</bullet> </list> <list title="See History"> <bullet>%cvs log index.php%</bullet> </list> <example fontsize="1em" filename="cvslog.txt"/> </slide> Index: presentations/slides/taming-large-scale/cvs-branch-merge.xml +++ presentations/slides/taming-large-scale/cvs-branch-merge.xml <slide title="Merging a Branch"> cvs merge -j branch-name </slide> Index: presentations/slides/taming-large-scale/cvs-branch-trunk.xml +++ presentations/slides/taming-large-scale/cvs-branch-trunk.xml <slide title="Merging Branches"> <image filename="merging.gif" align="right" marginright="2em"/> <list title="Merging a Branch"> <bullet>In a checked out copy of the trunk:</bullet> <bullet>%cvs update -j more-purple%</bullet> <bullet>Review changes, resolve conflicts</bullet> <bullet>%cvs commit -m "merged more-purple"%</bullet> </list> <image align="center" filename="merge-1.jpg"/> </slide> Index: presentations/slides/taming-large-scale/cvs-branches.xml +++ presentations/slides/taming-large-scale/cvs-branches.xml <slide title="Using Branches"> <list marginleft="0em" title="Creating a Branch"> <bullet>%cvs checkout www.example.com%</bullet> </list> <image align="right" marginright="2em" filename="branch-1.jpg"/> <list> <bullet>%cd www.example.com%</bullet> <bullet>%cvs tag -b more-purple%</bullet> <bullet>%cvs update -r more-purple%</bullet> <bullet>Edit %styles.css%</bullet> <bullet>%cvs commit -m "Now there's plenty of purple"%</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-concepts.xml +++ presentations/slides/taming-large-scale/cvs-concepts.xml <slide title="CVS Concepts"> <image filename="tree.gif" align="right" marginright="2em"/> <list fontsize="2.5em"> <bullet>*Repository:* where CVS keeps files that contain the contents and metadata of the files you're managing</bullet> <bullet>*Working Copy:* an editable version of a set of files managed by CVS</bullet> <bullet>*Trunk:* The default set of revisions to the files CVS manages.</bullet> <bullet>*Branch:* An alternate set of revisions to files. There can be many branches. </bullet> <bullet>*Merge:* To incorporate a set of revisions into a file or group of files. The revisions can come from the trunk or a branch.</bullet> <bullet>*Tag:* A symbolic name given to the state of a file at a particular time in its history. You can apply the same tag to many files at once.</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-merge-multi.xml +++ presentations/slides/taming-large-scale/cvs-merge-multi.xml <slide title="Merging from a Branch"> <image filename="branches.gif" align="right" marginright="2em"/> <list fontsize="2em" title="Merging Repeatedly from a Branch"> <bullet>Alice creates a branch %alice-mods% and commits changes to it</bullet> <bullet>Bob creates his own branch: <bullet>%cvs checkout -r bob-better-mods%</bullet> </bullet> <bullet>Bob merges changes from Alice's branch into his branch: <bullet>%cvs update -j alice-mods%</bullet></bullet> <bullet>Bob immediately tags Alice's branch to mark his merge: <bullet>%cvs rtag -F -r alice-mods alice-mods-bob%</bullet> </bullet> <bullet>Alice commits some more changes to her branch</bullet> <bullet>Bob merges those new changes into his branch using the tag he set to mark his previous merge: <bullet>%cvs update -j alice-mods-bob -j alice-mods%</bullet> </bullet> <bullet>Bob immediately updates his merge-marking tag: <bullet>%cvs rtag -F -r alice-mods alice-mods-bob%</bullet> </bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-staging-export-manual.xml +++ presentations/slides/taming-large-scale/cvs-staging-export-manual.xml <slide title="Manual Export"> <list title="Manual Export"> <bullet>Staging Server is just a series of files</bullet> <bullet>Need to jump through a few hoops</bullet> </list> <example><![CDATA[mkdir www.example.com-tmp cd www.example.com-tmp cvs export -r HEAD www.example.com mv www.example.com www.example.com-old mv www.example.com-tmp www.example.com rm -rf www.example.com-old ]]></example> <list title="Notes"> <bullet>Always get clean copy</bullet> <bullet>*No* CVS files in web tree</bullet> <bullet>Easy to modify to use tags</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-staging-up-automatic.xml +++ presentations/slides/taming-large-scale/cvs-staging-up-automatic.xml <slide title="Automatic Update"> <list title="Automatic Update"> <bullet>Staging Server is checked out copy</bullet> <bullet>CVS *automatically* keeps it in sync</bullet> <bullet>Edit %Loginfo%</bullet> </list> <example><![CDATA[^www.example.com (date; cat; (sleep 2; cd /www/www.example.com; cvs -q update -dP) &) >> $CVSROOT/CVSROOT/updatelog 2>&1 ]]></example> <list title="Notes"> <bullet>Never forget</bullet> <bullet>Slow, non-atomic</bullet> <bullet>Places CVS files in web tree</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-staging-up-manual.xml +++ presentations/slides/taming-large-scale/cvs-staging-up-manual.xml <slide title="Manual Update"> <list title="Manual Update"> <bullet>Staging Server is checked out copy</bullet> </list> <example>% cd /www/www.example.com % cvs update -dP </example> <list title="Notes"> <bullet>You control update timing</bullet> <bullet>Slow, non-atomic</bullet> <bullet>Places CVS files in web tree</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-staging.xml +++ presentations/slides/taming-large-scale/cvs-staging.xml <slide title="Updating Staging Server"> <image align="right" marginright="1.5em" filename="stooges.jpeg" /> <list title="Updating Staging Server"> <bullet>Three good solutions</bullet> <bullet>Manual Update</bullet> <bullet>Automatic Update</bullet> <bullet>Manual Export</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs-trading-branches.xml +++ presentations/slides/taming-large-scale/cvs-trading-branches.xml <slide title="Trading Branches"> <image filename="tradingplaces1.jpg" align="right" marginright="2em"/> <list title="Trading Branches"> <bullet>Billy Ray creates a branch and commits changes to it</bullet> <bullet>Lewis checks out that branch:</bullet> <bullet>%cvs checkout -r our-shared-branch%</bullet> <bullet>Lewis commits changes to the branch</bullet> <bullet>Billy Ray updates her checked out copy with %cvs update%</bullet> <bullet>Billy Ray makes more changes and commits them</bullet> <bullet>Lewis updates his checked out copy with %cvs update%</bullet> <bullet>Lewis makes more changes and commits them</bullet> <bullet>... repeat as desired</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvs.xml +++ presentations/slides/taming-large-scale/cvs.xml <slide title="Why use CVS?"> <image filename="hydra.gif" align="left"/> <list title="What's So Great About CVS?"> <bullet> Record change history: who, what, when </bullet> <bullet> Revert files to previous versions </bullet> <bullet> Easily share code among developers </bullet> <bullet> Manage multiple versions simultaneously </bullet> <bullet>Portable, lots of front-ends and editor integration</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/cvslog.txt +++ presentations/slides/taming-large-scale/cvslog.txt RCS file: /opt/repository/www.example.com/docroot/index.php,v Working file: index.php head: 1.4 branch: locks: strict access list: symbolic names: start: 1.1.1.1 initialimport: 1.1.1 keyword substitution: kv total revisions: 5; selected revisions: 5 description: ---------------------------- revision 1.4 date: 2003/03/24 16:21:01; author: sklar; state: Exp; lines: +2 -0 removed beloved <blink> tags ---------------------------- revision 1.3 date: 2002/12/10 15:50:48; author: monkey; state: Exp; lines: +1 -2 added banana catalog ---------------------------- revision 1.2 date: 2002/12/10 15:42:01; author: elephant; state: Exp; lines: +8 -0 removed frightening mouse references ---------------------------- revision 1.1 date: 2002/12/10 02:24:24; author: adam; state: Exp; branches: 1.1.1; Initial revision ---------------------------- revision 1.1.1.1 date: 2002/12/10 02:24:24; author: sklar; state: Exp; lines: +0 -0 the index page ============================================================================= Index: presentations/slides/taming-large-scale/header-bonus.xml +++ presentations/slides/taming-large-scale/header-bonus.xml <slide title="Bonus"> <image filename="secretround.png" align="right" marginright="2em"/> <blurb fontsize="8em" align="center">Extra Special Bonus Slides</blurb> </slide> Index: presentations/slides/taming-large-scale/header-config.xml +++ presentations/slides/taming-large-scale/header-config.xml <slide title="Configuration"> <blurb fontsize="10em" align="center">Configuration</blurb> <image filename="winnt4_config_server.gif" align="center"/> </slide> Index: presentations/slides/taming-large-scale/header-cvs.xml +++ presentations/slides/taming-large-scale/header-cvs.xml <slide title="CVS"> <blurb fontsize="12em" align="center">CVS</blurb> <image filename="cvs-towelette.jpeg" align="center"/> </slide> Index: presentations/slides/taming-large-scale/header-io.xml +++ presentations/slides/taming-large-scale/header-io.xml <slide title="I/O Abstraction"> <image align="left" filename="kandinsky.png"/> <blurb fontsize="8em" align="center">I/O Abstraction</blurb> </slide> Index: presentations/slides/taming-large-scale/other-tools.xml +++ presentations/slides/taming-large-scale/other-tools.xml <slide title="Other Essential Tools"> <image filename="wrench.jpeg" align="left"/> <list title="Your Project Needs:"> <bullet>Bug Tracking</bullet> <bullet>Documentation Generator (phpDocumentor)</bullet> <bullet>Code Browser (bonsai, chora)</bullet> <bullet>Coding Standards (be consistent)</bullet> <bullet>Find these tools here: <![CDATA[http://linas.org/linux/pm.html]]></bullet> </list> </slide> Index: presentations/slides/taming-large-scale/php-ini.xml +++ presentations/slides/taming-large-scale/php-ini.xml <slide title="Alternate php.ini Files"> <list title="Configuration Directives"> <bullet>%display_errors%</bullet> <bullet>%include_path%</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/production-server.xml +++ presentations/slides/taming-large-scale/production-server.xml <slide title="Production Server"> <list title="CVS Update"> <bullet>Just like manual CVS update</bullet> <bullet>Need to have CVS on production server</bullet> <bullet>Production machine needs to talk to staging server</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/rsync.xml +++ presentations/slides/taming-large-scale/rsync.xml <slide title="rsync"> <list title="rsync"> <bullet>Always get clean copy</bullet> <bullet>*No* CVS files in web tree</bullet> <bullet>Easy to modify to use tags</bullet> </list> <example><![CDATA[#!/usr/bin/php <?php $src = '/www/www.example.com/'; $dest = 'www@live.example.com:/www/www.example.com/'; $opts = '--copy-links --perms --times ' . '--recursive --delete --force --rsh=ssh ' . '--compress --verbose'; $return = `rsync $opts $src $dest 2>&1`; ?> ]]></example> <list title="Notes"> <bullet>*BE CAREFUL* (--dry-run)</bullet> <bullet>rsync is efficient and flexible</bullet> <bullet>rsync is fast: binary files</bullet> <bullet>Easy to modify for multiple machines</bullet> </list> </slide> Index: presentations/slides/taming-large-scale/titlepage.xml +++ presentations/slides/taming-large-scale/titlepage.xml <slide template="titlepage" fontsize="4em"> <title>Welcome!</title> </slide> Index: presentations/slides/taming-large-scale/topics.xml +++ presentations/slides/taming-large-scale/topics.xml <slide title="Topics"> <image filename="tmr.gif" align="right" marginright="4em"/> <list title="Topics"> <bullet>Version Control (with CVS)</bullet> <bullet>Server organization and configuration</bullet> <bullet>Writing code for both the web and the command line</bullet> </list> </slide>