12. Managed VMs
Compute | Managed VMs
● Managed VMs
○ The Flexibility of Compute Engine
○ The productivity of App Engine
● Provides best of both
○ IaaS + PaaS
22. Waypoints GCS Bucket
Waldo-gcp cloud storage
Waldo Server
Android App
endpoints API (OAuth 2)
Waldo-gcp-file
Waldo-gcp-file-in
Waldo-gcp-file-image
endpoint API upload waypoints address to
managed VMs upload optimal address to
managed VMs upload screenshot image to
23. GCS Bucket Notification
Waldo-gcp setup gcs object notification
Waldo Server
Android App
endpoints API (OAuth 2)
Waldo-gcp-file
Waldo-gcp-file-in
Waldo-gcp-file-image
24. GCS Bucket Notification
Waldo-gcp storage
Waldo Server
Android App
endpoints API (OAuth 2)
Waldo-gcp-file
Waldo-gcp-file-in
Waldo-gcp-file-image
● bucket push notification
○ https only
○ domain owned/notice
25. Google Cloud Storage Notification
class BucketNotificationHandler(webapp2.RequestHandler):
def post(self):
# Decode the name and bucket of the notification
def notification_decoder(object):
if 'kind' in object:
return dict(name=object['name'], bucket=object['bucket'], id=object['id'])
...
# Add a new task to the queue
taskqueue.add(url='/waypoints/', params={
'bucket': notification['bucket'],
'name': notification['name'],
'id': notification['id']
},queue_name='new-files')
...
Create the App Engine backend
26. Waypoints address text file
Create the App Engine backend | Waldo-gcp-file
"台北市內湖區瑞光路227號1樓",
"高雄市鼓山區美術東二路106號",
"台南市長榮路一段175號",
"臺北市松山區南京東路五段123巷1弄15號",
"高雄市五福四路131號2樓"
29. Waldo-gcp waypoint optimization
● Gather the distance between wall
waypoints
● Google Map APIs
● genetic algorithm
optimal road trip
[nbviewer.ipython.org/github/rhiever/Data-Analysis-and-Machine-Learning-
Projects/blob/master/optimal-road-trip/Computing the optimal road trip across
the U.S..ipynb](http://goo.gl/SYoh53)
30. Pandas
● Python library
● Powerful data structures for data
analysis, time series,and statistics
optimal road trip
http://pandas.pydata.org/
35. Waldo-gcp screenshot
● Screenshot as a service
● Phantomjs + nodejs
snapshot server
[fzaninotto/screenshot-as-a-service](https://github.com/fzaninotto/screenshot-as-
a-service)
41. ● [Here's Waldo: Computing the optimal search strategy for finding Waldo | Randal S. Olson](http://goo.
gl/DSOZbv)
● [Computing the optimal road trip across the U.S. | Randal S. Olson](http://goo.gl/pDNfp0)
● [nbviewer.ipython.org/github/rhiever/Data-Analysis-and-Machine-Learning-Projects/blob/master/optimal-
road-trip/Computing the optimal road trip across the U.S..ipynb](http://goo.gl/SYoh53)
● [GoogleCloudPlatform/abelana-gcp](https://goo.gl/6L55oa)
Reference