Re: Keeping a field scroll at the bottom as lines come in

2004-01-25 Thread Geoff Canyon
I usually just pick an arbitrarily large number and set the scroll to 
that. 99 works for most purposes.

regards,

Geoff Canyon
[EMAIL PROTECTED]
On Jan 25, 2004, at 12:25 PM, Rob Beynon wrote:

I am using an interactive mode to send a line of text to the end of a
field ('after') which is visible. Then, as the field fills, it doesn't
scroll to show the last line, it just moves the thumb upwards.
I'd really like to see the last line entered, irrespective of the
length of the field. Can this be done?
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ReportsPro [was] Hypercard to Rev Question

2004-01-25 Thread Geoff Canyon
Sorry I didn't see this sooner. For the record, I read the list and I 
sometimes qualify as "someone at RunRev" ;-)

If he wants to email me, I'd be happy to offer any help I can.

regards,

Geoff Canyon
[EMAIL PROTECTED]
On Jan 21, 2004, at 1:19 PM, Frank Leahy wrote:

Does anyone from RunRev read this list?  If so, I'm good friends with 
the guy who bought the rights to Reports and ReportsPro and he would 
LOVE to talk to someone at RunRev about making it work with 
Revolution.  Please reply directly to me and I'll pass on your info to 
him.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Question about icons

2004-01-25 Thread Doug Lerner
Is there an easy way to use the icons in the Rev standard toolbar in my
stacks. Is that acceptable practice?

I notice, for example, that the id of the "line" icon is 200020. But it
doesn't show up in the icon library. Do I need to import it or something?

Thanks,

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


technical question about Rev's base64decode

2004-01-25 Thread Doug Lerner
When base64encode is used, Rev wraps at 72 character lines.

I notice if you remove these lines and base64decode you get back the same
original results. In other words, the linefeeds are ignored.

Looking at the RFC for base 64 encoding, they say that lines should not be
more than 76 characters but that "robust applications" may support longer
lines.

Does Rev, in general, support any sized strings for base 64 decoding?

Thanks,

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: image transfer not working again...

2004-01-25 Thread Doug Lerner
And now it is working again.

What I am doing is NOT sending "the imageData" and instead sending the raw
image instead. On the receiving side I am:

1. Setting what templateImage parameters I can, such as "location".

2. Setting the global paintCompression property.

3. Creating the image.

4. Finally using "put into" to change the raw contents.

That seems to work. For now. Is that what everybody else does when they need
to do something like this?

doug

On 1/26/04 12:58 PM, "Doug Lerner" <[EMAIL PROTECTED]> wrote:

> I got it to work at least once last night, and now I am getting scrambled
> images again.
> 
> A couple of questions, the answer to which might clear up my problem:
> 
> 1. I think my problem is that I am sending "the imageData of image myImage",
> which is the 4-byte-per-pixel visible format of the raw data. The raw data
> is actually just "image myImage". Is that correct? Should I be sending the
> raw data instead?
> 
> 2. Before creating the new image from the received data, I want to set the
> appropriate templateImage properties. But what is the property containing
> the raw image? It appears to be "the value" of the image, but that doesn't
> seem to be settable directly. I am left with using "put into" after the
> image is created?
> 
> Any advice would be great.
> 
> Thanks,
> 
> doug
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


image transfer not working again...

2004-01-25 Thread Doug Lerner
I got it to work at least once last night, and now I am getting scrambled
images again.

A couple of questions, the answer to which might clear up my problem:

1. I think my problem is that I am sending "the imageData of image myImage",
which is the 4-byte-per-pixel visible format of the raw data. The raw data
is actually just "image myImage". Is that correct? Should I be sending the
raw data instead?

2. Before creating the new image from the received data, I want to set the
appropriate templateImage properties. But what is the property containing
the raw image? It appears to be "the value" of the image, but that doesn't
seem to be settable directly. I am left with using "put into" after the
image is created?

Any advice would be great.

Thanks,

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Deep Deep Trouble, need help.

2004-01-25 Thread Andre Garzia
Hi Folks,

sundenlly all my substacks are shouting that they are password 
protected. I never password protected any stack, I didn't knew how to 
do it...  never typed "set the password of stack something to 
something" never... and yet, I am receiving errors of that kind... can 
someone help?

This way I just lost all my code to the next generation of revHTTPd 
project.

cheers

--
Andre Alves Garzia - Soap Dog Studios - BRAZIL
http://studios.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: What is Rev doing?

2004-01-25 Thread Jerry Daniels
Friends,

I believe revScriptEdit is a message that is sent by the Rev IDE so 
that the IDE can check to see if you have depressed certain modifier 
keys that will, in turn, bring up a script editor or a property 
inspector. This involves cpu usage.

Is this necessary? Yes and No. This would be TOTALLY unnecessary if the 
Mac could tell if one or more modifier keys are down via rawKeyDown, 
but it cannot and therefore the revScriptEdit message is sent for all 
platforms.

I could be wrong, but that's what my look into this issue tells me.

Jerry Daniels

On Jan 23, 2004, at 4:44 PM, Ken Ray wrote:

That would be my guess too. Do you get the same thing if you
suspend the
IDE?
It drops to about 5% when the IDE is suspended. The pendingMessgaes 
show
a "revScriptEdit" running constantly, though...

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: geometry-challenged

2004-01-25 Thread Brian Yennie
For the problem at hand, it should suffice to add a little if-logic to 
the beginning.

A line between two non-overlapping objects will always intersect 
exactly one of the sides of each object- you just have to pick the 
right one and _then_ use the intersection function.

With that said, an intersection function should probably error 
gracefully for parallel lines (i.e. non-intersecting).

- Brian

   I tried the function on two *non*-intersecting lines, and it gave 
me a "divide by zero" error. Not good. You need to find the 
mathematical intersection of the infinite lines defined by the two 
pairs of endpoints, and *then* decide whether or not that intersection 
point is within *both* of the line *segments* defined by said points.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Cloning oddity

2004-01-25 Thread Thomas McGrath III
Richard,

You are a tuff cookie :-) But Of course you are right. It was not 
corrupted.

However the solution to fix the stack was not successful although the 
problem was solved and understood. I did have to finally go to the 
backup file. But I did not have to repeat the problem and the solution 
was acceptable.

Thanks for the correction about the non-corrupt part of my problem.

Tom

On Jan 24, 2004, at 4:58 PM, Richard Gaskin wrote:

After years of experiencing corruption in tools like HyperCard and 
FileMaker
I can understand the tendency to apply that label to any unexpected
behavior.

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: geometry-challenged

2004-01-25 Thread Cubist
sez [EMAIL PROTECTED]:
> I'm not sure if this helps, but the function "intersection" below 
> will return the intersection of any two lines.
   I tried the function on two *non*-intersecting lines, and it gave me a "divide by 
zero" error. Not good. You need to find the mathematical intersection of the infinite 
lines defined by the two pairs of endpoints, and *then* decide whether or not that 
intersection point is within *both* of the line *segments* defined by said points.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A bit stuck on creating a new image

2004-01-25 Thread Doug Lerner
On 1/26/04 1:42 AM, "Frank Leahy" <[EMAIL PROTECTED]> wrote:

> You might consider changing your server protocol to not use CRLF as the
> delimiter (I'm assuming you wrote the server portion too?).  In HTTP
> for example, the web server either sends the image size in the http
> header, or if that's missing, it assumes the image is complete when the
> connection closes.
> 
> You might consider having two data types, text and binary, and when you
> send text it's CRLF delimited, and when it's binary, you send along the
> size.

The latter suggestion sounds like a more reasonable way to go.

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Keeping a field scroll at the bottom as lines come in

2004-01-25 Thread Dan Friedman
Rob,

Let me also welcome you to Revolution!  When I add text to list fields, I
usually want to hilite the new line of text.  So, here's what I do:


on addALineOfText someText, fieldName
   put the number of lines in field fieldName into nLine
   put someText into line nLine+1 of field fieldName
   set the hilitedLines of field fieldName to nLine+1
end addALineOfText


Setting the hilitedLines of a list field will automatically scroll the field
to that line.

Hope that helps...

-Dan



> Greetings, My first post, and a naive one, I suspect..
> 
> I am using an interactive mode to send a line of text to the end of a
> field ('after') which is visible. Then, as the field fills, it doesn't
> scroll to show the last line, it just moves the thumb upwards.
> 
> I'd really like to see the last line entered, irrespective of the
> length of the field. Can this be done?
> 
> Thanks
> 
> 
> -- 
> All best wishes,
> Rob

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Keeping a field scroll at the bottom as lines come in

2004-01-25 Thread Dave Cragg
At 8:25 pm + 25/1/04, Rob Beynon wrote:
Greetings, My first post, and a naive one, I suspect..

I am using an interactive mode to send a line of text to the end of a
field ('after') which is visible. Then, as the field fills, it doesn't
scroll to show the last line, it just moves the thumb upwards.
I'd really like to see the last line entered, irrespective of the
length of the field. Can this be done?
put  after field "myField"
set the scroll of field "myField" to the formattedHeight of field "myField"
It's not a very elegant solution, but as the formattedHeight will be 
always larger than the maximum scroll value,  it'll do the job.

Dave
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Keeping a field scroll at the bottom as lines come in

2004-01-25 Thread Jan Schenkel
--- Rob Beynon <[EMAIL PROTECTED]> wrote:
> Greetings, My first post, and a naive one, I
> suspect..
> 
> I am using an interactive mode to send a line of
> text to the end of a
> field ('after') which is visible. Then, as the field
> fills, it doesn't
> scroll to show the last line, it just moves the
> thumb upwards.
> 
> I'd really like to see the last line entered,
> irrespective of the
> length of the field. Can this be done?
> 
> Thanks
> 
> 
> -- 
> All best wishes,
> Rob
> 

Hi Rob,

Welcome to the Revolution :-)

Your question is not naive, and the solution is not
too hard either ; here's what I usually use to make a
field scroll to the bottom while appending :
--
  put return & "Yet another line" after field "Foobar"
  set the scroll of field "Foobar" to \
  the formattedHeight of field "Foobar"
--

Hope this helped,

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Keeping a field scroll at the bottom as lines come in

2004-01-25 Thread Rob Beynon
Greetings, My first post, and a naive one, I suspect..

I am using an interactive mode to send a line of text to the end of a
field ('after') which is visible. Then, as the field fills, it doesn't
scroll to show the last line, it just moves the thumb upwards.

I'd really like to see the last line entered, irrespective of the
length of the field. Can this be done?

Thanks


-- 
All best wishes,
Rob



==
Prof. Rob Beynon|+44 151 794 4312 (voice)
Dept. Veterinary Preclinical|+44 151 794 4243 (fax)
Sciences, University of Liverpool,
PO Box 147, Liverpool L69 7ZJ   |mailto:[EMAIL PROTECTED]
==

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: filetype question

2004-01-25 Thread Richard Gaskin
Yves COPPE wrote:

> 
> Le 25 janv. 2004, à 20:27, Yves COPPE a écrit :
> 
>> 
>> Le 25 janv. 2004, à 19:39, Klaus Major a écrit :
>> 
>>> 
>>> Movies:
>>> 
>>> TVODMooV
>>> 
>>> Mpgs have none most of the time ;-)
>>> 
>>> But saving a Mpg file again in QT Pro results in:
>>> 
>>> TVODMooV
>>> 
>>> :-)
>>> 
>>> Hope that helps...
>>> 
 
>> 
>> 
> 
> 
> Oops Klaus... I cannot open such a file with quickTime player...
> 
> 
> HELP HELP HELP HELP HELP HELP
> 
> Thank you

This is a deficiency in the design of OS X as regards backward compatibility
with Finder metadata.  For background on the topic:








-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: variable naming convention variation

2004-01-25 Thread Richard Gaskin
erik hansen wrote:

> put (the uMyCustomVariable of this stack) \
> into vMyCustomVariable
> 
> is something i have been trying.
> the "v" looks something like a "u".

That's why I use "t" for local ("temporary") variables, to better
distinguish them.

> i also learned that you can set your own
> custom constant by reading www.revjournal.com!

revJournal is a great resource.  Sarah's written some very useful articles
there, as has Dan Shafer, and even engine-meister Tuviah himself is
scheduled to add some.

If you haven't checked out revJournal it's well worth doing so.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: filetype question

2004-01-25 Thread Yves COPPE
Le 25 janv. 2004, à 20:27, Yves COPPE a écrit :

Le 25 janv. 2004, à 19:39, Klaus Major a écrit :

Movies:

TVODMooV

Mpgs have none most of the time ;-)

But saving a Mpg file again in QT Pro results in:

TVODMooV

:-)

Hope that helps...






Oops Klaus... I cannot open such a file with quickTime player...

HELP HELP HELP HELP HELP HELP

Thank you

Greetings.
Yves COPPE
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: newbie requires help

2004-01-25 Thread Rob Cozens
Douglas,

<< 
  if daysOld < 0 then
put abs(daysOld) into daysOld
subtract 1 from monthsOld
  end if

This worked for the dates I tried; however I see now it is not always 
correct: someone born on January 31, 2004 would show an age of 29 
days on February 2, 2004 instead of 2 days.

Let me see what it takes to deal with this...
--
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: geometry-challenged

2004-01-25 Thread Jim Hurley
Message: 10
Date: Sat, 24 Jan 2004 13:26:05 -0800
From: Richard Gaskin <[EMAIL PROTECTED]>
Subject: geometry-challenged
To: Rev Discussion List <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="US-ASCII"
It seems I'm geometry-challenged today -- I know this should be simple, but
I'm stumped:
I can draw a line object from the loc of one object to the loc of another.
But if I want to draw only in the space _between_ objects rather than
intersect them, how do I get the points for the location where a line object
would meet the edge of the other objects if drawn all the way to their
centers, as indicated by the "X"s below:
-
   | |
   | button1 |
   | \   |
--X--
   \
\
   --X--
  |   \ |
  | button2 |
  | |
   -
Hint:  the diagram above with drawn with a tool I'm working on to make ASCII
diagrams for email.  If we solve this I'll finish it next week and put it in
RevNet.
--
 Richard Gaskin
 Fourth World Media Corporation
Richard,

I'm not sure if this helps, but the function "intersection" below 
will return the intersection of any two lines. The first line is 
defined by its end points p1 and p2; the second line is defined by 
its two endpoints pp1, and pp1 (not the best notation.)

It is part of my Turtle Geometry tools. (Shameless plug: 
Indispensable tools for doing heavy graphics. From what I understand 
from Ro at the Developers' conference, Turtle Graphics may be 
incorporated in future editions of RR. This intersection function is 
not a traditional component of TG--so it may be included and it may 
not. In any event, it stands on its own.)

function intersection p1,p2,pp1,pp2
  put item 1 of p1 into x1
  put item 2 of p1 into y1
  put item 1 of p2 into x2
  put item 2 of p2 into y2
  put item 1 of pp1 into xp1
  put item 2 of pp1 into yp1
  put item 1 of pp2 into xp2
  put item 2 of pp2 into yp2
  if x1 = x2 or xp1 = xp2 then
if x1 = x2 then
  return x1&comma&yp2 + (x1-xp2)*(yp2-yp1)/(xp2-xp1)
else
  return xp2&comma& y2 + (xp1-x2)*(y2-y1)/(x2-x1)
end if
  end if
  put yp2 - y2 + x2*(y2-y1)/(x2 - x1) - xp2*(yp2 - yp1)/(xp2 - xp1) 
into numerator
  put ((y2 - y1)/(x2 - x1) -(yp2 - yp1)/(xp2-xp1)) into denom
  put numerator / denom into x
  put y2 + (x-x2) *(y2-y1)/(x2-x1) into y
  return x & comma & y
end intersection

Jim
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A bit stuck on creating a new image

2004-01-25 Thread Frank Leahy
You might consider changing your server protocol to not use CRLF as the 
delimiter (I'm assuming you wrote the server portion too?).  In HTTP 
for example, the web server either sends the image size in the http 
header, or if that's missing, it assumes the image is complete when the 
connection closes.

You might consider having two data types, text and binary, and when you 
send text it's CRLF delimited, and when it's binary, you send along the 
size.

-- Frank

On Sunday, January 25, 2004, at 04:24  PM, 
[EMAIL PROTECTED] wrote:

It seems risky because you can run into crlf's in the data, which I am
trying to avoid.
doug
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: newbie requires help

2004-01-25 Thread Rob Cozens
I downloaded the age calculator on from the web. It comes p 
continually with the same "bug" i dont know how to fix.
Hi Douglas,

I'm too lazy to track through the logic to find the bug; but here's a 
handler that works for me:

on showAge
  ask "Enter Date of Birth in system date format..."
  if it is empty then exit showAge
  put it into firstDate
  /*  I would validate the date using Serendipity Library's validDate function
rather than use the line above
  if validDate(it) then put it into firstDate
  else
beep
answer "The birth date you entered is not a valid date!"
exit showAge
  end if
  */
  ask "Enter Date of Assessment in system date format" with the short 
system date
  if it is empty then exit showAge
  put it into secondDate
  /*  I would validate the date using Serendipity Library's validDate function
	rather than use the line above

  if validDate(it) then put it into secondDate
  else
beep
answer "The assessment date you entered is not a valid date!"
exit showAge
  end if
  */
  convert firstDate to dateItems
  convert secondDate to dateItems
  if secondDate < firstDate then
beep
answer "The subject was born after the assessment date!"
exit showAge
  end if
  put (item 1 of secondDate)-(item 1 of firstDate) into yearsOld
  put (item 2 of secondDate)-(item 2 of firstDate) into monthsOld
  put (item 3 of secondDate)-(item 3 of firstDate) into daysOld
  if daysOld < 0 then
put abs(daysOld) into daysOld
subtract 1 from monthsOld
  end if
  if monthsOld < 0 then
add 12 to monthsOld
subtract 1 from yearsOld
  end if
  if yearsOld = 1 then put empty into lastYearCharacter else put "s" 
into lastYearCharacter
  if monthsOld = 1 then put empty into lastMonthCharacter else put 
"s" into lastMonthCharacter
  if daysOld = 1 then put empty into lastDayCharacter else put "s" 
into lastDayCharacter
  answer "Subject 
is"&&yearsOld&&"year"&lastYearCharacter&","&&monthsOld&&"month"&lastMonthCharacter&", 
and" \
  &daysOld&&"day"&lastDayCharacter&&"old."
end showAge
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A bit stuck on creating a new image

2004-01-25 Thread Doug Lerner
On 1/26/04 12:59 AM, "jbv" <[EMAIL PROTECTED]> wrote:

> 
> 
> Doug,
> 
>> Well, I basically want to avoid sending LF characters along the way, which
>> would disrupt my communications system, which depends on LFs to terminate
>> the sending of a batch of data.
>> 
>> Except for the line wrap characters that Rev adds every 72 chars, base64
>> data is guaranteed not to contain linefeed charactgers.
>> 
> 
> I'm glad to hear that you finally solved your problem.
> 
> But still, I'm wondering why you bother with LFs...
> Why don't you just use a simple & regular POST cmd, with the
> imagedata, img width & height as simple parameters ?

It has to do with the server I am posting to. It interprets linefeeds as
being the end of the current command.

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A bit stuck on creating a new image

2004-01-25 Thread jbv


Doug,

> Well, I basically want to avoid sending LF characters along the way, which
> would disrupt my communications system, which depends on LFs to terminate
> the sending of a batch of data.
>
> Except for the line wrap characters that Rev adds every 72 chars, base64
> data is guaranteed not to contain linefeed charactgers.
>

I'm glad to hear that you finally solved your problem.

But still, I'm wondering why you bother with LFs...
Why don't you just use a simple & regular POST cmd, with the
imagedata, img width & height as simple parameters ?

JB

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A bit stuck on creating a new image

2004-01-25 Thread Doug Lerner
On 1/26/04 12:16 AM, "Klaus Major" <[EMAIL PROTECTED]> wrote:

> Hi Doug,
> 
>> Whew! It took forever to figure out, but I finally stumbled across the
>> right
>> combination of image compression, base64 encoding and required
>> properties
>> that need to be communicated over the socket and it seems to be
>> working.
>> 
>> I was surprised that I was able to get this to work, though, with just
>> the
>> paintCompression and imageData properties, and that that value of the
>> image
>> itself was not required. That seems a bit counter-intuitive.
> 
> Have you tried to "compress" (see the index) the imagedata before
> sending?
> Instead of base64 encoding...
> 
> Might reduce filesize/transfertime...
> 
> Just a thought :-)

It seems risky because you can run into crlf's in the data, which I am
trying to avoid.

doug


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Cloning oddity

2004-01-25 Thread David Squance
>--- David Squance <[EMAIL PROTECTED]> wrote:
>> I'm not saying there's corruption.  I'm just looking
>> for any suggestion as
>> to how it might be diagnosed.  The debugger is no
>> help, as the script just
>> stops running.  The card is cloned--a second copy is
>> in place, but the next
>> line of the script is not executed.  That line just
>> increases a variable by
>> 1, which would show in the variable watcher, if it
>> happened.
>> Dave
>>
>
>Hi Dave,
>
>Sorry to come so lae to the discussion but this
>reminds me of a problem I had last year : I cloned a
>stack, and the rest of the script didn't get executed.
>
>I narrowed it down to one of the messages in the
>preOpenStack/openStack/preOpenCard/openCard chain
>coming to a grinding halt when passed all the way to
>the engine.
>
>However, adding a 'lock messages' didn't solve the
>problem in the IDE, but it worked perfectly fine in
>the standalone ; so in the end, I decided to just
>suspend the IDE whenever I needed to run the script.
>
>Maybe I should spend some time putting together a good
>trouble stack.
>
>Jan Schenkel.

Thanks for the reply.  I thought suspending the IDE would
avoid the problem, too, since the standalone works fine.
However, it was even worse, as I had to force quit Rev.
Dave


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A bit stuck on creating a new image

2004-01-25 Thread Klaus Major
Hi Doug,

Whew! It took forever to figure out, but I finally stumbled across the 
right
combination of image compression, base64 encoding and required 
properties
that need to be communicated over the socket and it seems to be 
working.

I was surprised that I was able to get this to work, though, with just 
the
paintCompression and imageData properties, and that that value of the 
image
itself was not required. That seems a bit counter-intuitive.
Have you tried to "compress" (see the index) the imagedata before 
sending?
Instead of base64 encoding...

Might reduce filesize/transfertime...

Just a thought :-)

doug
Regards

Klaus Major
[EMAIL PROTECTED]
www.major-k.de
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: shutDownRequest being called twice

2004-01-25 Thread Thierry Arbellot
Good question. I never asked myself about it before, I just used local 
variable to share and retain value within handlers in the same script 
and it does work.

I found this in the documentation :

The value of a script local variable is retained between handlers, but 
is lost when you quit the application, when you close the stack (unless 
its destroyStack property is false), or when the script is re-compiled.

So, if you are in one of those cases, you can use a script local 
variable.

Thierry.

Le Sunday, 25 Jan 2004, à 04:39 Europe/Paris, Doug Lerner a écrit :

Wouldn't you have to make the processingShutDown flag a global to 
retain its
value for something like this?

doug

On 1/25/04 1:40 AM, "Thierry Arbellot" <[EMAIL PROTECTED]> 
wrote:

try this

local processingShutDown = false

on shutDownRequest
 if processingShutDown = false then
   answer "Are you sure you want to quit?" with "No" or "Yes"
   if it is "Yes" then
 put true into processingShutDown
 pass shutDownRequest
   end if
 end if
end shutDownRequest
Hope it helps

Thierry

Le Saturday, 24 Jan 2004, à 15:25 Europe/Paris, Doug Lerner a écrit :

I am seeing my "are you sure you want to shut down" twice (the
shutDownRequest handler) prompt twice now.
I think the reason for this is that I added an

insert script for stack "mainstack" into back

so I could make use of the mainstack handlers in all the stacks.

But the shutDownRequest handler looks like this:

on shutDownRequest
  answer "Are you sure you want to quit?" with "No" or "Yes"
  if it is "Yes" then
pass shutDownRequest
  end if
end shutDownRequest
I need to "pass shutDownRequest". I think the "pass shutDownRequest" 
is
passing it "up" the path and it is re-encountering itself in the
backScripts.

Any ideas of how to avoid this problem?

Thanks,

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A bit stuck on creating a new image

2004-01-25 Thread Doug Lerner
Whew! It took forever to figure out, but I finally stumbled across the right
combination of image compression, base64 encoding and required properties
that need to be communicated over the socket and it seems to be working.

I was surprised that I was able to get this to work, though, with just the
paintCompression and imageData properties, and that that value of the image
itself was not required. That seems a bit counter-intuitive.

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A bit stuck on creating a new image

2004-01-25 Thread Doug Lerner
I think maybe the problem is that I ought to be sending the actual content
of the image and it's paitCompression property instead. I'll try that.

doug

On 1/25/04 8:19 PM, "Doug Lerner" <[EMAIL PROTECTED]> wrote:

> I am sending the imageData, height, width and name of an imported paint
> image over a socket.
> 
> Before sending the data I am using base64encode, and before recreating the
> image on the other side I am using the base64decode of the data to set the
> imageData property and also setting the height and width and name properties
> of the templateImage before creating the image.
> 
> But the image comes out all scrambled in the top-left corner of the
> receiving stack in the wrong size.
> 
> I tried both preserving the lfs in the base64 data and also stripping the
> linefeeds, but the result is the same in both cases.
> 
> I've triple-checked the char count of the number of chars of the imageData
> and the number of chars of the base64 data on both sides, before and after
> encoding and decoding and everything matches.
> 
> Are there some other properties I need to be preserving besides the
> imageData, width and height of the image object in order to get it right?
> 
> Thanks,
> 
> doug
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A bit stuck on creating a new image

2004-01-25 Thread Doug Lerner
Well, I basically want to avoid sending LF characters along the way, which
would disrupt my communications system, which depends on LFs to terminate
the sending of a batch of data.

Except for the line wrap characters that Rev adds every 72 chars, base64
data is guaranteed not to contain linefeed charactgers.

doug

On 1/25/04 9:38 PM, "jbv" <[EMAIL PROTECTED]> wrote:

> 
> 
> Doug,
> 
> the 1st question that comes to my mind is : why do you feel the need to use
> base64encode before sending before sending the data over a socket ?
> 
> I remember doing something similar last year (a client standalone was sending
> imagedata to a CGI script for realtime update of web pages) and I don't
> remember encoding the imagedata before sending it...
> 
> Am I missing something ?
> 
> Thanks,
> JB
> 
> 
>> I am sending the imageData, height, width and name of an imported paint
>> image over a socket.
>> 
>> Before sending the data I am using base64encode, and before recreating the
>> image on the other side I am using the base64decode of the data to set the
>> imageData property and also setting the height and width and name properties
>> of the templateImage before creating the image.
>> 
>> But the image comes out all scrambled in the top-left corner of the
>> receiving stack in the wrong size.
> 
>> 
>> I tried both preserving the lfs in the base64 data and also stripping the
>> linefeeds, but the result is the same in both cases.
>> 
>> I've triple-checked the char count of the number of chars of the imageData
>> and the number of chars of the base64 data on both sides, before and after
>> encoding and decoding and everything matches.
>> 
>> Are there some other properties I need to be preserving besides the
>> imageData, width and height of the image object in order to get it right?
>> 
>> Thanks,
>> 
>> doug
>> 
>> ___
>> use-revolution mailing list
>> [EMAIL PROTECTED]
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A bit stuck on creating a new image

2004-01-25 Thread jbv


Doug,

the 1st question that comes to my mind is : why do you feel the need to use
base64encode before sending before sending the data over a socket ?

I remember doing something similar last year (a client standalone was sending
imagedata to a CGI script for realtime update of web pages) and I don't
remember encoding the imagedata before sending it...

Am I missing something ?

Thanks,
JB


> I am sending the imageData, height, width and name of an imported paint
> image over a socket.
>
> Before sending the data I am using base64encode, and before recreating the
> image on the other side I am using the base64decode of the data to set the
> imageData property and also setting the height and width and name properties
> of the templateImage before creating the image.
>
> But the image comes out all scrambled in the top-left corner of the
> receiving stack in the wrong size.
>
> I tried both preserving the lfs in the base64 data and also stripping the
> linefeeds, but the result is the same in both cases.
>
> I've triple-checked the char count of the number of chars of the imageData
> and the number of chars of the base64 data on both sides, before and after
> encoding and decoding and everything matches.
>
> Are there some other properties I need to be preserving besides the
> imageData, width and height of the image object in order to get it right?
>
> Thanks,
>
> doug
>
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


A bit stuck on creating a new image

2004-01-25 Thread Doug Lerner
I am sending the imageData, height, width and name of an imported paint
image over a socket.

Before sending the data I am using base64encode, and before recreating the
image on the other side I am using the base64decode of the data to set the
imageData property and also setting the height and width and name properties
of the templateImage before creating the image.

But the image comes out all scrambled in the top-left corner of the
receiving stack in the wrong size.

I tried both preserving the lfs in the base64 data and also stripping the
linefeeds, but the result is the same in both cases.

I've triple-checked the char count of the number of chars of the imageData
and the number of chars of the base64 data on both sides, before and after
encoding and decoding and everything matches.

Are there some other properties I need to be preserving besides the
imageData, width and height of the image object in order to get it right?

Thanks,

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A cross-platform answer file? [sorry, a mis-send]

2004-01-25 Thread erik hansen
[sorry, a mis-send]

--- erik hansen <[EMAIL PROTECTED]> wrote:
> --- Richard Gaskin <[EMAIL PROTECTED]>
> wrote:
> 
>

> 
> 
> Char   Meaning Example
> 
>   gGlobal variable 
>  
>  
>   tLocal ("temporary") variable
>  
>  tMyVar
>   sScript-local var
>  
>  sMyVar
>   pParameter   
>  
>  pMyParam
>   kConstant
>  
>  kMyNumber
>   uUser-defined (or custom) properties 
>  
>  uMyProp
> 
> 
> 
> =
> [EMAIL PROTECTED]   
> http://www.erikhansen.org
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building
> tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
>
http://lists.runrev.com/mailman/listinfo/use-revolution


=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Question about imageData and base64encode/decode

2004-01-25 Thread Doug Lerner
If you take the imageData of an image and base64encode it, the data is
broken up into 72 character lines.

Does this mean that the decoded data must be broken into 72 character lines
or it won't decode right?

I am doing some sending experiments, but the image that arrives is all
corrupted.

(I want to strip the LFs before sending the data over a socket).

Thanks,

dougo

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Cloning oddity

2004-01-25 Thread Jan Schenkel
--- David Squance <[EMAIL PROTECTED]> wrote:
> I'm not saying there's corruption.  I'm just looking
> for any suggestion as
> to how it might be diagnosed.  The debugger is no
> help, as the script just
> stops running.  The card is cloned--a second copy is
> in place, but the next
> line of the script is not executed.  That line just
> increases a variable by
> 1, which would show in the variable watcher, if it
> happened.
> Dave
> 

Hi Dave,

Sorry to come so lae to the discussion but this
reminds me of a problem I had last year : I cloned a
stack, and the rest of the script didn't get executed.

I narrowed it down to one of the messages in the
preOpenStack/openStack/preOpenCard/openCard chain
coming to a grinding halt when passed all the way to
the engine.

However, adding a 'lock messages' didn't solve the
problem in the IDE, but it worked perfectly fine in
the standalone ; so in the end, I decided to just
suspend the IDE whenever I needed to run the script.

Maybe I should spend some time putting together a good
trouble stack.

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RAM used with RunRev, Video, MIDI

2004-01-25 Thread erik hansen

it seems that for development, the mac G4 ibook
has the most compatability with video & MIDI.

in Revolution, i would like to have little
movielets where i now have 32 x 32 pixel icons
of dancers ambling around the screen in a 
scripted fashion.

16 controls with various "iconic"
video loops would require some RAM.

add even very simple MIDI patches and it
adds up. i have no idea how much RAM it takes
to operate efficiently. can i get 30 minutes
of video in there?

anyone have experience running RunRev AND
video footage in RAM?

thanks,

Erik



=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution