cvs: presentations / hacku.xml /slides/hacku blueprint.xml hack08-2.jpg hack08-3.jpg hack08-4.jpg hack08-5.jpg hack08-6.jpg hack08-7.jpg hack08-8.jpg
hack08.jpg hacku0.xml hacku1.xml hacku2.xml hacku3.xml hacku4.xml hacku5.xml hacku6.xml hacku7.xml hacku8.xml hacku9.xml lovehack.jpg phack08.jpg
venn1.jpg /slides/intro boss.html boss.php boss.xml music.php music.xml php_js2.xml

From: Date: Tue, 16 Sep 2008 02:08:26 +0000
Subject: cvs: presentations / hacku.xml /slides/hacku blueprint.xml hack08-2.jpg hack08-3.jpg hack08-4.jpg hack08-5.jpg hack08-6.jpg hack08-7.jpg hack08-8.jpg
hack08.jpg hacku0.xml hacku1.xml hacku2.xml hacku3.xml hacku4.xml hacku5.xml hacku6.xml hacku7.xml hacku8.xml hacku9.xml lovehack.jpg phack08.jpg
venn1.jpg /slides/intro boss.html boss.php boss.xml music.php music.xml php_js2.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1505@lists.php.net to get a copy of this message
rasmus Tue Sep 16 02:08:26 2008 UTC Added files: /presentations hacku.xml /presentations/slides/hacku blueprint.xml hack08-2.jpg hack08-3.jpg hack08-4.jpg hack08-5.jpg hack08-6.jpg hack08-7.jpg hack08-8.jpg hack08.jpg hacku0.xml hacku1.xml hacku2.xml hacku3.xml hacku4.xml hacku5.xml hacku6.xml hacku7.xml hacku8.xml hacku9.xml lovehack.jpg phack08.jpg venn1.jpg /presentations/slides/intro boss.html boss.php boss.xml music.php music.xml Modified files: /presentations/slides/intro php_js2.xml Log: HackU

http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_js2.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/php_js2.xml diff -u presentations/slides/intro/php_js2.xml:1.2 presentations/slides/intro/php_js2.xml:1.3 --- presentations/slides/intro/php_js2.xml:1.2 Fri Sep 28 18:07:53 2007 +++ presentations/slides/intro/php_js2.xml Tue Sep 16 02:08:26 2008 @@ -10,7 +10,7 @@ ?>]]></example> <example title="Client-side Javascript" result="1" fontsize="1.5em"><![CDATA[<script type="text/javascript" - src="http://yui.yahooapis.com/2.2.2/build/utilities/utilities.js"> + src="http://yui.yahooapis.com/2.5.2/build/utilities/utilities.js"> </script> <script> var callback = { http://cvs.php.net/viewvc.cgi/presentations/hacku.xml?view=markup&rev=1.1 Index: presentations/hacku.xml +++ presentations/hacku.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" > <topic>PHP</topic> <title>UIUC Hack Day</title> <location>Champaign, IL</location> <date>Sept 15, 2008</date> <speaker>Rasmus Lerdorf</speaker> <email>rasmus@php.net</email> <url>http://talks.php.net/show/hacku</url> <slide>slides/intro/titlepage.xml</slide> <!-- Hack Day --> <slide>slides/hacku/hacku0.xml</slide> <!-- <slide>slides/hacku/hacku1.xml</slide> <slide>slides/hacku/hacku2.xml</slide> <slide>slides/hacku/hacku3.xml</slide> <slide>slides/hacku/hacku4.xml</slide> <slide>slides/hacku/hacku5.xml</slide> <slide>slides/hacku/hacku6.xml</slide> <slide>slides/hacku/hacku7.xml</slide> <slide>slides/hacku/hacku8.xml</slide> --> <slide>slides/hacku/hacku9.xml</slide> <!-- History --> <slide>slides/fowa/hist1.xml</slide> <slide>slides/fowa/hist2.xml</slide> <slide>slides/fowa/hist3.xml</slide> <slide>slides/fowa/hist4.xml</slide> <slide>slides/fowa/hist5.xml</slide> <!-- Architecture --> <slide>slides/intro/phpjs_learn.xml</slide> <slide>slides/intro/sx.xml</slide> <slide>slides/intro/rss_flickr.xml</slide> <slide>slides/intro/php_js1.xml</slide> <slide>slides/intro/php_js2.xml</slide> <slide>slides/intro/php_yui2.xml</slide> <slide>slides/intro/php_yui3.xml</slide> <slide>slides/intro/php_yui4.xml</slide> <slide>slides/intro/php_yui5.xml</slide> <slide>slides/intro/php_world.xml</slide> <slide>slides/intro/yajax.xml</slide> <slide>slides/intro/twit_db1.xml</slide> <slide>slides/intro/twit_db2.xml</slide> <slide>slides/intro/twit_db3.xml</slide> <slide>slides/intro/twit_db4.xml</slide> <slide>slides/intro/twit_db5.xml</slide> <slide>slides/intro/twit_db6.xml</slide> <slide>slides/intro/buzz.xml</slide> <slide>slides/intro/ws4.xml</slide> <slide>slides/intro/ws5.xml</slide> <slide>slides/intro/ws6.xml</slide> <slide>slides/intro/ws7.xml</slide> <slide>slides/intro/geoplanet.xml</slide> <slide>slides/intro/music.xml</slide> <slide>slides/intro/boss.xml</slide> <slide>slides/hacku/blueprint.xml</slide> <slide>slides/intro/sm1.xml</slide> <slide>slides/intro/sm2.xml</slide> <slide>slides/intro/hack08_ref.xml</slide> </presentation> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/blueprint.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/blueprint.xml +++ presentations/slides/hacku/blueprint.xml <slide title="BluePrint Mobile API"> <link marginleft="1em" fontsize="5em" href="http://developer.yahoo.com/mobile"/> <example hide="0" result="0" title="Blueprint Hello World - index.php" fontsize="1.6em"><![CDATA[<?php // Make sure we set the right content type header( "Content-Type: application/x-ywidget+xml" ); // Make sure not to cache. The Java client really cares. header("Cache-Control: no-cache"); // Include Blueprint library require './lib/blueprint.php'; // Turn on debug output - only stops on errors, not warnings. blueprintSetErrorHandler(); // New instance of XMLWriter $writer = new XMLWriter(); $writer->openMemory(); $writer->setIndent(true); $writer->startDocument('1.0','UTF-8'); // Create Page and Section nodes $page = new Blueprint_Page(); $module = new Blueprint_Module(); $page->addContent($module); // Set Module's header text $module->setHeader("PHP Version"); // Add main content block $module->addContent(new Blueprint_Block("Hello World!")); // Write everything to memory buffer $page->Emit($writer); // Return buffer & flush print($writer->outputMemory()); ?>]]></example> <example hide="0" result="0" title="XML Version - index.bp" fontsize="1.6em"><![CDATA[<page> <content> <module> <header layout="simple"> <layout-items> <block class="title">Blueprint XML</block> </layout-items> </header> <block>Hello World!</block> </module> </content> </page>]]></example> <example hide="0" result="0" title="Content-type" type="shell" fontsize="1.6em"><![CDATA[AddType application/x-ywidget+xml .bp]]></example> <example hide="0" result="0" title="config.xml" fontsize="1.2em"><![CDATA[<?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mobile.yahoo.com/widgets/schema/1.0/config /" xsi:schemaLocation="..."> <title>Hello World!</title> <version>1.0</version> <identifier>hello-world-1</identifier> <!-- Each widget must have unique id. --> <description>Hello World! Widget</description> <icon>ybang</icon> <author organization="My Company" href="http://www.myhomepage.com" email="me@myhomepage.com"> My Name </author> <!-- change this widget base to your server url --> <widget base="http://www.myhomepage.com/mydirectory"> <preview> <icon>ybang</icon> <label>Hello World!</label> </preview> <shortcuts> <item default="true"> <label>Y! Mobile</label> <href>index.php</href> <!-- for xml-only version, change to index.bp --> </item> </shortcuts> </widget> </config>]]></example> <link marginleft="1em" fontsize="3em" leader="Upload " href="http://mobile.yahoo.com/developers/test/upload"/> <link marginleft="1em" fontsize="3em" leader="Test " href="http://beta.m.yahoo.com"/> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku0.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/hacku0.xml +++ presentations/slides/hacku/hacku0.xml <slide title="Hack Day"> <break lines="15"/> <link marginleft="1em" fontsize="5em" href="http://developer.yahoo.com/hacku"/> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku1.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/hacku1.xml +++ presentations/slides/hacku/hacku1.xml <slide title="Hack Day"> <image filename="hack08-3.jpg" align="center" /> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku2.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/hacku2.xml +++ presentations/slides/hacku/hacku2.xml <slide title="Hack Day"> <image filename="hack08-2.jpg" align="center" /> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku3.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/hacku3.xml +++ presentations/slides/hacku/hacku3.xml <slide title="Hack Day"> <image filename="hack08-5.jpg" align="center" /> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku4.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/hacku4.xml +++ presentations/slides/hacku/hacku4.xml <slide title="Hack Day"> <image filename="hack08-7.jpg" align="center" /> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku5.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/hacku5.xml +++ presentations/slides/hacku/hacku5.xml <slide title="Hack Day"> <image filename="hack08.jpg" align="center" /> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku6.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/hacku6.xml +++ presentations/slides/hacku/hacku6.xml <slide title="Hack Day"> <image filename="phack08.jpg" align="center" /> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku7.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/hacku7.xml +++ presentations/slides/hacku/hacku7.xml <slide title="Hack Day"> <image filename="hack08-8.jpg" align="center" /> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku8.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/hacku8.xml +++ presentations/slides/hacku/hacku8.xml <slide title="Hack Day"> <image filename="hack08-6.jpg" align="center" /> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku9.xml?view=markup&rev=1.1 Index: presentations/slides/hacku/hacku9.xml +++ presentations/slides/hacku/hacku9.xml <slide title="Hack Day"> <image filename="lovehack.jpg" width="1024" height="640" align="center" /> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/boss.html?view=markup&rev=1.1 Index: presentations/slides/intro/boss.html +++ presentations/slides/intro/boss.html <html><head> <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/utilities/utilities.js"></script> <script language="javascript"> <!-- var fN = function callBack(o) { var resp = eval('(' + o.responseText + ')'); var latlon = document.getElementById('latlon'); latlon.innerHTML = "Latitude: <b>"+resp.ResultSet.Result.Latitude+"</b> &nbsp; "+ "Longitude: <b>"+resp.ResultSet.Result.Longitude+"</b><br />"+ "Precision: <b>"+resp.ResultSet.Result.precision+"</b>"; } var callback = { success:fN } function sendform(target,formName) { YAHOO.util.Connect.setForm(formName); YAHOO.util.Connect.asyncRequest('POST',target,callback); } // --> </script> </head><body> <form name="main" action="javascript:sendform('yajax_geocode.php','main')"> Location: <input type="text" name="loc" /> </form> <div id="latlon"> </div> </body></html> <?php $q = isset($_POST['q']) ? $_POST['q'] : ''; $type = isset($_POST['type']) ? $_POST['type'] : 'web'; $appid = 'Gux4Z8LIkY1IKfVXnRcMegs3IjNfmUhl'; // Get your own, please $url = 'http://boss.yahooapis.com/ysearch'; $frm = "format=xml"; ?> <html> <form action="boss.php" method="POST"> <input type="text" name="q" value="<?php echo htmlspecialchars($q)?>"/> <select name="type"> <option>web</option><option>images</option> <option>news</option><option>spelling</option> </select> </form> <?php if($q) { $q = "$url/$type/v1/".rawurlencode($q)."?appid=$appid&$frm"; $result = file_get_contents($q); echo '<pre>'.htmlspecialchars($result).'</pre>'; } ?> </html> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/boss.php?view=markup&rev=1.1 Index: presentations/slides/intro/boss.php +++ presentations/slides/intro/boss.php <?php $q = isset($_POST['q']) ? $_POST['q'] : ''; $type = isset($_POST['type']) ? $_POST['type'] : 'web'; $appid = 'Gux4Z8LIkY1IKfVXnRcMegs3IjNfmUhl'; // Get your own, please $url = 'http://boss.yahooapis.com/ysearch'; $frm = "format=xml"; ?> <html> <form action="boss.php" method="POST"> <input type="text" name="q" value="<?php echo htmlspecialchars($q)?>"/> <select name="type"> <option>web</option><option>images</option> <option>news</option><option>spelling</option> </select> </form> <?php if($q) { $q = "$url/$type/v1/".rawurlencode($q)."?appid=$appid&$frm"; $result = file_get_contents($q); echo '<pre>'.htmlspecialchars($result).'</pre>'; } ?> </html> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/boss.xml?view=markup&rev=1.1 Index: presentations/slides/intro/boss.xml +++ presentations/slides/intro/boss.xml <slide title="BOSS"> <break lines="1" /> <link marginleft="1em" fontsize="5em" href="http://developer.yahoo.com/search/boss"/> <example title="boss.php" filename="boss.php" hide="0" result="0" fontsize="1.5em" marginright="0em"/> <example title="" filename="http://pres2.localhost/presentations/slides/intro/boss.php" hide="1" result="1" marginright="0em" type="iframe"/> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/music.php?view=markup&rev=1.1 Index: presentations/slides/intro/music.php +++ presentations/slides/intro/music.php <?php $artist = isset($_POST['artist']) ? $_POST['artist'] : ''; $id = isset($_GET['id']) ? (int)$_GET['id'] : ''; $appid = 'Gux4Z8LIkY1IKfVXnRcMegs3IjNfmUhl'; // Get your own, please $url = 'http://us.music.yahooapis.com'; $frm = "format=json"; ?> <html> <form action="music.php" method="POST"> <input type="text" name="artist" value="<?php echo htmlspecialchars($artist)?>"/> </form> <?php if($artist && !$id) { $q = "$url/artist/v1/list/search/artist/".rawurlencode($artist)."?appid=$appid&$frm"; $j = json_decode(file_get_contents($q)); echo "<table>\n"; $arr = array(); if($j->Artists->count == 1) $arr = array($j->Artists->Artist); else if($j->Artists->count>1) $arr = $j->Artists->Artist; else echo "Not Found"; foreach($arr as $a) { echo <<<EOB <tr><th align="left"><a href="music.php?id={$a->id}">{$a->name}</a></th><td>{$a->website}</td> <td align="right">{$a->trackCount} tracks</td></tr> EOB; } echo "</table>\n"; } else if($id) { $q = "$url/track/v1/list/artist/$id?appid=$appid&$frm"; $j = json_decode(file_get_contents($q)); echo "<table>\n"; foreach($j->Tracks->Track as $t) { $s = $t->duration; $dur = sprintf("%d:%02d",(int)($s/60),$s%60); if(is_array($t->Category)) $cat = $t->Category[0]->name; else $cat = $t->Category->name; echo <<<EOB <tr><th><img src="{$t->Album->Release->Image[0]->url}"/></th> <th>{$t->title}</th><td>$dur</td><td>{$t->Album->Release->title}</td> <td>track #{$t->trackNumber}</td><td>$cat</td></tr> EOB; } echo "</table>\n"; } ?> </html> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/music.xml?view=markup&rev=1.1 Index: presentations/slides/intro/music.xml +++ presentations/slides/intro/music.xml <slide title="Music API"> <break lines="1" /> <link marginleft="1em" fontsize="5em" href="http://developer.yahoo.com/music/"/> <example title="music.php" filename="music.php" hide="0" result="0" fontsize="1.5em" marginright="0em"/> <example title="" filename="http://pres2.localhost/presentations/slides/intro/music.php" hide="1" result="1" marginright="0em" type="iframe"/> </slide>
« previous php.pres (#1505) next »