Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes”...
Transcript of Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes”...
![Page 1: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/1.jpg)
Wigflip.comWeb toys in Common Lisp
![Page 2: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/2.jpg)
roflbotadd text to pictures
![Page 3: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/3.jpg)
![Page 4: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/4.jpg)
![Page 5: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/5.jpg)
![Page 6: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/6.jpg)
demo
![Page 7: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/7.jpg)
AutoMotivator“motivational” poster design
![Page 8: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/8.jpg)
![Page 9: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/9.jpg)
![Page 10: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/10.jpg)
demo
![Page 11: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/11.jpg)
Software
• Lots of Ediware for web (tbnl, cl-who, html-template)
• Vecto for drawing text and graphics
• CXML, Ironclad, Drakma for Flickr auth and other API interaction
• Utilities for web infrastructure
• ImageMagick for some image conversion
![Page 12: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/12.jpg)
Dynamic images
• Lisp writes to /wf/roflbot/text/x/y/xyz.png
• Client is given reference tohttp://text.roflbot.wigflip.com/x/y/xyz.png
• Image is served efficiently by nginx web server
![Page 13: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/13.jpg)
Flickr
• Server redirects user into to Flickr auth pipeline
• User clicks “Wigflip.com is allowed to write photos to my account”
• Flickr returns user to a wigflip.com URL with an authorization token
![Page 14: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/14.jpg)
Flickr
(with-flickr-session (session) (upload-file file session :title “roflbot” :tags “wigflip”))
![Page 15: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/15.jpg)
![Page 16: Wigflip - xach.com · 2009-03-25 · Dynamic images • Lisp writes to ... • “Mistakes” poster from despair.com • John McCarthy photo from his site. c . Garbage Cllection](https://reader033.fdocuments.net/reader033/viewer/2022050303/5f6c6549bfd1215467107b25/html5/thumbnails/16.jpg)
• Lisp roflbots courtesy of Robert Synnott
• Format control string courtesy Michael Weber
• “Mistakes” poster from despair.com
• John McCarthy photo from his site