Re: Naming Custom Properties

2010-04-16 Thread J. Landman Gay
Vokey, John wrote: However, to be consistent, the name of the custom property should be a quoted literal when not the contents of a variable name Sorry, I disagree with you too. :P Properties, custom or otherwise, aren't quoted. Only literal text strings are quoted. We don't do this: put t

Re: How to generate a runnable Mac standalone from Windows

2010-04-16 Thread Kay C Lan
Douglas, good point ;-))) On Thu, Apr 15, 2010 at 4:56 AM, Douglas wrote: > > Computer users are just the same - > What do you mean I shouldn't have washed it? > You never told me there was a switch at the back! > etc. etc. > > Brains are an optional extra, no matter what people are doing. > >

Re: Naming Custom Properties

2010-04-16 Thread Gregory Lypny
Thanks for all of the responses! It appears that few of you experience the same problem as me, although everyone has naming conventions that avoid possible name conflicts. One observation, though, with respect to Craig Newman's example. When I call on the custom prop from within the same hand

Re: Naming Custom Properties

2010-04-16 Thread Peter Brigham MD
On Apr 16, 2010, at 2:06 PM, dunb...@aol.com wrote: I have no issue with this. I remember a while back that single char properties or variables caused a problem. I tested this in a button: on mouseenter put random(99) into xxx set the xxx of me to xxx put the xxx of me end mouseenter

Re: Same file?

2010-04-16 Thread Richard Gaskin
Paul D. DeRocco wrote: From: Richard Gaskin Andre wrote: > put the md5digest of url ("binfile:" & path1) into tMD5file1 > put the md5digest of url ("binfile:" & path2) into tMD5file2 > if tMD5file1 is tMD5file2 then > return true > else > return false > end if Andre, you've been programmi

Re: Scrolling in image

2010-04-16 Thread Ian Wood
Group the image, set the size of the group to the size of the card and lock it's position. You can then add scrollbars. If you want more 'direct' mouse interaction take a look at the Grab command in the dictionary, or wait for one of the other members to post some more sophisticated code f

Re: Naming Custom Properties

2010-04-16 Thread Vokey, John
If you note in the Dictionary there is a comment from me on this ``hiccup'' of the custom properties, and it represents a long-standing complaint of mine (i.e., that all custom property names should be quoted literals or the contents of some variable). The problem is this: if variable fred has

Scrolling in image

2010-04-16 Thread edward cawley
I have a large map image on a card, bigger than the cd window. I would like to scroll around the map by moving the image within the window using the mouse. Ed ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to su

RE: Same file?

2010-04-16 Thread Paul D. DeRocco
> From: Richard Gaskin > > Andre wrote: > > > put the md5digest of url ("binfile:" & path1) into tMD5file1 > > put the md5digest of url ("binfile:" & path2) into tMD5file2 > > if tMD5file1 is tMD5file2 then > > return true > > else > > return false > > end if > > Andre, you've been programming

Re: Referencing a stack from a front script

2010-04-16 Thread Tereza Snyder
On Apr 16, 2010, at 1:50 PM, Peter Haworth wrote: > My app inserts some front scripts from a separate .rev file, then calls a > handler in the front script that needs to reference the application's .rev > file, specifically to create a stack as a substack of the application's main > stack if i

Re: revWeb: Same Site Policy

2010-04-16 Thread David Bovill
Great! On 16 Apr 2010, at 23:26, BNig wrote: > > David, > I did a revlet that loads a QTVR-movie from the server the revlet is > hosted. > In the security settings I chose manual and did not check anything. > (If you > let it do an automatic security setting it will put up the security > dialog)

Re: speaking of gif animations

2010-04-16 Thread Tereza Snyder
On Apr 15, 2010, at 4:52 PM, Nicolas Cueto wrote: > Somewhat off topic. > > At times I make my own gif animations (Fireworks), and when these are > imported to a Rev stack, the gifs sometimes play well and sometimes > not. To make the gif I use a lot of copying directly from one frame to > the n

Re: Same file?

2010-04-16 Thread Richard Gaskin
Andre wrote: put the md5digest of url ("binfile:" & path1) into tMD5file1 put the md5digest of url ("binfile:" & path2) into tMD5file2 if tMD5file1 is tMD5file2 then return true else return false end if Andre, you've been programming too deeply for too long. :) MD5digest is great for stor

Re: Naming Custom Properties

2010-04-16 Thread Jim Ault
On Apr 16, 2010, at 2:36 PM, Mark Swindell wrote: I always use gGlobalVar, vLocalVar, and cpCustomProp just so I know what's what. With these prefixes I never seem to have any conflict. Mark I agree with Mark about prefixes to avoid reserved word conflicts + debugging at a later date zG

Re: Same file?

2010-04-16 Thread Andre Garzia
tricky, if you can trust the input (meaning you assembled it and not your user) then something along the lines of shell("cd" && path1 &&"; pwd") will return a root relative path, you can use them to compare the folders. I believe pwd is unix-like only, don't know the windows equivalent. Also be

Re: Same file?

2010-04-16 Thread Jeff Massung
Ya, I really don't want to compare the data in the files, just whether the paths point to the same final location. Thanks, though. Jeff M. On Fri, Apr 16, 2010 at 5:19 PM, Andre Garzia wrote: > Jeff, > > put the md5digest of url ("binfile:" & path1) into tMD5file1 > put the md5digest of url ("

Re: revWeb: Same Site Policy

2010-04-16 Thread BNig
David, I did a revlet that loads a QTVR-movie from the server the revlet is hosted. In the security settings I chose manual and did not check anything. (If you let it do an automatic security setting it will put up the security dialog) It works without asking for permissions http://berndniggemann.

Re: Same file?

2010-04-16 Thread Andre Garzia
Jeff, put the md5digest of url ("binfile:" & path1) into tMD5file1 put the md5digest of url ("binfile:" & path2) into tMD5file2 if tMD5file1 is tMD5file2 then return true else return false end if PS: this checks for the equality of files no matter the path, if you want just to see if the path

Re: Same file?

2010-04-16 Thread Björnke von Gierke
if there is a file "any/valid/rev/internal/path" then On 16 Apr 2010, at 23:21, Jeff Massung wrote: > Is there a nice little way in Rev to check and see if two file paths are the > same? For example: > > "../../../Home/jeff/foo.txt" > "/Users/Home/jeff/foo.txt" > "c:\Users\Home\jeff\foo.txt" >

Re: Naming Custom Properties

2010-04-16 Thread Mark Swindell
I always use gGlobalVar, vLocalVar, and cpCustomProp just so I know what's what. With these prefixes I never seem to have any conflict. Mark On Apr 16, 2010, at 2:19 PM, stephen barncard wrote: > In naming custom props and vars, I try to avoid anything that might 'look' > like any function or

Same file?

2010-04-16 Thread Jeff Massung
Is there a nice little way in Rev to check and see if two file paths are the same? For example: "../../../Home/jeff/foo.txt" "/Users/Home/jeff/foo.txt" "c:\Users\Home\jeff\foo.txt" These may all actually be the same file. Before I go down the road of directory traversals, file path separators, an

Re: Naming Custom Properties

2010-04-16 Thread stephen barncard
In naming custom props and vars, I try to avoid anything that might 'look' like any function or command name, not starting with a number, and using underscore or dash instead of spaces. However array key names ( myArray["text"] ) seem to be able to work against some of these rules (as long as quo

Re: OT: Microsoft is really annoying

2010-04-16 Thread David Coker
Thought I might throw out some advice that has really made a huge and very important difference for me... I can't speak for others, but it takes between 25-28 hours for me to re-install windows, all of the windows updates and my software in the event of a major malfunction. (virus-wise or just the

Re: RunRev and Alcoholics Anonymous.

2010-04-16 Thread Mark Schonewille
Richmond, I was able to take a sip, but it was a sour experience. The libraries to render images are lacking. I believe this subject came up a few years ago already. Have you ever had a good experience with either young or ripe RunRev in combination with any year of Wine? -- Best regards,

Re: RunRev and Alcoholics Anonymous.

2010-04-16 Thread François Chaplais
I have CrossOver for Mac, which lies atop of WINE. They have "bottles" which are specially crafted implemented versions of WINE in order to make the software run as well as possible... It took me some time to get the pun, as I have stopped drinking alcohol for quite a few years now. Le 16 avr.

Re: Clang: the thought behind Apple's insistence upon Xcode

2010-04-16 Thread François Chaplais
Le 16 avr. 2010 à 00:02, Douglas a écrit : > Hello François, > The iPad uses an ARM processor, not a G4. typo. I meant A4. Cheers, François ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, uns

Re: OT: Microsoft is really annoying

2010-04-16 Thread Richmond Mathewson
On 16/04/2010 23:14, J. Landman Gay wrote: Paul D. DeRocco wrote: Despite all this, I've _never_ had a virus or any kind of malware. My only system failures have been the occasional result of a RAM or hard disk failure. So either I'm doing something terribly right, or you all are doing some

Re: OT: Microsoft is really annoying

2010-04-16 Thread J. Landman Gay
Paul D. DeRocco wrote: Despite all this, I've _never_ had a virus or any kind of malware. My only system failures have been the occasional result of a RAM or hard disk failure. So either I'm doing something terribly right, or you all are doing something terribly wrong. I haven't had a virus ei

Re: revWeb: Same Site Policy

2010-04-16 Thread David Bovill
Mark the issue is whether the end user will be presented with a security dialog? This should not happen if the url of the linked media is from the same site - I assume that this is the case as with Flash for instance - but the recent Lesson posted worried me? On 16 April 2010 20:25, Mark Schonewi

RE: OT: Microsoft is really annoying

2010-04-16 Thread Paul D. DeRocco
> >> Bernard Devlin wrote: > >> > >> I think all Windows installations must be assumed to be toxic. > > On 16/04/2010 21:05, J. Landman Gay wrote: > > > > Yes, that's the assumption I use too. It's also the reason I'm so much > > in favor of running Windows in a virtual machine. In Parallels (an

Re: revWeb: Same Site Policy

2010-04-16 Thread Mark Schonewille
David, I believe it is best to consider a RevLet as a stack running on a local computer (which it basically is). As such, it is a local application that downloads data from a website. The URL where the RevLet comes from and other URL's are dealt with equally. -- Best regards, Mark Schone

revWeb: Same Site Policy

2010-04-16 Thread David Bovill
What is revWebs policy on referencing urls from the same site as the revLet is hosted: http://en.wikipedia.org/wiki/Same_origin_policy ? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and m

RunRev and Alcoholics Anonymous.

2010-04-16 Thread Richmond Mathewson
Thought I would try to be clever and install the Windows version of RevStudio 4.0 on Ubuntu 10.04 Beta 2 under WINE . . . :) No Joy! Black screen and "that was that". Anybody else tried? ___ use-revolution mailing list use-revolution@lists.runrev.co

Re: OT: Microsoft is really annoying

2010-04-16 Thread Richmond Mathewson
On 16/04/2010 21:05, J. Landman Gay wrote: Bernard Devlin wrote: I think all Windows installations must be assumed to be toxic. Yes, that's the assumption I use too. It's also the reason I'm so much in favor of running Windows in a virtual machine. In Parallels (and maybe other emulators t

Re: Running multiple gif animation slow down Rev

2010-04-16 Thread Richmond Mathewson
On 15/04/2010 22:11, Alejandro Tejada wrote: Hi all, Could you verify on your configuration if running 64 gif animations on the same card slow down user interaction in Rev? To test this, import an animated gif and using the menu "Replicate" create 63 copies. I am building a game interface and

Referencing a stack from a front script

2010-04-16 Thread Peter Haworth
My app inserts some front scripts from a separate .rev file, then calls a handler in the front script that needs to reference the application's .rev file, specifically to create a stack as a substack of the application's main stack if it doesn't already exist , then add several cards to it.

Re: Naming Custom Properties

2010-04-16 Thread DunbarX
I have no issue with this. I remember a while back that single char properties or variables caused a problem. I tested this in a button: on mouseenter put random(99) into xxx set the xxx of me to xxx put the xxx of me end mouseenter gives a bunch of random number whenever you enter t

Re: OT: Microsoft is really annoying

2010-04-16 Thread J. Landman Gay
Bernard Devlin wrote: I think all Windows installations must be assumed to be toxic. Yes, that's the assumption I use too. It's also the reason I'm so much in favor of running Windows in a virtual machine. In Parallels (and maybe other emulators too, I'm not sure,) you can set a sort of book

Naming Custom Properties

2010-04-16 Thread Gregory Lypny
Hello everyone, I vaguely, very vaguely, recall that a custom property should have a name that is different from the variable to which it is being set. So, for example, if myArray is the variable, then set the myPropArray of this stack to myArray is fine, but set the myArray

Re: OT: Microsoft is really annoying!

2010-04-16 Thread Bill Vlahos
Not just "rare". There are no viruses for the Mac other than the old Microsoft Office viruses. There are some other trojans for the Mac but they are rare and are not really found in the wild. Of course, those need the user's assistance to run as well. One of the advantages of Sean Shao ssMacWin

Punching holes in a graphic

2010-04-16 Thread Geoff Canyon Rev
Here's the effect I'm trying to achieve: I have an image on the card. I want to partially obscure the image, making it desaturated/darker/something like that, and then have areas of the image that show through unaltered (preferably roundrect areas). I can obscure the image by putting an opaque gra

Re: Stopping Handlers

2010-04-16 Thread Robert Brenstein
On 14.04.2010 at 12:08 Uhr -0500 J. Landman Gay apparently wrote: Andrew Kluthe wrote: I have a moveStack handler that triggers sometimes accidentally before all of my windows open and causes it to error out and not finish opening what is needed for the application. Can I use lock messages in m

Re: OT: Microsoft is really annoying!

2010-04-16 Thread Richard Gaskin
Bernard Devlin wrote: As an aside, I have for years wondered if it wasn't the anti-virus vendors themselves who pay certain shady characters to come up with these viruses. Food for thought. <<< This thought has occurred to me too. Tempting as such a thought may be, consider that since most W

Re: Debian, Sidux, Ubuntu, reference distributions for Rev

2010-04-16 Thread Peter Alcibiades
CyberAuditWeb, don't know it, must have been written by idiots. I met a case of a product that was intentionally locked to not simply a particular edition of Windows, but a particular installation of it on a particular computer. Not a reason never to use Windows again. Your problem is not with

Re: OT: Microsoft is really annoying!

2010-04-16 Thread Bernard Devlin
>>> As an aside, I have for years wondered if it wasn't the anti-virus vendors themselves who pay certain shady characters to come up with these viruses. Food for thought. <<< This thought has occurred to me too. Bernard ___ use-revolution mailing list

Re: OT: Microsoft is really annoying

2010-04-16 Thread Bernard Devlin
>> In any case, since I have "disassembled" the Internet Explorer in the way I described in my last post, I am - until now - no longer the target of such annoying intrusions, or is this merely a coincidence in time? << I think the risk is too great to assume your PC is now safe. At the very least

Re: OT: Microsoft is really annoying

2010-04-16 Thread Wilhelm Sanke
On Thu Apr 15, 2010, Bob Sneidar bobs at twft.com wrote: Hi Wilhelm. I know pretty much why all of these things you mentioned work the way they do but I will not go into that here. What you have is a particularly nasty flavor of spyware, that has several processes that checks up on the other