Re: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Peter Alcibiades

"In Ubuntu, you don't do anything - the OS checks for updates and prompts the
user as needed, an experience very much like OS X."

Yes, of course standard Debian has an update manager which pops up, if you
want it to work that way.  That's how you will get it out of the box.  I
don't, I want to update what and when I want, not have it just happen. 
Richard, where do you think Ubuntu's update manager comes from???  Mandriva
has an update manager too, which I tell people also not to use, but to do
updates consciously when they are sure they want to.  

The difference between Debian and Ubuntu is what gets updated, and the
release schedule.  You are better off, for purposes of stability, with a two
year major release schedule and updates of the existing release between
them, than you are with Dozy Dragon coming out now and six months later
being followed by Loopy Leonard.  This is much closer to how both Apple and
MS work.

My point about the Rev support is this.  I don't know exactly what you could
do to STOP Rev running on Mandriva or the Slackware derivatives.  Its a
crazy idea.  It runs on them by default.  Its not that Rev has a problem
with some distros, what works on one works on all.  Its the generic level of
feature support that is the problem.


-- 
View this message in context: 
http://n4.nabble.com/Rev-for-Linux-was-Re-iPadding-around-tp1460131p1460886.html
Sent from the Revolution - User mailing list archive at Nabble.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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Richmond Mathewson

On 03/02/2010 10:33, Peter Alcibiades wrote:

"In Ubuntu, you don't do anything - the OS checks for updates and prompts the
user as needed, an experience very much like OS X."

Yes, of course standard Debian has an update manager which pops up, if you
want it to work that way.  That's how you will get it out of the box.  I
don't, I want to update what and when I want, not have it just happen.
Richard, where do you think Ubuntu's update manager comes from???  Mandriva
has an update manager too, which I tell people also not to use, but to do
updates consciously when they are sure they want to.

The difference between Debian and Ubuntu is what gets updated, and the
release schedule.  You are better off, for purposes of stability, with a two
year major release schedule and updates of the existing release between
them, than you are with Dozy Dragon coming out now and six months later
being followed by Loopy Leonard.

Those silly names are extremely discouraging, that I will give you . . .  :)

Frankly it is very cheap.


  This is much closer to how both Apple and
MS work.

My point about the Rev support is this.  I don't know exactly what you could
do to STOP Rev running on Mandriva or the Slackware derivatives.  Its a
crazy idea.  It runs on them by default.  Its not that Rev has a problem
with some distros, what works on one works on all.  Its the generic level of
feature support that is the problem.


   


___
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


Polygonflow: clockwise or counter-clockwise?

2010-02-03 Thread Michael Kristensen

HI THERE

Can you figure a smart way to check if the flow of a polygon goes  
clockwise or counter-clockwise?



Thanks
Michael
___
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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Bernard Devlin
On Wed, Feb 3, 2010 at 8:33 AM, Peter Alcibiades
 wrote:
> My point about the Rev support is this.  I don't know exactly what you could
> do to STOP Rev running on Mandriva or the Slackware derivatives.  Its a
> crazy idea.  It runs on them by default.  Its not that Rev has a problem
> with some distros, what works on one works on all.  Its the generic level of
> feature support that is the problem.

Sorry to disagree Peter, It is not just at the generic level where
there are problems.  I am assuming by the generic level you mean the
way that Rev on Linux is treated like the unloved stepchild of Windows
and OS X (developer previews meant to flush out bugs only being
released for OS X and Windows, the lack of features like revBrowser,
persistent bugs in things like revPrintField, etc).

But there are problems with distributions other than Ubuntu/Debian.
Take for example this problem reported by me concerning Mandriva (and
as mentioned by Runrev in the comments, also occurring on Suse):
http://quality.runrev.com/qacenter/show_bug.cgi?id=8513 .  And someone
was asking in the forums recently about his issues with getting Rev to
run on Mandriva -- he couldn't even get it to start (and from previous
conversations I've had with him, he was no newbie).

There are several other issues I've seen where a problem would appear
in one version of Linux, but be absent in another.  Some of them have
been reported by me in the RQCC over the years whilst I've been trying
to get Rev running on Linux.

This is why I think it is important that there is feature parity AND
at least one distribution where Rev is known to work fully.  I can see
myself how much time would be consumed cross-testing on different
distributions.  Ubuntu has not been my preferred choice over the
years, but if that is the distro they choose to support (and support
fully) then I can live with that.

If Runrev can offer a compelling development tool on at least one
version of Linux it should lead to an increased demand for Rev on
Linux.  Further down the line other distros can be added to the list
of 'fully supported' distributions.

Bernard
___
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: Links to programs in Windows?

2010-02-03 Thread Mark Schonewille

Hi Florian and Kresten,

You give some interesting hints, Florian, but it can't be done by  
RunRev as far as I know. One needs to do this with VBScript for  
instance. One should read out the App Paths registry key and cycle  
through all entries under the Software key. Because Revolution can  
only read data and no nodes, it can't be done. I have started working  
on a simple command line solution with VBScript, but I need to finish  
other projects first.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Try the new URL shortening service http://qurl.tk

Op 2 feb 2010, om 19:45 heeft Florian von Walter het volgende  
geschreven:



Kresten,

it is not sufficient to search through "C:\Documents and Settings\All
Users\Start Menu\Programs".

Many program links are created under "C:\Documents and
Settings\\Start Menu" and "C:\Documents and Settings\ 
\Start

Menu\Programs".
Also "C:\Documents and Settings" doesn't always have to be there. This
can change when a power user moves user profiles away from the  
standard

directory.
It can also change between Windows versions. It changed with Windows 7
where "C:\Documents and Settings" doesn't exist anymore. It is now at
"C:\Users". "C:\Documents and Settings" under Windows 7 is just a link
to "C:\Users" now.



___
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 data from a secure web page

2010-02-03 Thread Bernard Devlin
On Wed, Feb 3, 2010 at 12:01 AM, Sarah Reichelt
 wrote:
> revBrowser allows me to get the login page, enter my details and
> login, then get the html source so I can find the usage data I need,
> but this is only a useful technique if I have a way to submit a form
> automatically from a revBrowser.
>
> So does anyone have a way of getting data from a page like this?

Sarah,

it could be an issue with SSL certificates.  I don't know if they are
using a self-generated cert that you chose to accept in your browser
some time ago (unlikely), or maybe they have a cert that came from a
source that is not recognized by Rev.

You could try switching off SSL certificate checking using this rev command:

libUrlSetSSLVerification false

before making your URL call in revTalk.  That revBrowser works might
suggest this is the problem.  I imagine revBrowser makes any http call
via the IE/Safari plugin, thus relying on their SSL handling.

If this doesn't make any difference, then it looks like they are using
some other kind of authorization than Basic.  Actually you can test
the Basic Authorization issue by loading this in your normal browser
(and seeing if you get into the page you want):

https://username:passw...@memberservices.optuszoo.com.au/myusage/

That will show whether or not Basic Authorization is acceptable.

Hopefully this enables you to identify where the problem lies.

Regards, Bernard
___
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


Windows 'run as administrator' property of standalone.

2010-02-03 Thread David Glasgow
Whilst trying to solve a problem of a customer, I noticed that on Vista, a 
standalone can have a 'run as administrator' property set, which presumably 
does what it says on the tin.  My recollection is that Pre Vista this was a 
property which could be set on a shortcut, but not the standalone itself.

I was wondering whether setting this before distribution might reduce the 
occasional permissions problems which arise.  I was also slightly worried that 
user levels can apparently be so readily overridden by an executable, and also 
that there may be unforeseen (by me) adverse consequences if I set this flag 
before distribution.

So, should I or shouldn't I?

David Glasgow

___
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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread viktoras d.
what about creating our own Debian based Linux distribution?.. We would 
give it a name of Revolinux with most of the system management utilities 
(or GUIs for these) written in RevTalk, its own software repositories. 
This would provide a lot of opportunities and motivation to test and 
polish Revolution on Linux. Revolution engine could also be an integral 
part of the distribution, well, the paid version of it ;-). And it could 
be released with integrated and pre-configured onRev server as well.


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


How do I resize a group when using 'grab'?

2010-02-03 Thread Hugh Senior
How do I resize a group when I 'grab' a control in it so the group rect
automatically expands/contracts?

I'm sure I have done this before, but cannot recall how!

/H

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


Re: Getting data from a secure web page

2010-02-03 Thread Dave Cragg
Sarah

Not quite sure what you're wanting to do. Do you just want to get the html page 
normally returned after login from within a Rev script?

If so, does this work?

on mouseUp
  libUrlSetSSLVerification false ## SEE BELOW 1
   put "https://memberservices.optuszoo.com.au/login/"; into tUrl
   put "Action=login&username=abc&password=abc" into tPostData ##SEE BELOW 2
   
   post tPostData to url tUrl
   put it into field 1
   if the result <> empty then
  answer the result
   end if
end mouseUp

Point 1
libUrlSetSSLVerification false does as Bernard says, and no check is made of 
the certificate. (But data is still sent encrypted) Better to set the 
sslCertificates to a suitable file if you have one.

Point 2
Change the "abc" for username and password to the correct values. (URLEncode if 
they contain funny characters or spaces)

When I tried it, it returned the login page again but with the "Incorrect 
username/password." text included, which suggests it might be doing something 
right. 

Good luck!
Dave

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


Re: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Richmond Mathewson

On 03/02/2010 12:17, viktoras d. wrote:
what about creating our own Debian based Linux distribution?.. We 
would give it a name of Revolinux with most of the system management 
utilities (or GUIs for these) written in RevTalk, its own software 
repositories. This would provide a lot of opportunities and motivation 
to test and polish Revolution on Linux. Revolution engine could also 
be an integral part of the distribution, well, the paid version of it 
;-). And it could be released with integrated and pre-configured onRev 
server as well.


that's a wonderful idea! And, like most wonderful ideas will "die a 
death" for

2 very simple reasons:

1. Most people have enough work on their plate already.

2. "Revolinux" would be fantastic for development purposes; but I cannot see
end-users installing it 'just' to run somebody's standalone; can you ?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do I resize a group when using 'grab'?

2010-02-03 Thread Richmond Mathewson

On 03/02/2010 12:34, Hugh Senior wrote:

How do I resize a group when I 'grab' a control in it so the group rect
automatically expands/contracts?

I'm sure I have done this before, but cannot recall how!

/H

   

Wow! I am naive and wishful; I tried this script in a group:

on mouseDown
   grab me
end mouseDown

on grab
   resize me
end grab

and it bombed!  Shame really.
___
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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread viktoras d.

I agree :-), still

a) is also valid for developers of any other existing Linux distribution 
- given enough motivation, people manage to cope with their plates;


b) if onRev server is included, then it is not limited to development, 
but can also be deployed as a server (you know LAMP, so this could be 
LAMR or even RAMR ;-) ).


Viktoras

Richmond Mathewson wrote:

On 03/02/2010 12:17, viktoras d. wrote:
what about creating our own Debian based Linux distribution?.. We 
would give it a name of Revolinux with most of the system management 
utilities (or GUIs for these) written in RevTalk, its own software 
repositories. This would provide a lot of opportunities and 
motivation to test and polish Revolution on Linux. Revolution engine 
could also be an integral part of the distribution, well, the paid 
version of it ;-). And it could be released with integrated and 
pre-configured onRev server as well.


that's a wonderful idea! And, like most wonderful ideas will "die a 
death" for

2 very simple reasons:

1. Most people have enough work on their plate already.

2. "Revolinux" would be fantastic for development purposes; but I 
cannot see
end-users installing it 'just' to run somebody's standalone; can 
you ?

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

http://lists.runrev.com/mailman/listinfo/use-revolution



___
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 data from a secure web page

2010-02-03 Thread Sarah Reichelt
On Wed, Feb 3, 2010 at 8:40 PM, Dave Cragg  wrote:
> Sarah
>
> Not quite sure what you're wanting to do. Do you just want to get the html 
> page normally returned after login from within a Rev script?

Yes. That way I can get the data automatically, without having to log
in manually with my browser.

>
> If so, does this work?
>
> on mouseUp
>  libUrlSetSSLVerification false ## SEE BELOW 1
>   put "https://memberservices.optuszoo.com.au/login/"; into tUrl
>   put "Action=login&username=abc&password=abc" into tPostData ##SEE BELOW 2
>
>   post tPostData to url tUrl
>   put it into field 1
>   if the result <> empty then
>      answer the result
>   end if
> end mouseUp
>
> Point 1
> libUrlSetSSLVerification false does as Bernard says, and no check is made of 
> the certificate. (But data is still sent encrypted) Better to set the 
> sslCertificates to a suitable file if you have one.
>
> Point 2
> Change the "abc" for username and password to the correct values. (URLEncode 
> if they contain funny characters or spaces)
>
> When I tried it, it returned the login page again but with the "Incorrect 
> username/password." text included, which suggests it might be doing something 
> right.


If I try with the wrong login details, I get that "Incorrect
username/password." page, but if I use my real login details, I get no
page, but the result is "error 302 Moved Temporarily".

Bernard: Trying the web address with the username & password included
in my browser doesn't work either - I just get the login page again,
so I guess that means it isn't just basic auth.

So I will try it on Firefox and see if I can get the custom headers as
Jim suggested.

I usually do this on my work computer, so I will check tomorrow to see
if I have a certificate there.

Thanks all,
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: Getting data from a secure web page

2010-02-03 Thread Dave Cragg

On 3 Feb 2010, at 10:54, Sarah Reichelt wrote:

> On Wed, Feb 3, 2010 at 8:40 PM, Dave Cragg  
> wrote:
>> Sarah
>> 
>> Not quite sure what you're wanting to do. Do you just want to get the html 
>> page normally returned after login from within a Rev script?
> 
> Yes. That way I can get the data automatically, without having to log
> in manually with my browser.
> 
>> 
>> If so, does this work?
>> 
>> on mouseUp
>>  libUrlSetSSLVerification false ## SEE BELOW 1
>>   put "https://memberservices.optuszoo.com.au/login/"; into tUrl
>>   put "Action=login&username=abc&password=abc" into tPostData ##SEE BELOW 2
>> 
>>   post tPostData to url tUrl
>>   put it into field 1
>>   if the result <> empty then
>>  answer the result
>>   end if
>> end mouseUp
>> 
>> Point 1
>> libUrlSetSSLVerification false does as Bernard says, and no check is made of 
>> the certificate. (But data is still sent encrypted) Better to set the 
>> sslCertificates to a suitable file if you have one.
>> 
>> Point 2
>> Change the "abc" for username and password to the correct values. (URLEncode 
>> if they contain funny characters or spaces)
>> 
>> When I tried it, it returned the login page again but with the "Incorrect 
>> username/password." text included, which suggests it might be doing 
>> something right.
> 
> 
> If I try with the wrong login details, I get that "Incorrect
> username/password." page, but if I use my real login details, I get no
> page, but the result is "error 302 Moved Temporarily".

What happens if you try "get" instead of "post"

get url 
"https://memberservices.optuszoo.com.au/login/?Action=login&username=abc&password=abc";

(Not sure about that final forward slash.)

libUrl will follow redirects (the 302 response) when using "get" but not "post"

If it won't accept "get", look in the headers returned from "post" (using 
libUrlLastRhHeaders()) and try to find the "Location:" header. With a bit* of 
luck, it will contain the URL with the data you need. (* maybe a lot of luck)

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


RE: How do I resize a group when using 'grab'?

2010-02-03 Thread Hugh Senior
P.S.
The 'grab' command does not update the formattedRect of the group, so "set
the rect of grp 1 to the formattedRect of grp 1" has no effect.


I recently wrote:
> How do I resize a group when I 'grab' a control in it so the group rect
automatically expands/contracts?
>
> I'm sure I have done this before, but cannot recall how!

/H

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


Re: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Bernard Devlin
Actually Viktoras, it might not be as much work as at first seems.

OpenSuse have now produced a system whereby one can choose to build
one's own version of Linux "in the cloud".  When all the configuration
is done, the distro can then just be downloaded and installed.

It is certainly within the realms of possibility that RunRev could
produce a linux distribution that worked and included Rev in it.

Anyone who decided to go with that distribution could then connect to
OpenSuse repositories (or even set up an OpenSuse DVD as their own
local repository) and add additional packages to their own
installation.

I believe this might still not be the solution that Linux users like Peter want.

Whether or not RunRev could use the same distro on their on-rev
servers depends on their service provider.  As I've got a hunch that
Rev is using Linode for on-rev, then I can say that I know
definitively that it is possible to run one of these OpenSuse distros
on Linode.com

Bernard

On Wed, Feb 3, 2010 at 10:54 AM, viktoras d.  wrote:
> I agree :-), still
>
> a) is also valid for developers of any other existing Linux distribution -
> given enough motivation, people manage to cope with their plates;
>
> b) if onRev server is included, then it is not limited to development, but
> can also be deployed as a server (you know LAMP, so this could be LAMR or
> even RAMR ;-) ).
>
> Viktoras
___
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: Windows 'run as administrator' property of standalone.

2010-02-03 Thread Bernard Devlin
On Wed, Feb 3, 2010 at 9:59 AM, David Glasgow
 wrote:
> I was wondering whether setting this before distribution might reduce the 
> occasional permissions problems which arise.  I was also slightly worried 
> that user levels can apparently be so readily overridden by an executable, 
> and also that there may be unforeseen (by me) adverse consequences if I set 
> this flag before distribution.

Hi David

On Vista always have to run Valentina Studio with "run as
administrator" or I get errors.

I would be surprised if you choosing to set such a flag on an
executable would result in that information being carried over when
the executable is copied to another system.

Bernard
___
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: Noise in Windows icon when standalone compiled on Mac

2010-02-03 Thread David Glasgow
Bill,

I got quite excited about this, because I have struggled to get nice looking 
Windows icons.

The Mac icon generated by iconverticons.com was fine, but the Win version 
choked the Rev standalone builder "does not include 6 blah blah blah".  I have 
encountered this lots of times with icons from various tools purporting to 
generate valid Windows icons
So I imported it into Iconographer, and chose 'complete icon' from the icon 
menu, and it did some stuff.  The resulting icon is now acceptable to Rev at 
build time, but doesn't look good on Vista, and behaves as if some sizes are 
missing (they're not, as far as I can tell).

Why are icons so blimmin' tricky?

David Glasgow


On 3 Feb 2010, at 10:54 am, Bill Vlahos wrote:

> 
> Subject: Re: Noise in Windows icon when standalone compiled on Mac
> Reply-To: How to use Revolution 
> 
> 
> This web site (http://www.iconverticons.com/) will convert between the 
> formats for free.
> 
> They talk about building the Linux icon but Rev doesn't seem to have a way to 
> incorporate an icon for Linux. How would I add the Linux icon to the Linux 
> build?
> 
> Bill Vlahos


___
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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Björnke von Gierke
Are you nuts? No value???

this is the elusive x-talk OS! The holy grail and final goal of all x-talk 
evolution! you blasphemer, heretic, burn him! *foam*

;)

On 3 Feb 2010, at 11:42, Richmond Mathewson wrote:

> On 03/02/2010 12:17, viktoras d. wrote:
>> what about creating our own Debian based Linux distribution?.. We would give 
>> it a name of Revolinux with most of the system management utilities (or GUIs 
>> for these) written in RevTalk, its own software repositories. This would 
>> provide a lot of opportunities and motivation to test and polish Revolution 
>> on Linux. Revolution engine could also be an integral part of the 
>> distribution, well, the paid version of it ;-). And it could be released 
>> with integrated and pre-configured onRev server as well.
> 
> that's a wonderful idea! And, like most wonderful ideas will "die a death" for
> 2 very simple reasons:
> 
> 1. Most people have enough work on their plate already.
> 
> 2. "Revolinux" would be fantastic for development purposes; but I cannot see
>end-users installing it 'just' to run somebody's standalone; can you ?
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
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: Polygonflow: clockwise or counter-clockwise?

2010-02-03 Thread Jeff Massung
Michael,

I assume you are talking about 2D polygons...

Just take a 3D cross product of the first two vector (P3 - P2) x (P2 - P1).
If the resultant vector is coming out of the screen (Z < 0) then the polygon
is counter-clockwise. If it is going into the screen (Z > 0) then the
polygon is clockwise.

http://chortle.ccsu.edu/VectorLessons/vch12/vch12_1.html

That page may be of help if you don't know what the cross product is. Note:
to do the 3D cross product, just use Z=0 for all the points.

HTH,

Jeff M.

On Wed, Feb 3, 2010 at 3:03 AM, Michael Kristensen <
michael-kristen...@dsa-net.dk> wrote:

> HI THERE
>
> Can you figure a smart way to check if the flow of a polygon goes clockwise
> or counter-clockwise?
>
>
> Thanks
> Michael
> ___
> 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: on-rev queries

2010-02-03 Thread Trevor DeVore

On Feb 2, 2010, at 6:33 PM, Bob Sneidar wrote:

I think I see what is going on here. The connection is being made  
with sqlYoga initially, but of course like every good server, on-rev  
drops the connection after a period of inactivity. Now normally I  
would execute an SQL statement through sqlYoga, but there is no  
function or command as yet that allows me to simply execute an SQL  
statement and return a result, or not that I have been able to find.


Except for dbconn_executeSQL of course :-)

http://www.bluemangolearning.com/revolution/docs/sql_yoga/api_docs/Documents/stack_libSQLYoga_command_dbconn_executeSQL.htm

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Richard Gaskin

Bernard Devlin wrote:


Sorry to disagree Peter, It is not just at the generic level where
there are problems.  I am assuming by the generic level you mean the
way that Rev on Linux is treated like the unloved stepchild of Windows
and OS X (developer previews meant to flush out bugs only being
released for OS X and Windows, the lack of features like revBrowser,
persistent bugs in things like revPrintField, etc).


At the risk of soundy all FOSSy, is the problem with the scripted 
elements like revPrintField something that one of us scripters could 
address?


As for RevBrowser, I'd love to see that for Linux too.  As an external, 
the code is separate from the main code base and so the Linux verison 
could conceivably be farmed out.


I would be willing to toss in a few bucks toward that.  Anyone else 
interested in funding that development?


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: on-rev queries

2010-02-03 Thread Trevor DeVore

On Feb 2, 2010, at 7:53 PM, Bob Sneidar wrote:

Okay, for anyone who is interested, the trick to adding and dropping  
tables (or executing any odd sql) when using sqlYoga is that you  
have to tell sqlYoga that the schema has changed.


The db schema that SQL Yoga caches shouldn't affect running random SQL  
commands. The schema is used when you work with SQL Query and SQL  
Record objects.


The easiest way to do that is reset the schema with dbschema_reset,  
then reconnect to the database. JUST reconnecting will NOT reload  
the schema causing you all kinds of headaches in the future.


   dbschema_reset thePriDB
   dbconn_disconnect thePriDB
   dbconn_Connect thePriDB


You should use dbobject_reloadSchema for this.

http://www.bluemangolearning.com/revolution/docs/sql_yoga/api_docs/Documents/stack_libSQLYoga_command_dbobject_reloadSchema.htm

You can find more info about the schema in the lesson "Introduction to  
the Database Object and Database Schema":


http://revolution.screenstepslive.com/spaces/revolution/manuals/sqlyoga/lessons/6870-Introduction-to-the-Database-Object-and-Database-Schema

Also, any queries you use with sqlYoga will AUTOMATICALLY reconnect  
to the database.


SQL Yoga looks for the MySQL has gone away error and tries to  
reconnect to the database automatically before returning an error.


BUT if you are using the REV IDE to execute what I will call  
"foreign" queries, that is queries not run through sqlYoga, AND your  
connection has timed out, you will have problems, SO...

I now use dbconn_connect before executing "foreign" queries.

   put "DROP TABLE 'myhostname'.'mytablename'" into theSQL --  
foreign query

   dbconn_Connect thePriDB -- make sure we are currently connected
   put dbconn_get("connection id", theConnection, theDBObject) into  
theID -- get the current dbid
   revExecuteSQL theID, theSQL -- shoot the wild ass (just checking  
to see if you are reading the comments)


As I mentioned in the previous email you can use dbconn_executeSQL  
here which is easier.



   -- now reload the schema
   dbschema_reset thePriDB -- wipes the database object clean
   dbconn_disconnect thePriDB -- may not need to do this...
   dbconn_Connect thePriDB  -- this will reload the schema
   dbobject_save thePriDB -- ALWAYS SAVE YOUR OBJECTS!


Your code here can be:

dbobject_reloadSchema thePriDB
dbobject_save thePriDB -- ALWAYS SAVE YOUR OBJECTS!

Note that SQL Yoga is going to query your database again to get all of  
the table information. This means you should do this after finishing  
all alterations to your database.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Getting data from a secure web page

2010-02-03 Thread Trevor DeVore

On Feb 3, 2010, at 6:04 AM, Dave Cragg wrote:


What happens if you try "get" instead of "post"

get url "https://memberservices.optuszoo.com.au/login/?Action=login&username=abc&password=abc 
"


(Not sure about that final forward slash.)

libUrl will follow redirects (the 302 response) when using "get" but  
not "post"


If it won't accept "get", look in the headers returned from  
"post" (using libUrlLastRhHeaders()) and try to find the "Location:"  
header. With a bit* of luck, it will contain the URL with the data  
you need. (* maybe a lot of luck)


I added support for following 302 with POST, DELETE and PUT requests  
in the version of libURL that comes with the GLX App Framework. I  
haven't documented it outside of the source code but if you need to  
use POST Sarah and a 302 is being sent then download the GLX App  
Framework files, grab the custom version of libURL and search for this  
string:


## POST, PUT, DELETE. Look for callback, otherwise we ignore.

Framework home page:

http://www.bluemangolearning.com/revolution/software/libraries/glx-application-framework/

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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


lockLoc OR LockSize? (but not both)

2010-02-03 Thread Mark Swindell
Is there a  property for locking just the size of an object while allowing a 
manual move?  Setting the lockLoc to true does locks down both size and 
location.  

If it isn't possible do each individually, why is that?  Shouldn't it be 
possible?

Thanks,
Mark___
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 data from a secure web page

2010-02-03 Thread Dave Cragg

On 3 Feb 2010, at 15:23, Trevor DeVore wrote:

> I added support for following 302 with POST, DELETE and PUT requests in the 
> version of libURL that comes with the GLX App Framework. 

But then it isn't standards compliant. :-)

From rfc2616

"If the 302 status code is received in response to a request other than GET or 
HEAD, the user agent MUST NOT automatically redirect the request unless it can 
be confirmed by the user, since this might change the conditions under which 
the request was issued."

The server should really return 303 for these cases.

But I think most browsers redirect using GET on 302.

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


Re: lockLoc OR LockSize? (but not both)

2010-02-03 Thread Scott Rossi
Recently, Mark Swindell wrote:

> Is there a  property for locking just the size of an object while allowing a
> manual move?

Nope.

> Setting the lockLoc to true does locks down both size and
> location.

Yes.
 
> If it isn't possible do each individually, why is that?  Shouldn't it be
> possible?

This is possible.  You can move locked objects with arrowkeys  (1 and 10
pixel increments using shift), and you can reposition an object by script,
such as using the "grab" command or using a custom drag routine, ie


Hope this helps.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


___
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 data from a secure web page

2010-02-03 Thread Trevor DeVore

On Feb 3, 2010, at 10:40 AM, Dave Cragg wrote:


On 3 Feb 2010, at 15:23, Trevor DeVore wrote:

I added support for following 302 with POST, DELETE and PUT  
requests in the version of libURL that comes with the GLX App  
Framework.


But then it isn't standards compliant. :-)

From rfc2616

"If the 302 status code is received in response to a request other  
than GET or HEAD, the user agent MUST NOT automatically redirect the  
request unless it can be confirmed by the user, since this might  
change the conditions under which the request was issued."


That is why I installed a callback when I implemented it :-)

Basically a developer registers a callback for 301, 302 and 307 by  
issuing the command libURLSetFollowRedirectCallback. libURL then sends  
the message and the developer returns a value. If it is "redirect"  
then libURL redirects. If it is "get" then libURL fetches the new URL  
using "get". Any other value performs default libURL behavior which  
returns "socket closed before end of file".


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Andre Garzia
Hello Folks,

arriving late on the thread.

I used many linux distros till I finally settled on OpenSUSE 11.2. I find
Ubuntu very charming and used it from Gusty Gibbon till Karmic Koala (can't
remember version numbers but I love those silly names, was waiting for
hungry hippo), it was fun to use and it was the first Gnome desktop that I
could actually understand, me being a KDE person from the start. What moved
me away from ubuntu was the mess that is sound under linux, it is a hit or
miss, or it works or you're in very murky waters. PulseAudio, ALSA, OSS,
they are all crap and conflict with each other. Video cards are also
cumbersome, my PC has an onboard intel chipset that till today is not well
supported. When I tried openSUSE, it just worked out of the box both video
and sound. It was more polished than ubuntu for me, I really liked their
gnome theme.

It was somewhat a struggle to move from apt to zypper but they work
basically the same, the package names change though and that is the hard
part. Revolution works well on OpenSUSE and with that in mind, I decided
that SUSE was the way to go for me.

Now on the topic of creating our own distro, I did that! I created "Andre
SUSE Distro" using Suse Studio service. Suse Studio is the most awesome and
elegant web service I ever seen. It basically allow you to choose from
multiple packages and everything, to configure all you want and then it will
build you an ISO or a VMWare image. You can even try your system online thru
a web VNC session, you don't even need to install it at home. Using this
system I created an almost barebones version of suse that would pack
RevEnterprise and RevWeb (that old alpha one). I haven't told anyone about
it because it packs RevEnterprise with my license, I made this system
basically for my own consumption, it allows me to move from bare bones pc to
fully configured and ready linux with a single DVD.

http://susestudio.com/

If people here are so inclined, I can try to build a simple suse that would
bundle Rev without a license (so you would need to put a license on first
run) and some useful tools. You could run it as a virtual machine under
vmware or virtualbox and thus test your software under linux without the
need to a full linux hardware.

:D

Cheers
andre

-- 
http://www.andregarzia.com All We Do Is Code.
___
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: on-rev queries

2010-02-03 Thread Bob Sneidar
Ok Trevor thanks a bunch. I obviously have to go back to the docs and learn 
more. I thought I had read through the API and didn't find a command that would 
work for me. 

Bob


On Feb 3, 2010, at 7:15 AM, Trevor DeVore wrote:

> On Feb 2, 2010, at 7:53 PM, Bob Sneidar wrote:
> 
>> Okay, for anyone who is interested, the trick to adding and dropping tables 
>> (or executing any odd sql) when using sqlYoga is that you have to tell 
>> sqlYoga that the schema has changed.
> 
> The db schema that SQL Yoga caches shouldn't affect running random SQL 
> commands. The schema is used when you work with SQL Query and SQL Record 
> objects.
> 
___
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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Bob Sneidar
I guess the upshot of this whole discussion is that everything is a tradeoff. 
To gain stability we have to lose some freedom. The most stable government is a 
dictatorship, where only one man's wishes are done and everyone complies with 
the standard he issues. But of course, nobody wants that. Excepting the 
dictator of course. :-)

Same thing with software and operating systems. People have complained against 
the rigid control Apple maintains on development of their operating systems 
(Microsoft is no different) and hardware, but the end result is stability and 
predictability (not perfection I know). So it's all about balance. How much 
freedom are we willing to give up for stability and predictability in our 
computing world? The answer is different for every person. 

For me, and IT guy, I am willing to give up a LOT of freedom, and restrict the 
freedom of my users, so that my job does not become orders of magnitude more 
complex and overwhelming. For the guy whose computer is his own personal 
digital erector set, he will give up very little freedom. 

For me, I am willing to go with the OS that the most developers will tackle, 
because they know it's not a moving target. I am rewarded with software like 
Runtime Revolution. But the erector set guy has to face the likelihood that 
mainstream software is not going to be available for his system. He will have 
to choose from the offerings of other erector set guys (and very talented and 
productive ones I admit.) 

Bob


On Feb 2, 2010, at 4:26 PM, Richard Gaskin wrote:

> But please remember that one man's limitations is another man's freedom.  For 
> an experienced user like yourself Ubuntu's less frequent updates isn't 
> helpful.  But for newbies, updating every day is a hassle. And for 
> developers, less frequent releases means the platform is less of a moving 
> target.

___
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 data from a secure web page

2010-02-03 Thread Dave Cragg
On 3 Feb 2010, at 15:58, Trevor DeVore wrote:

> That is why I installed a callback when I implemented it :-)

I should have known you'd have taken care of things like that.

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


Re: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread René Micout
YES !!

Le 3 févr. 2010 à 18:27, Bob Sneidar a écrit :

> I guess the upshot of this whole discussion is that everything is a tradeoff. 
> To gain stability we have to lose some freedom. The most stable government is 
> a dictatorship, where only one man's wishes are done and everyone complies 
> with the standard he issues. But of course, nobody wants that. Excepting the 
> dictator of course. :-)
> 
> Same thing with software and operating systems. People have complained 
> against the rigid control Apple maintains on development of their operating 
> systems (Microsoft is no different) and hardware, but the end result is 
> stability and predictability (not perfection I know). So it's all about 
> balance. How much freedom are we willing to give up for stability and 
> predictability in our computing world? The answer is different for every 
> person. 
> 
> For me, and IT guy, I am willing to give up a LOT of freedom, and restrict 
> the freedom of my users, so that my job does not become orders of magnitude 
> more complex and overwhelming. For the guy whose computer is his own personal 
> digital erector set, he will give up very little freedom. 
> 
> For me, I am willing to go with the OS that the most developers will tackle, 
> because they know it's not a moving target. I am rewarded with software like 
> Runtime Revolution. But the erector set guy has to face the likelihood that 
> mainstream software is not going to be available for his system. He will have 
> to choose from the offerings of other erector set guys (and very talented and 
> productive ones I admit.) 
> 
> Bob
> 
> 
> On Feb 2, 2010, at 4:26 PM, Richard Gaskin wrote:
> 
>> But please remember that one man's limitations is another man's freedom.  
>> For an experienced user like yourself Ubuntu's less frequent updates isn't 
>> helpful.  But for newbies, updating every day is a hassle. And for 
>> developers, less frequent releases means the platform is less of a moving 
>> target.
> 
> ___
> 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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Bob Sneidar
Andre you are a certified genius.

Bob


On Feb 3, 2010, at 8:43 AM, Andre Garzia wrote:

> If people here are so inclined, I can try to build a simple suse that would
> bundle Rev without a license (so you would need to put a license on first
> run) and some useful tools. You could run it as a virtual machine under
> vmware or virtualbox and thus test your software under linux without the
> need to a full linux hardware.
> 
> :D
> 
> 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: iPadding around?

2010-02-03 Thread Bob Sneidar
I apologize to any number of people I may have offended, but you have to admit, 
it was dam funny. :-)

Bob


On Feb 2, 2010, at 11:22 PM, Richmond Mathewson wrote:

> On 02/02/2010 23:57, Bob Sneidar wrote:
>> No that is Israeli counter intel. Apparently the Palestinian government 
>> believed this, and informed a group of Hezbollah militants that if they 
>> turned sideways and read an old newspaper, then the Israeli snipers could 
>> not see them, and thus would be unable to shoot them. None of those 
>> belonging to the terrorist cell that attempted this have been heard from in 
>> quite a while.
>> 
>> Bob
>> 
>> 
>>   
> That is a jolly good joke.
> 
> Guess what, Bob; if you and I keep on with this political banter we will both 
> get kicked off the use-list;
> which would be a great pity.
> ___
> 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: lockLoc OR LockSize? (but not both)

2010-02-03 Thread DunbarX
Is this so that one doesn't inadvertantly grab a handle and change the 
size?

You can set a custom property and trap the resizecontrol message, I guess:

The "lockrect" property might be something like "82,23"

on resizecontrol
set the width of me to item 1 of the lockRect of me
set the height of me to item 2 of the lockrect of me
end resizecontrol

It won't actually lock the rect when dragging a handle, but at least 
restores it when you stop.

I tried this with mouseMove, and sometimes it worked. But now I always get 
recursion timeouts.

Craig Newman
___
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: How do I resize a group when using 'grab'?

2010-02-03 Thread J. Landman Gay

Hugh Senior wrote:

How do I resize a group when I 'grab' a control in it so the group rect
automatically expands/contracts?

I'm sure I have done this before, but cannot recall how!


Set the group's boundingRect property.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: Noise in Windows icon when standalone compiled on Mac

2010-02-03 Thread J. Landman Gay

David Glasgow wrote:

So I
imported it into Iconographer, and chose 'complete icon' from the
icon menu, and it did some stuff.  The resulting icon is now
acceptable to Rev at build time, but doesn't look good on Vista, and
behaves as if some sizes are missing (they're not, as far as I can
tell).


Iconographer has been unsupported for years now, and has a significant 
bug that clips some icons off halfway. I had to stop using it. Except 
for a commercial Photoshop plugin that you have to purchase, I don't 
know of any good Mac utilities that will create suitable Windows icons 
for Rev. If anyone knows, I'd love to know too. But creating icons in 
Windows is easy using a Windows-native icon editor, and if you are 
developing for Windows anyway then it isn't hard to just do the icons 
over there.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread J. Landman Gay

Andre Garzia wrote:


If people here are so inclined, I can try to build a simple suse that would
bundle Rev without a license (so you would need to put a license on first
run) and some useful tools. You could run it as a virtual machine under
vmware or virtualbox and thus test your software under linux without the
need to a full linux hardware.


Yes! That'd be great, Mr. Resident Genius. :)

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Andre Garzia
I am no genius, the guys at SUSE (Novell??) are. They made the software, I
am just using it.

Speaking of software, suse studio is giving me error 500 as of half an hour
ago. Must be overwhelmed, as soon as I it is up and running I will try to
cook something.

Now, a simple pool, for those wanting a linux image for testing, how big it
could be, meaning what is the upper size limit that you would download.

Anyone here remembers what are Rev Linux dependencies:
* Pango?
* all g libs?
* qt?



Cheers
andre

On Wed, Feb 3, 2010 at 4:26 PM, J. Landman Gay wrote:

> Andre Garzia wrote:
>
>  If people here are so inclined, I can try to build a simple suse that
>> would
>> bundle Rev without a license (so you would need to put a license on first
>> run) and some useful tools. You could run it as a virtual machine under
>> vmware or virtualbox and thus test your software under linux without the
>> need to a full linux hardware.
>>
>
> Yes! That'd be great, Mr. Resident Genius. :)
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Pierre Sahores

Hi Andre,

Very interessant synthese. Thanks. It seems it would be a good idea to  
be back to Suse (i used it from the 5.3 to 9.2 distros, in the past,  
at the time it was the most usable on the different platforms i had to  
do with, Yast behind... :-). Never had only one problem to run MC nor  
Rev on my Suse configs ;-)


Kind Regards,

Pierre

Le 3 févr. 10 à 17:43, Andre Garzia a écrit :


Hello Folks,

arriving late on the thread.

I used many linux distros till I finally settled on OpenSUSE 11.2. I  
find
Ubuntu very charming and used it from Gusty Gibbon till Karmic Koala  
(can't

remember version numbers but I love those silly names, was waiting for
hungry hippo), it was fun to use and it was the first Gnome desktop  
that I
could actually understand, me being a KDE person from the start.  
What moved
me away from ubuntu was the mess that is sound under linux, it is a  
hit or
miss, or it works or you're in very murky waters. PulseAudio, ALSA,  
OSS,

they are all crap and conflict with each other. Video cards are also
cumbersome, my PC has an onboard intel chipset that till today is  
not well
supported. When I tried openSUSE, it just worked out of the box both  
video
and sound. It was more polished than ubuntu for me, I really liked  
their

gnome theme.

It was somewhat a struggle to move from apt to zypper but they work
basically the same, the package names change though and that is the  
hard
part. Revolution works well on OpenSUSE and with that in mind, I  
decided

that SUSE was the way to go for me.

Now on the topic of creating our own distro, I did that! I created  
"Andre
SUSE Distro" using Suse Studio service. Suse Studio is the most  
awesome and

elegant web service I ever seen. It basically allow you to choose from
multiple packages and everything, to configure all you want and then  
it will
build you an ISO or a VMWare image. You can even try your system  
online thru
a web VNC session, you don't even need to install it at home. Using  
this

system I created an almost barebones version of suse that would pack
RevEnterprise and RevWeb (that old alpha one). I haven't told anyone  
about

it because it packs RevEnterprise with my license, I made this system
basically for my own consumption, it allows me to move from bare  
bones pc to

fully configured and ready linux with a single DVD.

http://susestudio.com/

If people here are so inclined, I can try to build a simple suse  
that would
bundle Rev without a license (so you would need to put a license on  
first
run) and some useful tools. You could run it as a virtual machine  
under
vmware or virtualbox and thus test your software under linux without  
the

need to a full linux hardware.

:D

Cheers
andre

--
http://www.andregarzia.com All We Do Is Code.
___
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



--
Pierre Sahores
mobile : (33) 6 03 95 77 70

www.wrds.com
www.sahores-conseil.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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Pierre Sahores

Andre,

If my memory don't freeze ;-)

libXext.so.6, libX11.so.6, libm.so.6, libc.so.6, ld-linux.so. 
2libraries are needed and installed out of most of the recent  
distributions, as long as the XWindows support is configured.


Best,

Pierre

Le 3 févr. 10 à 19:34, Andre Garzia a écrit :

I am no genius, the guys at SUSE (Novell??) are. They made the  
software, I

am just using it.

Speaking of software, suse studio is giving me error 500 as of half  
an hour
ago. Must be overwhelmed, as soon as I it is up and running I will  
try to

cook something.

Now, a simple pool, for those wanting a linux image for testing, how  
big it
could be, meaning what is the upper size limit that you would  
download.


Anyone here remembers what are Rev Linux dependencies:
* Pango?
* all g libs?
* qt?



Cheers
andre

On Wed, Feb 3, 2010 at 4:26 PM, J. Landman Gay >wrote:



Andre Garzia wrote:

If people here are so inclined, I can try to build a simple suse that

would
bundle Rev without a license (so you would need to put a license  
on first
run) and some useful tools. You could run it as a virtual machine  
under
vmware or virtualbox and thus test your software under linux  
without the

need to a full linux hardware.



Yes! That'd be great, Mr. Resident Genius. :)

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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





--
http://www.andregarzia.com All We Do Is Code.
___
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



--
Pierre Sahores
mobile : (33) 6 03 95 77 70

www.wrds.com
www.sahores-conseil.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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Brian Yennie
One possibility for RevBrowser would be to build an alternative using WebKit 
(aka Chrome, Safari engine). That would allow for the same browser engine on 
all 3 platforms, instead of locking down projects to the lowest common 
denominator (i.e., IE). It would certainly support Linux as that is the 
"original" platform.

Beside Linux support the one thing that has kept me nervous about using 
RevBrowser is that it comes with the usual cross-browser issues!

> Bernard Devlin wrote:
> 
>> Sorry to disagree Peter, It is not just at the generic level where
>> there are problems.  I am assuming by the generic level you mean the
>> way that Rev on Linux is treated like the unloved stepchild of Windows
>> and OS X (developer previews meant to flush out bugs only being
>> released for OS X and Windows, the lack of features like revBrowser,
>> persistent bugs in things like revPrintField, etc).
> 
> At the risk of soundy all FOSSy, is the problem with the scripted elements 
> like revPrintField something that one of us scripters could address?
> 
> As for RevBrowser, I'd love to see that for Linux too.  As an external, the 
> code is separate from the main code base and so the Linux verison could 
> conceivably be farmed out.
> 
> I would be willing to toss in a few bucks toward that.  Anyone else 
> interested in funding that development?
> 
> --
> Richard Gaskin
> Fourth World
> Rev training and consulting: http://www.fourthworld.com
> Webzine for Rev developers: http://www.revjournal.com
> revJournal blog: http://revjournal.com/blog.irv
___
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: How do I resize a group when using 'grab'?

2010-02-03 Thread Hugh Senior
Q: How do I update the dimensions of a group when I 'grab' a control?

'Grab' is a really simple way of moving an object in 'browse' mode: Just
'grab me' in a mouseDown, and the object tracks the mouse until mouseUp (see
the docs).

There is, however, a problem when you 'grab' a control in a group. The
dimensions of a group do not automatically change to fit the repositioned
control, nor is the group's formattedRect updated. This means you can easily
drag an object out of sight to an inaccessible position. This is a 'bad
thing'.

It took me a while, but the trick here is to understand that the
formattedRect of the containing group is only updated when a geometric
property of a control (top, bottom, left, right, width, height etc) is
changed. The following is a simplified group script:


This fails to update the rect of the group...
  on mouseDown
--| User clicks and drags a control in the group
grab the target
  end mouseDown

  on mouseMove
--| Resize the group...
set the rect of this group to the formattedRect of this group
  end mouseMove


This works...
  on mouseDown
grab the target
  end mouseDown

  on mouseMove
--| Force the formattedRect to update...
set the top of the target to (the top of the target)+1
set the top of the target to (the top of the target)-1
--| Now the group can be resized...
set the rect of this group to the formattedRect of this group
  end mouseMove



Maybe this will help someone searching the archives.

/H

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


Re: use-revolution Digest, Vol 77, Issue 7

2010-02-03 Thread Emmett Gray

How do you tell Rev to do something useful via applescript?

I tried

tell application "Revolution Media"
activate
   --would like ideally first to: do script "go stack " & quote & 
"Foo" & quote & " in a new window"
   --but I couldn't even get the next command to work if the stack 
was already open and frontmost

   do script "create card"
end tell

Nothing happens other than activation. While I'm asking, the next 
things I would want to have happen are to put the clipboard into a 
field and send a mouseUp to a button.

___
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


stack compatibility

2010-02-03 Thread Rick Rice
Will stacks created with Rvolution 2.6.1 run under the latest  
Microsft OS "Windows 7" and the latest Macintosh OS "Snow Leopard"?

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


AppleEvents and RunRev

2010-02-03 Thread Kee Nethery

On Feb 3, 2010, at 12:15 PM, Emmett Gray wrote:

> How do you tell Rev to do something useful via applescript?
> 
> I tried
> 
> tell application "Revolution Media"
> activate
>   --would like ideally first to: do script "go stack " & quote & "Foo" & 
> quote & " in a new window"
>   --but I couldn't even get the next command to work if the stack was already 
> open and frontmost
>   do script "create card"
> end tell
> 
> Nothing happens other than activation. While I'm asking, the next things I 
> would want to have happen are to put the clipboard into a field and send a 
> mouseUp to a button.

This is what worked for me. I was running Leopard (10.5.2) on a Power PC, and 
using Revolution 2.8.1 when I wrote these instructions. Assume they still work 
today.

1. Open Revolution
2. File / New Mainstack
3. Object / Stack Script
4. enter the following script

on barklikeadog additionalStuff
  return "arf arf" && the seconds && additionalStuff
end barklikeadog

5. Apply, close the stack script
6. Object / Stack Inspector
   Name: AppleEventCatcher
7. close the inspector
8. File / Save
9. File / Standalone Application Settings
10. Windows
   Build for: (de-select the checkbox)
11. close the Standalone Application Settings window
12. File / Save
13. File / Save As Standalone Application
14. Quit Revolution
15. in the Finder, go to the newly created Mac application "AppleEventCatcher" 
and with the control key down, click on the application. Select "Show Package 
Contents"
16. Go to Contents / Resources / Revolution.rsrc and change the name of that 
file to AppleEventCatcher.rsrc
17. close the Show Package Contents window
18. Open Apple's Script Editor.
19. In the script window enter the following script:

property thescript : []

on run
copy "barklikeadog beg" to thescript
tell application "asdfgh"
activate
do script thescript
end tell
end run

20. Don't press the Compile button.
21. File / Save and it will ask you where asdfgh is located. Select the newly 
modified Mac application "AppleEventCatcher"
22. Press the Run button
23. The Result window should display something like:
"arf arf 1206236082 beg"

From what I can see, the communication style I am using does not permit more 
that one word to be sent from the Script Editor to the application. My way 
around that is to URLencode what I wish to send and then URLdecode in the 
application. I don't know what kinds of payload limits there are going to and 
coming from the application.

Kee Nethery

___
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: use-revolution Digest, Vol 77, Issue 7

2010-02-03 Thread zryip theSlug
2010/2/3 Emmett Gray :
> How do you tell Rev to do something useful via applescript?
>
> I tried
>
> tell application "Revolution Media"
> activate
>   --would like ideally first to: do script "go stack " & quote & "Foo" &
> quote & " in a new window"
>   --but I couldn't even get the next command to work if the stack was
> already open and frontmost
>   do script "create card"
> end tell
>
> Nothing happens other than activation. While I'm asking, the next things I
> would want to have happen are to put the clipboard into a field and send a
> mouseUp to a button.
> ___

Hi Emmett,

It is not necessary that the stack be at the frontmost to make it
react with applescript. Simply specify the stack you need as follows:
tell application "Revolution" to do script "create card to stack \"TheSlugLab\""

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
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: use-revolution Digest, Vol 77, Issue 7

2010-02-03 Thread zryip theSlug
2010/2/3 Emmett Gray :
> Nothing happens other than activation. While I'm asking, the next things I
> would want to have happen are to put the clipboard into a field and send a
> mouseUp to a button.

Try this:

tell application "Revolution"
do script "if the clipboard is text then
 go cd \"MyCard\" of stack \"TheSlugLab\"
 select text of fld \"MyField\"
 paste
 send \"mouseUp\" to btn \"MyButton\"
 end if"
end tell


HTH

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
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: stack compatibility

2010-02-03 Thread stephen barncard
I wouldn't count on compiled apps. Both OS versions you mentioned have moved
quite a bit forward.  The old stacks, of course could be used and compiled
on the newer IDE and engine.

sqb
-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


On 3 February 2010 12:57, Rick Rice  wrote:

> Will stacks created with Rvolution 2.6.1 run under the latest Microsft OS
> "Windows 7" and the latest Macintosh OS "Snow Leopard"?
> 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: lockLoc OR LockSize? (but not both)

2010-02-03 Thread zryip theSlug
2010/2/3  :
> Is this so that one doesn't inadvertantly grab a handle and change the
> size?
>
> You can set a custom property and trap the resizecontrol message, I guess:
>
> The "lockrect" property might be something like "82,23"
>
> on resizecontrol
>set the width of me to item 1 of the lockRect of me
>set the height of me to item 2 of the lockrect of me
> end resizecontrol
>
> It won't actually lock the rect when dragging a handle, but at least
> restores it when you stop.
>
> I tried this with mouseMove, and sometimes it worked. But now I always get
> recursion timeouts.

If needed you can also change the size of your object with arrowkeys.

http://www.aslugontheroad.co.cc/images/stories/Download/Tools/Resize%20controls%20with%20arrowkeys.rev.zip

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
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: Polygonflow: clockwise or counter-clockwise?

2010-02-03 Thread Alex Tweedly

Jeff Massung wrote:

Michael,

I assume you are talking about 2D polygons...

Just take a 3D cross product of the first two vector (P3 - P2) x (P2 - P1).
If the resultant vector is coming out of the screen (Z < 0) then the polygon
is counter-clockwise. If it is going into the screen (Z > 0) then the
polygon is clockwise.

http://chortle.ccsu.edu/VectorLessons/vch12/vch12_1.html

That page may be of help if you don't know what the cross product is. Note:
to do the 3D cross product, just use Z=0 for all the points.

  
Well, I confess I don't properly remember what the cross-product is, so 
I will go read that page.


But even without doing so, I am sure that this can't be a correct 
solution; the following two polygons have opposite flow, but P1, P2 and 
P3 are the same


0,0; 100,0; 100,100; 0,0(i.e. a counter-clockwise triangle)
0,0; 100,0; 100,100; 200,100; 200,-10; 0,-10; 0,0   (i.e. a clockwise 
L-shape)


I'll post a couple of suggested solutions shortly (once I've got the 
stack running properly)


-- Alex.

___
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


Hypercard import ?

2010-02-03 Thread Pierre

I'm using Rev/enterprise  version 4.5.0. with Leopard X.6.2 on a MacPro.
I would like to convert an old Hypercard stack to Runrev.
I did it a few years ago with an old version of Rev.
I can't do it today.
I can't open the stack directly from Rev, the stack isn't seen from Rev.
I can't change the "Open with" of the 'Information Window' from Hypercard to 
Revolution.

My question is:  "Can Rev V.4.5  open and convert an hypercard  Stack ?"
What are the solutions to do it ?

Many thanks to any one who could give me an idea

Pierre___
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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Bernard Devlin
On Wed, Feb 3, 2010 at 6:47 PM, Brian Yennie  wrote:
> One possibility for RevBrowser would be to build an alternative using WebKit 
> (aka Chrome, Safari
> engine). That would allow for the same browser engine on all 3 platforms, 
> instead of locking down
> projects to the lowest common denominator (i.e., IE). It would certainly 
> support Linux as that is
> the "original" platform.

I think this is an interesting proposition.  Although my understanding
is that when Apple made their modifications to Konqueror, they
returned the changes "as one large tarball".  I think that meant that
no-one in the Linux world has re-integrated the changes.

Where Chrome sits in relation to WebKit, I'm not sure.  I don't know
if Google took Webkit and built on that.

Bernard
___
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: Hypercard import ?

2010-02-03 Thread stephen barncard
hold the optionkey down before opening dialog.

That should over-ride the type filtering at the system level.
-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2010/2/3 Pierre 

>
> I'm using Rev/enterprise  version 4.5.0. with Leopard X.6.2 on a MacPro.
> I would like to convert an old Hypercard stack to Runrev.
> I did it a few years ago with an old version of Rev.
> I can't do it today.
> I can't open the stack directly from Rev, the stack isn't seen from Rev.
> I can't change the "Open with" of the 'Information Window' from Hypercard
> to Revolution.
>
> My question is:  "Can Rev V.4.5  open and convert an hypercard  Stack
> ?"
> What are the solutions to do it ?
>
> Many thanks to any one who could give me an idea
>
> Pierre___
> 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: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Bernard Devlin
On Wed, Feb 3, 2010 at 3:12 PM, Richard Gaskin
 wrote:
> At the risk of soundy all FOSSy, is the problem with the scripted elements
> like revPrintField something that one of us scripters could address?

I'm just re-iterating Peter's long-standing problems with Rev on
Linux.  I've never managed to get Rev working long enough to get
anywhere near trying to print things out.  My problems have been at a
far more basic level than that.

If Peter does not repeat his problems here, I'll look through the list
and RQCC and try to produce a summary.

> As for RevBrowser, I'd love to see that for Linux too.  As an external, the
> code is separate from the main code base and so the Linux verison could
> conceivably be farmed out.
>
> I would be willing to toss in a few bucks toward that.  Anyone else
> interested in funding that development?

I am.

Bernard
___
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: lockLoc OR LockSize? (but not both)

2010-02-03 Thread Mark Swindell
That's what I thought, but wanted to be sure I wasn't missing something obvious.

It makes no sense (to me) to have these be a joint property. They are two 
separate things.  

Example: I have several images I want to drag around and reposition on a card, 
but I also want to constrain their size to 200,200.  It would be nice to be 
able to do this in the IDE without the risk of images blowing up all over the 
place.  (Returning from editing a group, for example... surprise!)

Is there some structural reason within Rev that the status quo has to be as it 
is?  If not, this strikes me as a good feature enhancement... why not have two 
separate properties... what do others think?

Mark


On Feb 3, 2010, at 9:37 AM, dunb...@aol.com wrote:

> Is this so that one doesn't inadvertantly grab a handle and change the 
> size?
> 
> You can set a custom property and trap the resizecontrol message, I guess:
> 
> The "lockrect" property might be something like "82,23"
> 
> on resizecontrol
>set the width of me to item 1 of the lockRect of me
>set the height of me to item 2 of the lockrect of me
> end resizecontrol
> 
> It won't actually lock the rect when dragging a handle, but at least 
> restores it when you stop.
> 
> I tried this with mouseMove, and sometimes it worked. But now I always get 
> recursion timeouts.
> 
> Craig Newman
> ___
> 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: Hypercard import ? Solved

2010-02-03 Thread Pierre
Many thanks Stephan

Pierre

Le 4 févr. 2010 à 00:12, stephen barncard a écrit :

> hold the optionkey down before opening dialog.
> 
> That should over-ride the type filtering at the system level.
> -
> Stephen Barncard
> San Francisco
> http://houseofcubes.com/disco.irev
> 
> 
> 2010/2/3 Pierre 
> 
>> 
>> I'm using Rev/enterprise  version 4.5.0. with Leopard X.6.2 on a MacPro.
>> I would like to convert an old Hypercard stack to Runrev.
>> I did it a few years ago with an old version of Rev.
>> I can't do it today.
>> I can't open the stack directly from Rev, the stack isn't seen from Rev.
>> I can't change the "Open with" of the 'Information Window' from Hypercard
>> to Revolution.
>> 
>> My question is:  "Can Rev V.4.5  open and convert an hypercard  Stack
>> ?"
>> What are the solutions to do it ?
>> 
>> Many thanks to any one who could give me an idea
>> 
>> Pierre___
>> 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: Polygonflow: clockwise or counter-clockwise?

2010-02-03 Thread Jeff Massung
Michael,

Sorry, but the problem you are running into is that (in your second example)
you are working with a concave polygon instead of convex. I promise, using
the cross-product is correct.

Concave polygons get tricky, because the winding actually does - in fact -
change direction. You - as a human - are simply looking at the resulting,
whole polygon and making a determination from that, which is actually
wrong.

You have a couple options:

1. Perform the cross product across all points from last to first - exactly
as I originally described, and count the winding directions of each, taking
the greater of the two.

2. If you know the majority of your polygons are shaped a particular way, an
often-used trick is to take P(N), P(2), and P(1) and simply use those as a
quick and dirty test.

Option #1 will produce the desired, correct result, but takes more time.
Option #2 can very often be wrong, but given your use-cases could be right
100% of the time.

Jeff M.

On Wed, Feb 3, 2010 at 4:55 PM, Alex Tweedly  wrote:

> Jeff Massung wrote:
>
>> Michael,
>>
>> I assume you are talking about 2D polygons...
>>
>> Just take a 3D cross product of the first two vector (P3 - P2) x (P2 -
>> P1).
>> If the resultant vector is coming out of the screen (Z < 0) then the
>> polygon
>> is counter-clockwise. If it is going into the screen (Z > 0) then the
>> polygon is clockwise.
>>
>> http://chortle.ccsu.edu/VectorLessons/vch12/vch12_1.html
>>
>> That page may be of help if you don't know what the cross product is.
>> Note:
>> to do the 3D cross product, just use Z=0 for all the points.
>>
>>
>>
> Well, I confess I don't properly remember what the cross-product is, so I
> will go read that page.
>
> But even without doing so, I am sure that this can't be a correct solution;
> the following two polygons have opposite flow, but P1, P2 and P3 are the
> same
>
> 0,0; 100,0; 100,100; 0,0(i.e. a counter-clockwise triangle)
> 0,0; 100,0; 100,100; 200,100; 200,-10; 0,-10; 0,0   (i.e. a clockwise
> L-shape)
>
> I'll post a couple of suggested solutions shortly (once I've got the stack
> running properly)
>
> -- Alex.
>
>
> ___
> 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: Polygonflow: clockwise or counter-clockwise?

2010-02-03 Thread Alex Tweedly

Jeff Massung wrote:

Michael,

Sorry, but the problem you are running into is that (in your second example)
  

The examples were from me (Alex) not Michael :-)

you are working with a concave polygon instead of convex.
Yes. Exactly. There *are* polygons which are concave. We could all look 
at them and agree on where the inside of the polygon is, and therefore 
all agree on whether the perimeter is defined clockwise or 
anti-clockwise around that interior.

 I promise, using
the cross-product is correct.
  
If you define the problem space to be limited to convex polygons, then 
it is correct. But if you want to handle all (or almost all - see below) 
polygons, then it is not correct.

Concave polygons get tricky, because the winding actually does - in fact -
change direction. You - as a human - are simply looking at the resulting,
whole polygon and making a determination from that, which is actually
wrong.

  
The conclusion that you arrive at from looking at the whole polygon is 
correct; the winding around the interior is consistent; the direction 
change in co-ordinate space changes, but not relative to the interior.

You have a couple options:

1. Perform the cross product across all points from last to first - exactly
as I originally described, and count the winding directions of each, taking
the greater of the two.

  
Sorry, that doesn't work consistently either. Picture a regular 12-sided 
figure, with two sides vertical, and defined counter-clockwise. The c-p 
will give the same answer for all 12 vertices. Then draw a much larger 
square around it, such that one of the vertical sides of the square 
overlaps the vertical side of the shape (and the square encloses the 
shape). Now "erase" the line segment which is shared - we now have a 
16-sided figure, and let's define it in the order that the points from 
the original 12-sided figure remain counter-clockwise. (Note that the 
area inside the original figure is now outside this new figure). This 
new  figure is actually (according to humans :-) defined clockwise - but 
the c-p will still give the same answer for all those original points, 
so it would have 10 saying counter-clockwise, and only the 6 new ones 
would say clockwise - and hence get the wrong answer.

2. If you know the majority of your polygons are shaped a particular way, an
often-used trick is to take P(N), P(2), and P(1) and simply use those as a
quick and dirty test.

Option #1 will produce the desired, correct result, but takes more time.
Option #2 can very often be wrong, but given your use-cases could be right
100% of the time.
  

Option #1 gives unreliable answers in some cases, such as the example above.
Option #2 gives very unreliable answers

And there are simple (though not super-fast) solution that get the 
answer correct (i.e. agreeing with what a person would say) for all 
cases where people would agree.


There are more complex cases (e.g. self-inverting polygons, which you 
could argue are malformed polygons) where there is probably no correct 
answer.


-- Alex.
___
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: Polygonflow: clockwise or counter-clockwise?

2010-02-03 Thread Jeff Massung
On Wed, Feb 3, 2010 at 6:22 PM, Alex Tweedly  wrote:

> Jeff Massung wrote:
>
>> Michael,
>>
>> Sorry, but the problem you are running into is that (in your second
>> example)
>>
>>
> The examples were from me (Alex) not Michael :-)
> 
>

Lol, I noticed that just as I hit "send" ;-)

Yes. There are insane cases for which there may - in fact - be no correct
answer (especially if the polygon does intersect with each other... at which
point the debate begins on the definition of "polygon" beyond just being "an
n-sided object").

Neither of us can say what Michael's original use cases are/were, and
hopefully the cross-product solution works for him just fine.

The options I gave for concave polygons (assuming no intersections) do work
and are used in tessellation algorithms and elsewhere. There's no need to
complicate the solution w/o even knowing if the problem warrants it. ;-)

Jeff M.
___
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: Polygonflow: clockwise or counter-clockwise?

2010-02-03 Thread Alex Tweedly

Alex Tweedly wrote:


I'll post a couple of suggested solutions shortly (once I've got the 
stack running properly)


There are two approaches (at least) that consistently get the same 
answers as we all intuitively "know" are correct.


By AREA.

Calculate the (signed) area between each edge and some baseline (i.e. 
the area enclosed by the edge itself, its projectino onto the baseline 
and the two projection lines). Sum this area for all edges. Looking at 
whether this is positive or negative gives an answer.


By Point.

Find the leftmost, lowest point (**). (i.e. the one with the lowest X 
value, and of all those having the same X value, the lowest Y value).
(Note that this same point (value) can occur multiple times in a 
polygon, due to self-intersection or self-overlapping polygons - this 
doesn't matter, just pick any of those points).  Looking at the previous 
and next points, determine the change of direction implied for these two 
edges (you could use the cross-product to do this, or simply normalize 
and compare the gradients).


(**) - this description assumes 'normal' cartesian coordinates. Beware 
that RunRev uses a coordinate system where the vertical axis is 
"upside-down", so increasing Y values are associated with moving downawards.


Some sample code - adopted from elsewhere (and translated into revtalk) 
- with only moderate testing, but I'm fairly confident I converted it 
fairly accurately.

(It's a bit wordy, but seemed clearer that way).

constant kDebug  = false
on mouseUp
   put empty into field "F"
   repeat with i = 1 to the number of controls
  if char 2 to -2 of word 2 of the name of control i = "Polygon" then
 repeat for each line L in the points of control i
put L & "; " after field "F"
 end Repeat
 put CR after field "F"
 if calculateflowusingarea (i, kDebug) then
put "counterclockwise" & CR after field "F"
 else
put "clockwise" & CR after field "F"
 end if
 if calculateflowusingpoint (i, false) then
put "counterclockwise" & CR after field "F"
 else
put "clockwise" & CR after field "F"
 end if
  end if
   end repeat
end mouseUp
   
function calculateflowusingarea P, pDebug

   put the points of control P into tPoints
   put item 1 of line 1 of tPoints into x2
   put item 2 of line 1 of tPoints into y2
   put 0 into total
   repeat for each line L in tPoints
  put x2 into x1
  put y2 into y1
  put item 1 of L into x2
  put item 2 of L into y2
  put (x2-x1) * (0.5*(y1+y2)) into t
  if pDebug then put (x2-x1) && (x2-x1)*0.5*(y2+y1) && x1 && y1 && 
x2 && y2 && t & CR after field F

  add t to total
  put L into tLast
   end repeat
   
   -- close the polygon in the case where Rev has an open polygon

   if tLast <> line 1 of tPoints then
  put x2 into x1
  put y2 into y1
  put item 1 of line 1 of tPoints into x2
  put item 2 of line 1 of tPoints into y2
  put (x2-x1) * (0.5*(y1+y2)) into t
  if pDebug then put (x2-x1) && (x2-x1)*0.5*(y2+y1) && x1 && y1 && 
x2 && y2 && t & CR after field F

  add t to total
   end if
   if pDebug then put "Total is " & total & CR after field "F"
   return total > 0   -- i.e. true if the polygon is counter-clockwise
end calculateflowusingarea
   
function calculateflowusingpoint P, pDebug

   put the points of control P into tPoints
   -- find the leftmost, lowest point   
   put item 1 of line 1 of tPoints into x

   put item 2 of line 1 of tPoints into y
   repeat with i = 1 to the number of lines in tPoints
  if item 1 of line i of tPoints < x or \
(item 1 of line i of tPoints = x and item 2 of line 1 of 
tPoints <= y) then

 put item 1 of line i of tPoints into x
 put item 2 of line i of tPoints into y
 put i into tOne
  end if
   end repeat

   -- find the adjacent points

   switch tOne
  case 1
 put the number of lines in tPoints into tPrev
 put 2 into tNext
 break
  case the number of lines in tPoints
 put tOne-1 into tPrev
 put 1 into tNext
 -- special case where the poly is already closed !!
 if line tOne of tPoints = line 1 of tPoints then put 2 into tNext
 break
  default
 put tOne-1 into tPrev
 put tOne+1 into tNext
 break
   end switch
   
   if pDebug then put x && y && tPrev && tOne && tNext & CR after 
field "F"
   if pDebug then put line tPrev of tPoints && x && y && line tNext of 
tPoints & CR after field "F"

   -- now deal with the end-cases
   if item 1 of line tPrev of tPoints = x then return false -- 
incoming edge is vertical, so counter

   if item 1 of line tNext of tPoints = x then return true -- outgoing ...
   -- so can safely that x-delta's are non-zero
   put (y-item 2 of line tPrev of tPoints) / (x-item 1 of line tPrev 
of tPoints) into yprev
   put (y-item 2 of line

Re: Getting data from a secure web page

2010-02-03 Thread Sarah Reichelt
OK, I think I'm going round in every decreasing circles but I
thought I would describe the steps I am taking, in case anyone else
found it useful.


Using Firefox and Firebug to check what is going on, I see the following:

I connect to .
I enter my details and these get POST'ed.
The result is a 302 that redirects to
, using GET with no
parameters.
This page has the data that I need.

As far as I can see, there are no authentication headers, although
there is response header: "Set-Cookie:global_auth=".

But checking the request headers for the second page (after the 302),
I see that there was a header:
"Cookie:JSESSIONID=444F4BE5150F4897E7B2A88BB12E7D5D; global_auth=..."

Not surprisingly, the global_auth section of the Cookie matches
global_auth section of the Set-Cookie response from the original page.
The JSESSIONID seems to be generated by the browser as part of the
original request.

Setting the httpHeaders to this and using
get URL "https://memberservices.optuszoo.com.au/myusage/";
with no user name & password supplied, did give me the data I
needed sometimes :-(


Both the JSESSIONID and the global_auth vary on repeated tests,
although I can see my user name embedded in the global_auth, as well
as a consistent set of numbers that is presumably my password
encrypted.

I have found that sometimes I get a JSESSIONID returned as part of the
libURLLastRHHeaders() from the login page, and sometimes I get the
global_auth. But I haven't been able to predict what I will get. If I
don't get the global_auth, then even using a previous JSESSIONID &
global_auth does not seem to work.

Sigh.


Trevor, I downloaded your framework and got the modified libURL, but
the stack won't open - it says it is corrupt. I wonder is this due to
the multi-dimensional arrays stored as custom properties bug?
I opened the stack in a text editor and copied the scripts into a new
stack and tried using it instead, but not even a basic "get" worked
then, so I can't have done that right.

So a few questions for Trevor:
- is there a version of your libURL that opens in Rev 4.0 or 4.5?
- how do I make it the default instead of the current one?
- how do I set up the callback? I am familiar with using callbacks for
the asynchronous FTP commands but then I create a handler that gets
the callback message and processes it. What do I need to do in this
callback handler to make it follow the redirect?


Jim, I found your earlier thread about this sort of thing, but even
following your advice about headers, I still can't get it to work
reliably.

Thanks everyone for your patience and helpful suggestions.

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


On-Rev Long Delays (final pass)

2010-02-03 Thread Bob Sneidar
Hi all. 

I am going to make one more attempt at this before I drop it. When I try to 
execute queries against the on-rev mySQL server, and there has been a long 
period of idle time, the query takes a very long time to execute, and in the 
end the query fails. Even a simple query like "SHOW TABLES" will fail so I know 
it is not my Sequel that is the problem, and anyway, when I copy/paste my 
Sequel to an SQL utility, it works famously. 

It is my opinion that on-rev does not respond to queries made with a dropped 
connection, even to report an error. Normally a local mySQL server would return 
some kind of error, but I believe that the on-rev site has a mechanism, perhaps 
to prevent a brute force attack, whereby it will not respond to bad 
connections. 

If anyone can confirm or deny this theory it would help me sleep much better. 

Bob


___
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 data from a secure web page

2010-02-03 Thread Trevor DeVore

On Feb 3, 2010, at 7:40 PM, Sarah Reichelt wrote:


Trevor, I downloaded your framework and got the modified libURL, but
the stack won't open - it says it is corrupt. I wonder is this due to
the multi-dimensional arrays stored as custom properties bug?
I opened the stack in a text editor and copied the scripts into a new
stack and tried using it instead, but not even a basic "get" worked
then, so I can't have done that right.


The custom version of libURL is actually a plain text document. Here  
are the instructions for installing it:


http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5615-How-Do-I-Install-the-Custom-Version-of-libURL-

This version of libURL will also handle cookies for you seamlessly.


So a few questions for Trevor:
- is there a version of your libURL that opens in Rev 4.0 or 4.5?
- how do I make it the default instead of the current one?


See instructions.


- how do I set up the callback? I am familiar with using callbacks for
the asynchronous FTP commands but then I create a handler that gets
the callback message and processes it. What do I need to do in this
callback handler to make it follow the redirect?


libURLSetFollowRedirectCallback registers a callback:

libURLSetFollowRedirectCallback pMessage, pObject

Just pass the name of the message that should be sent and the long id  
of the object the message should be sent to. If no object is specified  
then it is assumed the callback message is in the message path.


From the callback you should return "redirect" if you would like to  
try the POST again using new url. Return "get" if you want to GET the  
contents of the new URL. Return anything else to let libURL do what it  
would normally do.


libURLSetFollowRedirectCallback "RedirectRequestCallback", the long id  
of stack "MyStack"


command RedirectRequestCallback pMethod, pURL, pStatusCode, pRedirectURL
-- return "redirect" or "get" or empty
end RedirectRequestCallback

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Getting data from a secure web page

2010-02-03 Thread Sarah Reichelt
> The custom version of libURL is actually a plain text document. Here are the
> instructions for installing it:
>
> http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5615-How-Do-I-Install-the-Custom-Version-of-libURL-
>
> This version of libURL will also handle cookies for you seamlessly.
>
>> So a few questions for Trevor:
>> - is there a version of your libURL that opens in Rev 4.0 or 4.5?
>> - how do I make it the default instead of the current one?
>
> See instructions.
>
>> - how do I set up the callback? I am familiar with using callbacks for
>> the asynchronous FTP commands but then I create a handler that gets
>> the callback message and processes it. What do I need to do in this
>> callback handler to make it follow the redirect?
>
> libURLSetFollowRedirectCallback registers a callback:
>
> libURLSetFollowRedirectCallback pMessage, pObject
>
> Just pass the name of the message that should be sent and the long id of the
> object the message should be sent to. If no object is specified then it is
> assumed the callback message is in the message path.
>
> From the callback you should return "redirect" if you would like to try the
> POST again using new url. Return "get" if you want to GET the contents of
> the new URL. Return anything else to let libURL do what it would normally
> do.
>
> libURLSetFollowRedirectCallback "RedirectRequestCallback", the long id of
> stack "MyStack"
>
> command RedirectRequestCallback pMethod, pURL, pStatusCode, pRedirectURL
>    -- return "redirect" or "get" or empty
> end RedirectRequestCallback


Thanks for all this Trevor. I installed your custom libURL fine thanks.

It now redirects but it doesn't get me where I want, instead I get:
You must be logged in with a parent account to
access this functionality.

So progress, but still not there

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: How to use Applescript to Run RunRev

2010-02-03 Thread Emmett Gray
On Wed, 3 Feb 2010 22:07:46 +0100, zryip theSlug 
 wrote:


2010/2/3 Emmett Gray :

 How do you tell Rev to do something useful via applescript?


 Simply specify the stack you need as follows:
tell application "Revolution" to do script "create card to stack 
\"TheSlugLab\""


Well this gave me confidence that this should be easy. So I tried 
doing something else trivial - just navigating to a card. Bingo. So 
then I R'dTFM. There's a tip at the bottom of the dictionary page on 
"create card" that I missed. It says you need to do this:

  set the defaultStack to "My Stack"
  create card
and lo and behold, it worked as did everything else I added to my 
script. Yay. And thanks for the tip about using backslashes to escape 
the quotes instead of the cumbersome & quote & syntax.


If Rev isn't already running, I couldn't get it to open the stack I 
want to use. So I used the Finder.


tell application "Finder"
if (exists process "Revolution") is false then
tell application "Revolution Media" to activate
delay 2 -- otherwise the freeware nag window stays in front
end if
open alias "path:to:myStack"
end tell
tell application "Revolution Media"
do script "go stack \"myStack\"
set the defaultStack to \"myStack\"
create card"
-- etc. etc.
end tell
___
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: iPadding around? Video glasses (OT)

2010-02-03 Thread Petrides, M.D. Marian

mated to a pair of LCD 3D compatible goggles + earphones.

Oooh I love the idea!  Video glasses that not only  
simulate a 50 inch screen but also do HD 3G.  Now THAT I could go for!!


But, then I'm not sure where the iPad would fit into this schema,  
since  the video glasses should obviate the need for a video screen  
and could just as easily be used with an iPod nano as video source.  
Oh, well...



___
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: Hinduism Today Navigator - Alpha Test Open

2010-02-03 Thread Sivakatirswami

Namaste, Aloha and "Oi" from Kauai, Hawaii and Niteroi, Brazil:

Hinduism Today and Andre Garzia are happy to announce that the latest 
incarnation of Hinduism Today Digital Edition has been released under a 
new name:


Hinduism Today Navigator

I want to thank both Andre for his hard work on this and Trevor DeVore 
for the brilliant additions to our RunRev world, the data grid, SQL yoga 
and GLX that Andre used to build this and RunRev for the new graphic 
effects which finally make people say "Wow, it's beautiful!"  And to 
Jerry Daniels for making development process with tRev, so "sweet".


We would like anyone who has time to hammer hard on this one:

http://www.hinduismtoday.com/modules/wfchannel/index.php?wfc_cid=29

FYI: this is a broadband product (free)  We bundle a lot of content with 
the standalone, for a 30MB download, after that, online line 
transactions are small unless you ask for a  PDF.


Send any "no holds barred" feedback  to

ka...@hindu.org
an...@andregarzia.com

Sorry, no Linux version: our media player requires Flash to run inside 
the RevBrowser window.


I'm calling this a beta version but Andre prefers "alpha" -- in case you 
find any bugs then we can just say:


"Well, its an alpha version after all... " (smile)

but in house tests on 8 different Macs and 10 different Windows users 
all look good so we are widening the test group to include all RunRev'ers.


All the best from Chilly Kauai. When I went for a swim in the Wailua 
this morning, air was about 54 and the water 65... that's about as cold 
as it gets here.


Thank you for taking the time to try it out.

Sivakatirswami

ps. Is anyone seeing the 20 pixel "menu shift" bug? appears as a strip 
of background at the bottom of the stack/card that should not be there.


And if anyone is connecting through a proxy, we would like to know that 
is working.



___
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: Links to programs in Windows?

2010-02-03 Thread Jim Bufalini
Kresten,

The quickest way on a PC would be to use the registry because it is in
memory. But, if you are not comfortable with this, you can get a complete
list of all "installed" programs on a PC by walking down the Program Files
directory and all of it subdirectories and looking for .exe files. I don't
think you are going to find what you are looking for where you are looking
because even if it exists, it would contain .lnk files which are shortcuts
themselves.

Here is some code you could use to get a list of all EXE files on XP and
Vista/7. It can take a while (many seconds on a large system) because for
example, in my case there are almost 20,000 directories to search because
you cannot look at just the root directories under Program Files because
programs like Word are in sub-sub-directories. 

You will also probably end up with a much larger list of programs than you
need, so you will probably want to add filters by say having a list of
directories you are interested in and skip entire directory trees if they
are not on your list. But any way, this following code will give you all
programs on a PC. You can modify it with filters to shorten its search. I
didn't use recursion, because you can easily hit the recursion limit.

local sFolderList, sProgramList, sCnt

ON mouseUp pMouseBtnNo
put 0 into sCnt
put empty into sFolderList
put empty into sProgramList
GetAllExecutables
REPEAT WHILE line 1 of sProgramList <> "Done"
  -- Necessary because not using recursion
wait 0 milliseconds with messages 
END repeat
put sProgramList -- Test line can be removed
delete line 1 of sProgramList
-- Do any processing of sProgramList here
END mouseUp

ON GetAllExecutables pCurrentFolder
local tRootFolder, tFileList, tSubFolderList

put "C:/Program Files/" into tRootFolder
IF sFolderList is empty THEN
SET the defaultfolder to tRootFolder
put URLDecode(the folders) into sFolderList
filter sFolderList without ".*"
-- You can filter other directories out here
put line 1 of sFolderList into pCurrentFolder
END if
IF pCurrentFolder is empty THEN exit GetAllExecutables
IF char -1 of pCurrentFolder <> "/" THEN put "/" after pCurrentFolder
SET the defaultfolder to (tRootFolder & pCurrentFolder & "/")
put the files into tFileList
filter tFileList with "*.exe"
filter tFileList without "uninstall*"
REPEAT FOR each line tFile in tFileList
put (the defaultFolder & "/" & tfile) into line (the number of lines
in sProgramList +1) of sProgramList
END repeat
delete line 1 of sFolderList
put URLDecode(the folders) into tSubFolderList
filter tSubFolderList without ".*"
IF tSubFolderList <> empty THEN
REPEAT FOR each line tSubfolder in tSubFolderList
put pCurrentFolder & tSubFolder & "/" & cr before sFolderList
END repeat
END if
IF sFolderList is empty THEN 
put "Done" & cr before sProgramList
exit GetAllExecutables
END if
put line 1 of sFolderList into pCurrentFolder
-
add 1 to sCnt -- Test line can be removed
put sCnt -- Test line can be removed
-
send "GetAllExecutables" && pCurrentFolder to me in 0 milliseconds --
use send to not hit recursion limit
END GetAllExecutables

Aloha from Hawaii,

Jim Bufalini




Kresten Bjerg wrote:

> Thank you for the meticulous answer. However, I am  a dilletant and
> cannot see my way through all this.
> 
> We have this process:
> 
> answer file "select a program" with "/C:/Documents and
> settings//Start Menu/Programs"
> 
> , and  it is  a function which shall permit novice computer users to
> produce a few buttons inside their personal electronic diary
> 
>  ,permitting them to open the few other programs they will tend to use,
> perhaps word, picasa, mail-program, calculator, checkers...etc
> 
>  simplifying their everyday, and having their use of such programs
> logged (timeindexed) into the diary.
> 
> The paradox is, that in windows, they can open the start menu, go to
> programs, and see all programs there,
> 
> and we can move down  the directories manually, and find all these
> links
> in the Start Menu/Programs  folder.
> 
>  But Revolution cannot find them , just find a very few of them, by
> that
> Answer line.
> 
> 
> 
> I Understand, that the line may have to be changed, in order to fit
> windows 7, - but as long as it doesn't work  even on  Windows XP
> 
>   that seems to be a secondary question.
> 
> Maybe many scriptlines have to be concocted, to produce an acceptable
> result corresponding to what can be done so simply in Mac,
> 
>  calling "Applications".
> 
> So,pragmatically: how would you script to solve the problem.
> 
> That a few programs may escape, is not a serious problem in this
> context.
> 
> Still hopefully
> 
> Kresten
> 
> 
> 
> www.phenomenalog.dk 
> www.phenomenalog.wikispaces.com
>