Re: How to get the difference between two lists?

2005-04-04 Thread Richard Gaskin
Dick Kriesel wrote:
On 4/3/05 7:49 PM, "Richard Gaskin" <[EMAIL PROTECTED]> wrote:
With 10,000 lines in my main list and 5,000 lines in my exclude list, it
takes only 25 milliseconds to use this on my single-processor PBG4 1MHz:
function ShortList pList, pExcludelist
  repeat for each line tLine in pList
if tLine is not among the lines of pExcludeList then
  put tLine & cr after tNulist
end if
  end repeat
  delete last char of tNuList
  return tNuList
end ShortList

Wow, that's fast.  So I decided to compare it to an implementation of Dar's
second suggestion, which I've been using for a long time. The test I tried
yields times very different from Richard's.  Even though my machine is a
dual 2 GHz G5, function "Shortlist" took almost a hundred times longer than
Richard reported.  I wonder why the times are so different.
But the other function ran almost 70 times faster than function "Shortlist."
Indeed it did. My earlier test was bunk -- can I use jet lag as my 
excuse today?  :)

Here's the latest test below -- the array version is indeed orders of 
magnitude faster.

But one note from Ken raises a question -- Ken wrote:
Unfortunately this is something that will be executed in a
loop several thousand times, so even at 25ms * 2000 that
ends up being 50 seconds, which is way too long.
You've probably already consider this, but is there a way you can reduce 
the number of iterations?


on mouseUp
  repeat with i = 1 to 1
put i&cr after tList
  end repeat
  put xList(tList) into tExcludeList
  --
  put the millisecs into t
  get ShortList1(tList, tExcludeList)
  put the millisecs - t into t1
  --
  put the millisecs into t
  get ShortList2(tList,tExcludeList)
  put the millisecs - t into t2
  --
  put t1 && t2
end mouseUp
function ShortList1 pList, pExcludelist
  repeat for each line tLine in pList
if tLine is not among the lines of pExcludeList then
  put tLine & cr after tNulist
end if
  end repeat
  delete last char of tNuList
  return tNuList
end ShortList1
function ShortList2 pList, pExcludelist
  split pList with return and tab
  repeat for each line tLine in pExcludelist
delete variable pList[tLine]
  end repeat
  return the keys of pList
end ShortList2
function xList pList
  repeat for each line tLine in pList
if tLine mod 2 = 0 then
  put tLine & cr after tNulist
end if
  end repeat
  delete last char of tNuList
  return tNuList
end xList
--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Editing standalone

2005-04-04 Thread Cornelia Brunner
I am an education researcher building little applications for non-commercial
uses (not a programmer) and I have I have just done a really stupid thing
and replaced my folder with the original .rev file in it with a folder
containing the standalone (Mac). Now I need to edit the application but I no
longer have the .rev file. Is there a way to re-open the standalone inside
Revolution? I would greatly appreciate any help, any work-around that lets
me get back inside the application without having to start all over. And I
HAVE learned my lesson!

-- 
Cornelia Brunner, Ph.D.
Associate Director
EDC/Center for Children and Technology
96 Morton Street
New York, NY 10014
Tel: 212 807 4228
Fax: 212 633 8804
[EMAIL PROTECTED]
http://www2.edc.org/CCT/


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Edit standalone

2005-04-04 Thread Cornelia Brunner
I am an educational researcher, not a programmer, making little educational
applets and I make a lot of mistakes, but I just did a really stupid thing:
 I replaced a folder containing a standalone and the original .rev file with
a new standalone folder. Now I need to edit the applet and I no longer have
the .rev file. Is there any way to open a standalone in Revolution? What can
I do to get back inside it other than starting all over?
Help! Anyone? Thanks

-- 
Cornelia Brunner, Ph.D.
Associate Director
EDC/Center for Children and Technology
96 Morton Street
New York, NY 10014
Tel: 212 807 4228
Fax: 212 633 8804
[EMAIL PROTECTED]
http://www2.edc.org/CCT/



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Python and Rev

2005-04-04 Thread Alex Tweedly
Judy Perry wrote:
Neither I nor my Python-loving spouse has ever been able to get PythonCard
working.
Is it possible?
It's certainly possible; there were some problems in earlier versions 
but 0.8 and 0.8.1 should be fine.

If you want to give it another try, let me know off-list what the 
problems are (or, probably better, join the Pythoncard mail list at 
http://lists.sourceforge.net/lists/listinfo/pythoncard-users  and if you 
have any problems, tell that list about them  there's a chance it'll 
still be me that answers, but there are a number of more knowledgeable 
and helpful people on there)

--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.6 - Release Date: 30/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rename Duplicate

2005-04-04 Thread Alex Tweedly
Dwayne Rothe wrote:
Hi All,
Trying to find the easiest way to rename a (new)string if it already exists
in a list!
If a user tries to add an existing name to a list I want it to be named the
same but adding a digit to the end.
e.g Example exists so name new entery to Example(2), Example(2) exists so
name new to Example(3) e.t.c
any ideas woold be appreciated thanx.
 

Here's a simple function (and test script - you need a field "inField" 
to get the input)

local lList = "ss, tt, ss(1), ss(2),"   -- start with some values 
already there
on mouseUp
 put field "inField" into t
 put generateString(t, lList) & comma after lList
 put "now have " && lList & cr after msg
end mouseUp

function generateString p, pList
 if p is among the items of pList then
   put 1 into i
   repeat while p & "(" & i & ")" is among the items of pList
 add 1 to i
   end repeat
   return p & "(" & i & ")"
 else
   return p
 end if
end generateString
--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.6 - Release Date: 30/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Ken Ray
On 4/4/05 1:39 AM, "Monte Goulding" <[EMAIL PROTECTED]> wrote:

>> Ken (and all the other ingenious people), you have something against the
>> "intersect" command?
>> 
>> Convert both lists to arrays and intersect them leaving only the
>> non-common elements.
> 
> My understanding is the intersect command creates an array with only common
> keys. If there was an inverse of the command it would be perfect as you say.

I added this as an enhancement request to Bugzilla (Bug #2763 if anyone
wants to vote on it).

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: RevOnline's fingerprinting

2005-04-04 Thread Thomas McGrath III
Where is this custompropertyset ?? I looked in the revOnline stack and 
my shared stack and could not find it??

Thanks
tom
On Apr 3, 2005, at 5:31 PM, Alex Tweedly wrote:
Thanks Andre - it's a customproperty called "fingerprint" in the 
custompropertyset "cREVOnline"
Setting it to empty works !!

Thomas J McGrath III
[EMAIL PROTECTED]
412-831-3094
220 Drake Road
Bethel Park, PA 15102
<*)) >=<
"Life should NOT be a journey to the grave with the intention of 
arriving safely in an attractive and well preserved body, but rather to 
skid in sideways - a Cigar in one hand - a large steak in the other - 
your body thoroughly used up, totally worn out, and screaming - WOO 
HOO! What a Ride!"
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


QT player question

2005-04-04 Thread Chris Carroll-Davis
Hello all -
I expect this is an easy question, but I can't seem to see how to do 
it!How do I see if a player is playing?

The playrate property always returns 1 (I want to play movies at normal 
speed) I had thought it might return "0" if the movie was not playing.  
The movie() function only seems to work with video clips, not player 
objects.  So I can't say "if the movie is done..."

I need the equivalent of a "playing()" function that would return true 
or false.

A (virtual) Mars bar to the first person with the answer!!!
Chris
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Thomas McGrath III
Richard had shared that some time ago and it worked great, the thing is 
for some reason (SuperCard, I guess) I have a hard time putting my mind 
around repeat for each line tLine and then if tLine - I have used it  
but it doesn't always come to mind in trying to figure something out.

Love it though.
tom
On Apr 3, 2005, at 11:49 PM, Richard Gaskin wrote:
function ShortList pList, pExcludelist
  repeat for each line tLine in pList
if tLine is not among the lines of pExcludeList then
  put tLine & cr after tNulist
end if
  end repeat
  delete last char of tNuList
  return tNuList
end ShortList
Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: RevOnline's fingerprinting

2005-04-04 Thread Andre Garzia
On Apr 4, 2005, at 10:15 AM, Thomas McGrath III wrote:
Where is this custompropertyset ?? I looked in the revOnline stack and 
my shared stack and could not find it??

Thanks
Thomas,
This custom property probably do not appear on the default inspector 
for its name begins with REV, try using an alternative prop editor like 
those in altToolbar or Devolution.

PS: or inspect it using the messagebox..
cheer
andre
--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Edit standalone

2005-04-04 Thread Thomas McGrath III
On the Mac you can select the .app build and left click select "show 
package contents" and go through contents/ Mac OS/ etc. till you see 
the .rev stack and open that.

Tom
On Apr 2, 2005, at 9:53 AM, Cornelia Brunner wrote:
I am an educational researcher, not a programmer, making little 
educational
applets and I make a lot of mistakes, but I just did a really stupid 
thing:
 I replaced a folder containing a standalone and the original .rev 
file with
a new standalone folder. Now I need to edit the applet and I no longer 
have
the .rev file. Is there any way to open a standalone in Revolution? 
What can
I do to get back inside it other than starting all over?
Help! Anyone? Thanks

--
Cornelia Brunner, Ph.D.
Associate Director
EDC/Center for Children and Technology
96 Morton Street
New York, NY 10014
Tel: 212 807 4228
Fax: 212 633 8804
[EMAIL PROTECTED]
http://www2.edc.org/CCT/

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: RevOnline's fingerprinting

2005-04-04 Thread Thomas McGrath III
Thanks
Tom
On Apr 4, 2005, at 9:58 AM, Andre Garzia wrote:
On Apr 4, 2005, at 10:15 AM, Thomas McGrath III wrote:
Where is this custompropertyset ?? I looked in the revOnline stack 
and my shared stack and could not find it??

Thanks
Thomas,
This custom property probably do not appear on the default inspector 
for its name begins with REV, try using an alternative prop editor 
like those in altToolbar or Devolution.

PS: or inspect it using the messagebox..
cheer
andre
--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Edit standalone

2005-04-04 Thread Thomas McGrath III
I just tried this again and the rev file in the bundle is now showing 
up as a pc file and changing it to a .rev does not work. I wonder 
if it was just the os9 ones that worked I don't know how to get it 
open...

Tom
On Apr 4, 2005, at 10:03 AM, Thomas McGrath III wrote:
On the Mac you can select the .app build and left click select "show 
package contents" and go through contents/ Mac OS/ etc. till you see 
the .rev stack and open that.

Tom
On Apr 2, 2005, at 9:53 AM, Cornelia Brunner wrote:
I am an educational researcher, not a programmer, making little 
educational
applets and I make a lot of mistakes, but I just did a really stupid 
thing:
 I replaced a folder containing a standalone and the original .rev 
file with
a new standalone folder. Now I need to edit the applet and I no 
longer have
the .rev file. Is there any way to open a standalone in Revolution? 
What can
I do to get back inside it other than starting all over?
Help! Anyone? Thanks

SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Edit standalone

2005-04-04 Thread Chris Carroll-Davis
FWI, I just tried here too and it didn't work for me either.
Chris
On 4 Apr 2005, at 15:17, Thomas McGrath III wrote:
I just tried this again and the rev file in the bundle is now showing 
up as a pc file and changing it to a .rev does not work. I wonder 
if it was just the os9 ones that worked I don't know how to get it 
open...

Tom
On Apr 4, 2005, at 10:03 AM, Thomas McGrath III wrote:
On the Mac you can select the .app build and left click select "show 
package contents" and go through contents/ Mac OS/ etc. till you see 
the .rev stack and open that.

Tom
On Apr 2, 2005, at 9:53 AM, Cornelia Brunner wrote:
I am an educational researcher, not a programmer, making little 
educational
applets and I make a lot of mistakes, but I just did a really stupid 
thing:
 I replaced a folder containing a standalone and the original .rev 
file with
a new standalone folder. Now I need to edit the applet and I no 
longer have
the .rev file. Is there any way to open a standalone in Revolution? 
What can
I do to get back inside it other than starting all over?
Help! Anyone? Thanks

SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: shell() not waiting - not hiding

2005-04-04 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Some Windows programs (and even some UNIX apps anymore) detach 
themselves from the tty from which they were launched; this would most 
likely result in Rev returning early, even while the app is still 
running.

On Apr 3, 2005, at 3:13 PM, Dar Scott wrote:
On Apr 3, 2005, at 10:00 AM, MisterX wrote:
You can start a shell with the "start" (see start /? or /help) DOS 
command
to make the shell return directly to runrev right away but you will 
not get
an answer back - you need to pipe it to a file instead which is not 
that
hard to watch and catch later...
If the application is writing to the console instead of to stdout, 
then this might not work.  Maybe there is a way to ask the console 
window for data.  Or maybe there is a switch to control output.

Piping might be a good way to check the output hypothesis.
Dar
--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUU4F7aqtWrR9cZoRArA3AJ4itVZfXIhkLo/+7tmitwmiWxVMTACdEXwd
7neqR9NuwNM+73k7INlTKUE=
=A2CV
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT player question

2005-04-04 Thread Klaus Major
Hi Chris,
Hello all -
I expect this is an easy question, but I can't seem to see how to do 
it!How do I see if a player is playing?
Watch very hard :-)
The playrate property always returns 1 (I want to play movies at 
normal speed)
The playrate determines the plaback speed of your movie and 0 means 
that a playing
movie is currently paused ;-)

I had thought it might return "0" if the movie was not playing.
The movie() function only seems to work with video clips, not player 
objects.  So I can't say "if the movie is done..."

I need the equivalent of a "playing()" function that would return true 
or false.
Since there is no direct way to dtermine what you want, use a little 
trick:

function movie_is_playing
  put the currenttime of player xyz into ct
  wait 10 millisecs
  return (the currenttime fo player xyz < ct)
 ##will be true if the movie is inded playing, else will be false
end movie_is_playing
Here i just check 2 different "times" and see if they are identical or 
not...

Hope that helps...
A (virtual) Mars bar to the first person with the answer!!!
Chris
Best
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Jim Hurley
Message: 6
Date: Sun, 03 Apr 2005 22:04:54 -0500
From: Ken Ray <[EMAIL PROTECTED]>
Subject: How to get the difference between two lists?
To: Use Revolution List 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;   charset="US-ASCII"
I've got two lists - one with is the "comprehensive" list that is
return-delimited, like:
(snip)

Ken,
I wrote a short stack (non-pancake) a short time ago to deal with the 
multitude of e-mail list among the various volunteer groups in my 
community, extract duplicates, find common lines, etc.

It will generate the both the intersection and the union of any two 
lists. Don't know if this is any help but you can see with

  go url "http://home.infostations.net/jhurley/CompareLists.rev";
Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT player question

2005-04-04 Thread Klaus Major
Hi Chris,
TYPO alarm, sorry!!!
...
function movie_is_playing
  put the currenttime of player xyz into ct
  wait 10 millisecs
  return (the currenttime fo player xyz > ct)
### GREATER THAN!
Best
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT player question

2005-04-04 Thread Chris Carroll-Davis
Thanks Klaus!
your solution works fine, but you were beaten off-list.
 >> use:  the paused of player x
doh!  as simple as that
I *hate* missing simple stuff!
Thanks again,
Chris
On 4 Apr 2005, at 15:25, Klaus Major wrote:
Hi Chris,
Hello all -
I expect this is an easy question, but I can't seem to see how to do 
it!How do I see if a player is playing?
Watch very hard :-)
The playrate property always returns 1 (I want to play movies at 
normal speed)
The playrate determines the plaback speed of your movie and 0 means 
that a playing
movie is currently paused ;-)

I had thought it might return "0" if the movie was not playing.
The movie() function only seems to work with video clips, not player 
objects.  So I can't say "if the movie is done..."

I need the equivalent of a "playing()" function that would return 
true or false.
Since there is no direct way to dtermine what you want, use a little 
trick:

function movie_is_playing
  put the currenttime of player xyz into ct
  wait 10 millisecs
  return (the currenttime fo player xyz < ct)
 ##will be true if the movie is inded playing, else will be false
end movie_is_playing
Here i just check 2 different "times" and see if they are identical or 
not...

Hope that helps...
A (virtual) Mars bar to the first person with the answer!!!
Chris
Best
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT player question

2005-04-04 Thread Klaus Major
Hi Chris,
and since we are also able to play movies backwards, this one will also 
cover that one :-)

function movie_is_playing
  put the currenttime of player xyz into ct
  wait 10 millisecs
  return (the currenttime fo player xyz <> ct)
end movie_is_playing
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT player question

2005-04-04 Thread Klaus Major
Hi Chris,
Thanks Klaus!
your solution works fine, but you were beaten off-list.
 >> use:  the paused of player x
DAMN! ;-)
doh!  as simple as that
I *hate* missing simple stuff!
Thanks again,
Chris
Best
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Edit standalone

2005-04-04 Thread Devin Asay
Cornelia,
I don't know of any way of opening the stack once compiled. You may at 
least be able to recover the text in fields and custom properties and 
perhaps even some of the scripts by opening the application bundle 
(appName>Contents>MacOS>StackName) in a text editor like BBedit, or 
even in a web browser or in MS Word.

Devin Asay
On Apr 2, 2005, at 7:53 AM, Cornelia Brunner wrote:
I am an educational researcher, not a programmer, making little 
educational
applets and I make a lot of mistakes, but I just did a really stupid 
thing:
 I replaced a folder containing a standalone and the original .rev 
file with
a new standalone folder. Now I need to edit the applet and I no longer 
have
the .rev file. Is there any way to open a standalone in Revolution? 
What can
I do to get back inside it other than starting all over?
Help! Anyone? Thanks

--
Cornelia Brunner, Ph.D.
Associate Director
EDC/Center for Children and Technology
96 Morton Street
New York, NY 10014
Tel: 212 807 4228
Fax: 212 633 8804
[EMAIL PROTECTED]
http://www2.edc.org/CCT/

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Revolution UI Elements in Lists (was RevOnline's fingerprinting)

2005-04-04 Thread Éric Chatonet
Hi Andre,
Le 4 avr. 05, à 16:38, Andre Garzia a écrit :
This custom property probably do not appear on the default inspector
for its name begins with REV, try using an alternative prop editor like
those in altToolbar or Devolution.
Or just turn on Revolution UI Elements in Lists option in the View menu 
:-)

Best regards,
Eric Chatonet.

So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] #012 How-To stack: Asking password

2005-04-04 Thread Éric Chatonet
Hi everyone,
How-To stack #012: Asking password
Shows how to ask a password in a customary field.
Usually, the job is done using 2 fields, one of which is hidden.
Here a custom property stored in the field is used as a substitute for 
the usual 2nd hidden field.
This way makes it easy to copy/paste the scripted field into any stack 
where it will work immediatly :-)

On RevOnLine:
User name: So Smart Software
Category: Programming
On RevNet:
Tutorials section
To donwload RevNet, go to http://www.fourthworld.com/rev/index.html
Directly by pasting into the message box:
go url "http://www.sosmartsoftware.com/downloads/Asking%20Password.rev";
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Python and Rev

2005-04-04 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rev allows AppleScript via the "do ... as AppleScript" command.  
Perhaps this could be extended to support things like

do ... as Python
do ... as Ruby
do ... as AmericanEnglish   ;-)
or whatever?
On Apr 4, 2005, at 1:00 AM, Thomas McCarthy wrote:
I just remembered that HyperCard allowed scripting in AppleScript in 
its stacks and objects. Wouldn't it be nice if Rev also did that with 
Python?

To further muddy the waters...
While looking into other tools, I discovered Ruby, a language designed 
by a Japanese no less. And I found a IDE called WideStudio for 
building Ruby things--it also supports C++, Java and Perl as well as 
Python and Ruby. Anybody familiar with Ruby or WideStudio?

(again, I will definitely continue to use Rev for my daily 
programming. just looking for additional tools)

tom mccarthy
___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUVmL7aqtWrR9cZoRAiqDAJ9m1H/LmpT11PN5fFoEfa+WNsbAFgCfXKob
5qYI2KJlGMCl1Lj3isnS05M=
=Q8yC
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] Thumbnails Picker 1.1 released

2005-04-04 Thread Éric Chatonet
Hi everyone,
Thumbnails Picker 1.1 is available from http://www.sosmartsoftware.com/
This version includes now 4 output compression types : JPEG Auto, JPEG 
Manual, PNG and GIF (With Thumbnails Picker 1.0, only JPEG Manual was 
available.)

By drag and drop, Thumbnails Picker lets you create JPEG, PNG or GIF 
optimized thumbnails from any JPEG, PNG, GIF or BMP file.
Creation per unit, or fully automated batch processing.
JPEG quality and dimensions choice (from 20 up to 360 pixels large).
Bilingual software (English/French).
Identical appearance on all platforms.

Best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Ken Ray
On 4/4/05 9:27 AM, "Jim Hurley" <[EMAIL PROTECTED]> wrote:

> I wrote a short stack (non-pancake) a short time ago to deal with the
> multitude of e-mail list among the various volunteer groups in my
> community, extract duplicates, find common lines, etc.
> 
> It will generate the both the intersection and the union of any two
> lists. Don't know if this is any help but you can see with
> 
>go url "http://home.infostations.net/jhurley/CompareLists.rev";

Very cool, Jim, thanks!


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Okay, so anyone want to report on this one (untested, but should be 
rather efficient):

This algorithm assumes that every item in the exclusion list is 
included in the master list, that there are no duplicate items in 
either list, and that both lists are in ascending numeric order:

put empty into targetList
put (excludeList & cr & 10) into eCopy  -- use some 
absurdly huge
-- number, guaranteed to not be in either list, and to be 
larger than the largest possible
-- number in either list
put 1 into z
repeat for each line x in masterList
  if x < (line z of eCopy) then put (x & cr) after targetList
  else add 1 to z
end repeat
delete the last char of targetList

On Apr 4, 2005, at 10:27 AM, Jim Hurley wrote:
Message: 6
Date: Sun, 03 Apr 2005 22:04:54 -0500
From: Ken Ray <[EMAIL PROTECTED]>
Subject: How to get the difference between two lists?
To: Use Revolution List 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;   charset="US-ASCII"
I've got two lists - one with is the "comprehensive" list that is
return-delimited, like:
(snip)

Ken,
I wrote a short stack (non-pancake) a short time ago to deal with the 
multitude of e-mail list among the various volunteer groups in my 
community, extract duplicates, find common lines, etc.

It will generate the both the intersection and the union of any two 
lists. Don't know if this is any help but you can see with

  go url "http://home.infostations.net/jhurley/CompareLists.rev";
Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUVvQ7aqtWrR9cZoRAh7pAJ0ajDgAWnoR/007yYs3bio03xk8lQCfQhzo
FxOsMhZvTLt2NQF9ixuKDfk=
=1IIo
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: My Revolution Game Released

2005-04-04 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Looks good!  A vast improvement over the earlier alpha version.  I'll 
try to play with it a bit more later on if I get time.

On Apr 2, 2005, at 8:09 PM, Rick Wood wrote:
I posted an early alpha version late last year on the
revolution list. Now Im proud to announce that the
game has been completed and released on my website.
Along with it is the source code (stack file) so
people can look into the code if they wish! You will
need to download either the windows or Mac OSX game
(~30MB) and source code and place the .rev file in the
installed game directory, otherwise you might get some
errors and no graphics will show.
http://www.taggedsoftware.com
I must admit some sections of code are more of a dirty
hack than a clean code. I haven't optimized the code
either, but I am working on releasing a new version at
the end of the year with many improvements and
optimizations. So feel free to email me (or post on
the list) about sections of my code that you feel
could be tweaked.
Jeremy
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Personals - Better first dates. More second dates.
http://personals.yahoo.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUVzp7aqtWrR9cZoRAi0oAJsEz43cT9T67Gopd5bKTXQ8e/uwIwCgg6ty
A2MLywbXopQgBFQ0MeasM9o=
=eHuP
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Python and Rev

2005-04-04 Thread Joel Guillod
Anybody familiar with Ruby or WideStudio?
Personnaly I use Eclipse + PyDev + Ant + wxDesigner for GUI (I am 
trying it currently) + wxPython (i.e. a wrapper for the wxWidgets as 
the multiplatform GUI). At first a bit more complex than Revolution or 
RealBasic IDE but opensource, much more reliable and quick fixes by the 
wide developers' community, object oriented with more complex data 
structures and many important modules ready to use (xslt, database, 
sockets, easy C/C++ externals, ...). Like others I will probably keep 
Rev for some programming but the most important - and the most 
difficult - is to use the right tool for the right thing...!


Rev allows AppleScript via the "do ... as AppleScript" command.
Perhaps this could be extended to support things like
do ... as Python
do ...
Why not? But under MacOSX 3.x you just have to run the following script:
  put "print 'hello'" into thePythonScript
  put shell("python -c " "e& thePythonScript & quote)
(also similar for ruby...).
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT player question

2005-04-04 Thread Scott Rossi
Recently, Chris Carroll-Davis  wrote:

> I expect this is an easy question, but I can't seem to see how to do
> it!How do I see if a player is playing?

Check the paused of the player:

  if the paused of player 1 then do xyz

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Detecting the stack that have the mouse pointer

2005-04-04 Thread Alejandro Tejada
Hi Developers,

I have a mousemove handler in
a frontscript. 
This mousemove handler puts the X,Y
position in the message box and i want
to know the mode of the stack over which
the mouse pointer is.
Toplevel stacks have a mode of 1
palettes, modeless stacks and modal stack
have different numbers.

for example:

i expect that when i move the mouse over
a stack, appears in the message box:

35,79 stack "mytoplevelstack" mode 1

or

10,10 stack "myCustomstack" mode 2

How could i do this without clicking on
the stack?

Thanks in advance.

al


Visit my site:
http://www.geocities.com/capellan2000/



__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Detecting the stack that have the mouse pointer

2005-04-04 Thread Scott Rossi
Recently, Alejandro Tejada  wrote:

> I have a mousemove handler in
> a frontscript. 
> This mousemove handler puts the X,Y
> position in the message box and i want
> to know the mode of the stack over which
> the mouse pointer is.
> Toplevel stacks have a mode of 1
> palettes, modeless stacks and modal stack
> have different numbers.
> 
> for example:
> 
> i expect that when i move the mouse over
> a stack, appears in the message box:
> 
> 35,79 stack "mytoplevelstack" mode 1
> 
> or
> 
> 10,10 stack "myCustomstack" mode 2
> 
> How could i do this without clicking on
> the stack?

One way is to replace your mouseMove handler with a looping script that
checks every line in the openStacks.  Something like:

 on checkMode
  put the openStacks into tList
  repeat for each line L in tList
if within(stack L,the screenMouseLoc) then put the mode of stack L
  end repeat
  send "checkMode" to me in 50 millisecs
 end checkMode

You also might be able to limit the check to a few stacks.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Alex Tweedly
Frank D. Engel, Jr. wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Okay, so anyone want to report on this one (untested, but should be 
rather efficient):

This algorithm assumes that every item in the exclusion list is 
included in the master list, that there are no duplicate items in 
either list, and that both lists are in ascending numeric order:
That assumption isn't met by the earlier test data - so I can't do an 
exact comparison with the earlier cases.

But with 10,000 in the full list, and 1,667 in the smaller list (instead 
of 5000), the times are
new code: 183 ms
difference: 15 ms

Surprising - I expected it to be faster, but I tried a few variants and 
they all had much the same timings.

--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.6 - Release Date: 30/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Detecting the stack that have the mouse pointer

2005-04-04 Thread Ken Ray
On 4/4/05 12:23 PM, "Scott Rossi" <[EMAIL PROTECTED]> wrote:

>  on checkMode
>   put the openStacks into tList
>   repeat for each line L in tList
> if within(stack L,the screenMouseLoc) then put the mode of stack L
>   end repeat
>   send "checkMode" to me in 50 millisecs
>  end checkMode

Can't you just say:

  put the mode of the mouseStack

??

I tested it this way - put this script into a button:

on mouseUp
  CheckIt
end mouseUp

on CheckIt
  if the commandKey is down then exit CheckIt
  if the mouseStack <> "" then
put the short name of the mouseStack && (the mode of the mouseStack)
  end if
  send "CheckIt" to me in 50 milliseconds
end CheckIt

Click the button, and start moving over different stacks - you should see it
change accordingly. Hold down the Command key to make it stop.

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Interesting.  Note that it would not be difficult to modify that code 
to support lists which do not meet those criteria (as long as both 
lists are still sorted, or else you'd need to sort them first), but I 
already lost the old stats: is this 15ms faster. or slower?

Given the problems with that one, I'm curious: how does something like 
this compare (this version only requires that both lists are in 
ascending numeric order):

put empty into the targetList
put 1 into x
put the number of lines in the masterList into maxX
put line 1 of the masterList into y
repeat for each line z in the exceptList
  repeat while (y < z) and (x <= maxX)
put (y & cr) after the targetList
add 1 to x
put line x of the masterList into y
  end repeat
  repeat while (y = z) and (x <= maxX)
add 1 to x
put line x of the masterList into y
  end repeat
end repeat
repeat with x = x to maxX
  put (line x of the masterList) & cr after the targetList
end repeat
delete the last char of the targetList
On Apr 4, 2005, at 1:27 PM, Alex Tweedly wrote:
Frank D. Engel, Jr. wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Okay, so anyone want to report on this one (untested, but should be 
rather efficient):

This algorithm assumes that every item in the exclusion list is 
included in the master list, that there are no duplicate items in 
either list, and that both lists are in ascending numeric order:
That assumption isn't met by the earlier test data - so I can't do an 
exact comparison with the earlier cases.

But with 10,000 in the full list, and 1,667 in the smaller list 
(instead of 5000), the times are
new code: 183 ms
difference: 15 ms

Surprising - I expected it to be faster, but I tried a few variants 
and they all had much the same timings.

--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.6 - Release Date: 30/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUX327aqtWrR9cZoRApgRAJ96CZkw6IseDfnRyeV5nsVa3d8SGQCfYQ23
CSOK7Y1hy9S50fKTpxl7klk=
=Nil+
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Alex Tweedly
Frank D. Engel, Jr. wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Interesting.  Note that it would not be difficult to modify that code 
to support lists which do not meet those criteria (as long as both 
lists are still sorted, or else you'd need to sort them first), but I 
already lost the old stats: is this 15ms faster. or slower?
It's not "faster" or "slower". The earlier comparison compared two 
functions - "Shortlist" and "difference". "difference" is the code that 
uses arrays and delete variable - i.e. the second of the suggested 
methods from Dar, and also suggested by Monte.

Combining the previous stats and the new one, (i.e. extrapolating and 
guessing) you get something like
old Shortlist : 300
new code (and variants) : 200 + / - a bit
difference : 15

i.e. all the methods that loop through making use of the fact that the 
data in each list is sorted are significantly faster than using "among 
the lines of", but much slower than using the arrays.

Given the problems with that one, I'm curious: how does something like 
this compare (this version only requires that both lists are in 
ascending numeric order):

looks like just another variant - I'm guessing it will be 200ms give or 
take a bit, and don't feel the need to know exactly how much plus or 
minus; the array method is clearly the one to use.

--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.6 - Release Date: 30/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Detecting the stack that have the mouse pointer

2005-04-04 Thread Scott Rossi
Recently, Ken Ray  wrote:

>>  on checkMode
>>   put the openStacks into tList
>>   repeat for each line L in tList
>> if within(stack L,the screenMouseLoc) then put the mode of stack L
>>   end repeat
>>   send "checkMode" to me in 50 millisecs
>>  end checkMode
> 
> Can't you just say:
> 
> put the mode of the mouseStack

Even better - thanks Ken. :-)

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] RevZilla 2.0

2005-04-04 Thread Chipp Walters
Hi Ken,
Thanks for the great update! I checked all my bugs and votes and it 
works perfectly.

And thanks for making it altPlugin compatible (And thanks to Jerry 
Daniels for helping). One of the cool things about making it compatible 
with altPlugin, is that users can easily get updates for RevZilla 
through the altPlugin update architecture.

Those of you who use altPlugin, you'll want to drop RevZilla into your 
'altPlugs' folder, then launch Rev and select 'refresh plugins' from the 
small blue triangle dropdown menu.

best,
Chipp
Ken Ray wrote:
I'm proud to announce that RevZilla 2.0 is now available, and includes the
following features:

  - Integrates with the altPlugin toolbar!
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] RevZilla 2.0

2005-04-04 Thread Richard Gaskin
Chipp Walters wrote:
Hi Ken,
Thanks for the great update! I checked all my bugs and votes and it 
works perfectly.

And thanks for making it altPlugin compatible (And thanks to Jerry 
Daniels for helping). One of the cool things about making it compatible 
with altPlugin, is that users can easily get updates for RevZilla 
through the altPlugin update architecture.
What's required for alt compatibility?
Anything we might addrress in the Rev interoperability initiative?

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Detecting the stack that have the mouse pointer

2005-04-04 Thread Alejandro Tejada
Ah! mouseStack :-)

Thanks a lot Scott and Ken
for your answers!

My oversight of the mouseStack
only means that i've not used
this function before. 

But it's very useful for recreating 
an interface in RR/MC.

There is no doubt. I have to practice
more frecuently this area of development,
(along with sockets, cgi, binary data
reading and writing, game programming,
databases, customproperties sets, etc...)

al






Visit my site:
http://www.geocities.com/capellan2000/



__ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Detecting the stack that have the mouse pointer

2005-04-04 Thread J. Landman Gay
On 4/4/05 12:06 PM, Alejandro Tejada wrote:
Hi Developers,
I have a mousemove handler in
a frontscript. 
This mousemove handler puts the X,Y
position in the message box and i want
to know the mode of the stack over which
the mouse pointer is.
Toplevel stacks have a mode of 1
palettes, modeless stacks and modal stack
have different numbers.

for example:
i expect that when i move the mouse over
a stack, appears in the message box:
35,79 stack "mytoplevelstack" mode 1
or
10,10 stack "myCustomstack" mode 2
How could i do this without clicking on
the stack?
Will the "mousestack" property help? "Get the mode of the mousestack".
--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Shrinking Mac stack

2005-04-04 Thread J. Landman Gay
I am still having the problem where the bottom of a stack gets cut off 
on Mac standalone builds when the stack contains a menu bar. This has 
been going on forever and usually (but not always) can be fixed by 
setting the desired stack height in a preopenstack handler.

Since I don't see many complaints about this behavior, I'm wondering if 
others are still seeing it or if it is just me. If it is just me, does 
anyone know what causes it? I'd very much like to avoid using the 
work-around hack if possible.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Shrinking Mac stack

2005-04-04 Thread Scott Rossi
Recently, J. Landman Gay  wrote:

> I am still having the problem where the bottom of a stack gets cut off
> on Mac standalone builds when the stack contains a menu bar. This has
> been going on forever and usually (but not always) can be fixed by
> setting the desired stack height in a preopenstack handler.
> 
> Since I don't see many complaints about this behavior, I'm wondering if
> others are still seeing it or if it is just me. If it is just me, does
> anyone know what causes it? I'd very much like to avoid using the
> work-around hack if possible.

The way I avoid this issue is to place the menu in a substack and reference
it from there.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Dar Scott
On Apr 4, 2005, at 12:07 AM, Brian Yennie wrote:
What kind of database? You might be able to keep these operations 
in-database, depending on what the tables/ needs are.
I like this one, Ken.  In general, I'd reconsider the overall design.  
Specifically, I'd think about queries that do what you want.  If the 
set has to be a single value, then I'd consider a blob that represents 
a bit set as the db representation.

Dar
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread jbv
>
> I like this one, Ken.  In general, I'd reconsider the overall design.
> Specifically, I'd think about queries that do what you want.  If the
> set has to be a single value, then I'd consider a blob that represents
> a bit set as the db representation.
>

well, I don't know...
I've been heavily using Rev cgi and mySQL during the past
few months, and I found out that extracting raw data from the
db and processing them (sorting, comparing...) in Transcript
is most of the time much faster than writing sophisticated
SQL code...
JB

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] RevZilla 2.0

2005-04-04 Thread Chipp Walters
Richard Gaskin wrote:
> What's required for alt compatibility?Hi Richard,
If anyone's interested in making their plugin 'altPlugin compatible' 
they can check out:

http://www.altuit.com/webs/altuit2/altPluginCover/CreateyourownPlugins.htm
The advantage of using altPlugins is the ease at which you can release 
updates w/out having to put any update code in your plugin.

For those who are wondering what an altPlugin is, it's just any old 
stack, which can open with a click of the mouse. AltPlugins can reside 
anywhere on your hard disk, or if you drop them in the altPlugs folder 
(contained in the plugin folder) they are auto-added to the toolbar.

More about them can be found at:
http://www.altuit.com/webs/altuit2/altPluginCover/About.htm

Anything we might addrress in the Rev interoperability initiative?

Sounds like a great idea! Jerry Daniels will soon be releasing a whole 
slew of altPlugin enbabled productivity tools for Rev. The more, the 
merrier :-)

-Chipp
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Dar Scott
On Apr 4, 2005, at 2:11 PM, jbv wrote:
I've been heavily using Rev cgi and mySQL during the past
few months, and I found out that extracting raw data from the
db and processing them (sorting, comparing...) in Transcript
is most of the time much faster than writing sophisticated
SQL code...
I bow to your experience.
In that case, I'd look for a way to keep sets in the db in a form that 
is handy for their use.  If use is primarily set operations, I'd look 
toward optimizing that, and choosing the representation for that 
optimization.  I think that leaves out an array as representation.

Dar
--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] RevZilla 2.0

2005-04-04 Thread Richard Gaskin
Chipp Walters wrote:
Anything we might addrress in the Rev interoperability initiative?

Sounds like a great idea! Jerry Daniels will soon be releasing a whole 
slew of altPlugin enbabled productivity tools for Rev. The more, the 
merrier :-)
Precisely. The growing number of tool suites in the Rev community is 
what led to the creation of the RevInterop initiative.

Currently each toolkit uses its own method of identifying the info 
needed for updates, integration, etc., but if we could take the time to 
draft one universal standard then all tools could ideally be fully 
interchangeable without futher modification.

The initial rought draft identifies a number of common elements needed 
by all plugins, including author, copyright, URL, and more.  Since most 
of these types of data were already identified by Dublin Core, we've 
light-heartedly adopted the name of "Edinburgh Core" for these properties.

That initial rough draft and a sample library stack with placeholder 
properties are available at:


All input from plugin developers is appreciated.  No such initiative can 
be useful in a vacuum. :)

--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
That depends on how you write the queries, how busy the server is, how 
much information needs to be shuttled between the client and the 
server, and various other factors.

Also, an ad hoc query against an SQL server needs to be parse, planned, 
and executed by the server each time it is sent.  A complex query may 
be better handled as a stored procedure, so that it can be pre-planned; 
this will cut down on execution time later on.  If you are dealing with 
a large amount of information, processing it on the server may cut down 
on time spent transmitting info across a slower network which will 
later be eliminated anyway.  Additionally, depending on the operations 
being performed, the server may be able to take advantage of indexes, 
etc. that the client will not have access to.

Now as far as using the SQL server to maintain lists, if you can store 
each entry as a separate row in a table, for example (based on 
PostgreSQL and untested; may or may not be the most efficient queries 
in some cases):

CREATE TABLE myLists
(
listID INTEGER NOT NULL,
listValue TEXT
);
CREATE INDEX ndxMyLists ON myLists (listID, listValue);

Now to retrieve a list in sorted order by value:
SELECT listValue FROM myLists WHERE (listID = 1) ORDER BY listValue;
To perform an intersection operation between two lists:
SELECT DISTINCT listValue FROM myLists WHERE (listID = 1) AND 
(listValue IN (SELECT listValue FROM myLists WHERE (listID = 2

To perform a union operation between two lists:
(SELECT listValue FROM myLists WHERE (listID = 1)) UNION (SELECT 
listValue FROM myLists WHERE (listID = 2))

**or**
SELECT DISTINCT listValue FROM myLists WHERE ((listID = 1) OR (listID = 
2))

To perform a set difference:
SELECT listValue FROM myLists WHERE (listID = 1) AND NOT (listValue IN 
(SELECT listValue FROM myLists WHERE (listID = 2)))

Note that this set difference is only different from my suggestion for 
intersection by a single NOT operator...

I missed the original post, what else did you need to be able to do?
BTW, one of the issues with using mySQL like this is its lack of 
support for stored procedures, or have they added this capability yet?  
Even pure SQL stored procedures would be fine for most of this stuff...

On Apr 4, 2005, at 4:11 PM, jbv wrote:
I like this one, Ken.  In general, I'd reconsider the overall design.
Specifically, I'd think about queries that do what you want.  If the
set has to be a single value, then I'd consider a blob that represents
a bit set as the db representation.
well, I don't know...
I've been heavily using Rev cgi and mySQL during the past
few months, and I found out that extracting raw data from the
db and processing them (sorting, comparing...) in Transcript
is most of the time much faster than writing sophisticated
SQL code...
JB
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUaYR7aqtWrR9cZoRAviWAJ9SzSDGdg3JJNPdmCoOka8RVk7otwCfdB1I
5YwzbHHISddnuNB20nd3fR4=
=FSMG
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Trevor DeVore
On Apr 4, 2005, at 1:11 PM, jbv wrote:
well, I don't know...
I've been heavily using Rev cgi and mySQL during the past
few months, and I found out that extracting raw data from the
db and processing them (sorting, comparing...) in Transcript
is most of the time much faster than writing sophisticated
SQL code...
Do you mean that the transcript sorting code executes faster than the 
mySQL doing the sorting (with something like 'SELECT ID, FirstName, 
LastName FROM people ORDER BY LastName') or that it is just easier for 
you to handle everything in transcript rather than figuring out the SQL 
syntax to perform some of the sorts, joins, etc.?

--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Shrinking Mac stack

2005-04-04 Thread Chipp Walters
Hi Jacque,
Hope this helps:
(from an earlier post:)
For those of you who've come lately to this, the problem was simple. How 
to add menus for both Mac and PC to an existing stack *without* ever 
resizing the existing stack.

As you all probably know, the minute you add a menu to a stack, it's 
height is recalculated whenever it opens on a different platform. The 
reason is that the menubar is 'on the card' for the PC, but at the top 
of the screen for the Mac. So, when viewing the stack on the Mac, the 
stack is automatically reduced in height by the amount of the menubar 
(thus screwing up my carefully rendered screen layout;-).

bummer, especially if you don't want this behavior.
So, Richard's idea was pretty straightforward:
set the editmenu property of the stack to true
hide the menu group
So, here's how it works: When the stack is opened up on the Mac, because 
the editmenu prop is true, the menus appear at the top of the card and 
not in the menubar. But a little known fact (only Richard knows it 
apparently as it's not documented) is that the menus will appear in the 
menubar if the menuGrp is hidden! So, just hide the group and then show 
it if the platform is Win32.

Works like a charm...and no resizing of the stack whatsoever.
Cool, and thanks Richard!
-Chipp
J. Landman Gay wrote:
I am still having the problem where the bottom of a stack gets cut off 
on Mac standalone builds when the stack contains a menu bar. This has 
been going on forever and usually (but not always) can be fixed by 
setting the desired stack height in a preopenstack handler.

Since I don't see many complaints about this behavior, I'm wondering if 
others are still seeing it or if it is just me. If it is just me, does 
anyone know what causes it? I'd very much like to avoid using the 
work-around hack if possible.

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
If the DB is properly indexed, there is no way that Transcript should 
be able to perform that kind of sort faster than the DB server.  An SQL 
server should be able to use an index to perform that kind of sort 
substantially faster than it could be done by a generic sorting 
algorithm, such as what Rev would need to use with its 'sort' command.

The only major exception is when the client is distributed among 
multiple computers (different people accessing the server 
simultaneously with the client on separate machines per user) and the 
database server is on hardware which is being very heavily used.  In 
this case, the client may be able to sort the incoming data faster than 
the DB can, only due to the server being slowed down by a heavy 
processing load of multiple other users.  However, there would need to 
be a rather extreme number of users for a correctly indexed database to 
slow down to this point, at least with a query like that one, since the 
index should allow the server to just read off the needed data in a 
sorted order to begin with, rather than needing to take any extra steps 
to sort it at all.  Complex views might complicate the matter somewhat, 
but last time I checked, MySQL did not support views (a somewhat 
strange omission for such a popular db server...)

On Apr 4, 2005, at 4:40 PM, Trevor DeVore wrote:
Do you mean that the transcript sorting code executes faster than the 
mySQL doing the sorting (with something like 'SELECT ID, FirstName, 
LastName FROM people ORDER BY LastName') or that it is just easier for 
you to handle everything in transcript rather than figuring out the 
SQL syntax to perform some of the sorts, joins, etc.?

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUaiE7aqtWrR9cZoRAmPVAKCRLmyw301tHZCVzVhcMaM+uICS3gCfV2x7
uYM3tgGMtRwDDHAQvizbhmc=
=sJMT
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread jbv
I must confess that I'm much more fluent in Transcript than in
SQL, so productivity-wise, I feel more confortable writing
complex transcript than complex SQL...
Nevertheless I'm working on a project involving a table with
23,000 entries (so far) and 35 fields in each (total weight 5Mb)
that makes heavy use of indexes. I have SQL requests involving
at least 5 to 7 fields, that extract 12 to 20 flds, and on which I
perform successive sorts.

for instance :
SELECT A, B, C, D, E, F, G FROM myTable WHERE A>10 AND B>A AND H>G
etc...

the selection can reach 1000 to 1500 lines

and then :
sort lines of myRequest ascending international by item 6 of each
sort lines of myRequest ascending numeric by item 5 of each
sort lines of myRequest ascending numeric by item 4 of each
sort lines of myRequest ascending international by item 2 of each
etc

and then further processing, like grouping lines in which item 1
contains similar values to be displayed in different tables in a
HTML page and / or comparing values of item 6 of each line with
a set of values already stored in a field of another table, etc.

then build (rather complex) HTML pages by reading template
txt files and replacing certain kew words with HTML code build
in the same script around data from the db...
---

I didn't perform any speed test, but the general feeling is that cgi
requests are performed significantly faster when most sorting /
processing is done in Transcript than in SQL...

I also have a client web app (made with Rev) that accesses the
same db / server, and the feeling is the same...

JB

> Do you mean that the transcript sorting code executes faster than the
> mySQL doing the sorting (with something like 'SELECT ID, FirstName,
> LastName FROM people ORDER BY LastName') or that it is just easier for
> you to handle everything in transcript rather than figuring out the SQL
> syntax to perform some of the sorts, joins, etc.?

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread jbv

Oh, 1 thing I forgot :
I didn't find the syntax for the SQL equivalent of Transcript
"sort international"

JB

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ANN Nine Ball with Spin (English)

2005-04-04 Thread Quentin Long
sez [EMAIL PROTECTED]
But I am off to something else right now--using Run Rev to create a 
simulation contrasting global warming on Venus, Earth and Mars. 
(Right now I need a tool for making circular arcs--like the Run Rev 
pie shaped circular segments, but without the radial lines. May be a 
job for Turtle Graphics.)
   Graphics can be filled or not-filled, and you can also adjust the 
thickness/color/etc of the line. THus, why not try a *non-filled* arc?
   Hope this helps...

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Shrinking Mac stack

2005-04-04 Thread Trevor DeVore
On Apr 4, 2005, at 12:36 PM, J. Landman Gay wrote:
I am still having the problem where the bottom of a stack gets cut off 
on Mac standalone builds when the stack contains a menu bar. This has 
been going on forever and usually (but not always) can be fixed by 
setting the desired stack height in a preopenstack handler.

Since I don't see many complaints about this behavior, I'm wondering 
if others are still seeing it or if it is just me. If it is just me, 
does anyone know what causes it? I'd very much like to avoid using the 
work-around hack if possible.
I hadn't seen this in a while but not more than 10 minutes after 
reading this I noticed this on an app we are testing right now.  I 
don't see it on my development computer but it does happen on another 
computer here at the office.  So the bug is still alive and well.

In the case I'm looking at right now the card height is reported 
correctly and my controls resize to the visible size of the stack but 
the bottom 21 pixels of the stack are just white (my graphics/controls 
are cut off).  When I switch to use the stack height to resize controls 
then my controls resize just above the 21 pixels that are white.

So it would appear that Revolution is displaying the window equal to 
the height of the card but only drawing controls into a height equal to 
the height of the stack.

--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Brian Yennie
I'm sure all of this is application specific, but generally speaking if 
you are pulling data from MySQL and _then_ sorting it in Transcript 
faster than in-database, there is probably something non-optimal about 
the database schema or queries. Generally speaking, when I'm working on 
a web application that needs to handle a lot of hits, it's a huge red 
flag if I have to post-sort anything out of the database. That's not to 
say Rev can't take the wheel and do a pretty good job (kudos to Rev), 
but I can't remember an instance where I couldn't make more of an 
impact working on the database side of things.

With that said, if it's a factor of needing to do _other_ things in Rev 
at the same time, programming efficiency, etc- then it's a perfectly 
fine solution.

I would be shocked to find that Rev is better optimized for sorting 
than MySQL in any general sense. I'm wondering if it's worth pulling 
out any more specifics that someone can share about their table 
structures, queries, etc?

Please note I don't mean that sorting should literally be offloaded 
back to the database- but that there is almost always a fast way to get 
it that way in the first place, especially if we're just dealing with 
recID lookups and sorts.

- Brian
I've been heavily using Rev cgi and mySQL during the past
few months, and I found out that extracting raw data from the
db and processing them (sorting, comparing...) in Transcript
is most of the time much faster than writing sophisticated
SQL code...
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Trevor DeVore
On Apr 4, 2005, at 1:50 PM, Frank D. Engel, Jr. wrote:
If the DB is properly indexed, there is no way that Transcript should 
be able to perform that kind of sort faster than the DB server.  An 
SQL server should be able to use an index to perform that kind of sort 
substantially faster than it could be done by a generic sorting 
algorithm, such as what Rev would need to use with its 'sort' command.
That was my thought as well which is why I wanted to clarify the 
statement.

The only major exception is when the client is distributed among 
multiple computers (different people accessing the server 
simultaneously with the client on separate machines per user) and the 
database server is on hardware which is being very heavily used.  In 
this case, the client may be able to sort the incoming data faster 
than the DB can, only due to the server being slowed down by a heavy 
processing load of multiple other users.  However, there would need to 
be a rather extreme number of users for a correctly indexed database 
to slow down to this point, at least with a query like that one, since 
the index should allow the server to just read off the needed data in 
a sorted order to begin with, rather than needing to take any extra 
steps to sort it at all.  Complex views might complicate the matter 
somewhat, but last time I checked, MySQL did not support views (a 
somewhat strange omission for such a popular db server...)
Views were just barely added with the 5.0 release.
--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread David Vaughan
On 05/04/2005, at 0:38, Ken Ray <[EMAIL PROTECTED]> wrote:
On 4/4/05 1:39 AM, "Monte Goulding" <[EMAIL PROTECTED]> 
wrote:

Ken (and all the other ingenious people), you have something against 
the
"intersect" command?

Convert both lists to arrays and intersect them leaving only the
non-common elements.
My understanding is the intersect command creates an array with only 
common
keys. If there was an inverse of the command it would be perfect as 
you say.
I added this as an enhancement request to Bugzilla (Bug #2763 if anyone
wants to vote on it).
I'll vote for it Ken. While I am at it I might vote that I do not 
reverse-read documentation as well ;-)

cheers
David
Ken Ray
Sons of Thunder Software
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
put sourceArray into sectArray
intersect sectArray with exceptArray
repeat for each line k in the keys of sectArray
  delete variable sourceArray[k]
end repeat
On Apr 4, 2005, at 5:46 PM, David Vaughan wrote:
On 05/04/2005, at 0:38, Ken Ray <[EMAIL PROTECTED]> wrote:
On 4/4/05 1:39 AM, "Monte Goulding" <[EMAIL PROTECTED]> 
wrote:

Ken (and all the other ingenious people), you have something 
against the
"intersect" command?

Convert both lists to arrays and intersect them leaving only the
non-common elements.
My understanding is the intersect command creates an array with only 
common
keys. If there was an inverse of the command it would be perfect as 
you say.
I added this as an enhancement request to Bugzilla (Bug #2763 if 
anyone
wants to vote on it).
I'll vote for it Ken. While I am at it I might vote that I do not 
reverse-read documentation as well ;-)

cheers
David
Ken Ray
Sons of Thunder Software
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUbhe7aqtWrR9cZoRAnLrAKCIW7F2FUuw1nlySpVd5IOdRF0C7ACgiWdm
yl4goDLYuppb5TVh7V72aX0=
=JJJw
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Table Field

2005-04-04 Thread zack
Hello,

I am rev newbie.  I have tab delimitated list in variable and I would like
to display it a table field, and I am having some difficulty. Does anyone
have any example stacks on how to use table fields?  Or any other advice

Thanks so much for your help

z


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Table Field

2005-04-04 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
on mouseUp
  ... set up myVariable ...
  put myVariable into field "My Table Field"
end mouseUp
Can you be more specific about what kind of trouble you are having?
On Apr 4, 2005, at 6:30 PM, zack wrote:
Hello,
I am rev newbie.  I have tab delimitated list in variable and I would 
like
to display it a table field, and I am having some difficulty. Does 
anyone
have any example stacks on how to use table fields?  Or any other 
advice

Thanks so much for your help
z
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUclI7aqtWrR9cZoRAubBAJ0RhOzoGQ0QEb1sm/kRrkt2Ii2eHgCfRVLQ
9RhUw9aL7hWaAs033xS3Hm0=
=3dxS
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Table Field

2005-04-04 Thread zack
Sorry,

I would like it to display like a spreadsheet, With columns and rows
appearing in the cells Instead it is just displaying in one long string.

The fields are delimitated by TAB and the records are makes with a RETURN.

Field1  Field2  field3
etc etc etc

But when put myVariable into field "my Table field" I get one long string.
It is not split up into the cells as I expected.

Is Rev looking for different delimiters?

z


On 4/4/05 4:10 PM, "Frank D. Engel, Jr." <[EMAIL PROTECTED]> wrote:

> on mouseUp
>... set up myVariable ...
> 
>put myVariable into field "My Table Field"
> end mouseUp
> 
> 
> Can you be more specific about what kind of trouble you are having?



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Table Field

2005-04-04 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
You need to set the properties of the field to behave like a table.  
You can do this using the "Table" page of the Property Inspector for 
the field, or (assuming you have Rev 2.5 or newer) you can simply drag 
out a "Table Field" from the toolbar rather than an ordinary "Field" 
(the Table Field icon is right next to the Field icon).

You can control column widths using the tabStops property, which is 
also available from the Table page of the Property Inspector.

On Apr 4, 2005, at 7:19 PM, zack wrote:
Sorry,
I would like it to display like a spreadsheet, With columns and rows
appearing in the cells Instead it is just displaying in one long 
string.

The fields are delimitated by TAB and the records are makes with a 
RETURN.

Field1  Field2  field3
etc etc etc
But when put myVariable into field "my Table field" I get one long 
string.
It is not split up into the cells as I expected.

Is Rev looking for different delimiters?
z
On 4/4/05 4:10 PM, "Frank D. Engel, Jr." <[EMAIL PROTECTED]> wrote:
on mouseUp
   ... set up myVariable ...
   put myVariable into field "My Table Field"
end mouseUp
Can you be more specific about what kind of trouble you are having?

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUcy37aqtWrR9cZoRAjlTAJ0Vpyhx+EmeHBkC7FfyyJMy42UgcwCggLtg
JO/t9g3wjHE2MJfquLD7Ep8=
=ZCo4
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: BGs

2005-04-04 Thread Jeanne A. E. DeVoto
At 1:21 PM -0700 4/3/05, Dan Shafer wrote:
Copying a background from one card to another *duplcates* the 
background so that changes made to one of them will not be reflected 
in the copy. Placing a background seems to me to at least imply that 
the author intends for the background to be shared so that changes 
to the background made from any card will be reflected in all other 
cards on which the background appears. To make that happen, the 
group must be set to behave as a background.
Actually, this isn't so - a group can be shared without having its 
backgroundBehavior property set to true. Shared groups worked fine 
even before the backgroundBehavior property was added to the 
language. What backgroundBehavior does is cause shared groups to be 
automatically placed on new cards, as well as tweaking the message 
path for the group so it matches HyperCard's behavior more closely.

(My only excuse for not documenting that "place" turns on 
backgroundBehavior is that no one told me about the change, and I 
didn't stumble across it on my own when the property was added. If I 
had been told about it, I would have argued that it was a bug, not a 
feature. Commands shouldn't spew side effects like that, even if 
they're documented. As it is, apparently if you want a shared group 
whose backgroundBehavior property is false, you need to remember to 
reset the property after every time you place the group on a card.)

The whole situation with backgroundBehavior is confusing. It was 
added in order to better emulate HyperCard backgrounds, which it 
does, but there were collateral changes (for example, changes to what 
"the backgroundNames" means) that resulted in, IMHO, a mess.
--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


typo alert!

2005-04-04 Thread Erik Hansen
"the currenttime fo player"

this is American Southern,
our answer to Bayrisch.

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



__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Toggle Listbehavior

2005-04-04 Thread Sivakatirswami
I want to toggle the listbehavior of a fld with a simple check btn:
on mouseUp
  set the listbehavior of fld "ToDo" to the hilite of me
end mouseUp
problem: it works to set listbehavior to true but
unchecking leaves "orphaned to true props" :
locktext  ## remains set to true
dontwrap  ## remains set to true
is this a bug? If setting listbehavior to true turns these properties 
on, then should they not be turned off if they were not on in the first 
place? The following is of course a simple work around, but I was 
thinking perhaps there was an issue with setting listbehavior to false. 
Or is this expected behavior...

on mouseUp
  put "locktext,dontwrap,listbehavior" into tProps
  repeat for each item x in tProps
  set the x of fld "ToDo" to the hilite of me
  end repeat
end mouseUp
Sivakatirswami
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Toggle Listbehavior

2005-04-04 Thread Brian Yennie
Sivakatirswami,
I think what you are finding is that these properties are only "linked" 
by means of the Rev IDE. They are in fact totally independent, it's 
just that the IDE emulates certain types of "canned" objects by 
sometimes locking multiple properties together.

As such, your workaround is actually the proper use, I believe.
- Brian
I want to toggle the listbehavior of a fld with a simple check btn:
on mouseUp
  set the listbehavior of fld "ToDo" to the hilite of me
end mouseUp
problem: it works to set listbehavior to true but
unchecking leaves "orphaned to true props" :
locktext  ## remains set to true
dontwrap  ## remains set to true
is this a bug? If setting listbehavior to true turns these properties 
on, then should they not be turned off if they were not on in the 
first place? The following is of course a simple work around, but I 
was thinking perhaps there was an issue with setting listbehavior to 
false. Or is this expected behavior...

on mouseUp
  put "locktext,dontwrap,listbehavior" into tProps
  repeat for each item x in tProps
  set the x of fld "ToDo" to the hilite of me
  end repeat
end mouseUp
Sivakatirswami
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


what is the Rev interoperability initiative? (was Re: [ANN] RevZilla 2.0)

2005-04-04 Thread Andre Garzia
On Apr 4, 2005, at 3:57 PM, Richard Gaskin wrote:
Anything we might addrress in the Rev interoperability initiative?


Richard,
please tell me what is this... I never heard about it...
Cheers

--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: what is the Rev interoperability initiative? (was Re: [ANN]RevZilla 2.0)

2005-04-04 Thread Richard Gaskin
Andre Garzia wrote:
> On Apr 4, 2005, at 3:57 PM, Richard Gaskin wrote:
>> Anything we might addrress in the Rev interoperability initiative?
>> 
>
> please tell me what is this... I never heard about it...
Earlier today I wrote:
> Precisely. The growing number of tool suites in the Rev
> community is what led to the creation of the RevInterop
> initiative.
>
> Currently each toolkit uses its own method of identifying
> the info needed for updates, integration, etc., but if we
> could take the time to draft one universal standard then
> all tools could ideally be fully interchangeable without
> futher modification.
>
> The initial rought draft identifies a number of common
> elements needed by all plugins, including author, copyright,
> URL, and more.  Since most of these types of data were
> already identified by Dublin Core, we've light-heartedly
> adopted the name of "Edinburgh Core" for these properties.
>
> That initial rough draft and a sample library stack with
> placeholder properties are available at:
> 
>
> All input from plugin developers is appreciated.  No such
> initiative can be useful in a vacuum. :)
--
 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
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Toggle Listbehavior

2005-04-04 Thread J. Landman Gay
On 4/4/05 10:39 PM, Sivakatirswami wrote:
I want to toggle the listbehavior of a fld with a simple check btn:
on mouseUp
  set the listbehavior of fld "ToDo" to the hilite of me
end mouseUp
problem: it works to set listbehavior to true but
unchecking leaves "orphaned to true props" :
locktext  ## remains set to true
dontwrap  ## remains set to true
is this a bug? If setting listbehavior to true turns these properties 
on, then should they not be turned off if they were not on in the first 
place?
It doesn't seem like a bug to me. The listbehavior can't work without 
both locktext and dontwrap also set; if they aren't set, you don't have 
listbehavior. However, both locktext and dontwrap can be used 
independently regardless of listbehavior, so I think it makes sense to 
leave them on when listbehavior is turned off.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to get the difference between two lists?

2005-04-04 Thread Dar Scott
On Apr 3, 2005, at 9:04 PM, Ken Ray wrote:
I can of course do a repeat loop through the small list and remove 
those
items from the comprehensive list, but I'm wondering if there's a 
faster way
to do this.
I took a break and tried my hand at this.
The function using offset did better than array element deletion in 
some cases.  The function using replaceText() did poorly for medium 
size lists and bailed out for large lists to be removed.  I think there 
is something fishy (that is n^2) in replaceText().  The last one was my 
attempt to avoid 'line n' and is similar to Frank's, I think.  It was 
still a little bit slower than array element deletion in my tests.

function shortListDar2 pList, pExcludeList
  local resultList = ""
  put lf before pList
  put 0 into lastUsedChar
  if char -1 of pList is not lf then put lf after pList
  repeat for each line ex in pExcludeList
put lf & ex & lf into exWithLF
get offset(exWithLf,pList,lastUsedChar)
if it is not zero then
  put char lastUsedChar+1 to lastUsedChar+it of pList after 
resultList
  put lastUsedChar + it + length(exWithLF) - 1 into lastUsedChar
end if
  end repeat
  put char lastUsedChar+1 to -1 of pList after resultList
  return char 2 to -2 of resultList
end shortListDar2

--function shortListDar3 pList, pExcludeList
--  get "(?m)^" & replaceText(pExcludeList,"\n","\n|^") & "\n"
--  return replaceText(pList,it,empty)
--end shortListDar3
function shortListDar4 pList, pExcludeList
  local resultList
  put lf & "10" after pExcludeList
  put line 1 of pExcludeList into checkLine
  put 1 into charOffset
  repeat for each line listLine in pList
repeat while checkLine < listLine
  add length(checkLine)+1 to charOffset
  put line 1 of (char charoffset to charoffset+20 of pExcludeList) 
into checkLine
end repeat
if listLine < checkline then
  put listLine & lf after resultList
end if
  end repeat
  return char 1 to -2 of resultList
end shortListDar4
--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution