cvs: presentations / varazdin.xml zagreb.xml /slides/intro ws7.xml ws8.xml ws9.xml

From: Date: Mon, 17 Apr 2006 00:58:43 +0000
Subject: cvs: presentations / varazdin.xml zagreb.xml /slides/intro ws7.xml ws8.xml ws9.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1277@lists.php.net to get a copy of this message
rasmus Mon Apr 17 00:58:43 2006 UTC Added files: /presentations varazdin.xml zagreb.xml Modified files: /presentations/slides/intro ws7.xml ws8.xml ws9.xml Log: First cut at Croatia slides - need another 2 hours of stuff

http://cvs.php.net/viewcvs.cgi/presentations/slides/intro/ws7.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/intro/ws7.xml diff -u presentations/slides/intro/ws7.xml:1.1 presentations/slides/intro/ws7.xml:1.2 --- presentations/slides/intro/ws7.xml:1.1 Wed Nov 9 11:33:37 2005 +++ presentations/slides/intro/ws7.xml Mon Apr 17 00:58:43 2006 @@ -10,7 +10,7 @@ </Result> ]]></example> -<example fontsize="1.2em" title="Example" result="1" marginright="0em"><![CDATA[<html><head><title>Map Tile Demo</title> +<example fontsize="1.2em" title="Example" result="0" marginright="0em"><![CDATA[<html><head><title>Map Tile Demo</title> <script type="text/javascript"> <?php function request_cache($url, $dest_file, $timeout=43200) { @@ -67,4 +67,61 @@ ?> </body></html>]]></example> +<example fontsize="1.2em" title="Example" hide="1" result="1" marginright="0em"><![CDATA[<html><head><title>Map Tile Demo</title> +<script type="text/javascript"> +<?php +function request_cache($url, $dest_file, $timeout=43200) { + if(!file_exists($dest_file) || filemtime($dest_file) < (time()-$timeout)) { + $stream = fopen($url,'r'); + $tmpf = tempnam('/tmp','YWS'); + file_put_contents($tmpf, $stream); + fclose($stream); + rename($tmpf, $dest_file); + } +} + +$cities = array("San Francisco", "Los Angeles", "Seattle", "Atlanta", "Chicago", "Dallas", + "Vancouver, Canada", "New York City", "Toronto", "Miami, FL", "Boston"); + +$width = 600; $height = 300; $zoom = 7; + +$url = "http://api.local.yahoo.com/MapsService/V1/mapImage?appid=YahooDemo"; +$url .= "&image_height=$height&image_width=$width&zoom=$zoom"; +$url .= "&location="; +$i=0; +foreach($cities as $city) { + $q = $url.rawurlencode($city); + $tmp = '/tmp/yws_tile_'.md5($q); + request_cache($q, $tmp); + $xml = simplexml_load_file($tmp); + if($i==0) $first = (string)$xml; + echo <<<EOB +image$i = new Image(); +image$i.src = "http://localhost/maps/$i.png"; +EOB; + $i++; +} +?> +</script> +</head><body> +<?php +echo <<<EOB +<div id="img_container" + style="float:left; height:{$height}px; width:{$width}px; padding: 0px 10px 0px 10px;"> +<img id="the_img" src="$first" height="$height" width="$width"/></div> +EOB; +$i=0; +foreach($cities as $city) { + $q = rawurlencode($city); + echo <<<EOB +<a href="http://maps.yahoo.com/beta/index.php?#trf=0&q1=$q" + onmouseover="document.getElementById('the_img').src=image$i.src; + this.style.backgroundColor='white';" + onmouseout="this.style.backgroundColor='#eeee33';">$city</a><br /> +EOB; + $i++; +} +?> +</body></html>]]></example> + </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/intro/ws8.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/ws8.xml diff -u presentations/slides/intro/ws8.xml:1.2 presentations/slides/intro/ws8.xml:1.3 --- presentations/slides/intro/ws8.xml:1.2 Thu Mar 30 17:48:44 2006 +++ presentations/slides/intro/ws8.xml Mon Apr 17 00:58:43 2006 @@ -6,12 +6,13 @@ </blurb> <example title="Simple Embedded Flash map" result="1" fontsize="1.6em" marginright="0em"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/v2.0/fl/javascript/apiloader.js"> + src="http://api.maps.yahoo.com/v3.0/fl/javascript/apiloader.js?appid=YahooDemo"> </script> <div id="mapContainer" style="height: 400px; width: 930px;"></div> <script type="text/javascript"> -var mymap = new Map("mapContainer", "YahooDemo", "Montreal", 6); +var mymap = new Map("mapContainer","YahooDemo",":-:location:-:",16,MapViews.HYBRID); mymap.addTool(new PanTool(), true); +mymap.addWidget(new SatelliteControlWidget()); mymap.addWidget(new NavigatorWidget()); </script>]]></example> @@ -22,14 +23,14 @@ </blurb> <example title="Simple Embedded DHTML map" result="1" fontsize="1.6em" rfontsize="1em" marginright="0em"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/ajaxymap?v=2.0&appid=YahooDemo"> + src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=YahooDemo"> </script> <div id="jsmapContainer" style="height: 400px; width: 930px;"></div> <script type="text/javascript"> var jsmap = new YMap(document.getElementById('jsmapContainer')); -jsmap.addPanControl(); +jsmap.addTypeControl(); jsmap.addZoomLong(); -jsmap.drawZoomAndCenter("Montreal, Canada", 6); +jsmap.drawZoomAndCenter(":-:location:-:", 10); </script>]]></example> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/intro/ws9.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/intro/ws9.xml diff -u presentations/slides/intro/ws9.xml:1.3 presentations/slides/intro/ws9.xml:1.4 --- presentations/slides/intro/ws9.xml:1.3 Thu Mar 30 17:48:44 2006 +++ presentations/slides/intro/ws9.xml Mon Apr 17 00:58:43 2006 @@ -17,7 +17,7 @@ </item>]]></example> <example title="Adding GeoRSS to the Flash map" result="1" fontsize="1.4em" marginright="0em"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/v2.0/fl/javascript/apiloader.js"> + src="http://api.maps.yahoo.com/v3.0/fl/javascript/apiloader.js"> </script> <div id="mapContainer" style="height: 500px; width: 930px;"></div> <script type="text/javascript"> @@ -36,7 +36,7 @@ </blurb> <example title="Simple Embedded DHTML map" result="1" fontsize="1.4em" rfontsize="1em" marginright="0em"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/ajaxymap?v=2.0&appid=YahooDemo"> + src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=YahooDemo"> </script> <div id="jsmapContainer" style="height: 500px; width: 930px;"></div> <?php http://cvs.php.net/viewcvs.cgi/presentations/varazdin.xml?view=markup&rev=1.1 Index: presentations/varazdin.xml +++ presentations/varazdin.xml <presentation template="php2" navmode="html" titlecolor="#1111aa" navbarbackground="url(images/trans-ffffff.png)" logo1="images/php-med-trans-light.gif" titlesize="2em" navbarheight="4.1em" > <!-- Fast and Rich Apps PHP has become amazingly popular due to its simple pragmatic approach to solving the web problem. The web problem has been changing and there is a lot of talk about Web 2.0 and the Programmable Web. PHP is more relevant than ever as people are combining web service components to build rich AJAX-driven web applications. In this talk Rasmus will cover the basic building blocks PHP 5 provides for building these rich applications and show plenty of interesting examples along the way. --> <topic>PHP</topic> <title>Web 2.0 and PHP 5</title> <event>Fakultet organizacije i informatike</event> <location>Varazdin</location> <date>Apr.19, 2006</date> <speaker>Rasmus Lerdorf</speaker> <email>rasmus@php.net</email> <url>http://talks.php.net/show/varazdin</url> <slide>slides/intro/titlepage.xml</slide> <slide>slides/intro/rich.xml</slide> <slide>slides/intro/rich2.xml</slide> <slide>slides/intro/php5.xml</slide> <slide>slides/intro/xml_eg.xml</slide> <slide>slides/intro/rss_flickr.xml</slide> <slide>slides/intro/ws2.xml</slide> <slide>slides/intro/ws1.xml</slide> <slide>slides/intro/ws3.xml</slide> <slide>slides/intro/ws5.xml</slide> <slide>slides/intro/ws6.xml</slide> <slide>slides/intro/ws7.xml</slide> <slide>slides/intro/ws8.xml</slide> <slide>slides/intro/ws9.xml</slide> <slide>slides/intro/yajax.xml</slide> <slide>slides/intro/yajax_apc.xml</slide> <slide>slides/mvc/mvc.xml</slide> <slide>slides/mvc/example.xml</slide> <slide>slides/mvc/mvc_view1.xml</slide> <slide>slides/mvc/mvc_view2.xml</slide> <slide>slides/mvc/mvc_view3.xml</slide> <slide>slides/mvc/mvc_controller.xml</slide> <slide>slides/mvc/mvc_model.xml</slide> <slide>slides/bm06/profit.xml</slide> <slide>slides/bm06/initial.xml</slide> <slide>slides/bm06/pg.xml</slide> <slide>slides/bm06/pg_persist.xml</slide> <slide>slides/bm06/mysql.xml</slide> <slide>slides/bm06/apc.xml</slide> <slide>slides/bm06/apc2.xml</slide> <slide>slides/bm06/extreme.xml</slide> <slide>slides/intro/web2_ref.xml</slide> </presentation> http://cvs.php.net/viewcvs.cgi/presentations/zagreb.xml?view=markup&rev=1.1 Index: presentations/zagreb.xml +++ presentations/zagreb.xml <presentation template="php2" navmode="html" titlecolor="#1111aa" navbarbackground="url(images/trans-ffffff.png)" logo1="images/php-med-trans-light.gif" titlesize="2em" navbarheight="4.1em" > <!-- Fast and Rich Apps PHP has become amazingly popular due to its simple pragmatic approach to solving the web problem. The web problem has been changing and there is a lot of talk about Web 2.0 and the Programmable Web. PHP is more relevant than ever as people are combining web service components to build rich AJAX-driven web applications. In this talk Rasmus will cover the basic building blocks PHP 5 provides for building these rich applications and show plenty of interesting examples along the way. --> <topic>PHP</topic> <title>Web 2.0 and PHP 5</title> <event>DORS/CLUC 2006</event> <location>Zagreb</location> <date>Apr.20, 2006</date> <speaker>Rasmus Lerdorf</speaker> <email>rasmus@php.net</email> <url>http://talks.php.net/show/varazdin</url> <slide>slides/intro/titlepage.xml</slide> <slide>slides/intro/rich.xml</slide> <slide>slides/intro/rich2.xml</slide> <slide>slides/intro/php5.xml</slide> <slide>slides/intro/xml_eg.xml</slide> <slide>slides/intro/rss_flickr.xml</slide> <slide>slides/intro/ws2.xml</slide> <slide>slides/intro/ws1.xml</slide> <slide>slides/intro/ws3.xml</slide> <slide>slides/intro/ws5.xml</slide> <slide>slides/intro/ws6.xml</slide> <slide>slides/intro/ws7.xml</slide> <slide>slides/intro/ws8.xml</slide> <slide>slides/intro/ws9.xml</slide> <slide>slides/intro/yajax.xml</slide> <slide>slides/intro/yajax_apc.xml</slide> <slide>slides/mvc/mvc.xml</slide> <slide>slides/mvc/example.xml</slide> <slide>slides/mvc/mvc_view1.xml</slide> <slide>slides/mvc/mvc_view2.xml</slide> <slide>slides/mvc/mvc_view3.xml</slide> <slide>slides/mvc/mvc_controller.xml</slide> <slide>slides/mvc/mvc_model.xml</slide> <slide>slides/bm06/profit.xml</slide> <slide>slides/bm06/initial.xml</slide> <slide>slides/bm06/pg.xml</slide> <slide>slides/bm06/pg_persist.xml</slide> <slide>slides/bm06/mysql.xml</slide> <slide>slides/bm06/apc.xml</slide> <slide>slides/bm06/apc2.xml</slide> <slide>slides/bm06/extreme.xml</slide> <slide>slides/intro/web2_ref.xml</slide> </presentation>
« previous php.pres (#1277) next »