This is a talk for the Loughborough University Computer Society about the nitty gritty of my.Lboro, our new student portal site. It touches on cloud APIs, Zend and much, much more!
The Future Is Here: It's Just Not Evenly Distributed
1. The Future is Here:
It’s Just Not Evenly Distributed
Martin Hamilton
http://martinh.net
@martin_hamilton
Photo by Sarath Sreekumar via Flickr
2.
3. my.Lboro
• New site bringing together student info:
–Google Email, Calendar and Docs
–Learn (Moodle) VLE
–Library Services
–Newsfeeds and key links
• This talk: How it works :-)
17. RSS/ATOM
• It’s all around you
<link href=“…” rel=“alternate”
type=“application/rss+xml” />
• But it might need a clean up
– Consider implications of
embedded HTML
18.
19. ATOM Sample with Namespaces
<item>
<title>Cake/Pie.</title>
<pubDate>Mon, 12 Dec 2011 00:37:46 +0000
</pubDate>
<link>http://lsucs.org.uk/threads/cake-pie.5963/
</link>
<guid>http://lsucs.org.uk/threads/cake-pie.5963/
</guid>
<author>Lord_Infamy</author>
<dc:creator>Lord_Infamy</dc:creator>
<slash:comments>1</slash:comments>
</item>
20. Newsfeeds on my.Lboro
RSS aggregator written in Perl. Choses
newsfeeds based on staff/student status
32. Putting It Together
Visiting http://my.lboro.ac.uk:
– Shibboleth prompts for SSO login if necessary
• SAML response includes LDAP attributes from
Active Directory, e.g. student ID
– Populates skeleton HTML of page
• Starts AJAX callbacks going to render widgets
• Choice of staff/student content
– Appearance driven via CSS + jQuery
33. Traps for the Unwary
• Are you using UTF-8 everywhere?
• SimpleXMLElement barfs on malformed XML
• How much intermediate caching to do?
• Do you even have APIs??
• 2 Legged OAuth not well understood
• REST good, SOAP bad – but use JSON rather
than XML if you can
• print_r() and Data::Dumper are your friends!