Tuesday, 4 June 2013

OpenSocial Development Environment 1.0 Released

OSDE (OpenSocial Development Environment) is an Eclipse plugin for developing and testing OpenSocial applications.
It's an Apache-2-licensed open-source project hosted at:
Its milestone version 1.0 was released on June 22, 2010.

OSDE provides a rich set of features that both enable and enhance OpenSocial application development. It helps people building for both the client within a gadget, or even on another server using the Java RESTful client libraries. Its features include:
  • A built-in Shindig server for local testing.
  • An integrated database for storing and managing social data.
  • Simple project and gadget code generation wizards to quickly generate your OpenSocial application projects and application code.
  • A multi-paned gadget spec editor to facilitate gadget development.
  • A new "OpenSocial" Eclipse perspective that provides enhanced editing and debugging with easy access and control of the local Shindig and social database.
  • An OpenSocial REST Java client wizard that can quickly generate a new project along with sample code that uses the OpenSocial RESTful Java client library to connect to the local OpenSocial server. 
  • Live testing against iGoogle server.
  • Performance Analysis.
For details of installation and how to use it, please read the user guide at: https://sites.google.com/site/opensocialdevenv/user-guide

For bugs reporting or feature requests, please visit: http://code.google.com/p/opensocial-development-environment/issues/list

Thanks for your support.

Base on Post content

HTML5 in Gadgets on iGoogle

Did you know gadgets can use html5? The key is in the doctype. Normally the doctype of a gadget isn't mentioned. Specify the html5 doctype in the gadget and it will be used when the gadget is rendered. Let's look at a quick example using the popular canvas drawing API:

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
 <ModulePrefs title="html5 canvas">
 </ModulePrefs>
 <Content type="html" view="home,canvas">
  <![CDATA[
   <!DOCTYPE html>
   <script>
    var demo = {
     init: function() {
      var drawcan = document.getElementById('drawarea');
      if (drawcan.getContext){
       var context = drawcan.getContext('2d');
       var xmax = drawcan.width;
       var ymax = drawcan.height;
       context.strokeRect(0,0,xmax,ymax);
       for (var dotix = 0; dotix < 100; ++dotix) {
        var x = Math.random() * xmax;var y = Math.random() * ymax;
        context.strokeStyle = "#888888";
        var blueness = Math.floor(Math.random() * 256);
        context.fillStyle = "rgb(10,90,"+ blueness +")";
        context.beginPath();
        context.arc(x,y,5,0,Math.PI*2,true);
        context.closePath();
        context.stroke();
        context.fill();
       }
      }
     }
    };
 
    gadgets.util.registerOnLoadHandler(demo.init);

   </script>
   <canvas id="drawarea" width="150" height="150"></canvas>
  ]]>
 </Content>
</Module>


HTML5 in Gadgets on iGoogle

The top of the apparatus still has the accepted XML prolog because the apparatus blueprint is, as always, an XML document. The html, in this case html5, is central a CDATA block. The CDATA block agency the anatomy of the html5 agreeable is appealing abundant abandoned if parsing the XML. iGoogle doesn't do annihilation added for affinity with html5; appearance specific to html5 will still alone plan in browsers that abutment them. Gadgets accept the aforementioned cross-browser affinity apropos as any added web page. Accept a attending at the If can I use adviser for an abstraction of affinity of appearance beyond browsers.
The agreeable of this apparatus is appealing straightforward. It includes a canvas element. In the init adjustment it tries to get a cartoon context. If it's acknowledged (meaning the browsers supports html5 canvas) it will draw a rectangle about the extents of the aspect again draw 10 about placed dots inside. Use this apparatus as a starting point to get your own html5 apparatus running.
And yes, this apparatus has a canvas in your canvas so you can cede if you render.

Saturday, 1 June 2013

Live Gadget Previews

The iGoogle Apparatus Agenda just got better. Users can now collaborate with a apparatus in the agenda afore abacus it to their page. Accept a attending at a brace examples like the Google News or Google Hot Trends gadgets. 

Your accessories can accept reside previews too. Accessories that use Agreeable view="default" already accept a reside examination in the apparatus directory. Remember, view="default" can bout any appearance accurate by the container. Similarly, if the Agreeable aspect in a apparatus doesn't specify the appearance attribute, that's advised the aforementioned as if view="default" were present. Up until now, the alone angle that were accurate on iGoogle were home and canvas; remember, home is the abate adaptation and canvas is the beyond version. 

Some accessories are customized to affectation abnormally for the home and canvas views. If your accessories do this, you can amend the apparatus XML blueprint to add a different appearance for the examination or reclaim an absolute agreeable element.
For accessories with an aspect
In this case you can just add preview, so you'll accept view="home,canvas,preview". 

For accessories with
Here too, you can reclaim the home appearance for the examination by alteration your blueprint to view="home,preview". 

There are some added restrictions on the way the examination works. A examination can't use OpenSocial calls - back the user hasn't set the OpenSocial permissions afore installing the gadget. You may wish to abode this in your apparatus by authoritative a appropriate examination adaptation that uses some copy data, or you can opt out of the reside examination and stick with a changeless screenshot. 

Like all apparatus views, the examination is cached. This reduces amount and speeds up confined for users. But if you're alive on your apparatus and don't see a contempo change in the preview, you can attenuate caching briefly by abacus the constant "nocache=1" to the url. 

Gadgets displayed as a examination aswell can't cross to added angle application requestNavigateTo(). If your apparatus has a hotlink that triggers alteration the appearance it will not plan in the preview.
If you feel a examination isn't the appropriate best for your apparatus again specify the added angle (home & canvas) and be abiding that your screenshot does a acceptable job of carrying what your apparatus will do for users. 

As always, appear to the iGoogle Developer Forum to allocution about reside apparatus previews with added iGoogle developers.

More new features for the Gadget Dashboard

Did you apperceive we are continuously abacus new appearance to the iGoogle Apparatus Dashboard? Today I'd like to let you apperceive about a few of them.

First of all, we added two new abstracts sets to the abstracts page of your gadgets. Now you can see automatic graphs in the 'Installations and Removal' tab, which shows the amount of apparatus installations and apparatus removals, and in the 'Browser Errors'  tab, area you can see errors afresh appear by our end users' browsers.

As you may accept guessed, abacus this advice fabricated the apparatus abstracts page too long, so we alien a collapsed appearance for that page.
(The collapsed view, assuming the new 'Installations and Removals' data)More new features for the Gadget Dashboard http://mikes-exercise-blog.blogspot.com/

(“Browser Errors” table showing the top errors reported by our users’ browsers)

Additionally, the dashboard had been only available in English, but we added 7 other langueges a while ago, so it is now available in 8 languages: English, Spanish, Japanese, Korean, Portuguese, Russian, Simplified Chinese and Traditional Chinese. The localized iGoogle developer documentation will lead you to the localized dashboard. For example, after you select Japanese at http://code.google.com/apis/igoogle/, you will arrive at http://code.google.com/intl/ja/apis/igoogle/, which has a link for the Japanese version of the dashboard. Alternatively, you can explicitly add the URL parameter “?hl=ja” to the dashboard URL.

Lastly, in the next few days, we will start sending you weekly summary e-mails of your gadget usage. If you don’t want to receive these summary e-mails, you can opt-out from this service by just clicking a link at the bottom of the e-mail. The e-mails look like the following.

Gadget name: Weather
Author email: googlemodules@google.com
Pageviews: 1,000,000 (+5.00% compared to the week of May 30, 2011)
Unique users: ...
Installations: ...
Removals: ...
Browser errors: ...

Gadget name: Youtube Gadget
Author email: …
Pageviews: …
Unique users: ...
Installations: ...
Removals: ...
Browser errors: ...
…
…
...

As you can see, iGoogle is still evolving! Happy coding. :)

Posted by Takashi Matsuo, Developer Advocate

Wednesday, 29 May 2013

iGoogle An update on

As we appear on the Official Google Blog, on November 1, 2013, we will be backward iGoogle. To ensure a bland alteration for your users, you may wish to amend your accessories and absolute users to your website or action the adeptness to consign user data. You may aswell accede ablution your appliance on one of our added platforms.

As allotment of this sunset, we will no best acquire new affair submissions afterwards July 31, 2012. Similarly, we will stop accepting new accessories afterwards July 31, 2012 - but you will be able to amend and advance absolute gadgets, as before.

Feel chargeless to ability out to us at the iGoogle Developer Forum if you accept any questions or charge assistance, and acknowledge you for acknowledging iGoogle over the years.