Archive for the ‘google’ Category.

How to render HTML in code.google.com

Update: see latest article Publishing Flex applications to Google Code SVN repository

If you are hosting or contributing to an open-source project on code.google.com using SVN as source control, there is small trick to render .html source files as HTML and not raw text (default). Make sure you set the following SVN property for each file: svn:mime-type "text/html". I find this quite useful for showing examples or demos (using it for Flash/Flex).

Google chart api introduces QR codes (2D bar codes) support

As usual the guys at google have been busy and released a nice new feature for their (quite new) google chart api. It support 2D bar codes also known as QR codes. Whats more, they even offer a free decoding library for it (Xzing). Big respect googlers to your free APIs

Translate easily with JavaScript and the Google language API

wow, google recently released an API for their translation services called Google language API. Thats a good news but it even gets better! The api is really easy to use and applications can be boosted within minutes. The reference can be found here

Here is a quick example of how to translate something...

JAVASCRIPT:
  1. google.language.translate('my mum is swimming', 'en', 'de', function(result) {
  2.   alert(result.translation);
  3. });

and it gets better and even easier: its possible to let the API detect the language .. so nothing you have to take care about anymore.

JAVASCRIPT:
  1. google.language.detect('Deutsch ist auch eine Sprache',
  2.  function(result) {
  3.   alert(result.language);
  4. });

Further reading: An introduction to the language API and translation tools.

Now its time to come up with some nice little tools, widgets which use this service. "a user selects a paragraph an your page, clicks a button and suddenly the text is translated into the desired language".

Google released free chart API (usage example)

chart Two days ago the guys at google released a brand new api. It's called Google Chart API. and is free for approx. 50.000 requests per day. This should be enough for smaller projects ;) The interface is quite easy: You call URL's for your desired graphs. Also the Data is passed directly via the URL as parameters. I did not have the time yet to experiment a lot with it but from the first sight it looks very professional and i will give it a try in one of my administration areas. Here is a custom made example where I illustrate the visitors of webdevbros from the past two weeks in a nice graph... Continue reading ‘Google released free chart API (usage example)’ »