cvs: presentations / hacku.xml /slides/hacku hacku0.xml /slides/intro hacku_ref.xml oauth_secret.inc yql2.xml
| From: | Rasmus Lerdorf | Date: | Fri, 30 Jan 2009 18:39:37 +0000 |
| Subject: | cvs: presentations / hacku.xml /slides/hacku hacku0.xml /slides/intro hacku_ref.xml oauth_secret.inc yql2.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1532@lists.php.net to get a copy of this message | ||
rasmus Fri Jan 30 18:39:37 2009 UTC
Added files:
/presentations/slides/intro oauth_secret.inc yql2.xml
Modified files:
/presentations hacku.xml
/presentations/slides/hacku hacku0.xml
/presentations/slides/intro hacku_ref.xml
Log:
Delhi HackU
http://cvs.php.net/viewvc.cgi/presentations/hacku.xml?r1=1.8&r2=1.9&diff_format=u
Index: presentations/hacku.xml
diff -u presentations/hacku.xml:1.8 presentations/hacku.xml:1.9
--- presentations/hacku.xml:1.8 Tue Oct 21 21:20:47 2008
+++ presentations/hacku.xml Fri Jan 30 18:39:33 2009
@@ -8,9 +8,9 @@
navbarheight="4.1em"
>
<topic>PHP</topic>
-<title>UC Berkeley Hack Day</title>
-<location>Berkeley, CA</location>
-<date>Oct 21, 2008</date>
+<title>HackU Delhi</title>
+<location>Delhi, India</location>
+<date>Jan 29, 2009</date>
<speaker>Rasmus Lerdorf</speaker>
<email>rasmus@php.net</email>
<url>http://talks.php.net/show/hacku</url>
@@ -31,7 +31,6 @@
<slide>slides/hacku/examples.xml</slide>
<slide>slides/hacku/ideas.xml</slide>
-<slide>slides/hacku/good.xml</slide>
<!-- History -->
<slide>slides/fowa/hist1.xml</slide>
@@ -62,6 +61,8 @@
<slide>slides/intro/ws6.xml</slide>
<slide>slides/intro/ws7.xml</slide>
<slide>slides/intro/geoplanet.xml</slide>
+<slide>slides/intro/yql1.xml</slide>
+<slide>slides/intro/yql2.xml</slide>
<slide>slides/intro/music.xml</slide>
<slide>slides/intro/boss.xml</slide>
<slide>slides/hacku/blueprint.xml</slide>
http://cvs.php.net/viewvc.cgi/presentations/slides/hacku/hacku0.xml?r1=1.4&r2=1.5&diff_format=u
Index: presentations/slides/hacku/hacku0.xml
diff -u presentations/slides/hacku/hacku0.xml:1.4 presentations/slides/hacku/hacku0.xml:1.5
--- presentations/slides/hacku/hacku0.xml:1.4 Mon Oct 13 15:58:12 2008
+++ presentations/slides/hacku/hacku0.xml Fri Jan 30 18:39:36 2009
@@ -2,7 +2,6 @@
<break lines="10"/>
<link marginleft="1em" fontsize="5em" href="http://developer.yahoo.com/hacku"/>
-<link marginleft="1em" fontsize="5em" href="http://live.yahoo.com/hacku"/>
-<link marginleft="1em" fontsize="5em"
href="irc://irc.freenode.net/hacku"/>
+<link marginleft="1em" fontsize="5em"
href="irc://irc.freenode.net/indiahacku"/>
</slide>
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/hacku_ref.xml?r1=1.2&r2=1.3&diff_format=u
Index: presentations/slides/intro/hacku_ref.xml
diff -u presentations/slides/intro/hacku_ref.xml:1.2 presentations/slides/intro/hacku_ref.xml:1.3
--- presentations/slides/intro/hacku_ref.xml:1.2 Mon Oct 13 15:58:12 2008
+++ presentations/slides/intro/hacku_ref.xml Fri Jan 30 18:39:37 2009
@@ -2,8 +2,7 @@
<break lines="1" />
<link fontsize="3em" marginleft="2em" leader="Slides: "
href=":-:url:-:"/>
<link fontsize="3em" marginleft="2em" leader="HackU: "
href="http://developer.yahoo.com/hacku"/>
-<link fontsize="3em" marginleft="2em" leader="Live: "
href="http://live.yahoo.com/hacku"/>
-<link fontsize="3em" marginleft="2em" leader="irc: "
href="irc://irc.freenode.net/hacku"/>
+<link fontsize="3em" marginleft="2em" leader="irc: "
href="irc://irc.freenode.net/indiahacku"/>
<link fontsize="3em" marginleft="2em" leader="YUI: " href="http://developer.yahoo.com/yui"/>
<link fontsize="3em" marginleft="2em" leader="GeoPlanet: "
href="http://developer.yahoo.com/geo"/>
<link fontsize="3em" marginleft="2em" leader="Maps: "
href="http://developer.yahoo.com/maps"/>
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/oauth_secret.inc?view=markup&rev=1.1
Index: presentations/slides/intro/oauth_secret.inc
+++ presentations/slides/intro/oauth_secret.inc
<?php
//$consumerKey =
'dj0yJmk9b2dOaFRDT0FxMWVTJmQ9WVdrOVYxQjZhRWRwTlRZbWNHbzlPVEV3TkRNeE16Zy0mcz1jb25zdW1lcnNlY3JldCZ4PWRm';
//$consumerSecret = 'a1d008290f81b27747649990cdaf1809956c8a73';
$consumerKey =
'dj0yJmk9ZFVVYnNzbm1OYVFwJmQ9WVdrOVNWUndWMmRUTldVbWNHbzlPVGN3TlRZeE9ESXkmcz1jb25zdW1lcnNlY3JldCZ4PTA2';
$consumerSecret = '42ba2361f371a3093deb3f8be82effffe99f3a28';
$applicationId = 'ITpWgS5e';
?>
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/yql2.xml?view=markup&rev=1.1
Index: presentations/slides/intro/yql2.xml
+++ presentations/slides/intro/yql2.xml
<slide title="YQL">
<break lines="2"/>
<blurb>Yahoo Query Language</blurb>
<example title="XPath on URL using PHP's OAuth Extension" result="1"
fontsize="1.3em" rfontsize="1.3em"><![CDATA[<?php
require './oauth_secret.inc';
$url = 'http://query.yahooapis.com/v1/yql';
try {
$o = new OAuth($consumerKey,$consumerSecret,
OAUTH_SIG_METHOD_HMACSHA1,OAUTH_AUTH_TYPE_AUTHORIZATION);
$q = <<<EOB
select * from html where xpath=
'//tr//a[@href="/wiki/Capital_(political)"]/../../../td[2]/a/text()'
and url in (select url from search .web where url like '%wikipedia%'
and query='India' limit 1)
EOB;
$o->fetch("$url?q=".rawurlencode($q)."&format=json");
$response_info = $o->getLastResponseInfo();
echo "<pre>".print_r($response_info,true)."</pre>";
$result = json_decode($o->getLastResponse(),true);
echo "<pre>".print_r($result['query'],true)."</pre>";
} catch(Exception $E) {
echo "Error: [".$E->errorMessage."]<br>\n";
echo "Response: [".$E->lastResponse."]<br>\n";
exit;
}
?>]]></example>
</slide>