Re: a maze-game stack?

2005-07-20 Thread Dave Cragg


On 20 Jul 2005, at 03:19, Nicolas Cueto wrote:


Hello Malte,

Thanks for replying. And I'll take up your suggestion
of continuing this on the ArcadeEngine forums.

One more question here, though?



How would you like to create the maze? Randomly
(a bit hard) or from a set of template mazes?



Your "a bit hard" is surely "hair-tearing hard" for me,
so the templates route is likely quicker.

Yet, to follow up on your suggestion of assembling the
maze out of objects/buttons (like working with Lego?),
what do you mean by a "template"? A series of co-
ordinates? A pre-drawn maze?


Example:

You make your "maze area" out of a grid of buttons or rectangles. You  
name the objects in some way so that its coordinates are  
identifiable. For example, the top left button might be "b 1 1", the  
one to the right "b 2 1", the one below that "b 2 2", and so on.


The path throuh the maze is created by setting the backcolor of the  
appropriate buttons white (for example), while the other buttons are  
colored black (for example). A template might conist of a series of  
coordinates like this:


1 1,2 1,2 2,2 3,3 3,4 3,4 3,5 4, . etc,

You place the object to be moved (princess, mouse, shoe, whatever) on  
the start square (b 1 1 in this case). Assuming navigation is done  
with the arrow keys, when an arrow key is hit, you calculate the next  
object the person wants to move to. Then check that this is a valid  
place to move to. If so, move the princess, if not, make warning sound.


local sHere  ##tracks the current location

on arrowKey pWhere
  put sHere into tTempHere
  switch pWhere
   case up
  subtract 1 from word 3 of tTempHere
   break
## other cases here
  end switch
  if there is a button tTempHere and the backcolor of button  
tTempHere is white then

put tTempHere into sHere
set the loc of image "princess" to the loc of button sHere
## make cute sound, perhaps
  else
##make nasty sound
  end if
end arrowKey

Is this the kind of thing you were thinkig of, Nicolas, or something  
else entirely?


Cheers
Dave


___
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


Project for External Command

2005-07-20 Thread David Burgun

Hi,

I need to write an external command handler. I downloaded the 
External Command SDK but I can't find a valid project file for Mac. I 
am running Tiger and have CodeWarrior and X-Code.


Could anyone point me to a Project file? I am trying to rebuild the 
project by hand, but as there is no documentation it's pretty 
difficult.


All the Best
Dave
___
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: [ANN] A Small Announcement

2005-07-20 Thread Eric Chatonet

Hi Dan,

I call that great service to the whole community.
Big work too... Now and later ;-)
Thanks.

Best Regards from Paris,

Eric Chatonet.

PS. For those who are kind enough to use Resources Picker, add  
*immediately* the following url to Resources Picker web database:

http://www.altuit.com/webs/dshafer/BestofList/default.htm

Le 19 juil. 05 à 23:45, Dan Shafer a écrit :

Just a quick note to those of you who might actually care that my  
old Rev site is back online in a new incarnation.


http://www.revolutionpros.com

Main interesting feature other than my opinions ( :-D ) is the  
place where I've resumed my practice of digesting interesting (to  
me) threads from this forum, cleaned out duplicate stuff, hidden  
email identities, given appropriate credit and organized things a  
bit. only a couple of new ones but I plan to add several each week  
so stay tuned.



So Smart Software

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

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: a maze-game stack?

2005-07-20 Thread Nicolas Cueto
2005/07/20 14:36:22 ni, Judy-san wo kaita:

> Is your
> bird's eye view cartesian
> or orthoscopic? 

Orthoscopic?! If that means a viewpoint similar
to actually walking thru a maze, most definitely 
x-y cartesian.

--
Nicolas Cueto
___
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: [Slightly OT] Ransomware as a Model for Rev Toolmaking?

2005-07-20 Thread david bovill

On 20 Jul 2005, at 03:41, Brian Yennie wrote:


Dan,

Thanks. It's far from perfect, but I find is just interesting enough 
that I might participate if it were alive =).


With that said, is there a group of people that are interested in 
taking something like this off-list and trying to reach consensus to 
build something? Or has it run it's course as an on-list exercise?


I'm in. I have a small budget I could put towards developing this. So 
if there are any developers interested in taking it forwards - we can 
start by eating our own dog food ?


___
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


Newbe Drag & Drop Question

2005-07-20 Thread Douglas Gilliland
I am writing a stack on Density for my students. I want them to drag a
cube of iron on to an electronic balance to mass it. The script would
change the display of the balance from 0.00 grams to thel mass of the
iron sample.

 I have made the cube draggable by assigning it the following scipt:
on mousedown
drag me
end mousedown
That part works great.

I attempted to place a hidden button over the balance and use the
dragenter message in a variety of ways but cannot get it to work.
When I used HyperStudio the dragdrop function was built into the
program so I didn't learn how to script it.
Any advice for a Dreamcard newbe?
Thanks,
Doug Gilliland
Sarasota, FL
___
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: Newbe Drag & Drop Question

2005-07-20 Thread Eric Chatonet

Hi Doug,

You are right, Rev needs a bit of scripting to handle drag an drop  
but it's a good thing since scripting allows to manage this feature  
precisely.
You might be interested in a tutorial about drag and drop you can  
access trough Tutorials Picker.

Tutorials Picker is available on Rev Online - user: So Smart Software.

Best Regards from Paris,

Eric Chatonet.

Le 20 juil. 05 à 12:46, Douglas Gilliland a écrit :


I am writing a stack on Density for my students. I want them to drag a
cube of iron on to an electronic balance to mass it. The script would
change the display of the balance from 0.00 grams to thel mass of the
iron sample.

 I have made the cube draggable by assigning it the following scipt:
on mousedown
drag me
end mousedown
That part works great.

I attempted to place a hidden button over the balance and use the
dragenter message in a variety of ways but cannot get it to work.
When I used HyperStudio the dragdrop function was built into the
program so I didn't learn how to script it.
Any advice for a Dreamcard newbe?



So Smart Software

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

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: Web site security using Rev

2005-07-20 Thread Jim Bufalini
OK, I may be spacing out here, but HTML an call a CGI script with parms,
which, in turn, can make the HTML dynamic. I just thought this would be a
convenient way to experiment with Rev CGI. It's a small number pages. -Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, July 19, 2005 8:52 PM
To: [EMAIL PROTECTED]; How to use Revolution
Subject: Re: Web site security using Rev


This is not something the cgi can do if you dont go via the cgi.
Going to sub folders is not something the cgi will detect (AFAIK).

Permissions should be set either at the ftp level or in IIS via the IIS
Manager, or the NT permissions.
Sorry, dont know about apache but i think that falls in the ftp
permissions.

cheers
Xavier

On 20/07/2005 07:43:38 use-revolution-bounces wrote:
>Has anybody used Rev to password protect a section of a website, rather
than
>using ASP or CF or other database solution? Just a basic login page, and
if
>anyone tries to go directly to a subdirectory of the login page, without
>logging in, they get bounced back to the login page? CGI can do this.
Anyone
>have a demo stack or tutorial?
>
>Jim
>___
>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


-
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.

END OF DISCLAIMER
___
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


RE: Web site security using Rev

2005-07-20 Thread xbury . cs
Jim

Sorry, it's not how i had read it (missing details?)

Yes, in that case it is possible to have the cgi verify the security of a 
section which
you can preset wantonly. 

cheers
Xavier



On 20/07/2005 14:48:51 use-revolution-bounces wrote:
>OK, I may be spacing out here, but HTML an call a CGI script with parms,
>which, in turn, can make the HTML dynamic. I just thought this would be a
>convenient way to experiment with Rev CGI. It's a small number pages. 
-Jim
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of
>[EMAIL PROTECTED]
>Sent: Tuesday, July 19, 2005 8:52 PM
>To: [EMAIL PROTECTED]; How to use Revolution
>Subject: Re: Web site security using Rev
>
>
>This is not something the cgi can do if you dont go via the cgi.
>Going to sub folders is not something the cgi will detect (AFAIK).
>
>Permissions should be set either at the ftp level or in IIS via the IIS
>Manager, or the NT permissions.
>Sorry, dont know about apache but i think that falls in the ftp
>permissions.
>
>cheers
>Xavier
>
>On 20/07/2005 07:43:38 use-revolution-bounces wrote:
>>Has anybody used Rev to password protect a section of a website, rather
>than
>>using ASP or CF or other database solution? Just a basic login page, and
>if
>>anyone tries to go directly to a subdirectory of the login page, without
>>logging in, they get bounced back to the login page? CGI can do this.
>Anyone
>>have a demo stack or tutorial?
>>
>>Jim
>>___
>>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
>
>
>-
>Visit us at http://www.clearstream.com
>

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


-
Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.

END OF DISCLAIMER
___
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: External for running one instance on windows

2005-07-20 Thread Lynch, Jonathan
This would only work if the program deletes that file before it closes -
right?

But, if the program crashes or the power gets cut off and the file is
not deleted, then the next time the program opens, the file will still
be there, and the program will think it is already running, when it
isn't.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew
Sent: Tuesday, July 19, 2005 2:35 PM
To: How to use Revolution
Subject: Re: External for running one instance on windows

There is another way to check if an instance is running 
that will work on all OS. When you start the program you 
create a file if it is not already there. If it is there 
then you close the program.

I hope this helps.

Sincerely, Matt
___
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


Invisible insertion point in field

2005-07-20 Thread David Wilkinson
I imagine there is an obvious answer to this but I cannot figure it 
out.

I have uploaded an experimental table field stack to my user space 
(user227), which uses work by and ideas from Chipp Walters, Sarah 
Reichelt and Scott Rossi.  It has an edit field that sits on top 
of a  worksheet/grid field. The problem is that although you can 
enter text in the edit field, the insertion point is invisible. Does 
anyone know why this might be?  One possible clue is that in order to 
drag the field with the left mouse button, the field has to be locked 
when the mouse enters its border zone and the insertion point does 
not show in lockedtext fields - but then you can't enter text in such 
field either.

As a side question, is there any reason why Rev should set the 
vscroll of this field to 4?  I cannot recall any code that scrolls it 
directly and notionally the textheight and textsize are the same as 
the underlying field.  I suspect this might be tied to the vertical 
offset from which text entered into fields, with hgrid enabled, seems 
to suffer.

TIA

David Wilkinson

___
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: External for running one instance on windows

2005-07-20 Thread Jim Bufalini
Correct. Creating files and depending on your program to delete them, on
exit, is a recipe for disaster. This only works with file locking, and even
then, it depends on the network OS to release the lock, when the program
exits (doesn't always happen, depending on the network, and a combination of
other factors). -Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Lynch,
Jonathan
Sent: Wednesday, July 20, 2005 3:19 AM
To: How to use Revolution
Subject: RE: External for running one instance on windows


This would only work if the program deletes that file before it closes -
right?

But, if the program crashes or the power gets cut off and the file is
not deleted, then the next time the program opens, the file will still
be there, and the program will think it is already running, when it
isn't.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew
Sent: Tuesday, July 19, 2005 2:35 PM
To: How to use Revolution
Subject: Re: External for running one instance on windows

There is another way to check if an instance is running
that will work on all OS. When you start the program you
create a file if it is not already there. If it is there
then you close the program.

I hope this helps.

Sincerely, Matt
___
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



___
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: MatchText and PCRE

2005-07-20 Thread David Wilkinson
David

Just a couple of points since Mark has already answered very well

Frederic Rinaldi's plugin in the rev development/plugin menu is 
invaluble for testing Rev's regex implementation and porting syntax, 
if you haven't discovered it

Like Mark, I had difficulties with the (?s) switch, though I 
concluded that this was to do with the greediness of the regex engine 
and my ignorance.   I resorted to using repeat for each line since I 
could not get lookbehind to work.

I would also recommend Jeffrey Friedl's illuminating book, though 
probably not reading it as I did during a  couple of sleepless nights 
with a dental abscess.  It is not a recipe book, but then I suspect 
that you already have a good understanding of regex.

David Wilkinson
___
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: ftp problem

2005-07-20 Thread Brad Borch
Thanks, I'll try your suggestion. I wasn't clear about the result; the 
seconds kept ticking, meaning the repeat look kept looping, even though 
the bytes uploaded were equal to the bytes to be uploaded.


Dave Cragg wrote:


On 19 Jul 2005, at 18:33, Brad Borch wrote:


I have a script to upload a file to an ftp site:

  libURLftpUpload compress(fData), myURLstring

  repeat while URLStatus(myURLstring) is NOT "uploaded"
 put URLStatus(myURLstring) && the long time
  end repeat

but this is the message I get:

uploading, 511814,511814 1:30:32 PM

so it looks like the file is completely uploaded, but the server  
isn't acknowledging it or something?



I think what you are seeing is what you would expect. The message is  
the last status displayed prior to the status changing to "uploaded".  
Once it changes, your repeat loop will exit and no further status  
messages will appear.


However, the repeat loop after the libUrlFtpUpload is not a good  idea. 
I'm surprised you are even seeing the "uploading" message.  libUrl 
carries out everything in a normal Rev script. The repeat loop  will run 
continuouly and block other scripts running.


The script below is a safer way to handle this:

on mouseUp ## or in whatever handler
  libURLftpUpload compress(fData), myURLstring
  showStatus myURLstring
end mouseUp

on showStatus pUrl
  put urlStatus(pUrl) into tStatus
  put tStatus
  if tStatus is not among the items of "uploaded,error,timeout" then
send "showStatus pUrl" to me in 50 milliseconds
  end if
end showStatus


Cheers
Dave


___
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


Re: embed/install font

2005-07-20 Thread Brad Borch
Yes--my first post that began this thread references an earlier thread 
"Own fontsuite with standalone?" I tried the EXT external, but was 
unable to get the the PC executable to return any external commands:


set the externals of this stack to gStackPath & "/EXT.dll"
  put the externalCommands of this stack into fld "fontTest2"
  put the externals of this stack into fld "thisTest"
  ext_loadFont (gStackPath & "/VeraMoBI.ttf")

But I'm not proficient enough at Transcript yet to know where the 
problem lies.


It appears from thist thread that this is a pretty significant feature 
request. I opted to use Rev because of its handling of Unicode; Flash 
handles Unicode and also embeds fonts. I felt Rev had other significant 
strengths, but it sure would be nice to have this problem solved.



[EMAIL PROTECTED] wrote:

Doesn't the EXT external provide this functionailty? Maybe memory is  
slipping.
 
/H

___
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


A curious question...

2005-07-20 Thread Lynch, Jonathan

I have a feeling most folks will not want to answer this question
directly, but I am curious and so feel compelled to ask...

How much does a typical freelance Revolution programmer earn per year?

I realize there are several caveats to such a question, but I am just
trying to get a sense of it - so any answer you can give me would be
welcome.

Thanks,

J



___
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


NPR puzzle

2005-07-20 Thread Jim Hurley

For my fellow puzzle addicts:

Here is this weeks NPR puzzle (Sunday Weekend edition)

Sunday Puzzle

By Will Shortz


Challenge for July 24:

A 10-letter word for a form of travel, that consists of five 
consecutive symbols of chemical elements. What is it? If automobile 
had been the answer, AU, would represent Gold, MO would represent 
Molybdenum, and BI, would represent Bismuth. Unfortunately, the 
remaining bigrams, TO and LE, are not chemical symbols.



I have put up a stack with two fields. The first contains all 10 
letter words in my dictionary.


The second contains all two character elements from the periodic table.

You task, should you choose to adopt it, is to write a Run Rev 
handler to solve this weeks NPR puzzle defined above.


In the message box:

go stack url  "http://home.infostations.net/jhurley/NPRpuzzle.rev";

Jim
___
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: A curious question...

2005-07-20 Thread MisterX
Jon

That's a good question. I'm interested too... 
Should it become a professional need...

Only if it's not too personal naturally ;)

As far as i know, some service provides can make (or
cost) up to a 1000EUs a day or more in our corporate 
banking realm...

I know most equaly qualified professionals that are
not self employed dont make this kind of money in a
week... 

cheers
Xavier


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Lynch, Jonathan
> Sent: Wednesday, July 20, 2005 16:35
> To: How to use Revolution
> Subject: A curious question...
> 
> 
> I have a feeling most folks will not want to answer this 
> question directly, but I am curious and so feel compelled to ask...
> 
> How much does a typical freelance Revolution programmer earn per year?
> 
> I realize there are several caveats to such a question, but I 
> am just trying to get a sense of it - so any answer you can 
> give me would be welcome.
> 
> Thanks,
> 
> J
> 
> 
> 
> ___
> 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


Re: Reminder of Shafer Book Status (Was Re: Asking for Shao Sean's Calendar Object)

2005-07-20 Thread Dan Shafer

Judy

Answered off-list.
Dan

On Jul 19, 2005, at 10:26 PM, Judy Perry wrote:

Yup, I'm a darned human.  Drat!  I suppose it's too late to try to  
find an

ex post facto Vulcan egg donor now, isn't it? ;-)

Anyway, what about those of us who paid up-front for all 3 vols?

I'm sure you've answered this already (and maybe even to me  
privately for
all I can recall; darned brain cells die off daily near as I can  
tell),

but what about us?

Judy

On Tue, 19 Jul 2005, Dan Shafer wrote:



Judy (and others).

It is difficult to get the word out to a community which doesn't read
every message on this list faithfully every day and remember
everything they've read. Darned humans.

Anyway, just so it's clear

There are no plans to release Volumes 2 & 3 of my "Software at the
Speed of Thought" as such. Instead, listening to feedback from the
market and paying attention to the reality of development cycles for
Rev, I decided some time ago to start releasing what I call eBooklets
consisting of expanded chapter-sized chunks from the planned contents
of Volumes 2 & 3. I have already released the first two such
eBooklets. Chapter 21 on CGI and Chapter 25 on custom properties.
I've stopped numbering them now, but the next one on printing will be
out as soon as a few marketing issues are resolved. It's essentially
done and ready to publish.

Other chapters will follow more rapidly now that RunRev and I are
clear on our respective roles and responsibilities in this ever-
evolving upward-progressive movement called life.



___
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


Re: NPR puzzle

2005-07-20 Thread Eric Chatonet

Hi Jim,

Quick and dirty :-)

alcoholism
alliterate
articulate
ceremonial
condescend
cuirassier
fraternise
generalise
helicopter
homogenise
inaccurate
liberalism
liberalise
monopolise
palatalise
palatinate
regenerate
reticulate
scarlatina
scrutineer
scrutinise
separatism
thereunder

30 milliseconds

Le 20 juil. 05 à 16:40, Jim Hurley a écrit :


Challenge for July 24:

A 10-letter word for a form of travel, that consists of five  
consecutive symbols of chemical elements. What is it? If automobile  
had been the answer, AU, would represent Gold, MO would represent  
Molybdenum, and BI, would represent Bismuth. Unfortunately, the  
remaining bigrams, TO and LE, are not chemical symbols.



Best Regards from Paris,

Eric Chatonet.

So Smart Software

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

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: a maze-game stack?

2005-07-20 Thread Alejandro Tejada
Hi Nicolas,

I'm writing to point an interesting solution
to your task: a pac-man version
scripted completely in Hypercard for US$10.00

HyperGames is a HyperCard stack, jam-packed with more
than 60exciting games and useful utilities.

Creative games include anacclaimed Pong clone, a
Pac-Man clone, animations, music makers, mathematical
puzzles, educational quizzes, etc.

Original HyperTalkutilities include a Find/Replace
function, an Internet dataconverter, an automatic
index generator, a progress bar, synchronisedmultiple
scrolling fields, and much much more.

It is also an ideal vehicle to learn scripting, as
well as to demonstrate the power of HyperCard.




al

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




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 
___
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: a maze-game stack?

2005-07-20 Thread Nicolas Cueto
Dave Cragg asked:

> Is this the kind of thing you were thinkig of, Nicolas, or something
> else entirely?

Sure was, Dave. In fact, that was such a brilliantly simple solution
that my maze game is now pretty well done.

Many, many thank you's!

Cheers,
Nicolas Cueto


___
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: NPR puzzle

2005-07-20 Thread Alex Tweedly

Jim Hurley wrote:


For my fellow puzzle addicts:

Here is this weeks NPR puzzle (Sunday Weekend edition)

Sunday Puzzle

By Will Shortz


Challenge for July 24:

A 10-letter word for a form of travel, that consists of five 
consecutive symbols of chemical elements. What is it? If automobile 
had been the answer, AU, would represent Gold, MO would represent 
Molybdenum, and BI, would represent Bismuth. Unfortunately, the 
remaining bigrams, TO and LE, are not chemical symbols.



I have put up a stack with two fields. The first contains all 10 
letter words in my dictionary.


The second contains all two character elements from the periodic table.

You task, should you choose to adopt it, is to write a Run Rev handler 
to solve this weeks NPR puzzle defined above.


In the message box:

go stack url  "http://home.infostations.net/jhurley/NPRpuzzle.rev";


Jim - do you think we have nothing better to do ??
I'm now an extra 15 minutes late on my deadline :-) :-)

I found 23 answers in your dictionary - just using a simple brute force 
search.
Interesting though sifting each position in turn, the number of 
possibles reduces :

3620
1626
509
216
101
23

Warning : code below - don't read any further unless you want to see it 
.








I renamed your fields to "Words" and "Symbols", and added a couple of 
others named "status" and "Possible"


on mouseUp
 local w, s, i, theWords, wcount, theBit, nextWords, thisBitMatches
 put field "Words" into theWords
 repeat with i = 1 to 9 step 2
   put 0 into wcount
   put empty into nextWords
   repeat for each line w in theWords
 put char i to i+1 of w into theBit
 add 1 to wcount
 put "Working on position " && i && "Possible: " && the number of 
lines in theWords && wcount into line 1 of field "status"

 put false into thisBitMatches
 repeat for each line s in field "Symbols"
   if s = theBit then
 put true into thisBitMatches
 exit repeat
   end if
 end repeat
 if thisBitMatches then put w & cr after nextWords
   end repeat
   put nextWords into theWords
   put the number of lines in theWords into line (i+1)/2 of field 
"Possible"

 end repeat
 put cr & theWords after field "status"
end mouseUp


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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.0/50 - Release Date: 16/07/2005

___
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: a maze-game stack?

2005-07-20 Thread Nicolas Cueto
Thanks, Alejandro, I'm intrigued but ours are Windows
machines only. If just the scripts are available, would
they be English-like enough that they could be "trans-
lated" into Rev-talk? The Pac-Man game is especially
tempting.

--
Nicolas Cueto
___
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


going nuts again

2005-07-20 Thread MisterX
Hi everyone,
 
Not long ago, there was a mention of problem with images not refreshing
correctly based on a changing path of the image.
 
Well, not long ago, actually centuries ago (naturally, i couldn't find it
anymore despite being sure i entered it - and i doubt it is easily
replicatable - and i dont have time to rebugzilla it), i posted a problem
with some images not refreshing correctly irrespective of where the image
was.
 
In this case, im using buttons as patterned objects. And since groups can't
be set opaque reliably either on WinXP compared to W2K, again a button for
bg pattern. hu... 
 
First observation is that changing a backpattern doesn't always refresh -
sometimes it's just black (try to flip the pattern image horizontally and
see that happens to your buttons' patterns after). 
 
Since these are all cloned objects, often is the case that one or the other
button patterns start to act up on their own despite their properties. Some
display a black 2 pixel border (no border is show though), others don't even
show their patterns or only do so when clicked! In another case, each time i
display this window with patterns, a patterns shows or doesn't... 
 
All images are buffered naturally... Sometime a simple click on the button
will restore the image! WTF?
 
This is a time waste each time it happens. You just can't fix anything on
these buttons. Happens mostly on buttons but on menus too. So you have to
redo one from scratch! 
 
Any ideas or fixes?
 
thanks
Xavier
 

___
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


card printing question???

2005-07-20 Thread Ban Nguyen
Hello everyone,

I have a gif image size 350 x 500.  I want to display it in the field so
user can scroll up and down to view it and print the whole image out.

This is what I have done:
I create a field and insert this code into the field:

on openCard
  set the imageSource of char 1 of field "myField" to "myImage"
end openCard


--->  the field displays the image perfectly the way I want it.

I also create a button (Print) on the same card.  I insert this code
into the Print button:

on mouseUp
  revPrintField the name of field "myField"
end mouseUp


The problem is when I click on the button "Print".  I give me error:

executing at 9:08:44 AM
TypeChunk: no such object
Object  Print
LinerevPrintField the name of field "myField"
HintmyField


Also, I go to File then the "Print Field" option is grey out

Could someone help me with this please

Thank you
___
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: Invisible insertion point in field

2005-07-20 Thread J. Landman Gay

David Wilkinson wrote:

The problem is that although you can 
enter text in the edit field, the insertion point is invisible. Does 
anyone know why this might be?


Does the field have both the traversalOn property and the autoHilite 
property set to true?


To lock/unlock a field you need to set three field properties: locktext, 
autohilite, traversalOn. The last two should be set to the opposite of 
the first one.



--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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: Invisible insertion point in field

2005-07-20 Thread Lynch, Jonathan
I also find that sometimes fields just become corrupted and have to be
replaced (just happened to me). This basically means creating a new
field, setting it's name, script, and other properties to the same as
the old field - and getting rid of the old field.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of J. Landman
Gay
Sent: Wednesday, July 20, 2005 12:21 PM
To: How to use Revolution
Subject: Re: Invisible insertion point in field

David Wilkinson wrote:

> The problem is that although you can 
> enter text in the edit field, the insertion point is invisible. Does 
> anyone know why this might be?

Does the field have both the traversalOn property and the autoHilite 
property set to true?

To lock/unlock a field you need to set three field properties: locktext,

autohilite, traversalOn. The last two should be set to the opposite of 
the first one.


-- 
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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


Re: Invisible insertion point in field

2005-07-20 Thread Richard Gaskin

Lynch, Jonathan wrote:

I also find that sometimes fields just become corrupted and have to be
replaced (just happened to me). This basically means creating a new
field, setting it's name, script, and other properties to the same as
the old field - and getting rid of the old field.


I've seen rare cases of images becoming corrupted, but never a field.

Have you found a recipe for this?
Sent your corrupted object to RunRev?

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
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: going nuts again

2005-07-20 Thread Scott Rossi
Recently, MisterX  wrote:

> not long ago, actually centuries ago (naturally, i couldn't find it
> anymore despite being sure i entered it - and i doubt it is easily
> replicatable - and i dont have time to rebugzilla it), i posted a problem
> with some images not refreshing correctly irrespective of where the image
> was.
> 
> In this case, im using buttons as patterned objects. And since groups can't
> be set opaque reliably either on WinXP compared to W2K, again a button for
> bg pattern. hu...

This is amusing, I never even knew you could set a background to be opaque.
The behavior seems a bit unusual though (here on OSX) in that even though it
looks opaque, it doesn't catch mouse clicks.


> First observation is that changing a backpattern doesn't always refresh -
> sometimes it's just black (try to flip the pattern image horizontally and
> see that happens to your buttons' patterns after).
> 
> Since these are all cloned objects, often is the case that one or the other
> button patterns start to act up on their own despite their properties. Some
> display a black 2 pixel border (no border is show though), others don't even
> show their patterns or only do so when clicked! In another case, each time i
> display this window with patterns, a patterns shows or doesn't...

Isn't it still that case that images used as repeating patterns must be
multiples of specific sizes?  "To be used on Windows and Unix systems,
height and width must be divisible by 8." Could this be the problem, that
you're using images of incorrect dimensions?

The only artifact I've noticed recently is that scaling an image vertically
with transparency on its right side will produce a single black pixel line
on the outside edge.


> All images are buffered naturally... Sometime a simple click on the button
> will restore the image! WTF?
> 
> This is a time waste each time it happens. You just can't fix anything on
> these buttons. Happens mostly on buttons but on menus too. So you have to
> redo one from scratch!
> 
> Any ideas or fixes?

Have the images been created in Rev?  If not, did you try using the "cursor
fix" technique of clicking on them with one of the paint tools to convert to
"native" Rev format?

Maybe trying another object?  Does the object in the group need to be a
button?  How about a graphic?


Regards,

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

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


newbie-menubar problems

2005-07-20 Thread Hamburger1
Hi Rev fans!

I'm starting to convert my ancient HyperCard stacks to revolution. Some of my 
stacks are simple enough that I'm merely recreating them in revolution, 
rather than convert them. Anyway, apparently I'm having the common problem with 
menubars.

Problem 1: In order for all my menus columns to appear I need to have a 
"phantom" help menu on the end that I don't want.

Problem 2: I want to add "Select All/A" to the edit menu and it won't let me 
add anything after the traditional cut, copy, paste, clear. What stupid trap 
did I fall into?

Joe
Orlando, Florida
___
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: Invisible insertion point in field

2005-07-20 Thread J. Landman Gay

Lynch, Jonathan wrote:
> I also find that sometimes fields just become corrupted and have to be
> replaced (just happened to me). This basically means creating a new
> field, setting it's name, script, and other properties to the same as
> the old field - and getting rid of the old field.

I've never seen this happen. Do you have a recipe, or any idea what 
might cause it? Maybe it isn't really corruption?


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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


Difference in iconic placement

2005-07-20 Thread Glen Bojsza
I am using Win XP and if I am in the Revolution IDE and have a stack
with a button that

on mouseUp
 set the iconic of stack "whatever" to true
end mouseUp

Then it is placed in the XP bar at the bottom of the screen in the
taskbar where it and other applications get placed.

When I create a standalone with this stack and iconify it then it is
placed "above" the taskbar??

Is there something that is additionally being done in the Rev IDE?

thanks,
___
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: going nuts again

2005-07-20 Thread MisterX

Scott, my hero!!!

Indeed my patterns was 41 pixels in height

Darn primitive earth tech! ;)
Where's the freedom of expression in that i wonder?

so many patterns, so many that are rev or mac incompatible "by design"!
pfff - If the web was restricted so... woah...

Im sure Rev will conquer this problem soon or later but meanwhile,
One more error detector to write...

Thanks again Scott!

cheers
Xavier

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Scott Rossi
> Sent: Wednesday, July 20, 2005 18:27
> To: [EMAIL PROTECTED], How to use Revolution
> Subject: Re: going nuts again
> 
> Recently, MisterX  wrote:
> 
> > not long ago, actually centuries ago (naturally, i couldn't find it 
> > anymore despite being sure i entered it - and i doubt it is easily 
> > replicatable - and i dont have time to rebugzilla it), i posted a 
> > problem with some images not refreshing correctly irrespective of 
> > where the image was.
> > 
> > In this case, im using buttons as patterned objects. And 
> since groups 
> > can't be set opaque reliably either on WinXP compared to 
> W2K, again a 
> > button for bg pattern. hu...
> 
> This is amusing, I never even knew you could set a background 
> to be opaque.
> The behavior seems a bit unusual though (here on OSX) in that 
> even though it looks opaque, it doesn't catch mouse clicks.
> 
> 
> > First observation is that changing a backpattern doesn't always 
> > refresh - sometimes it's just black (try to flip the pattern image 
> > horizontally and see that happens to your buttons' patterns after).
> > 
> > Since these are all cloned objects, often is the case that 
> one or the 
> > other button patterns start to act up on their own despite their 
> > properties. Some display a black 2 pixel border (no border is show 
> > though), others don't even show their patterns or only do so when 
> > clicked! In another case, each time i display this window 
> with patterns, a patterns shows or doesn't...
> 
> Isn't it still that case that images used as repeating 
> patterns must be multiples of specific sizes?  "To be used on 
> Windows and Unix systems, height and width must be divisible 
> by 8." Could this be the problem, that you're using images of 
> incorrect dimensions?
> 
> The only artifact I've noticed recently is that scaling an 
> image vertically with transparency on its right side will 
> produce a single black pixel line on the outside edge.
> 
> 
> > All images are buffered naturally... Sometime a simple click on the 
> > button will restore the image! WTF?
> > 
> > This is a time waste each time it happens. You just can't 
> fix anything 
> > on these buttons. Happens mostly on buttons but on menus 
> too. So you 
> > have to redo one from scratch!
> > 
> > Any ideas or fixes?
> 
> Have the images been created in Rev?  If not, did you try 
> using the "cursor fix" technique of clicking on them with one 
> of the paint tools to convert to "native" Rev format?
> 
> Maybe trying another object?  Does the object in the group 
> need to be a button?  How about a graphic?
> 
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
> -
> E: [EMAIL PROTECTED]
> W: http://www.tactilemedia.com
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> 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


Re: ftp problem

2005-07-20 Thread Dave Cragg


On 20 Jul 2005, at 15:25, Brad Borch wrote:

Thanks, I'll try your suggestion. I wasn't clear about the result;  
the seconds kept ticking, meaning the repeat look kept looping,  
even though the bytes uploaded were equal to the bytes to be uploaded.


That makes sense, and was kind of what I got here when I tested your  
script, except mine stuck at the "contacted" stage, but with time  
also ticking over.


Here's another solution which is closer to your original script, so  
you may feel more comfortable with it:


   libURLftpUpload compress(fData), myURLstring

  repeat until URLStatus(myURLstring) is in "uploaded,error,timeout"
 put URLStatus(myURLstring) && the long time
wait for messages
  end repeat

The "wait for messages" line will allow background scripts to run.

Cheers
Dave


___
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: card printing question???

2005-07-20 Thread J. Landman Gay

Ban Nguyen wrote:

Hello everyone,

I have a gif image size 350 x 500.  I want to display it in the field so
user can scroll up and down to view it and print the whole image out.

This is what I have done:
I create a field and insert this code into the field:

on openCard
  set the imageSource of char 1 of field "myField" to "myImage"
end openCard


--->  the field displays the image perfectly the way I want it.

I also create a button (Print) on the same card.  I insert this code
into the Print button:

on mouseUp
  revPrintField the name of field "myField"
end mouseUp


The revPrintField command prints the text of a field. I'm not sure why 
it says there is no such object, though.


You should not put the image into a field if you want to print it. 
Instead, put the image on the card and group the image. Then make the 
group the size you want, set its locklocation to true, and add vertical 
and horizontal scrollbars. Then your user can scroll it around.


To print it, use "print this card from x1,y1 to x2,y2". The visible part 
of the image will print. You might want to make a printing substack that 
is large enough to hold the entire image, and then just print that 
instead. If you print from the scrolling group, only the visible part of 
the image inside the group will print, so you need a big card to print 
that will hold the entire image at once.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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


Difference in iconic placement - discovered!

2005-07-20 Thread Glen Bojsza
I have discovered the difference in the use of the iconic command.

In the REV IDE I always work with "full decorations" (ie minimize,
maximize etc).

My application has decorations set to empty and because of this the
iconic command works differently as mentioned in my earlier post.

Sorry for the list time but hopefully someone will benefit.

regards,
___
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: Invisible insertion point in field

2005-07-20 Thread Lynch, Jonathan
Well - I just had a field do the strangest thing...

I have a button that inserts a link that opens up whatever document you
link it to.

After it inserts that link, which is a wing-dings character, it then
resets the font information in the selection just after the character to
be what it was before the document link was inserted.

For some reason, on this field, it kept using the wingdings font after I
inserted the document link - I have no idea why. In all other fields, it
worked like it was supposed to. When I compared properties in the
property inspector for this field, and for a working field, I could not
find any differences.

Recreating the field took care of the problem, however.

I have also had a field keep my cursor invisible, and recreating that
field got rid of that problem as well.

I cannot be sure there wasn't some property setting that I was not
getting right in either case - just that I could not find such a
setting.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of J. Landman
Gay
Sent: Wednesday, July 20, 2005 12:51 PM
Cc: How to use Revolution
Subject: Re: Invisible insertion point in field

Lynch, Jonathan wrote:
 > I also find that sometimes fields just become corrupted and have to
be
 > replaced (just happened to me). This basically means creating a new
 > field, setting it's name, script, and other properties to the same as
 > the old field - and getting rid of the old field.

I've never seen this happen. Do you have a recipe, or any idea what 
might cause it? Maybe it isn't really corruption?

-- 
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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


Unicode frustration

2005-07-20 Thread Brad Borch
Ok, I'm befuddled. I'm not quite sure how Revolution handles unicode. I 
have a field that lists all the fonts in my system. The Rev 
documentation says:


"Revolution automatically sets the textFont of double-byte characters to 
the appropriate Unicode font."


So if I set the htmltext of a field like so:

αβγδε ελλενικα

The first string of Greek characters is rendered as Greek, but the 
second is rendered as Asian characters (I don't know which). Getting the 
html text of the field after setting it to the above string yields this:


lang="en-UC">αβγδε 딃묃묃딃봃뤃먃


If I take out the space in the text I originally pasted, it renders the 
entities correctly:


lang="en-UC">αβγδεελλενικα


So there's some conversion going on inside Revolution to standardize the 
html, but it looks like there's a bug in the process somewhere.


If I type or paste in Greek unicode characters, the htmltext gets 
updated to reflect the text: paste in "αβγδε ελλενικα" and get the 
htmltext, the font tag gets updated to include "lang="el"" (doesn't 
matter what face it is, I guess it just uses whatever is the default 
Unicode font.


What's happening here? How can I force Rev to use the Unicode text I 
want it to use?


___
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: Unicode frustration

2005-07-20 Thread Lynch, Jonathan
Can you set the textfont of the field itself, rather than in the htmltext?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad Borch
Sent: Wednesday, July 20, 2005 1:28 PM
To: use-revolution@lists.runrev.com
Subject: Unicode frustration

Ok, I'm befuddled. I'm not quite sure how Revolution handles unicode. I 
have a field that lists all the fonts in my system. The Rev 
documentation says:

"Revolution automatically sets the textFont of double-byte characters to 
the appropriate Unicode font."

So if I set the htmltext of a field like so:

αβγδε ελλενικα

The first string of Greek characters is rendered as Greek, but the 
second is rendered as Asian characters (I don't know which). Getting the 
html text of the field after setting it to the above string yields this:

αβγδε 딃묃묃딃봃뤃먃

If I take out the space in the text I originally pasted, it renders the 
entities correctly:

αβγδεελλενικα

So there's some conversion going on inside Revolution to standardize the 
html, but it looks like there's a bug in the process somewhere.

If I type or paste in Greek unicode characters, the htmltext gets 
updated to reflect the text: paste in "αβγδε ελλενικα" and get the 
htmltext, the font tag gets updated to include "lang="el"" (doesn't 
matter what face it is, I guess it just uses whatever is the default 
Unicode font.

What's happening here? How can I force Rev to use the Unicode text I 
want it to use?

___
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


Re: card printing question???

2005-07-20 Thread Dan Shafer
While I'm certain what Jacque says is good advice, I found that using  
exactly your scripts, the code worked fine and the picture printed as  
expected.


However, only the portion of the image visible in the field prints.  
I've never found 'set the imageSource' to work very well. The images  
that get loaded are always mostly out of the field. I'm sure I'm  
missing something but since I never have to use it, it's no big deal  
for me.


Dan

On Jul 20, 2005, at 9:56 AM, J. Landman Gay wrote:


Ban Nguyen wrote:


Hello everyone,
I have a gif image size 350 x 500.  I want to display it in the  
field so

user can scroll up and down to view it and print the whole image out.
This is what I have done:
I create a field and insert this code into the field:
on openCard
  set the imageSource of char 1 of field "myField" to "myImage"
end openCard
--->  the field displays the image perfectly the way I want it.
I also create a button (Print) on the same card.  I insert this code
into the Print button:
on mouseUp
  revPrintField the name of field "myField"
end mouseUp



The revPrintField command prints the text of a field. I'm not sure  
why it says there is no such object, though.


You should not put the image into a field if you want to print it.  
Instead, put the image on the card and group the image. Then make  
the group the size you want, set its locklocation to true, and add  
vertical and horizontal scrollbars. Then your user can scroll it  
around.


To print it, use "print this card from x1,y1 to x2,y2". The visible  
part of the image will print. You might want to make a printing  
substack that is large enough to hold the entire image, and then  
just print that instead. If you print from the scrolling group,  
only the visible part of the image inside the group will print, so  
you need a big card to print that will hold the entire image at once.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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


Re: NPR puzzle

2005-07-20 Thread Mark Wieder
Eric-

Wednesday, July 20, 2005, 7:52:08 AM, you wrote:

How'd you manage to get 30 milliseconds run time? The best I can do is
about 130. Is your machine just that much faster than mine? Here's the
fastest code I could come up with - any suggestions on speeding it up?

on mouseUp
  local tLine, tTestString
  local x
  local tBlnPossible
  local tDictionary, tElements, tPossibles
  local tTime
  
  put "working..." into field "status"
  put empty into field "possibles"
  
  put the milliseconds into tTime
  put field "dictionary" into tDictionary
  put field "elements" into tElements
  
  repeat for each line tLine in tDictionary
put true into tBlnPossible
repeat with x=1 to 9 step 2
  put char x to x+1 of tLine into tTestString
  if tTestString is not among the lines of tElements then
put false into tBlnPossible
exit repeat
  end if
end repeat
if tBlnPossible then
  put tLine & cr after tPossibles
end if
  end repeat
  put the milliseconds - tTime && "milliseconds" into field "elapsed"
  
  put tPossibles into field "possibles"
  put "found" && the number of lines in field "possibles" \
  && "possible answers" into field "status"
end mouseUp

-- 
-Mark Wieder
 [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


Project Registry (was Ransomware)

2005-07-20 Thread SimPLsol
Dan et al.,
 Seems there is a lot of interest in the Ransomware idea. Opinions appear 
to be split between philanthropy and profit (that will work itself out). 
Brian, and others, wondered if this was just a debate or whether we would 
actually 
build something. Let's try building it:

 The first thing needed is some type of registry for proposals and bids. 
So let's make that the first request.

Work requested: Build a Project Request Registry

Description: This will be a web site with functionality similar to the 
current Feature Enhancement section of STSRevzilla. It will allow users to post 
requests, investors to make pledges, and developers to bid on the projects. It 
will also let developers post proposals and request financing. There will be a 
summary page of all requests and a detail page for each request. The format of 
the detail page will be similar to the one used for this request. There will 
also be detail pages for each bid/quote.

Moderator for this request: Dan?/Paul?/???

Voting basis: One vote per dollar invested

Distribution of completed project: Given to Revolution Ltd. if they agree to 
host it. Given to any other host if Rev. declines the gift. This work is not 
intended to be sold, no profits are anticipated.

Maintenance: Developer's proposal should contain reserves for bug fixes 
during the first three months this is deployed. Improvements or later bug fixes 
will be handled by a separate requests.

Limit on number of investors: None

Currency used: US Dollars

Minimum contribution per investor: $10

Maximum contribution per investor: $10,000

Pledges to date:
Paul Looney, [EMAIL PROTECTED], $100


Money collected to date:


Escrow account held at:
Escrow account number:
People with access to the escrow account:

Bids/Proposals/Quotes to date:

Changes and Amendments to Proposal (with dates amended):

Additional revenue required to start project:

Project assigned to:
Proposed completion date:
Project completed on:
Money dispersed on:

This is obviously a crude "first pass". Let's keep the ideas coming.
Paul Looney
___
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: Invisible insertion point in field

2005-07-20 Thread Stephen Barncard


I've seen rare cases of images becoming corrupted, but never a field.
 Richard Gaskin


This has happened to me several times -- usually the problem is the 
insertion point missing or I am unable to enter or change text in the 
field.


I've been experimenting with some "object creation from text" 
routines, where I get all the properties of an object, arrange as 
tabbed/return text (with adjustments for the imbedded returns in some 
of the data), store the description info in a custom property, then 
recreate the object anew with the CREATE command, turn the property 
into an array, and finally apply the array to the new object. I have 
not extended this into groups yet, but seems not to hard to do.


I guess that could be fashioned into a 'biofilter' for errant objects.

I wonder what a corrupted component would do to such a grinder? I 
guess I'd trap the errors and find a way to filter the garbage. A 
utility for a rainy day.


This is very similar to the way object properties were handled in the 
great product "Windowscript" (another legendary Heizer product (I 
bought all their goodies).


sqb

___
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


NPR puzzle

2005-07-20 Thread Roger Guay

Hello Jim,

I did it with following script:

on mouseUp
repeat with i = 1 to the number of lines of fld Wrds
set cursor to busy
put char 1 to 2 into Abr1
put char 3 to 4 into Abr2
put char 5 to 6 into Abr3
put char 7 to 8 into Abr4
put char 9 to 10 into Abr5
if fld eles contains Abr1 and fld eles contains Abr2 and fld  
eles contains Abr3\

and fld eles contains Abr4 and fld eles contains Abr5 then
put "   "&abr1&&abr2&&abr3&&abr4&&abr5 into word 2 of  
line i of fld Wrds

end if
end repeat
end mouseUp

This comes up with a number of words that fit the elements list but  
only one for a mode of travel; helicopter.


Thanks for the challenge!

Cheers, Roger




On Jul 20, 2005, at 8:44 AM, [EMAIL PROTECTED]  
wrote:



Message: 18
Date: Wed, 20 Jul 2005 07:40:37 -0700
From: Jim Hurley <[EMAIL PROTECTED]>
Subject: NPR puzzle
To: use-revolution@lists.runrev.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

For my fellow puzzle addicts:

Here is this weeks NPR puzzle (Sunday Weekend edition)

Sunday Puzzle

By Will Shortz


Challenge for July 24:

A 10-letter word for a form of travel, that consists of five
consecutive symbols of chemical elements. What is it? If automobile
had been the answer, AU, would represent Gold, MO would represent
Molybdenum, and BI, would represent Bismuth. Unfortunately, the
remaining bigrams, TO and LE, are not chemical symbols.


I have put up a stack with two fields. The first contains all 10
letter words in my dictionary.

The second contains all two character elements from the periodic  
table.


You task, should you choose to adopt it, is to write a Run Rev
handler to solve this weeks NPR puzzle defined above.

In the message box:

go stack url  "http://home.infostations.net/jhurley/NPRpuzzle.rev";

Jim




___
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: Invisible insertion point in field

2005-07-20 Thread Charles Hartman
This _sounds_ like the same problem I was posting about a week or two  
ago. Test for similarity of bug: in msg box do "put the htmltext of  
fld ''" and look in the output for a bous "added by Rev; it would hard-wire the current default (owner's) font.  
Further test: is this in a substack? If yes to both, that's the bug I  
posted. (Solution found later: pre-hard-wire the default font in the  
substack.)


Charles Hartman


On Jul 20, 2005, at 1:05 PM, Lynch, Jonathan wrote:


After it inserts that link, which is a wing-dings character, it then
resets the font information in the selection just after the  
character to

be what it was before the document link was inserted.

For some reason, on this field, it kept using the wingdings font  
after I
inserted the document link - I have no idea why. In all other  
fields, it

worked like it was supposed to. When I compared properties in the
property inspector for this field, and for a working field, I could  
not

find any differences.



Charles Hartman
Professor of English, Poet in Residence
Connecticut College
[EMAIL PROTECTED]
*the Scandroid* is at cherry.conncoll.edu/cohar/Programs.htm


___
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: NPR puzzle

2005-07-20 Thread Ro Nagey

Here's my humble submission:

on doIt
  put the ticks into startTime
  put fld "element" into gorp
  repeat for each line l in fld "words"
put "Yes" into myAnswer
put  l  into myWord
put myWord into daWord
repeat 5 times
  put char 1 to 2 of daWord into anElement
  delete char 1 to 2 of daWord
  if anElement is not in gorp then
put "No" into myAnswer
exit repeat
  end if
end repeat
if myAnswer contains "Yes" then put myWord & return after  
finalAnswer

  end repeat
  put the ticks-startTime into totalTicks
  answer totalTicks && finalAnswer && the number of lines in  
finalAnswer

end doIt

Did it in 2 ticks and found 23 words :)

Ro Nagey


On Jul 20, 2005, at 3:40 PM, Jim Hurley wrote:


For my fellow puzzle addicts:

Here is this weeks NPR puzzle (Sunday Weekend edition)

Sunday Puzzle

By Will Shortz


Challenge for July 24:

A 10-letter word for a form of travel, that consists of five  
consecutive symbols of chemical elements. What is it? If automobile  
had been the answer, AU, would represent Gold, MO would represent  
Molybdenum, and BI, would represent Bismuth. Unfortunately, the  
remaining bigrams, TO and LE, are not chemical symbols.



I have put up a stack with two fields. The first contains all 10  
letter words in my dictionary.


The second contains all two character elements from the periodic  
table.


You task, should you choose to adopt it, is to write a Run Rev  
handler to solve this weeks NPR puzzle defined above.


In the message box:

go stack url  "http://home.infostations.net/jhurley/NPRpuzzle.rev";

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


Re: NPR puzzle

2005-07-20 Thread Ro Nagey

Here's my humble submission:

on doIt
  put the ticks into startTime
  put fld "element" into gorp
  repeat for each line l in fld "words"
put "Yes" into myAnswer
put  l  into myWord
put myWord into daWord
repeat 5 times
  put char 1 to 2 of daWord into anElement
  delete char 1 to 2 of daWord
  if anElement is not in gorp then
put "No" into myAnswer
exit repeat
  end if
end repeat
if myAnswer contains "Yes" then put myWord & return after  
finalAnswer

  end repeat
  put the ticks-startTime into totalTicks
  answer totalTicks && finalAnswer && the number of lines in  
finalAnswer

end doIt

Did it in 2 ticks and found 23 words :)

Ro Nagey

Apologies in advance if you get this twice - the first one got held  
up because it was too long

___
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: NPR puzzle

2005-07-20 Thread Alex Tweedly

Mark Wieder wrote:


Eric-

Wednesday, July 20, 2005, 7:52:08 AM, you wrote:

How'd you manage to get 30 milliseconds run time? The best I can do is
about 130. Is your machine just that much faster than mine? Here's the
fastest code I could come up with - any suggestions on speeding it up?

 


Mark,

your code reports a time of  20 msec on my machine (a middle-aged Sony 
laptop with WinXP).


You're not using one of those underpowered, overpriced Apple machines 
are you ?

Maybe if they switch to Intel they'll be faster 

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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.0/50 - Release Date: 16/07/2005

___
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: NPR puzzle

2005-07-20 Thread Eric Chatonet

Hi mark,

As I told it, I took this problem quick and dirty in five minutes.
For me, the challenge was only to know how many words among 3620  
would match the formula :-)

So I used a very simple handler (running on a Mac G5 1.8 Mhz):
I blush with shame but here it is:

on mouseUp
  put the milliseconds into tStart
  put fld "Words" into tWords
  put fld "Elements" into tElements
  repeat for each line tLine in tWords
if char 1 to 2 of tLine is not among the lines of tElements then  
next repeat
if char 3 to 4 of tLine is not among the lines of tElements then  
next repeat
if char 5 to 6 of tLine is not among the lines of tElements then  
next repeat
if char 7 to 8 of tLine is not among the lines of tElements then  
next repeat
if char 9 to 10 of tLine is not among the lines of tElements  
then next repeat

put tLine & cr after tRightList
  end repeat
  put the milliseconds - tStart
  put tRightList into fld "Result"
end mouseUp

I think your code more optimised than mine :-)

Best Regards from Paris,

Eric Chatonet.

Le 20 juil. 05 à 19:46, Mark Wieder a écrit :


Eric-

Wednesday, July 20, 2005, 7:52:08 AM, you wrote:

How'd you manage to get 30 milliseconds run time? The best I can do is
about 130. Is your machine just that much faster than mine? Here's the
fastest code I could come up with - any suggestions on speeding it up?

on mouseUp
  local tLine, tTestString
  local x
  local tBlnPossible
  local tDictionary, tElements, tPossibles
  local tTime

  put "working..." into field "status"
  put empty into field "possibles"

  put the milliseconds into tTime
  put field "dictionary" into tDictionary
  put field "elements" into tElements

  repeat for each line tLine in tDictionary
put true into tBlnPossible
repeat with x=1 to 9 step 2
  put char x to x+1 of tLine into tTestString
  if tTestString is not among the lines of tElements then
put false into tBlnPossible
exit repeat
  end if
end repeat
if tBlnPossible then
  put tLine & cr after tPossibles
end if
  end repeat
  put the milliseconds - tTime && "milliseconds" into field "elapsed"

  put tPossibles into field "possibles"
  put "found" && the number of lines in field "possibles" \
  && "possible answers" into field "status"
end mouseUp



So Smart Software

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

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: Unicode frustration

2005-07-20 Thread Brad Borch

Can you set the textfont of the field itself, rather than in the htmltext?

If I set the textfont, the non-unicode text changes.
If I actually select the text in the field and change the font via the 
menu, the text is converted to the single-byte characters (in other 
words, an α is converted to ±, even though the font I've selected is a 
Unicode font (in this case, Bitstream Vera Sans).




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad Borch
Sent: Wednesday, July 20, 2005 1:28 PM
To: use-revolution@lists.runrev.com
Subject: Unicode frustration

Ok, I'm befuddled. I'm not quite sure how Revolution handles unicode. I 
have a field that lists all the fonts in my system. The Rev 
documentation says:


"Revolution automatically sets the textFont of double-byte characters to 
the appropriate Unicode font."


So if I set the htmltext of a field like so:

αβγδε ελλενικα

The first string of Greek characters is rendered as Greek, but the 
second is rendered as Asian characters (I don't know which). Getting the 
html text of the field after setting it to the above string yields this:


lang="en-UC">αβγδε 딃묃묃딃봃뤃먃


If I take out the space in the text I originally pasted, it renders the 
entities correctly:


lang="en-UC">αβγδεελλενικα


So there's some conversion going on inside Revolution to standardize the 
html, but it looks like there's a bug in the process somewhere.


If I type or paste in Greek unicode characters, the htmltext gets 
updated to reflect the text: paste in "αβγδε ελλενικα" and get the 
htmltext, the font tag gets updated to include "lang="el"" (doesn't 
matter what face it is, I guess it just uses whatever is the default 
Unicode font.


What's happening here? How can I force Rev to use the Unicode text I 
want it to use?


___
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



___
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: Project Registry (was Ransomware)

2005-07-20 Thread Dan Shafer

Wow.

I have to say that when I posted that first note a mere few hours  
ago, I had no idea it would catch on and become a potentially real  
project at all, let alone so rapidly.


I'm unsure about the escrow-management concept. It seems to me that  
the original idea I posted from elsewhere that the developer sets a  
fee level, begins development only when that level is reached, and  
the money goes to charity if the level isn't reached is a much  
simpler approach to administer. But I'm certainly neither the owner  
of the solution nor the arbiter of such decisions. I just think it's  
worth further debate.


dan

___
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: NPR puzzle

2005-07-20 Thread Ro Nagey

Here's my humble submission:

on doIt
  put the ticks into startTime
  put fld "element" into gorp
  repeat for each line l in fld "words"
put "Yes" into myAnswer
put  l  into myWord
put myWord into daWord
repeat 5 times
  put char 1 to 2 of daWord into anElement
  delete char 1 to 2 of daWord
  if anElement is not in gorp then
put "No" into myAnswer
exit repeat
  end if
end repeat
if myAnswer contains "Yes" then put myWord & return after  
finalAnswer

  end repeat
  put the ticks-startTime into totalTicks
  answer totalTicks && finalAnswer && the number of lines in  
finalAnswer

end doIt

Did it in 2 ticks and found 23 words :)

Ro Nagey

Sorry if you get this 3 times - but I haven't received the ones sent  
earlier and am thinking something in there triggered spam detectors  
or something. :)

___
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: NPR puzzle

2005-07-20 Thread Lynch, Jonathan
Hi Ro...

Would your script go faster if you used lineoffset rather than 'is not
in'? 

If lineoffset(anElement,Gorp) = 0 then...


I ask because I am not which method is faster in which circumstances.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ro Nagey
Sent: Wednesday, July 20, 2005 2:31 PM
To: How to use Revolution
Subject: Re: NPR puzzle

Here's my humble submission:

on doIt
   put the ticks into startTime
   put fld "element" into gorp
   repeat for each line l in fld "words"
 put "Yes" into myAnswer
 put  l  into myWord
 put myWord into daWord
 repeat 5 times
   put char 1 to 2 of daWord into anElement
   delete char 1 to 2 of daWord
   if anElement is not in gorp then
 put "No" into myAnswer
 exit repeat
   end if
 end repeat
 if myAnswer contains "Yes" then put myWord & return after  
finalAnswer
   end repeat
   put the ticks-startTime into totalTicks
   answer totalTicks && finalAnswer && the number of lines in  
finalAnswer
end doIt

Did it in 2 ticks and found 23 words :)

Ro Nagey

Apologies in advance if you get this twice - the first one got held  
up because it was too long
___
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


RE: Unicode frustration

2005-07-20 Thread Lynch, Jonathan
Ah...

I have experimented with having unicode and non-unicode in the same field, but 
never made it work before! It always seems to do some weird stuff.

It would be a huge enormous pain in the posterior, but you could set it up so 
that the unicode equivalent of a given character is entered instead of the 
non-unicode character. I believe most characters have a unicode number.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad Borch
Sent: Wednesday, July 20, 2005 2:46 PM
To: use-revolution@lists.runrev.com
Subject: Re: Unicode frustration

> Can you set the textfont of the field itself, rather than in the htmltext?
If I set the textfont, the non-unicode text changes.
If I actually select the text in the field and change the font via the 
menu, the text is converted to the single-byte characters (in other 
words, an α is converted to ±, even though the font I've selected is a 
Unicode font (in this case, Bitstream Vera Sans).

> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad Borch
> Sent: Wednesday, July 20, 2005 1:28 PM
> To: use-revolution@lists.runrev.com
> Subject: Unicode frustration
> 
> Ok, I'm befuddled. I'm not quite sure how Revolution handles unicode. I 
> have a field that lists all the fonts in my system. The Rev 
> documentation says:
> 
> "Revolution automatically sets the textFont of double-byte characters to 
> the appropriate Unicode font."
> 
> So if I set the htmltext of a field like so:
> 
> αβγδε ελλενικα
> 
> The first string of Greek characters is rendered as Greek, but the 
> second is rendered as Asian characters (I don't know which). Getting the 
> html text of the field after setting it to the above string yields this:
> 
>  lang="en-UC">αβγδε 딃묃묃딃봃뤃먃
> 
> If I take out the space in the text I originally pasted, it renders the 
> entities correctly:
> 
>  lang="en-UC">αβγδεελλενικα
> 
> So there's some conversion going on inside Revolution to standardize the 
> html, but it looks like there's a bug in the process somewhere.
> 
> If I type or paste in Greek unicode characters, the htmltext gets 
> updated to reflect the text: paste in "αβγδε ελλενικα" and get the 
> htmltext, the font tag gets updated to include "lang="el"" (doesn't 
> matter what face it is, I guess it just uses whatever is the default 
> Unicode font.
> 
> What's happening here? How can I force Rev to use the Unicode text I 
> want it to use?
> 
> ___
> 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
> 

___
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


Re: NPR puzzle

2005-07-20 Thread Alex Tweedly

Ro Nagey wrote:


Here's my humble submission:

on doIt
  put the ticks into startTime
  put fld "element" into gorp
  repeat for each line l in fld "words"
put "Yes" into myAnswer
put  l  into myWord
put myWord into daWord
repeat 5 times
  put char 1 to 2 of daWord into anElement
  delete char 1 to 2 of daWord
  if anElement is not in gorp then
put "No" into myAnswer
exit repeat
  end if
end repeat
if myAnswer contains "Yes" then put myWord & return after  
finalAnswer

  end repeat
  put the ticks-startTime into totalTicks
  answer totalTicks && finalAnswer && the number of lines in  finalAnswer
end doIt

Did it in 2 ticks and found 23 words :)


Ro,
Just so we have comparable times - I converted it to report millisecs, 
and on my machine it takes 29 msec.


I made a couple of tweaks:
1  Changed
repeat for each line l in fld "words"
   ...
   put l into myWord
to  simply
  repeat for each line myWord in fld "words"
since l was not used anywhere else, and myWord was not changed.

2. moved the "delete char 1 to 2 of daWord" to after the if test (no 
need to delete them if you are about to exit the loop).


Those improved it to 20 msecs (which I think is the limit of resolution 
on my machine - the original was sometimes 28, sometimes 29, sometimes 
31 - now it is always 20.




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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.0/50 - Release Date: 16/07/2005

___
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: NPR puzzle

2005-07-20 Thread Ro Nagey

No - you way times out in 43-45 milliseconds -

Here's the latest version of my code - it comes in around 36-37  
milliseconds.


on doIt
  put the milliseconds into startTime
  put fld "element" into gorp
  put fld "words" into allwords
  repeat for each line l in allwords
put "Y" into myAnswer
put  l  into myWord
put myWord into daWord
repeat 5 times
  put char 1 to 2 of daWord into anElement
  delete char 1 to 2 of daWord
  if anElement is not in gorp then
  --If lineoffset(anElement,Gorp) = 0 then
put empty into myAnswer
exit repeat
  end if
end repeat
if myAnswer is "Y" then put myWord & return after finalAnswer
  end repeat
  put the milliseconds-startTime into totalTicks
  answer totalTicks && finalAnswer
end doIt


Ro Nagey

PS My spam filter is apparently censoring the mail I write ... feel  
free to insert whimsical observation here :)


On Jul 20, 2005, at 7:51 PM, Lynch, Jonathan wrote:


Hi Ro...

Would your script go faster if you used lineoffset rather than 'is not
in'?

If lineoffset(anElement,Gorp) = 0 then...


I ask because I am not which method is faster in which circumstances.



___
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: NPR puzzle

2005-07-20 Thread Mark Wieder
Alex-

Wednesday, July 20, 2005, 11:39:02 AM, you wrote:

AT> You're not using one of those underpowered, overpriced Apple machines
AT> are you ?
AT> Maybe if they switch to Intel they'll be faster 

 Not to worry - I tried this on an aging PII box. I'd try it again
on one of the macs, but I'm not really very interested in benchmarks
except as related to optimizing the code.

-- 
-Mark Wieder
 [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


RE: NPR puzzle

2005-07-20 Thread Lynch, Jonathan
Interesting - so 'is not in' was actually faster than lineoffset! Is
that always the case?

What if you use this:

If matchtext(Gorp,AnElement) = false then...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ro Nagey
Sent: Wednesday, July 20, 2005 3:01 PM
To: How to use Revolution
Subject: Re: NPR puzzle

No - you way times out in 43-45 milliseconds -

Here's the latest version of my code - it comes in around 36-37  
milliseconds.

on doIt
   put the milliseconds into startTime
   put fld "element" into gorp
   put fld "words" into allwords
   repeat for each line l in allwords
 put "Y" into myAnswer
 put  l  into myWord
 put myWord into daWord
 repeat 5 times
   put char 1 to 2 of daWord into anElement
   delete char 1 to 2 of daWord
   if anElement is not in gorp then
   --If lineoffset(anElement,Gorp) = 0 then
 put empty into myAnswer
 exit repeat
   end if
 end repeat
 if myAnswer is "Y" then put myWord & return after finalAnswer
   end repeat
   put the milliseconds-startTime into totalTicks
   answer totalTicks && finalAnswer
end doIt


Ro Nagey

PS My spam filter is apparently censoring the mail I write ... feel  
free to insert whimsical observation here :)

On Jul 20, 2005, at 7:51 PM, Lynch, Jonathan wrote:

> Hi Ro...
>
> Would your script go faster if you used lineoffset rather than 'is not
> in'?
>
> If lineoffset(anElement,Gorp) = 0 then...
>
>
> I ask because I am not which method is faster in which circumstances.
>

___
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


Re: Unicode frustration

2005-07-20 Thread Brad Borch

Let me explain what I'm trying to do.

I need to build a tool that allows users to quickly enter Greek words. 
These people aren't terribly computer literate, so I've built a script 
that captures what the user types and replaces it with a Greek 
character. In other words, they don't have to switch keyboard encodings. 
In order to add accents, I have a menu that pops up when the user mouses 
over a letter that can be marked (accents, etc.). The user can select an 
accented version of that letter, and it gets pasted in.


This works perfectly on the Mac, but as soon as I run on a PC, the PC 
wants to render the text as Arial, which has a much smaller set of 
accented characters.


I'm assuming this has something to do with the fact that Rev 
automatically sets the textfont of Unicode characters. I think all I 
REALLY need to do is figure out how to force the text to be in Bitstream 
Vera Sans on the PC.


 > Ah...


I have experimented with having unicode and non-unicode in the same field, but 
never made it work before! It always seems to do some weird stuff.

It would be a huge enormous pain in the posterior, but you could set it up so 
that the unicode equivalent of a given character is entered instead of the 
non-unicode character. I believe most characters have a unicode number.



Can you set the textfont of the field itself, rather than in the htmltext?


If I set the textfont, the non-unicode text changes.
If I actually select the text in the field and change the font via the 
menu, the text is converted to the single-byte characters (in other 
words, an α is converted to ±, even though the font I've selected is a 
Unicode font (in this case, Bitstream Vera Sans).





___
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: Project Registry (was Ransomware)

2005-07-20 Thread SimPLsol
Dan,
Wow is the word! This has so much potential it is hard to underestimate it.

I think the escrow idea is essential (for all but the smallest projects). 
People who donate money (especially large contributions) should know that they 
will get it back if the project is not commenced or completed. Developers 
should 
know there is real money in the kitty before beginning work. I've 
incorporated the idea of "pledges" to give an idea of support for the request 
before any 
money at all is committed. A developer might begin work on pledges alone if 
there were enough from enough reputable people - but long projects require real 
money. For smaller projects the moderator can manage the escrow account, for 
larger projects there should be a third party escrow. Even with the original 
idea, the money must be stored somewhere.

There are countless other details to be resolved (for instance, what happens 
if contributions exceed expenses; everyone gets back a percentage of the 
excess?) but we can begin with a registry (or better name/description if you've 
got 
one).
Paul Looney
___
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: NPR puzzle

2005-07-20 Thread Ro Nagey
Interesting - I'm using a 1.67 GHz Powerbook and my best speed using  
your changes is in the low 30's - are Macs that much slower?


On this size, it doesn't seem to make any difference as to whether is  
' for each word myWord' or 'for each line myWord'


Ro Nagey

On Jul 20, 2005, at 7:55 PM, Alex Tweedly wrote:



I made a couple of tweaks:
1  Changed
repeat for each line l in fld "words"
   ...
   put l into myWord
to  simply
  repeat for each line myWord in fld "words"
since l was not used anywhere else, and myWord was not changed.

2. moved the "delete char 1 to 2 of daWord" to after the if test  
(no need to delete them if you are about to exit the loop).


Those improved it to 20 msecs (which I think is the limit of  
resolution on my machine - the original was sometimes 28, sometimes  
29, sometimes 31 - now it is always 20.





___
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: Newbe Drag & Drop Question

2005-07-20 Thread Douglas Gilliland
Nicholas,
Worked like a dream! Thank you - you made my day.
And thanks to Eric also. While  Nicholas solved this problem, I did
download your stack and will spend some time studying it.
Again I appreciate all the help.
Doug Gilliland
Sarasota FL



On 7/20/05, Eric Chatonet <[EMAIL PROTECTED]> wrote:
> Hi Doug,
> 
> You are right, Rev needs a bit of scripting to handle drag an drop but it's
> a good thing since scripting allows to manage this feature precisely.
> You might be interested in a tutorial about drag and drop you can access
> trough Tutorials Picker.
> Tutorials Picker is available on Rev Online - user: So Smart Software.
> 
> Best Regards from Paris,
> 
> Eric Chatonet.
> 
> 
> Le 20 juil. 05 à 12:46, Douglas Gilliland a écrit :
> 
> 
> 
> I am writing a stack on Density for my students. I want them to drag a 
> 
> cube of iron on to an electronic balance to mass it. The script would 
> 
> change the display of the balance from 0.00 grams to thel mass of the 
> 
> iron sample. 
> 
> 
>  
> 
>  I have made the cube draggable by assigning it the following scipt: 
> 
> on mousedown 
> 
> drag me 
> 
> end mousedown 
> 
> That part works great. 
> 
> 
>  
> 
> I attempted to place a hidden button over the balance and use the 
> 
> dragenter message in a variety of ways but cannot get it to work. 
> 
> When I used HyperStudio the dragdrop function was built into the 
> 
> program so I didn't learn how to script it. 
> 
> Any advice for a Dreamcard newbe?
> 
>  
> 
> So Smart Software 
>   
> For institutions, companies and associations 
> Built-to-order applications: management, multimedia, internet, etc. 
> Windows, Mac OS and Linux... With the French touch
> 
> Free plugins and tutorials on my website 
> 
> Web sitehttp://www.sosmartsoftware.com/ 
> Email[EMAIL PROTECTED]/ 
> Phone33 (0)1 43 31 77 62 
> Mobile33 (0)6 20 74 50 86 
> 
>
___
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: NPR puzzle

2005-07-20 Thread Glenn E. Fisher

Jim,

Here is my submission that ran in 70 milliseconds on my 5 1/2 year old 
G4 450 MHz tower:


  set cursor to watch
  put the milliseconds into t
  put fld "ChemSymbols" into c
  put fld "dictionary" into d
  repeat for each line L in d
if c contains char 1 to 2 of L and c contains char 3 to 4 of L\
and c contains char 5 to 6 of L and c contains char 7 to 8 of L\
and c contains char 9 to 10 of L then
  put L & CR after o
end if
  end repeat
  put the milliseconds -t into t
  put o into fld "Output"
  put "time=" & t && "msecs" after fld "Output"

Cheers,
Glenn

On Jul 20, 2005, at 3:40 PM, Jim Hurley wrote:


For my fellow puzzle addicts:

Here is this weeks NPR puzzle (Sunday Weekend edition)

Sunday Puzzle

By Will Shortz


Challenge for July 24:

A 10-letter word for a form of travel, that consists of five
consecutive symbols of chemical elements. What is it? If automobile
had been the answer, AU, would represent Gold, MO would represent
Molybdenum, and BI, would represent Bismuth. Unfortunately, the
remaining bigrams, TO and LE, are not chemical symbols.


I have put up a stack with two fields. The first contains all 10
letter words in my dictionary.

The second contains all two character elements from the periodic
table.

You task, should you choose to adopt it, is to write a Run Rev
handler to solve this weeks NPR puzzle defined above.

In the message box:

go stack url  "http://home.infostations.net/jhurley/NPRpuzzle.rev";

Jim
__

--
Glenn E. Fisher University of Houston - Retired
22402 Diane Dr. Spring, Tx 77373
[EMAIL PROTECTED]   http://www.uh.edu/~fisher
http://home.houston.rr.com/thegefishers/
http://homepage.mac.com/gefisher
___
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: Project Registry (was Ransomware)

2005-07-20 Thread John Ridge
Just to say that I find this thread really intriguing.

I am absolutely not a developer - but I love the sense of freedom that I
originally got from HyperCard, and now even more from Revolution. An awful
lot of that is thanks to you developers who contribute so much via this list
and other means - for me, Revolution would not be usable without you. I want
to put something back in exchange. Possibilities -

1. I could commission software, selfishly, for myself. Hmm... What do I need
that is that big? And anyway it sounds as if you guys are not exactly short
of projects...

2. I'm glad to see that there is a market for gadgets that enhance Rev -
that looks much better, in that I am able to (a) pay for things I value that
don't distract the RunRev team from work that only they can do, on
Transcript and the engine and (b) encourage smart people to develop similar
enhancements. Eric, I know you (and others) do this admirably and abundantly
for free - how many "donations" do you get? So help me to stop feeling
guilty! Hence

3. The current proposal (in one of its many forms) is surely what I want - I
have a chance to suggest or vote for tools or whatever that I would like (so
a bit of 1.), but while I don't bear the full cost (a virtue of 2.) my
contribution is not an optional extra...

Sounds good to me. Or have I missed something?

Best wishes
John



on 20/7/05 7:49 pm,  Dan Shafer wrote :

Wow.

I have to say that when I posted that first note a mere few hours
ago, I had no idea it would catch on and become a potentially real
project at all, let alone so rapidly.

I'm unsure about the escrow-management concept. It seems to me that
the original idea I posted from elsewhere that the developer sets a
fee level, begins development only when that level is reached, and
the money goes to charity if the level isn't reached is a much
simpler approach to administer. But I'm certainly neither the owner
of the solution nor the arbiter of such decisions. I just think it's
worth further debate.

dan





-- 


___
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: NPR puzzle

2005-07-20 Thread Alex Tweedly

Lynch, Jonathan wrote:


Interesting - so 'is not in' was actually faster than lineoffset! Is
that always the case?

What if you use this:

If matchtext(Gorp,AnElement) = false then...
 

I'd expect that to be slow - matchtext is going to invoke a general 
purpose regex handler - fast for what it does, but slow compared to 
simpler code that just does exact matches on strings.


It's unsurprising that "is not in" would be faster than "lineoffset"m 
because "is in" (or "is not in") can use string searching algorithms, 
which have been extensively studied and optimized, whereas lineoffset 
must either do

 - string search followed by a count of the number of cr's
or
 - loop through the lines, doing a string search within each.

Either way, the simple string search would normally be faster - but I 
wouldn't say "always" faster, there's bound to be some corner case where 
it isn't.


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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.0/50 - Release Date: 16/07/2005

___
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: Invisible insertion point in field

2005-07-20 Thread David Wilkinson
On Wednesday 20 July 2005 6:00 pm, Jacqueline Landman Gay wrote:

> To lock/unlock a field you need to set three field properties:
> locktext, autohilite, traversalOn. The last two should be set to
> the opposite of the first one.

Unfortunately they are opposite

As a test, as a result of Jonathon's post, I created a new stack, 
dragged a table field onto it along with a ordinary one.  I grouped 
them, edited the group and dragged another single field into the 
group.  All was as expected - insertion point etc.

I also tried edting the group of the uploaded teststack and dragging 
a new field into the group.  This new field  had no insertion 
point.

That suggests some sort of inheritance issue, but I could not see any 
obvious differences between the properties in the group, card or 
stack of the two examples.  If the edit field is copied from the 
group and pasted onto the card, the insertion point then becomes 
visible.

BTW in order to get left mouse drag of the field, I only needed to 
set the locktext to true - those associated props do not appear to 
change when this is done.

Thanks for your rapid response.  The problem isn't critical but gives 
this table component an additional element of flakiness it could do 
without!

David 
___
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: NPR puzzle

2005-07-20 Thread Lynch, Jonathan
I couldn't resist trying this out...

I get a small increase in speed by abandoning the inner loop, allowing
the script to just go to the next word when there is not a match. I am
running a bunch of other programs on my computer right now, so my speed
is compromised. Using Ro's script, I clocked at 75 milliseconds.
Modifying his script as shown below, I improved to 64 milliseconds:

on mouseUp
  put the milliseconds into M
  put fld "W" into W
  put fld "E" into E
  repeat for each line L in W
if char 1 to 2 of L is not in E then
  next repeat
else if char 3 to 4 of L is not in E then
  next repeat
else if char 5 to 6 of L is not in E then
  next repeat
else if char 7 to 8 of L is not in E then
  next repeat
else if char 9 to 10 of L is not in E then
  next repeat
end if
put L & linefeed after F
  end repeat
  put the milliseconds-M into field "computation time"
  put F into field "output"
end mouseUp


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex
Tweedly
Sent: Wednesday, July 20, 2005 4:27 PM
To: How to use Revolution
Subject: Re: NPR puzzle

Lynch, Jonathan wrote:

>Interesting - so 'is not in' was actually faster than lineoffset! Is
>that always the case?
>
>What if you use this:
>
>If matchtext(Gorp,AnElement) = false then...
>  
>
I'd expect that to be slow - matchtext is going to invoke a general 
purpose regex handler - fast for what it does, but slow compared to 
simpler code that just does exact matches on strings.

It's unsurprising that "is not in" would be faster than "lineoffset"m 
because "is in" (or "is not in") can use string searching algorithms, 
which have been extensively studied and optimized, whereas lineoffset 
must either do
  - string search followed by a count of the number of cr's
or
  - loop through the lines, doing a string search within each.

Either way, the simple string search would normally be faster - but I 
wouldn't say "always" faster, there's bound to be some corner case where

it isn't.

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



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.0/50 - Release Date: 16/07/2005

___
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


Re: Project Registry (was Ransomware)

2005-07-20 Thread Dan Shafer

Paul

I think the problem for me has come as this has escalated from a  
fairly simple approach to enabling someone who plans to develop and  
release open source/freeware to gauge the market before doing so,  
into a sort of commercial-grade bidding registry which, I agree,  
would require appropriate disposition of the proceeds of any deposits  
made on behalf of projects that never get off the ground.


Maybe there are two classes of project: free/opensource, and  
commercial, with slightly different rules and procedures for each?


Dan

On Jul 20, 2005, at 12:16 PM, [EMAIL PROTECTED] wrote:


Dan,
Wow is the word! This has so much potential it is hard to  
underestimate it.


I think the escrow idea is essential (for all but the smallest  
projects).
People who donate money (especially large contributions) should  
know that they
will get it back if the project is not commenced or completed.  
Developers should

know there is real money in the kitty before beginning work. I've
incorporated the idea of "pledges" to give an idea of support for  
the request before any
money at all is committed. A developer might begin work on pledges  
alone if
there were enough from enough reputable people - but long projects  
require real
money. For smaller projects the moderator can manage the escrow  
account, for
larger projects there should be a third party escrow. Even with the  
original

idea, the money must be stored somewhere.

There are countless other details to be resolved (for instance,  
what happens
if contributions exceed expenses; everyone gets back a percentage  
of the
excess?) but we can begin with a registry (or better name/ 
description if you've got

one).
Paul Looney
___
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


Re: Project Registry (was Ransomware)

2005-07-20 Thread jbv
http://en.wikipedia.org/wiki/Ransomware

___
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: NPR puzzle

2005-07-20 Thread Eric Chatonet

Hi Jonathan,

You end up with my quick and dirty solution...
Just a word: else is not necessary in this case since you run a next  
repeat if the condition is verified ;-)


Le 20 juil. 05 à 22:48, Lynch, Jonathan a écrit :


I get a small increase in speed by abandoning the inner loop, allowing
the script to just go to the next word when there is not a match. I am
running a bunch of other programs on my computer right now, so my  
speed

is compromised. Using Ro's script, I clocked at 75 milliseconds.
Modifying his script as shown below, I improved to 64 milliseconds:

on mouseUp
  put the milliseconds into M
  put fld "W" into W
  put fld "E" into E
  repeat for each line L in W
if char 1 to 2 of L is not in E then
  next repeat
else if char 3 to 4 of L is not in E then
  next repeat
else if char 5 to 6 of L is not in E then
  next repeat
else if char 7 to 8 of L is not in E then
  next repeat
else if char 9 to 10 of L is not in E then
  next repeat
end if
put L & linefeed after F
  end repeat
  put the milliseconds-M into field "computation time"
  put F into field "output"
end mouseUp


Best Regards from Paris,

Eric Chatonet.

So Smart Software

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

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: NPR puzzle

2005-07-20 Thread Lynch, Jonathan
Funny...

I guess quick and dirty was quickest - was it dirtiest?

I might try playing with a switch control structure to see if that is faster, 
but in the past I have found if-then to be a little faster.


I tried conjoining the components of the if-then statements with a bunch of 
'or's and also by using 'and' with 'is in' instead of 'is not in'...

In both cases, it was like 2 or 3 milliseconds slower than the spread-out 
version.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Chatonet
Sent: Wednesday, July 20, 2005 5:08 PM
To: How to use Revolution
Subject: Re: NPR puzzle

Hi Jonathan,

You end up with my quick and dirty solution...
Just a word: else is not necessary in this case since you run a next  
repeat if the condition is verified ;-)

Le 20 juil. 05 à 22:48, Lynch, Jonathan a écrit :

> I get a small increase in speed by abandoning the inner loop, allowing
> the script to just go to the next word when there is not a match. I am
> running a bunch of other programs on my computer right now, so my  
> speed
> is compromised. Using Ro's script, I clocked at 75 milliseconds.
> Modifying his script as shown below, I improved to 64 milliseconds:
>
> on mouseUp
>   put the milliseconds into M
>   put fld "W" into W
>   put fld "E" into E
>   repeat for each line L in W
> if char 1 to 2 of L is not in E then
>   next repeat
> else if char 3 to 4 of L is not in E then
>   next repeat
> else if char 5 to 6 of L is not in E then
>   next repeat
> else if char 7 to 8 of L is not in E then
>   next repeat
> else if char 9 to 10 of L is not in E then
>   next repeat
> end if
> put L & linefeed after F
>   end repeat
>   put the milliseconds-M into field "computation time"
>   put F into field "output"
> end mouseUp

Best Regards from Paris,

Eric Chatonet.

So Smart Software

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

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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


Re: embed/install font

2005-07-20 Thread Trevor DeVore

On Jul 20, 2005, at 8:35 AM, Brad Borch wrote:

Yes--my first post that began this thread references an earlier  
thread "Own fontsuite with standalone?" I tried the EXT external,  
but was unable to get the the PC executable to return any external  
commands:


set the externals of this stack to gStackPath & "/EXT.dll"
  put the externalCommands of this stack into fld "fontTest2"
  put the externals of this stack into fld "thisTest"
  ext_loadFont (gStackPath & "/VeraMoBI.ttf")

But I'm not proficient enough at Transcript yet to know where the  
problem lies.


If you set the externals property of a stack while the stack is open  
then you need to do one of two things to load the external:


1) Set the destroyWindow property of the stack to true.  Close the  
stack window and open it again.


2) Remove the stack from memory.  Open it again.

Here is a snippet of code that will create a new stack, set the  
externals property and load the exteranl.  You can run this in the  
multiline message box:


create stack "MyStack"
set the destroyWindow of stack "MyStack" to true
set the externals of stack "MyStack" to "EnhancedWin.dll"
close stack "MyStack"
go stack "MyStack"
put the externalPackages of stack "MyStack"


--
Trevor DeVore
Blue Mango Multimedia
[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


Re: NPR puzzle

2005-07-20 Thread Eric Chatonet

Hi again,

Right. This solution is not the dirtiest :-)
The reason is syntactic: the formulation gives up immediately if the  
first 2 chars do not match a symbol.


Le 20 juil. 05 à 23:12, Lynch, Jonathan a écrit :


Funny...

I guess quick and dirty was quickest - was it dirtiest?

I might try playing with a switch control structure to see if that  
is faster, but in the past I have found if-then to be a little faster.



I tried conjoining the components of the if-then statements with a  
bunch of 'or's and also by using 'and' with 'is in' instead of 'is  
not in'...


In both cases, it was like 2 or 3 milliseconds slower than the  
spread-out version.


-Original Message-
From: [EMAIL PROTECTED] [mailto:use- 
[EMAIL PROTECTED] On Behalf Of Eric Chatonet

Sent: Wednesday, July 20, 2005 5:08 PM
To: How to use Revolution
Subject: Re: NPR puzzle

Hi Jonathan,

You end up with my quick and dirty solution...
Just a word: else is not necessary in this case since you run a next
repeat if the condition is verified ;-)

Le 20 juil. 05 à 22:48, Lynch, Jonathan a écrit :


I get a small increase in speed by abandoning the inner loop,  
allowing
the script to just go to the next word when there is not a match.  
I am

running a bunch of other programs on my computer right now, so my
speed
is compromised. Using Ro's script, I clocked at 75 milliseconds.
Modifying his script as shown below, I improved to 64 milliseconds:

on mouseUp
  put the milliseconds into M
  put fld "W" into W
  put fld "E" into E
  repeat for each line L in W
if char 1 to 2 of L is not in E then
  next repeat
else if char 3 to 4 of L is not in E then
  next repeat
else if char 5 to 6 of L is not in E then
  next repeat
else if char 7 to 8 of L is not in E then
  next repeat
else if char 9 to 10 of L is not in E then
  next repeat
end if
put L & linefeed after F
  end repeat
  put the milliseconds-M into field "computation time"
  put F into field "output"
end mouseUp



Best Regards from Paris,

Eric Chatonet.

So Smart Software

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

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: Project Registry (was Ransomware)

2005-07-20 Thread Mark Wieder
jbv-

Wednesday, July 20, 2005, 2:08:23 PM, you wrote:

j> http://en.wikipedia.org/wiki/Ransomware

!!!

-- 
-Mark Wieder
 [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


Re: a maze-game stack?

2005-07-20 Thread Malte Brill

Hi Nicolas,

if you like to use ArcadeEngine for a pacman like game here is a 
out-of-the-top-of-my head approach.


Generate a maze using graphics as walls. each wall a graphic 
(style=line).


Store the ID of the graphics in a custom property of the card e.g. 
allWalls , each ID on one line. (*)


in a send in time structure you could have the following collision test:

repeat for each line theWall in the allWalls of this card
  if intersect(button "myGameHero",grc ID theWall) then
put line 1 of the points of grc ID theWall into startPoint
put line 2 of the points of grc ID theWall into endPoint
put the width of btn "myGameHero" into theRadius
if circleLineSegmentCollide(startPoint,endPoint,the loc of btn 
"myGameHero",theRadius)=true then

  --collision has happened
else
  --no collision has happened
end if
  end if
 end repeat

This code snippet will check a collisions for all walls you have stored 
in the custom property. The fun part is that wall now don´t need to be 
right angled anymore, but can use any angle. :-)


If you want to go into detail just let me know. ;-) I´d like to help 
writing a nice game again.


Cheers,

Malte

(*)

If you have layed out your maze you could use a repeat loop to set the 
cProp


repeat with i=1 to the number of graphics
  put the ID of grc i&cr after theList
end repeat
delete char -1 of list
set the allWalls of this card to theList
___
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: Project Registry (was Ransomware)

2005-07-20 Thread Dan Shafer
But if you follow the link in that article to slashdot, you get a  
more germane reference:


http://developers.slashdot.org/developers/02/11/23/2313213.shtml

Dan

On Jul 20, 2005, at 2:27 PM, Mark Wieder wrote:


jbv-

Wednesday, July 20, 2005, 2:08:23 PM, you wrote:

j> http://en.wikipedia.org/wiki/Ransomware

!!!

--
-Mark Wieder
 [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




___
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: Project Registry (was Ransomware)

2005-07-20 Thread Alex Tweedly

Dan Shafer wrote:

But if you follow the link in that article to slashdot, you get a  
more germane reference:


http://developers.slashdot.org/developers/02/11/23/2313213.shtml

I think that (sadly) the fact that this discussion was 18 months ago, 
and it hasn't taken off, suggests that there are enough difficulties 
involved to make the transition from "cool idea to discuss" to 
"completed project" a difficult one.


Doesn't mean it can't work within an active community (e.g. xtalk/Rev 
users), but it's not a hopeful sign ...


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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.0/50 - Release Date: 16/07/2005

___
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: NPR puzzle

2005-07-20 Thread Mark Wieder
Alex-

Wednesday, July 20, 2005, 11:55:38 AM, you wrote:

AT> 2. moved the "delete char 1 to 2 of daWord" to after the if test (no
AT> need to delete them if you are about to exit the loop).

Interestingly, the "delete char 1 to 2" approach works slightly faster
than just moving the char pointer. I would have thought that the extra
overhead of deleting chars would be much slower. Apparently the
deletion is handled just by readjusting the start-of-line pointer.

Nonetheless, working from the end of the string ("char -2 to -1") in
the repeat statement and the deletion statement also shaves off a few
milliseconds.

-- 
-Mark Wieder
 [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


Re: Project Registry (was Ransomware)

2005-07-20 Thread Richard Gaskin
None of this should be needed:  according to some open source advocates, 
all you have to do is release free software and suddenly your cost of 
living goes to zero.


;)

--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
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: Invisible insertion point in field

2005-07-20 Thread Sarah Reichelt

I have uploaded an experimental table field stack to my user space
(user227), which uses work by and ideas from Chipp Walters, Sarah
Reichelt and Scott Rossi.  It has an edit field that sits on top
of a  worksheet/grid field. The problem is that although you can
enter text in the edit field, the insertion point is invisible. Does
anyone know why this might be?
The usual cause for this is that the field is overlapped by part of a  
group. For some reason this makes the insertion point disappear. Try  
moving your edit field or bringing it to the front and see if that  
fixes it.


As a side question, is there any reason why Rev should set the
vscroll of this field to 4?
Would that be because of the margins? I haven't tested this, but try  
setting the margins to 0 and then checking the vscroll.


HTH,
Sarah

___
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: Project Registry (was Ransomware)

2005-07-20 Thread Dennis Brown
It looks to me like the basic idea of ransomware is that the  
developer takes a risk in writing the software, and puts a ransom  
price on releasing it to the public domain or a date in the future  
for release if the ransom is not met before then.  He can get his  
ransom through sales or donations.
No third parties are involved or needed in this case (except for a  
channel to pay through to make the ransom accounting legit).


However, what we have been discussing is not then technically  
ransomware.


I like what we have been discussing better --at least the version  
where a third party holds the cash up front while the app is being  
written.  That way the developer does not have to take a risk on the  
vagaries of the marketplace so his price can reflect the lower risk.   
I think it also suits the intended audience of users of Rev tools  
better.  The author also wins in that he/she gets a new tool also.   
The last two tools announced could possibly have fit into this model  
(as big projects).


Dennis

On Jul 20, 2005, at 5:46 PM, Dan Shafer wrote:

But if you follow the link in that article to slashdot, you get a  
more germane reference:


http://developers.slashdot.org/developers/02/11/23/2313213.shtml

Dan

___
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: NPR puzzle

2005-07-20 Thread Mark Wieder
This also answers the puzzle:

List all the 10-letter words you can make using the two-letter symbols
for the chemical elements.

And even though "alliterate" is among the answers, there are no
two-letter symbols that use the same letter twice.

-- 
-Mark Wieder
 [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


Re: NPR puzzle

2005-07-20 Thread Mark Wieder
Jim-

I think your list of 10-letter words is somewhat incomplete, even if
it does contain the correct answer. For example, it contains
"zoological" but not "zoologists".

Further work is probably needed to extract, e.g., the nine-letter
words which can be pluralized by adding just an "s". And seven-letter
words which can be adverbed by adding "ly". And words that can be made
into professions by adding "er" or just "r".

-- 
-Mark Wieder
 [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


Re: NPR puzzle

2005-07-20 Thread Judy Perry
of which only helicopter is a mode of transportation?

Judy

On Wed, 20 Jul 2005, Eric Chatonet wrote:

> Hi Jim,
>
> Quick and dirty :-)
>
> alcoholism
> alliterate
> articulate
> ceremonial
> condescend
> cuirassier
> fraternise
> generalise
> helicopter
> homogenise
> inaccurate
> liberalism
> liberalise
> monopolise
> palatalise
> palatinate
> regenerate
> reticulate
> scarlatina
> scrutineer
> scrutinise
> separatism
> thereunder
>
> 30 milliseconds
>
> Le 20 juil. 05 ? 16:40, Jim Hurley a ?crit :
>
> > Challenge for July 24:
> >
> > A 10-letter word for a form of travel, that consists of five
> > consecutive symbols of chemical elements. What is it? If automobile
> > had been the answer, AU, would represent Gold, MO would represent
> > Molybdenum, and BI, would represent Bismuth. Unfortunately, the
> > remaining bigrams, TO and LE, are not chemical symbols.
>
>
> Best Regards from Paris,
>
> Eric Chatonet.
> 
> So Smart Software
>
> For institutions, companies and associations
> Built-to-order applications: management, multimedia, internet, etc.
> Windows, Mac OS and Linux... With the French touch
>
> Free plugins and tutorials on my website
> 
> Web sitehttp://www.sosmartsoftware.com/
> Email[EMAIL PROTECTED]/
> Phone33 (0)1 43 31 77 62
> Mobile33 (0)6 20 74 50 86
> 
>
> ___
> 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


Re: NPR puzzle

2005-07-20 Thread Judy Perry
Funny, that would have been my solution, as well...

Judy
(catching up on email)

On Wed, 20 Jul 2005, Mark Wieder wrote:

> This also answers the puzzle:
>
> List all the 10-letter words you can make using the two-letter symbols
> for the chemical elements.

___
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: NPR puzzle

2005-07-20 Thread Alex Tweedly

Judy Perry wrote:


of which only helicopter is a mode of transportation?

 

Yeah - teaching it the meaning of all the 10-letter words, far less 
enough semantic context to generalize the possible meanings of 
"transportation",  couldn't be done within the 50 millisec time limit :-)


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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.0/50 - Release Date: 16/07/2005

___
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: NPR puzzle

2005-07-20 Thread Sarah Reichelt
A 10-letter word for a form of travel, that consists of five  
consecutive symbols of chemical elements. What is it? If automobile  
had been the answer, AU, would represent Gold, MO would represent  
Molybdenum, and BI, would represent Bismuth. Unfortunately, the  
remaining bigrams, TO and LE, are not chemical symbols.



I have put up a stack with two fields. The first contains all 10  
letter words in my dictionary.


The second contains all two character elements from the periodic  
table.


You task, should you choose to adopt it, is to write a Run Rev  
handler to solve this weeks NPR puzzle defined above.




Before reading everyone else's solutions, I had a go and came up with  
more or less the same script as anyone else. What intrigues me is  
that there would appear to be 2 ways of tackling this problem and  
everyone chose basically the same one.


You can either go through the word list and see if any match the  
elements, or you could go through the element list, making  
combinations and matching them to the words. I discarded this idea  
because the maths involved in working out all the permutations &  
combinations has long since flowed out of my brain, but I wonder if  
anyone else thought of using this method? Instinctively I feel it  
would take longer, but there are 3620 words and only 97 elements.


Thanks for the puzzle Jim, just what I needed to get the brain moving  
first thing in the morning!


Sarah

___
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: Project Registry (was Ransomware)

2005-07-20 Thread Dan Shafer

Damn, I *knew* I was doing something wrong.

You have to *release* the stuff, eh?

Go figure.

:-D

Dan

On Jul 20, 2005, at 2:58 PM, Richard Gaskin wrote:

None of this should be needed:  according to some open source  
advocates, all you have to do is release free software and suddenly  
your cost of living goes to zero.


;)

--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
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


Re: a maze-game stack?

2005-07-20 Thread Nicolas Cueto
> If you want to go into detail just let me know. ;-) I´d like to help
> writing a nice game again.

Thanks Malte.

Excuse me while I just grab my drink there and
carry both it and this discussion on over to the AE
forums

--
Nicolas Cueto

___
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: newbie-menubar problems

2005-07-20 Thread Sarah Reichelt

Hi Joe,

I see are using Mac OS X. Rev does weird things with menus in OS X to  
try and make them fit into Apple's guidelines. Mostly this works very  
well but you have to know what's happened. In the Rev Help menu, go  
to Topics and read the section titled "Menus & the menu bar". This  
gives lots of info about menus in general and what is different about  
OS X menus.


Problem 1: In order for all my menus columns to appear I need to  
have a

"phantom" help menu on the end that I don't want.
Sorry, this seems to be obligatory. The Help menu also needs to  
contain your About menu item which will actually appear in the  
application menu 2nd from the left.


Problem 2: I want to add "Select All/A" to the edit menu and it  
won't let me
add anything after the traditional cut, copy, paste, clear. What  
stupid trap

did I fall into?
I guess you don't have a Preferences menu item? The last 2 items of  
the Edit menu (normally a divider and Preferences) are chopped off  
and the Preferences menu item is access through the application menu.  
Even if the last 2 items are not a divider and Preferences, they will  
still be removed from the Edit menu. Put them in and you'll be able  
to add whatever you want above them.


Similarly, the last 2 items of the File menu are removed. These  
should be a divider & Quit. This can be a problem if you only have a  
Quit item in this menu as it then appears empty which is most  
disconcerting for the user. I always make sure I put something as  
well as Quit in the File menu, even if it is only replicating a  
button click.


HTH,
Sarah

___
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: NPR puzzle

2005-07-20 Thread Jim Hurley


Message: 10
Date: Wed, 20 Jul 2005 14:52:50 -0500
From: "Glenn E. Fisher" <[EMAIL PROTECTED]>
Subject: Re: NPR puzzle
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;   charset=US-ASCII;   format=flowed

Jim,

Here is my submission that ran in 70 milliseconds on my 5 1/2 year old
G4 450 MHz tower:

   set cursor to watch
   put the milliseconds into t
   put fld "ChemSymbols" into c
   put fld "dictionary" into d
   repeat for each line L in d
 if c contains char 1 to 2 of L and c contains char 3 to 4 of L\
 and c contains char 5 to 6 of L and c contains char 7 to 8 of L\
 and c contains char 9 to 10 of L then
   put L & CR after o
 end if
   end repeat
   put the milliseconds -t into t
   put o into fld "Output"
   put "time=" & t && "msecs" after fld "Output"

Cheers,
Glenn



Glenn,

Great solution!

At first I thought it would be slower than the one that most of us 
opted for, i.e. test each condition sequentially and if the test 
fails at any level go on with a "next repeat".


I thought RR would test all the conditionals in your handler (in 
...and ... and...) before moving on to the next repeat, but Scott 
Raney was too smart for that. Apparently, at the point where the 
"and" test fails, RR  decides there is no point in proceeding with 
the others, so.. next repeat.


The speed is about the same for either method.

Jim

P.S. If you submit your solution to NPR and your name is drawm, you 
are in danger of being called on Sunday for another test of wits. My 
mind works too slowly for this kind of exposure.



___
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: NPR puzzle

2005-07-20 Thread Mark Wieder
Judy-

Wednesday, July 20, 2005, 3:12:58 PM, you wrote:

JP> of which only helicopter is a mode of transportation?

...possibly alcoholism...

-- 
-Mark Wieder
 [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


Re: NPR puzzle

2005-07-20 Thread Charles Hartman


On Jul 20, 2005, at 6:26 PM, Sarah Reichelt wrote:

You can either go through the word list and see if any match the  
elements, or you could go through the element list, making  
combinations and matching them to the words. I discarded this idea  
because the maths involved in working out all the permutations &  
combinations has long since flowed out of my brain, but I wonder if  
anyone else thought of using this method? Instinctively I feel it  
would take longer, but there are 3620 words and only 97 elements.


If I remember right, that would be 97! / 5! x (97-5)!. And that -- if  
I'm *also* getting the arithmetic right -- would mean 64,446,024 ten- 
letter words to check. Looks like everyone's instinct to go the other  
way was sound.



Charles Hartman
Professor of English, Poet in Residence
Connecticut College
[EMAIL PROTECTED]
*the Scandroid* is at cherry.conncoll.edu/cohar/Programs.htm


___
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: NPR puzzle

2005-07-20 Thread Mark Wieder
MW> Jim-

MW> I think your list of 10-letter words is somewhat incomplete, even if

...and there's no "cohabitate". Or "chocolates". Or "postmortem". Or
"associates".

-- 
-Mark Wieder
 [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


Re: NPR puzzle

2005-07-20 Thread Jim Hurley


Message: 12
Date: Wed, 20 Jul 2005 15:09:56 -0700
From: Mark Wieder <[EMAIL PROTECTED]>
Subject: Re: NPR puzzle
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

This also answers the puzzle:

List all the 10-letter words you can make using the two-letter symbols
for the chemical elements.

And even though "alliterate" is among the answers, there are no
two-letter symbols that use the same letter twice.



Mark,

The *successive* pairs for "alliterate " are al-li-te-ra-te.




I think your list of 10-letter words is somewhat incomplete, even if
it does contain the correct answer. For example, it contains
"zoological" but not "zoologists".



Right. I need a new dictionary. I have a problem with dictionaries. 
My larger (160,000 word) dictionary has plurasl but it also has a 
great many bizarre words. A search for words compatible with


a***h

where * is a wildcard, yields

abash
airth
aitch
aleph
Allah
almah
almeh
apish
awash
azoth

My smaller dictionary yields a more reasonable list:

abash
aitch
Allah
apish
awash

but this dictionary has no plurals.  What I need is a dictionary 
which has only the words I want. :)


Jim
___
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: Project Registry (was Ransomware)

2005-07-20 Thread SimPLsol
Dan,
 Between your letter and this reply, Dennis wrote a better answer than I 
could have. Yes, we are talking about something beyond Ransomeware.
 I think you and I are looking at this from two different perspectives - 
which is good. You are looking out for the developer's interests, I am looking 
at this as an investor. From an investor's perspective ransomeware has 
problems:
 1. Any money you put into it is gone. You may or may not get your 
product. You may or may not like the charity to which you have donated. You 
have no 
chance to reinvest the money in another product - or the same product with a 
different developer.
 2. There is no mechanism (e.g., a moderator) to make the inevitable 
adjustments that occur in any sizable project.
 3. Not only is there no escrow, there is no real money. This makes it 
hard to encourage serious developers.
 4. The ransom model seems to be geared toward helping developers with 
ideas find investors. This is good. But the escrow model equally encourages 
investors to find developers for their ideas.

 The escrow model IS more complicated but the structure benefits everyone 
on both sides of the process - and it scales much better than the ransom 
model, accommodating all but the largest and most complicated projects.
 The end product from the escrow model can be either open source or 
commercial - this must be disclosed at the beginning of any request. 
Ransomeware 
does not (as I view it) lend itself to commercial products.

 Both methods need a Registry (or some other means of communication 
between investors and developers). I have pledged $100 to start building this 
registry. Since there is no registry until the registry is built, I volunteer 
to 
keep a list of pledges and will find a trusted third party to hold actual funds 
if we get that far in this experiment.
Paul Looney
 
___
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: NPR puzzle

2005-07-20 Thread Alex Tweedly

Charles Hartman wrote:



On Jul 20, 2005, at 6:26 PM, Sarah Reichelt wrote:

You can either go through the word list and see if any match the  
elements, or you could go through the element list, making  
combinations and matching them to the words. I discarded this idea  
because the maths involved in working out all the permutations &  
combinations has long since flowed out of my brain, but I wonder if  
anyone else thought of using this method? Instinctively I feel it  
would take longer, but there are 3620 words and only 97 elements.



If I remember right, that would be 97! / 5! x (97-5)!. And that -- if  
I'm *also* getting the arithmetic right -- would mean 64,446,024 ten- 
letter words to check. Looks like everyone's instinct to go the other  
way was sound.


No, they're not "combinations" - there's nothing to say you can't use 
the same symbol more than once in a word (in fact, some of the words 
do), so the number of words to check is simply 97 ^ 5 = 8,587,340,257


Yes, I did think of doing it that way. I also, just for the heck of it 
thought of forming a monster regex

   "[Al|Ar|.|Zr][Al| ...Zr]..."
and seeing what that did - but neither of them seemed very likely, so I 
didn't try them.


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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.0/50 - Release Date: 16/07/2005

___
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: Unicode frustration

2005-07-20 Thread Thomas McCarthy

Hear hear! frustration!
Here are some of the problems (in addition to yours) that I've encountered.

Words are not wrapped properly. This may be that the space char is not being 
properly read as the word delimiter.

I was going to type more, but gotta run!
tm

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


___
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: NPR puzzle

2005-07-20 Thread Judy Perry


On Wed, 20 Jul 2005, Mark Wieder wrote:

> Judy-
>
> Wednesday, July 20, 2005, 3:12:58 PM, you wrote:
>
> JP> of which only helicopter is a mode of transportation?
>
> ...possibly alcoholism...
>
;-)


___
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


  1   2   >