Re: [Google Wave APIs] Appending stuff in the wave

2010-02-16 Thread Chris
(Note: I didn't try to sound impatient...  Not sure how that happened.)

I haven't actually written any bots, although that's one of the things I
want to do, and neither have I read the API documentation.  So all I can
offer is generic pointers; that was a workaround.  If no one manages to
explain how to use append() correctly, you could file a bug report.

In ALL things, strive for ><>,
Chris


On Tue, Feb 16, 2010 at 11:26 PM, Vik  wrote:

> hmm but if you see the code i m doing blip().append then shouldn't it be
> doing the append rather replace?
>
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Wed, Feb 17, 2010 at 10:32 AM, Chris  wrote:
>
>> Can you get the current wave contents, add your stuff, then set the result
>> as the wave's contents?  I think that's pretty much what would happen under
>> the hood if the library did it for you.
>>
>> In ALL things, strive for ><>,
>> Chris
>>
>>
>> On Tue, Feb 16, 2010 at 10:57 PM, Vik  wrote:
>>
>>>  Hie
>>>
>>>
>>> I created a robot to add some stuff to an existing wave as soon as i add
>>> it as a contact.
>>> The code is:
>>>
>>> @Capability(contexts = {Context.SELF})
>>> @Override
>>> public void onWaveletSelfAdded(WaveletSelfAddedEvent e) {
>>>
>>> LOG.info("onWaveletSelfAdded");
>>> Blip blip = e.getBlip();
>>> Wavelet wavelet = e.getWavelet();
>>>
>>> // Test setting wavelet title.
>>> wavelet.setTitle("The CRM opportunity wave");
>>>
>>> // Test inserting image.
>>> blip.append(new Image("http://www.google.com/logos/clickortreat1.gif";,
>>> 320, 118,
>>> "Click or treat"));
>>>
>>> Blip inlineBlip = blip.insertInlineBlip(5);
>>> inlineBlip.append("Hello again!");
>>> }
>>>
>>>
>>> This works fine but the issue is it deletes/overrides the previous wave
>>> contents. What I want is to append the stuff instead. Any advise please
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.com
>>>  --
>>> 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.
>>
>
>  --
> 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.



Re: [Google Wave APIs] Appending stuff in the wave

2010-02-16 Thread Vik
hmm but if you see the code i m doing blip().append then shouldn't it be
doing the append rather replace?


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Wed, Feb 17, 2010 at 10:32 AM, Chris  wrote:

> Can you get the current wave contents, add your stuff, then set the result
> as the wave's contents?  I think that's pretty much what would happen under
> the hood if the library did it for you.
>
> In ALL things, strive for ><>,
> Chris
>
>
> On Tue, Feb 16, 2010 at 10:57 PM, Vik  wrote:
>
>>  Hie
>>
>>
>> I created a robot to add some stuff to an existing wave as soon as i add
>> it as a contact.
>> The code is:
>>
>> @Capability(contexts = {Context.SELF})
>> @Override
>> public void onWaveletSelfAdded(WaveletSelfAddedEvent e) {
>>
>> LOG.info("onWaveletSelfAdded");
>> Blip blip = e.getBlip();
>> Wavelet wavelet = e.getWavelet();
>>
>> // Test setting wavelet title.
>> wavelet.setTitle("The CRM opportunity wave");
>>
>> // Test inserting image.
>> blip.append(new Image("http://www.google.com/logos/clickortreat1.gif";,
>> 320, 118,
>> "Click or treat"));
>>
>> Blip inlineBlip = blip.insertInlineBlip(5);
>> inlineBlip.append("Hello again!");
>> }
>>
>>
>> This works fine but the issue is it deletes/overrides the previous wave
>> contents. What I want is to append the stuff instead. Any advise please
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>  --
>> 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.
>

-- 
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.



Re: [Google Wave APIs] Appending stuff in the wave

2010-02-16 Thread Chris
Can you get the current wave contents, add your stuff, then set the result
as the wave's contents?  I think that's pretty much what would happen under
the hood if the library did it for you.

In ALL things, strive for ><>,
Chris


On Tue, Feb 16, 2010 at 10:57 PM, Vik  wrote:

> Hie
>
>
> I created a robot to add some stuff to an existing wave as soon as i add it
> as a contact.
> The code is:
>
> @Capability(contexts = {Context.SELF})
> @Override
> public void onWaveletSelfAdded(WaveletSelfAddedEvent e) {
>
> LOG.info("onWaveletSelfAdded");
> Blip blip = e.getBlip();
> Wavelet wavelet = e.getWavelet();
>
> // Test setting wavelet title.
> wavelet.setTitle("The CRM opportunity wave");
>
> // Test inserting image.
> blip.append(new Image("http://www.google.com/logos/clickortreat1.gif";,
> 320, 118,
> "Click or treat"));
>
> Blip inlineBlip = blip.insertInlineBlip(5);
> inlineBlip.append("Hello again!");
> }
>
>
> This works fine but the issue is it deletes/overrides the previous wave
> contents. What I want is to append the stuff instead. Any advise please
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
> --
> 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] Appending stuff in the wave

2010-02-16 Thread Vik
Hie


I created a robot to add some stuff to an existing wave as soon as i add it
as a contact.
The code is:

@Capability(contexts = {Context.SELF})
@Override
public void onWaveletSelfAdded(WaveletSelfAddedEvent e) {

LOG.info("onWaveletSelfAdded");
Blip blip = e.getBlip();
Wavelet wavelet = e.getWavelet();

// Test setting wavelet title.
wavelet.setTitle("The CRM opportunity wave");

// Test inserting image.
blip.append(new Image("http://www.google.com/logos/clickortreat1.gif";, 320,
118,
"Click or treat"));

Blip inlineBlip = blip.insertInlineBlip(5);
inlineBlip.append("Hello again!");
}


This works fine but the issue is it deletes/overrides the previous wave
contents. What I want is to append the stuff instead. Any advise please

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com

-- 
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: An application to access Wave outside of a browser

2010-02-16 Thread antimatter15
Until the robot OAuth based Active API is built, I don't think there's
any way to access the content of a wave before the bot was added. You
could look into my Wave Reader which is based on parsing the
interactions of the wave client to the server (which is in no way
published or finalized, and may very well stop working at any time).
http://antimatter15.com/misc/read/?googlewave.com!w+oPg9HfEXE

On Feb 14, 11:31 pm, DLeh  wrote:
> Hey,
>
> I'm trying to write a program to integrate Wave with another open
> source program that runs as a client-side application.  Does anyone
> know how I can write a robot to essentially run on the client to
> access Waves? Is there a way to have the robot run from my personal
> computer, or a way that I can interface with the Robot as it is on the
> Google App Engine?

-- 
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.



Re: [Google Wave APIs] Navigate in a wave by code

2010-02-16 Thread Chris
Oops, that would be 50 pixels five times.  *blush*

In ALL things, strive for ><>,
Chris


On Tue, Feb 16, 2010 at 9:11 AM, Chris  wrote:

> You'll probably have to insert some JavaScript into the page and run it, as
> I doubt Google's API offers anything to do this directly.  See these pages:
> http://javascript.wikia.com/wiki/Window#scroll
> http://www.quirksmode.org/js/findpos.html
>
> So you use the script at the second link to find the element's position and
> the function at the first link to send the browser there.  If you want the
> wave to scroll smoothly, you can scrollBy a certain increment until you
> reach the element.  That increment could simply be a fraction of the
> distance to the element, or a constant speed.  For example, if the element
> is 280 pixels down the screen you could scrollBy 50 pixels every half a
> second, three times, and then 30 pixels (the modulus - 280 % 50).  The
> function to separate the calls to scrollBy would be window.setInterval:
> http://javascript.wikia.com/wiki/Window#setInterval
>
> In ALL things, strive for ><>,
> Chris
>
>
>
> On Mon, Feb 15, 2010 at 8:23 AM, vincent donzé wrote:
>
>> Hello everybody,
>>
>> I'm making a task manager robot for Google Wave but I encounter a
>> difficulty. I would like to navigate into the wave with java code. I
>> mean, I want to focus the view on a special blip. If the blip is at
>> the bottom of the page, I want the wave to scrol down until it reach
>> the blip. Is it possible ?
>>
>> Thank you
>>
>> --
>> 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.



Re: [Google Wave APIs] Navigate in a wave by code

2010-02-16 Thread Chris
You'll probably have to insert some JavaScript into the page and run it, as
I doubt Google's API offers anything to do this directly.  See these pages:
http://javascript.wikia.com/wiki/Window#scroll
http://www.quirksmode.org/js/findpos.html

So you use the script at the second link to find the element's position and
the function at the first link to send the browser there.  If you want the
wave to scroll smoothly, you can scrollBy a certain increment until you
reach the element.  That increment could simply be a fraction of the
distance to the element, or a constant speed.  For example, if the element
is 280 pixels down the screen you could scrollBy 50 pixels every half a
second, three times, and then 30 pixels (the modulus - 280 % 50).  The
function to separate the calls to scrollBy would be window.setInterval:
http://javascript.wikia.com/wiki/Window#setInterval

In ALL things, strive for ><>,
Chris


On Mon, Feb 15, 2010 at 8:23 AM, vincent donzé wrote:

> Hello everybody,
>
> I'm making a task manager robot for Google Wave but I encounter a
> difficulty. I would like to navigate into the wave with java code. I
> mean, I want to focus the view on a special blip. If the blip is at
> the bottom of the page, I want the wave to scrol down until it reach
> the blip. Is it possible ?
>
> Thank you
>
> --
> 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] Navigate in a wave by code

2010-02-16 Thread vincent donzé
Hello everybody,

I'm making a task manager robot for Google Wave but I encounter a
difficulty. I would like to navigate into the wave with java code. I
mean, I want to focus the view on a special blip. If the blip is at
the bottom of the page, I want the wave to scrol down until it reach
the blip. Is it possible ?

Thank you

-- 
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] An application to access Wave outside of a browser

2010-02-16 Thread DLeh
Hey,

I'm trying to write a program to integrate Wave with another open
source program that runs as a client-side application.  Does anyone
know how I can write a robot to essentially run on the client to
access Waves? Is there a way to have the robot run from my personal
computer, or a way that I can interface with the Robot as it is on the
Google App Engine?

-- 
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] Has anyone used MiniMessages to debug? Doesn't work for me

2010-02-16 Thread R Liu
Hello,

I've followed the tutorial here:
http://code.google.com/apis/wave/articles/gadgetdebugging.html
and tried to use MiniMessages in the gadget.

It doesn't work as the tutorial said so I copy the sample code from
wave gadget tutorial and add the MiniMessages in the sample code to
display mini messages... still not working. Maybe I am missing
something?

The new sample code with mini messages is here:
http://rliu2.googlecode.com/svn/trunk/sample_ToDo/bidder.xml

- I only add 4 lines of code to the original sample code -
1.

 ===>in the ModulePrefs section
2.
var msg = new gadgets.MiniMessage(__MODULE_ID__,
document.getElementById("debugDiv"));
===>in the script section
3.
 msg.createDismissibleMessage("waving!");
===>in  buttonClicked()
4.

===>in html section





-- 
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.



Re: [Google Wave APIs] Restriction to GAE

2010-02-16 Thread Vik
Hie

any pointer to any such solution?

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Tue, Feb 16, 2010 at 6:08 AM, pamela (Google Employee) <
pamela...@gmail.com> wrote:

> Hi Vik -
>
> We don't yet have a timeline for when that may happen. Some developers
> in the forum have employed workarounds using proxies or requests to
> their own server (while managing to keep within the 30 seconds App
> Engine request limit).
>
> - pamela
>
> On Mon, Feb 15, 2010 at 8:39 PM, Vik  wrote:
> > Hie
> >
> > I read in wave docs as:
> > Note: For this developer preview release, all Wave robots must be
> > implemented as Google App Engine applications. A future release will
> > introduce the ability to host robots with any web host, at any web
> address.
> >
> > Any idea like when this might happen?
> >
> > Thankx and Regards
> >
> > Vik
> > Founder
> > www.sakshum.com
> > www.sakshum.blogspot.com
> >
> > --
> > 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.
>
>

-- 
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.