Re: Check Sum

2007-04-23 Thread Scott Kane
Hi Chipp, Don't know if this helps at all, but here's how I calculate checksum's for files: function getChecksum pFilePath if there is not a file pFilePath then return "" return URLencode(md5digest(URL ("binfile:" & pFilePath))) end getChecksum Actually it certainly is. One of the thing

Re: Was cgi for slide show

2007-04-23 Thread Jim Ault
On 4/23/07 6:39 PM, "Hershel Fisch" <[EMAIL PROTECTED]> wrote: > On 4/23/07 8:31 PM, "Bill Marriott" <[EMAIL PROTECTED]> wrote: >> The META tag has a "refresh" parameter which automatically switches to >> slide2.html after 5 seconds. > Thanks, that¹s my question, what is the file "slide2.html"? > O

Quitting on a Mac

2007-04-23 Thread Thomas Speitel
I have a shutdownrequest handler for a Mac System 10 application that gives the user opportunity to save a field's contents before quitting. I realized that the field disappears before it can be saved so I put the following script in the menubar to capture the contents into a variable that

Re: Where is the UBIQUITOUS Plugins folder on the Mac?

2007-04-23 Thread Mark Wieder
Chipp- Monday, April 23, 2007, 2:25:03 PM, you wrote: > I seem to remember someone making a stack which auto-created these > directories...as they aren't created by Rev. Seems Mark Weider was > involved, though I don't know for sure. I know Galaxy auto-creates > them for you when it's first insta

Re: Was cgi for slide show

2007-04-23 Thread Hershel Fisch
On 4/23/07 10:05 PM, "Bill Marriott" <[EMAIL PROTECTED]> wrote: Thanks, got it. Hershel > The html file is a "wrapper" for the image file. In this technique, each JPG > has an associated HTML file. > > If you have five JPGs, > > picture1.jpg > picture2.jpg > picture3.jpg > picture4.jpg > picture

Re: Was cgi for slide show

2007-04-23 Thread Bill Marriott
The html file is a "wrapper" for the image file. In this technique, each JPG has an associated HTML file. If you have five JPGs, picture1.jpg picture2.jpg picture3.jpg picture4.jpg picture5.jpg then you would create five HTML files... index.html slide2.html slide3.html slide4.html slide5.html

Re: Was cgi for slide show

2007-04-23 Thread Jim Ault
google for META HTTP-EQUIV="Refresh" CONTENT= and there are several examples, etc. Jim Ault Las Vegas On 4/23/07 4:48 PM, "Hershel Fisch" <[EMAIL PROTECTED]> wrote: > Hi all, This was a post a while ago and I'm trying to figure this out > can some one brake this down for me pleease? > Thanks

Re: Was cgi for slide show

2007-04-23 Thread Hershel Fisch
On 4/23/07 8:31 PM, "Bill Marriott" <[EMAIL PROTECTED]> wrote: > The META tag has a "refresh" parameter which automatically switches to > slide2.html after 5 seconds. Thanks, that¹s my question, what is the file "slide2.html"? Or, folder "mySlideShow" which contains e.g. 5 .jpg files, for the slid

Re: Was cgi for slide show

2007-04-23 Thread Bill Marriott
The META tag has a "refresh" parameter which automatically switches to slide2.html after 5 seconds. Hi all, This was a post a while ago and I'm trying to figure this out ___ use-revolution mailing list use-revolution@lists.runrev.com Please vi

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
I agree, Jim - I certainly wouldn't have that many files in a single directory - they aren't mine and I don't create them. Jim Ault wrote: I have never seen 34000 files in one directory before, so I am not sure what to think. It might be more practical to look at a log file that the system cre

Re: Obtaining the size of a file

2007-04-23 Thread Jim Ault
I have never seen 34000 files in one directory before, so I am not sure what to think. It might be more practical to look at a log file that the system creates when it modifies files. This might give you a short list immediately. Do the files change once they are created? It seems like 34000 fil

Was cgi for slide show

2007-04-23 Thread Hershel Fisch
Hi all, This was a post a while ago and I'm trying to figure this out can some one brake this down for me pleease? Thanks, Hershel Jan- I'd probably opt for something even simpler - this will show a slide for five seconds, then move on to the next. No programming needed:

Re: Obtaining the size of a file

2007-04-23 Thread Richard Gaskin
John Craig wrote: > Richard Gaskin wrote: >> Turns out my test wasn't all that useful, since the OS has a >> bit of a bottleneck grabbing the info from 12,000+ files in >> a single directory. >> >> Running the same test on a folder that has only a few hundred files >> gives a per-file speed more

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
Shelling out to grab a single file took around 250 millisecs - although if multi file sizes are required, you can tack them all into the one command line and send that to the shell - it still takes about the same time. JC Bill Marriott wrote: And how long does it take for you to shell out a d

Re: Obtaining the size of a file

2007-04-23 Thread Bill Marriott
And how long does it take for you to shell out a dir for the particular file you're interested in? "John Craig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] For only 1 folder containing 34,782 files on MY machine (3GHz, 512Mb RAM) which is not running any services. Time taken

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
For only 1 folder containing 34,782 files on MY machine (3GHz, 512Mb RAM) which is not running any services. Time taken to get 'the detailed files'; 26888 millisecs = 26.888 seconds Size of output generated by rev for 'the detailed files'; 2543957 bytes = 2.5Mb On a busy server, the results co

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
Ken, I'll just buy a brand new set of typing gloves :-) Ken Ray wrote: On Mon, 23 Apr 2007 09:55:25 +0100, John Craig wrote: Thanks for the info. I am just of the opinion that the file functions in rev could possibly be more economical - it's as easy as that. I agree, John... it

Re: Obtaining the size of a file

2007-04-23 Thread Richard Gaskin
Turns out my test wasn't all that useful, since the OS has a bit of a bottleneck grabbing the info from 12,000+ files in a single directory. Running the same test on a folder that has only a few hundred files gives a per-file speed more on par with what we might expect: # File: 329 Total: 9m

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
No objections - I was simply looking for a possible native rev answer. Every day's a school day and - sometimes - if you don't ask, you don't find out! Bill Marriott wrote: John, I hate to keep the thread going, but what was the objection to using a shell call? You can easily get a director

Re: Obtaining the size of a file

2007-04-23 Thread Richard Gaskin
John Craig wrote: One example is needing the size of a file in a folder of thousands. Creating the output generated by 'the files' is not economical in this case. Test: Make a stack with one button containing the script below, and one field named "r". I set the tabstops of the field to 300,

Re: Obtaining the size of a file

2007-04-23 Thread Bill Marriott
John, I hate to keep the thread going, but what was the objection to using a shell call? You can easily get a directory listing with filters and even hide the shell window ... might be faster than the other approaches if you're talking about a huge list of "the detailed files." And, instead of

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
Hi, Stephen. I'm very comfortable with rev. It became my 'weapon of choice' very quickly once I discovered it. economic: using the minimum of time or resources necessary for effectiveness One example is needing the size of a file in a folder of thousands. Creating the output generated by 't

Re: Where is the UBIQUITOUS Plugins folder on the Mac?

2007-04-23 Thread Chipp Walters
I seem to remember someone making a stack which auto-created these directories...as they aren't created by Rev. Seems Mark Weider was involved, though I don't know for sure. I know Galaxy auto-creates them for you when it's first installed. ___ use-revol

Re: Where is the UBIQUITOUS Plugins folder on the Mac?

2007-04-23 Thread Mark Schonewille
Hi Chipp, As far as I know, it is officially unsupported. I wonder why... It is very useful to have all third-party plugins and externals for all versions in one place. Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your st

Re: Where is the UBIQUITOUS Plugins folder on the Mac?

2007-04-23 Thread Chipp Walters
Thanks Mark, Just wondering, is it documented anywhere? I couldn't find it. best, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lis

Re: Where is the UBIQUITOUS Plugins folder on the Mac?

2007-04-23 Thread Mark Schonewille
Chipp, ~/documents/My Revolution Enterprise/Plugins/ ~/documents/My Revolution Studio/Plugins/ Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at

Where is the UBIQUITOUS Plugins folder on the Mac?

2007-04-23 Thread Chipp Walters
I know it's in the My Documents/Revolution Enterprise folder on the PC. But nowhere can I find out where to put them on the Mac... Tried: Macintosh HD:Users:chippwalters:Documents:Revolution Enterprise:Plugins and Macintosh HD:Users:chippwalters:Library:Preferences:Runtime Revolution:Revolutio

Re: Check Sum

2007-04-23 Thread Chipp Walters
Scott, Don't know if this helps at all, but here's how I calculate checksum's for files: function getChecksum pFilePath if there is not a file pFilePath then return "" return URLencode(md5digest(URL ("binfile:" & pFilePath))) end getChecksum ___ use

Re: problems with grouped images

2007-04-23 Thread Richard Gaskin
Wilhelm Sanke wrote: Any ideas how to tackle the second imagegroup problem I reported in my first post in this thread, namely how to draw graphics on a grouped image? BZ request#623: Tool mode for groups: -- Richard Gaskin Fourth World

Re: problems with grouped images

2007-04-23 Thread Chipp Walters
Hi Wilhelm, Yes, I just went back to a couple of projects where I do something similar and found out I had to create a 'background graphic' in order to preserve formattng. Thanks for documenting this on the list. I guess if you cannot draw graphics on a grouped image, you may wish to temporarily

directory ? ? ?

2007-04-23 Thread Richmond Mathewson
'directories' takes me to 'folders' 'directory' lists 5 headings which (as a naive greenhorn) I don't logically connect with 'directory' the cursor lags behind the letters in the search field of the help stack (Mac OS X) sincerely, Richmond __

moveSpeed

2007-04-23 Thread Richmond Mathewson
build 400 - Beta 5 set the moveSpeed to zero and watch everything go to bits! Tut, tut! sincerely, Richmond Mathewson A Thorn in the flesh is better than a failed Systems Development Life Cycle.

Beta 5 - Up and At It !

2007-04-23 Thread Richmond Mathewson
Ho, Ho . . . Has just arrived, and Richmond is feeling "fairly snotty" so will test out his previous 'grumps' on it. Come on y'all and push this one to its limits:- Unless, of course, you want to be the type who moans and groans after the fact - all it takes for bad software to triumph is for p

Re: problems with grouped images

2007-04-23 Thread Jim Ault
On 4/23/07 12:55 AM, "Wilhelm Sanke" <[EMAIL PROTECTED]> wrote: > Thanks for the response, Jim, but could it be that you missed the first > part of my problem report preceding the "addendum"? > > If the image in question is smaller than the rect of its group there is > no way to place it at the c

moveSpeed

2007-04-23 Thread Richmond Mathewson
build 390 set the moveSpeed to zero and watch everything go to bits! sincerely, Richmond Mathewson A Thorn in the flesh is better than a failed Systems Development Life Cycle. _

Re: textHeight and textSize

2007-04-23 Thread Ferdinand
So I did the scripting like below. But I wish there was a "fontHeight" property in Revolution... :-( -- find size ratio... -- field "fontRatio" is a table like this: Arial, 1.14583 Comic Sans MS, 1.39583 Courier New, 1.13542 Geneva, 1.3 Gill Sans, 1.14583 Helvetica, 1.19792 Palatino, 1.32

Re: Obtaining the size of a file

2007-04-23 Thread Stephen Barncard
Thanks for the info. I am just of the opinion that the file functions in rev could possibly be more economical - it's as easy as that. By Economical, do you mean a command for every variation? The problem with that is that the more definitions that are in the message path, the slower Rev get

Re: [OT] ps2 mouse does not work in Feisty FINAL VERSION

2007-04-23 Thread J. Landman Gay
Bob Warren wrote: For your observation (and perhaps even your amusement) you might like to observe the progress (or lack thereof) of this bug report and Ubuntu's reaction to being criticized instead of praised: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/108382 This r

Save question

2007-04-23 Thread Charles Szasz
Ken, I did create a dialog in my project that asks the user if he/she wants to save. I have Save as a file command and Save as a dialog I created the user quits. Charles Szasz [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@li

Re: Conditional Statements and Version Numbers

2007-04-23 Thread Ken Ray
On Tue, 24 Apr 2007 02:15:38 +1000, Scott Kane wrote: > G'day, > > In some other programming languages it's possible to use conditional > defines to conditionally run parts of your code. This is particuarly > useful when done in combination with version or build numbers. I > can't seem to fi

Conditional Statements and Version Numbers

2007-04-23 Thread Scott Kane
G'day, In some other programming languages it's possible to use conditional defines to conditionally run parts of your code. This is particuarly useful when done in combination with version or build numbers. I can't seem to find similar methods in Rev. That is to say I can't find conditiona

[OT] ps2 mouse does not work in Feisty FINAL VERSION

2007-04-23 Thread Bob Warren
Ubuntu 7.04 ("Feisty Fawn") was released on 20th April (only 1 day late). However, the PS2 mouse on one of my machines no longer works in Feisty, in spite of the fact that several bug reports were made to Ubuntu in this respect while this latest version was still in alpha. In view of the fact

Re: problems with grouped images (Wilhelm Sanke)

2007-04-23 Thread Wilhelm Sanke
On Mon Apr 23, 2007, Glenn E. Fisher gefisher at mac.com wrote: > Any ideas for a third way to draw graphics on a grouped image? > > Regards, > > Wilhelm Sanke > Wilhelm, This is not a way to change a grouped image, but a way to modify images used as icons

Re: Obtaining the size of a file

2007-04-23 Thread Ken Ray
On Mon, 23 Apr 2007 09:55:25 +0100, John Craig wrote: > Thanks for the info. I am just of the opinion that the file > functions in rev could possibly be more economical - it's as easy as > that. I agree, John... it would be great for Rev to have a "file" object that had properties that could

Re: Save question

2007-04-23 Thread Joe Lewis Wilkins
Chipp, (sorry about the name. I said I'm having vision problems, smile) Thanks, I was beginning to come to the same conclusion; which seems to indicate that in order for any application to be able to Save anything, it must create documents apart from itself that are then used to load up whe

directory ? ? ?

2007-04-23 Thread Richmond Mathewson
Build 390 sincerely, Richmond Mathewson A Thorn in the flesh is better than a failed Systems Development Life Cycle. _

Re: problems with grouped images

2007-04-23 Thread Wilhelm Sanke
On Mon Apr 23, 2007, Chipp Walters chipp at chipp.com wrote: Wilhelm, Did you try checking the vscroll and hscroll of the group before and after setting the loc of the image? I seem to recall they might be involved in getting this to work. best, Chipp Chipp, When the image in the group is

Re: problems with grouped images (Wilhelm Sanke)

2007-04-23 Thread Glenn E. Fisher
Any ideas for a third way to draw graphics on a grouped image? Regards, Wilhelm Sanke Wilhelm, This is not a way to change a grouped image, but a way to modify images used as icons of grouped buttons. If you want to take a look, use revOnLine to downlaod

Re: Check Sum

2007-04-23 Thread Scott Kane
Bill, return the last char of (10 - ( x mod 10 )) You ripper. Looks good enough to go. Sometimes knowing the hard way can make one unable to see the potential easy way. Will give the function a work out. Thanks!! :-) Scott ___ use-revol

Re: Check Sum

2007-04-23 Thread Bill Marriott
make that return the last char of (10 - ( x mod 10 )) -- function upcCheck pValue repeat with i = 1 to the length of pValue step 2 add char i of pValue to x end repeat multiply x by 3 repeat with i = 2 to the length of pValue step 2 add char i of pValue to x end repeat retu

Re: Check Sum

2007-04-23 Thread Bill Marriott
Rev has the function md5digest; you could take the last digit of that; but from a processing point of view it might be overkill. I looked up "check digit" in Wikipedia. It seems one popular check digit is "UPC." From Wikipedia: The final digit of a Universal Product Code is a check digit co

Re: directory ? ? ?

2007-04-23 Thread Bill Marriott
Richmond, It is only documented in one direction! If I look up "folder" - there it is. <<< If I type "directory" in mine, it calls up the defaultFolder entry. Are you using Beta 4? [If not, why not? :)] ___ use-revolution mailing list use-revol

Save question

2007-04-23 Thread Francis Nugent Dixon
Hi from Paris, I see Chipp and I had the same idea, although I solved it "inline" ! On Apr 22, 2007, at 10:33 PM, Chipp Walters wrote: Joe, I use altArchive, one of my altPlugins, to save iterative copies of my stacks. It saves the original stack as well as a copy of the stack with a seriali

AW: Can I merge two or more imagefiles in one image object?

2007-04-23 Thread Tiemo Hollmann TB
Thanks Ian, that did the trick! Tiemo > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:use-revolution- > [EMAIL PROTECTED] Im Auftrag von Ian Wood > Gesendet: Montag, 23. April 2007 12:56 > An: How to use Revolution > Betreff: Re: Can I merge two or more imagefiles in one image

Check Sum

2007-04-23 Thread Scott Kane
Hi people, Been reading some of the great scripts online for Rev for encryption and hashing etc. One thing I've not been able to find (checked the doc's) is a method to generate (and check) a check digit. I can do this in assembly just fine (not much use in Rev unless I code an external whic

Re: Can I merge two or more imagefiles in one image object?

2007-04-23 Thread Ian Wood
On 23 Apr 2007, at 11:44, Tiemo Hollmann TB wrote: Hello Ian, hmmm export group "myGroup" to myImage as PNG results in "selected object is not an image" export img "myGroup" to myImage as PNG results in "no such object" I think I don't see the obvious one Tiemo Sorry, I left out the vital

AW: AW: Can I merge two or more imagefiles in one image object?

2007-04-23 Thread Tiemo Hollmann TB
Hello Ian, hmmm export group "myGroup" to myImage as PNG results in "selected object is not an image" export img "myGroup" to myImage as PNG results in "no such object" I think I don't see the obvious one Tiemo > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:use-revolution- >

Re: AW: Can I merge two or more imagefiles in one image object?

2007-04-23 Thread Ian Wood
On 23 Apr 2007, at 11:10, Tiemo Hollmann TB wrote: Hello Ian, I think I'm missing something. If I say set the clipboardData["image"] to group "myGroup" I get "source is not a container" You must have something else in mind? Tiemo You have to export the group to a variable first, as per Mark's

AW: Can I merge two or more imagefiles in one image object?

2007-04-23 Thread Tiemo Hollmann TB
Hello Ian, I think I'm missing something. If I say set the clipboardData["image"] to group "myGroup" I get "source is not a container" You must have something else in mind? Tiemo > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:use-revolution- > [EMAIL PROTECTED] Im Auftrag vo

Re: Can I merge two or more imagefiles in one image object?

2007-04-23 Thread Ian Wood
On 23 Apr 2007, at 10:24, Tiemo Hollmann TB wrote: group various images to one big image so that it would be one image for clipboard data or export You got it in one! But bear in mind that Rev has problems with images that are bigger than a certain dimension (I think it was 3000px height

Can I merge two or more imagefiles in one image object?

2007-04-23 Thread Tiemo Hollmann TB
Hello I have a set of image objects on my card. To theses images imagefiles are dynamicly assigned, so that my whole image (what the user sees) can consist of one ore more single images. What I want to do is to set the clipboardData["image"] or to export the whole image as one single image. Becau

Re: repeat until the mouseClick

2007-04-23 Thread John Craig
Another variation; repeat until the mouseClick or the keysDown is not empty end repeat Mike Hughes wrote: I use the following 2 lines of code to pause a program until the user clicks the mouse: repeat until the mouseClick end repeat I would like to extend the functionality of this script so

Re: directory ? ? ?

2007-04-23 Thread Mark Schonewille
Hi, Richmond is right, there is no entry for directory, only for defaultFolder. The reason is that in most if not in all cases there is no separate xml file for synonyms. Should be easy to solve by duplicating entries that have synonyms and storing these duplicates under the names of thes

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
Thanks for the info. I am just of the opinion that the file functions in rev could possibly be more economical - it's as easy as that. Chipp Walters wrote: Hi John, I'm coming rather late to this party. But it does appear you're missing something important here. I assume you're new to progra

directory ? ? ?

2007-04-23 Thread Richmond Mathewson
Bill Marriot wrote: "It's a synonym for defaultFolder, as is "folder" -- and indeed is documented as such, at least in Beta 4. " It is only documented in one direction! If I look up "folder" - there it is. If I look up "directory" I draw a blank . . . I do not take "sides" re Windows or Macs -

Re: problems with grouped images

2007-04-23 Thread Chipp Walters
Wilhelm, Did you try checking the vscroll and hscroll of the group before and after setting the loc of the image? I seem to recall they might be involved in getting this to work. best, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.c

Re: problems with grouped images

2007-04-23 Thread Wilhelm Sanke
On Sun Apr 22, 2007, Jim Ault JimAultWins at yahoo.com wrote: On 4/22/07 1:30 PM, "Wilhelm Sanke" wrote: > Addendum: > > Even when I set the lockloc of the image to true after having it "moved" > to the loc of the group, once I change the imagedata of the image the > image snaps back to near t

Re: directory ? ? ?

2007-04-23 Thread Eric Chatonet
Hi Richmond, Directory is a synonym for folder (and defaultFolder). Actually, Mac people are used to use 'folder' when Win people prefer use the word 'directory': answer folder... answer directory... So all may be satisfied: Just choose your side ;-) Le 23 avr. 07 à 08:51, Richmond Mathewso

Re: directory ? ? ?

2007-04-23 Thread Bill Marriott
Richmond, Poking about I came across the term 'directory' - which is really useful! How come it doesn't seem to be listed in the documentation? <<< It's a synonym for defaultFolder, as is "folder" -- and indeed is documented as such, at least in Beta 4. _

Re: Obtaining the size of a file

2007-04-23 Thread Chipp Walters
Hi John, I'm coming rather late to this party. But it does appear you're missing something important here. I assume you're new to programming. Here's how historically it's worked in the past. People have used programs to write other programs, and in doing so, they create functions and handlers (o