[Google Wave APIs] Re: reading text from blip that caused blip.submitted event.

2009-11-19 Thread Chris C.
Oh, quick follow-up: on a more careful read of your code, that _might_ work? I guess? I generally get the blip using the event method; I've never used the parent/children methods for anything since they're not necessary for the way my robot works. On Nov 19, 8:40 pm, "Chris C."

[Google Wave APIs] Re: reading text from blip that caused blip.submitted event.

2009-11-19 Thread Chris C.
Actually, for this case (and I'm familiar with this; I've written a roll-bot myself), you use the getBlip() method associated with the event to get the blip that triggered the event: if (e.getType() == EventType.BLIP_SUBMITTED) { Blip submittedBlip = e.getBlip(); ... } and then c

[Google Wave APIs] Re: High CPU use and metaparadigm stuff in the logs

2009-11-19 Thread Chris C.
As a quick note, it does the same kind of high CPU usage on "WAVELET_SELF_ADDED" events - I removed and re-added it to a wave I'm working in, and it was 1,944 cpu_ms for that transaction. On Nov 19, 4:16 pm, "Chris C." wrote: > I would show you the code, but I don&#x

[Google Wave APIs] Re: High CPU use and metaparadigm stuff in the logs

2009-11-19 Thread Chris C.
at you are running loops, the potential exists > for you to get high CPU, especially if you are playing with > Annotations or a Range in that loop (as I believe those are the most > intensive operations currently available in the API). > > On Nov 19, 3:11 pm, "Chris C." w

[Google Wave APIs] High CPU use and metaparadigm stuff in the logs

2009-11-19 Thread Chris C.
I have a robot I'm experimenting with, and I am frequently - though not quite always - seeing in the logs report of very high CPU use during a request, along with the following log messages: com.metaparadigm.jsonrpc.BeanSerializer analyzeBean: analyzing com.google.wave.api.impl.WaveletData com.me

[Google Wave APIs] Re: problem with setStyle

2009-11-12 Thread Chris C.
Is styled text working now? If so, that will make my life so much easier. On Nov 12, 4:03 pm, Antonio Garcia wrote: > I didn't manage to aply de setStyle properly... but set Annotation seem to > work > > 2009/11/12 pamela (Google Employee) > > > > > Hi Vivek- > > > It is likely this bug: > >http

[Google Wave APIs] Re: problem with setStyle

2009-11-11 Thread Chris C.
StyledText stuff doesn't work in Java yet; there's an open issue on it in the tracker. On Nov 11, 6:43 am, Vivek wrote: > I recently started using wave API > > I wrote a code for editing the blip submitted by any participant. > >  if (e.getType() == EventType.BLIP_SUBMITTED ) >               { >

[Google Wave APIs] Re: Robot Event error in logs - java.lang.IllegalArgumentException in EventType

2009-11-05 Thread Chris C.
Oho. False alarm on #2 and #3 - I realized that I'm failing to close a PersistenceManager, which may account for the intermittent problem on that account. On Nov 5, 5:09 pm, "Chris C." wrote: > Ran into a few more "first-time" problems, that I thought I'd

[Google Wave APIs] Re: Robot Event error in logs - java.lang.IllegalArgumentException in EventType

2009-11-05 Thread Chris C.
Ran into a few more "first-time" problems, that I thought I'd throw onto the list here: 1. Failure to send outgoing operations. While the robot appears to be responding to BLIP_SUBMITTED just fine, the outgoing operations JSON is empty. This comes and goes, and I can't find a good reason for it.

[Google Wave APIs] Re: Internal Server Error (500) when trying to deploy?

2009-11-03 Thread Chris C.
Oop, musta been a temporary glitch. Working now. On Nov 3, 9:08 pm, "Chris C." wrote: > I'm trying to deploy an update to a robot and have run into a 500 > error when trying to do so. I've tried to deploy a couple others (that > I know work), so - is anyon

[Google Wave APIs] Internal Server Error (500) when trying to deploy?

2009-11-03 Thread Chris C.
I'm trying to deploy an update to a robot and have run into a 500 error when trying to do so. I've tried to deploy a couple others (that I know work), so - is anyone else running into the error? --~--~-~--~~~---~--~~ You received this message because you are subscri

[Google Wave APIs] Re: Wave developing

2009-10-29 Thread Chris C.
Well, you can write robots (automated participants in a wave) using either the Java or Python API's that Google created. There are tutorials for both languages, and API reference docs. I've written robots in both, to play around with them, and it's pretty straightforward. If you are creating a ga

[Google Wave APIs] Re: Fundamental question - what does "context"...um...do?

2009-10-26 Thread Chris C.
ed, the Wave server could trigger > your endpoint with this notification.  Associated with this notification, is > the "context" data that are sent along with it.  So that in your handler, > you can actually retrieve the plain text data of the blip. > > Austin > > &g

[Google Wave APIs] Fundamental question - what does "context"...um...do?

2009-10-26 Thread Chris C.
Okay, I've written a robot that parses new blips for particular strings (in this case, strings representing dice rolls), and inserts the result of a particular dice roll in the blip. It works fine, exactly as I expect and desire. I see in the tutorial that there is something called "CONTEXT" in t

[Google Wave APIs] Re: Robots and Annotations and Code, oh my!

2009-10-25 Thread Chris C.
Ah, however, that's a very useful example! One of these days, I'm going to get myself versed in python, and do something interesting with it. Thanks! On Oct 25, 10:22 am, "Chris C." wrote: > Note that there is a difference between styling via annotation, and > usi

[Google Wave APIs] Re: Robots and Annotations and Code, oh my!

2009-10-25 Thread Chris C.
Note that there is a difference between styling via annotation, and using StyledText, at least in terms of the methods used to do so (the result is not different, AFAIK). In Java, the former works as expected, but the latter has some errors in the API (for instance, insertStyledText() doesn't work

[Google Wave APIs] Re: Where are the robot icons?

2009-10-25 Thread Chris C.
If I recall correctly, the profile server is being worked on, so robot profiles have been disabled until that's finished. On Oct 25, 9:33 am, Teo wrote: > Icons for robots are gone.. Is this happening to anyone else? (The > link in the small details that show up when the mouse hovers is also > g

[Google Wave APIs] Annotation to generate a tooltip? And XHTML whitelist?

2009-10-23 Thread Chris C.
I am fairly sure this does not exist, but I thought I'd check: is there an annotation that can generate a mouseover tooltip? It's a pretty common/basic web feature, and I, at least, have a couple uses I could put it to. If there isn't one, I'd sure like one. On a related note, where can I find o

[Google Wave APIs] Re: Does StyledText / StyleType work in the Java API?

2009-10-22 Thread Chris C.
gt; > This is works for me: > blip.getDocument().appendStyledText( >         new StyledText("Some text in bold", >                 StyleType.BOLD)); > > On okt. 22, 11:24, Srinivas Pinisetti > wrote: > > > > > I am also having the same issue. > > > On Oct 22, 3:

[Google Wave APIs] Does StyledText / StyleType work in the Java API?

2009-10-21 Thread Chris C.
I've got a robot running, and I was considering using StyledText as a slightly more convenient means of boldfacing part of the output, since I only need boldface and I wouldn't have to mess with start and end points of an annotation. However, when using it, it seems to have no effect. Am I doing i

[Google Wave APIs] Re: Embed API

2009-10-16 Thread Chris C.
I got blank pages too (I extracted the embed stuff from "Embeddy," but it didn't work). Instead, I used the format specified in the Embed tutorial, which is a bit different. My script is: http://wave-api.appspot.com/public/embed.js"; type="text/ javascript"> function initialize() {

[Google Wave APIs] Re: Position calculcations, range handling and offsets

2009-10-15 Thread Chris C.
es take up no string space. Thus, your offset would be based solely on the length of the URL's being replaced, and doesn't have to account for the size of the image. Hope a) I got that right, and b) it helps! On Oct 15, 10:37 am, "Chris C." wrote: > I have no idea. Images may

[Google Wave APIs] Re: Position calculcations, range handling and offsets

2009-10-15 Thread Chris C.
ly want to work through the interfaces provided - and that Wave is changing under the hood all the time - but some more information on document structure, annotation capabilities, available markup, etc. would be a great resource. On Oct 15, 3:56 am, Chris Searle wrote: > On Oct 14, 4:46 pm, "Ch

[Google Wave APIs] Re: Position calculcations, range handling and offsets

2009-10-14 Thread Chris C.
I was going to suggest an offset variable, but as you say, it appears that the subsequent regex search is on the just-updated text. I'm not sure what the issue is (I have a dice rolling bot that uses regex and inserts results after the relevant dice expression, and I use an offset variable to adju

[Google Wave APIs] Re: DOCUMENT_ELEMENT_DELETE and DOCUMENT_ELEMENT_REPLACE not working?

2009-10-13 Thread Chris C.
Possibly related to this bug: http://code.google.com/p/google-wave-resources/issues/detail?id=278 Which revolves around Wave failing to get the capabilities.xml file, and thus leaving your bot with no capability to respond to events. My bots are currently down for the count due to it (although r

[Google Wave APIs] Re: BlipSubmitted not working?

2009-10-12 Thread Chris C.
Holy cow, is _that_ why no matter what I did yesterday, my Python robot didn't do anything? I decided to learn Python for some robot- writing funtimes, and no matter what I did, the sample bot did nothing. I am so relieved. Thanks for looking into it! On Oct 12, 3:00 am, "pamela (Google Employee)

[Google Wave APIs] Re: How to append text following an annotation?

2009-10-08 Thread Chris C.
end of the document. -Chris On Oct 8, 1:28 pm, "Chris C." wrote: > This isn't all that helpful, but I see the same thing; generally if > the annotated content is the last information in the blip (although > that may be only because I've never tried to insert new cont

[Google Wave APIs] Re: How to append text following an annotation?

2009-10-08 Thread Chris C.
This isn't all that helpful, but I see the same thing; generally if the annotated content is the last information in the blip (although that may be only because I've never tried to insert new content after an annotation mid-blip). I assume that there's a trick that I'm missing as well. -Chris On

[Google Wave APIs] Re: Google Wave preview: searches just disappear

2009-10-05 Thread Chris C.
I had the same issue (and the inability to manage folders) using Google Chrome (the release version) and Firefox 3.0.whatever. I found that when I upgraded to Firefox 3.5.3, I was able to create folders and searches as expected - and, afterwards, they can be _viewed_ using older browsers. So, bot