[git] presentations.git branch master updated. 3771b31

From: Date: Sat, 25 Feb 2012 14:50:39 +0000
Subject: [git] presentations.git branch master updated. 3771b31
Groups: php.pres 
Request: Send a blank email to pres+get-1780@lists.php.net to get a copy of this message
The branch, master on presentations.git has been updated via 3771b3132d79678d5867fc5b15d8f500083097f4 (commit) via 2c3705f32ee421fe8e28c9ce2758bbcd3d6ab652 (commit) from 34182ce792542f368e2c514263499b5355e52111 (commit) http://git.php.net/?p=presentations.git;a=log;h=3771b3132d79678d5867fc5b15d8f500083097f4;hp=34182ce792542f368e2c514263499b5355e52111 Summary of changes: mongo-london12.xml | 1 + slides/mongodb/mongougs.xml | 17 +++++++++++++++++ slides/mongodb/update-modifiers2.xml | 16 +++++++++++----- 3 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 slides/mongodb/mongougs.xml -- Log ---------------------------------------- commit 3771b3132d79678d5867fc5b15d8f500083097f4 Merge: 2c3705f 34182ce Author: Derick Rethans <github@derickrethans.nl> Date: Sat Feb 25 14:41:59 2012 +0000 Merge branch 'master' of git.php.net:/presentations commit 2c3705f32ee421fe8e28c9ce2758bbcd3d6ab652 Author: Derick Rethans <github@derickrethans.nl> Date: Sat Feb 25 14:41:24 2012 +0000 Tune slides a little bit, and add mongo ug slide. diff --git a/mongo-london12.xml b/mongo-london12.xml index 4db268e..6a6cc07 100644 --- a/mongo-london12.xml +++ b/mongo-london12.xml @@ -95,6 +95,7 @@ <slide>slides/mongodb/tools-and-monitoring.xml</slide> <slide>slides/mongodb/ghengis.xml</slide> <slide>slides/mongodb/mms.xml</slide> +<slide>slides/mongodb/mongougs.xml</slide> <slide>slides/mongodb/resources.xml</slide> </presentation> diff --git a/slides/mongodb/mongougs.xml b/slides/mongodb/mongougs.xml new file mode 100644 index 0000000..5ed8d8a --- /dev/null +++ b/slides/mongodb/mongougs.xml @@ -0,0 +1,17 @@ +<slide> +<title>MongoDB UGs and Conference</title> + +<blurb>MongoDB UK</blurb> +<list> + <bullet>Annual one day conference dedicated to the open source database MongoDB.</bullet> + <bullet>June 20th, 2012 at the Mermaid Conference &amp; Events Centre</bullet> + <bullet>Early Bird ($50) ends May 23rd</bullet> +</list> + +<blurb>Mongo UGs</blurb> +<list> + <bullet>MongoDB London (Mar 29th): bi-monthly near Barbican</bullet> + <bullet>MongoDB Thames Valley: in Reading</bullet> + <bullet>Office Hours (Feb 29th): bi-weekly near Old Street</bullet> +</list> +</slide> diff --git a/slides/mongodb/update-modifiers2.xml b/slides/mongodb/update-modifiers2.xml index 99f72ef..c2f0ded 100644 --- a/slides/mongodb/update-modifiers2.xml +++ b/slides/mongodb/update-modifiers2.xml @@ -1,19 +1,25 @@ <slide> <title>Document update modifiers: Single value manipulation</title> +<div effect="fade-out"> <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> +</div> +<div effect="fade-in"> <example result="1"><![CDATA[<?php $m = new Mongo; -$c = $m->demo->circus; -$c->remove(); +$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' ) ) ); +$c->insert( [ '_id' => 'circ3', 'name' => 'Humberto', 'performers' => 12 ] ); +$c->update( + [ 'name' => 'Humberto' ], // query + [ '$inc' => [ 'performers' => 4 ] ] // update spec +); +var_dump( $c->findOne( [ 'name' => 'Humberto' ] ) ); ?>]]></example> +</div> </slide> Thank you for your contribution.

« previous php.pres (#1780) next »