Re: alwaysBuffer vs. screenNoPixMaps

2005-03-02 Thread Scott Rossi
Recently, Phil Davis  wrote:

 Is there any initial-flicker-prevention benefit to setting the
 'alwaysBuffer' of a dialog stack to true? Or is it really all dependent
 on the 'screenNoPixMaps' property?

Did you ever get an answer to this Phil?  I routinely enable the
alwaysBuffer of ALL stacks, all the time, and have yet to encounter any
flicker.  More often than not, any flicker that folks observe in stacks is
usually caused by an alwaysBuffer setting of false.  Are you seeing
something different?

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


Setting a character with imagesource through htmlText?

2005-03-02 Thread Geoff Canyon
If you set the text of a field to test and then set the imagesource 
of char 3 of that field to 20, you'll see te followed by a beachball 
followed by t

If you put that field, you'll get test
If you put the htmlText of the field, you'll get:
pteimg src=20t/p
Note the absence of the character s
If you set the htmlText of the field to the htmlText of the field, 
there will be no visible change. But if you put the field, you'll now 
get te t with a space where the s used to be.

Question 1: is this a bug? I think so. I don't see this in bugzilla, so 
if consensus is that this is a bug I'll enter it.

Question 2: any ideas for a workaround? Setting the htmlText of a field 
is dramatically faster than putting text into it and then setting the 
imageSource of each character individually, but it can be very handy to 
have a character hidden within an image, since it can be a quick 
reference to what the image is.

regards,
Geoff Canyon
[EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


OT: Show and Select in Finder

2005-03-02 Thread Sivakatirswami
I do a lot of processing of long lists of files through Revolution  
interfaces, I'm continually amazed at the ease with which Revolution  
allows me to deal with data in 1000's of files on disk with such  
efficiency and speed,  (mostly web files) and hack up tools on the spot  
as needed - nothing else can compare /end_kudos_

OK, new need. I have a file listing like this brought in from an  
Interarchy link checking process.

http://www.hinduismtoday.com/info/advanced_search.html
http://www.himalayanacademy.com/basics/tenq/index.htm
http://www.himalayanacademy.com/resources/multi-media/
(list continues for 3000 plus lines)
One can transform these to paths to the production server on the lan
/Volumes/WWW/LIve_Sites/www.himalayanacademy.com/info/ 
advanced_search.html

and boot them into BBEdit using the launch command... But there are  
times when one wants a

Show in Finder command that will switch apps to the finder, and open  
the window-folder containing the file and select it... I believe this  
would be an Apple script thing... before I go digging, does anyone  
already have such a recipe?

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


Re: Setting a character with imagesource through htmlText?

2005-03-02 Thread Scott Rossi
Recently, Geoff Canyon  wrote:

 If you set the text of a field to test and then set the imagesource
 of char 3 of that field to 20, you'll see te followed by a beachball
 followed by t
 
 If you put that field, you'll get test
 
 If you put the htmlText of the field, you'll get:
 
 pteimg src=20t/p
 
 Note the absence of the character s
 
 If you set the htmlText of the field to the htmlText of the field,
 there will be no visible change. But if you put the field, you'll now
 get te t with a space where the s used to be.
 
 Question 1: is this a bug? I think so. I don't see this in bugzilla, so
 if consensus is that this is a bug I'll enter it.
 
 Question 2: any ideas for a workaround? Setting the htmlText of a field
 is dramatically faster than putting text into it and then setting the
 imageSource of each character individually, but it can be very handy to
 have a character hidden within an image, since it can be a quick
 reference to what the image is.

When I set the HTMLtext by script:

 set the HTMLtext of fld 1 to \
  ptesimg src=  quote  1005  quote  t/p

I get the expected result in the field:  tes[image]t

When I put the field, I get:  ptesimg src=1005t/p

So using the imageSource property appears to effectively cloak the
selected character, while setting the HTMLtext by script gives the expected
results.

Jerry Daniels has found that setting imageSource via script (in reality,
setting the HTMLtext of the field) is much faster than setting the
imageSource character by character.  So perhaps this could be your
workaround, and a faster workaround at that.  It's just a little more coding
to accommodate the HTML tags.

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: OT: Show and Select in Finder

2005-03-02 Thread Klaus Major
Hi Swami,
I do a lot of processing of long lists of files through Revolution  
interfaces, I'm continually amazed at the ease with which Revolution  
allows me to deal with data in 1000's of files on disk with such  
efficiency and speed,  (mostly web files) and hack up tools on the  
spot as needed - nothing else can compare /end_kudos_

OK, new need. I have a file listing like this brought in from an  
Interarchy link checking process.

http://www.hinduismtoday.com/info/advanced_search.html
http://www.himalayanacademy.com/basics/tenq/index.htm
http://www.himalayanacademy.com/resources/multi-media/
(list continues for 3000 plus lines)
One can transform these to paths to the production server on the lan
/Volumes/WWW/LIve_Sites/www.himalayanacademy.com/info/ 
advanced_search.html

and boot them into BBEdit using the launch command... But there are  
times when one wants a

Show in Finder command that will switch apps to the finder, and open  
the window-folder containing the file and select it... I believe this  
would be an Apple script thing... before I go digging, does anyone  
already have such a recipe?
Yes :-)
on mouseUp
  put fld 1 into pfad
 ## This is the filename!
 ## pfad = german for path
  replace / with : in pfad
  put tell application   quote  Finder  quote  cr   activate  
 cr  select   quote  (pfad)  quote  cr   end tell into  
tScript
  do tScript as AppleScript
end mouseUp

Et voila, the file is show AND selected! in its parent window in the  
finder.

Thanks
Sivakatirswami
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


Math wizardry

2005-03-02 Thread Richard Miller
I've got two line graphics drawn on the screen. I need to find out if 
they intersect and, if so, what the angle is that is formed by their 
intersection. Any simple way to do this?

Thanks.
Richard Miller
Imprinter Technologies
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mortgage calc.

2005-03-02 Thread Gregory Lypny
Hershel,
Can you post an example of your calculation?  I can give you a direct 
calculation that doesn't require the annuity function so that you'll 
have more control of day adjustments and the like.  Mine is for 
Canadian mortgages but you will be able to modify it easily for 
American mortgages.

Greg
On Mar 2, 2005, at 10:22 AM, [EMAIL PROTECTED] 
wrote:

Hi all I'm trying to write a mortgage function and I can't get right.
Some how the annuity function doesn't do it the way I understand it 
should.
Any help is appreciated.
Hershel
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Math wizardry

2005-03-02 Thread Jim Hurley
Message: 1
Date: Wed, 2 Mar 2005 10:41:27 -0500
From: Richard Miller [EMAIL PROTECTED]
Subject: Math wizardry
To: How to use Revolution use-revolution@lists.runrev.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; format=flowed
I've got two line graphics drawn on the screen. I need to find out if
they intersect and, if so, what the angle is that is formed by their
intersection. Any simple way to do this?
Thanks.
Richard Miller
Imprinter Technologies
Richard,
Here are a couple of functions which will should be helpful:
function theLineAngle p1,p2
  --Angle of line defined by the two points p1 and p2
  put item 1 of p2 - item 1 of p1 into dx
  put item 2 of p2 - item 2 of p1 into dy
  put atan2(dy,dx) into tAngle
  return tAngle
end theLineAngle
And
function intersection line1,line2
  --Intersection point of two lines defined by line1 and line2
  --Where line1 is defined by its two end points x1,y1,x2,y2
  put item 1 to 2 of line1 into p1
  put item 3 to 4 of line1 into p2
  put item 1 to 2 of line2 into pp1
  put item 3 to 4 of line2 into 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 and xp1= xp2 then add .0001 to xp2
  if x1 = x2 or xp1 = xp2 then
if x1 = x2 then
  return x1commayp2 + (x1-xp2)*(yp2-yp1)/(xp2-xp1)
else
  return xp2comma y2 + (xp1-x2)*(y2-y1)/(x2-x1)
end if
  end if
  if (y2-y1)/(x2-x1) = (yp2-yp1)/(xp2-xp1) then add .0001 to y2--if 
lines are parallel
  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

You may wish to handle the special cases were the lines intersect at 
infinity differently. In the above function I have chosen to slightly 
alter the given points so that the lines intersect at a great 
distance (close to infinity, so to speak.)

The above intersection  function assumes that these are effectively 
the infinite lines of Euclidean geometry. The end points are simply 
two points which define the infinite lines. To find out whether the 
intersection point lies between the end points of each line you will 
need to test whether the distance between the intersection point and 
ALL the end points is less than the length  of each line 
respectively. (I can't imagine that sentence is clear.)

Other functions which might be helpful are the perpDist function (the 
perpendicular distance between a point and a given line, and 
thePerpProj function (the perpendicular projection of a given point 
onto a line.) You can see how these work in my recent Bouncing Ball 
post which can be retrieved by putting this into the msg box:

go url  http://home.infostations.net/jhurley/BouncingBallTools.rev
Let me know if you have any  problems.
Jim
P.S. I've currently lost my  mind entirely and am working on a 
simulation of pool. So far I've got the balls (just two balls) 
colliding and rebounding so that they satisfy the physical laws of 
collision dynamics. What fun.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revolutionaries in New Zealand?

2005-03-02 Thread SimPLsol
One can not wade the Tasman?
Pass the word. Thanks.
Paul Looney
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re : scale w/ ticks and snap-to

2005-03-02 Thread Éric Chatonet
Hi Richard, Paul and Ken,
I would add some points to your today enjoyment about scrollbars ;-)
1. It is a Mac OS issue since there are no ticks on Windows 
scrollbars... (I love ergonomics!)
2. You are right, the workaround does work from 4 to 15,  but not for 
2, 3 or more than 15!
3. In the scrollbarDrag handler, I prefer set the thumbPos of me to 
round(the thumbPos of me) to set the thumbPos of me to the thumbPos of 
me:
Using round function allows the cursor to follow exactly the mouse 
movement and snap gently at mouseUp
Without round function,  the cursor snaps when the mouse is down (it 
always wins this terrific struggle...) and I don't like interface 
elements that don't obey to the user (i.e. me  :-)
That's with OS X, I don't test it with Win32.
Thanks for bugzilla this irritating feature.

Best regards,
Le 2 mars 05, à 16:22, Richard Gaskin [EMAIL PROTECTED] a 
écrit :

Éric Chatonet wrote:
I proposed a little script to manage a scrollbar with snap-to behavior
so the indicator lines up with the ticks (displayed with Mac OS).
In fact, my script (changing the numberFormat property) was too much
complicated.
The following code is enough to do the job:
on scrollbarDrag pPos
  set the pageInc of me to the endValue of me / (the endValue of me + 
1)
end scrollbarDrag

on mouseUp
  set the thumbPos of me to round(the thumbPos of me)
end mouseUp
The behavior seems to work the same here for me with a script 
containing
only:

on mouseUp
   set the thumbPos of me to the thumbpos of me
end mouseUp
Since the thumbpos is an integer, it does the post-drag snap-to.  I had
hoped to find a snap-as-you-go behavior, and I've gotten close but it's
still a tad jerky (if only we had a preScrollBarDrag message g).
But here's where things get freaky - try this at home:
1. Make a new mainstack
2. Drop a scale onto it
3. Set these properties:
  startValue: 1
  endValue:   5
  pageInc:1
  lineInc:0
  thumbsize:  1
Freak-o-rama:  I see a slider with 4 (count 'em, four!) tick marks.
With a scale of 1 to 5, I would expect 5.
Ultra-freak-o-rama:  Éric's has the same properties set just like mine,
but his has 5 (count 'em, five!) tick marks.
Works the same in Rev and MC.
The mystery deepens: I can copy Éric's, change the endValue to 6, and
get 6 tick marks.  But if I change the endValue to 4 I get 3 tick 
marks.

How comes such to be?  :\
You can examine both scrollbars here:
   go url http://fourthworld.net/scroll_bar_test.mc;
Paul Looney, Ken Ray, and I have scratched our heads over this today.
Mystified?
It turns out that while Eric's first handler doesn't affect behavior, 
it
does affect appearance.  This bit:

  on scrollbarDrag pPos
   set the pageInc of me to the endValue of me/(the endValue of me +1)
  end scrollbarDrag
...apparently takes care of a bug in the engine.  As soon as you scroll
it you get the tick marks appearing as you would expect.  Apparently
this continues to work even with that handler disabled until the next
time the pageInc or thumbSize is set.
I could't find a Bugzilla report for this, so I just filed one:
http://support.runrev.com/bugdatabase/show_bug.cgi?id=2644
Freaky, but at least there's a workaround.
Thanks, Éric.
Amicalement,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la french touch
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   [EMAIL PROTECTED]/
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


Re: Setting a character with imagesource through htmlText?

2005-03-02 Thread Mark Wieder
Scott-

Wednesday, March 2, 2005, 7:05:10 AM, you wrote:

SR So using the imageSource property appears to effectively cloak the
SR selected character, while setting the HTMLtext by script gives the expected
SR results.

Possibly Bugzillaing an enhancement request for the img tag to
support an optional alt syntax would take care of the problem. It
*is* part of html, so it would be conforming to standards.

tesimg src=1005 alt=st

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: Newbie Here

2005-03-02 Thread Mark Wieder
Michael-

Tuesday, March 1, 2005, 7:41:14 PM, you wrote:

M I see how this works, but how do I run it ? as the url ?

The put command will retrieve the executable file from the custom
property and put it wherever you tell it. From there you can run it
using the launch or shell commands.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: Math wizardry

2005-03-02 Thread Richard K. Herz
Richard Miller asked:
I've got two line graphics drawn on the screen. I need to find out if
they intersect and, if so, what the angle is that is formed by their
intersection. Any simple way to do this?
See, e.g.,
http://www.ugrad.math.ubc.ca/coursedoc/math100/notes/zoo/eqline.html
for each line defined by endpoints x1,y1 and x2,y2
st line equation y = m*x + b (m = slope, b = y intercept at x = 0)
m = (y2 - y1)/(x2 - x1) = slope of line
b = y1 - m*x1 = intersection of line with y axis at x = 0
for two lines, get m1 and m2, b1 and b2
Any two nonparallel lines (m1 not m2) intersect
find x such that y's are equal
m1*x + b1 = m2*x + b2
x = (b2 - b1)/(m1 - m2)  = x at intersection
y at intersection = m1*x + b1 = m2*x + b2
slope m1 = tangent of angle A1 between line 1 and x-axis
angle A1 = inverse tangent(m1) = atan(m1) in Rev
angle A2 = inverse tangent(m2)
see http://www.mathwords.com/t/tangent_inverse.htm
A2 - A1 = one pair of the two pairs of angles formed by the intersection of
two straight lines, with the other pair being pi radians (180 degrees) minus
this angle
Note that Rev and most other languages refer to angles in radians rather
than degrees in their trig functions.
Of course, work out a few examples and graph them to double-check this and
to understand the angle values returned.
Rich Herz
[EMAIL PROTECTED]

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


Re : scale w/ ticks and snap-to

2005-03-02 Thread Éric Chatonet
Hi Richard, Paul and Ken,
In my last post, point 3 was nonsense ;-)
3. In the scrollbarDrag handler, I prefer set the thumbPos of me to 
round(the thumbPos of me) to set the thumbPos of me to the thumbPos of 
me:
Using round function allows the cursor to follow exactly the mouse 
movement and snap gently at mouseUp
Without round function,  the cursor snaps when the mouse is down (it 
always wins this terrific struggle...) and I don't like interface 
elements that don't obey to the user (i.e. me  :-)
In fact, you are right: using the round function is unnecessary.
The difference is that you use set the thumbPos of me to the thumbPos 
of me in a scrollbarDrag handler and I use it in the mouseUp handler.
So the cursor follows exactly the mouse movement and snap gently at 
mouseUp or snaps when scrollbarDragging...

Best regards,
Le 2 mars 05, à 16:22, Richard Gaskin [EMAIL PROTECTED] a 
écrit :

Éric Chatonet wrote:
I proposed a little script to manage a scrollbar with snap-to behavior
so the indicator lines up with the ticks (displayed with Mac OS).
In fact, my script (changing the numberFormat property) was too much
complicated.
The following code is enough to do the job:
on scrollbarDrag pPos
  set the pageInc of me to the endValue of me / (the endValue of me + 
1)
end scrollbarDrag

on mouseUp
  set the thumbPos of me to round(the thumbPos of me)
end mouseUp
The behavior seems to work the same here for me with a script 
containing
only:

on mouseUp
   set the thumbPos of me to the thumbpos of me
end mouseUp
Since the thumbpos is an integer, it does the post-drag snap-to.  I had
hoped to find a snap-as-you-go behavior, and I've gotten close but it's
still a tad jerky (if only we had a preScrollBarDrag message g).
But here's where things get freaky - try this at home:
1. Make a new mainstack
2. Drop a scale onto it
3. Set these properties:
  startValue: 1
  endValue:   5
  pageInc:1
  lineInc:0
  thumbsize:  1
Freak-o-rama:  I see a slider with 4 (count 'em, four!) tick marks.
With a scale of 1 to 5, I would expect 5.
Ultra-freak-o-rama:  Éric's has the same properties set just like mine,
but his has 5 (count 'em, five!) tick marks.
Works the same in Rev and MC.
The mystery deepens: I can copy Éric's, change the endValue to 6, and
get 6 tick marks.  But if I change the endValue to 4 I get 3 tick 
marks.

How comes such to be?  :\
You can examine both scrollbars here:
   go url http://fourthworld.net/scroll_bar_test.mc;
Paul Looney, Ken Ray, and I have scratched our heads over this today.
Mystified?
It turns out that while Eric's first handler doesn't affect behavior, 
it
does affect appearance.  This bit:

  on scrollbarDrag pPos
   set the pageInc of me to the endValue of me/(the endValue of me +1)
  end scrollbarDrag
...apparently takes care of a bug in the engine.  As soon as you scroll
it you get the tick marks appearing as you would expect.  Apparently
this continues to work even with that handler disabled until the next
time the pageInc or thumbSize is set.
I could't find a Bugzilla report for this, so I just filed one:
http://support.runrev.com/bugdatabase/show_bug.cgi?id=2644
Freaky, but at least there's a workaround.
Thanks, Éric.
Amicalement,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la french touch
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   [EMAIL PROTECTED]/
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


Re: UDP sockets - again

2005-03-02 Thread Mark Wieder
Alex-

Tuesday, March 1, 2005, 5:17:54 PM, you wrote:

AT There are a few other circumstances where you might want to choose UDP
AT rather than TCP, apart from the speed and low overhead cases.

Thanks. I wasn't aware that VOIP used UDP.

AT (And unfortunately, Rev doesn't support either multicast or PGM).
AT (Actually, I think Rev doesn't fully handle broadcast - I can get it to
AT send to a local-broadcast address and they are received by other devices
AT - but I can't get Rev to receive them ... will experiment some more with
AT that later)

This explains a lot. I had tried multicasting and decided there was
some problem with the network configuration. Tell me about PGM -
preferably off-list, since this is starting to get very OT, but I'm
posting the request here in case there's other interest.

AT 4. Low frequency (or very low frequency) packet exchange.

I think I'd still set up a tcp handler for this. In fact, I have. I've
worked with remote data collection devices that would send a few
packets every hour or so and we've used tcp for the connection. Of
course, in that case data loss was very important.

AT In general, my advice would be - always use TCP except when you can't.

Agreed.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: Newbie Here

2005-03-02 Thread Mike
Mark
Worked out great thanks for all your help !

- Original Message - 
From: Mark Wieder [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: Wednesday, March 02, 2005 11:45 AM
Subject: Re: Newbie Here


 Michael-
 
 Tuesday, March 1, 2005, 7:41:14 PM, you wrote:
 
 M I see how this works, but how do I run it ? as the url ?
 
 The put command will retrieve the executable file from the custom
 property and put it wherever you tell it. From there you can run it
 using the launch or shell commands.
 
 -- 
 -Mark Wieder
  [EMAIL PROTECTED]
 
 ___
 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


custom property searching speed question

2005-03-02 Thread Lynch, Jonathan

Say you had a custom property set - theProps
And the keys of this set were 1 through 500,000

So, basically, you had an array with half a million elements stored as a
custom property set. Then, you wanted to search that array, and do it in
such a way that the search returned the name and content of the first
custom property that contains the item for which you search.

Would the following method be fastest?

  Set the custompropertyset to theProps
  Put 0 into Z
  Repeat for each element E in the customproperties of myobject
Add 1 to Z
If E contains searchterm then exit repeat
  End repeat
  Put Z  the customproperties[Z] of myobject into field feedback


My questions are this:
1) Is there a better or faster-access way to store the array than as a
custom property set?

2) Is there a search method that is faster than doing all those
comparisons in transcript? For example, lineoffset and itemoffset are
supposed to be very fast. Is it possible to use itemoffset on an array,
or is there anything that works like an elementoffset command would
work, if it existed?

3) Would it be faster to combine the array, and use itemoffset?

4) Could filter be made to work in this situation, or would it only give
the value of the element, but not the name of the element?

5) Anything faster that I am not thinking of?

Thanks,

Jonathan

--


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


Are there any complicated DB tutorials?

2005-03-02 Thread Len Morgan
Are there any tutorials, sample stacks, etc. that demonstrate how to use 
the database functions OTHER THAN the simple 
connection/first/next/previous/last record examples?  I need to read in 
blocks of records in many cases, not just one at a time. 

Any pointers would be appreciated.
Thanks!
Len Morgan
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: custom property searching speed question

2005-03-02 Thread Richard Gaskin
Lynch, Jonathan wrote:
Say you had a custom property set - theProps
And the keys of this set were 1 through 500,000
So, basically, you had an array with half a million elements stored as a
custom property set. Then, you wanted to search that array, and do it in
such a way that the search returned the name and content of the first
custom property that contains the item for which you search.
Would the following method be fastest?
  Set the custompropertyset to theProps
  Put 0 into Z
  Repeat for each element E in the customproperties of myobject
Add 1 to Z
If E contains searchterm then exit repeat
  End repeat
  Put Z  the customproperties[Z] of myobject into field feedback
My questions are this:
1) Is there a better or faster-access way to store the array than as a
custom property set?
Using repeat for each line on a string benchmarked about 20% faster 
here than using repeat for each element on an array.

I only tested on 40,000 lines, though.  In general repeat for each... 
scales well, so I would feel fairly confident extrapolating my results 
to larger data sets.

2) Is there a search method that is faster than doing all those
comparisons in transcript? For example, lineoffset and itemoffset are
supposed to be very fast. Is it possible to use itemoffset on an array,
or is there anything that works like an elementoffset command would
work, if it existed?
3) Would it be faster to combine the array, and use itemoffset?
Offset can rip through large blocks of text very fast, but it's not very 
precise.

For example, in my case I had to do comparisons on specific items within 
a line.  LineOffset will get you to that line, but won't tell you where 
within that line it is.

With a low number of hits lineOffset can be faster to find the line, and 
then you could evaluate specific elements to find the item if needed.

But for larger numbers of hits it should be slower, since once you find 
the line you still need to get line x, and that requires the engine to 
count lines.  Requiring the engine to count lines is the bottleneck.

So for my purposes, using repeat for each line gave me a consistently 
scalable solution which allowed me to query any items within a line 
without ever having to count lines.  So lazy person that I am, I stopped 
there and moved on to other things. :)

4) Could filter be made to work in this situation, or would it only give
the value of the element, but not the name of the element?
Filter may benchmark the fastest if you're looking for an item anywhere 
in a line (never tried it myself, since I need to  find matches for 
specific items within lines, but worth testing).

5) Anything faster that I am not thinking of?
Probably.  Search algorithms are a deep subject, and there's always one 
more clever way to solve a given problem.

I stopped benchmarking these things once I found that repeat for each 
line was coming out okay.  Because I have so many comparisons to 
perform on specific items within a line, it gave me a robust (though 
admittedly brute force) solutuion with acceptable performance on data 
sets larger than will be needed in real-world performance with my app's 
audience.

But with half a million records it begs the question:  Why not consider 
a database, where searching is done by compiled code optimized by people 
who specialize in such things?

--
 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: Are there any complicated DB tutorials?

2005-03-02 Thread Trevor DeVore
On Mar 2, 2005, at 12:12 PM, Len Morgan wrote:
Are there any tutorials, sample stacks, etc. that demonstrate how to  
use the database functions OTHER THAN the simple  
connection/first/next/previous/last record examples?  I need to read  
in blocks of records in many cases, not just one at a time.
Any pointers would be appreciated.
You could take a look at the code in my libDatabase library.  The  
library has code for creating arrays from recordsets that you can  
easily iterate through.  You can read about it here:

http://mangomultimedia.com/developer/revolution/ 
libDatabase_article.html


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


Drawer Display Bug?

2005-03-02 Thread Scott Rossi
Can anyone confirm if there's some kind of strange display bug with images
in drawers on OSX?

I have a bunch of buttons with icons set (PNGs) in a scrolling group in a
drawer stack.  I notice that the button icons will suddenly appear jagged
after switching to Rev from another app -- it's almost as if the alphaData
of the icon images is being temporarily lost. Moving the drawer or scrolling
the group causes the button icons to display correctly.  Locking the screen
for a moment seems to help, but as soon I switch out of rev and then back,
the icon images appear jagged again.

Anyone else encounter any problems with images in drawer stacks?

Thanks  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


cgi scripting for Miva

2005-03-02 Thread Marty Knapp
I haven't done any cgi scripting with Rev, but I'm needing to put together
something for a Miva Merchant store that I'm just setting up. Here's the
scenario:

A customers orders products from our Miva store, I get the order as a simple
email. I then forward it along with the attachment of a .pdf file of the
product and a .pdf mailing label to a fulfillment center that prints the
product and the label on demand and sends the order on to the customer.
There will be hundreds of different .pdf files, with new ones being added
from time to time. Storing my .pdfs at the fulfillment center is not an
option.

There are modules that you can add to Miva that will send emails with
attachments to the customer, but none that I'm aware of that will send
attachments to a vendor. I did find a module that will send XML data to a
vendor, but not an attachment without the help of something else.

Being a Revolution hobbyist I thought maybe there was a solution there.

Any comments? Am I in over my head?


Marty Knapp

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


Re: Mortgage calc.

2005-03-02 Thread Hershel Fisch
On 3/2/05 10:57 AM, Gregory Lypny [EMAIL PROTECTED] wrote:
Thanks, First I need to be able to do a simple mortgage calculation e.g.
300,000.00 loan for a period of 30 years. After I have this then I could go
on and do my cap rates, cash on cash and property value and so on.
Hershel Fisch

 Hershel,
 
 Can you post an example of your calculation?  I can give you a direct
 calculation that doesn't require the annuity function so that you'll
 have more control of day adjustments and the like.  Mine is for
 Canadian mortgages but you will be able to modify it easily for
 American mortgages.
 
 Greg
 
 
 On Mar 2, 2005, at 10:22 AM, [EMAIL PROTECTED]
 wrote:
 
 Hi all I'm trying to write a mortgage function and I can't get right.
 Some how the annuity function doesn't do it the way I understand it
 should.
 Any help is appreciated.
 Hershel
 
 ___
 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: cgi scripting for Miva

2005-03-02 Thread Richard Gaskin
Marty Knapp wrote:
I haven't done any cgi scripting with Rev, but I'm needing to put together
something for a Miva Merchant store that I'm just setting up. Here's the
scenario:
A customers orders products from our Miva store, I get the order as a simple
email. I then forward it along with the attachment of a .pdf file of the
product and a .pdf mailing label to a fulfillment center that prints the
product and the label on demand and sends the order on to the customer.
There will be hundreds of different .pdf files, with new ones being added
from time to time. Storing my .pdfs at the fulfillment center is not an
option.
There are modules that you can add to Miva that will send emails with
attachments to the customer, but none that I'm aware of that will send
attachments to a vendor. I did find a module that will send XML data to a
vendor, but not an attachment without the help of something else.
Miva sales emails are consitently formatted. Why not just parse those? 
Does it have to be XML?

--
 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: cgi scripting for Miva

2005-03-02 Thread Marty Knapp

 I haven't done any cgi scripting with Rev, but I'm needing to put together
 something for a Miva Merchant store that I'm just setting up. Here's the
 scenario:
 
 A customers orders products from our Miva store, I get the order as a simple
 email. I then forward it along with the attachment of a .pdf file of the
 product and a .pdf mailing label to a fulfillment center that prints the
 product and the label on demand and sends the order on to the customer.
 There will be hundreds of different .pdf files, with new ones being added
 from time to time. Storing my .pdfs at the fulfillment center is not an
 option.
 
 There are modules that you can add to Miva that will send emails with
 attachments to the customer, but none that I'm aware of that will send
 attachments to a vendor. I did find a module that will send XML data to a
 vendor, but not an attachment without the help of something else.
 
 Miva sales emails are consitently formatted. Why not just parse those?
 Does it have to be XML?
 
 --
 Richard Gaskin
 Fourth World Media Corporation

What I'd like to do is store my pdf files online and when an order is
placed, somehow have them automatically sent to my fulfillment center
without any interaction on my part. And no it doesn't have to be XML, that's
just what that particular module provides.

Marty

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


Re: cgi scripting for Miva

2005-03-02 Thread Richard Gaskin
Marty Knapp wrote:
I haven't done any cgi scripting with Rev, but I'm needing to put together
something for a Miva Merchant store that I'm just setting up. Here's the
scenario:
A customers orders products from our Miva store, I get the order as a simple
email. I then forward it along with the attachment of a .pdf file of the
product and a .pdf mailing label to a fulfillment center that prints the
product and the label on demand and sends the order on to the customer.
There will be hundreds of different .pdf files, with new ones being added
from time to time. Storing my .pdfs at the fulfillment center is not an
option.
There are modules that you can add to Miva that will send emails with
attachments to the customer, but none that I'm aware of that will send
attachments to a vendor. I did find a module that will send XML data to a
vendor, but not an attachment without the help of something else.
Miva sales emails are consitently formatted. Why not just parse those?
Does it have to be XML?
What I'd like to do is store my pdf files online and when an order is
placed, somehow have them automatically sent to my fulfillment center
without any interaction on my part. And no it doesn't have to be XML, that's
just what that particular module provides.
One method would be to have a copy of the order emails sent to a 
separate mailbox, and then make a mail client with Rev that will get the 
mail, parse the messages and respond as you like.

But perhaps simpler would be to modify the XML of whatever Miva 
component is currently the closest match to what you need.  The Miva 
scripting language is pretty flexible and sometimes kinda fun, so it 
could be customized with a little effor (provided, of course, that the 
vendor of the Miva module distributes a non-compiled version, or can 
make one available for you).

--
 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: custom property searching speed question

2005-03-02 Thread Lynch, Jonathan
Does filter work on an array?

Anyway, I experimented with a customproperty set created to contain
500,000 elements - each element contains like 7 words. Only the very
last element contains the word nonstandard

So far, the following script is fastest:

on mouseUp
  put the milliseconds into M
  put field search text into ST
  put the customproperties of field theData into myArray
  repeat for each element E in myArray
if matchchunk(E,ST) = true then
  put E into field output
  exit repeat
end if
  end repeat
  put the milliseconds into M2
  put (M2 - M)/1000 into field feedback
end mouseUp

Each element was created so that the name of that element is the first
word of the element - meaning I do not have to keep track of which
element we are dealing with - as long as I have the value of the
element, I automatically have the name of the element as well.

If the word being searched for is in the 500,000th element of the custom
property set, then it takes 1.059 seconds to find (with like 4 other
programs running on my computer at the same time)

If the elements are already combined into a single variable, then
lineoffset takes just as long!

I guess repeat for each is exceedingly fast.

If I could figure out how to use filter on an array - and how to get it
to work in the same way as using contains then I would test it with
the filter command - but so far this eludes me.

In my experiements with this, it seems that an if-then structure was
faster than a switch structure - is this always true?

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


Re: UDP sockets - again

2005-03-02 Thread Dar Scott
On Mar 1, 2005, at 6:17 PM, Alex Tweedly wrote:
(Actually, I think Rev doesn't fully handle broadcast - I can get it 
to send to a local-broadcast address and they are received by other 
devices - but I can't get Rev to receive them ... will experiment some 
more with that later)
I created a poorman's resource finder in Rev.  One of the problems that 
I found was that on some OSes the broadcast destinations included the 
sender's computer (Windows and Mac 9.2) but on others it did not (OS 
X).  I assumed this was a unix goof and not Revolution, but I could be 
wrong.

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: Mortgage calc.

2005-03-02 Thread Dar Scott
On Mar 2, 2005, at 1:53 PM, Hershel Fisch wrote:
Thanks, First I need to be able to do a simple mortgage calculation 
e.g.
300,000.00 loan for a period of 30 years.
I have some vague memory of some problem with dates after 2035, but I 
can't quite place it.

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: Drawer Display Bug?

2005-03-02 Thread Malte Brill
Hey Scott,
I seldomly use drawers, so I checked it just out of curiousity.
Confirmed for Rev 2.2 OsX.2.6
But in my case only closing and reopening the drawer helps.
Cheers,
Malte
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: cgi scripting for Miva

2005-03-02 Thread Marty Knapp
On 3/2/05 1:36 PM, Richard Gaskin [EMAIL PROTECTED] wrote:

 One method would be to have a copy of the order emails sent to a
 separate mailbox, and then make a mail client with Rev that will get the
 mail, parse the messages and respond as you like.
Sorry for my ignorance :) but could such a Rev mail client intercept these
emails, say once a day, without interaction on my part?
 
 But perhaps simpler would be to modify the XML of whatever Miva
 component is currently the closest match to what you need.  The Miva
 scripting language is pretty flexible and sometimes kinda fun, so it
 could be customized with a little effor (provided, of course, that the
 vendor of the Miva module distributes a non-compiled version, or can
 make one available for you).

There are two modules, one by Copurnicus called FULCUSTON and one by Truxoft
called XML Fulfilment. I think they both provide a standard xml format and
I know Copurnicus sells an add-on to tinker with the xml. Copurnicus
mentions in their docs that their program could be linked to a user-provided
cgi for further processing.

I've never done any cgi scripting, so I'm wondering if I have the goods to
put this together. It would be worth some effort, though, so that I'm not
having to babysit this every day.

Thanks for any more input!

Mart

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


UNIX Engines

2005-03-02 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Has anyone heard any recent news on when the Rev 2.5 engines for UNIX 
(Solaris, IRIX, BSD, etc.) will show up?

From what I can see, there is still no sign of them...
- ---
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)

iD8DBQFCJjvB7aqtWrR9cZoRAvmPAJ9K/1Vbb9ex1h9XL6UtqufZg3gHawCgiNG2
cJ8rHmXu/MCJGCppFS9CwSA=
=7dIV
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 120MB 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: UDP sockets - again

2005-03-02 Thread Alex Tweedly
Mark Wieder wrote:
AT (And unfortunately, Rev doesn't support either multicast or PGM).
AT (Actually, I think Rev doesn't fully handle broadcast - I can get it to
AT send to a local-broadcast address and they are received by other devices
AT - but I can't get Rev to receive them ... will experiment some more with
AT that later)
This explains a lot. I had tried multicasting and decided there was
some problem with the network configuration. Tell me about PGM -
preferably off-list, since this is starting to get very OT, but I'm
posting the request here in case there's other interest.
 

Rev does support sending either broadcast or multicast - I can send UDP 
packets to 192.168.0.255 and also to 224.0.0.251 and receive them on my 
(on-Rev) echo server.

But it doesn't support receiving them - there's no access to raw sockets 
or to setsocketopt(). Thus, there is no way to let the system know which 
multicast groups are to be received (necessary both to get the system to 
send / respond to IGMP packets as well as to set the correct bits in the 
Ethernet driver to receive the packets).  (Not sure yet about receiving 
broadcast)

If there's anyone overhearing this and wondering what on earth multicast 
is, and wanting a techie intro  
http://www.cisco.com/warp/public/cc/pd/iosw/prodlit/ipimt_ov.htm

I'll send you PGM info off-list.
--
Alex Tweedly   http://www.tweedly.net

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


Re: Revolutionaries in New Zealand?

2005-03-02 Thread Monte Goulding

One can not wade the Tasman?
You could try but I wouldn't suggest it. Even if you made it the 1000 mile 
trot from the east coast is nasty ;-)

Pass the word. Thanks.
Sure
Cheers
--
Monte Goulding
Sweat Technologies
InstallGadget - How to create an installer in 10 seconds
Download now from: http://www.sweattechnologies.com/InstallGadget 

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


RE: custom property searching speed question

2005-03-02 Thread Lynch, Jonathan
More tinkering and testing of timing...

I changed the customproperty set so that it contains 500,000 records
with 3 items in each record.

Item 1, the name of the element
Item 2, a bunch of words
Item 3, a number (100)

I created a script that gets the sum of column 3 of this data set - that
is, it adds up item 3 for each element.

This script:

on mouseUp
  put the milliseconds into M
  put the customproperties of field theData into myArray
  put 0 into tSum
  set the itemdelimiter to numtochar(30)
  repeat for each element E in myArray
   add item 3 of E to tSum
  end repeat
  put tSum into field output
  put ((the milliseconds)-M)/1000 into field feedback
end mouseUp

produces the correct result in .486 seconds!

Half a second to sum a column of 500,000 items! 

For comparison purposes - how fast would summing up the third column for
half-a-million records get done in a professional database program?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lynch,
Jonathan
Sent: Wednesday, March 02, 2005 5:03 PM
To: How to use Revolution
Subject: RE: custom property searching speed question

Does filter work on an array?

Anyway, I experimented with a customproperty set created to contain
500,000 elements - each element contains like 7 words. Only the very
last element contains the word nonstandard

So far, the following script is fastest:

on mouseUp
  put the milliseconds into M
  put field search text into ST
  put the customproperties of field theData into myArray
  repeat for each element E in myArray
if matchchunk(E,ST) = true then
  put E into field output
  exit repeat
end if
  end repeat
  put the milliseconds into M2
  put (M2 - M)/1000 into field feedback
end mouseUp

Each element was created so that the name of that element is the first
word of the element - meaning I do not have to keep track of which
element we are dealing with - as long as I have the value of the
element, I automatically have the name of the element as well.

If the word being searched for is in the 500,000th element of the custom
property set, then it takes 1.059 seconds to find (with like 4 other
programs running on my computer at the same time)

If the elements are already combined into a single variable, then
lineoffset takes just as long!

I guess repeat for each is exceedingly fast.

If I could figure out how to use filter on an array - and how to get it
to work in the same way as using contains then I would test it with
the filter command - but so far this eludes me.

In my experiements with this, it seems that an if-then structure was
faster than a switch structure - is this always true?

___
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: Drawer Display Bug?

2005-03-02 Thread Scott Rossi
Recently, I wrote:

 Can anyone confirm if there's some kind of strange display bug with
 images in drawers on OSX?


Recently, Malte Brill responded:

 I seldomly use drawers, so I checked it just out of curiousity.
 
 Confirmed for Rev 2.2 OsX.2.6
 
 But in my case only closing and reopening the drawer helps.

Thanks Malte.  I don't use drawers often either, and maybe few folks do
since I don't seem to recall anyone reporting this before.

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: custom property searching speed question

2005-03-02 Thread Richard Gaskin
Lynch, Jonathan wrote:
More tinkering and testing of timing...
I changed the customproperty set so that it contains 500,000 records
with 3 items in each record.
Item 1, the name of the element
Item 2, a bunch of words
Item 3, a number (100)
I created a script that gets the sum of column 3 of this data set - that
is, it adds up item 3 for each element.
This script:
on mouseUp
  put the milliseconds into M
  put the customproperties of field theData into myArray
  put 0 into tSum
  set the itemdelimiter to numtochar(30)
  repeat for each element E in myArray
   add item 3 of E to tSum
  end repeat
  put tSum into field output
  put ((the milliseconds)-M)/1000 into field feedback
end mouseUp
produces the correct result in .486 seconds!
Half a second to sum a column of 500,000 items! 
What kind of hardware are you using?  Tests like that usually take me at 
least 2 seconds on my PBG4/1KHz.

Have you tried looping through lines in a combined string? If your 
results are like mine you'll shave another 20% off.

Yep, kinda hard to beat the performance of a RAM-based database when you 
have the RAM to architect like that...

--
 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: custom property searching speed question

2005-03-02 Thread Alex Tweedly
Lynch, Jonathan wrote:
Anyway, I experimented with a customproperty set created to contain
500,000 elements - each element contains like 7 words. Only the very
last element contains the word nonstandard
So far, the following script is fastest:
on mouseUp
 put the milliseconds into M
 put field search text into ST
 put the customproperties of field theData into myArray
 repeat for each element E in myArray
   if matchchunk(E,ST) = true then
 put E into field output
 exit repeat
   end if
 end repeat
 put the milliseconds into M2
 put (M2 - M)/1000 into field feedback
end mouseUp
 

Just a warning / reminder :
   repeat for each element E in myArray
will process each and every element of the array - but it will do it in 
internal (hash value) order. So when you say only the very last 
element  contains ..., you need to be aware that they are not being 
looked at in the order you might think - i.e. the one containing that 
word may be looked at much earlier because of the hashing of the key values.

So in your original problem statement, you said (something like) and 
find the first one that contains - first has a fairly loose meaning 
in the context of an array  if order is crucial to you, you may need 
to take the keys of the array, sort that, and then access the elements 
by lookup - this will be much, much slower.

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

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


RE: custom property searching speed question

2005-03-02 Thread Lynch, Jonathan
I am on a dell optiplex GX 270

For each line might get faster - but if I can keep my data stored, at
least partly, in custom properties, that would be very helpful. It's the
whole relational concept. Instead of storing text, a given cell could
store something like {Item 4 of the customproperties[120345] of field
myTable1}.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Richard
Gaskin
Sent: Wednesday, March 02, 2005 5:36 PM
To: How to use Revolution
Subject: Re: custom property searching speed question

Lynch, Jonathan wrote:
 More tinkering and testing of timing...
 
 I changed the customproperty set so that it contains 500,000 records
 with 3 items in each record.
 
 Item 1, the name of the element
 Item 2, a bunch of words
 Item 3, a number (100)
 
 I created a script that gets the sum of column 3 of this data set -
that
 is, it adds up item 3 for each element.
 
 This script:
 
 on mouseUp
   put the milliseconds into M
   put the customproperties of field theData into myArray
   put 0 into tSum
   set the itemdelimiter to numtochar(30)
   repeat for each element E in myArray
add item 3 of E to tSum
   end repeat
   put tSum into field output
   put ((the milliseconds)-M)/1000 into field feedback
 end mouseUp
 
 produces the correct result in .486 seconds!
 
 Half a second to sum a column of 500,000 items! 

What kind of hardware are you using?  Tests like that usually take me at

least 2 seconds on my PBG4/1KHz.

Have you tried looping through lines in a combined string? If your 
results are like mine you'll shave another 20% off.

Yep, kinda hard to beat the performance of a RAM-based database when you

have the RAM to architect like that...

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


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


RE: custom property searching speed question

2005-03-02 Thread Lynch, Jonathan
When I created the custom property set, I set the numberformat to
##. Thus, element 1 is actually named 01. The unsorted list
of the keys is not quite in alphanumeric order, because almost. When I
put the unsorted list of the keys in the message box, key 50 is
indeed the last key.

I also tested this with putting the unusual item in element 30,
and it took like .75 seconds to return the result.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex
Tweedly
Sent: Wednesday, March 02, 2005 5:58 PM
To: How to use Revolution
Subject: Re: custom property searching speed question

Lynch, Jonathan wrote:

Anyway, I experimented with a customproperty set created to contain
500,000 elements - each element contains like 7 words. Only the very
last element contains the word nonstandard

So far, the following script is fastest:

on mouseUp
  put the milliseconds into M
  put field search text into ST
  put the customproperties of field theData into myArray
  repeat for each element E in myArray
if matchchunk(E,ST) = true then
  put E into field output
  exit repeat
end if
  end repeat
  put the milliseconds into M2
  put (M2 - M)/1000 into field feedback
end mouseUp

  

Just a warning / reminder :
repeat for each element E in myArray
will process each and every element of the array - but it will do it in 
internal (hash value) order. So when you say only the very last 
element  contains ..., you need to be aware that they are not being 
looked at in the order you might think - i.e. the one containing that 
word may be looked at much earlier because of the hashing of the key
values.

So in your original problem statement, you said (something like) and 
find the first one that contains - first has a fairly loose meaning 
in the context of an array  if order is crucial to you, you may need

to take the keys of the array, sort that, and then access the elements 
by lookup - this will be much, much slower.

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



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.3 - Release Date: 01/03/2005

___
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: custom property searching speed question

2005-03-02 Thread Michael D Mays
Only 2 seconds?  I would think about a month. ;)
Michael
On Mar 2, 2005, at 4:36 PM, Richard Gaskin wrote:
PBG4/1KHz.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revolutionaries in New Zealand?

2005-03-02 Thread rodney tamblyn
Hi Paul,
Would love to meet you if you make it as far south as Dunedin (bottom 
half of the South Island of NZ).

~ Rodney
On 2/03/2005, at 4:48 PM, [EMAIL PROTECTED] wrote:
 I live in beautiful San Dimas, California - which is ideally 
suited for
monthly trips to the So. Cal. Rev. Dev. Meeting. It is a wonderful 
meeting,
but perhaps a bit distant for dwellers in the South Pacific.
 This month my wife and I are spending the Easter Holiday in Mt.
Maunganui on the Bay of Plenty - with two visits to Auckland. Would 
love to meet any
southern hemisphere revolutionaries and discuss the state of things.
 Do note: I do not, in any way, represent Revolution - the mother 
ship. I
have no authority, special influence or insider knowledge; I represent 
only
myself.
Sincerely,
Paul Looney
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


--
Rodney Tamblyn
OceanBrowser Ltd
44 Melville Street
Dunedin, New Zealand
Ph +64-3-4778606 extension 1
iax2:oceanbrowser.dyndns.info/rodney
http://www.oceanbrowser.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: custom property searching speed question

2005-03-02 Thread Alex Tweedly
Richard Gaskin wrote:
Lynch, Jonathan wrote:
More tinkering and testing of timing...
I changed the customproperty set so that it contains 500,000 records
with 3 items in each record.
Item 1, the name of the element
Item 2, a bunch of words
Item 3, a number (100)
I created a script that gets the sum of column 3 of this data set - that
is, it adds up item 3 for each element.
This script:
on mouseUp
  put the milliseconds into M
  put the customproperties of field theData into myArray
  put 0 into tSum
  set the itemdelimiter to numtochar(30)
  repeat for each element E in myArray
   add item 3 of E to tSum
  end repeat
  put tSum into field output
  put ((the milliseconds)-M)/1000 into field feedback
end mouseUp
produces the correct result in .486 seconds!
Half a second to sum a column of 500,000 items! 

What kind of hardware are you using?  Tests like that usually take me 
at least 2 seconds on my PBG4/1KHz.
1Khz ?  That's your problem - most of us are using machines measured in 
Mhz or Ghz these days. :-)
The script below (which creates the data as well, so you can see exactly 
what it is doing) takes .236 seconds on my laptop (2.8G Pentium 4)

Have you tried looping through lines in a combined string? If your 
results are like mine you'll shave another 20% off.

Only saves 4% for me. (And the combine took over a second - 500% of 
the summation cost !)

on mouseUp
 local M, myArray
 local i, E, tSum, t
 put empty into field lockedField
 put the millisecs into M
 repeat with i = 1 to 50
   put a  i into t
   put t  ,b c d,2 into  myArray[t]
 end repeat
 put the millisecs-M  cr after field lockedField
 put the millisecs into M
 put 0 into tSum
 repeat for each element E in myArray
   add item 3 of E to tSum
 end repeat
 put ((the milliseconds)-M)/1000  tSum  cr after field lockedField
 put the millisecs into M
 combine myArray with cr
 put ((the milliseconds)-M)/1000  cr after field lockedField
 put the millisecs into M
 put 0 into tSum
 repeat for each line E in myArray
   add item 3 of E to tSum
   --put E  cr  after field lockedField
 end repeat
 put ((the milliseconds)-M)/1000  tSum  cr after field lockedField
end mouseUp

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

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


BootableDVD

2005-03-02 Thread Michael
 
I'm looking to create a linux bootable DVD to run just a Rev
application, no hdd on the machine just a DVD player. Has anyone built
something like this, I'm looking for some starting points. My line of
thought here is which distro is best and if a graphic engine is needed,
xwindows, kde or.. Any suggestions would be much appreciated. 
Thanks 
Michael  
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Mortgage calc.

2005-03-02 Thread Hershel Fisch
On 3/2/05 5:05 PM, Dar Scott [EMAIL PROTECTED] wrote:

 
 On Mar 2, 2005, at 1:53 PM, Hershel Fisch wrote:
 
 Thanks, First I need to be able to do a simple mortgage calculation
 e.g.
 300,000.00 loan for a period of 30 years.
 
 I have some vague memory of some problem with dates after 2035, but I
 can't quite place it.
 
I don't think this is a date problem, I think its a 30 period issue.
E.g. 300,000.00 loan for 30 periods at lets say 6.5 % interest (which the
annuity function doesn't give the right amount). Then I divide it into 12 I
have a monthly payment. After I have all this info. I'm in business.
Hershel
 Dar

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


Re: custom property searching speed question

2005-03-02 Thread Richard Gaskin
Alex Tweedly wrote:
Have you tried looping through lines in a combined string? If your 
results are like mine you'll shave another 20% off.

Only saves 4% for me. (And the combine took over a second - 500% of 
the summation cost !)
Of course. In my case I had the option of storing either as a chunk or 
an array so my measurements included only the actual lookup time, not 
any of the setup.

--
 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: UDP sockets - again

2005-03-02 Thread Dar Scott
On Mar 2, 2005, at 3:19 PM, Alex Tweedly wrote:
(Not sure yet about receiving broadcast)
You can receive broadcast.  You can't control what IP address you are 
listening on, though, if you are multihomed.

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: custom property searching speed question

2005-03-02 Thread Monte Goulding

Alex Tweedly wrote:
Have you tried looping through lines in a combined string? If your 
results are like mine you'll shave another 20% off.

Only saves 4% for me. (And the combine took over a second - 500% of the 
summation cost !)
Of course. In my case I had the option of storing either as a chunk or an 
array so my measurements included only the actual lookup time, not any of 
the setup.
Well... if there's an option of altering the storage might I suggest using 
three parallel custom property sets. The sum would then only require reading 
the set for what is currently item 3 into a variable and calling the sum 
function. I would be rather surprised if this wasn't blindingly fast

Cheers
Monte 

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


Re: Mortgage calc.

2005-03-02 Thread Jim Hurley
Message: 4
Date: Tue, 01 Mar 2005 19:46:14 -0500
From: Hershel Fisch [EMAIL PROTECTED]
Subject: Mortgage calc.
To: How to use Revolution use-revolution@lists.runrev.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII
Hi all I'm trying to write a mortgage function and I can't get right.
Some how the annuity function doesn't do it the way I understand it should.
Any help is appreciated.
Hershel

Hershel,
I wrote a stack to do Present Worth calculations some time ago. The 
second button in the stack should also give you the mortgage 
calculation you want.

In the message box:
go url http://home.infostations.net/jhurley/PresentWorth.rev;
Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Math wizardry

2005-03-02 Thread Richard Miller
Thanks Richard and Jim for the math. I suspect I'll have questions for 
one or both of you shortly.

Richard Miller

On Mar 2, 2005, at 12:51 PM, Richard K. Herz wrote:
Richard Miller asked:
I've got two line graphics drawn on the screen. I need to find out if
they intersect and, if so, what the angle is that is formed by their
intersection. Any simple way to do this?
See, e.g.,
http://www.ugrad.math.ubc.ca/coursedoc/math100/notes/zoo/eqline.html
for each line defined by endpoints x1,y1 and x2,y2
st line equation y = m*x + b (m = slope, b = y intercept at x = 0)
m = (y2 - y1)/(x2 - x1) = slope of line
b = y1 - m*x1 = intersection of line with y axis at x = 0
for two lines, get m1 and m2, b1 and b2
Any two nonparallel lines (m1 not m2) intersect
find x such that y's are equal
m1*x + b1 = m2*x + b2
x = (b2 - b1)/(m1 - m2)  = x at intersection
y at intersection = m1*x + b1 = m2*x + b2
slope m1 = tangent of angle A1 between line 1 and x-axis
angle A1 = inverse tangent(m1) = atan(m1) in Rev
angle A2 = inverse tangent(m2)
see http://www.mathwords.com/t/tangent_inverse.htm
A2 - A1 = one pair of the two pairs of angles formed by the 
intersection of
two straight lines, with the other pair being pi radians (180 degrees) 
minus
this angle
Note that Rev and most other languages refer to angles in radians 
rather
than degrees in their trig functions.
Of course, work out a few examples and graph them to double-check this 
and
to understand the angle values returned.

Rich Herz
[EMAIL PROTECTED]

___
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: Mortgage calc.

2005-03-02 Thread Gregory Lypny
OK, Hershel.  Here's the example.  You can tweak it to suit your 
purposes.

And my sincere apologies to everyone on the list for duplicating this 
lengthy message.  I had forgotten to enter a specific Subject in the 
first one

In Canada, ING Direct offers a three-year fixed term, twenty-five year 
mortgage for a posted rate of 4.45%.  They don't offer a thirty-year 
amortization; that's why I chose twenty-five.  For a $300,000 loan, you 
would be paying $1,652.09 per month.  My answer is correct to the 
penny.

Here's how to set up the problem.  Each variable is indicated in 
parentheses.

Posted annual rate (r1): .0445
Payment frequency (m): 12  (i.e., monthly)
Effective monthly rate (r2): 0.00367441421  (you'll figure it)
Amortization (N): 25 years
Principal (P): $300,000
Payment (A): $1,652.09  (you'll figure it)
Annuity factor (F): 181.58815514 (you'll figure it)
Step 1
You need to convert the posted rate (r1) to the effective monthly rate 
(r2) because the posted rate is always a year but the effective rate 
corresponds to the frequency of your payments (monthly, semi-monthly, 
bi-weekly, weekly, etc.).  Notice that r2 is not simply r1 divided by 
12 (or m).  That's because of compounding.  So you have to find r2 by 
answering this question:  what rate, r2, which when compounded for 12 
periods gives us r1?  The added twist in Canada is that, by convention, 
compounded is taken to occur semi-annually, so .0445 actually slightly 
understates the true posted rate.  I'm not sure if that's done in the 
US.  Confused yet?  Look at the numbers.  (The carets, ^, mean take to 
the power of...).

(1 + r2)^12 = (1 + r1/2)^2
Rearrange to solve for r2 in general to get
r2 = (1 + r1/2)^(2/m) - 1,
where (2/m) means take the mth root and square it.
Plug in the numbers to get
(1 + .0445/2)^(1/6) - 1 = 0.00367441421
	So, that's your effective monthly rate.  Change m to 4 and it becomes 
an effective quarterly rate; 52 and it's a weekly rate, and so on.  You 
may want to write a function for it.

Step 2
	Now you can use the effective rate in the standard annuity formula to 
get the annuity factor, F, that you'd use to divide any principal 
amount in order to compute the payment, A.

F = (1 - (1 + r2)^(-N*m))/r2
	Plug in the numbers.  Note N*m = 25 years x 12 months = 300 (easy) 
payments (ouch).

F = (1 - (1 + 0.00367441421)^(-300))/0.00367441421
F = 181.58815514
Create the function, F, which is itself a function of r2, N, and m.
Step 3
To get the monthly payment, just divide the principal by F.
A = P/F(another function you can create)
Plug in the numbers.
A = $300,000/181.58815514 = $1,652.09
	Or you can do create tables of A for a mortgage book like the banks 
used to use by computing A per $1,000 borrowed as a function of 
different rates, amortization periods, and frequency of payment.  In 
this example,

A = $5.5069671214 per $1,000 borrowed.
	Of course, you can collapse Steps 1 and 2 into 3 to create a function 
that computes the payment directly.

Regards,
Greg

Better for us if you don't understand.
-The Tragically Hip
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


help with tabbed fields

2005-03-02 Thread Byron
What terms do I use to refer to cells in a tabbed field. I'm trying 
to put 1 item per cell.  As I suspect people must ask about this 
regularly, I'm wondering if answer to these common questions are posted 
somewhere or if it were possible for Rev's documentation to be updated 
with such?

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


Re: Setting a character with imagesource through htmlText?

2005-03-02 Thread Jan Schenkel
--- Mark Wieder [EMAIL PROTECTED] wrote:
 Scott-
 
 Wednesday, March 2, 2005, 7:05:10 AM, you wrote:
 
 SR So using the imageSource property appears to
 effectively cloak the
 SR selected character, while setting the HTMLtext
 by script gives the expected
 SR results.
 
 Possibly Bugzillaing an enhancement request for the
 img tag to
 support an optional alt syntax would take care of
 the problem. It
 *is* part of html, so it would be conforming to
 standards.
 
 tesimg src=1005 alt=st
 
 -- 
 -Mark Wieder
 

Does this mean that the engine would automagically
show a toolTip with the content of the 'alt' attribute
? That would be excellent.
 
Another improvement would be to make the 'img' tag
XML-compatible, by giving us a closing tag and placing
the 'hidden' characters in between :
  pteimg src=foobar.gifs/imgt/p

My two eurocents,

Jan Schenkel.

=
Quartam - Tools for Revolution
http://www.quartam.com

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




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


hiliting a word

2005-03-02 Thread Nicolas Cueto
Hello All,
(B
(BI'm after a hilited text effect. Namely, when a user clicks on a word
(Bdisplayed in locked text field, that one word:
(B
(B1) becomes hilited, i.e., it changes color
(B
(B2) becomes placed into a variable
(B
(BMy scription "solution" is this:
(B
(Bon mouseUp
(B put the clickChunk into tPos
(B set the textColor of char (word 2 of tPos) to (word 4 of tPos) of field
(B"fText" to red
(B put char (word 2 of tPos) to (word 4 of tPos) of field "fText" into
(BgSomeVariable
(Bend mouseUp
(B
(BThis script words as far as selecting and placing the word into the
(Bvariable. However, the textColor change persists for that one word, instead
(Bof returning to its original color.
(B
(BSo, failing a better scripting solution than the above one, my question then
(Bis how do I reset the textColor of the selected word and/or the entire
(Bfield? I tried "set the textColor" of the entire field but no luck.. Of
(Bcourse, I could use the clickChunk info to manually recolor each word, but
(Bsomething tells me that there must be a better way.
(B
(BThank you.
(B
(BCheers,
(BNicolas Cueto
(Bniconiko language school
(B
(B
(B___
(Buse-revolution mailing list
(Buse-revolution@lists.runrev.com
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

check for alphanumeric characters

2005-03-02 Thread Nicolas Cueto
Hello again,
(B
(BIs there a Rev function for checking whether a variable contains only
(Bletters and/or numbers? When using clickChunk, I want anything not a word to
(Bbe ignored (e.g., punctuation).
(B
(BThanks.
(B
(BCheers,
(BNicolas Cueto
(Bniconiko language school
(B
(B
(B___
(Buse-revolution mailing list
(Buse-revolution@lists.runrev.com
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Re: hiliting a word

2005-03-02 Thread Scott Rossi
Recently, Nicolas Cueto  wrote:

 my question then
 is how do I reset the textColor of the selected word and/or the entire
 field? I tried set the textColor of the entire field but no luck.. Of
 course, I could use the clickChunk info to manually recolor each word, but
 something tells me that there must be a better way.

Here's one way:

  set textColor of char 1 to (number of chars of fld 1) of fld 1 to empty

You can replace empty with a default color if necessary.  There are
probably other methods as well.

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: hiliting a word

2005-03-02 Thread Scott Rossi
 set textColor of char 1 to (number of chars of fld 1) of fld 1 to empty

Or more concise:

  set the textColor of char 1 to -1 of fld 1 to empty

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: hiliting a word

2005-03-02 Thread Signe . Sanne
Quoting Nicolas Cueto [EMAIL PROTECTED]:

 Hello All,
 
 I'm after a hilited text effect. Namely, when a user clicks on a word
 displayed in locked text field, that one word:
 
 1) becomes hilited, i.e., it changes color
 
 2) becomes placed into a variable
 
 My scription solution is this:
 
 on mouseUp
  put the clickChunk into tPos
  set the textColor of char (word 2 of tPos) to (word 4 of tPos) of field
 fText to red
  put char (word 2 of tPos) to (word 4 of tPos) of field fText into
 gSomeVariable
 end mouseUp

Try:
on mouseUp
  put the clickChunk into tPos
  put the textColor of char (word 2 of tPos) to (word 4 of tPos) of me into
tOriginalColor
  set the textColor of char (word 2 of tPos) to (word 4 of tPos) of me to red
  put char (word 2 of tPos) to (word 4 of tPos) of field 1 into gSomeVariable
  wait 30 ticks
  set the textColor of char 1 to -1 of me to tOriginalColor
end mouseUp

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


Re: Drawer Display Bug?

2005-03-02 Thread Chipp Walters
Hi Scott,
Not sure about the drawer bug, but I do now there are 'issues' with 
drawers and images. Our last version of altBrowser used a 'drawer' type 
window to draw the altBrowser control into, and it wouldn't display 
animated gifs properly inside the Safare webkit (since fixed in the new 
upcoming version of altBrowser which doens't use the 'drawer' window).

best,
Chipp
Scott Rossi wrote:
Can anyone confirm if there's some kind of strange display bug with images
in drawers on OSX?
I have a bunch of buttons with icons set (PNGs) in a scrolling group in a
drawer stack.  I notice that the button icons will suddenly appear jagged
after switching to Rev from another app -- it's almost as if the alphaData
of the icon images is being temporarily lost. Moving the drawer or scrolling
the group causes the button icons to display correctly.  Locking the screen
for a moment seems to help, but as soon I switch out of rev and then back,
the icon images appear jagged again.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution