Turn Google App Engine into your own Personal Content Delivery Network (CDN)

 

But thanks to Google anyone can now run their own CDN for free on Googles servers. Lucky for you and me Google has made the process really painless and you can even have the CDN under you own domain name.

How do I setup my own CDN using Google App Engine?

Setup

Publish To Your CDN

Using Your Own Domain (Optional)

 

Turn Google App Engine into your own Personal Content Delivery Network (CDN) - Nick Berardi’s Coder Journal

Calling Google AJAX Language API in C# .NET

 image

Calling AJAX Language API from Non-Javascript environments, the API exposes a simple RESTful interface. In all cases, the method supported is GET and the response format is a JSON encoded result with embedded status codes. Details here.

Example in javascript. 

google.language.translate(”Hello world”, “”, “it”, function(result) {
if (!result.error) {
var container = document.getElementById(”translation”);
    container.innerHTML = result.translation;
}
});

And now the same code in C#:

WebRequest request = WebRequest.Create(”http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=hello%20world&langpair=%7Cit”);

// This command performs a Language Translation(/ajax/services/language/translate), for Hello World (q=hello%20world)

// from English to Italian (langpair=en%7Cit).  i.e. en|it  . Or you can leave the source language blank if you want auto-detection & translation.

WebResponse response = request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string json = reader.ReadLine();

JsonObject account;
JsonObject responseData;
JsonString responseDetails;
JsonNumber responseStatus;

using (JsonParser parser = new JsonParser(new StringReader(json), true))
    account = parser.ParseObject();

//responseDetails = (JsonString)account["responseDetails"];
responseStatus = (JsonNumber)account["responseStatus"];
responseData = (JsonObject)account["responseData"];

Console.WriteLine(”responseStatus: {0}”, responseStatus.Value);
Console.WriteLine(”translatedText: {0}”, responseData["translatedText"]);
Console.WriteLine(”detectedSourceLanguage: {0}”, responseData["detectedSourceLanguage"]);

// You can get the JSON .NET 2.0 parser I use from here.

// Or if you have .NET 3.5 you can use DataContractJsonSerializer to serializes objects to the JavaScript Object Notation (JSON) and deserializes JSON data to objects.

 

Developer’s Guide - Google AJAX Language API - Google Code

Posted in Google. 1 Comment »

Google AJAX Feed API

Sprinkle the Web on your Application: Demo starts at 0:45:10 -0:54:00

What is the Google AJAX Feed API?

With the AJAX Feed API, you can download any public Atom or RSS feed using only JavaScript, so you can easily mash up feeds with your content and other APIs like the Google Maps API.

The Google AJAX Feed API takes the pain out of developing mashups in JavaScript because you can now mash up feeds using only a few lines of JavaScript, rather than dealing with complex server-side proxies. Making it easy to quickly integrate feeds on your website, as shown below.

Developing and deploying an application on Google App Engine - Demo

Develop using Python:

Architecture, GQL, DataStore Big Table:

Google AJAX APIs

 

Google’s AJAX APIs let you implement rich, dynamic web sites entirely in JavaScript and HTML. You can add a map to your site, a dynamic search box, or download feeds with just a few lines of JavaScript.

image

Home Page - Google AJAX APIs - Google Code

Google Friend Connect

 

  • You, the site owner - Google Friend Connect gives you a snippet of code that, when put into your site, will equip the site with social features, including the ability to run third-party social applications. Moreover, it enables your visitors to log in with existing credentials, see who among their friends is already registered at that site. It also gives them one-click access to invite friends from their existing friends lists on other sites, such as Facebook or orkut.
  • Your site’s visitors - Visitors no longer need to create a new account or develop yet another friends list just to use the social applications on your site. We create the infrastructure that allows one login to be used across multiple sites and the ability to reuse existing friend relationships that the visitor has already established elsewhere.
  • OpenSocial developers - With Google Friend Connect, any website on the web can become an OpenSocial container. Their social applications can now run on social networking sites and anywhere else on the web that uses Google Friend Connect. By placing these applications on sites where users already visit, these application will be seen and used by more users more often.
  • Social networks - With Google Friend Connect, social networks thrive as hubs of activity while giving their users more opportunities to bring their friend relationships to other websites while simultaneously bringing their friends and activities from outside the social network back in — with people having the ability to publish their activities across the web into the activity streams of their social networks.

 

Google Friend Connect

Posted in Google. 1 Comment »

The Django Book

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

 image

A Framework use by Google App Engine

The Django Book

What Is Google App Engine? - Google App Engine - Google Code

 

What Is Google App Engine?

Google App Engine lets you run your web applications on Google’s infrastructure. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs grow. With App Engine, there are no servers to maintain: You just upload your application, and it’s ready to serve your users.

You can serve your app using a free domain name on the appspot.com domain, or use Google Apps to serve it from your own domain. You can share your application with the world, or limit access to members of your organization.

App Engine costs nothing to get started. Sign up for a free account, and you can develop and publish your application for the world to see, at no charge and with no obligation. A free account can use up to 500MB of persistent storage and enough CPU and bandwidth for about 5 million page views a month.

The Application Environment

Google App Engine makes it easy to build an application that runs reliably, even under heavy load and with large amounts of data. The environment includes the following features:

  • dynamic web serving, with full support for common web technologies
  • persistent storage with queries, sorting and transactions
  • automatic scaling and load balancing
  • APIs for authenticating users and sending email using Google Accounts
  • a fully featured local development environment that simulates Google App Engine on your computer

Google App Engine applications are implemented using the Python programming language. The runtime environment includes the full Python language and most of the Python standard library.

Via What Is Google App Engine? - Google App Engine - Google Code

Posted in Google. 1 Comment »

Developer’s Guide - Google AJAX Language API - Google Code

 

With the AJAX Language API, you can translate and detect the language of blocks of text within a webpage using only Javascript.

The “Hello, World” of the Google AJAX Language API

The easiest way to start learning about this API is to see a simple example. The following example will detect the language of the given text and then translate it to English.

<html>  <head>    <script type="text/javascript" src="http://www.google.com/jsapi"></script>    <script type="text/javascript">

    google.load("language", "1");

    function initialize() {      var text = document.getElementById("text").innerHTML;      google.language.detect(text, function(result) {        if (!result.error && result.language) {          google.language.translate(text, result.language, "en",                                    function(result) {            var translated = document.getElementById("translation");            if (result.translation) {              translated.innerHTML = result.translation;            }          });        }      });    }    google.setOnLoadCallback(initialize);

    </script>  </head>  <body>    <div id="text">你好,很高興見到你。</div>    <div id="translation"></div>  </body></html>

You can view this example here to edit and play around with it.

Via Developer’s Guide - Google AJAX Language API - Google Code

Google Contacts Data API - programmatic access your Google Contact list

 

We’re happy to announce the availability of our Google Contacts Data API that gives programmatic access to your contact list. The contact list is shared among Google applications like Gmail, Reader, Calendar, and more.
The Google Contacts Data API allows you to own your own contact data. We expect the API to be useful for a big range of applications. For example, developers can use it to:

  • Import a user’s Google contacts into their web or desktop application
  • Export their application’s contact list to Google
  • Write sync applications for mobile devices or popular, desktop-based contact management applications

The Contacts API allows developers to create, read, update, and delete contacts using the Google Data protocol, based on AtomPub.

Via Official Google Data APIs Blog: 3. 2. 1. Contact. The API has landed