App Engine Server Updates
App Engine is currently upgrading one of my applications from 1.8.1 to 1.8.2. Here’s a picture of how the application dashboard looks:
Retrieving An Array From Memcache In Golang
Google App Engine Source Code
App Engine maintains the source code repository for its’ APIs at https://code.google.com/p/googleappengine/source/checkout . Using a Subversion client you can check out and review the code – just follow the directions on the page.
If you would prefer to browse the code online, you can go to https://code.google.com/p/googleappengine/source/browse/ . Open up the folders on the left side navigation bar until you get to the file you’re looking for. Most of the time you’ll want the most recent source code available, so browse to the SVN > Trunk folder and go from there.
Need an open source implementation of the whole production server and its environment? Try AppScale, which is a Google-supported project allowing App Engine applications to run on other servers.
Transforming An Image Using The ImagesService
I was checking my email when…
I was checking my Spam folder when I saw this message. Apparently Gmail thinks that emails from the Google Cloud Platform mailing list are spam.
A Simple Cron Declaration
Cron is a service to schedule tasks at predetermined intervals. For example, you could schedule a certain task to run every 10 minutes, or 10 hours, or every Monday. At every interval, App Engine will send a HTTP request to an URL that you specify.
Here’s an example of a cron file:
cron:
- description: Description Of Cron
url: /url
schedule: every 24 hours
timezone: America/Chicago
This tells App Engine to run the script located at /url once every 24 hours. You can name other schedules, such as every 10 minutes, or every Monday 9:00 (run every Monday 9 AM).
Cron files are saved as cron.yaml in the root directory of a Go app, or in the /war/WEB-INF folder of a Java application.
Configuring EdgeCache – A Cache For App Engine
Setting Permissions To Access Cloud Storage From App Engine
Creating Twitter Access Credentials
Integrating Twitter access to your application is fairly simple. But before you write a single line of code, you need OAuth access credentials to log into Twitter. Here’s how to get those credentials.
First, go to https://dev.twitter.com/apps. You’ll see the following screen:
Click on Create Application, then fill in the application details boxes in the next screen:
Scroll all the way down and click the button marked Create Application.
After that, go to the Settings tab of your new application:
Go down to the Application Type section:
Click on the “Read, Write and Access direct messages” option, and save your settings.
Go back to the details tab:
Scroll down and press the button marked “Create my access token”:
After a moment, you’ll see entries for the OAuth consumer key, consumer secret, access token, and access token secret (they’ll look like long strings of random characters). These tokens can be passed to twitter4j or another Twitter library to log into Twitter.