Re: [Google Wave APIs] Re: Java robot setField() does not work

2010-01-17 Thread Solomon Wu
Moreover, thanks to Douglas Linder, he has modified the Java robot client to
add a method updateGadgetState() that allow robot to update gadget state.

http://code.google.com/p/google-wave-resources/issues/detail?can=2&q=406&colspec=Stars%20ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Internal&id=406#c22

On Sun, Jan 17, 2010 at 4:18 PM, Sol Wu  wrote:

> Regarding using robot to change gadget state, here is some more info
> on this that people may find useful:
>
> 1. Python robot is able to change gadget state.  GadgetSubmitDelta()
> works when we tried it.
> 2. during office hour, Google mentions that Java robot does not have
> this problem on the new Java client.  :)
>
> On Dec 10 2009, 5:57 pm, dougx  wrote:
> > I suggest using XSS to communicate directly with your server and don't
> > use the robot-gadget api.
> >
> > Here's an example of how to get the XSS working;
> http://austinchau.blogspot.com/2008/11/html5-cross-document-messaging...
> >
> > Once you have that up and running collect robot triggered changes
> > server-side and poll the server using xss; then push the state changes
> > into the state from that gadget instance.
> >
> > Nb. Make sure you only pick one instance of the gadget to do the state
> > changes, or you'll get spammed to death on your server when lots of
> > people open the wave.
> >
> > (not a very nice solution, I know, but it works).
> >
> > ~
> > Doug.
> >
> > On Dec 10, 6:09 pm, Solomon Wu  wrote:
> >
> >
> >
> > > We are also hitting issue #406. When usingsetFieldto set gadget state,
> > > gadget does not receive the state change. Since we are trying to use it
> for
> > > robot-gadget interaction, the robot has to change gadget state in
> response
> > > to gadget state change. Is there a workaround? Thank you very much.
> http://code.google.com/p/google-wave-resources/issues/detail?id=406&q...
> > > Nov 17, 1:56 am, "pamela (Google Employee)" 
> wrote: > It does work, and many robots do so, but there
> >
> > > are some bugs filed about > cases where it does not work. For example:
> http://code.google.com/p/google-wave-resources/issues/list?can=2&q=se... >
> <http://code.google.com/p/google-wave-resources/issues/list?can=2&q=se...>
> >> > > On Mon, Nov 16, 2009 at 8:02 AM, Jacco  wrote: >
> >
> >
> > > I think currently communicating from robot to gadget is not possible? >
> > >
> > > The gadget.setFielddoes not change the state of the gadget in my > >
> tests.> > > Regards, Jacco > > > On 12 nov, 16:48, just marvin <
> > > marvin.greenb...@gmail.com> wrote: > > > It occurs to me that since
> you'll
> >
> > > need a bot and a gadget, you could > > > just have the bot add the
> gadget(s)
> > > to the wave.  Then you just need > > > to add one thing to the wave and
> > > you'll know you have the correct > > > environment for the gadgets. > >
> > --> > > You received this message because you are subscribed to the Google
> >
> > > Groups > > "Google Wave API" group. > > To post to this group, send
> email to
> > > google-wave-...@googlegroups.com. > > To unsubscribe from this group,
> send
> > > email to > > 
> > > google-wave-api+unsubscr...@googlegroups.com
> 
> > >  > > . > > For more
> > > options, visit this group at > >
> http://groups.google.com/group/google-wave-api?hl=.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Wave API" group.
> To post to this group, send email to google-wave-...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-wave-api+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-wave-api?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Wave API" group.

To post to this group, send email to google-wave-...@googlegroups.com.

To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.



[Google Wave APIs] robot get gadget state concurrency

2009-12-28 Thread Solomon Wu
Hello, happy New Year!

I wish I come with gifts, but I come with questions.  :)

If two gadget instances made change to the gadget state, robot should get
two BLIP_SUBMITTED events.

Let's say gadget instance1 change state "testkey" to "1" then gadget
instance 2 change state "testkey" to "2".

Supposedly robot will get 2 BLIP_SUBMITTED events, one for each gadget state
change.  Within first event callback, robot calls
gadget.getField("testkey"), does it always get "1".
Is there any case that gadget.getField() will return "2" within the first
event?
What if within the first event callback, robot delayed a while before
calling gadget.getField(), and gadget has already calls submitDelta() to
change state already.  Does it get the state before gadget state change or
after gadget state change?

Thank you very much.

--

You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.




[Google Wave APIs] Java robot setField() does not work

2009-12-10 Thread Solomon Wu
We are also hitting issue #406. When using setField to set gadget state,
gadget does not receive the state change. Since we are trying to use it for
robot-gadget interaction, the robot has to change gadget state in response
to gadget state change. Is there a workaround? Thank you very much.
http://code.google.com/p/google-wave-resources/issues/detail?id=406&q=setfield&colspec=Stars%20ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20InternalOn
Nov 17, 1:56 am, "pamela (Google Employee)" <
pamela...@gmail.com> wrote: > It does work, and many robots do so, but there
are some bugs filed about > cases where it does not work. For example:
http://code.google.com/p/google-wave-resources/issues/list?can=2&q=se... > <
http://code.google.com/p/google-wave-resources/issues/list?can=2&q=se...> >
> > > On Mon, Nov 16, 2009 at 8:02 AM, Jacco  wrote: > >
I think currently communicating from robot to gadget is not possible? > > >
The gadget.setField does not change the state of the gadget in my > > tests.
> > > Regards, Jacco > > > On 12 nov, 16:48, just marvin <
marvin.greenb...@gmail.com> wrote: > > > It occurs to me that since you'll
need a bot and a gadget, you could > > > just have the bot add the gadget(s)
to the wave.  Then you just need > > > to add one thing to the wave and
you'll know you have the correct > > > environment for the gadgets. > > > --
> > > You received this message because you are subscribed to the Google
Groups > > "Google Wave API" group. > > To post to this group, send email to
google-wave-...@googlegroups.com. > > To unsubscribe from this group, send
email to > > 
google-wave-api+unsubscr...@googlegroups.com
 > > . > > For more
options, visit this group at > >
http://groups.google.com/group/google-wave-api?hl=.

--

You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.




[Google Wave APIs] Re: Robot state persists

2009-10-18 Thread Solomon Wu
Adding to atc's info.For java appengine, one can use JDO or JPA to access
appengine datastore.  For JDO, first, create a JDO object by specifies the
annotation.  Then one can just call makePersistent() to persist the data.
See http://code.google.com/appengine/docs/java/datastore/
Hope it helps.

On Sun, Oct 18, 2009 at 10:32 AM, atc  wrote:

>
>
>
> On Oct 18, 5:57 pm, Smola  wrote:
> > I need a way for information my robot gathers to persist.  So, let's
> > say I want to find a blip and save its ID so I can work with it in the
> > future.  I don't know how to do that currently.  I know how to find
> > the ID of a blip, but I do I save it for later use?  Or, if I create
> > an object in response to an event, how do I save all of the properties
> > of that object as they are affected by more and more incoming blips?
>
> What language are you using?
>
> > Is the object automatically saved on the server when my robot is added
> > to a wave and then stays there the rest of the time?  It would seem
> > that if waves are to exist forever in my archive that that would take
> > up quite a bit of space down the road.
> >
>
> The persistence probably comes from using the datastore provided by
> Google App Engine.
>
> Provide a bit more information first and perhaps people can help.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-api@googlegroups.com
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en
-~--~~~~--~~--~--~---



[Google Wave APIs] Re: Various questions: 1. Can testers with Dev. Sandbox account see Users with Regular account?

2009-10-15 Thread Solomon Wu
I am trying to answer this with the very little knowledge I have, I could be
wrong.1. sandbox wave and preview wave servers are not federated yet.  So
sandbox users cannot talk to preview users.  I think I saw that somewhere in
the forum.

2. I was not able to see that until I change the picture setting to "Visible
to everyone"

On Thu, Oct 15, 2009 at 5:32 AM, John Black wrote:

>
> 1. Can testers with Dev. Sandbox account see Users with Regular Wave
> account?
>
> 2. I have a two Dev. Sandbox accounts for testing but I can never see
> the pictures of the other account. Known issue?
>
> 3. I have a regular Gmail account. Can I use it, instead of my new
> Wave Sandbox account for my ID? Is there a good reason not too?
>
> Thanks,
> John
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-api@googlegroups.com
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en
-~--~~~~--~~--~--~---



[Google Wave APIs] Re: Mapping Wave Developers (With a Gadget)

2009-10-15 Thread Solomon Wu
Cool!Is that particular wave a read-only wave?  If so, does that mean that
there will be a way in the future to lock the content of the blip while
still allowing gadget to save state?


On Thu, Oct 15, 2009 at 7:51 AM, pamela (Google Employee) <
pamela...@gmail.com> wrote:

> Hey developers-
> I put together a quick map gadget to see if we could easily visualize where
> all of you are from. The gadget uses an open-source clustering library
> called MarkerClusterer, so the hope is that it can respond well if many
> people use it. But, the only way to tell is to get many people to use it..
> So, go add yourself:
>
>
> https://wave.google.com/a/wavesandbox.com/#minimized:nav,minimized:contact,minimized:search,restored:wave:wavesandbox.com!w%252BCmz5eV0gA
>
> Code is here (will post on samples gallery in a bit):
> http://imagine-it.org/google/wave/mapcluster.xml
>
> - pamela
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-api@googlegroups.com
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en
-~--~~~~--~~--~--~---



[Google Wave APIs] Re: Flash Javascript communication

2009-10-13 Thread Solomon Wu
if you are getting sandbox violation, you may wish to check if you called
flash.allowDomain("domain") properly.

i didn't use gadgets.flash.embedFlash(), but i did not find problem in
flash-javascript communication by embedding flash using regular 
tag.

i can send you a sample.

On Tue, Oct 13, 2009 at 7:34 PM, guojian  wrote:

>
> Is there a flag i need to pass to gadgets.flash.embedFlash() to enable
> flash<->javascript communication or is this not allow for wave
> gadgets?
>
> I'm getting a sandbox violation trying to call javascript from flash.
>
> thanks in advance.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-api@googlegroups.com
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en
-~--~~~~--~~--~--~---



[Google Wave APIs] Re: How to call third party sever data in my wave gadget

2009-10-08 Thread Solomon Wu
i think razorcam's iframe way should work.
in addition to the approach he suggested, there are 2 more potential
approaches:
1. gadget's makeRequest() function.  i believe makeRequest is designed for
gadget to communicate with server.
http://wiki.opensocial.org/index.php?title=Introduction_to_makeRequest

2. embed flash object in your gadget, have a flash object sending http
request to your server.

let me know if it works out for you.

On Thu, Oct 8, 2009 at 11:32 AM, razorcam  wrote:

>
> My guess is that any javascript that comes directly from your server
> (using "src" or an IFRAME) will have access to your server (and only
> to your server).
>
> Another way : by opening a very small IFRAME with a form sent to an an
> URL located on your server,  you should be able to store informations
> in your server without any further javascript.
>
> Please let us know the solution that you will choose.
>
> Blanchard
> razorcam.com
>
> On Oct 8, 11:12 am, Rajasekhar  wrote:
> > HI All
> >
> > I am new to this wave concept .I created a sample gadget and there i
> > need to save some values to my own server.is there any way to do this?
> > can any one help me on this issue
> >
> > Thanks
> > Rajasekhar
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-api@googlegroups.com
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en
-~--~~~~--~~--~--~---



[Google Wave APIs] Unknown thumbnailUrl is incorrect and the workaround

2009-10-03 Thread Solomon Wu
Hi, I saw this issue on Thursday.  I am wondering if others see it.  Here is
a workaround if you encounter the same issue.  Issue 234 (
http://code.google.com/p/google-wave-resources/issues/detail?id=234) is
filed for it, but it is not a big deal as there is a dead-simple workaround.
Issue:
When a participant did not upload his thumbnail picture, gadget API
Participant.getThumbnailUrl() returns "
https://wave.google.com/static/images/unknown.gif";.  However, if I point my
browser to https://wave.google.com/static/images/unknown.gif.  I will get
"not found" error.

Workaround:
Whenever  Participant.getThumbnailUrl() returns "
https://wave.google.com/static/images/unknown.gif";  , use the sandbox image
instead "https://wave.google.com/a/wavesandbox.com/static/images/unknown.gif
"  .

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-api@googlegroups.com
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en
-~--~~~~--~~--~--~---