Recent travel photo albums (post created with help from the Graph API)
June 11, 2010
Created with this script: #!/usr/bin/env python
import json
import sys
import urllib
import urllib2
from optparse import OptionParser
GRAPH_BASE = 'https://graph.facebook.com'
def main():
parser = OptionParser(usage='usage: %prog [options]')
parser.add_option('-a', '--access_token', dest='access_token',
help='You can get your access_token from '
'http://developers.facebook.com/docs/api')
options, args = parser.parse_args()
if not options.access_token:
parser.print_help()
sys.exit()
try:
body = urllib2.urlopen(GRAPH_BASE + '/me/albums?' + urllib.urlencode({
'access_token': options.access_token,
})).read()
except Exception, e:
print e
sys.exit()
albums = json.loads(body).get('data', [])
albums = [a for a in albums if 'poland' in a['name'].lower()
or 'vienna' in a['name'].lower()]
print '<ul>'
for a in albums:
print '<li><a href="%(link)s">%(name)s</a> - %(description)s</li>' % a
print '</ul>'
if __name__ == '__main__':
main()
PubSubhubbub
March 11, 2010
Just testing PubSubhubbub support. I needed a small distraction earlier today. Apple should allow Push Notifications to iPhone home screen URL bookmarks
February 11, 2010
Here is how it could work:
Obviously this isn't in Apple's short-term best interest. If this were added I'd have little reason to ever use the Mail app again. It would devalue the benefits one gets from building a full fledged iPhone application. Eventually Android will get push notifications and the meta tags could settle on a standard that all could use. Suddenly there is no developing for multiple platforms, no waiting for approval, and no missing features. Long-term Apple goes from having the largest app store to having the entire application ecosystem. Developers don't need to learn Objective-C; they can continue to use whatever language they like to build their web apps in. Devices stop differentiating themselves based on the number of applications that run on them and start improving the overall experience. What I did this weekend
September 28, 2009
It's been a fun weekend. |
ElsewhereRecent Entries
The opinions expressed on this site are mine and do not
necessarily represent those of my
employer. You won't find any
confidential company information here, and while you're welcome
to
get in touch with me,
I'm afraid I can't put you in contact with my employer.
©2025 Benjamin Golub
|