Re: Question about keys

2005-07-31 Thread Alex Tweedly

Dennis Brown wrote:


All,

I have a two dimensional array:  array[x,y]
I need to get the unique x keys into a list, there are about 20  
unique ones, but they are dynamically created names (not numbers).

The y keys have tens of thousands of elements.



put the keys of array into mykeys
split mykeys by cr and comma
put the keys of mykeys into xKeys

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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.6/59 - Release Date: 27/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: Help, what am I doing wrong???

2005-07-31 Thread Ken Ray
On 7/31/05 8:13 PM, "Jon" <[EMAIL PROTECTED]> wrote:

> Horrifying.  I assume this is BZd?!?

No, because it's not true (see my response to Mark).

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


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


Re: Help, what am I doing wrong???

2005-07-31 Thread Ken Ray
On 7/31/05 7:08 PM, "Mark Wieder" <[EMAIL PROTECTED]> wrote:
 
> A semi-related point that seems to bother nobody but me is that you
> don't have to declare loop variables (i.e., Variable Checking [aka
> explicitVars] doesn't catch them), but if you don't explicitly declare
> them as local then they become global by default, in which case you
> get namespace conflicts.

Sorry, Mark, but that's simply not true. You can check this this way:

-- Script of btn 1
on mouseUp
  repeat with x = 1 to 10
-- do nothing
  end repeat
  answer x
end mouseUp

-- Script of btn 2
global x
on mouseUp
  answer x
end mouseUp

The first button will answer "10", the second button will answer "". x did
not become a global simply because it wasn't declared.

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



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


Scripting conference - chunk expressions stack uploaded

2005-07-31 Thread J. Landman Gay
Alex Tweedly's excellent scripting conference stack is now available for 
download in preparation for next weekend's conference. The topic is 
"Text and Chunk Expressions" and it covers everything you ever wanted to 
know about working with text, both in fields and in variables. Text 
chunking is one of Revolution's strongest features, and this stack tells 
you how to use it.


As always, you can find it here:



This conference will be held at 1123344000 seconds:

  get "1123344000";convert it to system date and time;put it

See you there!

--
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: Question about keys

2005-07-31 Thread Brian Yennie

Dennis,

I don't believe there is an automatic way of doing what you want (short 
of changing your data structure, which may not be an option). However, 
the below should be a pretty quick hack if my brain is working well 
enough in email land:


put keys(myArray) into tKeys
split tKeys using return and comma
put keys(tKeys) into xValues

- Brian


All,

I have a two dimensional array:  array[x,y]
I need to get the unique x keys into a list, there are about 20 unique 
ones, but they are dynamically created names (not numbers).

The y keys have tens of thousands of elements.

Is there a simple way to extract the unique x without iterating 
through all the tens of thousands of keys?


I could restructure my code so that I keep a list of unique keys as I 
create them, but this is more complex and could get out of sync since 
I create the elements from many different places in the code.


I could also have a second array that keeps some of the information 
without as many entries.


However, I would prefer keeping everything in one place (it is a 
global) if I can, but I can't think of an easy and fast method.


Thanks,
Dennis

___
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: Screen Resolution

2005-07-31 Thread Thomas McGrath III

See screenDepth

Value:
The screenDepth function returns 1, 2, 4, 8, 16, 24, or 32.

The value returned by the screenDepth function is updated only when you 
start up the application. If you change the screen settings after 
starting up the application, you must quit and restart to update the 
screenDepth.


This does not make doing it easy. But it is possible. A start up app 
might change it and then quit while opening another app but then you 
would have to also change it upon quiting.


Tom


On Jul 31, 2005, at 2:36 PM, curry wrote:



I've seen people berated for asking this question, because others 
assume it will not be done responsibly on the Mac, which can have some 
side effects. (So, best to either let the user choose whether to 
change, or do something like kill the finder ??? or whatever it is 
they do to avoid the side effects.) On PC, of course, it's common.


I think this is always a good question, and I would also like to know 
what are the best ways currently, for PC and for Mac.


Curry

--


Hi everyone:

Can anybody tell me how can I change the screen resolution through a 
script?


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





Macintosh PowerBook G-4 OSX 10.3.9, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 
2.6



Advanced Media Group
Eagle Works Art & Sculpture
Semantic Compaction Systems
Prentke Romich Company
Prentke Romich International
SCIconics, LLC
Artist
Thomas J McGrath III
[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


Question about keys

2005-07-31 Thread Dennis Brown

All,

I have a two dimensional array:  array[x,y]
I need to get the unique x keys into a list, there are about 20  
unique ones, but they are dynamically created names (not numbers).

The y keys have tens of thousands of elements.

Is there a simple way to extract the unique x without iterating  
through all the tens of thousands of keys?


I could restructure my code so that I keep a list of unique keys as I  
create them, but this is more complex and could get out of sync since  
I create the elements from many different places in the code.


I could also have a second array that keeps some of the information  
without as many entries.


However, I would prefer keeping everything in one place (it is a  
global) if I can, but I can't think of an easy and fast method.


Thanks,
Dennis

___
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: Screen Resolution

2005-07-31 Thread Sarah Reichelt
Like most things, there are sometimes valid reasons for over-riding  
the HIG. I run a kiosk app and for debugging, I have a button to  
toggle to screen res so I can see more windows, but for public use,  
toggle it back again.


For Mac OS X, I use the cscreen shell command.


To set the screen res to 1024 x 768 with 32 bit color depth, I use:
get shell("cscreen -x 1024 -y 768 -d 32")

HTH,
Sarah


On 01/08/2005, at 4:41 AM, curry wrote:



I've seen people berated for asking this question, because others  
assume it will not be done responsibly on the Mac, which can have  
some side effects. (So, best to either let the user choose whether  
to change, or do something like kill the finder ??? or whatever it  
is they do to avoid the side effects.) On PC, of course, it's common.


I think this is always a good question, and I would also like to  
know what are the best ways currently, for PC and for Mac.


Curry

--



Hi everyone:

Can anybody tell me how can I change the screen resolution through  
a script?


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






___
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: Help, what am I doing wrong???

2005-07-31 Thread Dennis Brown

WHAT

I would have thought that they would be local by default.
Who would ever guess that they would be global by default.
This is unbelievable  --and dangerous!
Come on now, April 1st was four months ago.

Dennis

On Jul 31, 2005, at 8:08 PM, Mark Wieder wrote:


A semi-related point that seems to bother nobody but me is that you
don't have to declare loop variables (i.e., Variable Checking [aka
explicitVars] doesn't catch them), but if you don't explicitly declare
them as local then they become global by default, in which case you
get namespace conflicts. Declaring "local x" when you've already got a
"repeat for x=1 to 10" line somewhere in your script will cause a
compiler error at the "local x" line.

___
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: Spotlight indexing: feature request proposal

2005-07-31 Thread Sarah Reichelt
I propose the addition of two new stack properties for telling  
Spotlight how to index stacks:
- the  of this stack: if true the scripts of the  
stack is indexed by Spotlight. If false, no script indexing is done  
for the stack.
- the  of this stack: if true the content of fields  
and titles of objects are indexed by Spotlight. If false, objects  
content indexing is not done for the stack.
By default both properties are true (i.e. when the stack is  
created). When creating a substack, its spotlight properties are  
default to the value of its mainstack but they can be changed  
independantly from the mainstack.


I agree - mostly. Sometimes I would really like the text to be  
indexed but I realize this places an extra burden on the system, so I  
would like the text search OFF by default and restricted to unlocked  
fields.


As regards the password-protected scripts, have you tried this? I  
just tested it and Spotlight does not index password-protected stacks.


Cheers,
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: Video tutorials - OS X

2005-07-31 Thread Sarah Reichelt
Not only do you need the codec installed, but you probably have to  
restart before you get video, even though the codec installer never  
asks for a restart.


Sarah

On 31/07/2005, at 5:44 AM, Eric Chatonet wrote:


Hi Mark,

You need the right codec installed.
Se in the "Third party" folder in your Rev main app folder: it's  
there.

Hope this helps.

Le 30 juil. 05 à 21:30, Mark Swindell a écrit :


Why don't I get video with the Rev OnLine tutorials in OS X 10.4?   
Only audio.


This has probably been covered... but is there an easy answer?




___
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: Help, what am I doing wrong???

2005-07-31 Thread Jon

Horrifying.  I assume this is BZd?!?


Mark Wieder wrote:


Jon-

Sunday, July 31, 2005, 12:15:53 PM, you wrote:

J> Mark:

J> The point I was TRYING to make  was that FOR loop variables 1) had
J> to be declared locally; and 2) could not be modified inside a loop.  I
J> was trying to make a general case for this kind of a definition of an
J> "error". 


Ah. Gotcha. Yes - that's at least somewhat mind-boggling.

A semi-related point that seems to bother nobody but me is that you
don't have to declare loop variables (i.e., Variable Checking [aka
explicitVars] doesn't catch them), but if you don't explicitly declare
them as local then they become global by default, in which case you
get namespace conflicts. Declaring "local x" when you've already got a
"repeat for x=1 to 10" line somewhere in your script will cause a
compiler error at the "local x" line.

 


___
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: New page in test.

2005-07-31 Thread Dan Shafer
FYI and FWIW, my research indicates that WordPress is probably the  
best of the free blog tools out there. I think it supports everything  
you want. While RSS isn't built in there are a lot of easy-to-install  
third party tools that handle it quite elegantly.


http://www.wordpress.org

Dan

On Jul 31, 2005, at 4:49 PM, Bill wrote:

Your page works fine but Manila cost $1000! Why not use plog or  
some other

blogging tool that is not so expensive? I am looking for a very simple
blogging tool, easy to post too with photos, easy to set-up RSS and  
runs on

Linux.

What is your advice?

Bill


On 7/31/05 7:03 PM, "Andre Garzia" <[EMAIL PROTECTED]> wrote:




On Jul 31, 2005, at 7:54 PM, Dan Shafer wrote:



Andre

A blog from you on technical things would be quite interesting and
useful, I'm sure.

Curious why you're using Manila when you have your own blogging
tools. I mean, I like Manila and all, but does it offer some big
advantages that you couldn't get into your own blog tools?

I'd definitely read it.

Dan



Dan,

I guess I'll create  a "why manila" article :-D

The point is, my blogging tools are not on par with manila features
yet. Manila is very powerfull and it's built in editor and image
upload features enable me to work my page from anywhere. I am working
on a little manila-like tool but it is not ready yet, so for now, I
stick with manila. All my blogging tools are just me trying to clone
frontier/manila for I think it's the most powerfull and elegant
solution available. Since the frontier kernel was opened, my old
frontier interest was reborn and I reinstalled manila trial here, it
will run for two months. I hope that in the end of this period or my
blogging tools will be as powerfull as I want them to be, or that
I'll have the money to buy a frontier copy for myself!

The main thing was: should I wait for my tools to mature as much as I
thought they need before creating my page or should I start with the
tool I like best and then go improving my apps using my daily
experience with manila as a guidance... I decided to start now! :-D

Cheers
andre





On Jul 31, 2005, at 3:30 PM, Andre Garzia wrote:




Hi There folks,

I am testing my new page and I'd like feedback from you guys since
the page is most focused on writting interesting things for rev
coders. The page is currently hosted at my house so the system is
slow (slow connection, slow computer) so please be patient, I just
need to see if there's a place for that kind of page. The content
is small now, but I'll be adding content daily. The url is http://
www.andregarzia.com that is not the final url but a temporary one,
before I move my www.soapdog.org domain. The url will redirect to
my home machine on a non standard port, so that you guys end up on
http://home.soapdog.org:8080/

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





|||
   )_)  )_)  )_)
  )___))___))___)\
 )))_)\\
   _|||\\\__
---\   /- http://www.bluewatermaritime.com
 ^ ^
     ^^^^^
     ^^^

24 hour cell: (787) 378-6190
fax: (787) 809-8426

Blue Water Maritime
P.O. Box 91
Puerto Real, PR 00740



___
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: ANN: New page in test.

2005-07-31 Thread Dan Shafer
I found Manila confusingly robust and annoyingly complex. I prefer  
Web Crossing, which is what i use for my blog (http:// 
www.eclecticity.com). Web Crossing is more expensive than Manila, but  
it is also more fully featured, being a true all-in-one server  
package backed by a completely user-extensible object database and  
all of it entirely scriptable in JavaScript.


But at least I now understand why you went with another product.

Dan

On Jul 31, 2005, at 4:03 PM, Andre Garzia wrote:



On Jul 31, 2005, at 7:54 PM, Dan Shafer wrote:



Andre

A blog from you on technical things would be quite interesting and  
useful, I'm sure.


Curious why you're using Manila when you have your own blogging  
tools. I mean, I like Manila and all, but does it offer some big  
advantages that you couldn't get into your own blog tools?


I'd definitely read it.

Dan



Dan,

I guess I'll create  a "why manila" article :-D

The point is, my blogging tools are not on par with manila features  
yet. Manila is very powerfull and it's built in editor and image  
upload features enable me to work my page from anywhere. I am  
working on a little manila-like tool but it is not ready yet, so  
for now, I stick with manila. All my blogging tools are just me  
trying to clone frontier/manila for I think it's the most powerfull  
and elegant solution available. Since the frontier kernel was  
opened, my old frontier interest was reborn and I reinstalled  
manila trial here, it will run for two months. I hope that in the  
end of this period or my blogging tools will be as powerfull as I  
want them to be, or that I'll have the money to buy a frontier copy  
for myself!


The main thing was: should I wait for my tools to mature as much as  
I thought they need before creating my page or should I start with  
the tool I like best and then go improving my apps using my daily  
experience with manila as a guidance... I decided to start now! :-D


Cheers
andre





On Jul 31, 2005, at 3:30 PM, Andre Garzia wrote:




Hi There folks,

I am testing my new page and I'd like feedback from you guys  
since the page is most focused on writting interesting things for  
rev coders. The page is currently hosted at my house so the  
system is slow (slow connection, slow computer) so please be  
patient, I just need to see if there's a place for that kind of  
page. The content is small now, but I'll be adding content daily.  
The url is http://www.andregarzia.com that is not the final url  
but a temporary one, before I move my www.soapdog.org domain. The  
url will redirect to my home machine on a non standard port, so  
that you guys end up on http://home.soapdog.org:8080/


cheers
andre
___
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: Help, what am I doing wrong???

2005-07-31 Thread Mark Wieder
Jon-

Sunday, July 31, 2005, 12:15:53 PM, you wrote:

J> Mark:

J> The point I was TRYING to make  was that FOR loop variables 1) had
J> to be declared locally; and 2) could not be modified inside a loop.  I
J> was trying to make a general case for this kind of a definition of an
J> "error". 

Ah. Gotcha. Yes - that's at least somewhat mind-boggling.

A semi-related point that seems to bother nobody but me is that you
don't have to declare loop variables (i.e., Variable Checking [aka
explicitVars] doesn't catch them), but if you don't explicitly declare
them as local then they become global by default, in which case you
get namespace conflicts. Declaring "local x" when you've already got a
"repeat for x=1 to 10" line somewhere in your script will cause a
compiler error at the "local x" line.

-- 
-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: Help, what am I doing wrong??? --resolution BZ

2005-07-31 Thread Mark Wieder
Dennis-

Sunday, July 31, 2005, 1:45:53 PM, you wrote:

Thanks. BZ# 3036 voted and commented on.

-- 
-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: ANN: New page in test.

2005-07-31 Thread Bill
Your page works fine but Manila cost $1000! Why not use plog or some other
blogging tool that is not so expensive? I am looking for a very simple
blogging tool, easy to post too with photos, easy to set-up RSS and runs on
Linux.

What is your advice?

Bill


On 7/31/05 7:03 PM, "Andre Garzia" <[EMAIL PROTECTED]> wrote:

> 
> On Jul 31, 2005, at 7:54 PM, Dan Shafer wrote:
> 
>> Andre
>> 
>> A blog from you on technical things would be quite interesting and
>> useful, I'm sure.
>> 
>> Curious why you're using Manila when you have your own blogging
>> tools. I mean, I like Manila and all, but does it offer some big
>> advantages that you couldn't get into your own blog tools?
>> 
>> I'd definitely read it.
>> 
>> Dan
> 
> Dan,
> 
> I guess I'll create  a "why manila" article :-D
> 
> The point is, my blogging tools are not on par with manila features
> yet. Manila is very powerfull and it's built in editor and image
> upload features enable me to work my page from anywhere. I am working
> on a little manila-like tool but it is not ready yet, so for now, I
> stick with manila. All my blogging tools are just me trying to clone
> frontier/manila for I think it's the most powerfull and elegant
> solution available. Since the frontier kernel was opened, my old
> frontier interest was reborn and I reinstalled manila trial here, it
> will run for two months. I hope that in the end of this period or my
> blogging tools will be as powerfull as I want them to be, or that
> I'll have the money to buy a frontier copy for myself!
> 
> The main thing was: should I wait for my tools to mature as much as I
> thought they need before creating my page or should I start with the
> tool I like best and then go improving my apps using my daily
> experience with manila as a guidance... I decided to start now! :-D
> 
> Cheers
> andre
> 
> 
>> 
>> On Jul 31, 2005, at 3:30 PM, Andre Garzia wrote:
>> 
>> 
>>> Hi There folks,
>>> 
>>> I am testing my new page and I'd like feedback from you guys since
>>> the page is most focused on writting interesting things for rev
>>> coders. The page is currently hosted at my house so the system is
>>> slow (slow connection, slow computer) so please be patient, I just
>>> need to see if there's a place for that kind of page. The content
>>> is small now, but I'll be adding content daily. The url is http://
>>> www.andregarzia.com that is not the final url but a temporary one,
>>> before I move my www.soapdog.org domain. The url will redirect to
>>> my home machine on a non standard port, so that you guys end up on
>>> http://home.soapdog.org:8080/
>>> 
>>> cheers
>>> andre
>>> ___
>>> 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
> 
> 

|||
   )_)  )_)  )_)
  )___))___))___)\
 )))_)\\
   _|||\\\__
---\   /- http://www.bluewatermaritime.com
 ^ ^
     ^^^^^
     ^^^

24 hour cell: (787) 378-6190
fax: (787) 809-8426

Blue Water Maritime
P.O. Box 91
Puerto Real, PR 00740



___
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: Full justification

2005-07-31 Thread Jim Hurley


Message: 1
Date: Sun, 31 Jul 2005 11:17:40 -0400
From: Thomas McGrath III <[EMAIL PROTECTED]>
Subject: Re: Full justification
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;   charset=US-ASCII;   format=flowed

This will take care of the extra spaces just create another button and
put this in it:


on mouseUp
   repeat for each word theword in field "field"
 put theword & space after field "flush"
   end repeat
   beep
end mouseUp

Then copy the text from field "field"

Tom



Tom,

Good. But to avoid the problems that Alex mentions, I was thinking of 
something like the following:


on mouseUp
  get the htmltext of  field 1

  repeat
replace "  " with space in it--Replace double space with single
if offset("  ",it) is 0 then exit repeat
  end repeat

  set the htmltext of field 1 to  it
end mouseUp

Replace is very fast. It is best to work with the htmlText to avoid 
changing the formatting. (It is pretty much what I do in MS Word: 
replace double spaces with single spaces until Word reports no 
changes.)


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: ANN: New page in test.

2005-07-31 Thread Andre Garzia


On Jul 31, 2005, at 7:54 PM, Dan Shafer wrote:


Andre

A blog from you on technical things would be quite interesting and  
useful, I'm sure.


Curious why you're using Manila when you have your own blogging  
tools. I mean, I like Manila and all, but does it offer some big  
advantages that you couldn't get into your own blog tools?


I'd definitely read it.

Dan


Dan,

I guess I'll create  a "why manila" article :-D

The point is, my blogging tools are not on par with manila features  
yet. Manila is very powerfull and it's built in editor and image  
upload features enable me to work my page from anywhere. I am working  
on a little manila-like tool but it is not ready yet, so for now, I  
stick with manila. All my blogging tools are just me trying to clone  
frontier/manila for I think it's the most powerfull and elegant  
solution available. Since the frontier kernel was opened, my old  
frontier interest was reborn and I reinstalled manila trial here, it  
will run for two months. I hope that in the end of this period or my  
blogging tools will be as powerfull as I want them to be, or that  
I'll have the money to buy a frontier copy for myself!


The main thing was: should I wait for my tools to mature as much as I  
thought they need before creating my page or should I start with the  
tool I like best and then go improving my apps using my daily  
experience with manila as a guidance... I decided to start now! :-D


Cheers
andre




On Jul 31, 2005, at 3:30 PM, Andre Garzia wrote:



Hi There folks,

I am testing my new page and I'd like feedback from you guys since  
the page is most focused on writting interesting things for rev  
coders. The page is currently hosted at my house so the system is  
slow (slow connection, slow computer) so please be patient, I just  
need to see if there's a place for that kind of page. The content  
is small now, but I'll be adding content daily. The url is http:// 
www.andregarzia.com that is not the final url but a temporary one,  
before I move my www.soapdog.org domain. The url will redirect to  
my home machine on a non standard port, so that you guys end up on  
http://home.soapdog.org:8080/


cheers
andre
___
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: ANN: New page in test.

2005-07-31 Thread Dan Shafer

Andre

A blog from you on technical things would be quite interesting and  
useful, I'm sure.


Curious why you're using Manila when you have your own blogging  
tools. I mean, I like Manila and all, but does it offer some big  
advantages that you couldn't get into your own blog tools?


I'd definitely read it.

Dan

On Jul 31, 2005, at 3:30 PM, Andre Garzia wrote:


Hi There folks,

I am testing my new page and I'd like feedback from you guys since  
the page is most focused on writting interesting things for rev  
coders. The page is currently hosted at my house so the system is  
slow (slow connection, slow computer) so please be patient, I just  
need to see if there's a place for that kind of page. The content  
is small now, but I'll be adding content daily. The url is http:// 
www.andregarzia.com that is not the final url but a temporary one,  
before I move my www.soapdog.org domain. The url will redirect to  
my home machine on a non standard port, so that you guys end up on  
http://home.soapdog.org:8080/


cheers
andre
___
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: ANN: Sudoku Assistant

2005-07-31 Thread Dan Shafer

Alex...

Got it.

I'm doing something wrong or misunderstanding how the assistant works  
or something.


On Puzzle #1, I got to the place where I have five uncompleted cells.  
One of them has a "?" which I think means there's an error somewhere.  
But neither it nor the cell underneath it show any potential values  
when I click on them. Then I click on an adjoining square to the one  
without a "?" and select a value. Odds go to 0, so I know I've got a  
wrong value there. I "Undo" and now I have three squares -- the two  
original and the one I just undid -- that show no values to pick from  
when I click on them. SO essentially, even though I think I could  
solve the puzzle at this point, the assistant won't let me proceed.


Bug? Something I'm not grokking?

Dan

(I'll send you the text file privately.)

On Jul 31, 2005, at 3:25 PM, Alex Tweedly wrote:


Dan Shafer wrote:



Alex.

Downloaded Version 1.2 but the PReferences menu option does  
nothing  on my machine.


Still getting addicted here. Nifty stuff.



There aren't any preferences yet.

Although Jim suggested a preference for whether to display blanks  
rather than the set of possible values, I decided to make it a  
button rather than a preference.


This makes it easier to switch between the two modes - initially  
there should be a button at the bottom "Hide uncompleted" - click  
that (*after* you have loaded a puzzle) and you will see blank  
squares, and the button should switch to saying "Show uncompleted".  
You should be able to switch between them at any time. (This  
doesn't count as an action for Undo/Redo - you should stay in the  
same mode while Undoing or Redoing).


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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.6/59 - Release Date:  
27/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


ANN: New page in test.

2005-07-31 Thread Andre Garzia

Hi There folks,

I am testing my new page and I'd like feedback from you guys since  
the page is most focused on writting interesting things for rev  
coders. The page is currently hosted at my house so the system is  
slow (slow connection, slow computer) so please be patient, I just  
need to see if there's a place for that kind of page. The content is  
small now, but I'll be adding content daily. The url is http:// 
www.andregarzia.com that is not the final url but a temporary one,  
before I move my www.soapdog.org domain. The url will redirect to my  
home machine on a non standard port, so that you guys end up on  
http://home.soapdog.org:8080/


cheers
andre
___
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: Sudoku Assistant

2005-07-31 Thread Alex Tweedly

Dan Shafer wrote:


Alex.

Downloaded Version 1.2 but the PReferences menu option does nothing  
on my machine.


Still getting addicted here. Nifty stuff.


There aren't any preferences yet.

Although Jim suggested a preference for whether to display blanks rather 
than the set of possible values, I decided to make it a button rather 
than a preference.


This makes it easier to switch between the two modes - initially there 
should be a button at the bottom "Hide uncompleted" - click that 
(*after* you have loaded a puzzle) and you will see blank squares, and 
the button should switch to saying "Show uncompleted". You should be 
able to switch between them at any time. (This doesn't count as an 
action for Undo/Redo - you should stay in the same mode while Undoing or 
Redoing).


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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.6/59 - Release Date: 27/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: ANN: Sudoku Assistant

2005-07-31 Thread Dan Shafer

Alex.

Downloaded Version 1.2 but the PReferences menu option does nothing  
on my machine.


Still getting addicted here. Nifty stuff.

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: European Revolution Conference

2005-07-31 Thread Malte Brill

Hi Mark!

Excellent idea! It is always great to meat the persons behind the mail 
face to face. The only thing that might be problematic is that 6 weeks 
from now is a bit short to plan.


Please keep me posted,

Malte

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


Re: Help, what am I doing wrong??? --resolution BZ

2005-07-31 Thread Dennis Brown

Ok folks,

I BZ'd this issue for the Rev team to take note of.  If you want to  
second this, you can send a vote it's way.

Thanks to all for the discussion and helping me understand the problem.

Dennis
--

http://support.runrev.com/bugdatabase/show_bug.cgi?id=3036

   Summary: Repeat for each errors in IDE
   Product: Revolution
   Version: 2.6
  Platform: All
OS/Version: All
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P2
 Component: Script compiler
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
 QAContact: [EMAIL PROTECTED]


The repeat for each construct behaves in a way that trips up just  
about everyone
eventually and can be very hard to debug.  If the labelVariable is  
modified inside
the loop, the data from the container is somehow trashed also.  To  
make matters
worse, when steping through the script in the debugger, the data from  
the container
is not trashed, and the loop works perfectly.  So the code "reads"  
right, and in
the debugger works right, but under normal operation, it does not  
work.  This can

be very frustrating to debug.

I propose that since the labelVariable must be treated as a read only  
quantity
inside the loop (for any useful script), that an error message be  
generated by the
script compiler when an attempt to modify the labelVariable is  
detected.  If this
is too hard, then fix the runtime package so that the contents of the  
labelVariable

can be modified without messing up the next repeat value.

Dennis

--
Posted by RevZilla 2.0.3

On Jul 31, 2005, at 2:15 AM, Mark Wieder wrote:


Dennis-

Saturday, July 30, 2005, 7:24:58 PM, you wrote:

DB> I would really like to get a real error message since it does  
not do
DB> what you expect from reading the code.  How many newbies do we  
have

DB> to trip up before we erect a stop sign at that intersection?

DB> Should I BZ it?

I'm not sure it's actually a bug, but it's worth BZing just to keep it
on the rev team's radar, since it's a stumbling block that everyone
runs across at some time or other.

--
-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: Flashing numbers added to Number Picker stack.

2005-07-31 Thread Cubist
sez [EMAIL PROTECTED]:
>One more question - if it's not asking too much.
>Sometimes I want a number, once it is selected, to be taken out of
>circulation. Is there a short script to add that will do this? I have
>searched all the resources but cannot find anything that explains how
>to do this.
   Try something like this:

local WhatzLeft

on MakeList DerNumber
  -- call this function when you want to generate a pool of numbers
  --
  -- it assumes DerNumber is a positive integer, so watch what you feed it

  put "" into Rezult
  repeat with K1 = 1 to DerNumber
put K1 into item K1 of Rezult
  end repeat
  put Rezult into WhatzLeft
end MakeList

function PickOne
  put the number of items in WhatzLeft into PoolSize
  if PoolSize = 0 then
return "Hey! Doofus! You ain't got nuttin' left!"
  else
put the random of PoolSize into Fred
put item Fred of WhatzLeft into Rezult
delete item Fred of WhatzLeft
return Rezult
  end if
end PickOne

   Hope this helps...
___
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: Help, what am I doing wrong???

2005-07-31 Thread Richard Gaskin

Mark Wieder wrote:

I wasn't aware that Delphi even *had* a "for each" element construct,


That's part of Pascal, no?

I may just be getting old

--
 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: Help, what am I doing wrong???

2005-07-31 Thread Jon

Mark:

The point I was TRYING to make  was that FOR loop variables 1) had 
to be declared locally; and 2) could not be modified inside a loop.  I 
was trying to make a general case for this kind of a definition of an 
"error". 


:)

Jon


Mark Wieder wrote:


Jon-

Sunday, July 31, 2005, 5:59:01 AM, you wrote:

J> It has been considered a bug, and flagged for the programmer,  in Delphi
J> for years.  I don't see how it can be considered anything else. Now as
J> to whether it is a bug that is reported in Rev with an error message,
J> that is a different story.

I wasn't aware that Delphi even *had* a "for each" element construct,
but then I haven't kept up with Delphi since v6.0 or so. Now that I've
googled it, I see that Borland added foreach support to Delphi 2005.
The documentation, though, clearly states that the loop indices are
provided as read-only references only and cannot be modified. Works
the same way in C#, in case you're interested.

Since this is a brand-new addition to Delphi, I'm not sure what you're
referring to in "has been considered a bug...for years". Nor how this
can be considered a bug, since it's clearly documented.

Personally, I prefer either the Perl or PHP implementations, where
you're free to use and modify the element since it's separate from the
loop index. Messing with a loop index is always a Bad Idea.
Interestingly, in Perl changing the loop element changes the original
referenced element, while in PHP the original value is unchanged.

 


___
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: Screen Resolution

2005-07-31 Thread curry

I've seen people berated for asking this question, because others assume it 
will not be done responsibly on the Mac, which can have some side effects. (So, 
best to either let the user choose whether to change, or do something like kill 
the finder ??? or whatever it is they do to avoid the side effects.) On PC, of 
course, it's common.

I think this is always a good question, and I would also like to know what are 
the best ways currently, for PC and for Mac.

Curry

--

>Hi everyone:
>
>Can anybody tell me how can I change the screen resolution through a script?
>
>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


OT: SysAdmin appreciation

2005-07-31 Thread Mark Wieder
All-

The last Friday in July is System Administrator Appreciation Day:

http://www.sysadminday.com/Time.htm

-- 
-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: Help, what am I doing wrong???

2005-07-31 Thread Charles Hartman
In Python, too, you can change the loop variable; but every time  
execution goes back to the top of the loop, the variable takes on the  
next value it _would have_ taken, no matter what you've done to it in  
the meantime. (If I remember right.) Kind of a handy combination --  
as long as you remember how it works. But this proviso presumably  
applies to _any_ implementation of loop variables, except one that  
relieves your memory of the burden by raising an error if you even  
try to change the variable. That's safest, but kind of . . .  
paternalistic, yes?


Charles


On Jul 31, 2005, at 1:20 PM, Mark Wieder wrote:


Jon-

Sunday, July 31, 2005, 5:59:01 AM, you wrote:

J> It has been considered a bug, and flagged for the programmer,   
in Delphi
J> for years.  I don't see how it can be considered anything else.  
Now as
J> to whether it is a bug that is reported in Rev with an error  
message,

J> that is a different story.

I wasn't aware that Delphi even *had* a "for each" element construct,
but then I haven't kept up with Delphi since v6.0 or so. Now that I've
googled it, I see that Borland added foreach support to Delphi 2005.
The documentation, though, clearly states that the loop indices are
provided as read-only references only and cannot be modified. Works
the same way in C#, in case you're interested.

Since this is a brand-new addition to Delphi, I'm not sure what you're
referring to in "has been considered a bug...for years". Nor how this
can be considered a bug, since it's clearly documented.

Personally, I prefer either the Perl or PHP implementations, where
you're free to use and modify the element since it's separate from the
loop index. Messing with a loop index is always a Bad Idea.
Interestingly, in Perl changing the loop element changes the original
referenced element, while in PHP the original value is unchanged.

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


Spotlight indexing: feature request proposal

2005-07-31 Thread Joel Guillod
As far as I understand the indexing of stacks by Spotlight (MacOSX),  
scripts only are used as the text to index. Of course this is of very  
high value for developers and I am willing this feature. But on the  
other side it could impair security if the password of the stack has  
not been set (what I never do, at least during development cycle).  
Also indexing the content of fields would be also very usefull (even  
more than scripts for content management stacks). Do you agree? I am  
considering to fill a request feature in bz and would like to get  
user's feedback first. So please tell me more what you think about  
this idea:


I propose the addition of two new stack properties for telling  
Spotlight how to index stacks:
- the  of this stack: if true the scripts of the  
stack is indexed by Spotlight. If false, no script indexing is done  
for the stack.
- the  of this stack: if true the content of fields  
and titles of objects are indexed by Spotlight. If false, objects  
content indexing is not done for the stack.
By default both properties are true (i.e. when the stack is created).  
When creating a substack, its spotlight properties are default to the  
value of its mainstack but they can be changed independantly from the  
mainstack.


Nice to read your coming comments.

jg
___
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: Help, what am I doing wrong???

2005-07-31 Thread Mark Wieder
Jon-

Sunday, July 31, 2005, 5:59:01 AM, you wrote:

J> It has been considered a bug, and flagged for the programmer,  in Delphi
J> for years.  I don't see how it can be considered anything else. Now as
J> to whether it is a bug that is reported in Rev with an error message,
J> that is a different story.

I wasn't aware that Delphi even *had* a "for each" element construct,
but then I haven't kept up with Delphi since v6.0 or so. Now that I've
googled it, I see that Borland added foreach support to Delphi 2005.
The documentation, though, clearly states that the loop indices are
provided as read-only references only and cannot be modified. Works
the same way in C#, in case you're interested.

Since this is a brand-new addition to Delphi, I'm not sure what you're
referring to in "has been considered a bug...for years". Nor how this
can be considered a bug, since it's clearly documented.

Personally, I prefer either the Perl or PHP implementations, where
you're free to use and modify the element since it's separate from the
loop index. Messing with a loop index is always a Bad Idea.
Interestingly, in Perl changing the loop element changes the original
referenced element, while in PHP the original value is unchanged.

-- 
-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: ANN: Sudoku Assistant

2005-07-31 Thread Alex Tweedly

Jim Hurley wrote:



 Thanks for the puzzle. Lots of fun. Dell Crosswords has a full page of
 these every month, though none as tough a your last. They generally
 are deterministic all the way to the end. Your number four requires
 assuming a solution at one point near the end and discovering a
 contradiction if the guess was wrong--proof by contradiction.


 Alex,

No, it doesn't require that. There's a perfectly deterministic technique
that can solve puzzle #4 - I'll append a brief description of  it to the
end of this message - but beware it uses puzzle #4 to demonstrate it, so
don't read all the way to the end unless you want to read that ...



 I used the wrong word when I said "deterministic." What I should have 
said was that puzzle 4 requires a *two* stage decision making process. 
In the simpler puzzles at each step there is always one square in 
which there is obviously only one possibility--a one stage decision 
making process.


In the fourth puzzle I reach a point where there is no square which 
would allow only one character. But if I put one character in this 
square then I will run into a contraction at a later stage. But if I 
put another character into the square, I will be able to obtain a 
unique solution. As you say, this is still a deterministic solution, 
but a two stage deterministic process. Sorry for the poor description 
of what I was trying to say.


But my (perhaps hard to follow) description at the tail end of the other 
email shows that you don't need to try one then the other - you can use 
the knowledge from two squares to eliminate a possibility from a third 
square. It's kind of a two-stage deduction - but you don't need to try 
one thing and then another.



 > (I must confess that the labels make it more difficult for me--harder


 to see what is filled in and what isn't.)


Sorry Jim I'm not sure I follow - do you mean you'd prefer to have blank
squares for every space that has not yet been determined (rather than
the set of possible values) ?   That would seem to me much less helpful
- but I'll try it and see how it looks.




Yes. In fact I copied the puzzle to Photoshop  and erased all the 
labels and printed the image. Maybe this would be a possible preference?


Rather than a preference, I made it a button "Hide uncompleted" or "Show 
uncompleted" so you can toggle between the two modes while working 
through a puzzle.


Now available on RevOnline (ver 1.2)




 I am interested in what algorithm is used under the "Auto" button.


 >
Code is all there for you to look at :-)
But all it does is look at each square in turn, and if it already knows
that there is only a single value possible, then it removes that value
from the rest of the square's row,col and 3x3 square.   It could repeat
that scan (very occasionally you can find a case where a square has been
already examined while multiple values were possible, and which reduces
to a single one, and is required to complete the puzzle) - but it


doesn't even do that.

I'll have to look at this again. It doesn't seem to complete all one 
stage decisions. For example, after completing the Auto, it is clear 
that the box in the second row, fifth column must be a 1. I suspect my 
problem is that I don't understand the significance of the labels. 
Life is full of things I don't understand.


It doesn't do all "one-stage" decisions. In each square it has a list of 
possible values - so for a blank puzzle, each square can still have any 
of the 9 digits. When you load a puzzle, some squares are changed to 
have a single digit. Clicking on such a square (or specifying a value 
for another square) causes the specified digit to be removed from all 
"peers" of the square (i.e. in the same row, col or 3x3). Auto simply 
applies that to all squares in turn.


The fact that square 5,2 "must" be a one (because there are no other 
squares in its 3x3 which still have one as a possible value) would 
require deduction - and my idea for the assistant was that it can do the 
"mechanical" part for you, and leave the user to do the deductions. 

Anyway - that's *why* it doesn't do that particular square for you. 
Would be easy enough to add a button to do that kind of simple deduction 
... be my guest :-)


The scripting for this puzzle isn't great (when I wrote it I didn't 
intend to give it to anyone else, so it's certainly not carefully 
written as I would do for a tutorial, or a product), but it's not 
terrible either. Dive in 




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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.6/59 - Release Date: 27/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


Lack of Feedback [was: OT:ANN:WTF:WOAH Factor]

2005-07-31 Thread Eric Chatonet

Hi Xavier,

Le 30 juil. 05 à 20:55, MisterX a écrit :


the lack of feedback makes me really not happy to
release it...


So I'm going to tell you a tiny story:
Since last February when I open my website, I can count downloads:

. 1912 plugins
. 1571 tutorials
. 194 "patch" stacks
. 363 HC packs

How many feedback mails?
My fingers are enough to count them.
So, take heart!
Lack of feedback (even if it would be welcome: we all need to have  
our heart warmed :-) don't mean anything...


I *love* your maverick mind: keep going!
You are much more useful to this community than you seem to think.
Some bring coding solutions, you bring the spirit.

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: Video tutorials - OS X

2005-07-31 Thread docmann

>Mark wrote:
>Why don't I get video with the Rev OnLine tutorials in OS X 10.4?   
Only audio.

>This has probably been covered... but is there an easy answer?

Don't know if this is any help, but I just installed the Dreamcard trial 
on  my new mac-mini (my first mac!). Even after installing the required 
codec, the first video I tried still would not play. However, shutting 
down and restarting the Dreamcard app solved the problem completely. 
Apparently, the codec is read an initialized by Rev and DC when they 
start up.


..

>Bill wrote:


I noticed that the video tutorials take so long to download when you are >on a 
dial-up connection that sometimes just the sound plays.



The good news here is that the downloaded video is cached on the HD, so 
the next time you need it there isn't a download involved. :)


HTH,
-Doc-
___
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: Flashing numbers added to Number Picker stack.

2005-07-31 Thread Douglas Gilliland
One more question - if it's not asking too much.
Sometimes I want a number, once it is selected, to be taken out of
circulation. Is there a short script to add that will do this? I have
searched all the resources but cannot find anything that explains how
to do this.
Thanks.
Doug Gilliland
Sarasota, FL

On 7/27/05, Douglas Gilliland <[EMAIL PROTECTED]> wrote:
> Jan,
> It works even better than I thought it would.
> Thanks for the quick script - it is greatly appreciated.
> Doug Gilliland
> Sarasota, FL
> 
> 
> On 7/27/05, Jan Schenkel <[EMAIL PROTECTED]> wrote:
> > --- Douglas Gilliland <[EMAIL PROTECTED]> wrote:
> > > I just finished a small stack to select my 9th grade
> > > chemistry
> > > students (sitting at numbered lab tables) at random.
> > > I have 25
> > > students and used the following script to select one
> > > at random, then
> > > speak that number:
> > >
> > > on mouseUp
> > >   put random (25) into field "field1"
> > >  revsetspeechvoice "ralph"
> > >   revspeak field "field1"
> > >   wait 4 sec
> > >   put empty into field "field1"
> > > end mouseUp
> > >
> > > To add a little flair, I would like numbers to
> > > quickly flash on the
> > > screen for one or two seconds before it stops at the
> > > random number.
> > > Looked through the documentation but found nothing.
> > > Any suggestions? I don't need it if it is too
> > > difficult but thought I
> > > would ask. I'm too new to Revolution to know how
> > > much it involves.
> > > Doug Gilliland
> > >
> >
> > Hi Doug,
> >
> > Here's a quick idea:
> > --
> > on mouseUp
> >   ## show some numbers during 2 seconds
> >   repeat 10 times
> > put random (25) into field "field1"
> > wait 200 milliseconds
> >   end repeat
> >   ## now the code you already had
> >   put random (25) into field "field1"
> >   revsetspeechvoice "ralph"
> >   revspeak field "field1"
> >   wait 4 sec
> >   put empty into field "field1"
> > end mouseUp
> > --
> >
> > Hope this helped,
> >
> > Jan Schenkel.
> >
> > Quartam - Tools for Revolution
> > 
> >
> > =
> > "As we grow older, we grow both wiser and more foolish at the same time."  
> > (La Rochefoucauld)
> >
> >
> >
> > 
> > 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: Font question, which Courier?

2005-07-31 Thread Charles Hartman
You're certainly welcome. There are more pitfalls in this vicinity,  
by the way -- that is, if you're trying to change fonts in a stack  
(and especially substacks!) at runtime. I've worked out some more  
script stuff for this if you want it.


Charles


On Jul 31, 2005, at 11:54 AM, [EMAIL PROTECTED] wrote:


Charles,
Thank you.
That was very helpful, especially the script.
Paul Looney


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: ANN: Sudoku Assistant

2005-07-31 Thread Jim Hurley


Message: 14
Date: Sun, 31 Jul 2005 15:13:08 +0100
From: Alex Tweedly <[EMAIL PROTECTED]>
Subject: Re: ANN: Sudoku Assistant
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Jim Hurley wrote:


 Alex,

 Thanks for the puzzle. Lots of fun. Dell Crosswords has a full page of
 these every month, though none as tough a your last. They generally
 are deterministic all the way to the end. Your number four requires
 assuming a solution at one point near the end and discovering a
 contradiction if the guess was wrong--proof by contradiction.


No, it doesn't require that. There's a perfectly deterministic technique
that can solve puzzle #4 - I'll append a brief description of  it to the
end of this message - but beware it uses puzzle #4 to demonstrate it, so
don't read all the way to the end unless you want to read that ...


 I used the wrong word when I said "deterministic." What I should 
have said was that puzzle 4 requires a *two* stage decision making 
process. In the simpler puzzles at each step there is always one 
square in which there is obviously only one possibility--a one stage 
decision making process.


In the fourth puzzle I reach a point where there is no square which 
would allow only one character. But if I put one character in this 
square then I will run into a contraction at a later stage. But if I 
put another character into the square, I will be able to obtain a 
unique solution. As you say, this is still a deterministic solution, 
but a two stage deterministic process. Sorry for the poor description 
of what I was trying to say.



 > (I must confess that the labels make it more difficult for me--harder

 to see what is filled in and what isn't.)


Sorry Jim I'm not sure I follow - do you mean you'd prefer to have blank
squares for every space that has not yet been determined (rather than
the set of possible values) ?   That would seem to me much less helpful
- but I'll try it and see how it looks.



Yes. In fact I copied the puzzle to Photoshop  and erased all the 
labels and printed the image. Maybe this would be a possible 
preference?





 I am interested in what algorithm is used under the "Auto" button.

 >
Code is all there for you to look at :-)
But all it does is look at each square in turn, and if it already knows
that there is only a single value possible, then it removes that value
from the rest of the square's row,col and 3x3 square.   It could repeat
that scan (very occasionally you can find a case where a square has been
already examined while multiple values were possible, and which reduces
to a single one, and is required to complete the puzzle) - but it

doesn't even do that.

I'll have to look at this again. It doesn't seem to complete all one 
stage decisions. For example, after completing the Auto, it is clear 
that the box in the second row, fifth column must be a 1. I suspect 
my problem is that I don't understand the significance of the labels. 
Life is full of things I don't understand.




 > If you also enjoy Cryptogram puzzles, I have one which retrieves 4

 quotes from the web every day and encodes them for your decoding
 pleasure. It is my daily diagnostic tool to reveal the onset of
 senility. You can take a look at:

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

 It's a 450k file. It contains a dictionary for a decoder utility.


Thanks Jim. I'll take a look at that - though I'm more likely to write a
stack to solve them than I am to do it myself.

I have not yet found any "puzzle" that is more challenging or
stimulating that programming.


I think this is what keeps many of  us going.

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: Font question, which Courier?

2005-07-31 Thread simplsol

Charles,
Thank you.
That was very helpful, especially the script.
Paul Looney

-Original Message-
From: Charles Hartman <[EMAIL PROTECTED]>
To: How to use Revolution 
Sent: Sun, 31 Jul 2005 08:58:58 -0400
Subject: Re: Font question, which Courier?

   As far as I've been able to tell, Courier New is more widely 
available than the others. Unfortunately, on Mac -- mine at least -- as 
compared with Courier, Courier New is annoyingly light, as in the 
opposite of bold; it looks pale when you put it beside text in other 
fonts. I ended up using an if-block to choose: 

 
  if "Courier" is among the lines of the fontNames then 
  put "Courier" into tNewMonoFont 
  else 
  put "Courier New" into tNewMonoFont 
  end if 
  . . . 
  set the textFont of someStack to tNewMonoFont 
  . . . 
 
Charles Hartman 
 
 
On Jul 30, 2005, at 11:06 PM, [EMAIL PROTECTED] wrote: 
 
 > Assuming Courier is the only crossplatform monospaced font, > which 
is the 
 > best to use for a crossplatform stack? There is Courier, Courier > 
CE, and 

> Courier New; they all look similar to me. Thanks in advance. 
> Paul Looney 
> ___ 
> use-revolution mailing list 
> [EMAIL PROTECTED]
 > Please visit this url to subscribe, unsubscribe and manage your > 
subscription preferences: 

> http://lists.runrev.com/mailman/listinfo/use-revolution 
> 
 
___ 
use-revolution mailing list 
[EMAIL PROTECTED]
 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: Full justification

2005-07-31 Thread Alex Tweedly

Thomas McGrath III wrote:

This will take care of the extra spaces just create another button and 
put this in it:



on mouseUp
  repeat for each word theword in field "field"
put theword & space after field "flush"
  end repeat
  beep
end mouseUp

Won't that get confused by CRs and TABs (which are word boundary 
characters) and double-quoted strings (which are a single word, even if 
they contain spaces) ?


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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.6/59 - Release Date: 27/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: Full justification

2005-07-31 Thread Thomas McGrath III
This will take care of the extra spaces just create another button and 
put this in it:



on mouseUp
  repeat for each word theword in field "field"
put theword & space after field "flush"
  end repeat
  beep
end mouseUp

Then copy the text from field "field"


Tom

On Jul 31, 2005, at 12:17 AM, Alejandro Tejada wrote:


Hi Jim,

on Sat, 30 Jul 2005
Jim Hurley wrote:


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


Jim, this is an excellent example of the problems
that were pointed in this list, while trying to
full justify a text field.

If i copy this justified text field, all the extras
spaces are carried with the text. :-o

A handler or function that clean up the text in the
clipboard, before pasting it, could make this
justify handler transparent to the users. ;-)

Thanks a lot for posting this stack!
Have a nice weekend

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





Macintosh PowerBook G-4 OSX 10.3.9, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 
2.6



Advanced Media Group
Eagle Works Art & Sculpture
Semantic Compaction Systems
Prentke Romich Company
Prentke Romich International
SCIconics, LLC
Artist
Thomas J McGrath III
[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: Full justification

2005-07-31 Thread Jim Hurley

P.S. To my previous post.

Re: Restoring original text

It would be a trivial task to restore the original text by deleting 
all multiple space sequences and replace them with a single 
space--unless the original already contained desirable, multiple 
spaces.

___
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: Full justification

2005-07-31 Thread Jim Hurley


Message: 11
Date: Sat, 30 Jul 2005 22:27:43 -0500
From: Ken Ray <[EMAIL PROTECTED]>
Subject: Re: Full justification
To: Use Revolution List 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;   charset="US-ASCII"

On 7/30/05 9:06 AM, "Jim Hurley" <[EMAIL PROTECTED]> wrote:


 Perhaps another way to approach the problem of full justification for
 non-proportional fonts is to insert spaces whose width is set to 1
 point.

 It turns out that the formatted width of the 2 point space character,
 with the points size set to 2 pts, (at least in Times font)  is 1
 point. (Pardon the dual use of the word "point.")

 If the width needed to fill in the line, so that the text is also
 right-justified, is say N points, then one might distribute N spaces
 between intervening words (each insert is one point in width.)

 (I ran into one of the few instances where recursion is truly
 useful--beside fractals and the Tower of Hanoi.)

 To see this try (in the message box):

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


Nicely done, Jim! Now is there was some way to determine the number of
points needed based on different fonts and sizes, we could have a general
purpose justification routine!


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




Ken,

Thanks.

I am having trouble getting Run Rev to change the textfont by script. 
If one types into the msg box: "set the textfont of field 1 to 
"courier", nothing happens. Maybe it is necessary to first "select" 
the text?


I would like to be able to script:

put the textfont of field 1 into tFont
set the textfont of field 2 to tFont

But that doesn't work.

In all those instances where I have been able to get the text fonts 
the same for the two fields, the justification algorithm works just 
fine. I am justifiably pleased.


But I need to find a faithful way to get the two fields to agree. I 
am leery of making changes to the original text and applying the 
results to that field. The text is changed with the added (one point 
textsize) spaces. Maybe I'll put  the original text into a custom 
property. Maybe I'll ask the script to clone the original field.


Jim





--

Message: 12
Date: Sat, 30 Jul 2005 21:17:55 -0700 (PDT)
From: Alejandro Tejada <[EMAIL PROTECTED]>
Subject: Re: Full justification
To: use-revolution@lists.runrev.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Hi Jim,

on Sat, 30 Jul 2005
Jim Hurley wrote:


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


Jim, this is an excellent example of the problems
that were pointed in this list, while trying to
full justify a text field.

If i copy this justified text field, all the extras
spaces are carried with the text. :-o

A handler or function that clean up the text in the
clipboard, before pasting it, could make this
justify handler transparent to the users. ;-)

Thanks a lot for posting this stack!
Have a nice weekend

al




Al,

The problem with copy and paste is that it doesn't faithfully retain 
all the text properties. It would be best to apply the algorithm 
directly to the field of interest rather than paste from another 
utility field.


And the text is changed with my algorithm--extra spaces are inserted 
and they have to retain their text size, in my case that is 3, in 
order to preserve full justification.


I think what is necessary is a plug-in with a drag and drop facility. 
It should also take the original text, without the added spaces, and 
put it into a custom property so that you would be able to retrieve 
the original text if things didn't work out.  You would need that for 
protection.


Right now I am having trouble with Rev's textfont function.

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


[ANN] Managing Answer Dialogs Tutorial Enhanced

2005-07-31 Thread Eric Chatonet

Hi all,

Stephen Barncard kindly requested that the HTML code builder which is  
included in the "Managing Answer Dialogs" tutorial might handle not  
only text styles but fonts and sizes too.
In addition, he pointed out that the code builder did not handle  
prompts where quotes were inserted.
He was so right that you will see an orange dot before this tutorial  
in Tutorials Picker list: this means that the tutorial has been  
updated since your last visit :-)


[REM] Tutorials Picker is available for free from my website.

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: ANN: Sudoku Assistant

2005-07-31 Thread Alex Tweedly

Jim Hurley wrote:


Alex,

Thanks for the puzzle. Lots of fun. Dell Crosswords has a full page of 
these every month, though none as tough a your last. They generally 
are deterministic all the way to the end. Your number four requires 
assuming a solution at one point near the end and discovering a 
contradiction if the guess was wrong--proof by contradiction.


No, it doesn't require that. There's a perfectly deterministic technique 
that can solve puzzle #4 - I'll append a brief description of  it to the 
end of this message - but beware it uses puzzle #4 to demonstrate it, so 
don't read all the way to the end unless you want to read that ...


(I must confess that the labels make it more difficult for me--harder 
to see what is filled in and what isn't.)


Sorry Jim I'm not sure I follow - do you mean you'd prefer to have blank 
squares for every space that has not yet been determined (rather than 
the set of possible values) ?   That would seem to me much less helpful 
- but I'll try it and see how it looks.



I am interested in what algorithm is used under the "Auto" button.


Code is all there for you to look at :-)
But all it does is look at each square in turn, and if it already knows 
that there is only a single value possible, then it removes that value 
from the rest of the square's row,col and 3x3 square.   It could repeat 
that scan (very occasionally you can find a case where a square has been 
already examined while multiple values were possible, and which reduces 
to a single one, and is required to complete the puzzle) - but it 
doesn't even do that.


If you also enjoy Cryptogram puzzles, I have one which retrieves 4 
quotes from the web every day and encodes them for your decoding 
pleasure. It is my daily diagnostic tool to reveal the onset of 
senility. You can take a look at:


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


It's a 450k file. It contains a dictionary for a decoder utility.


Thanks Jim. I'll take a look at that - though I'm more likely to write a 
stack to solve them than I am to do it myself.


I have not yet found any "puzzle" that is more challenging or 
stimulating that programming.








scroll beyond here only if you want to read solving techniques  








In Puzzle #4, assuming you've hit the "Auto" button (or worked through 
yourself to the point where all single-valued squares have been used to 
eliminate their peers), you are left with a number of possibilities.


Look at squares 8,7 and 8,9. They both contain only two possibilities 1 
and 6. And they are both in the same column.
One of them must contain one of the two values, and the other must 
contain the other value.


Therefore no other square in column 8 can contain either 1 or 6.

This allows us to (deterministically - no guessing) eliminate "6" from 
the set of possible values for square 8,2 - leaving only a single value 
of 8.   Fill that in and you're done.


There is another such "common pair" in squares 9,2 and 9,3 - which 
allows you to eliminate the value 5 from 9,7  - but there are still 
multiple values left.


However - this allows yet another technique.  The bottom right square 
now has only two places were the 5 can go - 7,7 and 7,9; since they are 
both in col 7, we know that the 5 in col 7 is in one or other of those 
places - i.e. it is in the lower, right 3x3 square. Therefore, it can be 
eliminated from 7,2 - leaving only 6 or 8 to go there.


That is now a common pair 7,2 and 8,2 have either 6 or 8.  So eliminate 
the 8 from 6,2 leaving only 5 to go there, and you make a substantial 
step forward. Although you're not yet done, it's straight forward from 
then on.


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



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.6/59 - Release Date: 27/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


Screen Resolution

2005-07-31 Thread Yoel
Hi everyone:

Can anybody tell me how can I change the screen resolution through a script?

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: Help, what am I doing wrong???

2005-07-31 Thread Jon
It has been considered a bug, and flagged for the programmer,  in Delphi 
for years.  I don't see how it can be considered anything else.  Now as 
to whether it is a bug that is reported in Rev with an error message, 
that is a different story.


:)

Jon


Mark Wieder wrote:


Dennis-

Saturday, July 30, 2005, 7:24:58 PM, you wrote:

DB> I would really like to get a real error message since it does not do
DB> what you expect from reading the code.  How many newbies do we have
DB> to trip up before we erect a stop sign at that intersection?

DB> Should I BZ it?

I'm not sure it's actually a bug, but it's worth BZing just to keep it
on the rev team's radar, since it's a stumbling block that everyone
runs across at some time or other.

 


___
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: Font question, which Courier?

2005-07-31 Thread Charles Hartman
As far as I've been able to tell, Courier New is more widely  
available than the others. Unfortunately, on Mac -- mine at least --  
as compared with Courier, Courier New is annoyingly light, as in the  
opposite of bold; it looks pale when you put it beside text in other  
fonts. I ended up using an if-block to choose:


  if "Courier" is among the lines of the fontNames then
put "Courier" into tNewMonoFont
  else
put "Courier New" into tNewMonoFont
  end if
  . . .
  set the textFont of someStack to tNewMonoFont
  . . .

Charles Hartman



On Jul 30, 2005, at 11:06 PM, [EMAIL PROTECTED] wrote:

 Assuming Courier is the only crossplatform monospaced font,  
which is the
best to use for a crossplatform stack? There is Courier, Courier  
CE, and

Courier New; they all look similar to me. Thanks in advance.
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


FileInfo function (was: Getting the type code of a file under OSX)

2005-07-31 Thread FlexibleLearning
Another one for the Scripter's Scrapbook! On the shoulders of Ken's fine  
stsFileInfo that retrieves file and folder attributes in an array format, I 
have  
below refined it to include any required attribute/s all in one command, in 
any  combination and in any any order. The returned values are presented in the 
 same order as requested.
 
Example:
 
put  flcFileInfo(myFilePath,"CreatorType","size","modified","permissions")
 
It also handles the change in the detailedFiles function, where  an 
unsupported item is now 0 instead of empty (for example the 'BackUp Date'  
under 
Windows). It is, however, backwards compatibile with the earlier  detailedFiles 
version.

Watch out for line-wrapping!
 
Optimising welcome.
 
/H
The Scripter's Scrapbook
www.FlexibleLearning/ssbk.htm
 
 

--| FUNCTION: flcFileInfo
--|
--| Author: Hugh Senior (based on  stsFileInfo by Ken Ray)
--| Version: 1.0
--| Created: 30-JUL-05
--|  Last Mod: --
--| Requires: Self-contained function handler for Revolution and  MetaCard
--| Summary: Retrieves the requested file/folder information, one  per line 
in the same order as requested
--| Format: flcFileInfo(param1  [,param2,param3...])
--| Parameters:
--|param 1:  file/folder path
--|param 2 to  n:
--|EITHER: "full" or omitted  for a full, tab-delimted list
--| OR: Any combination of these 12 specific attributes in any  
order...
--|FilePath, FileName, DataSize, ResourceSize, Size, Created, 
Modified, Accessed,  BackUp, OwnerID, GroupID, Permissions, CreatorType
--|
--|  Examples:
--|get flcFileInfo(myFilePath) - Returns an  itemised list
--|get flcFileInfo(myFilePath,"full") -  Returns an itemised list
--|get  flcFileInfo(myFilePath,"FilePath","created","modified","accessed")
--| get  flcFileInfo(myFilePath,"DataSize","ResourceSize","size")
--| get  
flcFileInfo(myFilePath,"CreatorType","size","modified","permissions")
--|
--|  Error handling:
--|File/folder not found - The returned  value is empty
--!Attribute not supported - The returned  attribute value is "not 
supported"
--|Attribute not  recognized - The returned attribute value is "not  
recognized"

--

function  flcFileInfo
put param(1) into pFilePath
put  
"FilePath,FileName,DataSize,ResourceSize,Size,Created,Modified,Accessed,BackUp,OwnerID,GroupID,Permissions,CreatorType"
  into tAttributeList
put there is a file pFilePath into Fflag
if (NOT Fflag AND there is NOT a folder pFilePath) then return ""
set  the itemDel to "/"
put urlEncode(last item of pFilePath) into  tItem
delete last item of pFilePath
put the directory into  tOldDir
set the directory to pFilePath  
if Fflag then  put the detailed files into tDetailedList
else put the detailed  folders into tDetailedList  
set the directory to  tOldDir
set the itemDel to ","
put  lineOffset(cr&tItem&",",cr&tDetailedList) into tLine
put  line tLine of tDetailedList into tDetailedInfo
replace "," with tab in  tDetailedInfo
set the itemDel to tab
put tDetailedInfo into  tFileA["full"]
put urlDecode(item 1 of tDetailedInfo) into  tFileA["fileName"]
put pFilePath&"/"&tFileA["fileName"] into  tFileA["filePath"]
put (item 2 of tDetailedInfo) into  tFileA["DataSize"]
if the platform is "MacOS" then put (item 3 of  tDetailedInfo) into 
tFileA["ResourceSize"]
else put "" into  tFileA["ResourceSize"]
put (item 2 of tDetailedInfo) + (item 3 of  tDetailedInfo) into tFileA["size"]
put  "Created,Modified,Accessed,BackUp" into tDates
replace "," with tab in  tDates
put the twelvehourtime into tTHT
set the  twelvehourtime to FALSE
repeat with x = 4 to 7
put item x of tDetailedInfo into tSecs
if tSecs=0 then put  "not supported" into tSecs
if tSecs is a number then  convert tSecs to long system date and long time
put tSecs  into tFileA[(item x-3 of tDates)]
end repeat
set the  twelvehourtime to tTHT
if (item 8 of tDetailedInfo) <>0 then put  (item 8 of tDetailedInfo) into 
tFileA["OwnerID"]
else put "" into  tFileA["OwnerID"]
if (item 9 of tDetailedInfo) <>0 then put  (item 9 of tDetailedInfo) into 
tFileA["GroupID"]
else put "" into  tFileA["GroupID"]
put (item 10 of tDetailedInfo) && "octal"  &","&&baseConvert(item 10 of 
tDetailedInfo,8,10)&&"decimal"  into tFileA["permissions"] # octal && decimal
put (item 11 of  tDetailedInfo) into tFileA["creatorType"]
set the itemDel to  COMMA
if (the paramCount=1) OR (param(2)="full") OR (param(2)="")  then
repeat with n=1 to num of items of  tAttributeList
put item n of tAttributeList  into L
if tFileA[L]="" then put "not  supported" into tFileA[L]
put L &TAB&  tFileA[L] into line (num of lines of tStdOut)+1 of tStdOut
end repeat
else
repeat with n=2 to the  paramCount
get  tFileA[param(n)]
if param(n) is not in  tAttributeList then put "not recognized" into  it
else if it="" then put "not supported" into  it
put it into line (num of lines of  tStdOut)+1 of tStdOut
end repeat
end  if
if tStdOut="" then return "no

Re: Windows Registry Again

2005-07-31 Thread Ken Ray
On 7/30/05 7:32 PM, "Mike" <[EMAIL PROTECTED]> wrote:

> Hi Ken
> Thats true that would work, I was hoping to let Rev do the work without
> running an extra shell executable. I can't seem to figure a switch to add to
> the end of query to get that info into tpCheck since everything I need to
> get is below \Parameters.

There's no switch to figure out, unfortunately. You need to know the
specific key you want, or you can get the (Default) key by passing the path
with a trailing "\". That's it... Rev doesn't have a built in way to get a
list of the keys that existing inside another key. Hence the shell
executable...

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


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


Re: Getting the type code of a file under OSX

2005-07-31 Thread Ken Ray
On 7/31/05 2:36 AM, "Joel Guillod" <[EMAIL PROTECTED]> wrote:

> Ken,
> 
> Why do you bother with the second parameter pType? Just drop it and
> change the following from:

Thanks, Joel... normally I like to be explicit so that when I'm reading my
code later on, I know what's going on, although in OS X and WIndows now
there are normally file extensions which would indicate whether it's a file
or folder.

Good suggestion!


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


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


ANN: MoireXVolume3 2.0 beta

2005-07-31 Thread MisterX
hey, you're welcome to join the paradimensional scripting challenge :)
but what does uranus have to do here? ;)

I've already converted the graphics to image rendering instead of creating a
zillion graphics... big improvement!  

Added color variance too.

I've updated the file on MonsieurX and removed the one from RevOnline (just
impossible to upload stuff to it - 50 tries and still can't grab a
socket!)...

Other than the missing help for the 2.0 features and the latent 1.0 tag on
the about box, if no one sees any errors... here the near final show...

I left a nice render that took quite a while to do at 500 points...

Download is here
http://monsieurx.com/modules.php?name=News&file=article&sid=189
around 200KBs

cheers
Xav

> -Original Message-
> From: Chipp Walters [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, July 31, 2005 09:37
> To: [EMAIL PROTECTED]; How to use Revolution
> Subject: Re: OT:ANN:WTF:WOAH Factor
> 
> OMG, WTF, AOL!! ROLF 
> X,
> 
> I'm thinking adding an inverse chromatigadget combined with a 
> single instance of gaussian uranus gofaster could make for 
> even more fabutastic imagidisplay.
> 
> :-)
> 
> 
> -chipp
> 

___
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: OT:ANN:WTF:WOAH Factor

2005-07-31 Thread Chipp Walters

OMG, WTF, AOL!! ROLF 
X,

I'm thinking adding an inverse chromatigadget combined with a single 
instance of gaussian uranus gofaster could make for even more fabutastic 
imagidisplay.


:-)


-chipp
___
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: Getting the type code of a file under OSX

2005-07-31 Thread Joel Guillod

Ken,

Why do you bother with the second parameter pType? Just drop it and  
change the following from:


  put urlEncode(last item of pFilePath) into tItem
  delete last item of pFilePath
  put the directory into tOldDir
  set the directory to pFilePath
  if pType = "file" then
put the detailed files into tDetailedList
  else
put the detailed folders into tDetailedList
  end if

to:

  put there is a file pFilePath into tIsFile -- new script line
  put urlEncode(last item of pFilePath) into tItem
  delete last item of pFilePath
  put the directory into tOldDir
  set the directory to pFilePath
  if tIsFile then -- modified script line
put the detailed files into tDetailedList
  else
put the detailed folders into tDetailedList
  end if

then the first line of your function is simply:

   function stsFileInfo pFilePath

and that's it!

Cheers,

Joel



[...]

on mouseUp
  answer file "Get a file:"
  if it <> "" then
put stsFileInfo(it,"file") into tDocInfoA
put tDocInfoA["creatorType"]
  end if
end mouseUp

If I selected a Word document, this would return "MSWDW8BN".

--
--| FUNCTION: stsFileInfo
--|
--| Author:   Ken Ray
--| Version:  1.0
--| Created:  3/4/04
--| Last Mod: --
--| Requires: --
--|
--| Retrieves the file/folder information on a specific file/folder  
in a

parseable array
--

function stsFileInfo pFilePath,pType
  -- supports keys of
"full,fileName,dataSize,resSize,createDate,modDate,accessDate,BUdate,o 
wnerID

,groupID,permissions,creatorType,Size"
  set the itemDel to "/"
  put urlEncode(last item of pFilePath) into tItem
  delete last item of pFilePath
  put the directory into tOldDir
  set the directory to pFilePath
  if pType = "file" then
put the detailed files into tDetailedList
  else
put the detailed folders into tDetailedList
  end if
[...]

___
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


OOPs - playCmdAgent

2005-07-31 Thread Erik Hansen

this was supposed to go to 

> i am getting "can't find handler" for
> playCmdAgent.  playCmdAgent.exe is in the same
> folder. Quicktime was just downloaded and is in
> a Quicktime for Windows98SE folder. Rev 2.1.
> all soon to be updated.
> 
> i want to use this with my 16 track job
> with send in time to get the harmonies right.
> 
> Erik Hansen
> 
> [EMAIL PROTECTED]   
> http://www.erikhansen.org
> 
>
__
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.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
> 
> 


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



__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 

___
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: Load URL doesn't send message

2005-07-31 Thread Erik Hansen


--- "J. Landman Gay" <[EMAIL PROTECTED]>
wrote:

hello,

i am getting "can't find handler" for 
playCmdAgent.  playCmdAgent.exe is in the same
folder. Quicktime was just downloaded and is in
a Quicktime for Windows98SE folder. Rev 2.1.
all soon to be updated.

i want to use this with my 16 track job
with send in time to get the harmonies right.

Erik Hansen

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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