[git] presentations.git branch master updated. 7bb4366
| From: | derick@php.net | Date: | Thu, 23 Feb 2012 14:43:31 +0000 |
| Subject: | [git] presentations.git branch master updated. 7bb4366 | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1776@lists.php.net to get a copy of this message | ||
The branch, master on presentations.git has been updated
via 7bb43665e988f0ff7cc29c61ce8043608d76fc93 (commit)
from 12635388ac05b762ff247fd9b665bb82a01549b4 (commit)
http://git.php.net/?p=presentations.git;a=log;h=7bb43665e988f0ff7cc29c61ce8043608d76fc93;hp=12635388ac05b762ff247fd9b665bb82a01549b4
Summary of changes:
internals-sensio.xml | 90 +++++
mongo-london12.xml | 100 +++++
mongo-magento-ug.xml | 65 +++
mongo-mug-2012jan.xml | 89 +++++
mongo-phpbnl12.xml | 119 ++++++
profiling-phpbcn11.xml => profiling-bcn11.xml | 0
...ng-phptourlille11.xml => profiling-london12.xml | 12 +-
profiling-phptourlille11.xml | 8 +-
...-phptourlille11.xml => profiling-teqneers11.xml | 16 +-
slides/mongodb/.svn/entries | 413 ++++++++++++++++++++
slides/mongodb/.svn/props/10gen-large.png.svn-work | 5 +
slides/mongodb/.svn/props/10gen.png.svn-work | 5 +
slides/mongodb/.svn/props/Ghengis.png.svn-work | 5 +
slides/mongodb/.svn/props/index.jpg.svn-work | 5 +
slides/mongodb/.svn/props/mms.png.svn-work | 5 +
.../mongodb/.svn/props/mongodb-large.png.svn-work | 5 +
slides/mongodb/.svn/props/mongodb.png.svn-work | 5 +
slides/mongodb/10gen-large.png | Bin 0 -> 33551 bytes
slides/mongodb/10gen.png | Bin 0 -> 6900 bytes
slides/mongodb/Ghengis.png | Bin 0 -> 35594 bytes
slides/mongodb/collections-documents.xml | 10 +
slides/mongodb/commands-aggregation-example.xml | 33 ++
slides/mongodb/commands-aggregation.xml | 17 +
slides/mongodb/commands-distinct.xml | 19 +
slides/mongodb/commands.xml | 10 +
slides/mongodb/connecting.xml | 22 +
slides/mongodb/cursors.xml | 19 +
slides/mongodb/document.xml | 40 ++
slides/mongodb/eav.dia | Bin 0 -> 1885 bytes
slides/mongodb/eav.png | Bin 0 -> 42423 bytes
slides/mongodb/eav.xml | 23 ++
slides/mongodb/eav2.xml | 24 ++
slides/mongodb/eav3.xml | 17 +
slides/mongodb/elephpant.jpg | Bin 0 -> 67178 bytes
slides/mongodb/ghengis.xml | 5 +
slides/mongodb/id.xml | 18 +
slides/mongodb/index.jpg | Bin 0 -> 122206 bytes
slides/mongodb/indexes-geo.xml | 23 ++
slides/mongodb/indexes.xml | 28 ++
slides/mongodb/indexes2.xml | 16 +
slides/mongodb/indexes3.xml | 18 +
slides/mongodb/insert.xml | 66 +++
slides/mongodb/limit-skip.xml | 19 +
slides/mongodb/me.xml | 15 +
slides/mongodb/mms.png | Bin 0 -> 152424 bytes
slides/mongodb/mms.xml | 5 +
slides/mongodb/mongo-extension.xml | 11 +
slides/mongodb/mongod-install.xml | 25 ++
slides/mongodb/mongodb-large.png | Bin 0 -> 34203 bytes
slides/mongodb/mongodb.png | Bin 0 -> 9811 bytes
slides/mongodb/query-advanced-example-array1.xml | 49 +++
slides/mongodb/query-advanced-example-array2.xml | 21 +
slides/mongodb/query-advanced-example-gte.xml | 39 ++
slides/mongodb/query-advanced-ops.xml | 38 ++
slides/mongodb/query.xml | 19 +
slides/mongodb/query2.xml | 14 +
slides/mongodb/replication.xml | 12 +
slides/mongodb/replset.png | Bin 0 -> 10335 bytes
slides/mongodb/resources.xml | 14 +
slides/mongodb/safe.xml | 32 ++
slides/mongodb/safe2.xml | 22 +
slides/mongodb/sharding.png | Bin 0 -> 10743 bytes
slides/mongodb/sharding.xml | 10 +
slides/mongodb/sort.xml | 15 +
slides/mongodb/title.xml | 11 +
slides/mongodb/tools-and-monitoring.xml | 9 +
slides/mongodb/types.xml | 18 +
slides/mongodb/update-modifiers.xml | 26 ++
slides/mongodb/update-modifiers2.xml | 19 +
slides/mongodb/update-modifiers3.xml | 24 ++
slides/mongodb/update-modifiers4.xml | 26 ++
slides/mongodb/update.xml | 20 +
slides/mongodb/update2.xml | 18 +
slides/mongodb/update2a.xml | 22 +
slides/mongodb/upsert.xml | 23 ++
slides/mongodb/what-is-mongodb.xml | 13 +
slides/mongodb/whats-next.xml | 12 +
slides/profiling/camouflage-250.png | Bin 0 -> 4272 bytes
slides/profiling/ezpublish-time2.png | Bin 0 -> 43893 bytes
slides/profiling/find-out-if-it-is-slow.xml | 2 +-
slides/profiling/joindin-4357.png | Bin 0 -> 1905 bytes
slides/profiling/resources.xml | 16 +-
slides/profiling/timing-points.xml | 2 +-
slides/profiling/xhprof.xml | 95 +-----
slides/toolbox/me.xml | 10 +-
slides/xdebug/functiontrace-computerized.xml | 2 +-
slides/xdebug/profiling3.xml | 15 +
slides/xdebug/tracefile-computerized2.png | Bin 0 -> 89129 bytes
slides/xdebug/why-debugger3.xml | 4 +-
templates/default/div.ezt | 3 +-
templates/default/example.ezt | 8 +-
templates/default/qrcode.ezt | 4 +-
templates/default/slide.ezt | 6 +-
93 files changed, 1982 insertions(+), 141 deletions(-)
create mode 100644 internals-sensio.xml
create mode 100644 mongo-london12.xml
create mode 100644 mongo-magento-ug.xml
create mode 100644 mongo-mug-2012jan.xml
create mode 100644 mongo-phpbnl12.xml
copy profiling-phpbcn11.xml => profiling-bcn11.xml (100%)
copy profiling-phptourlille11.xml => profiling-london12.xml (87%)
copy profiling-phptourlille11.xml => profiling-teqneers11.xml (75%)
create mode 100644 slides/mongodb/.svn/entries
create mode 100644 slides/mongodb/.svn/props/10gen-large.png.svn-work
create mode 100644 slides/mongodb/.svn/props/10gen.png.svn-work
create mode 100644 slides/mongodb/.svn/props/Ghengis.png.svn-work
create mode 100644 slides/mongodb/.svn/props/index.jpg.svn-work
create mode 100644 slides/mongodb/.svn/props/mms.png.svn-work
create mode 100644 slides/mongodb/.svn/props/mongodb-large.png.svn-work
create mode 100644 slides/mongodb/.svn/props/mongodb.png.svn-work
create mode 100644 slides/mongodb/10gen-large.png
create mode 100644 slides/mongodb/10gen.png
create mode 100644 slides/mongodb/Ghengis.png
create mode 100644 slides/mongodb/collections-documents.xml
create mode 100644 slides/mongodb/commands-aggregation-example.xml
create mode 100644 slides/mongodb/commands-aggregation.xml
create mode 100644 slides/mongodb/commands-distinct.xml
create mode 100644 slides/mongodb/commands.xml
create mode 100644 slides/mongodb/connecting.xml
create mode 100644 slides/mongodb/cursors.xml
create mode 100644 slides/mongodb/document.xml
create mode 100644 slides/mongodb/eav.dia
create mode 100644 slides/mongodb/eav.png
create mode 100644 slides/mongodb/eav.xml
create mode 100644 slides/mongodb/eav2.xml
create mode 100644 slides/mongodb/eav3.xml
create mode 100644 slides/mongodb/elephpant.jpg
create mode 100644 slides/mongodb/ghengis.xml
create mode 100644 slides/mongodb/id.xml
create mode 100644 slides/mongodb/index.jpg
create mode 100644 slides/mongodb/indexes-geo.xml
create mode 100644 slides/mongodb/indexes.xml
create mode 100644 slides/mongodb/indexes2.xml
create mode 100644 slides/mongodb/indexes3.xml
create mode 100644 slides/mongodb/insert.xml
create mode 100644 slides/mongodb/limit-skip.xml
create mode 100644 slides/mongodb/me.xml
create mode 100644 slides/mongodb/mms.png
create mode 100644 slides/mongodb/mms.xml
create mode 100644 slides/mongodb/mongo-extension.xml
create mode 100644 slides/mongodb/mongod-install.xml
create mode 100644 slides/mongodb/mongodb-large.png
create mode 100644 slides/mongodb/mongodb.png
create mode 100644 slides/mongodb/query-advanced-example-array1.xml
create mode 100644 slides/mongodb/query-advanced-example-array2.xml
create mode 100644 slides/mongodb/query-advanced-example-gte.xml
create mode 100644 slides/mongodb/query-advanced-ops.xml
create mode 100644 slides/mongodb/query.xml
create mode 100644 slides/mongodb/query2.xml
create mode 100644 slides/mongodb/replication.xml
create mode 100644 slides/mongodb/replset.png
create mode 100644 slides/mongodb/resources.xml
create mode 100644 slides/mongodb/safe.xml
create mode 100644 slides/mongodb/safe2.xml
create mode 100644 slides/mongodb/sharding.png
create mode 100644 slides/mongodb/sharding.xml
create mode 100644 slides/mongodb/sort.xml
create mode 100644 slides/mongodb/title.xml
create mode 100644 slides/mongodb/tools-and-monitoring.xml
create mode 100644 slides/mongodb/types.xml
create mode 100644 slides/mongodb/update-modifiers.xml
create mode 100644 slides/mongodb/update-modifiers2.xml
create mode 100644 slides/mongodb/update-modifiers3.xml
create mode 100644 slides/mongodb/update-modifiers4.xml
create mode 100644 slides/mongodb/update.xml
create mode 100644 slides/mongodb/update2.xml
create mode 100644 slides/mongodb/update2a.xml
create mode 100644 slides/mongodb/upsert.xml
create mode 100644 slides/mongodb/what-is-mongodb.xml
create mode 100644 slides/mongodb/whats-next.xml
create mode 100644 slides/profiling/camouflage-250.png
create mode 100644 slides/profiling/ezpublish-time2.png
create mode 100644 slides/profiling/joindin-4357.png
create mode 100644 slides/xdebug/profiling3.xml
create mode 100644 slides/xdebug/tracefile-computerized2.png
-- Log ----------------------------------------
commit 7bb43665e988f0ff7cc29c61ce8043608d76fc93
Author: Derick Rethans <github@derickrethans.nl>
Date: Thu Feb 23 14:34:51 2012 +0000
Lots of new presentations that I hadn't committed yet.
diff --git a/internals-sensio.xml b/internals-sensio.xml
new file mode 100644
index 0000000..9de4595
--- /dev/null
+++ b/internals-sensio.xml
@@ -0,0 +1,90 @@
+<presentation
+ template="css"
+ navmode="html"
+ navbarbackground="#3C5BB4"
+ stylesheet="presentations/slides/ze-xdebug/style.css"
+ backgroundfixed="1" >
+<topic>Internals</topic>
+<title>PHP Internals</title>
+<event>Sensio Training</event>
+<location>Paris, France</location>
+<date>June 13, 2011</date>
+<speaker>Derick Rethans</speaker>
+<email>derick@derickrethans.nl</email>
+<twitter>derickr</twitter>
+<slide>slides/dbus/title.xml</slide>
+<slide>slides/internals/overview-tutorial.xml</slide>
+
+<slide>slides/internals/apache2-module.xml</slide>
+<slide>slides/internals/cgi.xml</slide>
+<slide>slides/internals/cli.xml</slide>
+<slide>slides/internals/fastcgi.xml</slide>
+<slide>slides/internals/fpm.xml</slide>
+<slide>slides/internals/threaded.xml</slide>
+
+<slide>slides/internals/extension-loading.xml</slide>
+
+<slide>slides/internals/parse_error.xml</slide>
+<slide>slides/internals/lex.xml</slide>
+<slide>slides/internals/tokens.xml</slide>
+<slide>slides/internals/alltokens.xml</slide>
+<slide>slides/internals/tokenizer1.xml</slide>
+<slide>slides/internals/tokenizer2.xml</slide>
+
+<slide>slides/internals/compile.xml</slide>
+<slide>slides/internals/opcode2.xml</slide>
+<slide>slides/internals/opcode.xml</slide>
+<slide>slides/internals/vld-example.xml</slide>
+<slide>slides/internals/vld1.xml</slide>
+<slide>slides/internals/vld2.xml</slide>
+
+<slide>slides/internals/execute1.xml</slide>
+<slide>slides/internals/execute2.xml</slide>
+<slide>slides/internals/execute3.xml</slide>
+<slide>slides/internals/execute4.xml</slide>
+
+<!-- CACHES -->
+<slide>slides/internals/execute5.xml</slide>
+<slide>slides/internals/opcode-cache.xml</slide>
+<slide>slides/internals/how_ccache_serialize.xml</slide>
+
+<slide>slides/internals/runcompiletime.xml</slide>
+<slide>slides/internals/runcompiletime2.xml</slide>
+<slide>slides/internals/runcompiletime3.xml</slide>
+<slide>slides/internals/runcompiletime4.xml</slide>
+<slide>slides/internals/namespaces2.xml</slide>
+<slide>slides/internals/namespaces3.xml</slide>
+<slide>slides/internals/namespaces4.xml</slide>
+- traits
+
+<slide>slides/internals/questions.xml</slide>
+
+<!-- VARIABLES -->
+
+<slide>slides/internals/zval.xml</slide>
+<slide>slides/internals/internal-variable-types.xml</slide>
+<slide>slides/internals/variables1.xml</slide>
+<slide>slides/internals/variables2.xml</slide>
+<slide>slides/internals/variables3.xml</slide>
+<slide>slides/internals/variables4.xml</slide>
+<slide>slides/internals/variables5.xml</slide>
+<slide>slides/internals/variables6.xml</slide>
+<slide>slides/internals/variables7.xml</slide>
+<slide>slides/internals/variables8.xml</slide>
+<slide>slides/internals/variables9.xml</slide>
+<slide>slides/internals/variables10.xml</slide>
+<slide>slides/internals/variables11-php4.xml</slide>
+<slide>slides/internals/variables11.xml</slide>
+
+<slide>slides/internals/gc1.xml</slide>
+<slide>slides/internals/gc2.xml</slide>
+<slide>slides/internals/gc3.xml</slide>
+<slide>slides/internals/gc4.xml</slide>
+<slide>slides/internals/gc5.xml</slide>
+<slide>slides/internals/gc6.xml</slide>
+<slide>slides/internals/gc7.xml</slide>
+<slide>slides/internals/gc8.xml</slide>
+
+<slide>slides/internals/questions.xml</slide>
+<slide>slides/internals/resources.xml</slide>
+</presentation>
diff --git a/mongo-london12.xml b/mongo-london12.xml
new file mode 100644
index 0000000..4db268e
--- /dev/null
+++ b/mongo-london12.xml
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="utf-8"?>
+<presentation css="10gen.css">
+<topic>mongoDB</topic>
+<title>Introduction: MongoDB with PHP</title>
+<event>PHP UK Conference</event>
+<location>London, UK</location>
+<date>Feb 25th, 2012</date>
+<speaker>Derick Rethans</speaker>
+<email>derick@10gen.com</email>
+<twitter>derickr</twitter>
+<url>http://derickrethans.nl/talks.html</url>
+<joindin>http://joind.in/4976</joindin>
+<slide>slides/mongodb/title.xml</slide>
+<slide>slides/mongodb/me.xml</slide>
+
+<slide>slides/mongodb/what-is-mongodb.xml</slide>
+- document storage
+- no configuration (or very little)
+- scalable and fast
+
+<slide>slides/mongodb/mongod-install.xml</slide>
+<slide>slides/mongodb/mongo-extension.xml</slide>
+- install
+ - driver
+ - mongodb
+
+<slide>slides/mongodb/collections-documents.xml</slide>
+
+<slide>slides/mongodb/connecting.xml</slide>
+
+<slide>slides/mongodb/document.xml</slide>
+- json
+- typed
+- ids
+
+<slide>slides/mongodb/insert.xml</slide>
+- single
+
+<slide>slides/mongodb/types.xml</slide>
+- php types
+- extra types (int32/64)
+- id
+<slide>slides/mongodb/id.xml</slide>
+<slide>slides/mongodb/safe.xml</slide>
+<slide>slides/mongodb/safe2.xml</slide>
+
+<slide>slides/mongodb/cursors.xml</slide>
+- cursor
+<slide>slides/mongodb/limit-skip.xml</slide>
+- limit/skip
+
+
+<slide>slides/mongodb/query-advanced-ops.xml</slide>
+- regexp
+
+<slide>slides/mongodb/query-advanced-example-gte.xml</slide>
+
+<slide>slides/mongodb/update.xml</slide>
+<slide>slides/mongodb/update-modifiers.xml</slide>
+<slide>slides/mongodb/update2.xml</slide>
+<slide>slides/mongodb/update2a.xml</slide>
+<slide>slides/mongodb/upsert.xml</slide>
+<slide>slides/mongodb/update-modifiers2.xml</slide>
+
+<slide>slides/mongodb/indexes.xml</slide>
+<slide>slides/mongodb/indexes2.xml</slide>
+<slide>slides/mongodb/indexes3.xml</slide>
+- ensureIndex
+- single
+- compound
+- sorting
+- regexp with ^
+
+<slide>slides/mongodb/indexes-geo.xml</slide>
+- 2d index
+- within: box/circle
+
+<slide>slides/mongodb/commands-distinct.xml</slide>
+
+<!--
+<slide>slides/mongodb/replication.xml</slide>
+- setup
+- slaveOk
+- journal
+- write concerns
+- tags (mention briefly)
+- php connection string
+
+<slide>slides/mongodb/sharding.xml</slide>
+- mongos
+- diagram
+- transparent
+-->
+
+<slide>slides/mongodb/tools-and-monitoring.xml</slide>
+<slide>slides/mongodb/ghengis.xml</slide>
+<slide>slides/mongodb/mms.xml</slide>
+<slide>slides/mongodb/resources.xml</slide>
+
+</presentation>
diff --git a/mongo-magento-ug.xml b/mongo-magento-ug.xml
new file mode 100644
index 0000000..5260406
--- /dev/null
+++ b/mongo-magento-ug.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<presentation css="10gen.css">
+<topic>mongoDB</topic>
+<title>MongoDB introduction</title>
+<event>London Magento Users Group</event>
+<location>London, UK</location>
+<date>Feb 15th, 2012</date>
+<speaker>Derick Rethans</speaker>
+<email>derick@10gen.com</email>
+<twitter>derickr</twitter>
+<url>http://derickrethans.nl/talks.html</url>
+<joindin></joindin>
+<slide>slides/mongodb/title.xml</slide>
+<slide>slides/mongodb/me.xml</slide>
+
+<slide>slides/mongodb/document.xml</slide>
+- json
+- typed
+- ids
+
+<slide>slides/mongodb/eav.xml</slide>
+<slide>slides/mongodb/eav2.xml</slide>
+<slide>slides/mongodb/eav3.xml</slide>
+
+<slide>slides/mongodb/connecting.xml</slide>
+
+<slide>slides/mongodb/types.xml</slide>
+- php types
+- extra types (int32/64)
+- id
+
+<slide>slides/mongodb/insert.xml</slide>
+<slide>slides/mongodb/safe.xml</slide>
+
+<slide>slides/mongodb/limit-skip.xml</slide>
+- limit/skip
+
+<slide>slides/mongodb/indexes3.xml</slide>
+- ensureIndex
+- single
+- compound
+- sorting
+- regexp with ^
+
+<slide>slides/mongodb/indexes-geo.xml</slide>
+- 2d index
+- within: box/circle
+
+<slide>slides/mongodb/replication.xml</slide>
+- setup
+- slaveOk
+- journal
+- write concerns
+- tags (mention briefly)
+- php connection string
+
+<slide>slides/mongodb/sharding.xml</slide>
+- mongos
+- diagram
+- transparent
+
+<slide>slides/mongodb/ghengis.xml</slide>
+<slide>slides/mongodb/resources.xml</slide>
+
+</presentation>
diff --git a/mongo-mug-2012jan.xml b/mongo-mug-2012jan.xml
new file mode 100644
index 0000000..507e4a7
--- /dev/null
+++ b/mongo-mug-2012jan.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<presentation css="10gen.css">
+<topic>mongoDB</topic>
+<title>PHP and mongoDB</title>
+<event>mongoDB UG</event>
+<location>London, UK</location>
+<date>Jan 31th, 2012</date>
+<speaker>Derick Rethans</speaker>
+<email>derick@10gen.com</email>
+<twitter>derickr</twitter>
+<url>http://derickrethans.nl/talks.html</url>
+<joindin></joindin>
+<slide>slides/mongodb/title.xml</slide>
+<slide>slides/mongodb/me.xml</slide>
+
+<slide>slides/mongodb/mongo-extension.xml</slide>
+- install
+ - driver
+ - mongodb
+
+<slide>slides/mongodb/connecting.xml</slide>
+
+<slide>slides/mongodb/document.xml</slide>
+- json
+- typed
+- ids
+
+<slide>slides/mongodb/insert.xml</slide>
+- single
+
+<slide>slides/mongodb/types.xml</slide>
+- php types
+- extra types (int32/64)
+- id
+<slide>slides/mongodb/id.xml</slide>
+<slide>slides/mongodb/safe.xml</slide>
+<slide>slides/mongodb/safe2.xml</slide>
+
+<slide>slides/mongodb/query.xml</slide>
+<slide>slides/mongodb/query2.xml</slide>
+- findOne
+- find
+
+<slide>slides/mongodb/cursors.xml</slide>
+- cursor
+<slide>slides/mongodb/limit-skip.xml</slide>
+- limit/skip
+
+<slide>slides/mongodb/query-advanced-example-gte.xml</slide>
+
+<slide>slides/mongodb/update-modifiers.xml</slide>
+<slide>slides/mongodb/update2a.xml</slide>
+<slide>slides/mongodb/upsert.xml</slide>
+
+<slide>slides/mongodb/indexes2.xml</slide>
+<slide>slides/mongodb/indexes3.xml</slide>
+- ensureIndex
+- single
+- compound
+- sorting
+- regexp with ^
+
+<slide>slides/mongodb/indexes-geo.xml</slide>
+- 2d index
+- within: box/circle
+
+<slide>slides/mongodb/commands.xml</slide>
+<slide>slides/mongodb/commands-distinct.xml</slide>
+
+<!--
+<slide>slides/mongodb/replication.xml</slide>
+- setup
+- slaveOk
+- journal
+- write concerns
+- tags (mention briefly)
+- php connection string
+
+<slide>slides/mongodb/sharding.xml</slide>
+- mongos
+- diagram
+- transparent
+-->
+
+<slide>slides/mongodb/ghengis.xml</slide>
+<slide>slides/mongodb/whats-next.xml</slide>
+<slide>slides/mongodb/resources.xml</slide>
+
+</presentation>
diff --git a/mongo-phpbnl12.xml b/mongo-phpbnl12.xml
new file mode 100644
index 0000000..c70c49c
--- /dev/null
+++ b/mongo-phpbnl12.xml
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="utf-8"?>
+<presentation css="10gen.css">
+<topic>mongoDB</topic>
+<title>PHP and mongoDB</title>
+<event>PHP Benelux</event>
+<location>Edegem, Belgium</location>
+<date>Jan 28th, 2012</date>
+<speaker>Derick Rethans</speaker>
+<email>derick@10gen.com</email>
+<twitter>derickr</twitter>
+<url>http://derickrethans.nl/talks.html</url>
+<joindin>http://joind.in/4756</joindin>
+<slide>slides/mongodb/title.xml</slide>
+<slide>slides/mongodb/me.xml</slide>
+
+<slide>slides/mongodb/what-is-mongodb.xml</slide>
+- document storage
+- no configuration (or very little)
+- scalable and fast
+
+<slide>slides/mongodb/mongod-install.xml</slide>
+<slide>slides/mongodb/mongo-extension.xml</slide>
+- install
+ - driver
+ - mongodb
+
+<slide>slides/mongodb/collections-documents.xml</slide>
+
+<slide>slides/mongodb/connecting.xml</slide>
+
+<slide>slides/mongodb/document.xml</slide>
+- json
+- typed
+- ids
+
+<slide>slides/mongodb/insert.xml</slide>
+- single
+
+<slide>slides/mongodb/types.xml</slide>
+- php types
+- extra types (int32/64)
+- id
+<slide>slides/mongodb/id.xml</slide>
+<slide>slides/mongodb/safe.xml</slide>
+<slide>slides/mongodb/safe2.xml</slide>
+
+<slide>slides/mongodb/query.xml</slide>
+- findOne
+- find
+
+<slide>slides/mongodb/cursors.xml</slide>
+- cursor
+<slide>slides/mongodb/sort.xml</slide>
+- sort
+<slide>slides/mongodb/limit-skip.xml</slide>
+- limit/skip
+
+
+<slide>slides/mongodb/query-advanced-ops.xml</slide>
+- regexp
+
+<slide>slides/mongodb/query-advanced-example-gte.xml</slide>
+<slide>slides/mongodb/query-advanced-example-array1.xml</slide>
+<slide>slides/mongodb/query-advanced-example-array2.xml</slide>
+
+<slide>slides/mongodb/update.xml</slide>
+<slide>slides/mongodb/update-modifiers.xml</slide>
+<slide>slides/mongodb/update2.xml</slide>
+<slide>slides/mongodb/update2a.xml</slide>
+<slide>slides/mongodb/upsert.xml</slide>
+<slide>slides/mongodb/update-modifiers2.xml</slide>
+<slide>slides/mongodb/update-modifiers3.xml</slide>
+<slide>slides/mongodb/update-modifiers4.xml</slide>
+- atomic update ops
+- find and modify
+- upsert
+
+<slide>slides/mongodb/indexes.xml</slide>
+<slide>slides/mongodb/indexes2.xml</slide>
+<slide>slides/mongodb/indexes3.xml</slide>
+- ensureIndex
+- single
+- compound
+- sorting
+- regexp with ^
+
+<slide>slides/mongodb/indexes-geo.xml</slide>
+- 2d index
+- within: box/circle
+
+<slide>slides/mongodb/commands.xml</slide>
+<slide>slides/mongodb/commands-distinct.xml</slide>
+<slide>slides/mongodb/commands-aggregation.xml</slide>
+<slide>slides/mongodb/commands-aggregation-example.xml</slide>
+- distinct
+- mapreduce
+- aggregation framework?
+
+<!--
+<slide>slides/mongodb/replication.xml</slide>
+- setup
+- slaveOk
+- journal
+- write concerns
+- tags (mention briefly)
+- php connection string
+
+<slide>slides/mongodb/sharding.xml</slide>
+- mongos
+- diagram
+- transparent
+-->
+
+<slide>slides/mongodb/tools-and-monitoring.xml</slide>
+<slide>slides/mongodb/ghengis.xml</slide>
+<slide>slides/mongodb/mms.xml</slide>
+<slide>slides/mongodb/resources.xml</slide>
+
+</presentation>
diff --git a/profiling-phptourlille11.xml b/profiling-bcn11.xml
similarity index 93%
copy from profiling-phptourlille11.xml
copy to profiling-bcn11.xml
index 5039a03..d30d8b9 100644
--- a/profiling-phptourlille11.xml
+++ b/profiling-bcn11.xml
@@ -10,14 +10,14 @@
backgroundfixed="1" >
<topic>Debugging</topic>
<title>Profiling PHP Applications</title>
-<event>PHP Tour Lille</event>
-<location>Lille, Belgium!</location>
-<date>Nov 25th, 2011</date>
+<event>PHP Barcelona</event>
+<location>Barcelona, Spain</location>
+<date>Oct 29th, 2011</date>
<speaker>Derick Rethans</speaker>
<email>derick@derickrethans.nl</email>
<twitter>derickr</twitter>
<url>http://derickrethans.nl/talks.html</url>
-<joindin></joindin>
+<joindin>http://joind.in/4314</joindin>
<slide>slides/dbus/title.xml</slide>
<slide>slides/toolbox/me.xml</slide>
diff --git a/profiling-phptourlille11.xml b/profiling-london12.xml
similarity index 87%
copy from profiling-phptourlille11.xml
copy to profiling-london12.xml
index 5039a03..9b9a843 100644
--- a/profiling-phptourlille11.xml
+++ b/profiling-london12.xml
@@ -10,14 +10,14 @@
backgroundfixed="1" >
<topic>Debugging</topic>
<title>Profiling PHP Applications</title>
-<event>PHP Tour Lille</event>
-<location>Lille, Belgium!</location>
-<date>Nov 25th, 2011</date>
+<event>PHP UK Conference</event>
+<location>London, UK</location>
+<date>Feb 24th, 2012</date>
<speaker>Derick Rethans</speaker>
<email>derick@derickrethans.nl</email>
<twitter>derickr</twitter>
<url>http://derickrethans.nl/talks.html</url>
-<joindin></joindin>
+<joindin>http://joind.in/4948</joindin>
<slide>slides/dbus/title.xml</slide>
<slide>slides/toolbox/me.xml</slide>
@@ -51,11 +51,9 @@
<slide>slides/profiling/xhprof.xml</slide>
-<slide>slides/xdebug/profiling.xml</slide>
-<slide>slides/xdebug/profiling2.xml</slide>
+<slide>slides/xdebug/profiling3.xml</slide>
<slide>slides/xdebug/live-demo.xml</slide>
-<slide>slides/xdebug/donate.xml</slide>
<slide>slides/profiling/resources.xml</slide>
</presentation>
diff --git a/profiling-phptourlille11.xml b/profiling-phptourlille11.xml
index 5039a03..8b71e1e 100644
--- a/profiling-phptourlille11.xml
+++ b/profiling-phptourlille11.xml
@@ -11,13 +11,13 @@
<topic>Debugging</topic>
<title>Profiling PHP Applications</title>
<event>PHP Tour Lille</event>
-<location>Lille, Belgium!</location>
+<location>Lille, France</location>
<date>Nov 25th, 2011</date>
<speaker>Derick Rethans</speaker>
<email>derick@derickrethans.nl</email>
<twitter>derickr</twitter>
<url>http://derickrethans.nl/talks.html</url>
-<joindin></joindin>
+<joindin>4357</joindin>
<slide>slides/dbus/title.xml</slide>
<slide>slides/toolbox/me.xml</slide>
@@ -51,11 +51,9 @@
<slide>slides/profiling/xhprof.xml</slide>
-<slide>slides/xdebug/profiling.xml</slide>
-<slide>slides/xdebug/profiling2.xml</slide>
+<slide>slides/xdebug/profiling3.xml</slide>
<slide>slides/xdebug/live-demo.xml</slide>
-<slide>slides/xdebug/donate.xml</slide>
<slide>slides/profiling/resources.xml</slide>
</presentation>
diff --git a/profiling-phptourlille11.xml b/profiling-teqneers11.xml
similarity index 75%
copy from profiling-phptourlille11.xml
copy to profiling-teqneers11.xml
index 5039a03..293a240 100644
--- a/profiling-phptourlille11.xml
+++ b/profiling-teqneers11.xml
@@ -10,21 +10,15 @@
backgroundfixed="1" >
<topic>Debugging</topic>
<title>Profiling PHP Applications</title>
-<event>PHP Tour Lille</event>
-<location>Lille, Belgium!</location>
-<date>Nov 25th, 2011</date>
+<event>TEQNeers</event>
+<location>Stuttgart, Germany</location>
+<date>Jul 20, 2011</date>
<speaker>Derick Rethans</speaker>
<email>derick@derickrethans.nl</email>
<twitter>derickr</twitter>
<url>http://derickrethans.nl/talks.html</url>
<joindin></joindin>
<slide>slides/dbus/title.xml</slide>
-<slide>slides/toolbox/me.xml</slide>
-
-<!-- not everything you read on the internet *matters* -->
-<!-- not everything you read on the internet is true -->
-<slide>slides/profiling/does-not-matter.xml</slide>
-<slide>slides/profiling/does-not-matter2.xml</slide>
<!-- benchmark -->
<slide>slides/profiling/is-it-slow.xml</slide>
@@ -44,18 +38,14 @@
<slide>slides/xdebug/wtf-happens.xml</slide>
<slide>slides/xdebug/functiontrace-computerized.xml</slide>
<slide>slides/xdebug/wtf-happens2.xml</slide>
-<slide>slides/xdebug/trace-tools.xml</slide>
<slide>slides/xdebug/live-demo.xml</slide>
<slide>slides/xdebug/profile2.xml</slide>
-<slide>slides/profiling/xhprof.xml</slide>
-
<slide>slides/xdebug/profiling.xml</slide>
<slide>slides/xdebug/profiling2.xml</slide>
<slide>slides/xdebug/live-demo.xml</slide>
-<slide>slides/xdebug/donate.xml</slide>
<slide>slides/profiling/resources.xml</slide>
</presentation>
diff --git a/slides/mongodb/.svn/entries b/slides/mongodb/.svn/entries
new file mode 100644
index 0000000..e7a8337
--- /dev/null
+++ b/slides/mongodb/.svn/entries
@@ -0,0 +1,413 @@
+10
+
+dir
+0
+https://svn.php.net/repository/web/presentations/trunk/slides/mongodb
+https://svn.php.net/repository
+add
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+c90b9560-bf6c-de11-be94-00142212c4b1
+
+commands-distinct.xml
+file
+
+
+
+add
+
+indexes2.xml
+file
+
+
+
+add
+
+indexes3.xml
+file
+
+
+
+add
+
+limit-skip.xml
+file
+
+
+
+add
+
+update.xml
+file
+
+
+
+add
+
+upsert.xml
+file
+
+
+
+add
+
+commands-aggregation.xml
+file
+
+
+
+add
+
+10gen-large.png
+file
+
+
+
+add
+
+
+
+
+
+has-props
+has-prop-mods
+
+sort.xml
+file
+
+
+
+add
+
+connecting.xml
+file
+
+
+
+add
+
+mongo-extension.xml
+file
+
+
+
+add
+
+mms.xml
+file
+
+
+
+add
+
+id.xml
+file
+
+
+
+add
+
+indexes.xml
+file
+
+
+
+add
+
+me.xml
+file
+
+
+
+add
+
+commands.xml
+file
+
+
+
+add
+
+types.xml
+file
+
+
+
+add
+
+update2.xml
+file
+
+
+
+add
+
+update2a.xml
+file
+
+
+
+add
+
+Ghengis.png
+file
+
+
+
+add
+
+
+
+
+
+has-props
+has-prop-mods
+
+mongodb.png
+file
+
+
+
+add
+
+
+
+
+
+has-props
+has-prop-mods
+
+resources.xml
+file
+
+
+
+add
+
+collections-documents.xml
+file
+
+
+
+add
+
+safe.xml
+file
+
+
+
+add
+
+commands-aggregation-example.xml
+file
+
+
+
+add
+
+mms.png
+file
+
+
+
+add
+
+
+
+
+
+has-props
+has-prop-mods
+
+title.xml
+file
+
+
+
+add
+
+update-modifiers2.xml
+file
+
+
+
+add
+
+tools-and-monitoring.xml
+file
+
+
+
+add
+
+update-modifiers3.xml
+file
+
+
+
+add
+
+ghengis.xml
+file
+
+
+
+add
+
+update-modifiers4.xml
+file
+
+
+
+add
+
+mongod-install.xml
+file
+
+
+
+add
+
+index.jpg
+file
+
+
+
+add
+
+
+
+
+
+has-props
+has-prop-mods
+
+query-advanced-example-array1.xml
+file
+
+
+
+add
+
+10gen.png
+file
+
+
+
+add
+
+
+
+
+
+has-props
+has-prop-mods
+
+what-is-mongodb.xml
+file
+
+
+
+add
+
+query-advanced-example-array2.xml
+file
+
+
+
+add
+
+safe2.xml
+file
+
+
+
+add
+
+cursors.xml
+file
+
+
+
+add
+
+update-modifiers.xml
+file
+
+
+
+add
+
+mongodb-large.png
+file
+
+
+
+add
+
+
+
+
+
+has-props
+has-prop-mods
+
+insert.xml
+file
+
+
+
+add
+
+query.xml
+file
+
+
+
+add
+
+query-advanced-ops.xml
+file
+
+
+
+add
+
+indexes-geo.xml
+file
+
+
+
+add
+
+document.xml
+file
+
+
+
+add
+
+query-advanced-example-gte.xml
+file
+
+
+
+add
+
diff --git a/slides/mongodb/.svn/props/10gen-large.png.svn-work
b/slides/mongodb/.svn/props/10gen-large.png.svn-work
new file mode 100644
index 0000000..5e9587e
--- /dev/null
+++ b/slides/mongodb/.svn/props/10gen-large.png.svn-work
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/slides/mongodb/.svn/props/10gen.png.svn-work
b/slides/mongodb/.svn/props/10gen.png.svn-work
new file mode 100644
index 0000000..5e9587e
--- /dev/null
+++ b/slides/mongodb/.svn/props/10gen.png.svn-work
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/slides/mongodb/.svn/props/Ghengis.png.svn-work
b/slides/mongodb/.svn/props/Ghengis.png.svn-work
new file mode 100644
index 0000000..5e9587e
--- /dev/null
+++ b/slides/mongodb/.svn/props/Ghengis.png.svn-work
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/slides/mongodb/.svn/props/index.jpg.svn-work
b/slides/mongodb/.svn/props/index.jpg.svn-work
new file mode 100644
index 0000000..5e9587e
--- /dev/null
+++ b/slides/mongodb/.svn/props/index.jpg.svn-work
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/slides/mongodb/.svn/props/mms.png.svn-work b/slides/mongodb/.svn/props/mms.png.svn-work
new file mode 100644
index 0000000..5e9587e
--- /dev/null
+++ b/slides/mongodb/.svn/props/mms.png.svn-work
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/slides/mongodb/.svn/props/mongodb-large.png.svn-work
b/slides/mongodb/.svn/props/mongodb-large.png.svn-work
new file mode 100644
index 0000000..5e9587e
--- /dev/null
+++ b/slides/mongodb/.svn/props/mongodb-large.png.svn-work
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/slides/mongodb/.svn/props/mongodb.png.svn-work
b/slides/mongodb/.svn/props/mongodb.png.svn-work
new file mode 100644
index 0000000..5e9587e
--- /dev/null
+++ b/slides/mongodb/.svn/props/mongodb.png.svn-work
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/slides/mongodb/10gen-large.png b/slides/mongodb/10gen-large.png
new file mode 100644
index 0000000..34d5b05
Binary files /dev/null and b/slides/mongodb/10gen-large.png differ
diff --git a/slides/mongodb/10gen.png b/slides/mongodb/10gen.png
new file mode 100644
index 0000000..bfd4a43
Binary files /dev/null and b/slides/mongodb/10gen.png differ
diff --git a/slides/mongodb/Ghengis.png b/slides/mongodb/Ghengis.png
new file mode 100644
index 0000000..c38a776
Binary files /dev/null and b/slides/mongodb/Ghengis.png differ
diff --git a/slides/mongodb/collections-documents.xml b/slides/mongodb/collections-documents.xml
new file mode 100644
index 0000000..315c146
--- /dev/null
+++ b/slides/mongodb/collections-documents.xml
@@ -0,0 +1,10 @@
+<slide>
+<title>Terminology</title>
+
+<list>
+ <bullet>*JSON Document*: the data (row)</bullet>
+ <bullet>*Collection*: contains documents (table, view)</bullet>
+ <bullet>*Index*</bullet>
+ <bullet>*Embedded Document* (~join)</bullet>
+</list>
+</slide>
diff --git a/slides/mongodb/commands-aggregation-example.xml
b/slides/mongodb/commands-aggregation-example.xml
new file mode 100644
index 0000000..fc347f9
--- /dev/null
+++ b/slides/mongodb/commands-aggregation-example.xml
@@ -0,0 +1,33 @@
+<slide>
+<title>Aggregation Example</title>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo; $d = $m->demo; $c = $d->articles; $c->drop();
+
+$c->insert( [
+ "title" => "Profiling PHP Applications",
+ "url" => "http://derickrethans.nl/talks/profiling-phptourlille11.pdf",
+ "tags" => [ "php", "profiling" ]
+] );
+$c->insert( [
+ "title" => "Xdebug",
+ "url" => "http://derickrethans.nl/talks/xdebug-phpbcn11.pdf",
+ "tags" => [ "php", "xdebug" ]
+] );
+
+$m = $d->command( [
+ 'aggregate' => 'articles',
+ 'pipeline' => [
+ [ '$match' => [ 'tags' => 'php' ] ],
+ [ '$unwind' => '$tags' ],
+ [ '$project' => [
+ 'title' => [ '$add' => [ '$title', ': ',
'$url' ] ],
+ 'tag' => '$tags'
+ ] ]
+ ]
+] );
+
+foreach( $m['result'] as $res ) { echo $res['title'], ' (',
$res['tag'], ")\n"; }
+?>]]></example>
+</slide>
+
diff --git a/slides/mongodb/commands-aggregation.xml b/slides/mongodb/commands-aggregation.xml
new file mode 100644
index 0000000..2b59401
--- /dev/null
+++ b/slides/mongodb/commands-aggregation.xml
@@ -0,0 +1,17 @@
+<slide>
+<title>Aggregation Framework</title>
+<subtitle>New in 2.2</subtitle>
+
+<blurb>Powerfull framework for running multiple operations in a pipeline</blurb>
+<blurb>Operations are:</blurb>
+<list>
+ <bullet>%$match%: for matching documents, Ã la %find()%.</bullet>
+ <bullet>%$project%: for "rewriting" documents, but more powerful with
+ computed expressions: adding fields (%$add%), conditions (%$ifNull%),
+ string functions (%$toLower%), etc</bullet>
+ <bullet>%$unwind%: hands out array elements each at a time</bullet>
+ <bullet>%$group%: aggregates items into buckets defined by key</bullet>
+ <bullet>%$sort%</bullet>
+ <bullet>%$limit% / %$skip%</bullet>
+</list>
+</slide>
diff --git a/slides/mongodb/commands-distinct.xml b/slides/mongodb/commands-distinct.xml
new file mode 100644
index 0000000..fd996b2
--- /dev/null
+++ b/slides/mongodb/commands-distinct.xml
@@ -0,0 +1,19 @@
+<slide>
+<title>Distinct</title>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo; $c = $m->demo->pubs; $c->drop();
+
+$c->insert( [ 'name' => 'Betsy Smith', 'city' =>
'London' ] );
+$c->insert( [ 'name' => 'London Tavern', 'city' =>
'London' ] );
+$c->insert( [ 'name' => 'Lammars', 'city' =>
'Manchester' ] );
+$c->insert( [ 'name' => 'Weatherspoons', 'city' =>
'Coventry' ] );
+
+$r = $m->demo->command( [
+ 'distinct' => 'pubs',
+ 'key' => 'city',
+ 'query' => [ 'name' => [ '$ne' =>
'Weatherspoons' ] ]
+] );
+var_dump( $r['values'] );
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/commands.xml b/slides/mongodb/commands.xml
new file mode 100644
index 0000000..14899f1
--- /dev/null
+++ b/slides/mongodb/commands.xml
@@ -0,0 +1,10 @@
+<slide>
+<title>Commands</title>
+
+<list>
+ <bullet>Are run on the database</bullet>
+ <bullet>Do *not* return a cursor</bullet>
+ <bullet>Return one document</bullet>
+ <bullet>Some commands have helpers in the drivers and shell</bullet>
+</list>
+</slide>
diff --git a/slides/mongodb/connecting.xml b/slides/mongodb/connecting.xml
new file mode 100644
index 0000000..2f76073
--- /dev/null
+++ b/slides/mongodb/connecting.xml
@@ -0,0 +1,22 @@
+<slide>
+<title>Connecting to mongoDB</title>
+
+<blurb>No tables or collections have to do be explicitly created:</blurb>
+<break />
+
+<example><![CDATA[<?php
+$m = new Mongo();
+$database = $m->demo;
+$collection = $database->testCollection;
+?>]]>
+</example>
+<break/>
+
+<blurb>Different connection strings:</blurb>
+<list>
+ <bullet>%new Mongo("mongodb://localhost");%</bullet>
+ <bullet>%new Mongo("mongodb://localhost:29000");%</bullet>
+ <bullet>%new Mongo("mongodb://mongo.example.com");%</bullet>
+ <bullet>%new
Mongo("mongodb://mdb1.example.com,mdb2.example.com",%<br/>%  [
'replicaSet' => 'testSet' ] );%</bullet>
+</list>
+</slide>
diff --git a/slides/mongodb/cursors.xml b/slides/mongodb/cursors.xml
new file mode 100644
index 0000000..f3a565e
--- /dev/null
+++ b/slides/mongodb/cursors.xml
@@ -0,0 +1,19 @@
+<slide>
+<title>Querying and looping</title>
+
+<blurb>Finding multiple documents is done with the %find()%, and returns an
+iterator in the form of a %MongoCursor% object.</blurb>
+<break/>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo();
+$c = $m->demo->articles;
+
+$cursor = $c->find( [ 'title' => [ '$exists' => true ] ] );
+
+foreach ( $cursor as $r )
+{
+ echo $r['title'], ': ', join( ', ', $r['tags'] ),
"\n";
+}
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/document.xml b/slides/mongodb/document.xml
new file mode 100644
index 0000000..d835cbb
--- /dev/null
+++ b/slides/mongodb/document.xml
@@ -0,0 +1,40 @@
+<slide>
+<title>Documents</title>
+
+<list>
+ <bullet>Stored as BSON (Binary JSON)</bullet>
+ <bullet>Can have embedded documents</bullet>
+ <bullet>Have a unique ID (the %_id% field)</bullet>
+ <bullet>Are *schemaless*</bullet>
+</list>
+<break/>
+
+<div effect="fade-out">
+<blurb>Simple document:</blurb>
+<example>
+{
+ "_id" : ObjectId("4cb4ab6d7addf98506010001"),
+ "handle" : "derickr",
+ "name" : "Derick Rethans"
+}
+</example>
+</div>
+
+<div effect="fade-in">
+<blurb>Document with embedded documents:</blurb>
+<example>
+{
+ "_id" : "derickr",
+ "name" : "Derick Rethans",
+ "talks" : [
+ { "title" : "Profiling PHP Applications",
+ "url" : "http://derickrethans.nl/talks/profiling-phptour.pdf",
+ },
+ { "title" : "Xdebug",
+ "url" : "http://derickrethans.nl/talks/xdebug-phpbcn11.pdf",
+ }
+ ]
+}
+</example>
+</div>
+</slide>
diff --git a/slides/mongodb/eav.dia b/slides/mongodb/eav.dia
new file mode 100644
index 0000000..a186e71
Binary files /dev/null and b/slides/mongodb/eav.dia differ
diff --git a/slides/mongodb/eav.png b/slides/mongodb/eav.png
new file mode 100644
index 0000000..6519b51
Binary files /dev/null and b/slides/mongodb/eav.png differ
diff --git a/slides/mongodb/eav.xml b/slides/mongodb/eav.xml
new file mode 100644
index 0000000..3313683
--- /dev/null
+++ b/slides/mongodb/eav.xml
@@ -0,0 +1,23 @@
+<slide>
+<title>EAV: Entity Attribute Value</title>
+
+<div effect="fade-out">
+<image filename="eav.png"/>
+</div>
+
+<div effect="fade-in">
+<example>
+SELECT cpe.entity_id, value AS name
+FROM catalog_product_entity cpe
+
+INNER JOIN eav_attribute ea
+ ON cpe.entity_type_id = ea.entity_type_id
+
+INNER JOIN catalog_product_entity_varchar cpev
+ ON ea.attribute_id = cpev.attribute_id AND
+ cpe.entity_id = cpev.entity_id
+
+WHERE ea.attribute_code = 'name'
+</example>
+</div>
+</slide>
diff --git a/slides/mongodb/eav2.xml b/slides/mongodb/eav2.xml
new file mode 100644
index 0000000..c302dbd
--- /dev/null
+++ b/slides/mongodb/eav2.xml
@@ -0,0 +1,24 @@
+<slide>
+<title>EAV: Entity Attribute Value</title>
+
+<example>SELECT entity_id, attribute_code, value
+FROM catalog_product_entity_text cpev
+JOIN eav_attribute ea ON cpev.attribute_id = ea.attribute_id;
+
+| entity_id | attribute_code | value |
++-----------+----------------------+-------------------+
+| 1 | description | Cute elephpant |
+| 1 | short_description | It&#39;s cute |
+| 1 | meta_keyword | NULL |
+
+SELECT entity_id, attribute_code, value
+FROM catalog_product_entity_int cpev
+JOIN eav_attribute ea ON cpev.attribute_id = ea.attribute_id;
+
+| entity_id | attribute_code | value |
++-----------+-----------------------+-------+
+| 1 | status | 1 |
+| 1 | visibility | 4 |
+| 1 | tax_class_id | 2 |
+</example>
+</slide>
diff --git a/slides/mongodb/eav3.xml b/slides/mongodb/eav3.xml
new file mode 100644
index 0000000..9c4d800
--- /dev/null
+++ b/slides/mongodb/eav3.xml
@@ -0,0 +1,17 @@
+<slide>
+<title>In MongoDB</title>
+
+<example>
+{
+ '_id': 1,
+ 'name' : 'Elephpant',
+ 'url_key': 'elephpant',
+ 'description': 'Cute elephpant',
+ 'short_description': "It's cute",
+ 'status': 1,
+ 'visibility': 4,
+ 'tax_class_id': 2,
+}
+</example>
+<image align="right" filename="elephpant.jpg"/>
+</slide>
diff --git a/slides/mongodb/elephpant.jpg b/slides/mongodb/elephpant.jpg
new file mode 100644
index 0000000..55b4ec4
Binary files /dev/null and b/slides/mongodb/elephpant.jpg differ
diff --git a/slides/mongodb/ghengis.xml b/slides/mongodb/ghengis.xml
new file mode 100644
index 0000000..69e1fb4
--- /dev/null
+++ b/slides/mongodb/ghengis.xml
@@ -0,0 +1,5 @@
+<slide>
+<title>Ghengis</title>
+
+<image filename="Ghengis.png"/>
+</slide>
diff --git a/slides/mongodb/id.xml b/slides/mongodb/id.xml
new file mode 100644
index 0000000..ce8d815
--- /dev/null
+++ b/slides/mongodb/id.xml
@@ -0,0 +1,18 @@
+<slide>
+<title>IDs</title>
+
+<list>
+ <bullet>Every document needs a unique ID</bullet>
+</list>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo();
+$c = $m->demo->articles;
+
+$c->insert( [ 'name' => 'Derick', '_id' =>
'derickr' ] );
+
+$d = array( 'name' => 'Derick' );
+$c->insert( $d );
+var_dump( $d );
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/index.jpg b/slides/mongodb/index.jpg
new file mode 100644
index 0000000..9c1d4d2
Binary files /dev/null and b/slides/mongodb/index.jpg differ
diff --git a/slides/mongodb/indexes-geo.xml b/slides/mongodb/indexes-geo.xml
new file mode 100644
index 0000000..62c7c04
--- /dev/null
+++ b/slides/mongodb/indexes-geo.xml
@@ -0,0 +1,23 @@
+<slide>
+<title>Geospatial Indexes</title>
+
+<blurb>Helps you with finding POIs (pubs!) in a 2D space</blurb>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo; $c = $m->demo->pubs; $c->drop();
+
+$c->ensureIndex( array( 'l' => '2d' ) );
+$c->insert([ 'name' => 'Betsy Smith', 'l' => [ -0.193,
51.537 ] ]);
+$c->insert([ 'name' => 'London Tavern', 'l' => [ -0.202,
51.545 ] ]);
+
+$closest = $m->demo->command( [
+ 'geoNear' => 'pubs',
+ 'near' => [ -0.198, 51.538 ],
+ 'spherical' => true,
+] );
+
+foreach ( $closest['results'] as $res ) {
+ printf( "%s: %.2f km\n", $res['obj']['name'], $res['dis']
* 6378 );
+}
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/indexes.xml b/slides/mongodb/indexes.xml
new file mode 100644
index 0000000..a68b944
--- /dev/null
+++ b/slides/mongodb/indexes.xml
@@ -0,0 +1,28 @@
+<slide>
+<title>Indexes</title>
+
+<div effect="fade-out">
+<list>
+ <bullet>Just like a relational database, mongoDB also benefits from indexes.</bullet>
+ <bullet>Every collection has (automatically) an index on %_id%.</bullet>
+ <bullet>Indexes can be on single or multiple fields.</bullet>
+ <bullet>MongoCursor->explain().</bullet>
+</list>
+
+<image filename="index.jpg" align="right" pdf-scale="0.4"
x-offset="15" y-offset="10"/>
+</div>
+
+<div effect="fade-in">
+<example result="1"><![CDATA[<?php
ini_set('xdebug.var_display_max_depth', 1);
+$m = new Mongo;
+$c = $m->demo->elephpants;
+$c->drop();
+
+$c->insert( array( '_id' => 'ele1', 'name' =>
'Jumbo' ) );
+$c->insert( array( '_id' => 'ele2', 'name' =>
'Tantor' ) );
+
+var_dump( $c->find( [ '_id' => 'ele1' ] )->explain() );
+?>]]>
+</example>
+</div>
+</slide>
diff --git a/slides/mongodb/indexes2.xml b/slides/mongodb/indexes2.xml
new file mode 100644
index 0000000..4a3d548
--- /dev/null
+++ b/slides/mongodb/indexes2.xml
@@ -0,0 +1,16 @@
+<slide>
+<title>Indexes</title>
+
+<example result="1"><![CDATA[<?php
ini_set('xdebug.var_display_max_depth', 1);
+$m = new Mongo;
+$c = $m->demo->elephpants;
+$c->drop();
+
+$c->insert( [ '_id' => 'ele1', 'name' => 'Jumbo' ]
);
+$c->insert( [ '_id' => 'ele2', 'name' => 'Tantor'
] );
+$c->insert( [ '_id' => 'ele3', 'name' => 'Stampy'
] );
+
+var_dump( $c->find( [ 'name' => 'Jumbo' ] )->explain() );
+?>]]>
+</example>
+</slide>
diff --git a/slides/mongodb/indexes3.xml b/slides/mongodb/indexes3.xml
new file mode 100644
index 0000000..211522b
--- /dev/null
+++ b/slides/mongodb/indexes3.xml
@@ -0,0 +1,18 @@
+<slide>
+<title>Indexes</title>
+
+<example result="1"><![CDATA[<?php
ini_set('xdebug.var_display_max_depth', 1);
+$m = new Mongo;
+$c = $m->demo->elephpants;
+$c->drop();
+
+$c->ensureIndex( [ 'name' => 1 ] );
+
+$c->insert( [ '_id' => 'ele1', 'name' => 'Jumbo' ]
);
+$c->insert( [ '_id' => 'ele2', 'name' => 'Tantor'
] );
+$c->insert( [ '_id' => 'ele3', 'name' => 'Stampy'
] );
+
+var_dump( $c->find( [ 'name' => 'Jumbo' ] )->explain() );
+?>]]>
+</example>
+</slide>
diff --git a/slides/mongodb/insert.xml b/slides/mongodb/insert.xml
new file mode 100644
index 0000000..e3a3fb9
--- /dev/null
+++ b/slides/mongodb/insert.xml
@@ -0,0 +1,66 @@
+<slide>
+<title>Inserting a document</title>
+<div effect="fade-out">
+<example>
+
+{
+ "_id" : "derickr",
+ "name" : "Derick Rethans",
+ "articles" : [
+ {
+ "title" : "Profiling PHP Applications",
+ "url" : "http://derickrethans.nl/talks/profiling-phptour.pdf",
+ },
+ {
+ "title" : "Xdebug",
+ "url" : "http://derickrethans.nl/talks/xdebug-phpbcn11.pdf",
+ }
+ ]
+}
+</example>
+</div>
+
+<div effect="fade-in-out">
+<example result="0"><![CDATA[<?php
+$document = array(
+ "_id" => "derickr",
+ "name" => "Derick Rethans",
+ "articles" => array(
+ array(
+ "title" => "Profiling PHP Applications",
+ "url" => "http://derickrethans.nl/talks/profiling-phptour.pdf",
+ ),
+ array(
+ "title" => "Xdebug",
+ "url" => "http://derickrethans.nl/talks/xdebug-phpbcn11.pdf",
+ )
+ )
+);
+
+$m = new Mongo();
+var_dump( $m->demo->articles->insert( $document ) );
+?>]]></example>
+</div>
+
+<div effect="fade-in">
+<example result="0"><![CDATA[<?php
+$document = [
+ "_id" => "derickr",
+ "name" => "Derick Rethans",
+ "articles" => [
+ [
+ "title" => "Profiling PHP Applications",
+ "url" => "http://derickrethans.nl/talks/profiling-phptour.pdf",
+ ],
+ [
+ "title" => "Xdebug",
+ "url" => "http://derickrethans.nl/talks/xdebug-phpbcn11.pdf",
+ ]
+ ]
+];
+
+$m = new Mongo();
+var_dump( $m->demo->articles->insert( $document ) );
+?>]]></example>
+</div>
+</slide>
diff --git a/slides/mongodb/limit-skip.xml b/slides/mongodb/limit-skip.xml
new file mode 100644
index 0000000..953b847
--- /dev/null
+++ b/slides/mongodb/limit-skip.xml
@@ -0,0 +1,19 @@
+<slide>
+<title>Cursor methods</title>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo();
+$c = $m->demo->articles;
+
+$cursor = $c->find();
+$cursor->sort( array( '_id' => 1 ) )
+ ->limit( 3 )
+ ->skip( 3 );
+
+// Only now does the query get send
+foreach ( $cursor as $r )
+{
+ echo $r['_id'], "\n";
+}
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/me.xml b/slides/mongodb/me.xml
new file mode 100644
index 0000000..3a5ab65
--- /dev/null
+++ b/slides/mongodb/me.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<slide template="white">
+ <title>About Me</title>
+
+<image filename="../tdd/derick_photo.jpg" align="right"
pdf-float="1" x-offset="21.3" y-offset="10"
pdf-scale="0.25"/>
+
+ <blurb>Derick Rethans</blurb>
+ <list>
+ <bullet>Dutchman living in London</bullet>
+ <bullet>PHP mongoDB driver maintainer for 10gen (the company behind mongoDB)</bullet>
+ <bullet>Author of Xdebug</bullet>
+ <bullet>Author of the mcrypt, input_filter, dbus, translit and date/time
extensions</bullet>
+ </list>
+
+</slide>
diff --git a/slides/mongodb/mms.png b/slides/mongodb/mms.png
new file mode 100644
index 0000000..59b4d25
Binary files /dev/null and b/slides/mongodb/mms.png differ
diff --git a/slides/mongodb/mms.xml b/slides/mongodb/mms.xml
new file mode 100644
index 0000000..54a0304
--- /dev/null
+++ b/slides/mongodb/mms.xml
@@ -0,0 +1,5 @@
+<slide>
+<title>MMS</title>
+
+<image filename="mms.png"/>
+</slide>
diff --git a/slides/mongodb/mongo-extension.xml b/slides/mongodb/mongo-extension.xml
new file mode 100644
index 0000000..f52b59f
--- /dev/null
+++ b/slides/mongodb/mongo-extension.xml
@@ -0,0 +1,11 @@
+<slide>
+<title>The mongoDB PHP extension</title>
+
+<image filename="10gen.png" align="right"/>
+
+<list>
+ <bullet>Maintained and supported by 10gen (Kristina and me)</bullet>
+ <bullet>Can be installed with pecl: %pecl install mongo%</bullet>
+ <bullet>Add %extension=mongo.so% to %php.ini%</bullet>
+</list>
+</slide>
diff --git a/slides/mongodb/mongod-install.xml b/slides/mongodb/mongod-install.xml
new file mode 100644
index 0000000..ef7a134
--- /dev/null
+++ b/slides/mongodb/mongod-install.xml
@@ -0,0 +1,25 @@
+<slide>
+<title>Getting started with mongoDB</title>
+
+<blurb>Installation by downloading from <link href="http://www.mongodb.org/downloads"/>:</blurb>
+<example>
+wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.2.tgz
+tar xvzf mongodb-linux-x86_64-2.0.2.tgz
+cd mongodb-linux-x86_64-2.0.2/bin
+mkdir ../../data
+./mongod --dbpath ../../data --logpath /tmp/mongod.log --fork
+tail -f /tmp/mongod.log
+</example>
+<break/>
+
+<blurb>Installation through %apt-get%:</blurb>
+<example>
+$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
+$ sudo echo "deb http://downloads-distro.mongodb.org/repo/debian-sysvinit
dist 10gen" >> /etc/apt/sources.list
+# sudo apt-get update
+$ sudo apt-get install mongodb-10gen
+</example>
+<break/>
+
+<blurb>Tweak config in %/etc/mongodb.conf% if you must. %mongo% (the shell) is a useful
application to try out things with.</blurb>
+</slide>
diff --git a/slides/mongodb/mongodb-large.png b/slides/mongodb/mongodb-large.png
new file mode 100644
index 0000000..0ea36bf
Binary files /dev/null and b/slides/mongodb/mongodb-large.png differ
diff --git a/slides/mongodb/mongodb.png b/slides/mongodb/mongodb.png
new file mode 100644
index 0000000..986b481
Binary files /dev/null and b/slides/mongodb/mongodb.png differ
diff --git a/slides/mongodb/query-advanced-example-array1.xml
b/slides/mongodb/query-advanced-example-array1.xml
new file mode 100644
index 0000000..223ccea
--- /dev/null
+++ b/slides/mongodb/query-advanced-example-array1.xml
@@ -0,0 +1,49 @@
+<slide>
+<title>Querying: matching array elements</title>
+
+<div effect="fade-out">
+<example result="2"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->circus;
+
+$c->insert( array(
+ '_id' => 'circ1',
+ 'name' => 'Diaspora',
+ 'performers' => 43,
+ 'elephpants' => array (
+ array ( 'name' => 'Annabelle', 'colour' =>
'pink', 'year' => 1964 ),
+ array ( 'name' => 'Chunee', 'colour' =>
'blue', 'year' => 1826 )
+ )
+) );
+
+$c->insert( array(
+ '_id' => 'circ2',
+ 'name' => 'Sensible',
+ 'performers' => 27,
+ 'elephpants' => array (
+ array ( 'name' => 'Kandula', 'colour' =>
'pink', 'year' => 2001 ),
+ array ( 'name' => 'Kolakolli', 'colour' =>
'blue', 'year' => 2006 )
+ )
+) );
+?>]]></example>
+</div>
+
+<blurb>Find circuses which have blue elephpants after 1900.</blurb>
+
+<div effect="fade-in">
+<example result="1"><![CDATA[<?php ini_set(
'xdebug.var_display_max_depth', 4 );
+$m = new Mongo;
+$c = $m->demo->circus;
+$r = $c->find(
+ array( 'elephpants.colour' => 'blue', 'elephpants.year' =>
array( '$gt' => 1900 ) )
+);
+foreach( $r as $c ) {
+ echo $c['name'], ': ';
+ foreach( $c['elephpants'] as $elephpant ) {
+ echo "\n- ", join( ", ", $elephpant );
+ }
+ echo "\n\n";
+}
+?>]]></example>
+</div>
+</slide>
diff --git a/slides/mongodb/query-advanced-example-array2.xml
b/slides/mongodb/query-advanced-example-array2.xml
new file mode 100644
index 0000000..45ad33d
--- /dev/null
+++ b/slides/mongodb/query-advanced-example-array2.xml
@@ -0,0 +1,21 @@
+<slide>
+<title>Querying: matching array elements ($elemMatch)</title>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->circus;
+$r = $c->find(
+ array (
+ 'elephpants' =>
+ array( '$elemMatch' => array ( 'colour' => 'blue',
'year' => array( '$gt' => 1900 ) )
+ )
+) );
+foreach( $r as $c ) {
+ echo $c['name'], ': ';
+ foreach( $c['elephpants'] as $elephpant ) {
+ echo "\n- ", join( ", ", $elephpant );
+ }
+ echo "\n\n";
+}
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/query-advanced-example-gte.xml
b/slides/mongodb/query-advanced-example-gte.xml
new file mode 100644
index 0000000..40000f2
--- /dev/null
+++ b/slides/mongodb/query-advanced-example-gte.xml
@@ -0,0 +1,39 @@
+<slide>
+<title>Querying: $gte</title>
+
+<div effect="fade-out">
+<example result="2"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->circus;
+
+$c->insert( array(
+ '_id' => 'circ1',
+ 'name' => 'Diaspora',
+ 'performers' => 43,
+) );
+
+$c->insert( array(
+ '_id' => 'circ2',
+ 'name' => 'Sensible',
+ 'performers' => 27,
+) );
+?>]]></example>
+</div>
+
+<blurb>Find circuses with 40 or more performers.</blurb>
+
+<div effect="fade-in">
+<example result="1"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->circus;
+
+$r = $c->findOne(
+ // query
+ array( 'performers' => array( '$gte' => 40 ) ),
+ // projection
+ array( 'name' => true, 'performers' => true )
+);
+var_dump( $r );
+?>]]></example>
+</div>
+</slide>
diff --git a/slides/mongodb/query-advanced-ops.xml b/slides/mongodb/query-advanced-ops.xml
new file mode 100644
index 0000000..3be864e
--- /dev/null
+++ b/slides/mongodb/query-advanced-ops.xml
@@ -0,0 +1,38 @@
+<slide>
+<title>Advanced querying operators</title>
+
+<blurb>Besides testing for exact matches, mongoDB also has operators.
+Operators start with a '$', so make sure to use single quotes!</blurb>
+
+<div effect="fade-out">
+<blurb>Compare:</blurb>
+<list>
+ <bullet>$lt, $lte, $gt, $gte (<, <=, >, >=)</bullet>
+ <bullet>$ne (not equal)</bullet>
+ <bullet>$exists (field exists)</bullet>
+ <bullet>$mod (modulo)</bullet>
+</list>
+<blurb>Logical:</blurb>
+<list>
+ <bullet>$or (one needs to match)</bullet>
+ <bullet>$and (all need to match)</bullet>
+ <bullet>$nor (not or)</bullet>
+ <bullet>$not</bullet>
+</list>
+</div>
+
+<div effect="fade-in">
+<blurb>Array:</blurb>
+<list>
+ <bullet>$in (value needs to be one of the elements of the given array)</bullet>
+ <bullet>$nin (not in)</bullet>
+ <bullet>$all (value needs to match all elements of the given array)</bullet>
+ <bullet>$size (exact size of array)</bullet>
+ <bullet>$elemMatch (element in an array matches the specified match
expression)</bullet>
+</list>
+<blurb>Others:</blurb>
+<list>
+ <bullet>$type (check for type number, see <link href="http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24type"/>)</bullet>
+</list>
+</div>
+</slide>
diff --git a/slides/mongodb/query.xml b/slides/mongodb/query.xml
new file mode 100644
index 0000000..96fad3e
--- /dev/null
+++ b/slides/mongodb/query.xml
@@ -0,0 +1,19 @@
+<slide>
+<title>Querying (1)</title>
+
+<example><![CDATA[<?php
+$m = new Mongo();
+// First "found" item:
+$record = $m->demo->articles->findOne();
+
+// Search on the _id field being 'derickr'
+$record = $m->demo->articles->findOne( array( '_id' => 'derickr' )
);
+
+// Search on the array element key 'title' in the 'articles' field
+$record = $m->demo->articles->findOne(
+ array(
+ 'articles.title' => 'Xdebug'
+ )
+);
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/query2.xml b/slides/mongodb/query2.xml
new file mode 100644
index 0000000..deca42d
--- /dev/null
+++ b/slides/mongodb/query2.xml
@@ -0,0 +1,14 @@
+<slide>
+<title>Querying (2)</title>
+
+<example result="0"><![CDATA[<?php
+$m = new Mongo();
+
+// Find with 'projection'
+$record = $m->demo->articles->findOne(
+ array( 'articles.title' => 'Xdebug' ),
+ array( 'name' => true, 'articles.url' => true )
+);
+?>]]></example>
+</slide>
+
diff --git a/slides/mongodb/replication.xml b/slides/mongodb/replication.xml
new file mode 100644
index 0000000..59bbb15
--- /dev/null
+++ b/slides/mongodb/replication.xml
@@ -0,0 +1,12 @@
+<slide>
+<title>Replication</title>
+
+<image filename="replset.png"/>
+
+<list>
+ <bullet>Failover/Availability</bullet>
+ <bullet>Scaling reads</bullet>
+ <bullet>Primaries, secondaries and arbiters</bullet>
+ <bullet>Odd number to prevent split brain</bullet>
+</list>
+</slide>
diff --git a/slides/mongodb/replset.png b/slides/mongodb/replset.png
new file mode 100644
index 0000000..0d65f26
Binary files /dev/null and b/slides/mongodb/replset.png differ
diff --git a/slides/mongodb/resources.xml b/slides/mongodb/resources.xml
new file mode 100644
index 0000000..5698f3d
--- /dev/null
+++ b/slides/mongodb/resources.xml
@@ -0,0 +1,14 @@
+<slide>
+<title>Resources</title>
+
+<qrcode>http://derickrethans.nl/talks/:-:talk_id:-:</qrcode>
+<list>
+ <bullet>Slides: http://derickrethans.nl/talks/:-:talk_id:-:</bullet>
+ <bullet>Contact me: :-:speaker:-:: @:-:twitter:-:, :-:email:-:</bullet>
+ <bullet>Feedback: :-:joindin:-:</bullet>
+</list>
+<div class="footer">
+<image align="left" filename="10gen.png" pdf-scale="0.4"
x-offset="2" y-offset="12.3"/>
+<image align="right" filename="mongodb.png" pdf-scale="0.4"
x-offset="18" y-offset="13.3"/>
+</div>
+</slide>
diff --git a/slides/mongodb/safe.xml b/slides/mongodb/safe.xml
new file mode 100644
index 0000000..64e7fe5
--- /dev/null
+++ b/slides/mongodb/safe.xml
@@ -0,0 +1,32 @@
+<slide>
+<title>Checking for errors</title>
+
+<blurb>So far, we have not checked for whether inserts worked.</blurb>
+
+<div effect="fade-out">
+<example><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->articles;
+
+$c->insert( array( '_id' => 'derickr' ) );
+$c->insert( array( '_id' => 'derickr' ) );
+?>]]></example>
+</div>
+
+<div effect="fade-in">
+<blurb>"Safe" inserts:</blurb>
+<example result="1"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->articles;
+
+try {
+ $c->insert(
+ array( '_id' => 'derickr' ), // document
+ array( 'safe' => true ) // options
+ );
+} catch ( Exception $e ) {
+ echo $e->getMessage(), "\n";
+}
+?>]]></example>
+</div>
+</slide>
diff --git a/slides/mongodb/safe2.xml b/slides/mongodb/safe2.xml
new file mode 100644
index 0000000..daf6d3c
--- /dev/null
+++ b/slides/mongodb/safe2.xml
@@ -0,0 +1,22 @@
+<slide>
+<title>Checking for errors (2)</title>
+
+<blurb>Safeness levels:</blurb>
+<list>
+ <bullet>Confirm change recorded in memory: %array( 'safe' => true
);%</bullet>
+ <bullet>|777777|Confirm inclusion in journal: %array( 'j' => true
);%|</bullet>
+ <bullet>Confirm committed to disk: %array( 'fsync' => true );%</bullet>
+ <bullet>Confirm replication: %array( 'safe' => true, 'w' => 2
);%</bullet>
+</list>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo();
+$c = $m->demo->articles;
+
+$c->insert(
+ array( '_id' => 'mongodb' ), // document
+ array( 'safe' => true, 'w' => 2 ) // options
+);
+?>]]></example>
+
+</slide>
diff --git a/slides/mongodb/sharding.png b/slides/mongodb/sharding.png
new file mode 100644
index 0000000..d0f2619
Binary files /dev/null and b/slides/mongodb/sharding.png differ
diff --git a/slides/mongodb/sharding.xml b/slides/mongodb/sharding.xml
new file mode 100644
index 0000000..df84b3d
--- /dev/null
+++ b/slides/mongodb/sharding.xml
@@ -0,0 +1,10 @@
+<slide>
+<title>Sharding</title>
+
+<image filename="sharding.png"/>
+
+<list>
+ <bullet>Scaling writes and reads</bullet>
+ <bullet>Config servers, router (%mongos%) and replica sets</bullet>
+</list>
+</slide>
diff --git a/slides/mongodb/sort.xml b/slides/mongodb/sort.xml
new file mode 100644
index 0000000..724b78c
--- /dev/null
+++ b/slides/mongodb/sort.xml
@@ -0,0 +1,15 @@
+<slide>
+<title>Sorting</title>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo();
+$c = $m->demo->articles;
+
+$cursor = $c->find()->sort( array( '_id' => -1 ) );
+
+foreach ( $cursor as $r )
+{
+ var_dump( $r );
+}
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/title.xml b/slides/mongodb/title.xml
new file mode 100644
index 0000000..1587de3
--- /dev/null
+++ b/slides/mongodb/title.xml
@@ -0,0 +1,11 @@
+<slide type="title">
+<title>Welcome!</title>
+<blurb class="event-title">:-:title:-:</blurb>
+<blurb class="event-date">:-:event:-: - :-:location:-: - :-:date:-:</blurb>
+<blurb class="event-presenter">Derick Rethans - :-:email:-: - twitter:
@:-:twitter:-:</blurb>
+<blurb class="pres-url-small">:-:joindin:-:</blurb>
+<div class="footer">
+<image align="left" filename="10gen.png" pdf-scale="0.4"
x-offset="2" y-offset="12.3"/>
+<image align="right" filename="mongodb.png" pdf-scale="0.4"
x-offset="18" y-offset="13.3"/>
+</div>
+</slide>
diff --git a/slides/mongodb/tools-and-monitoring.xml b/slides/mongodb/tools-and-monitoring.xml
new file mode 100644
index 0000000..487067d
--- /dev/null
+++ b/slides/mongodb/tools-and-monitoring.xml
@@ -0,0 +1,9 @@
+<slide>
+<title>Tools and monitoring</title>
+
+<list>
+ <bullet>Ghengis: single file mongoDB management app (a la phpMyAdmin)</bullet>
+ <bullet>RockMongo: mongoDB management app (a la phpMyAdmin)</bullet>
+ <bullet>MMS: hosted application for instrumentation</bullet>
+</list>
+</slide>
diff --git a/slides/mongodb/types.xml b/slides/mongodb/types.xml
new file mode 100644
index 0000000..0840269
--- /dev/null
+++ b/slides/mongodb/types.xml
@@ -0,0 +1,18 @@
+<slide>
+<title>mongoDB supports many types</title>
+
+<list>
+ <bullet>null</bullet>
+ <bullet>boolean</bullet>
+ <bullet>integer (both 32-bit and 64-bit, MongoInt32, MongoInt64)</bullet>
+ <bullet>double</bullet>
+ <bullet>string (UTF-8)</bullet>
+ <bullet>array</bullet>
+ <bullet>associative array</bullet>
+ <bullet>MongoRegex</bullet>
+ <bullet>MongoId</bullet>
+ <bullet>MongoDate</bullet>
+ <bullet>MongoCode</bullet>
+ <bullet>MongoBinData</bullet>
+</list>
+</slide>
diff --git a/slides/mongodb/update-modifiers.xml b/slides/mongodb/update-modifiers.xml
new file mode 100644
index 0000000..1cdaaf8
--- /dev/null
+++ b/slides/mongodb/update-modifiers.xml
@@ -0,0 +1,26 @@
+<slide>
+<title>Modifying documents</title>
+
+<example><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->elephpants;
+$c->remove();
+
+$c->insert( [
+ '_id' => 'e43',
+ 'name' => 'Dumbo'
+] );
+
+$c->update(
+ [ 'name' => 'Dumbo' ], // criteria
+ [ '$set' => array [ 'age' => '17' ] ] // modifiers
+);
+
+// document is now:
+[
+ '_id' => 'e43',
+ 'name' => 'Dumbo',
+ 'age' => '17',
+]
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/update-modifiers2.xml b/slides/mongodb/update-modifiers2.xml
new file mode 100644
index 0000000..99f72ef
--- /dev/null
+++ b/slides/mongodb/update-modifiers2.xml
@@ -0,0 +1,19 @@
+<slide>
+<title>Document update modifiers: Single value manipulation</title>
+
+<list>
+ <bullet>%*$set*% (sets a field to a new value)</bullet>
+ <bullet>%*$unset*% (removes a field)</bullet>
+ <bullet>%*$inc*% (increments the value in a field)</bullet>
+</list>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->circus;
+$c->remove();
+
+$c->insert( array( '_id' => 'circ3', 'name' =>
'Humberto', 'performers' => 12 ) );
+$c->update( array( 'name' => 'Humberto' ), array( '$inc' =>
array( 'performers' => 4 ) ) );
+var_dump( $c->findOne( array( 'name' => 'Humberto' ) ) );
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/update-modifiers3.xml b/slides/mongodb/update-modifiers3.xml
new file mode 100644
index 0000000..42b0c79
--- /dev/null
+++ b/slides/mongodb/update-modifiers3.xml
@@ -0,0 +1,24 @@
+<slide>
+<title>Document update modifiers: Array manipulation</title>
+
+<list>
+ <bullet>%*$push*%/%*$pushAll*% (adds elements to an array)</bullet>
+ <bullet>%*$addToSet*% (like %$push%, but without duplicates in the array)</bullet>
+ <bullet>%*$pop*% (removes the first or last element of an array)</bullet>
+ <bullet>%*$pull*%/%*$pullAll*% (removes elements from an array)</bullet>
+</list>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->circus; $c->remove();
+$c->insert( array( '_id' => 'circ5', 'name' => 'Funny
Led' ) );
+
+$c->update(
+ array( '_id' => 'circ5' ),
+ array( '$push' => array(
+ 'elephpants' => array( 'name' => 'Bobo',
'year' => 2012 ) )
+ )
+);
+var_dump( $c->findOne( array( 'name' => 'Funny Led' ), array(
'elephpants' => true ) ) );
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/update-modifiers4.xml b/slides/mongodb/update-modifiers4.xml
new file mode 100644
index 0000000..91078ab
--- /dev/null
+++ b/slides/mongodb/update-modifiers4.xml
@@ -0,0 +1,26 @@
+<slide>
+<title>Document update modifiers: Misc</title>
+
+<list>
+ <bullet>%*$rename*% (renames fields)</bullet>
+ <bullet>%*$bit*% (bitwise updates of field)</bullet>
+</list>
+<example result="1"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->bits;
+$c->remove();
+
+$c->insert( array( 'bitmask' => 0b1001 ) );
+echo decbin( $c->findOne()['bitmask'] ), "\n";
+
+$c->update( array(), array( '$bit' => array( 'bitmask' => array(
'and' => 0b0101 ) ) ) );
+echo decbin( $c->findOne()['bitmask'] ), "\n";
+
+$c->update( array(), array( '$bit' => array( 'bitmask' => array(
'or' => 0b10100 ) ) ) );
+echo decbin( $c->findOne()['bitmask'] ), "\n";
+
+// this is not in yet ;-)
+$c->update( array(), array( '$bit' => array( 'bitmask' => array(
'xor' => 0b01110 ) ) ) );
+echo decbin( $c->findOne()['bitmask'] ), "\n";
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/update.xml b/slides/mongodb/update.xml
new file mode 100644
index 0000000..60d051e
--- /dev/null
+++ b/slides/mongodb/update.xml
@@ -0,0 +1,20 @@
+<slide>
+<title>Updating documents</title>
+
+<example result="0"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->elephpants;
+$c->remove();
+
+$c->insert( array( '_id' => 'e42', 'name' =>
'Kamubpo' ) );
+var_dump( $c->findOne( array( '_id' => 'e42' ) ) );
+
+$c->update( array( '_id' => 'e42' ), array( 'name' =>
'Bo Tat' ) );
+var_dump( $c->findOne( array( '_id' => 'e42' ) ) );
+
+$c->update( array( 'name' => 'Bo Tat' ), array( 'age' =>
'17' ) );
+var_dump( $c->findOne( array( '_id' => 'e42' ) ) );
+?>]]></example>
+
+<blurb>update() replaces the document matching criteria entirely with a new
object.</blurb>
+</slide>
diff --git a/slides/mongodb/update2.xml b/slides/mongodb/update2.xml
new file mode 100644
index 0000000..ae2c59e
--- /dev/null
+++ b/slides/mongodb/update2.xml
@@ -0,0 +1,18 @@
+<slide>
+<title>Updating documents</title>
+
+<blurb>Update only updates the *first* document it finds by default.</blurb>
+
+<example result="0"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->elephpants;
+$c->drop();
+
+$c->insert( array( '_id' => 'e42', 'name' =>
'Kamubpo', 'age' => 17 ) );
+$c->insert( array( '_id' => 'e43', 'name' =>
'Denali', 'age' => 17 ) );
+
+$c->update( array( 'age' => 17 ), array( '$inc' => array(
'age' => 1 ) ) );
+
+var_dump( iterator_to_array( $c->find() ) );
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/update2a.xml b/slides/mongodb/update2a.xml
new file mode 100644
index 0000000..0426c0b
--- /dev/null
+++ b/slides/mongodb/update2a.xml
@@ -0,0 +1,22 @@
+<slide>
+<title>Updating documents</title>
+
+<blurb>Update only updates the *first* document it finds by default.</blurb>
+
+<blurb>You can set an option to get all matching documents to be updated</blurb>
+
+<example result="0"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->elephpants;
+$c->drop();
+
+$c->insert( [ '_id' => 'e42', 'name' => 'Kamubpo',
'age' => 17 ] );
+$c->insert( [ '_id' => 'e43', 'name' => 'Denali',
'age' => 17 ] );
+
+$c->update(
+ [ 'age' => 17 ], // criteria
+ [ '$inc' => [ 'age' => 1 ] ], // update spec
+ [ 'multiple' => true ] // options: multiple
+);
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/upsert.xml b/slides/mongodb/upsert.xml
new file mode 100644
index 0000000..1d9ccf6
--- /dev/null
+++ b/slides/mongodb/upsert.xml
@@ -0,0 +1,23 @@
+<slide>
+<title>Upserting documents</title>
+
+<blurb>*upsert*: if the record(s) do not exist, insert one.</blurb>
+
+<example result="1"><![CDATA[<?php
+$m = new Mongo;
+$c = $m->demo->elephpants; $c->drop();
+
+function birthDay( $c, $name )
+{
+ $c->update(
+ array( 'name' => $name ), // criteria
+ array( '$inc' => array( 'age' => 1 ) ), // update spec
+ array( 'upsert' => true ) // options
+ );
+ echo $c->findOne( array( 'name' => 'Santon' ) )['age'],
"\n";
+}
+
+birthDay( $c, 'Santon' );
+birthDay( $c, 'Santon' );
+?>]]></example>
+</slide>
diff --git a/slides/mongodb/what-is-mongodb.xml b/slides/mongodb/what-is-mongodb.xml
new file mode 100644
index 0000000..a85189e
--- /dev/null
+++ b/slides/mongodb/what-is-mongodb.xml
@@ -0,0 +1,13 @@
+<slide>
+<title>What is mongoDB?</title>
+
+<image filename="mongodb.png" align="right"/>
+
+<list>
+ <bullet>mongoDB is a document storage and retrieval engine</bullet>
+ <bullet>It requires almost no configuration to set-up a high available
+ and high performant cluster of database servers</bullet>
+ <bullet>Each document is stored into a collection, which is stored into
+ a database, which is stored in a database server.</bullet>
+</list>
+</slide>
diff --git a/slides/mongodb/whats-next.xml b/slides/mongodb/whats-next.xml
new file mode 100644
index 0000000..b2b89d1
--- /dev/null
+++ b/slides/mongodb/whats-next.xml
@@ -0,0 +1,12 @@
+<slide>
+<title>What's next?</title>
+
+<list>
+ <bullet>We're working on making all drivers behave more the same, with similar
syntax</bullet>
+ <bullet>Improvements internally to speed things up</bullet>
+ <bullet>GridFS streaming</bullet>
+ <bullet>"safe" writes by default</bullet>
+ <bullet>Open for feedback from users to see what we can do to improve the
driver</bullet>
+ <bullet>Better documentation and tutorials</bullet>
+</list>
+</slide>
diff --git a/slides/profiling/camouflage-250.png b/slides/profiling/camouflage-250.png
new file mode 100644
index 0000000..e6514cc
Binary files /dev/null and b/slides/profiling/camouflage-250.png differ
diff --git a/slides/profiling/ezpublish-time2.png b/slides/profiling/ezpublish-time2.png
new file mode 100644
index 0000000..3320129
Binary files /dev/null and b/slides/profiling/ezpublish-time2.png differ
diff --git a/slides/profiling/find-out-if-it-is-slow.xml
b/slides/profiling/find-out-if-it-is-slow.xml
index 3cbd66c..ed93074 100644
--- a/slides/profiling/find-out-if-it-is-slow.xml
+++ b/slides/profiling/find-out-if-it-is-slow.xml
@@ -1,7 +1,7 @@
<slide>
<title>How does the application perform?</title>
-<blurb>Benchmark the application: siege</blurb>
+<blurb>Benchmark the application: siege (httperf, jmeter-http)</blurb>
<list>
<bullet>check ~/.siegerc and set the %logfile% setting</bullet>
<bullet>Create a file with urls:<example><![CDATA[http://derickrethans.nl/
diff --git a/slides/profiling/joindin-4357.png b/slides/profiling/joindin-4357.png
new file mode 100644
index 0000000..9e5c230
Binary files /dev/null and b/slides/profiling/joindin-4357.png differ
diff --git a/slides/profiling/resources.xml b/slides/profiling/resources.xml
index 4f92498..4909d72 100644
--- a/slides/profiling/resources.xml
+++ b/slides/profiling/resources.xml
@@ -2,14 +2,10 @@
<slide fontsize="6em">
<title>Resources</title>
- <link fontsize="3em" marginleft="2em" leader="Siege: "
href="http://www.joedog.org/index/siege-home"
target="_new"/>
- <link fontsize="3em" marginleft="2em" leader="Apache Zeta Components:
" href="http://incubator.apache.org/zetacomponents/"
target="_new"/>
- <link fontsize="3em" marginleft="2em" leader="Inclued: "
href="http://uk2.php.net/inclued"
target="_new"/>
- <link fontsize="3em" marginleft="2em" leader="ValaXdebugTools: "
href="http://tinyurl.com/vxdebugtools"
target="_new"/>
- <link fontsize="3em" marginleft="2em" leader="XHProf: "
href="http://mirror.facebook.net/facebook/xhprof/"
target="_new"/>
- <link fontsize="3em" marginleft="2em" leader="XHGui: "
href="https://github.com/preinheimer/xhprof"
target="_new"/>
- <link fontsize="3em" marginleft="2em" leader="Xdebug: "
href="http://xdebug.org"
target="_new"/>
- <link fontsize="3em" marginleft="2em" leader="If you like Xdebug:
" href="http://xdebug.org/donate.php"
target="_new"/>
-<break/>
- <link fontsize="3em" marginleft="2em" leader="These slides: "
href=":-:joindin:-:" target="_new"/>
+<qrcode>http://derickrethans.nl/talks/:-:talk_id:-:</qrcode>
+<list>
+ <bullet>Slides: http://derickrethans.nl/talks/:-:talk_id:-:</bullet>
+ <bullet>Contact me: :-:speaker:-:: @:-:twitter:-:, :-:email:-:</bullet>
+ <bullet>Feedback: :-:joindin:-:</bullet>
+</list>
</slide>
diff --git a/slides/profiling/timing-points.xml b/slides/profiling/timing-points.xml
index 485bd66..2d37c30 100644
--- a/slides/profiling/timing-points.xml
+++ b/slides/profiling/timing-points.xml
@@ -11,7 +11,7 @@
<div effect="fade-in-out">
<blurb>eZ Publish:</blurb>
-<image filename="ezpublish-time.png" pdf-scale="0.4"
y-offset="2.0" x-offset="19" pdf-float="1"/>
+<image filename="ezpublish-time2.png" pdf-scale="0.4"
y-offset="2.0" x-offset="19" pdf-float="1"/>
</div>
<div effect="fade-in-out">
diff --git a/slides/profiling/xhprof.xml b/slides/profiling/xhprof.xml
index 65651fd..7056cdc 100644
--- a/slides/profiling/xhprof.xml
+++ b/slides/profiling/xhprof.xml
@@ -2,97 +2,14 @@
<title>XHProf</title>
<div effect="fade-out">
-<blurb>Install:</blurb>
-<example>pecl download xhprof-beta
-tar -xvzf xhprof-0.9.2.tgz
-cd xhprof-0.9.2/extension
-phpize && ./configure && make install</example>
-<blurb>In php.ini:</blurb>
-<example><![CDATA[extension=xhprof.so
-xhprof.output_dir=/tmp]]></example>
-<blurb>Download XHGui:</blurb>
-<example>$ cd /home/httpd
-$ git clone https://github.com/preinheimer/xhprof</example>
-<blurb>Config XHGui (xhprof/xhprof_lib/config.php:</blurb>
-<example>
-$_xhprof['dbhost'] = 'localhost';
-$_xhprof['dbuser'] = 'root';
-$_xhprof['dbpass'] = 'root';
-$_xhprof['dbname'] = 'xhprof';
-$_xhprof['servername'] = 'derickrethans';
-$_xhprof['namespace'] = 'MySite';
-$_xhprof['url'] = 'http://xhprof/';
-</example>
+<list>
+ <bullet>Was original developed by Facebook</bullet>
+ <bullet>XHProf and XHGui</bullet>
+ <bullet>Meant to be run in a production environment</bullet>
+</list>
</div>
-<div effect="fade-in-out">
-<blurb>Setup XHGui database:</blurb>
-<example>mysqladmin -u root -p create xhprof
-mysql -u root -p xhprof</example>
-<example>CREATE TABLE
details (
- id char(17) NOT NULL,
- url varchar(255) default NULL,
- c_url varchar(255) default NULL,
- timestamp timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
- server name varchar(64) default NULL,
- perfdata text,
- type tinyint(4) default NULL,
- cookie text,
- post text,
- get text,
- pmu int(11) default NULL,
- wt int(11) default NULL,
- cpu int(11) default NULL,
- server_id char(3) NOT NULL default 't11',
- PRIMARY KEY (id),
- KEY url (url),
- KEY c_url (c_url),
- KEY cpu (cpu),
- KEY wt (wt),
- KEY pmu (pmu),
- KEY timestamp (timestamp)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;</example>
-</div>
-
-<div effect="fade-in-out">
-<blurb>Create VHOST for XHGui (Apache):</blurb>
-<example><![CDATA[<VirtualHost *:80>
- ServerName xhprof.localhost
- UseCanonicalName Off
- DocumentRoot /home/httpd/xhprof/xhprof_html
- ErrorLog /var/log/apache2/xhprof-error.log
- CustomLog /var/log/apache2/xhprof-access.log combined
- DirectoryIndex index.php index.html
-</VirtualHost>]]></example>
-
-<blurb>Enable XHProf for a vhost:</blurb>
-<example><![CDATA[
-# For XHPROF Profiling
- php_value auto_prepend_file /home/httpd/xhprof/external/header.php
- php_value auto_append_file /home/httpd/xhprof/external/footer.php
-...]]></example>
-</div>
-
-<div effect="fade-in-out">
-<blurb>Create VHOST for XHGui (lighttpd):</blurb>
-<example><![CDATA[$HTTP["host"] =~ "^xhprof" {
- server.document-root = "/home/httpd/xhprof/xhprof_html/"
-}
-]]></example>
-
-<blurb>Install htscanner:</blurb>
-<example>pecl install htscanner
-extension=htscanner.so</example>
-
-<blurb>Enable XHProf for a vhost (.htaccess):</blurb>
-<example><![CDATA[
-# For XHPROF Profiling
- php_value auto_prepend_file /home/httpd/xhprof/external/header.php
- php_value auto_append_file /home/httpd/xhprof/external/footer.php
-...]]></example>
-</div>
-
-<div effect="fade-in-out">
+<div effect="fade-in">
<image filename="xhgui.png" pdf-scale="0.5" x-offset="16"/>
</div>
diff --git a/slides/toolbox/me.xml b/slides/toolbox/me.xml
index bdc629a..c722813 100644
--- a/slides/toolbox/me.xml
+++ b/slides/toolbox/me.xml
@@ -2,17 +2,17 @@
<slide template="white">
<title>About Me</title>
-<break lines="3"/>
+<image filename="../tdd/derick_photo.jpg" align="right"
pdf-float="1" x-offset="21.3" pdf-scale="0.25"/>
+
<blurb>Derick Rethans</blurb>
- <image filename="../tdd/derick_photo.jpg" align="right"
pdf-float="1" x-offset="21.3" pdf-scale="0.25"/>
<list>
<bullet>Dutchman living in London</bullet>
- <bullet>PHP development</bullet>
<bullet>Freelancer doing PHP internals development â ie.: writing extensions for a
living</bullet>
- <bullet>Anderskor's Camouflage</bullet>
+ <bullet>PHP Driver Maintainer for 10gen (the MongoDB people)</bullet>
+ <bullet>Anderskor's Camouflage Encoder</bullet>
+ <image filename="../profiling/camouflage-250.png" align="right"/>
<bullet>Author of Xdebug</bullet>
<bullet>Author of the mcrypt, input_filter, dbus, translit and date/time
extensions</bullet>
- <bullet>Contributor to the Apache Zeta Components Incubator project (formerly eZ
Components)</bullet>
</list>
</slide>
diff --git a/slides/xdebug/functiontrace-computerized.xml
b/slides/xdebug/functiontrace-computerized.xml
index b3b550d..20045a4 100644
--- a/slides/xdebug/functiontrace-computerized.xml
+++ b/slides/xdebug/functiontrace-computerized.xml
@@ -2,7 +2,7 @@
<slide fontsize="6em">
<title>Function trace to file</title>
<subtitle>Automatic readable format</subtitle>
- <image filename="tracefile-computerized.png"/>
+ <image filename="tracefile-computerized2.png"/>
<break/>
<example class="code_large" fontsize="1.7em">xdebug.auto_trace=1 ;
enable tracing
xdebug.trace_format=1 ; selects computerized format
diff --git a/slides/xdebug/profiling3.xml b/slides/xdebug/profiling3.xml
new file mode 100644
index 0000000..c0a7fd2
--- /dev/null
+++ b/slides/xdebug/profiling3.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<slide>
+ <title>Profiling</title>
+ <subtitle>Valgrind / Cachegrind</subtitle>
+
+ <image filename="pg4.png" marginright="2em" align="right"
pdf-float="1" x-offset="15" y-offset="0"
pdf-scale="0.6"/>
+ <break/>
+ <list>
+ <bullet>Written for C-applications</bullet>
+ <bullet>Xdebug uses the same format</bullet>
+ <bullet>KCacheGrind is an awesome viewer</bullet>
+ <bullet>Profile your app with *both* CacheGrind and Xdebug</bullet>
+ <bullet>Alternative viewers: WinGrind, Macgrind, Webgrind, PHP Storm</bullet>
+ </list>
+</slide>
diff --git a/slides/xdebug/tracefile-computerized2.png b/slides/xdebug/tracefile-computerized2.png
new file mode 100644
index 0000000..930a1eb
Binary files /dev/null and b/slides/xdebug/tracefile-computerized2.png differ
diff --git a/slides/xdebug/why-debugger3.xml b/slides/xdebug/why-debugger3.xml
index cf9135c..721c41e 100644
--- a/slides/xdebug/why-debugger3.xml
+++ b/slides/xdebug/why-debugger3.xml
@@ -4,9 +4,9 @@
<image filename="xdebug-logo.png" pdf-scale="0.6"/>
<list>
<bullet>*Xdebug*: An Open Source debugging tool</bullet>
- <bullet>About 8 years old</bullet>
+ <bullet>About 10 years old</bullet>
<bullet>Works on "every" operating system</bullet>
- <bullet>Version 2.1 released earlier this year</bullet>
<bullet>PHP 5.1, 5.2, 5.3, 5.4 and trunk</bullet>
+ <bullet>Version 2.2 about to follow with PHP 5.4</bullet>
</list>
</slide>
diff --git a/templates/default/div.ezt b/templates/default/div.ezt
index eb6dbc3..b21712b 100644
--- a/templates/default/div.ezt
+++ b/templates/default/div.ezt
@@ -1,6 +1,7 @@
{use $node, $pres}
+{var $class = get_attribute( $node, 'class' )}
{var $effect = get_attribute( $node, 'effect' )}
-<div{if $effect} class='effect-{$effect}'{/if}>
+<div{if $effect} class='effect-{$effect}'{/if}{if $class}
class="{$class}"{/if}>
{foreach $node->childNodes as $child}
{if is_set( $child->tagName )}
{include $child->tagName . '.ezt' send $child as $node, $pres}
diff --git a/templates/default/example.ezt b/templates/default/example.ezt
index eb69e85..e9f4c17 100644
--- a/templates/default/example.ezt
+++ b/templates/default/example.ezt
@@ -1,10 +1,14 @@
{use $pres, $node}
+{var $result}
<pre class='code'>{ replace_properties( $pres, $node->nodeValue )}</pre>
-{if get_attribute( $node, 'result' ) == 1}
+{if get_attribute( $node, 'result' ) >= 1}
+ {$result = run_code( replace_properties( $pres, $node->nodeValue ) )}
+ {if get_attribute( $node, 'result' ) == 1 && $result != ""}
<div class='effect-slide'>
<div class='result'>
<p>Result:</p>
-<pre>{raw run_code( replace_properties( $pres, $node->nodeValue ) )}</pre>
+<pre>{raw $result}</pre>
</div>
</div>
+ {/if}
{/if}
diff --git a/templates/default/qrcode.ezt b/templates/default/qrcode.ezt
index 7080ee5..7836823 100644
--- a/templates/default/qrcode.ezt
+++ b/templates/default/qrcode.ezt
@@ -1,6 +1,6 @@
{use $node, $pres}
{if str_trim( format_text( $pres, $node->nodeValue ) ) == ''}
-<img src="http://qrcode.kaywa.com/img.php?s=8&d=http://derickrethans.nl/talks.html"/>
+<img src="/qrcode.php?d=http://derickrethans.nl/talks.html"/>
{else}
-<img src="http://qrcode.kaywa.com/img.php?s=8&d={raw
format_text( $pres, $node->nodeValue )}"/>
+<img src="/qrcode.php?d={raw format_text( $pres, $node->nodeValue )}"/>
{/if}
diff --git a/templates/default/slide.ezt b/templates/default/slide.ezt
index ada6152..986c58a 100644
--- a/templates/default/slide.ezt
+++ b/templates/default/slide.ezt
@@ -1,11 +1,13 @@
-{use $node, $pres, $slideNr}
+{use $node, $pres, $slideNr, $css = array("core.css")}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$pres->title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="AUTHOR" content="{$pres->speaker}" />
- <link type="text/css" rel="stylesheet" href="/core.css"/>
+{foreach $css as $cssFile}
+ <link type="text/css" rel="stylesheet" href="/{$cssFile}"/>
+{/foreach}
<!--[if lt IE 8]>
<script src="IE8.js" type="text/javascript"></script>
<![endif]-->
Thank you for your contribution.