New FB Messenger Bot Port to Python Based on Quickstart Guide

FB Messenger Python Port on StackOverflow

The current Quickstart guide for the new FB Messenger Chatbot is in Node.JS. I am currently working on a project in Python and couldn’t find any Copy & Paste-able Python webhooks. So, I created one myself. Hope this is helpful to someone else 🙂

FB Chatbot Code Snippet on Gisthttps://gist.github.com/sshadmand/304a77371c9e207a5fa42a6b874017d5.js

Fake Response Server: Slow response time generator

Here is another quick tool built on GAE. This one is super simple, but pretty handy. Today Twitter went down, and somewhere in our system we were using the Twitter API to display one of our status feeds. Them being down became us being slow.

Well, I wanted to do some quick tests to keep this from happening again, but byt the time I got to it Twitter was responsive again. To fix it I would need to create a bad URL. The crappy thing is I wanted a slow response time, not exactly a bad response/error. Creating a 404 error is easy, just go to some url that doesn’t exists and test. But I want a slowwwww response.

I quickly searched Google for something I could use, and didn’t find one. When I realized I would have to create a fake pause endpioint somewhere I figured someone else out there might benfiift from a quick public version of this system. So, I created fake response server. The first default endpoint available sleeps for a variable time.

http://fake-response.appspot.com

and add a sleep param to changethe sleep time seconds

http://fake-response.appspot.com?sleep=5

(The default is 10 seconds)

Nothing major, but why not publicize the tool incase it can help some other shmuck out there like me 🙂

 

Cheers.

 

 

Still no calendar API in 3.0/3.1

iPhone Calendar
iPhone Calendar

Seems silly at this point but iPhone SDK is still without an API to push events to a persons calendar on the phone. Really? I mean what could happen that apple is against. You can get a users location based on GPS, which would seem more invasive then allowing a user to click a button to add it to their calendar. Is Kim jung il running apple while Jobs is out sick? — Maybe they are the same person; — I mean I have never seen them in the same place at the same time! Weird.

Anyways, please add this API soon. Thanks.

Pie for mass consumption

Advanced Pie
Advanced Pie

Yet another great Google API for the masses, on the fly charts. You can simply use a URL and set of parameters to describe your chart and the output is an image file.  So, use the url in your blog post or place it in your href tage and get a great looking chart in a snap.

Down side, there arent as many options as I would like through the API URL; I cant show perentages on te pie chart. Put they look great, they are easy to use and you can update them on te fly simply by changing the URL.

Check out more information on this cool little feature at http://code.google.com/apis/chart/

or try one of these examples:  Pie Chart, Bar Chart, and even a QR Code.

Google Data API's

Data APIs
Data API's

Get google search results for all data streems

Here is an example of getting their images:

http://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=Paris%20Hilton&callback=foo&context=bar

These API’s can be called through JavaScript scripts and class definitions Google provides (see below) or trough URL API  calls.

These API’s are great for mashup sites or to help you increase the on page data you display to your users to show relevant topics and increase engagement or decrease clicks for data as the browse your site. I used a couple of them, for example, on http://www.appmakr.com/try_demo to pull relevant RSS feeds and Images based on a companies domain name.

You can read more about this service and browse through googles documentation below:

Documentation home:

http://code.google.com/apis/ajaxsearch/documentation/

AJAX:

http://code.google.com/apis/ajaxsearch/documentation/reference.html

URL Based:

http://code.google.com/apis/ajaxsearch/documentation/reference.html#_restUrlBase

Data API List:

http://code.google.com/apis/gdata/

Google Data API’s

Data APIs
Data API's

Get google search results for all data streems

Here is an example of getting their images:

http://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=Paris%20Hilton&callback=foo&context=bar

These API’s can be called through JavaScript scripts and class definitions Google provides (see below) or trough URL API  calls.

These API’s are great for mashup sites or to help you increase the on page data you display to your users to show relevant topics and increase engagement or decrease clicks for data as the browse your site. I used a couple of them, for example, on http://www.appmakr.com/try_demo to pull relevant RSS feeds and Images based on a companies domain name.

You can read more about this service and browse through googles documentation below:

Documentation home:

http://code.google.com/apis/ajaxsearch/documentation/

AJAX:

http://code.google.com/apis/ajaxsearch/documentation/reference.html

URL Based:

http://code.google.com/apis/ajaxsearch/documentation/reference.html#_restUrlBase

Data API List:

http://code.google.com/apis/gdata/