RE: A question about setting custom properties

2004-01-11 Thread Ken Ray
 Well, I guess my question isn't so much of a question as it 
 is a caution. I guess that's just the way it is, right?

Right. :-)

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


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


Re: Converting Hexadecimal in Binary

2004-01-11 Thread Alejandro Tejada
on Sat Jan 10
Dar Scott wrote:

You can move toUpper() out of the loop.

You are right. The time dropped from 1.05 seconds
to 0.9

It might help to avoid the if, they seem to 
take a long time.  I don't know if avoiding that 
is worth the trouble, though.  One way to 
to make the hex string and then break it up aftwards.

Amazing! This make the time drop from 0.9
to 0.7 seconds.

This is the handler:

local v1

on mouseUp
  
  put the ticks into zxcv
  
  -- this line put the ticks into a variable to count
the time
  -- that takes to execute this handler. There are 60
ticks in a second
  
  put the imagedata of img 1 into asd
  delete char 1 of asd
  -- the first char of the imagedata is the alphadata
or maskdata
  
  repeat with i = 1 to length(asd) step 4
get binaryDecode(H*, char i to i+2 of asd, v1)
put v1 after fldhex
  end repeat
  
  put length(fldhex) into lenghtofldhex
  repeat with i = 1 to lenghtofldhex step 60 -- I want
60 chars per line
put return  char i to (i+59) of fldhex after
fldhexa2
  end repeat
  
  put empty into fldhex
  put toUpper(fldhexa2) into fld hex
  put ((the ticks - zxcv) / 60)  seconds to create
the hexadecimal data from binary imagedata
end mouseUp

But still, i feel curious to know WHY binaryencode()
could put his results after a variable and
binarydecode
reports an error. The sintax of both functions is
similar so, Where did originates this error?

put binaryDecode(H*, char i to i+2 of asd)after var
-- produces an error!
put binaryEncode(H*, char i to i+2 of asd)after var
-- works perfectly!

Thanks again Dar, for your extraordinary help 
with this task.

al

=
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Paste image from clipboard

2004-01-11 Thread Alejandro Tejada
Hi Developers,

I have been pasting images in MC/RR and
i have got some mixed results with one
handler that will like you confirm.

1) Copy the file of a jpg image in windows
explorer. The clipboard now has the path to the 
image: C://Documents//MyImage.jpg

Notice, the function the clipboard in MC reports 
the clipboard as empty, but the function the 
clipboarddata returns the path of the image.

write in message box:

put the clipboarddata

and you effectively get the path to the image

Now, write in the message box:

put binfile:  the clipboarddata into zxcv
set the customProperty01 of the topstack to url zxcv
create image
set the text of it to the customProperty01 of the
topstack

Now, this code works sometimes, others no.

Could you confirm this on your machines?

Thanks in advance.

al

=
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


List test

2004-01-11 Thread Wilhelm Sanke
Just to test if  my posts get to the list as I was bounced - whatever 
that could mean - and presently do not receive any list mails.

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


Re: problems pasting text into the IDE (mac os x)

2004-01-11 Thread Wouter
On 11 Jan 2004, at 08:57, [EMAIL PROTECTED] wrote:

Message: 2
Date: Sat, 10 Jan 2004 20:23:57 -0700
From: Alex Rice [EMAIL PROTECTED]
Subject: Re: problems pasting text into the IDE (mac os x)
To: How to use Revolution [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; format=flowed
On Jan 10, 2004, at 4:42 AM, Wouter wrote:
The problem can be caused by some  numtochar(0)  characters left in
the text by any text editor. May be there are others, but this is the
one
I could catch.
Thanks for the ideas. Do you think this could be classified as a bug
with the Rev IDE?
I think this is more engine related. But ... a little change in the 
scripteditors stack
could take out this problem forever by removing these characters before
setting the script.
You can make the problem visible by using the htmltext property.


Alex Rice [EMAIL PROTECTED] | Mindlube Software |
http://mindlube.com
WA

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


Re: Converting Hexadecimal in Binary

2004-01-11 Thread Wouter
On 11 Jan 2004, at 02:26, [EMAIL PROTECTED] wrote:

Message: 7
Date: Sat, 10 Jan 2004 17:08:02 -0800 (PST)
From: Alejandro Tejada [EMAIL PROTECTED]
Subject: Re: Converting Hexadecimal in Binary
To: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii
on Sat, 10 Jan 2004 11:24:00 -0700
Dar Scott wrote
This might be faster yet:

repeat with i = 1 to length(asd) step 6
put null  binaryEncode(H*, char i to i+5 of
asd) after qwe
end repeat
This is 400% faster than original!!

So, putting the function inline cut the time
in half. Excellent!
Look at the three handlers working in this
stack:
snip

On my slower rig it this is a little faster:

repeat with i = 1 to length(asd) step 6
put 00  char i to i+5 of asd after qwd
end repeat
put  binaryEncode(H*,qwd) into qwe
Greetings,
WA


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


Re: ODD open stack behavior

2004-01-11 Thread Thomas J McGrath III
Ken,

I put together an interactive CD for a company for their new product 
launch. In the CD is 14 chapters that each have multiple pages in them. 
On each page there are around 10 to 15 links, each link is to an area 
of content supplied by that links author. Since I had no prior way of 
knowing what content was to be provided by each person I set up a 
series of windows(substacks) to handle the content. Some people 
provided the content for multiple areas. Some provided Excel charts, 
some word docs and still others powerpoint files. There were also a 
couple of movies and links to web sites, etc. Some of the content 
turned out to be hundreds of slides but the engine was able to handle 
all of the content.

The main stack with chapters and pages has voiceovers and can be 
navigated sequentially or via a chapter menu. The links are set up 
before hand to a corresponding substack which then each substack is 
handled by replacing or adding to the contents of a corresponding 
folder and the type of content for that link is handled accordingly.

I spent my first few weeks learning Rev and then spent a month writing 
and designing the 'engine' to handle all of this expected content (it 
didn't come in until Christmas). I then had to wait for content to come 
in so I tested and cleaned up the CD. The engine done, I then only had 
to do some conversions(powerpoint to pngs, etc) on content and pop them 
in the right folders. This way the engine could be tested and changed 
and I was not concerned with what the content was or when it arrived.

The final CD is 300 megs. and has hundreds of links plus a downloadable 
set of emulator demos for the new product. It runs on Windows 98, 2000, 
XP home, XP Pro, Macintosh OS9 and Macintosh OSX.

Not bad for only just buying REV (October) and learning it and putting 
out a multiple platform interactive CD. In the end I think there were 
over a couple thousand chunks of content that had to fit together 
seamlessly into an engine that would know how to handle them regardless 
of what or how many there were.

Since the start I now feel a little bit comfortable with REV and enjoy 
my REV coffee mug and long sleeve t-shirt. But most of all I have 
really enjoyed this list. I recognize some of the names here from my 
old Supercard days and everyone has been very patient with me and has 
helped me beyond knowing. I only hope I can give back what was given so 
freely to me.

Thanks to you all,

Tom



On Jan 11, 2004, at 2:54 AM, Ken Ray wrote:

I have a stack with hundreds of substacks.
Just curious... why do you have hundreds of substacks?

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

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 
2.1.2

Advanced Media Group
Thomas J McGrath III 2003   [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


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


on startup and on shutdown

2004-01-11 Thread Thomas J McGrath III
I just found the on startup and on shutdown handlers. I have tried to 
clean up my CD project by putting the initializers into these handlers. 
The docs say that is what they are for.

Has anyone used these that much? I don't think they load when the stack 
is launched in the IDE. I think they only run in the final build.
Does anyone know for sure? I had to put the code in both the startup 
and preopen stack handlers. In the preopenstack I put an 'if the 
environment is development then do the same code as in the startup 
handler.

Also related to this, I was reading the docs and they say if you want 
to keep a preference set to load the variables into a custom property 
on shutdown and then reload the custom prop into the variable on start 
up. I have not been successful in this in my CD. Also, I thought from 
this list that the only way to save info was via a separate stack 
outside the build. Seems a contradiction.

Has anyone done this? I need to test it in a simple stack.

Thanks

Tom

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 
2.1.2

Advanced Media Group
Thomas J McGrath III 2003   [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Converting Hexadecimal in Binary

2004-01-11 Thread Wouter
Re: Converting Hexadecimal in Binary
From: Alejandro Tejada
Subject: Re: Converting Hexadecimal in Binary
Date: Sun, 11 Jan 2004 02:28:37 -0800
on Sat Jan 10
Dar Scott wrote:
You can move toUpper() out of the loop.

snip

on mouseUp

--  put the ticks into zxcv

  -- this line put the ticks into a variable to count
the time
  -- that takes to execute this handler. There are 60
ticks in a second
  put the imagedata of img 1 into asd
  delete char 1 of asd
  -- the first char of the imagedata is the alphadata
or maskdata
  repeat with i = 1 to length(asd) step 4
get binaryDecode(H*, char i to i+2 of asd, v1)
put v1 after fldhex
  end repeat
  put length(fldhex) into lenghtofldhex
  repeat with i = 1 to lenghtofldhex step 60 -- I want
60 chars per line
put return  char i to (i+59) of fldhex after
fldhexa2
  end repeat
  put empty into fldhex
  put toUpper(fldhexa2) into fld hex
  put ((the ticks - zxcv) / 60)  seconds to create
the hexadecimal data from binary imagedata
end mouseUp
changed to this may make it (a lot) quicker:
### = change
on mouseUp
  --put the ticks into zxcv   ### old HC way :^)
  put the millisecs into zap  ### if the img is small this shows more 
exactly the difference
  -- this line put the ticks into a variable to count the time
  -- that takes to execute this handler. There are 60 ticks in a second

  put the imagedata of img prep into asd
  delete char 1 of asd
  -- the first char of the imagedata is the alphadata or maskdata
###
 get binaryDecode(H*,  asd, v1)
 repeat with i = 1 to length(v1) step 8
put char i to i + 5 of  v1 after fldhex
  end repeat
###
  put length(fldhex) into lenghtofldhex
  repeat with i = 1 to lenghtofldhex step 60 -- I want 60 chars per line
put  return  char i to (i+59) of fldhex after fldhexa2
  end repeat
  put empty into fldhex
  put toUpper(fldhexa2) into fld text
  --put ((the ticks - zxcv) / 60)  seconds to create the hexadecimal 
data from binary imagedata
###
  put the millisecs - zap  milliseconds to create the hexadecimal 
data from binary imagedata

end mouseUp



But still, i feel curious to know WHY binaryencode()
could put his results after a variable and
binarydecode
reports an error. The sintax of both functions is
similar so, Where did originates this error?
put binaryDecode(H*, char i to i+2 of asd)after var
-- produces an error!
Of coarse it should be :
get binarydecode(H*, char i to i+2 of asd,v1)
put  v1 after var   
put binaryEncode(H*, char i to i+2 of asd)after var
-- works perfectly!
Thanks again Dar, for your extraordinary help
with this task.
al
Greetings,
WA
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: on startup and on shutdown

2004-01-11 Thread Klaus Major
Hi Thomas,

I just found the on startup and on shutdown handlers. I have tried to  
clean
up my CD project by putting the initializers into these handlers. The  
docs say that is what they are for.

Has anyone used these that much? I don't think they load when the  
stack is launched
in the IDE. I think they only run in the final build.
Does anyone know for sure? I had to put the code in both the startup  
and preopen
stack handlers. In the preopenstack I put an 'if the environment is  
development
then do the same code as in the startup handler.
I have no experience with startup but i would say that preopenstck  
IS the best place to
initialize everything...

And closestack or closestackrequest or something the best place to  
cleanup things
before you leave...

Also related to this, I was reading the docs and they say if you want  
to keep a preference
set to load the variables into a custom property on shutdown and then  
reload the custom
prop into the variable on start up. I have not been successful in this  
in my CD. Also, I thought
from this list that the only way to save info was via a separate stack  
outside the build.
Seems a contradiction.
No, it isn't.
Yes, it is!
No, it isn't.
Yes, it is!
No, it isn't.
Yes, it is!
No, it isn't.
Yes, it is!
No, it isn't.
Yes, it is!
Oh, c'mon this is not an argument, this is a contradiction...
etc...
Monty Python...
:-D
Contradiction or not, that's the way it works with modern OSs... ;-)

Has anyone done this? I need to test it in a simple stack.
Check this for a quick guide:

http://lists.runrev.com/pipermail/use-revolution/2003-December/ 
026781.html

Thanks

Tom
Regards

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


Re: on startup and on shutdown

2004-01-11 Thread Thomas J McGrath III
On Jan 11, 2004, at 8:38 AM, Klaus Major wrote:

Hi Thomas,

I just found the on startup and on shutdown handlers. I have tried to  
clean
up my CD project by putting the initializers into these handlers. The  
docs say that is what they are for.

Has anyone used these that much? I don't think they load when the  
stack is launched
in the IDE. I think they only run in the final build.
Does anyone know for sure? I had to put the code in both the startup  
and preopen
stack handlers. In the preopenstack I put an 'if the environment is  
development
then do the same code as in the startup handler.
I have no experience with startup but i would say that preopenstck  
IS the best place to
initialize everything...

And closestack or closestackrequest or something the best place to  
cleanup things
before you leave...
My problem with the preopenstack is that I have a lot of substacks that  
I don't want to use what is in the preopenstack handler. That is why  
the startup looks so good. The docs say it is only called once but each  
time I open a substack it 'reloads' all of the things in the main  
stack's preopenstack which I don't want to happen.



Also related to this, I was reading the docs and they say if you want  
to keep a preference
set to load the variables into a custom property on shutdown and then  
reload the custom
prop into the variable on start up. I have not been successful in  
this in my CD. Also, I thought
from this list that the only way to save info was via a separate  
stack outside the build.
Seems a contradiction.
No, it isn't.
Yes, it is!
No, it isn't.
Yes, it is!
No, it isn't.
Yes, it is!
No, it isn't.
Yes, it is!
No, it isn't.
Yes, it is!
Oh, c'mon this is not an argument, this is a contradiction...
etc...
Monty Python...
:-D
Contradiction or not, that's the way it works with modern OSs... ;-)
Which one is the way it works in modern OSs??
Either a custom prop can store info collected during use or if not,  
then a sep stack needs to do it
Which one?

Thanks Klaus,

Tom


Has anyone done this? I need to test it in a simple stack.
Check this for a quick guide:

http://lists.runrev.com/pipermail/use-revolution/2003-December/ 
026781.html

Thanks

Tom
Regards

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

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev  
2.1.2

Advanced Media Group
Thomas J McGrath III 2003   [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


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


Re: on startup and on shutdown

2004-01-11 Thread Thomas J McGrath III
On Jan 11, 2004, at 8:38 AM, Klaus Major wrote:

Has anyone done this? I need to test it in a simple stack.
Check this for a quick guide:

http://lists.runrev.com/pipermail/use-revolution/2003-December/ 
026781.html
Thanks for the link. I was aware of that discussion. But the docs say  
you can store info in a custom prop on shutdown. They even say that  
'that is what the on shutdown and on startup are for'. They don't say  
But wait, you then have to save the custom prop in a separate stack  
etc.!
That was why I asked, because after reading the thread you reference  
before I thought that that was the only way BUT then I read in the docs  
that you can do it in a custom prop

THanks anyway,

Tom
Regards

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

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev  
2.1.2

Advanced Media Group
Thomas J McGrath III 2003   [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


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


Re: on startup and on shutdown

2004-01-11 Thread Graham Samuel
On Sun, 11 Jan 2004 08:19:00 -0500, Thomas J McGrath III 
[EMAIL PROTECTED] wrote:

I just found the on startup and on shutdown handlers. I have tried to
clean up my CD project by putting the initializers into these handlers.
The docs say that is what they are for.
Has anyone used these that much? I don't think they load when the stack
is launched in the IDE. I think they only run in the final build.
Does anyone know for sure? I had to put the code in both the startup
and preopen stack handlers. In the preopenstack I put an 'if the
environment is development then do the same code as in the startup
handler.
Also related to this, I was reading the docs and they say if you want
to keep a preference set to load the variables into a custom property
on shutdown and then reload the custom prop into the variable on start
up. I have not been successful in this in my CD. Also, I thought from
this list that the only way to save info was via a separate stack
outside the build. Seems a contradiction.
Has anyone done this? I need to test it in a simple stack.
Hi Tom

I always use a startup handler to initialise globals and other settings for 
the whole program, because it seems a very neat way to do it in the final 
app. I put the handler in the stack script of my first stack (usually a 
splash screen which acts as the repository for my common routines). It is 
true that it doesn't work in the IDE (presumably when the IDE is started it 
swallows the startup message on its own account), but you can get round 
that by typing

 send startup to stack mySplash

into the Message Box: another technique I have used is to have a button on 
a card which is only used during my development cycle (contains timing 
data, private logs and such) which just executes the script above. Late in 
the development cycle this card gets hidden or sent offscreen, but can be 
brought back easily enough if users report bugs.

The shutdown handler is invoked during the quit sequence, and in fact 
'shutdown' and 'shutDownRequest' are the only ways AFAIK to handle any 
shutdown actions you might want to perform under OSX, since the actual 
'Quit' menu item is taken out of your hands by the OS. It seems to me that 
'shutDownRequest' is superior to 'shutDown' because this gets sent when the 
OS demands that the application quits, at least on Mac systems (don't know 
how this differs from handling the aevtquit Apple Event, but that's another 
story).

I have no experience with custom property sets, but clearly the technique 
you mention will only work for a non-read-only stack, otherwise all changes 
will be lost...

HTH

Graham

---
Graham Samuel / The Living Fossil Co. / UK  France  

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


Re: on startup and on shutdown

2004-01-11 Thread Klaus Major
Hi Thomas,

...
And closestack or closestackrequest or something the best place  
to cleanup things
before you leave...
My problem with the preopenstack is that I have a lot of substacks  
that I don't want to use
what is in the preopenstack handler. That is why the startup looks so  
good.
The docs say it is only called once but each time I open a substack it  
'reloads'
all of the things in the main stack's preopenstack which I don't want  
to happen.
In this case you can put your preopenstack-handler into the  
card-script of the first card!
This way  the substacks will not execute this handler :-)

...
http://lists.runrev.com/pipermail/use-revolution/2003-December/ 
026781.html
Thanks for the link. I was aware of that discussion. But the docs say  
you can store info
in a custom prop on shutdown. They even say that 'that is what the on  
shutdown and
on startup are for'. They don't say But wait, you then have to save  
the custom prop in
a separate stack etc.!

That was why I asked, because after reading the thread you reference  
before I thought
that that was the only way BUT then I read in the docs that you can do  
it in a custom prop
Well, fact is standalones CANNOT save themselves!

In this case you will have to store your info/prefs outside the  
standalone...

And saving in the folder where the standalone resides may cause  
permission-problems
on OS X, Linux and Win2000  XP...

You could create an invisible stack, give it a name, store your  
info/customprops in that stack
and save it in the appropriate folder using my function.

This way you have almost unlimited space to store info at once!
Since any new stack will automatically have one card, you can use the  
stack or card
customprops and additionally their custompropertysets!

I call it storeprefs here in my example.
safe_place_to_store_my_bloody_prefs is definitively too long :-)
When your app starts you can check with my function if there is already  
a prefs-file, then
read the customprop(s) of that file and do whatever you want with this  
info :-)

on preopenstack
  if there is a file (storeprefs()  yourprefs.prf) then
put the myinfo of stack (storeprefs()  yourprefs.prf) into xyz
## do whatever you want with xyz
  else
## do whatever you like, since this is probably the first start of  
your app
## on the end-users computer ;-)
  end if
  ...
end preopenstack

And on closestack or whenever you can do this:

on closestack
  ##collect your info into xyz...
   if there is a file (storeprefs()  yourprefs.prf) then
 ## even no need to add the REV suffix
 set the myinfo of stack (storeprefs()  yourprefs.prf) to xyz
 save stack (storeprefs()  yourprefs.prf)
  else
   create invisible stack myprefs ## or whatever
   set the myinfo of stack myprefs
   save stack myinfo as (storeprefs()  yourprefs.prf)
  end if
...
end closestack
You get the picture ;-)

!!!Not tested, but should work...
(Famous last words ;-)
Hope that helps...

Regards

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


Recurring Dates Script

2004-01-11 Thread Jim Carwardine
Has anyone written a script that handles recurring dates like Outlook or
Entourage do?  Jim
-- 

OYF is... Highly resourceful people working together.
http://www.OwnYourFuture-net.com

Own Your Future Consulting Services Limited,
1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2
Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139




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


Re: on startup and on shutdown

2004-01-11 Thread Martin Baxter
Thomas J McGrath III wrote
I just found the on startup and on shutdown handlers. I have tried to
clean up my CD project by putting the initializers into these handlers.
The docs say that is what they are for.

Has anyone used these that much?

I use on startup and rely on it.
It's true that it doesn't run in the IDE, only in a standalone. So what I
do, in outline is...

on startup
  # do things that only need to be done when run as a standalone
  initialise
end startup

on initialise
  # read prefs files, set up global environment etc.
  if the environment  development then
  # do things that only need doing in the IDE
  end if
end initialise

Rather than use a preopenstack handler to run initialise automatically in
the IDE (which has potential problems you have found out already by the
sound of it), I either run initialise from the message box by hand, or
sometimes include a temporary (during development) menu item to run it.

The latter approach can sometimes be handy when testing a standalone, as it
allows you to reinitialise - should you need to - without having to quit
and relaunch the application.

Of course that menu item would be removed from a published build.

shutdown I never used, but actually I think it might be a good idea of I did.
It looks like probably the most logical point to save an application's
session state variables to disk.

Martin


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


Re: on startup and on shutdown

2004-01-11 Thread Dom
Thomas J McGrath III [EMAIL PROTECTED] wrote:

 My problem with the preopenstack is that I have a lot of substacks that
 I don't want to use what is in the preopenstack handler. That is why
 the startup looks so good. 

In the substacks just put:

on preopenstack
end preopenstack

to trap this command.

As for on startup, I was used to go with it in my HyperCard times, but
no more since then...

-- 
Digital photos (nature, garden) : http://cooldomi.free.fr/
Scripting : http://domiscript.free.fr/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: on startup and on shutdown

2004-01-11 Thread Thomas J McGrath III
Thanks, everyone, it seems to me the startup is what I wanted and the 
IDE does not process it 'in my stack' (which actually makes sense since 
it is a call only once message and REV already did that on it's 
startup).

I handled the startup not being loaded in the IDE by putting an if 
environment is development then do initialize in the preopenstack. 
This way I can leave the code in the app when built and it will switch 
to the startup instead.

I guess I misinterpreted the docs about the shutdown message. It sounds 
like it would be the best place to set a 'save' . I thought it was 
saying I could put variables into a custom prop and it would actually 
save it. What set me off was I was quitting in the IDE and it was 
saving my stack with the new data in the custom prop each time I tested 
it so in affect I was doing the saving and a build of course can not 
save itself with the new data.

Once again I  notice that I  put a lot of scripts into each handler 
that should be it's own function. This makes so much sense for reusing 
the script and yet I always seem to forget and end up with very long 
scripts.

THanks again,

TOm

On Jan 11, 2004, at 11:52 AM, Dom wrote:

Thomas J McGrath III [EMAIL PROTECTED] wrote:

My problem with the preopenstack is that I have a lot of substacks 
that
I don't want to use what is in the preopenstack handler. That is why
the startup looks so good.
In the substacks just put:

on preopenstack
end preopenstack
to trap this command.

As for on startup, I was used to go with it in my HyperCard times, 
but
no more since then...

--
Digital photos (nature, garden) : http://cooldomi.free.fr/
Scripting : http://domiscript.free.fr/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 
2.1.2

Advanced Media Group
Thomas J McGrath III 2003   [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


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


Windows ODBC

2004-01-11 Thread KumaSoftDev
I am using Runtime Revolution on Windows XP Professional and am unable to successfully 
connect to either Firebird or MS Access via ODBC.

Using the Microsoft Access 2003 ODBC driver I can get as far as connecting within the 
Database Query Builder, but when I go to the Record Set table there aren't any 
tables in the Table drop-down.  Note that I CAN successfully use this ODBC Driver 
within other programs, such as R:Base.

Using the Firebird ODBC driver my results are identical.  I can establish a connection 
with the Database Query Builder but cannot get any tables to appear within the 
Record Set Table drop-down.  Once again, I can successfully use this ODBC Driver 
within other programs, such as MS Access 2003.

Using the Gemini ODBC driver for Interbase/Firebird my results are a bit different.  
With this driver I can establish a connection and I do see tables listed in the 
Record Set Table drop-down.  However, my results at this point vary.  For tables 
that contain a certain configuration of columns (I haven't locked down the pattern 
yet) RunRev will GPF and terminate as soon as I select a table from the list.  For 
other tables I can successfully select a table - resulting in the creation of a select 
statement in the SQL Query edit field.  However, for these tables as soon as I 
attempt to bind the table to a field in card RunRev will again GPF and terminate.

Can someone please shed some light on this for me?

Am I doing something incorrectly or is this a bug?

Thanks

Bob

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


Re: Converting Hexadecimal in Binary

2004-01-11 Thread Dar Scott
On Saturday, January 10, 2004, at 08:46 PM, Ken Ray wrote:

This is 400% faster than original!!
Actually, I got a MUCH greater time savings, Alejandro...
The problem might be that putting the data into the field is inside the 
timing test.  That adds an offset to the timing.  If that is put 
outside the timing bracket, we should see even greater results.  Also, 
we should see different results on different platforms.

How does this look with just the computation and without putting the 
value into the field?

Dar Scott


Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

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


Multi-level filtering question

2004-01-11 Thread nc
I have a database which I have extracted a finite set of attributes 
from (call them A,B,C, and D).  They are output as four lines of text 
for each record, for example:

AttributeA: DN=Smith, John,OU=Users,DN=domain,DN=ComCR
AttributeB: MTA=MSEXC210CR
AttributeC: MDB=MSEXC210,Server=MSEXC212CR
AttributeD: MailAddress: [EMAIL PROTECTED]CR
I have been able to filter on any one of these attributes without a 
hitch.  Even better since the database I am querying against can be 
several hundred MB in size the filter query is very fast, oftentimes 
taking less than a minute to extract for the query.  The queries for 
this same job without the filter function took over 45 minutes in some 
cases so thank you developers!

Anyway, getting back to my question.  What I would like to do is filter 
for multiple aspects of each record (assuming several thousand records 
and each record having four lines with each line ending with a CR).  I 
have been able to run a multi-level filter against the database and 
that works great, but what I have not been able to solve yet is to run 
the multi-level filter and have it extract all four lines of the 
record.  Going back to the entry above, say I wanted to do a query that 
would find all records where AttributeB: MTA=MSEXC210 AND where 
AtrributeC: MDB=MSEXC210,Server=MSEXC212 were present then pipe all 
four lines of each record that fit the criteria out to a text file or 
output field.

I hope this is clear as to what I am trying to accomplish.

If you have any questions please let me know.

Regards and thanks.

Nate

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


Re: Converting Hexadecimal in Binary

2004-01-11 Thread Dar Scott
This has text pictures needing a fixed pitch font.

On Sunday, January 11, 2004, at 02:26 AM, Alejandro Tejada wrote:

put binaryDecode(H*, char i to i+2 of asd)after var
-- produces an error!
put binaryEncode(H*, char i to i+2 of asd)after var
-- works perfectly!
It is related to where the binary data is.  In binaryDecode(), it is a 
parameter; you are decoding the binary data.  In binaryEncode() it is 
the value returned by the function; you are encoding or building the 
binary data.

Like this:

put binaryDecode( formatsList, binaryData, datum1, datum2, datum3) into 
numConverted

 datum1
{   binaryData      datum2}--- numConverted
   ^ datum3
   |
   formatsList
local datum1, datum2, datum3
put binaryEncode( formatsList, datum1, datum2, datum3) into binaryData
  datum1
  datum2   binaryData
  datum3   ^
   |
   formatsList
Now the designers could have made binaryEncode to be more like 
binaryDecode, and that might have made things easier to remember, but I 
like the functional binaryEncode and I build functions for conversions 
around both anyway.

So the problem with your example of binaryDecode is that the parameter 
for the binary data is missing.

Dar Scott

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


RE: XP GIF display oddities

2004-01-11 Thread DVGlasgow

In a message dated 7/1/04 8:43:14 PM, Chipp Walters writes:

1) I doubt the compatibility wizard creates *any* envrironment variables
(course, I could be wrong, but this is the *first* I've ever heard of this.

Thanks Chipp,  and I will certainly try your advice.  However, from playing 
around with the Wizard and the following (from Microsoft support A 
HREF=http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/suppo
rt/kb/articles/Q301/9/11.ASPNoWebContent=1here/A) it *does* seem that 
the Wizard tries settings and then if you indicate the problem is resolved, it 
remembers the settings and these are automatically applied to your standalone 
on launch.  As far as I can tell, you aren't informed what has been changed.

This article describes how to use the Program Compatibility Wizard. The 
Program Compatibility Wizard prompts you to test your program in different modes 
(environments) and with various settings. 
For example, if the program was originally designed to run on Microsoft 
Windows 95, set the Compatibility Mode to Windows 95, and then try to run your 
program again. If this is successful, the program will start in that mode each 
time. 
The wizard also allows you to try different settings, such as switching the 
display to 256 colors and the screen resolution to 640 by 480 pixels.
Most programs run properly on Windows XP. The exceptions are some older 
games and other programs that were written specifically for an earlier version of 
Windows.
If you are experiencing problems with a program that worked correctly on an 
earlier version of Windows, this wizard helps you select and test 
compatibility settings that may fix those problems. Many of the most common issues 
that 
prohibit earlier versions of programs from working correctly are resolved. If 
you run a program and it does not function as expected, it is recommended that 
you run the program in one of the compatibility environments.


They are somewhat grandly called compatibility environments, but actually, 
the only things that are changed are colour depth, screen resolution and 
visual themes may be disabled.  The confusing thing is that your colour settings 
could be OK, but then get messed up when you launch and presumably are reset 
when you quit.

I am going to have another wrestle with it this week to find out how to stop 
it interfering if a user has unwisely let it believe that the standalone needs 
a particular compatibility environment.


Best wishes,

David Glasgow

Forensic Psychology Software and Services A 
HREF=http://members.aol.com/dvglasgow/i-psych/i_Psych.htm;i-Psych/A
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Two Questions on Database Query Builder

2004-01-11 Thread Andre Garzia
	Hi Folks,

	Is there a way to change connections parameters (server, user, pass) 
at run time? And what about SQL joins, if I try to use something like 
SELECT * FROM names, projects WHERE projects.manager = names.id will 
it work in the Database Query Builder, like being able to set control 
for columns of both tables?

	Cheers, and thanks in advance.

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


Re: on startup and on shutdown

2004-01-11 Thread Frank Leahy
Tom,

If you're trying to store the property into a stack that resides on the 
CD, you're toast because the CD is read-only.

The only way to do what you want is to either:

1) Copy at least one stack to the user's disk and store the properties 
there, or

2) Create a preferences file where you store the property data on the 
user's disk, and read/write that prefs file on startup and shutdown.

As for using preOpenStack or a startup handler -- if you have a 
preOpenStack handler in your main stack, then you'll have to have an 
empty preOpenStack handler in each substack so that the main stack's 
preOpenStack handler is overridden.  Like this:

on preOpenStack
  -- This overrides the main stack handler.
  -- Do not call pass preOpenStack otherwise the main stack handler 
will get called.
end preOpenStack

Best,
-- Frank Leahy
On Sunday, January 11, 2004, at 01:56 PM, 
[EMAIL PROTECTED] wrote:

Either a custom prop can store info collected during use or if not,
then a sep stack needs to do it
Which one?
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Outstanding Revolution Developer Conference

2004-01-11 Thread Mark Wieder
Jerry-

I almost hesitate to recommend this because we'll have to get a bigger
room next time if more people find out how good this was. But it *was*
the best seminar I've been to in... well... ever. My mind didn't
wander once in two solid packed days of presentations.

...and welcome back to the list. Glad to see you got your email
problems sorted out.

-- 
-Mark Wieder
 [EMAIL PROTECTED]


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


Re: Outstanding Revolution Developer Conference

2004-01-11 Thread Mark Brownell
So, unless a secret decoder ring is required, will someone that went to 
this tell us what Kevin Miller said:

8 AM  9 AM
Kevin Miller, Runtime Revolution
Revolutions fearless leader will be letting you get the inside scoop 
on version 2.5 with additional surprise announcements and guests.

Mark

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


Re: Outstanding Revolution Developer Conference

2004-01-11 Thread Andre Garzia
We Should Launch Revolution Developer Field Trip to South America, this 
way I could visit you folks! :-D

Cheers
Andre


On Jan 11, 2004, at 6:30 PM, Mark Brownell wrote:

So, unless a secret decoder ring is required, will someone that went 
to this tell us what Kevin Miller said:

8 AM  9 AM
Kevin Miller, Runtime Revolution
Revolutions fearless leader will be letting you get the inside scoop 
on version 2.5 with additional surprise announcements and guests.

Mark

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

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


Re: Outstanding Revolution Developer Conference

2004-01-11 Thread Hannu Kokko
Or perhaps to Finland...

--h

On 11.1.2004 22:42, Andre Garzia [EMAIL PROTECTED] wrote:

 
 We Should Launch Revolution Developer Field Trip to South America, this
 way I could visit you folks! :-D
 
 Cheers
 Andre
 
 
 
 
 On Jan 11, 2004, at 6:30 PM, Mark Brownell wrote:
 
 So, unless a secret decoder ring is required, will someone that went
 to this tell us what Kevin Miller said:
 
 8 AM ­ 9 AM
 Kevin Miller, Runtime Revolution
 Revolution¹s fearless leader will be letting you get the inside scoop
 on version 2.5 with additional surprise announcements and guests.
 
 Mark
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 Andre Alves Garzia • 2003 • BRAZIL
 http://www.soapdog.org
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution

-- 
Mr Hannu Kokko, Senior Vice President, Head of Product Engineering
Meridea Financial Software Oy, Valimotie 21, FIN-00380 HELSINKI, FINLAND
http://www.merideasoftware.com Phone: +358 50 386 6448
99,5% ain't enough
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete the
original. Any other use of the email by you is prohibited.


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


Re: Windows ODBC

2004-01-11 Thread Mark Wieder
Bob-

Sunday, January 11, 2004, 9:41:15 AM, you wrote:

K Using the Microsoft Access 2003 ODBC driver I can get as far as
K connecting within the Database Query Builder, but when I go to
K the Record Set table there aren't any tables in the Table
K drop-down.  Note that I CAN successfully use this ODBC Driver
K within other programs, such as R:Base.

It's definitely a bug with the Query Builder. You'll find the same
thing happening with SQL Server. Skip the Database Query Builder and
use the revdb commands. They work just fine even if the Query Builder
can't come up with a list of tables. Also, you'll find that if you
enter valid SQL into the query builder it *will* work, it just won't
give you any help getting there.

-- 
-Mark Wieder
 [EMAIL PROTECTED]


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


Re: Converting Hexadecimal in Binary

2004-01-11 Thread Dar Scott
On Sunday, January 11, 2004, at 11:15 AM, Dar Scott wrote:

put binaryDecode( formatsList, binaryData, datum1, datum2, datum3) 
into numConverted

put binaryEncode( formatsList, datum1, datum2, datum3) into binaryData
Here is another way to remember:

The binaryDecode() function is somewhat like matchText():
put matchText( textData, regex, datum1, datum2, datum3 ) into validMatch
The binaryEncode() function is somewhat like format():
put format( formatString, datum1, datum2, datum3 ) into textData
I think I made a mistake earlier; it must be binaryDecode() and 
matchText() that need the variables to already exist.  (Perhaps a 
reasonable enhancement would be to make the compiler create these if 
they do not exist.)

Dar Scott

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


Re: on startup and on shutdown

2004-01-11 Thread Dar Scott
I have learned that somethings must be done in startup and somethings 
can't be done, but I don't remember which are which.  I also learned 
that it is not sent to the first card, but to the stack, or so it 
seemed.  I try to divide up things into app init and stack init and 
give stack init preference.

Dar Scott

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


Re: A couple of weird things with cloned stacks

2004-01-11 Thread Sarah Reichelt
On 10 Jan 2004, at 1:41 am, Doug Lerner wrote:

(1) If I use the

set mainStack

command to cause cloned stacks to be a substack of the main stack it 
has the
inconvenient side-effect of storing all the created cloned substacks 
in the
main file when I save everything in the IDE.

It's probably better to duplicate main stack handlers in the clone 
itself
and leave it out of the mainstack.
If you just want them to have access to the scripts in your mainStack, 
you could:
	start using stack MainStack
so that all stacks can use it's handlers.

(2)  If I use the

set name

command to change the name of the newly cloned stack, the Application
Browser does not reflect the change. This is probably an Application 
Browser
bug.
Yes, the Application Browser doesn't always update itself. Close  
re-open it and then you should see the new name.

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Flute Tuner

2004-01-11 Thread Ken Norris
Hi Nelson,

 Date: Sat, 10 Jan 2004 23:13:32 -0700
 From: Nelson Zink [EMAIL PROTECTED]
 Subject: Flute Tuner

 I'd like to build a flute tuner. Can anyone suggest a rough script of how to
 get the frequency of input from the internal microphone on a Mac?
--
I noticed you didn't get a response so far...with good reason.

I'd be the last to say something can't be done with Rev, but what you're
asking for is not so simple and AFAIK there are no Rev terms for dealing
with it from scratch, i.e., it may reqire an external (perhaps more than
one).

First, I should make mention that there are numerous dedicated portable
digital tuners available at every music store I've ever been in. They're
very common and not expensive anymore:

http://www.activemusician.com/market/items/MC_TD-10M.asp

***...but if you hurry to get in a bid, you can get a KORG tuner dirt cheap
on eBay right now (bid was at $14.95 when I looked):

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=2370959425

Having said that, here is some software from BuzzMac (maybe you can figure
out how they did it):

http://asia.cnet.com/downloads/mac/swinfo/0,39001909,39010617s,00.htm

...other than that, the only thing I can do is point you to QuickTime midi
instruments and see if there is some way to use the player to make
comparisons. At least you could do it by ear.

HTH,
Ken N. 

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


Re: Converting Hexadecimal in Binary

2004-01-11 Thread Alejandro Tejada
on Sun, 11 Jan 2004
Wouter wrote:

 On my slower rig it this is a little faster:
 
 repeat with i = 1 to length(asd) step 6
  put 00  char i to i+5 of asd after qwd
 end repeat
 put  binaryEncode(H*,qwd) into qwe

Extraordinary! This reduces the time in another 
150 milliseconds!!!

 changed to this may make it (a lot) quicker:
 ### = change
 on mouseUp
 
--put the ticks into zxcv   ### old HC way :^)
put the millisecs into zap  ### if the img is
 small this shows more 
 exactly the difference
-- this line put the ticks into a variable to
 count the time
-- that takes to execute this handler. There are
 60 ticks in a second
 
put the imagedata of img prep into asd
delete char 1 of asd
-- the first char of the imagedata is the
 alphadata or maskdata
 ###
   get binaryDecode(H*,  asd, v1)
   repeat with i = 1 to length(v1) step 8
  put char i to i + 5 of  v1 after fldhex
end repeat
 ###
put length(fldhex) into lenghtofldhex
repeat with i = 1 to lenghtofldhex step 60 -- I
 want 60 chars per line
  put  return  char i to (i+59) of fldhex after
 fldhexa2
end repeat
put empty into fldhex
put toUpper(fldhexa2) into fld text
--put ((the ticks - zxcv) / 60)  seconds to
 create the hexadecimal 
 data from binary imagedata
 ###
put the millisecs - zap  milliseconds to
 create the hexadecimal 
 data from binary imagedata
 
 end mouseUp

Excellent! With the comments that you put in the
code, I have learned very important techniques.

  put binaryDecode(H*, char i to i+2 of asd)after
var
  -- produces an error!
 
 Of course it should be :
 get binarydecode(H*, char i to i+2 of asd,v1)
 put  v1 after var 

I agree, but then, Why binaryEncode permits this
different sintax:

put binaryEncode(H*, char i to i+2 of asd)after var

After all this time crunching, I suppose that
the next step for more speed is an external. :-)

Thanks a lot, Wouter and Dar!

al

=
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Flute Tuner

2004-01-11 Thread Dar Scott
On Sunday, January 11, 2004, at 02:49 PM, Ken Norris wrote:

...other than that, the only thing I can do is point you to QuickTime 
midi
instruments and see if there is some way to use the player to make
comparisons. At least you could do it by ear.
I think this is a good idea.

Or look for other methods that avoid actually measuring the frequency 
of the flute.  Would high, low or right-on indicators be OK?

I see three problems areas in measuring the frequency of a flute tone.

The first is (the best I know) that recording is to a file and is not 
an input stream.  That will make a delay from recording the tone and 
then analyzing it.  The greater the accuracy needed, the longer the 
delay.  (There might be some way to avoid some of that.)

The second is converting the sound file into a form for computation.

The third is the signal processing.  This might involve some digital 
filtering and then a FFT.  The FFT result would then be analyzed for 
finding the fundamental.  There are probably ways to avoid that if all 
you need is the fundamental and you know about what it is.

I hope that I'm missing something in all this.  This looks like a lot 
of work to me.

Dar Scott

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


Re: When clicking on a palette item, how does Rev know what stack you were in?

2004-01-11 Thread Sarah Reichelt
Check the docs for the topStack. It tells you the front most window 
with the lowest mode, where normal stack windows have a mode of 1. 
(Read the docs entry for mode to get further details.)

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
On 10 Jan 2004, at 6:03 pm, Doug Lerner wrote:

If there is not a built-in way of doing this I can probably rig 
something up
with global variables, looking at the current open stacks manually, or
something like that, but I thought I would ask first...

Suppose there are several windows open and I click in a palette window
somewhere choosing a tool or a chunk.
Is there an easy way of detecting which of the windows I was in when I 
went
to click the palette?

Should I just use the mouseLeave handler to store a reference to where 
I was
in a global variable or something like that?

Thanks,

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


Re: Flute Tuner

2004-01-11 Thread Nelson Zink
Ken,

 First, I should make mention that there are numerous dedicated portable
 digital tuners available at every music store I've ever been in. They're
 very common and not expensive anymore:

I have tuners, both hard and software--my interest is to create one with
features not found in others.

 I'd be the last to say something can't be done with Rev, but what you're
 asking for is not so simple and AFAIK there are no Rev terms for dealing
 with it from scratch, i.e., it may reqire an external (perhaps more than
 one).

Maybe I'll have to go back and wrestle with C.

Thanks,

Nelson

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


Re: Setting custom properties for a newly cloned stack

2004-01-11 Thread Sarah Reichelt
Hi Doug,

I have done a similar thing in the past, and in the post referenced  
below, you can see details of how I did it:

http://lists.runrev.com/pipermail/use-revolution/2003-September/ 
023280.html

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
On 10 Jan 2004, at 12:03 pm, Doug Lerner wrote:

What is the best way, timing-wise, to set the custom properties of a  
newly
cloned stack.

I (stupidly) tried

clone stack myStack
set the myProperty of Copy of myStack to 123
But... if in the openStack handler of the cloned stack I need to make
immediate use of that property it seems it is too late. The clone  
command
opens up the stack *first*, right? Then *after that* the set command  
runs.

So how to best set custom properties in the cloned stack if they need  
to be
used during the openStack handler?

Global variables?

doug

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


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


Re: Flute Tuner

2004-01-11 Thread Nelson Zink
Dar,

 The first is (the best I know) that recording is to a file and is not
 an input stream.  That will make a delay from recording the tone and
 then analyzing it.

That kind of shoots the whole concept of real time feedback.

Thanks, 

Nelson

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


Re: Recurring Dates Script

2004-01-11 Thread Sarah Reichelt
Hi Jim,

I don't know exactly what sort of recurring dates you are planning, but 
you will find that using the dateItems format works really well for 
date calculations:

Try something like this:
put the seconds into theDate
convert theDate to dateItems
-- 2004,1,12,8,16,46,2
-- see the docs for dateItems to check what each item is.
Now you can edit any of these items WITHOUT having to worry about 
whether it results in a correct date. When you convert it back, the 
engine will make it into a real date.

add 18 to item 2 of theDate  -- item 2 = month, so move 18 months 
forward
-- 2004,19,12,8,18,26,2
convert theDate to long date
-- Tuesday, July 12, 2005

Hope this helps,
Sarah
On 12 Jan 2004, at 1:59 am, Jim Carwardine wrote:

Has anyone written a script that handles recurring dates like Outlook 
or
Entourage do?  Jim
--

OYF is... Highly resourceful people working together.
http://www.OwnYourFuture-net.com
Own Your Future Consulting Services Limited,
1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2
Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139


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


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


Re: Multi-level filtering question

2004-01-11 Thread Sarah Reichelt
Anyway, getting back to my question.  What I would like to do is 
filter for multiple aspects of each record (assuming several thousand 
records and each record having four lines with each line ending with a 
CR).  I have been able to run a multi-level filter against the 
database and that works great, but what I have not been able to solve 
yet is to run the multi-level filter and have it extract all four 
lines of the record.  Going back to the entry above, say I wanted to 
do a query that would find all records where AttributeB: MTA=MSEXC210 
AND where AtrributeC: MDB=MSEXC210,Server=MSEXC212 were present then 
pipe all four lines of each record that fit the criteria out to a text 
file or output field.

I see two options here:
1. If you know the records are going to be adjacent, you can find the 
first one using filter, get it's lineOffset in the original data and 
return the filtered line plus the following 3 lines.

2. You can do a series of filters, renewing the original data before 
each one, then concatenate the results.

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Flute Tuner

2004-01-11 Thread Dar Scott
On Sunday, January 11, 2004, at 03:15 PM, Nelson Zink wrote:

The first is (the best I know) that recording is to a file and is not
an input stream.  That will make a delay from recording the tone and
then analyzing it.
That kind of shoots the whole concept of real time feedback.
Maybe.  Computers are getting faster faster.  You are probably right.  
But, maybe...

dar

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


Re: A couple of weird things with cloned stacks

2004-01-11 Thread Doug Lerner
On 1/12/04 6:47 AM, Sarah Reichelt [EMAIL PROTECTED] wrote:

 On 10 Jan 2004, at 1:41 am, Doug Lerner wrote:
 
 (1) If I use the
 
 set mainStack
 
 command to cause cloned stacks to be a substack of the main stack it
 has the
 inconvenient side-effect of storing all the created cloned substacks
 in the
 main file when I save everything in the IDE.
 
 It's probably better to duplicate main stack handlers in the clone
 itself
 and leave it out of the mainstack.
 If you just want them to have access to the scripts in your mainStack,
 you could:
 start using stack MainStack
 so that all stacks can use it's handlers.

Thanks, Sarah. I'll check that out.

doug

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


Re: Converting Hexadecimal in Binary

2004-01-11 Thread Wouter
On 11 Jan 2004, at 23:16, [EMAIL PROTECTED] wrote:

Message: 7
Date: Sun, 11 Jan 2004 13:59:09 -0800 (PST)
From: Alejandro Tejada [EMAIL PROTECTED]
Subject: Re: Converting Hexadecimal in Binary
To: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii

snip

After all this time crunching, I suppose that
the next step for more speed is an external. :-)
Thanks a lot, Wouter and Dar!

al

Same to you.
Thanks to the nice Homer image you included in your example stack,
I stumbled on another problem with PNG and keeping transparency.
A new bone to chew on.
Keep you posted after obtaining some more details.
Greetings,
WA
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Flute Tuner

2004-01-11 Thread Mark Wieder
Nelson-

The good news here is that a flute produces the closest thing to a
pure sine wave that you can get from a musical instrument. You'd
probably have to open the audio in port and start counting
zero-crossings and reject anything too far out of band.

Even looking at just an A-440Hz signal, though, that means looking
looking for a transition every 1.8 milliseconds. System ticks aren't
that accurate. If you're not using a machine with an accessible DSP
chip hooked up to your audio input I think you're going to be dealing
with some very low-level code - deeper than you'll be able to get with
Transcript.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: Flute Tuner

2004-01-11 Thread Nelson Zink
Mark,

 The good news here is that a flute produces the closest thing to a
 pure sine wave that you can get from a musical instrument. You'd
 probably have to open the audio in port and start counting
 zero-crossings and reject anything too far out of band.

That's the basic idea.

 Even looking at just an A-440Hz signal, though, that means looking
 looking for a transition every 1.8 milliseconds. System ticks aren't
 that accurate.

The program wouldn't report more often than maybe a fifth of second
(averaging maybe 50 cycles) or else the output gets too jittery.

Nelson

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


Re: Recurring Dates Script

2004-01-11 Thread Jim Carwardine
Thanks, Sarah.  I'm familiar with dateItems from HC.  Even with dateItems,
checking on things like the second Tuesday of every month is tricky.  I was
hoping that somebody might have done some of that... Jim

on 1/11/04 6:21 PM, Sarah Reichelt wrote:

 Hi Jim,
 
 I don't know exactly what sort of recurring dates you are planning, but
 you will find that using the dateItems format works really well for
 date calculations:
 
 Try something like this:
 put the seconds into theDate
 convert theDate to dateItems
 -- 2004,1,12,8,16,46,2
 -- see the docs for dateItems to check what each item is.
 
 Now you can edit any of these items WITHOUT having to worry about
 whether it results in a correct date. When you convert it back, the
 engine will make it into a real date.
 
 add 18 to item 2 of theDate  -- item 2 = month, so move 18 months
 forward
 -- 2004,19,12,8,18,26,2
 convert theDate to long date
 -- Tuesday, July 12, 2005
 
 Hope this helps,
 Sarah
 
 On 12 Jan 2004, at 1:59 am, Jim Carwardine wrote:
 
 Has anyone written a script that handles recurring dates like Outlook
 or
 Entourage do?  Jim
 -- 
 
 OYF is... Highly resourceful people working together.
 http://www.OwnYourFuture-net.com
 
 Own Your Future Consulting Services Limited,
 1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2
 Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139
 
 
 
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution

-- 

OYF is... Highly resourceful people working together.
http://www.OwnYourFuture-net.com

Own Your Future Consulting Services Limited,
1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2
Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139



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


RE: When clicking on a palette item, how does Rev know what stack youwere in?

2004-01-11 Thread Ken Ray
 Is there an easy way of detecting which of the windows I was 
 in when I went to click the palette?

Well, if you ask for the topStack, you'll get the top-most, non-palette
stack (which *should* be the one you were last working with.

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


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


Re: When clicking on a palette item, how does Rev know what stackyouwere in?

2004-01-11 Thread Doug Lerner
On 1/12/04 12:25 PM, Ken Ray [EMAIL PROTECTED] wrote:

 Is there an easy way of detecting which of the windows I was
 in when I went to click the palette?
 
 Well, if you ask for the topStack, you'll get the top-most, non-palette
 stack (which *should* be the one you were last working with.


I ended up doing this with a mouseLeave handler in the stack I was in. That
seems most reliable, in case the other stack is not a palette.

doug

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


Re: [OT] new Mac software: GarageBand and iLife'04

2004-01-11 Thread erik hansen
--- Scott Rossi [EMAIL PROTECTED] wrote:

 This is not to argue that GarageBand is a
 replacement for the other
 commercial audio apps, but I, for one, was
 wondering how Apples loops
 compared to those of other music building apps
 (GrooveMaker, MixMan, etc).

 http://www.tactilemedia.com

Band In A Box is the most widely used.
Roland and Yamaha have dedicated boxes.

i imagine we will soon be able to feed
output from Kurt Kaufman's MIDI app to
GarageBand.

Erik

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

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Linux dist build problem

2004-01-11 Thread Bill Vlahos
This is expected behavior as OS9 doesn't have an execute bit to set. 
You found the fix.

Bill Vlahos

On Jan 9, 2004, at 8:42 AM, T. R. Ponn wrote:

Hello all!

I'm developing with MacOS9.2.2, RunRev2.0.3 for multi-platform 
distribution...

Apparently, one of my Linux beta sites reports that the app is not 
appearing as an executable.  So...he manually sets that flag before he 
uses the app so that Linux will treat it properly.  Any clues?  Is 
this a distribution buider problem, or some setting that I've 
overlooked?  I don't recall having this problem with 1.1.1, I think it 
just started with 2.0.3, although I'll be looking through previous 
versions of my app very quickly now :-[

Thanks in advance for your help!

Best Regards,

Tim Ponn

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


ANN: New webpage :D (my stacks will be here from now on...)

2004-01-11 Thread Andre Garzia
	Hi Folks,

	It's full of happyness that I announce here first my new home on the 
web. It took a while to organize everything. Also not everything is 
online yet. I must upload the stacks, but there's info there. Also this 
makes a huge step from working with Rev from a hobbie standpoint to a 
more mature (and commercial) standpoint. All my projects and contracts 
will be here. Everything that I think is usefull for our community will 
be public domain. Also there's a blog where I'll put the news!

	The XML-RPC Project and the HTTPd Project will be updated this week. 
Also simple code tidbits will be posted to the blog.

	my new url is http://studio.soapdog.org  feel free to mail me comments 
on my projects and page :D

	Ah, and I want to qualify for membership on the RunRev Web Ring!!!

Cheers
Andre Garzia  2003
imac2 ibook p100 e uma torradeira
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] libEmail v1.00 and libSmtp v2.00

2004-01-11 Thread [EMAIL PROTECTED]
Well after many months of sitting around and doing nothing, I'm finally 
releasing the next version of libSmtp and it's new companion library - 
libEmail!

libSmtp has been re-written and all of the email encoding features that 
were found in the previous versions have all been off-loaded to libEmail.

What's new in libSmtp v2
- almost 100% re-written
- more robust error handling
- everything should be threaded (wait with messages)
- better smtp authentication support and handling

libEmail v1.0.0 is a new library featuring all the great features found 
in the old libSmtp library, but with much better support. All the code 
has been sifted through and re-written in many places. Support for 
unicode in headers and message body parts was added in.


Why two libraries now?
It's not a money grab ^_^ as they are both released into the public 
domain. The reason for the two libraries is to allow me to give better 
attention to the one task that they're to do, but also to allow you 
greater flexibility and choice.

What choices?
By spliting them into two libraries, you can use another library with 
either one of these libraries.


As always, feel free to write with comments, suggestions or fixes 
for undocumented features ;-)

-Sean
www.shaosean.tk

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


Re: Flute Tuner

2004-01-11 Thread Mark Wieder
Nelson-

Sunday, January 11, 2004, 5:56:00 PM, you wrote:

 Even looking at just an A-440Hz signal, though, that means looking
 looking for a transition every 1.8 milliseconds. System ticks aren't
 that accurate.

NZ The program wouldn't report more often than maybe a fifth of second
NZ (averaging maybe 50 cycles) or else the output gets too jittery.

...and true to form I miscalculated the period in my head. It's
actually 1.14 milliseconds per transition. I was referring to you
trying to figure out the frequency yourself by checking the period of
the incoming waveform, not the reporting interval. I think this is
something that's better off done in hardware, or as close to the
hardware as you can get.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


iMovie vs Final Cut Pro

2004-01-11 Thread erik hansen

doe anyone have direct experience editing
videos with iMovie vs Final Cut Pro and
running the videos from Revolution?

thanks, Erik

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

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution