- KISS slides for PHP NorthWest.

- DateTime and Don't Panic slides for php|works
This commit is contained in:
Derick Rethans
2008-11-27 10:39:21 +00:00
parent 5101dfcdce
commit 670c77db69
40 changed files with 593 additions and 13 deletions

48
dont-panic-phpworks8.xml Normal file
View File

@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<presentation
template="css"
navmode="html"
navbarbackground="#4373b4"
navbartopiclinks="0"
navColor="#f1fbff"
logo1=""
stylesheet="presentations/slides/kiss/dont-panic.css"
backgroundfixed="1" >
<topic>PHP</topic>
<title>Don't Panic</title>
<event>php|works 2008</event>
<location>Atlanta, US</location>
<date>Nov 13, 2008</date>
<speaker>Derick Rethans</speaker>
<email>dr@ez.no</email>
<url>http://derickrethans.nl/talks.php</url>
<slide>slides/kiss/title.xml</slide>
<slide>slides/dont-panic/b.xml</slide>
<slide>slides/dont-panic/d.xml</slide>
<slide>slides/dont-panic/e.xml</slide>
<slide>slides/dont-panic/f.xml</slide>
<slide>slides/dont-panic/g.xml</slide>
<slide>slides/dont-panic/i.xml</slide>
<slide>slides/dont-panic/j.xml</slide>
<slide>slides/dont-panic/k.xml</slide>
<slide>slides/dont-panic/l.xml</slide>
<slide>slides/dont-panic/o.xml</slide>
<slide>slides/dont-panic/p.xml</slide>
<slide>slides/dont-panic/q.xml</slide>
<slide>slides/dont-panic/r.xml</slide>
<slide>slides/dont-panic/s.xml</slide>
<slide>slides/dont-panic/t.xml</slide>
<slide>slides/dont-panic/u.xml</slide>
<slide>slides/dont-panic/v.xml</slide>
<slide>slides/dont-panic/w.xml</slide>
<slide>slides/dont-panic/y.xml</slide>
<slide>slides/dont-panic/z.xml</slide>
<!--
- abstraction is good, but not always necessary
- simple architecture, no-dependencies, makes easier testing
- simple debugging and development (show komodo vs eclipse)
-->
</presentation>

4
slides/dont-panic/a.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">A</blurb>
<blurb class="desc">Array</blurb>
</slide>

4
slides/dont-panic/b.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">B</blurb>
<blurb class="desc">Browsers</blurb>
</slide>

4
slides/dont-panic/c.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">A</blurb>
<blurb class="desc">Array</blurb>
</slide>

4
slides/dont-panic/d.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">D</blurb>
<blurb class="desc">Design Patterns</blurb>
</slide>

4
slides/dont-panic/e.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">E</blurb>
<blurb class="desc">Elephpant</blurb>
</slide>

4
slides/dont-panic/f.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">F</blurb>
<blurb class="desc">Frameworks</blurb>
</slide>

4
slides/dont-panic/g.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">G</blurb>
<blurb class="desc">Globals</blurb>
</slide>

4
slides/dont-panic/h.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">H</blurb>
<blurb class="desc"></blurb>
</slide>

4
slides/dont-panic/i.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">I</blurb>
<blurb class="desc">IDEs</blurb>
</slide>

4
slides/dont-panic/j.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">J</blurb>
<blurb class="desc">JavaScript</blurb>
</slide>

4
slides/dont-panic/k.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">K</blurb>
<blurb class="desc">K.I.S.S.</blurb>
</slide>

4
slides/dont-panic/l.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">L</blurb>
<blurb class="desc">Links</blurb>
</slide>

4
slides/dont-panic/m.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">M</blurb>
<blurb class="desc"></blurb>
</slide>

4
slides/dont-panic/n.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">N</blurb>
<blurb class="desc"></blurb>
</slide>

4
slides/dont-panic/o.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">O</blurb>
<blurb class="desc">Object Orientation</blurb>
</slide>

4
slides/dont-panic/p.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">P</blurb>
<blurb class="desc">Python</blurb>
</slide>

4
slides/dont-panic/q.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">Q</blurb>
<blurb class="desc">Quality Assurance</blurb>
</slide>

4
slides/dont-panic/r.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">R</blurb>
<blurb class="desc">Rails</blurb>
</slide>

4
slides/dont-panic/s.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">S</blurb>
<blurb class="desc">Security</blurb>
</slide>

4
slides/dont-panic/t.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">T</blurb>
<blurb class="desc">Trolls</blurb>
</slide>

4
slides/dont-panic/u.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">U</blurb>
<blurb class="desc">Unit Testing</blurb>
</slide>

4
slides/dont-panic/v.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">V</blurb>
<blurb class="desc">VIM</blurb>
</slide>

4
slides/dont-panic/w.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">W</blurb>
<blurb class="desc">Web Services</blurb>
</slide>

4
slides/dont-panic/x.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">X</blurb>
<blurb class="desc"></blurb>
</slide>

4
slides/dont-panic/y.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">Y</blurb>
<blurb class="desc">You</blurb>
</slide>

4
slides/dont-panic/z.xml Normal file
View File

@@ -0,0 +1,4 @@
<slide template="white" title=''>
<blurb class="letter">Z</blurb>
<blurb class="desc">Ze |555555|e|nd</blurb>
</slide>

View File

@@ -1,4 +1,4 @@
<slide template="white">
<image filename="back.png"/>
<image filename="back.png" pdf-scale="0.6"/>
<blurb class="medium_blurb_center">don't break the back button</blurb>
</slide>

427
slides/kiss/dont-panic.css Normal file
View File

@@ -0,0 +1,427 @@
<style title="Default" type="text/css">
body {
font-size: 8pt;
margin-left:24px;
margin-right:0px;
margin-top:0em;
margin-bottom:0em;
background-image: url(presentations/slides/ezc/ez-background.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
overflow: -moz-scrollbars-none;
font-family: "Penguin Attach", Arial, helvetica, sans-serif;
color: white;
}
body.black, body.white
{
background-image: none;
background-attachment: fixed;
background-repeat: no-repeat;
}
body.white
{
margin: 0em;
}
body.title
{
background-image: url(presentations/slides/ezc/ez-background-title.jpg);
overflow: none;
}
div.sticky {
margin: 0;
position: fixed;
top: -0.5em;
left: 290px;
right: auto;
bottom: auto;
}
div.navbar {
padding: 4;
margin: 0;
height: 14em;
font-family: "Penguin Attack", verdana, tahoma, arial, helvetica, sans-serif;
z-index: 99;
}
div.navbar_title, div.navbar_title a, div.subtitle {
font-size: 26px;
color: #000000;
text-decoration: none;
text-align: left;
font-weight: bold;
margin-top: 20px;
}
body.title div.navbar
{
visibility: hidden; display: none;
}
div.subtitle {
margin-top: 0px;
font-size: 18px;
font-weight: normal;
font-style: italic;
}
div.navbar_nr a {
font-size: 13px;
color: #77a;
text-decoration: none;
position: fixed;
right: 10px;
bottom: 0px;
}
div.mainarea {
margin-top: 100px;
padding-top: 10px;
width: 1020px;
height: 610px;
overflow: auto;
overflow: -moz-scrollbars-vertical;
}
body.title div.mainarea
{
margin-top: 250px;
overflow: -moz-scrollbars-none;
}
body.black div.mainarea
{
position: fixed;
left: 0px;
top: 0px;
padding-left: 24px;
background-color: black;
margin-top: 0px;
padding-top: 0px;
width: 100%;
height: 100%;
overflow: auto;
overflow: -moz-scrollbars-vertical;
}
body.white div.mainarea
{
position: fixed;
left: 0px;
top: 0px;
margin-top: 0px;
padding-left: 0px;
overflow: auto;
background-color: black;
width: 1024;
height: 768;
}
body.black div.sticky, body.black div.navbar, body.white div.sticky
{
display: none;
visibility: hidden;
}
ul.pres {
list-style: circle;
font-size: 24px;
}
ul.numbered
{
font-size: 27px;
margin-right: 40px;
list-style-type: decimal;
}
ul.level2 {
list-style: circle;
font-size: 21px;
margin-left: 40px;
margin-top: -15px;
}
li.pres_bullet, div.link {
font-size: 32px;
margin-right: 40px;
}
li.pres_bullet_nr {
font-size: 27px;
margin-right: 40px;
list-style-type: decimal;
}
ul.large div li.pres_bullet
{
font-size: 35px;
}
ul.small div li.pres_bullet
{
font-size: 21px;
}
div.title_blurb {
font-size: 64px;
text-align: center;
font-weight: bold;
font-family: "Penguin Attack";
}
div.subtitle_blurb {
font-size: 32px;
text-align: center;
font-weight: bold;
font-family: "Penguin Attack";
}
div.small_blurb {
font-size: 18px;
}
div.blurb_header {
font-family: "Penguin Attack";
font-size: 38px;
}
div.blurb, div.bit_larger_output_text, div.output {
font-size: 32px;
width: 100%;
}
div.bit_larger_output_text {
margin-top: 8px;
}
div.x_small_blurb {
font-size: 0.5em;
}
div.large_blurb {
font-size: 35px;
}
div.medium_blurb_center {
font-size: 30px;
text-align: center;
}
div.large_blurb_center {
font-size: 38px;
text-align: center;
}
div.blurb_center {
text-align: center;
}
div.quote {
font-size: 32px;
text-align: center;
margin-left: 40px;
margin-right: 40px;
}
div.quote_attr {
font-size: 24px;
text-align: right;
margin-right: 40px;
}
div.xx_large_blurb_center {
font-size: 64px;
text-align: center;
}
div.q_mark {
text-align: center;
font-size: 350px;
}
div.shadow, code {
width: 920px;
font-size: 18px;
}
div.example code, div.highlight code, div.bit_larger, div.bit_larger code, div.bit_larger_output {
background: #eee;
font-size: 20px;
width: 100%;
font-weight: bold;
}
div.example, div.highlight, div.bit_larger, div.bit_larger_output {
margin-left: 20px;
margin-right: 20px;
}
body.white div.large, body.white div.large code {
background: #fff;
}
div.bit_larger_output {
background: #e6e300;
font-size: 27px;
font-weight: normal;
}
div.large code, div.large {
font-size: 26px;
background: #eee;
font-weight: bold;
margin-left: 20px;
margin-right: 20px;
}
div.highlight code, div.highlight {
background: #fffc00;
font-weight: bold;
}
div.code_small, div.code_medium, div.code_large, div.example {
background: #eee;
}
div.code_small code {
font-size: 10px;
}
div.code_medium code, div.code_medium pre {
font-size: 14px;
font-weight: bold;
}
div.code_large code, div.code_large pre {
font-size: 18px;
}
div.example pre {
font-size: 16px;
font-weight: bold;
}
div.session-title {
text-align: center;
font-size: 128px;
font-family: "Penguin Attack";
}
div.event, div.event-date, div.event-presenter {
text-align: center;
font-size: 35px;
font-family: "Penguin Attack";
}
div.pres-url-small {
text-align: center;
font-size: 24px;
font-family: "Penguin Attack";
}
img.spaced {
margin-right: 25px;
margin-left: 25px;
margin-top: 25px;
margin-bottom: 25px;
}
table {
font-size: 21px;
}
table.dbtable {
border-spacing: 0px;
border-collapse: collapse;
}
table.dbtable tr {
margin: 0px;
padding: 0px;
background-color: #f00;
}
table.dbtable td {
margin: 0px;
padding: 1px 5px 1px 5px;
border: thin solid black;
background-color: #fff;
vertical-align: top;
}
table.dbtable td.header {
font-weight: bold;
text-align: center;
}
table.dbtable td.header-candidate-key {
font-weight: bold;
font-style: italic;
text-align: center;
color: blue;
}
table.dbtable td.header-key, table.dbtable td.header-key-moved-to {
font-weight: bold;
text-align: center;
color: red;
}
table.dbtable td.header-moved, table.dbtable td.moved {
border: 1px dotted #aaa;
color: #aaa;
}
table.dbtable td.header-moved, table.dbtable td.header-moved-to {
font-weight: bold;
}
table.dbtable td.header-moved-to, table.dbtable td.moved-to, table.dbtable td.header-key-moved-to {
border: 2px solid black;
}
div#graph {
text-align: center;
}
iframe#graphIn {
border-style: none; height: 600px; width: 1000px;
}
body.white {
display: table;
width: 1024px;
}
body.white div.mainarea {
display: table-cell;
position: static;
vertical-align: middle;
font-family: "Penguin Attack";
}
body.white div.mainarea-inner {
margin-right:auto;
margin-left:auto;
display: table;
}
div.letter {
font-size: 256px;
text-align: center;
font-weight: bold;
}
div.desc {
font-size: 128px;
text-align: center;
}
div.blurb_gigantic_blink {
font-size: 128px;
text-decoration: blink;
}
div.blurb_very_big
{
font-size: 96px;
}
div.blurb_big
{
font-size: 64px;
}
</style>

View File

@@ -1,3 +1,3 @@
<slide template="white">
<image filename="ely.gif"/>
<image filename="ely.gif" pdf-scale="0.7"/>
</slide>

View File

@@ -1,3 +1,3 @@
<slide template="white">
<image filename="hammer-factory-design.jpg"/>
<image filename="hammer-factory-design.jpg" pdf-scale="0.7"/>
</slide>

View File

@@ -1,3 +1,3 @@
<slide template="white">
<image filename="hammer-factory.jpg"/>
<image filename="hammer-factory.jpg" pdf-scale="0.7"/>
</slide>

View File

@@ -1,3 +1,3 @@
<slide template="white">
<image filename="python.png"/>
<image filename="python.png" pdf-scale="0.7"/>
</slide>

View File

@@ -2,5 +2,6 @@
<slide>
<title>php|architect's guide to Date/Time handling</title>
<image align="center" filename="clocks.jpg" pdf-scale="0.5" y-offset="4" />
<break lines="4"/>
<image align="center" filename="cover-picture.jpg" pdf-scale="0.5" y-offset="4" />
</slide>

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 KiB

View File

@@ -8,16 +8,16 @@
$ts = new DateTime("now");
echo $ts->format(DATE_RFC2822), "<br/>\n";
echo $ts->modify("+2 days");
$ts->modify("+2 days");
echo $ts->format(DATE_RFC2822), "<br/>\n";
echo $ts->modify("fifth month");
$ts->modify("fifth month");
echo $ts->format(DATE_RFC2822), "<br/>\n";
echo $ts->modify("Friday +3 weeks");
$ts->modify("Friday +3 weeks");
echo $ts->format(DATE_RFC2822), "<br/>\n";
echo $ts->modify("next friday");
$ts->modify("next friday");
echo $ts->format(DATE_RFC2822), "<br/>\n";
?>]]></example>
</slide>

View File

@@ -3,7 +3,7 @@
<title>Periods (PHP 5.3)</title>
<subtitle>Initializing a period</subtitle>
<example result="1"><![CDATA[<?php
<example><![CDATA[<?php
// start, interval and count
$db = new DateTime( '2008-07-31' ) ;
$di = DateInterval::createFromDateString( 'next weekday' );

View File

@@ -13,7 +13,7 @@
?>]]></example>
<break lines="2"/>
<blurb>Getting the current offset to GMT with a timezone for a specific date:</blurb>
<blurb>Getting the current offset to UTC with a timezone for a specific date:</blurb>
<example result="1"><![CDATA[<?php
$tz = new DateTimeZone("Europe/Amsterdam");
$d = new DateTime("2005-01-22 09:15");

View File

@@ -12,7 +12,7 @@
?>]]></example>
<break lines="2"/>
<blurb>All supported timezone identifiers:</blurb>
<blurb>All supported timezone abbreviations:</blurb>
<example result="1"><![CDATA[<?php
$abbrs = timezone_abbreviations_list();
echo "<pre>\n";