cvs: presentations / euoscon06.xml /slides/intro geoflickr.xml
| From: | Rasmus Lerdorf | Date: | Wed, 20 Sep 2006 21:24:52 +0000 |
| Subject: | cvs: presentations / euoscon06.xml /slides/intro geoflickr.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1343@lists.php.net to get a copy of this message | ||
rasmus Wed Sep 20 21:24:52 2006 UTC
Added files:
/presentations euoscon06.xml
Modified files:
/presentations/slides/intro geoflickr.xml
Log:
EU Oscon slides
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/geoflickr.xml?r1=1.1&r2=1.2&diff_format=u
Index: presentations/slides/intro/geoflickr.xml
diff -u presentations/slides/intro/geoflickr.xml:1.1 presentations/slides/intro/geoflickr.xml:1.2
--- presentations/slides/intro/geoflickr.xml:1.1 Wed Sep 13 14:23:24 2006
+++ presentations/slides/intro/geoflickr.xml Wed Sep 20 21:24:52 2006
@@ -1,6 +1,6 @@
<slide title="Geocoded Photos">
-<example hide="0" result="1" title="Returned
XML"><![CDATA[<?php
+<example hide="0" result="1" fontsize="1.6em" title="Returned
XML"><![CDATA[<?php
include 'flickr_api.inc';
include 'secrets.inc';
if(!isset($_POST['loc'])) $loc = ':-:location:-:';
@@ -11,13 +11,13 @@
$lat = (double)$xml->Latitude;
$lon = (double)$xml->Longitude;
$rad = (180.0/3.1415926);
-$x = 2.5; $y = 2.5;
-$dlat = (1/6371) * $rad;
+$x = 5; $y = 5;
+$dlat = ($x/6371) * $rad;
$minlat = $lat - $dlat; $maxlat = $lat + $dlat;
$minlon = $lon-(($y*cos($minlat)/6371) * $rad);
$maxlon = $lon+(($y*cos($maxlat)/6371) * $rad);
-
-$params = array('bbox'=>"$minlon,$minlat,$maxlon,$maxlat");
+$params = array('bbox'=>"$minlon,$minlat,$maxlon,$maxlat",
+ 'min_upload_date'=>time()-4*24*3600);
$photos = $flickr->photosSearch($params);
if($photos['photos']) foreach($photos['photos'] as $photo) {
$url = $flickr->getPhotoURL($photo);
@@ -26,7 +26,6 @@
?>
<form action="<?php echo htmlspecialchars($PHP_SELF)?>"
method="POST">
Location: <input type=text name=loc size=60>
-</form>
-]]></example>
+</form>]]></example>
</slide>
http://cvs.php.net/viewvc.cgi/presentations/euoscon06.xml?view=markup&rev=1.1
Index: presentations/euoscon06.xml
+++ presentations/euoscon06.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>Fast and Rich Web Applications</title>
<event>Euro Oscon</event>
<location>Brussels</location>
<date>September 21, 2006</date>
<url>http://talks.php.net/show/euoscon06</url>
<speaker>Rasmus Lerdorf</speaker>
<email>rasmus@php.net</email>
<slide>slides/intro/titlepage.xml</slide>
<slide>slides/intro/rich.xml</slide>
<slide>slides/intro/rich2.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/intro/php5.xml</slide>
<slide>slides/intro/xml_eg_p.xml</slide>
<slide>slides/intro/rss_flickr.xml</slide>
<slide>slides/intro/atom_google.xml</slide>
<slide>slides/intro/ws1.xml</slide>
<slide>slides/intro/ws2.xml</slide>
<slide>slides/intro/ws6_p.xml</slide>
<slide>slides/intro/geoflickr.xml</slide>
<slide>slides/intro/ws7.xml</slide>
<slide>slides/intro/ajax_upload1.xml</slide>
<slide>slides/intro/ajax_upload2.xml</slide>
<slide>slides/intro/yui.xml</slide>
<slide>slides/intro/web2_ref.xml</slide>
</presentation>