Re: Sending ArrowKey("down")

2006-08-26 Thread Ken Ray
On 8/26/06 5:14 AM, "Sivakatirswami" <[EMAIL PROTECTED]> wrote:


 
> But the tabkey msg is sent, because  I do get  an error message say
> "error in function: arrowkey("down")
> 
> The docs say:
> 
> "  Note:  Sending an arrowKey message does nothing unless there is an
> arrowKey handler in the message path. This is a difference from
> HyperTalk's handling of the arrowKey message."
> 
> So, it appears like it should work, but there's no example in the docs
> on just exactly how to send an arrowKey message, which one assumes must
> require a parameter to indicate which of the  four arrow keys one is
> emulating.

Try:

  send "arrowKey" && quote & "down" & quote to fld "fileList"

But personally if there is a better way, like to activate the same handler
that is activated when "arrowkey down" is triggered, that would be best,
IMHO...

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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Loading Application into Memory

2006-08-26 Thread Steven Axtell
I am writing a textbook-like application that consists of text and JPEG 
figures.  The total size of the application is about 500 KB.  When I launch the 
application, the first card comes up fast.  When I select a button to bring up 
a second card, there is a fair amount of delay (about 2 seconds on a Windows 
Pentium III, 1 GHz, 512 MB machine) before the second card comes up.  It's as 
though the application is loading into memory at that time.  After that, all of 
the cards come up fast.  What can I do to get the application to load into 
memory at launch?  Also, what would I need to do to show a card briefly while 
the application is loading into memory?

Thanks,
Steve Axtell
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Sending ArrowKey("down")

2006-08-26 Thread Sivakatirswami
I have an arrowkey handler in a list field. when the user arrows down, 
stuff happens...


I would like to be able to pass that arrow key down from a field  but i 
can't get it to work:


the idea is: someone is typing in this field and when they are done, 
they hit tab and the arrowkey msg is sent to the list field.


on tabkey
 send arrowkey("down") to fld  "fileList"
end tabkey


doesn't work

on tabkey
 send arrowkey(down) to fld  "fileList"
end tabkey

also doesn't work.

The field is not in a group, there is no group on the card
and thus the field does not have tabbed behavior explicitely set,
but still if I tab from the field it goes to the next field on the card.

But the tabkey msg is sent, because  I do get  an error message say
"error in function: arrowkey("down")

The docs say:

"  Note:  Sending an arrowKey message does nothing unless there is an 
arrowKey handler in the message path. This is a difference from 
HyperTalk's handling of the arrowKey message."


So, it appears like it should work, but there's no example in the docs 
on just exactly how to send an arrowKey message, which one assumes must 
require a parameter to indicate which of the  four arrow keys one is 
emulating.


I'm missing some thing simple

TIA
Sivakatirswami




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: finding repeating patterns

2006-08-26 Thread jbv
for those interested, here's something much faster :

on mouseUp
  set cursor to watch
  lock screen
  put fld 1 into myST
  put number of chars of myST into n
  put "" into myL
  set the casesensitive to true
  put 1 into k
  repeat while k<=1000
repeat with i=100 down to 6
  put k+i-1 into b
  get char k to b of myST
  put myST into a
  replace it with "" in a
  put ((n - number of chars of a) / b) into c
  if c>=2 then
put it & tab & c & cr after myL
add b-1 to k
exit repeat
  end if
end repeat
add 1 to k
  end repeat
  put myL
end mouseUp

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: finding repeating patterns

2006-08-26 Thread jbv


Dar,

I came up to something similar... Here's a (very raw and quite slow) first 
approach
(it checks only groups of 6 to 20 chars) :

on mouseUp
  set cursor to watch
  lock screen
  put fld 1 into myST
  put "" into myL
  set the casesensitive to true
  repeat with k=1 to 1000
repeat with i=20 down to 6
  put k+i-1 into b
  get char k to b of myST
  put myST into a
  replace it with "" in a
  put ((number of chars of myST - number of chars of a) / b) into c
  if c>=2 then
put it & tab & c & cr after myL
exit repeat
  end if
end repeat
  end repeat
  put myL
end mouseUp

> On Aug 26, 2006, at 3:17 PM, jbv wrote:
>
> > Does anyone have (or know of) an algorithm to find repeating
> > patterns of characters in a string ?
>
> This brute-force method came to my mind.  Decide on a min and max
> length of patterns.  Try all possible substrings.  (Outer loop is
> start position, inner loop is end char based on min & max length.
> With each one check in an array.  If not there put 1 otherwise
> increment.  Look for counts greater than 1.
>
> If the repeating pattern must come right after the starting pattern,
> then this does not apply.  In that case, just look for the repeats of
> the substring after the trial string.  The problem is that "xaxaxaxa"
> would be counted as a repeating of "xa" and a repeating of "xaxa".
>
> Dar Scott

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: finding repeating patterns

2006-08-26 Thread Dar Scott


On Aug 26, 2006, at 3:17 PM, jbv wrote:


Does anyone have (or know of) an algorithm to find repeating
patterns of characters in a string ?


This brute-force method came to my mind.  Decide on a min and max  
length of patterns.  Try all possible substrings.  (Outer loop is  
start position, inner loop is end char based on min & max length.   
With each one check in an array.  If not there put 1 otherwise  
increment.  Look for counts greater than 1.


If the repeating pattern must come right after the starting pattern,  
then this does not apply.  In that case, just look for the repeats of  
the substring after the trial string.  The problem is that "xaxaxaxa"  
would be counted as a repeating of "xa" and a repeating of "xaxa".


Dar Scott
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: finding repeating patterns

2006-08-26 Thread jbv
well, I just realized that my question isn't very clear...

I DON'T WANT to find how many times pattern "ta" appears
in string "tatata" (for instance)...

What I want to find is : is there any repeating pattern of chars
in any string, which are they and (that's easy) how many times
each pattern appears in the string...

> Hi list,
>
> Does anyone have (or know of) an algorithm to find repeating
> patterns of characters in a string ?
> I'm not sure Transcript (er... Revolution) is fast enough for
> that kind of task, but anyway I thought it was worth asking...
>

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


finding repeating patterns

2006-08-26 Thread jbv
Hi list,

Does anyone have (or know of) an algorithm to find repeating
patterns of characters in a string ?
I'm not sure Transcript (er... Revolution) is fast enough for
that kind of task, but anyway I thought it was worth asking...

Thanks,
JB

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[partly OT?] Amazon S3, EC2, cyborgs

2006-08-26 Thread Dar Scott
I don't have an application (yet), but I'm curious if anybody has run  
a standalone or command-line Rev script on an Amazon EC2 virtual  
machine.


The Amazon [so-called] Web Services just dazzle me.  Storage, queues,  
virtual servers, cyborgs...  All accessible and with upfront simple  
pricing.


Dar Scott

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Play One Movie On Top of Another?

2006-08-26 Thread Howard Bornstein

Sorry, I couldn't get this to download from RevOnline. :-(

--
Regards,

Howard Bornstein
---
www.designeq.com


On 8/25/06, Sivakatirswami <[EMAIL PROTECTED]> wrote:


A sample is up on Rev Online:

Go to "Education" or user space "Sivakatirswami" and check out "Two
Movies"

This stack loads two.SMIL files into two player objects , from our
server in San Francisco, which then stream two movies, one underneath
and the other on top.

I would be really interested in testers.
It's working on OSX. Does it work on Windows?

Sivakatirswami

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: u3: where to store data?

2006-08-26 Thread Fred Middlebrooks
 
On Saturday, August 26, 2006, at 12:48PM, Malte Brill <[EMAIL PROTECTED]> wrote:

>Hi all,
>
>I thought I´ll give the u3 thingy a shot today, so I got me a small u3 
>drive. Now I wonder: Where should my app store its data? Where would 
>preferences usually go? I already looked at the globals and checked the 
>paths in there. I recall vaguely that I have seen a post on this a while 
>back, but a search comes up with zilch. Any hints welcome.
>
>All the best,
>
>Malte
>___
>use-revolution mailing list
>use-revolution@lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your subscription 
>preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


u3: where to store data?

2006-08-26 Thread Malte Brill

Hi all,

I thought I´ll give the u3 thingy a shot today, so I got me a small u3 
drive. Now I wonder: Where should my app store its data? Where would 
preferences usually go? I already looked at the globals and checked the 
paths in there. I recall vaguely that I have seen a post on this a while 
back, but a search comes up with zilch. Any hints welcome.


All the best,

Malte
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Fwd: Question: MacOS X Bundled Apache Server or Embeded Web Server?

2006-08-26 Thread Pierre Sahores

Katir,

I forgot to precise, in the previous mail, that the tasks queued to  
the Rev deamon is'nt managed by the Rev deamon it-self (Rev is not so  
good in about this) but by Apache+PHP, so the Rev deamon always just  
know about one task after the other and never twice at once. Because  
Apache does this part of the job in multi-thread mode, the result is  
for us that the global server-side process "Apache+PHP+Rev" works  
just alike a 100% multiprocess system would do with just a small  
difference : it works then time faster than the Tomcat, JBoss or  
Websphere based solutions...


Best,

Pierre

Début du message réexpédié :


De : Pierre Sahores <[EMAIL PROTECTED]>
Date : 26 août 2006 12:36:01 HAEC
À : How to use Revolution 
Cc : Pierre Sahores <[EMAIL PROTECTED]>, Sivakatirswami  
<[EMAIL PROTECTED]>
Objet : Rép : Question: MacOS X Bundled Apache Server or Embeded  
Web Server?


Hello Katir,

In theory such a process will block your framework for 10 seconds  
as you expect. In practice, there is, for sure, a way we can design  
the entiere "n-tier" process your are thinking about to have the  
blocking part of it on the client-side part of the solution (AJAX  
xmlhttprequest object calls if the client app is a webbrowser, Rev  
scripting if the client-side app is a Rev one), so you will never  
need to slow-up and breake your server-side queue of tasks. In this  
case, the fact that Rev is not multi-threaded will never be a  
problem because, even if some ones can doubt of this, J2SE deamon  
are running up to teen time slower than Rev deamons (Linux and OSX) :


J2SE supports 3 threads max at once while Rev is queuing each task  
= 3 * 10 times unit for J2SE and, only, 3 * 1 times under a Rev  
server-side deamon to have the same quantity (and quality !) of  
queries served to the clients. As you can expect, even if Rev is  
not multi-threaded, the work will be well done by Rev because its  
ablity to speed-up the responses to the queue of requests...


If you give me some more details about the process, you are  
thinking about, i'm sure we will be able to design the solution  
without having to manage synchronious blockings on the server-side.


Kind Regards,

Pierre

Le 26 août 06 à 05:43, Sivakatirswami a écrit :


Pierre:

If a single engine is running as a daemon, and, as we know,  
Revolution is no multi-threaded and cannot fork a new  process.  
What happens if one of your CGI has a "wait 10 seconds" in it...  
or a blocking call ?  Doesn't this bring down the entire framework  
for 10 seconds and all other attempts to use the engine are  
blocked for 10 seconds?


Sivakatirswami


Pierre Sahores wrote:

Hi Andre,

I'm bundeling MC/Rev client-server's applications to Apache since  
1997 in using this kind of architecture. The client part of the  
process can be un standard web browser under the Win32, MacOS9/X  
or Linux platforms, a webbrowser+AJAX add-ones (XMLHTTPRequest  
objects) on the same platforms or MC/Rev client-side apps. All  
works very securely in real solutions solded to my customers  
(Education, Universities, Humans Ressources Management and  
Coaching).


Perhaps could you have an eye on the basic tutorial i maintain on  
the subject at .


Dont hesite to ask me more about the details ;-)

Best Regards,

Pierre


Le 24 août 06 à 01:49, Andre Garzia a écrit :


Hi Folks,

I am building my soon to be released web application development  
thingy. I am bundling all my libraries (and some third party  
with credits), docs and example.


But since I talked with Dan and others during RevConWest, I  
decided that the most important part of this package is the out- 
of-the-box experience. The hardest thing about CGI and WebApps  
for rev users is usually setting up the environment. The idea is  
to develop locally and then deploy when ready. I can't really  
build this for Windows, I expect help on that later. So the idea  
is that there's a home stack that sets everything up.


Till today I was bundling the LiteSpeed Web Server www.litespeedtech.com> server with the package. The server would  
be all set up out of the box so that you could just launch and  
play. The problem is, the thing is not running CGIs, the plain  
old ones... they run once, then the server deadlocks. ARGH I  
thought about using cherokee web server   
but then, it comes out in source form and when it compiles it  
hard code some paths for the dynamic loading libraries, so you  
cannot really build it and then just bundle. You must compile it  
for each installation. Thats the same trouble with Lighttp  
, and building it with static options  
makes a huge server like 158mb and still it hard code the paths.


The MacOS X Apache server is not ready for FastCGI, for that we  
need to install the modules, which is easy. Actually thats not  
hard, simple commands and a revolution made stack could drive  
t

Re: Question: MacOS X Bundled Apache Server or Embeded Web Server?

2006-08-26 Thread Pierre Sahores

Hello Katir,

In theory such a process will block your framework for 10 seconds as  
you expect. In practice, there is, for sure, a way we can design the  
entiere "n-tier" process your are thinking about to have the blocking  
part of it on the client-side part of the solution (AJAX  
xmlhttprequest object calls if the client app is a webbrowser, Rev  
scripting if the client-side app is a Rev one), so you will never  
need to slow-up and breake your server-side queue of tasks. In this  
case, the fact that Rev is not multi-threaded will never be a problem  
because, even if some ones can doubt of this, J2SE deamon are running  
up to teen time slower than Rev deamons (Linux and OSX) :


J2SE supports 3 threads max at once while Rev is queuing each task =  
3 * 10 times unit for J2SE and, only, 3 * 1 times under a Rev server- 
side deamon to have the same quantity (and quality !) of queries  
served to the clients. As you can expect, even if Rev is not multi- 
threaded, the work will be well done by Rev because its ablity to  
speed-up the responses to the queue of requests...


If you give me some more details about the process, you are thinking  
about, i'm sure we will be able to design the solution without having  
to manage synchronious blockings on the server-side.


Kind Regards,

Pierre

Le 26 août 06 à 05:43, Sivakatirswami a écrit :


Pierre:

If a single engine is running as a daemon, and, as we know,  
Revolution is no multi-threaded and cannot fork a new  process.  
What happens if one of your CGI has a "wait 10 seconds" in it... or  
a blocking call ?  Doesn't this bring down the entire framework for  
10 seconds and all other attempts to use the engine are blocked for  
10 seconds?


Sivakatirswami


Pierre Sahores wrote:

Hi Andre,

I'm bundeling MC/Rev client-server's applications to Apache since  
1997 in using this kind of architecture. The client part of the  
process can be un standard web browser under the Win32, MacOS9/X  
or Linux platforms, a webbrowser+AJAX add-ones (XMLHTTPRequest  
objects) on the same platforms or MC/Rev client-side apps. All  
works very securely in real solutions solded to my customers  
(Education, Universities, Humans Ressources Management and Coaching).


Perhaps could you have an eye on the basic tutorial i maintain on  
the subject at .


Dont hesite to ask me more about the details ;-)

Best Regards,

Pierre


Le 24 août 06 à 01:49, Andre Garzia a écrit :


Hi Folks,

I am building my soon to be released web application development  
thingy. I am bundling all my libraries (and some third party with  
credits), docs and example.


But since I talked with Dan and others during RevConWest, I  
decided that the most important part of this package is the out- 
of-the-box experience. The hardest thing about CGI and WebApps  
for rev users is usually setting up the environment. The idea is  
to develop locally and then deploy when ready. I can't really  
build this for Windows, I expect help on that later. So the idea  
is that there's a home stack that sets everything up.


Till today I was bundling the LiteSpeed Web Server www.litespeedtech.com> server with the package. The server would  
be all set up out of the box so that you could just launch and  
play. The problem is, the thing is not running CGIs, the plain  
old ones... they run once, then the server deadlocks. ARGH I  
thought about using cherokee web server   
but then, it comes out in source form and when it compiles it  
hard code some paths for the dynamic loading libraries, so you  
cannot really build it and then just bundle. You must compile it  
for each installation. Thats the same trouble with Lighttp  
, and building it with static options  
makes a huge server like 158mb and still it hard code the paths.


The MacOS X Apache server is not ready for FastCGI, for that we  
need to install the modules, which is easy. Actually thats not  
hard, simple commands and a revolution made stack could drive  
that installation easy. But again MacOS X out-of-the-box lacks  
the needed C compiler for that, only those that installed XCode  
development tools have the needed stuff to build Apache Modules.


So here I am. The little servers all have some trouble or  
another, the MacOS X bundled one is fine, but again, you need to  
download 1GB XCode tools just to build simple couple megs apache  
module...


any clue out there folks? is there any autoconf magician here  
that can build a lighttp install with relative paths instead of  
absolute ones (I tried and it didn't like).


Can we use otool to rewrite the linkers absolute path using a  
relative one like we do for frameworks (using @executable_path).


Argh, I am looking for help.

Andre
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe an

Re: Program Icons and Autoplay

2006-08-26 Thread Klaus Major

Hi Greame,

Am 26.08.2006 um 11:14 schrieb Mark Schonewille:


Hi Graeme,

You need to create icon files with special icon software, such as  
IconBuilder, IconoGrapher, LiguidIcon, or IconWorkshop. IconBuilder  
is a little complex, IconoGrapher easy but created bad icons for  
Windows, LiquicIcon is free but not very intuitive, and I have  
heard many good things about IconWorkshop.


Once you have created your icon files, you have to tell the  
Revolution Standalone builder which files to use for icons. I am  
sure you can figure this out yourself.


You can autostart a CD on Windows by including a text file in the  
root of the CD containing the line: open=setup.exe. Setup.exe would  
be the path to the application you want to start.


Put a simple textfile named "autorun.inf" (without the quotes, of  
course!)

on the root level of you CD-Rom.

You can also define a nice icon for the CD by putting the ico file on  
the root level

of the CD-Rom and adding these line to the file:

icon=nice_icon.ico
open=name_of_your_app.exe

The icon is of course optional.

There was a trick on Mac to autostart CDs. I don't know if this is  
still possible and it is generally seen as bad behaviour by Mac users.


This anti-feature is no more available on a Mac!

Since one of the rare Mac virii (the so called "autostart virus, I  
think it was programmed
in HyperCard?) used this leak in earlier days, Apple completely  
diabled this feature.


Unfortunately, and since CDs do NOT appear on the windows desktop  
like they do on the Mac,

the autorun feature is almost a MUST for windows distribution on CD.

Most windows users are completely lost and do not know what to do  
without this "feature",

which of course a heartfelt invitation for malicious code :-)

icon=harmless_kitten_or_something.ico
open=evil_app_that_will_erase_the_complete_harddisk.exe

:-D


Best regards,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Program Icons and Autoplay

2006-08-26 Thread Mark Schonewille

Hi Graeme,

You need to create icon files with special icon software, such as  
IconBuilder, IconoGrapher, LiguidIcon, or IconWorkshop. IconBuilder  
is a little complex, IconoGrapher easy but created bad icons for  
Windows, LiquicIcon is free but not very intuitive, and I have heard  
many good things about IconWorkshop.


Once you have created your icon files, you have to tell the  
Revolution Standalone builder which files to use for icons. I am sure  
you can figure this out yourself.


You can autostart a CD on Windows by including a text file in the  
root of the CD containing the line: open=setup.exe. Setup.exe would  
be the path to the application you want to start.


There was a trick on Mac to autostart CDs. I don't know if this is  
still possible and it is generally seen as bad behaviour by Mac users.


Best regards,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Convert HyperCard stacks with DIFfersifier. Download it at http:// 
differsifier.economy-x-talk.com


Op 26-aug-2006, om 4:40 heeft Graeme Harlick het volgende geschreven:


RunRev,

My Myst App is near completion and looking and sounding great,  
thanks for everyone's help here on the mailing list.  I'm a newbie  
programmer, but you guys made this a very nice looking program.


How do I give my standalone application an icon instead of the  
plain-program-screen-looking icon?  Along with one in the corner of  
my program's window?


Also, I hope to burn my program onto a disk, how would I make it  
autoplay when the disk is inserted into the D drive?


Thanks alot,

Graeme



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution