Re: Rev message box

2008-03-16 Thread -= JB =-

I don't know how to save the message box to disk.  I have emptied the
message box and save d the stack but this does not change anything.
The next time I open the message box that message has been put in
it ready to be executed.

And if I open Rev without any stacks open and no stacks previously
open then show the message box that statement is already there.  I
cannot get that statement to quit showing in the message box.  There
is a good chance I am doing something really stupid but I am not able
to figure out what it is and how to correct it.

What could I have done to save a message to the message box and
it will be there when Rev starts and no stack is open.  If I can  
figure it

out then I can do the same without a message in the message box.

-=JB=-



On Mar 15, 2008, at 10:39 AM, J. Landman Gay wrote:


Probably is. This happens when the message box is saved to disk  
without being cleared first. Then when you open the app, the old  
contents of the message field are still visible. To fix it, empty  
the message box and save it.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

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



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


Re: Lowering high CPU rates?

2008-03-16 Thread Phil Davis

Hi David,

One thing you can do is break up the file processing into a small number 
of records at a time, with big time gaps inserted between the record 
processing cycles. It'll obviously make your entire process take a lot 
longer, but will reduce the load on the CPU. It also will reduce the 
demand for memory, which in itself can make a large difference in one's 
computing experience.


Here's one way to make that happen. The magic ingredients are:
- using open / read / close file to bring a small amount of data into 
memory at a time
- putting huge (1 sec) gaps between tiny 100-records-at-a-time 
processing cycles



-- all in the script of a button

local vMyFileIn, vMyFileOut


on mouseUp -- start everything
 answer file Select a file to process:
 if it = empty then exit to top
 put it into vMyFileIn

 ask file Save output as:
 if it = empty then exit to top
 put it into vMyFileOut

 open file vMyFileIn for read
 open file vMyFileOut for write
 send processFile to me in 1 second
end mouseUp


on processFile
 read from file vMyFileIn for 100 lines -- puts lines into it
 if the result = EOF then
   send endProcess to me in 1 second
   exit to top
 end if
 put withoutZeroInItemTwo(it) into tCleanRecords
 write tCleanRecords to file vMyFileOut

 send processFile to me in 1 second
end processFile


function withoutZeroInItemTwo pRecords
 -- you know what goes here!
end withoutZeroInItemTwo


on endProcess
  close file vMyFileIn
  close file vMyFileOut
  answer File processing is completed.
end endProcess


HTH - there may be errors in my code - I haven't tested it...
Phil Davis


David Coker wrote:

Since folks here on the list have been so awesome in helping me around
the few trouble spots with my project, I'm just about to the point
where I can start adding in the final error checking routines and
working towards a beta stage... I thought I'd first touch base with
you good folks to see if there is a work around for the final
troubling aspect of this project.

We have some pretty hefty hardware on our office machines so I haven't
noticed many problems with the data I've thrown at this program while
testing on those, but when working on my development machine (an older
laptop with very modest specs), the CPU is running at 100% for what
seems to be long periods of time. Unfortunately, during those times
it's almost impossible to do any other work.

Speed is a relative issue with what I'm doing with this program and
not exactly the most important factor *and* there are certain portions
of the processing where I do not want to sacrifice the visibility of
the work being done. (Most of that aspect is done in the final stage
of processing and doesn't seem to be too much of a problem.)

Thanks to the advice I've already received, most of the heavy
lifting is being done behind the scene in variables rather than in
text fields, the screen is being locked during times that seem
appropriate and I've spread around a few wait 1 with messages to
help keep the program responsive to user input. Furthermore, I only
see a real problem when working with data exceeding 10-15,000 records
on a given run.

With that said...

Assuming it is possible under the circumstances, how might I go about
cutting back the sometimes extended periods of time where there is a
full load on the CPU, allowing them to continue working on other
tasks?

Any advice at all is greatly appreciated.

David
___
  

--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

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


question about splash stacks

2008-03-16 Thread Peter Alcibiades
You make a standalone with a splash stack that just fires up the main one, so 
as to be able to save changes to the main one.

There are two stacks in the folder, splash, the executable, and let say 
main.rev.

Why is it that when you make and save changes in main.rev from the ide, they 
do not show up when you start main from the splash stack?

And is there a simple way of editing the main stack without having to resave 
as a standalone each time?

I was using stackrunner, which was perfect for this, and will do again as soon 
as Ken releases the 2.9 version.  But in the meantime, why is it working this 
way?

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


A DVD or e-version of Day One....

2008-03-16 Thread Peter Alcibiades
Like the other poster, I would be interested in a packaged version of some 
sort.  Doesn't have to be a DVD though maybe that would be easiest, with 
downloadable files maybe?  Or perhaps just the presentation materials?

There are probably quite a few people who are conscious of being able to get 
the things done they need to do, but who also are aware that they are not 
following best, or maybe not even good, practice, and would like to get more 
exposed to it in a structured way.

Peter
___
use-revolution mailing list
use-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: Record sound no longer works in XP with Rev 2.7.1

2008-03-16 Thread Richard Miller
You have to use the MCI commands independent of the record command.  
Record is dead with QT 7.4.1 and at least Rev 2.7.1.

I'll post the MCI commands for recording sound if that would be helpful.

Richard


On Mar 14, 2008, at 4:50 PM, Peter T. Evensen wrote:

It appears that set the dontUseQT to true doesn't force record  
sound file to use MCI.  Is that what you are doing?  I still get  
the error -43 starting recording error message.


Or do you have to use MCISendString()?

Richard Miller wrote:
I just updated to Quicktime 7.4.1 on an XP Home and a Vista  
computer. Using Rev 2.7.1, the record sound command appears dead.  
Has this been reported by others? It's certainly a serious problem  
for a few of my programs. The MCI alternative still works, but I  
find that not nearly as flexible.


Richard Miller
___
use-revolution mailing list
use-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: setting http headers to mimic IE6/Win

2008-03-16 Thread Mark Smith

Phil, you probably want to do something like this:

set the httpHeaders to User-Agent:  whatever the appropriate  
string for IE is


and you can find out what the string is here:

http://www.useragent.org/

Best,

Mark

On 16 Mar 2008, at 05:37, Phil Davis wrote:


I barely know enough to be dangerous with this one:

Does anyone know offhand what the http headers for IE6/Win look  
like? I want to request (and download) a url from a server that  
will only talk to IE on Windows. I want to put the page directly  
into a field without using revBrowser.


Maybe the right question to ask is, Is there a proxy server or  
something else I can use to see my outgoing http headers from IE  
(e.g. revBrowser/Win)? Then I can figure out what to do.


(If I could automate the selecting of all text in revBrowser, that  
would be an adequate alternative to what I'm asking here).


I understand I'll need to use libUrlSetCustomHttpHeaders to replace  
Rev's native headers. I just don't know what to set the headers to.


Thanks!
--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-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: Lowering high CPU rates?

2008-03-16 Thread Len Morgan
My first suggestion would be to find out WHERE it's slowing down.  I use 
a debug stack that is really just a big text field and if I'm trying to 
time sections of code or find out how far a recalcitrant  handler is 
getting before locking up, I just add time tags and a short message to 
the end of that stack. 

Once you know where the hold up is, you can work on optimizing it 
first.  No sense in sticking your finger in a hole that isn't leaking.


len morgan

David Coker wrote:

Since folks here on the list have been so awesome in helping me around
the few trouble spots with my project, I'm just about to the point
where I can start adding in the final error checking routines and
working towards a beta stage... I thought I'd first touch base with
you good folks to see if there is a work around for the final
troubling aspect of this project.

We have some pretty hefty hardware on our office machines so I haven't
noticed many problems with the data I've thrown at this program while
testing on those, but when working on my development machine (an older
laptop with very modest specs), the CPU is running at 100% for what
seems to be long periods of time. Unfortunately, during those times
it's almost impossible to do any other work.

Speed is a relative issue with what I'm doing with this program and
not exactly the most important factor *and* there are certain portions
of the processing where I do not want to sacrifice the visibility of
the work being done. (Most of that aspect is done in the final stage
of processing and doesn't seem to be too much of a problem.)

Thanks to the advice I've already received, most of the heavy
lifting is being done behind the scene in variables rather than in
text fields, the screen is being locked during times that seem
appropriate and I've spread around a few wait 1 with messages to
help keep the program responsive to user input. Furthermore, I only
see a real problem when working with data exceeding 10-15,000 records
on a given run.

With that said...

Assuming it is possible under the circumstances, how might I go about
cutting back the sometimes extended periods of time where there is a
full load on the CPU, allowing them to continue working on other
tasks?

Any advice at all is greatly appreciated.

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


  

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


Problem with 2.9 Beta

2008-03-16 Thread Dave

Hi All,

The following works fine in 2.8.1.472, but gives an error in the 2.9  
Beta Release:


put specialfolderpath(baseconvert(0x000d,16,10))  / into  
myFilePathName


Any ideas on how to get this to work? I'm trying to get the Music  
folder of the host system.


Thanks a lot
All the Best
Dave


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


Re: Something I did not learn in a day

2008-03-16 Thread Len Morgan

I tried it on a stack of mine and only got an error:

executing at 7:32:59 AM
TypeObject: object does not have this property
ObjectGO! new
Lineput LABEL :   the label  of control M of cd K of stack fld 
fTARGET into line KOUNT of fld fOUTLIST
Hintbutton id 1030 of card id 1002 of stack C:/Documents and 
Settings/Len/Desktop/TEXTIFIER.rev


Hope that helps.

len morgan

Richmond Mathewson wrote:

I really ought to keep my big mouth shut (no, surely
not?) as my quick joke about programming successfully
buried something that is the fruit of an awful lot of
thought:

My TEXTIFIER stack

which is available on revOnline

and is the culmination of about 2 years of thinking,
false-starts and so forth.

So Please give it a try.

sincerely, Richmond Mathewson



A Thorn in the flesh is better than a failed Systems Development Life Cycle.



  ___ 
Rise to the challenge for Sport Relief with Yahoo! For Good  


http://uk.promotions.yahoo.com/forgood/
___
use-revolution mailing list
use-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: Problem with 2.9 Beta

2008-03-16 Thread Mark Smith

You don't need the 0x for the baseConvert function,

does put specialfolderpath(baseconvert(000d,16,10))  / into  
myFilePathName work?


Best,

Mark

On 16 Mar 2008, at 12:30, Dave wrote:


Hi All,

The following works fine in 2.8.1.472, but gives an error in the  
2.9 Beta Release:


put specialfolderpath(baseconvert(0x000d,16,10))  / into  
myFilePathName


Any ideas on how to get this to work? I'm trying to get the Music  
folder of the host system.


Thanks a lot
All the Best
Dave


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

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


___
use-revolution mailing list
use-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: Lowering high CPU rates?

2008-03-16 Thread David Coker
  Once you know where the hold up is, you can work on optimizing it
  first.  No sense in sticking your finger in a hole that isn't leaking.

  len morgan

Heh, that's great! :)

Actually though, with all of the testing I've done I'm fairly sure
about the where's and what's that are causing the problem. For
example with a source file containing 30,000 lines or greater:

Removing lines with zeros and/or blank fields.  --Huge drain 100%
Sorting the lines according to the requirements --Huge drain 100%

The problem is less about knowing why, but rather trying to find a
user friendlier approach to dealing with it. For example, during the
final stage of processing that is visible to the user (and the most
time consuming), I've added a button that will pause and/or resume
according to the needs of the user, which works great. That approach
doesn't work well with the preprocessing that must be done and locking
the screen to help speed things up only adds to what would be a
potentially negative user experience. The infamous catch 22, I think.

Digging through the doc's, I ran across these little gems that may
prove to be helpful:

idleRate
Adjust the idleRate property to change the interval between
periodically-sent messages. Increasing the idleRate causes these
messages to be sent less frequently, and decreases the amount of CPU
time the application uses.

idleTicks
Adjust the idleTicks property to change the interval between
periodically-sent messages. Increasing the idleTicks causes these
messages to be sent less frequently, and decreases the amount of CPU
time the application uses.

I can make the program follow different methods based on the number of
lines in the target file easy enough and perhaps issue a warning about
the processing requirements.

Does anyone know of a way to gather specific system details such as
available RAM and/or CPU speed? When combined with total line count,
that would give me the ability to code in a best course of action,
based on the system resources available. ;)

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


Re: Problem with 2.9 Beta

2008-03-16 Thread Dave

Hi,

Thanks a lot, the 0x characters work on 2.8, but not on 2.9, have  
changed it no.


All the Best
Dave

On 16 Mar 2008, at 12:35, Mark Smith wrote:


You don't need the 0x for the baseConvert function,

does put specialfolderpath(baseconvert(000d,16,10))  / into  
myFilePathName work?


Best,

Mark

On 16 Mar 2008, at 12:30, Dave wrote:


Hi All,

The following works fine in 2.8.1.472, but gives an error in the  
2.9 Beta Release:


put specialfolderpath(baseconvert(0x000d,16,10))  / into  
myFilePathName


Any ideas on how to get this to work? I'm trying to get the Music  
folder of the host system.


Thanks a lot
All the Best
Dave


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

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


___
use-revolution mailing list
use-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


2.9 Beta Database Problem

2008-03-16 Thread Dave

Hi All,

I ran into some problems using SQLite on the 2.9 Beta, this code  
works fine on 2.8.1. I then saw the compatibility panel in  
Preferences, installed the old drivers and restarted, now NOTHING to  
do with the database works at all!


Help!

What do I do?

All the Best
Dave


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


Re: Problem with 2.9 Beta

2008-03-16 Thread Mark Schonewille

Dave,

I believe the correct syntax is simply

specialFolderpath(0x00d)

It might even be possible that the quotes shouldn't be there  
officially, but I'm not sure.


Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

A large collection of scripts for HyperCard, Revolution, SuperCard and  
other programming languages can be found at http://runrev.info





On 16 mrt 2008, at 14:25, Dave wrote:


Hi,

Thanks a lot, the 0x characters work on 2.8, but not on 2.9, have  
changed it no.


All the Best
Dave

On 16 Mar 2008, at 12:35, Mark Smith wrote:


You don't need the 0x for the baseConvert function,

does put specialfolderpath(baseconvert(000d,16,10))  / into  
myFilePathName work?


Best,

Mark

On 16 Mar 2008, at 12:30, Dave wrote:


Hi All,

The following works fine in 2.8.1.472, but gives an error in the  
2.9 Beta Release:


   put specialfolderpath(baseconvert(0x000d,16,10))  / into  
myFilePathName


Any ideas on how to get this to work? I'm trying to get the Music  
folder of the host system.


Thanks a lot
All the Best
Dave


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

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


___
use-revolution mailing list
use-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


2.9 Beta Database Problem

2008-03-16 Thread Dave

Hi All,

I ran into some problems using SQLite on the 2.9 Beta, this code  
works fine on 2.8.1. I then saw the compatibility panel in  
Preferences, installed the old drivers and restarted, now NOTHING to  
do with the database works at all!


Help!

What do I do?

All the Best
Dave


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


Re: Multiple Stacks Active at Same Time

2008-03-16 Thread Steven Axtell

Jacqueline,

Thanks for the information.  I will look into creating a pallette.

Steve



Won't work, I'm afraid. The lock screen command is really more like 
lock window. It doesn't affect the display when you are changing 
windows, it only works if you are changing the content inside a single 
window.


If I remember right, you want two windows to be active at once. That isn't 
really possible on any OS -- the same behavior you are seeing happens in 
any app that has multiple documents open. However, you can force a window 
to the front with a script if you want, using the toplevel command or 
the go command. So after your user clicks a button in one stack, you can 
go to the other and it will be on top.


If what you are trying to do is create a palette, then the solution is 
easy; just open your control stack as a palette:


  palette myStack

Palettes always float on top and you won't see window titlebars flashing 
back and forth. Palettes require some attention to which stack is the 
defaultstack though, so be careful if your palette buttons use this 
stack in their scripts. This stack may not always be the one you think 
it is.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

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




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


Re: Learn Programming in 1 Day

2008-03-16 Thread Colin Holgate


On Mar 16, 2008, at 1:21 AM, Chipp Walters wrote:


Listen guys, my point, obviously not well made, was that making a bold
claim works in getting people interested in one's product.


As has been proven here, and I already understand that point you made.  
I like the kinds of advertising that says things like nothing cleans  
better than Our Brand!. That's a bold (pardon the pun) claim, but  
does leave you the option of saying that no matter how many other  
brands do clean better than yours, using nothing at al would also  
clean better.


Of course, the advert isn't going to change now, not after being a big  
success, but for the mental exercise of it, Learn How to Program in 1  
Day might have been better. It's still pretty bold, and yet you can  
be sure everyone will come away understanding how you program things,  
which is different to implying that programming would have been  
mastered.



___
use-revolution mailing list
use-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: Multiple Stacks Active at Same Time

2008-03-16 Thread Richard Gaskin

Steven Axtell wrote:

 Is it possible to make two or more stacks active at the same time?
 I am building an app in which pressing certain buttons in the main
 stack causes a substack to open.   With the substack active, further
 pressing of similar buttons in the mainstack causes the mainstack
 to quickly become active and then inactive.  Likewise, the substack
 quickly becomes inactive and then active.  It is slightly annoying
 when that happens (window border/title bar quickly going from active
 to inactive or vice versa).

Have you considered moving all of the content from these windows into a 
single window, hiding and showing groups rather than closing and opening 
windows?


This would resolve the window hilite issue, and may lend itself to a 
very contemporary look.  iMovie and a great many other apps have 
migrated from what had traditionally been multi-window layouts to single 
windows with multiple panes.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: question about splash stacks

2008-03-16 Thread Richard Gaskin

Peter Alcibiades wrote:

You make a standalone with a splash stack that just fires up the main one, so 
as to be able to save changes to the main one.


There are two stacks in the folder, splash, the executable, and let say 
main.rev.


Why is it that when you make and save changes in main.rev from the ide, they 
do not show up when you start main from the splash stack?


First, verify that the changes are indeed saved:  quit the IDE, then 
re-launch, then open the stack again.


If the changes that were saved are still evident, clearly we can rule 
out problems on that side of things, and focus on the standalone:


Did you quit the standalone before checking the changes?  If not, it may 
be possible that what you were seeing was a copy from memory, not fresh 
from disk.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lowering high CPU rates?

2008-03-16 Thread David Coker
Hey folks,
Looks like I've found a way to tame the tiger!

Using a combination of visual feedback in the way of changing the
cursor to watch, a status area to display progress and selective use
of wait statements, this little bugger is now as responsive and well
mannered as anything that runs on the machine. CPU rate is down below
50% even for the largest data thrown at it. The sacrifice here is in
the overall processing time, but it's still very acceptable now that
other work can be done during processing.

Once I have had time to play with the routines and methods a little
more, I'll try to put together a sample stack showing different ways
to accomplish this. Might help the next guy running into similar
difficulties. :)

Again, thank you all very much for the feedback and assistance!
David
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lowering high CPU rates?

2008-03-16 Thread Richard Gaskin

David Coker wrote:

Using a combination of visual feedback in the way of changing the
cursor to watch, a status area to display progress and selective use
of wait statements, this little bugger is now as responsive and well
mannered as anything that runs on the machine. CPU rate is down below
50% even for the largest data thrown at it. The sacrifice here is in
the overall processing time, but it's still very acceptable now that
other work can be done during processing.

Once I have had time to play with the routines and methods a little
more, I'll try to put together a sample stack showing different ways
to accomplish this. Might help the next guy running into similar
difficulties. :)


Good work, David.

Do you use and progress bars?  If so, I've found them very 
cycle-consuming, and I tend to update them infrequently now when I'm 
working with large data sets.


So instead of doing something like this:

  put 0 into i
  repeat for each line tLine in tData
 add 1 to i
 set the thumbpos of scrollbar progress to i
 ...
  end repeat

Now I use the mod operator to reduce the number of times the progress 
bar is updated:


  put 0 into i
  repeat for each line tLine in tData
 add 1 to i
 if (i mod 100 = 0) then
   set the thumbpos of scrollbar progress to i
 end if
 ...
  end repeat


When I made that one change to WebMerge a while back, I got an overall 
50% performance boost.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


text speeds are good

2008-03-16 Thread Colin Holgate
While pondering David's performance questions (that I see he has  
solved), I did a test of how quickly Rev deals with long strings.  
Those can be slow in some cases, Director in particular, and so I  
tested Rev against Director with Lingo, Director with Javascript, and  
Flash with Actionscript 3. Here's the routine for both Rev and for  
Director:


on filltext
  put the milliseconds into ms
  put  into t
  repeat with a = 1 to 3
put aaa after t
  end repeat
  put the milliseconds - ms  the number of chars in t
end filltext

Apart from anything else it shows how Talk like Lingo can be! The  
results were somewhat shocking though, Director (admittedly running  
under Rosetta) took over 18 seconds as Lingo, and over 44 seconds as  
Javascript.


Rev takes 10 milliseconds to do the same thing. Flash, with AS3, and  
this routine:


filltext();
function filltext() {
   var d1:Date = new Date();
   var ms:int = d1.getTime();
   var t:String = ;
   for (var i = 0; i3; i++) {
  t += aaa;
   }
   var d2:Date = new Date();
   var nms:int = d2.getTime()
   trace(nms - ms, t.length);
}

takes 5 milliseconds. I increased the loops to 300,000 to see more  
exactly the timing, and Rev became 263 milliseconds, and AS3 was 70.  
For completeness I tried AS2 as well, and that was 310 milliseconds  
(for the 300,000 loop).


So, although Rev isn't anywhere near as fast as AS3 at handling text  
strings, it is significantly faster than AS2, and a lot faster than  
Director running under Rosetta. I realized I had a way to test it not  
under Rosetta (can't tell you how, I'd have to kill you!), and the  
300,000 loop as Lingo came out at 436 milliseconds, making Rev almost  
twice the speed of Director 11, when it comes out.



___
use-revolution mailing list
use-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: text speeds are good

2008-03-16 Thread Troy Rollins


On Mar 16, 2008, at 12:18 PM, Colin Holgate wrote:

So, although Rev isn't anywhere near as fast as AS3 at handling text  
strings, it is significantly faster than AS2, and a lot faster than  
Director running under Rosetta. I realized I had a way to test it  
not under Rosetta (can't tell you how, I'd have to kill you!), and  
the 300,000 loop as Lingo came out at 436 milliseconds, making Rev  
almost twice the speed of Director 11, when it comes out.


Cool.

Rev is quite string optimized... even to the point of being string  
based.


I'm even more surprised by AS3's raw string speed.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
use-revolution mailing list
use-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: Lowering high CPU rates?

2008-03-16 Thread David Coker
On Sun, Mar 16, 2008 at 10:41 AM, Richard Gaskin
[EMAIL PROTECTED] wrote:

  Do you use and progress bars?  If so, I've found them very
  cycle-consuming, and I tend to update them infrequently now when I'm
  working with large data sets.

  So instead of doing something like this:

put 0 into i
repeat for each line tLine in tData
   add 1 to i
   set the thumbpos of scrollbar progress to i
   ...
end repeat

  Now I use the mod operator to reduce the number of times the progress
  bar is updated:

put 0 into i
repeat for each line tLine in tData
   add 1 to i
   if (i mod 100 = 0) then
 set the thumbpos of scrollbar progress to i
   end if
   ...
end repeat

Hello Richard,
Right now I'm just using a label field that gets updated occasionally,
but was thinking about adding a progress bar for a more professional
appearance. When that happens, your tip above will be invaluable...
thanks for that!

...now to incorporate all of this into the real application from my
test stacks and start working on the remaining error handling
routines. Once that's done I can start working on prettying things up
a little more, shuffling the interface elements around making a spot
for goodies like the progress bar.

Looks like I'm almost back to the fun part again.:)

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


Re: Rev message box

2008-03-16 Thread J. Landman Gay

-= JB =- wrote:

I don't know how to save the message box to disk.  I have emptied the
message box and save d the stack but this does not change anything.
The next time I open the message box that message has been put in
it ready to be executed.


To be honest, I'm not sure how it may have happened, but since the issue 
isn't showing up in other people's installations it seems likely it is 
something specific to your copy. It may be that you issued a save this 
stack command and the message box was the accidental target.


And if I open Rev without any stacks open and no stacks previously
open then show the message box that statement is already there.


Right, the command has been saved somehow as part of the field content, 
so you are seeing it whenever the message box is displayed for the first 
time.



 I
cannot get that statement to quit showing in the message box.  There
is a good chance I am doing something really stupid but I am not able
to figure out what it is and how to correct it.

What could I have done to save a message to the message box and
it will be there when Rev starts and no stack is open.  If I can figure it
out then I can do the same without a message in the message box.


I'm a little fuzzy on this part, but if you use the property inspector 
to look at the message field, you'll see a cRevMessageHistory property. 
There is also a custom property set with a similar name. See if the line 
of text appears anywhere in those properties and if so, delete it. Then 
do save stack 'Message box' and see if that helps.


I'm not sure, but you may have to create a button in a stack to issue 
the save command, because if you save the message box with the save 
command in it, you may start seeing that line instead of the old one.


Or maybe an even simpler fix would be to just reinstall Rev.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Lowering high CPU rates?

2008-03-16 Thread J. Landman Gay

Richard Gaskin wrote:

Do you use and progress bars?  If so, I've found them very 
cycle-consuming, and I tend to update them infrequently now when I'm 
working with large data sets.


I'll confirm that. I recently wrote a script that had to process a lot 
of data, and I added a progress bar as a matter of course. The script 
took 6 seconds to complete. That felt like quite a long time, so I 
started adjusting the progress update to only change every so many 
cycles. The longer between updates, the faster the script ran. Then I 
had an epiphany and removed the progress bar altogether -- and the same 
data got processed in about a dozen milliseconds. The entire lag was the 
progress bar!


Rev is so fast, sometimes you forget.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


printrotated ?? sometimes works sometimes not

2008-03-16 Thread Horst

Holá everybody,

to print Landscape, I use the following in a button on the card:

on mouseUp
  set the printmargins to 5,5,5,5
  set the printrotated to true 
  print card
  set the printrotated to false 
end mouseUp
smiley ima
That works sometimes and sometimes (same Card) not. What's wrong? 

Im working with 2.7.4 and w2k

Thanks for your friendly help and best regards

Horst
-- 
View this message in context: 
http://www.nabble.com/printrotatedsometimes-works-sometimes-not-tp16081672p16081672.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: Lowering high CPU rates?

2008-03-16 Thread David Coker
On Sun, Mar 16, 2008 at 12:22 PM, J. Landman Gay
[EMAIL PROTECTED] wrote:

  I'll confirm that. I recently wrote a script that had to process a lot
  of data, and I added a progress bar as a matter of course. The script
  took 6 seconds to complete. That felt like quite a long time, so I
  started adjusting the progress update to only change every so many
  cycles. The longer between updates, the faster the script ran. Then I
  had an epiphany and removed the progress bar altogether -- and the same
  data got processed in about a dozen milliseconds. The entire lag was the
  progress bar!

  Rev is so fast, sometimes you forget.

Hummm... maybe I better rethink adding the progress bar entirely and
stick with the occasional label field updates. =/

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


Just in case I haven't mentioned it...

2008-03-16 Thread David Coker
The combination of RunRev and the helpful members of this list are just awesome!

I originally licensed Rev a couple of years ago solely for the
database capabilities it offers, which IMO is second to none. At that
time, I didn't understand the official upgrade policies, got sore
about it and set Rev aside for the most part.

(That's called cutting the nose off to spite the face.)

I began working on my current project over a year ago using *numerous*
other programming tools that I have and became so discouraged with it
all, I pretty much decided to give up programming completely. The
complexity of what I am trying to accomplish and lack of native
capabilities with the other tools just made me miserable. I even made
a public announcement elsewhere that I was done with programming.

Rather than manually removing all of the programming software, I
actually reformatted the drive and reinstalled the O/S!

I'm done, I'm done... I am DONE with it!

Hating the thought of giving up, after a couple of weeks I finally
decided to give it one more try, but this time using only Rev...

Fast forward:
In two short weeks of limited/part time coding with Rev and the help
of the good folks here on the list, I can already see the light at the
end of the tunnel. What an amazing product and group of people!

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


OT: Programming as a profession-the practice model

2008-03-16 Thread Petrides, M.D. Marian
At the risk of opening a can of worms, I offer the following as a  
synopsis of the  sentiments underlying the posts about the Learn  
Programming in One Day ad. The common thread seems to me to be that  
programming, like any other profession, is not so much taught as  
practiced.  Just as medical or law schools teach the rudiments of the  
profession, the real learning takes place in the day-to-day practice.   
Without lifelong learning, no lawyer, doctor, or programmer will come  
close to achieving his/her full potential.


Someone once told me in my first year of medical school that medicine  
is a personal philosophy, tempered by science and experience, and put  
into practice.  It seems to me that the statement applies equally to  
programming.  My 2 cents.


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: text speeds are good

2008-03-16 Thread Dave Cragg


On 16 Mar 2008, at 16:18, Colin Holgate wrote:

although Rev isn't anywhere near as fast as AS3 at handling text  
strings


I think that has to be qualified. Recently I built a routine in AS3  
that had to parse through each word in a text file. I'd previously  
built something similar in Rev. Although it's very likely I haven't  
optimized the AS3 code very well, Rev appeared to run much faster  
than AS3.


In Rev I used the repeat for each word structure which spoils us  
somewhat. In AS3 I first parsed the string into an array using   
array.split() and then looped through the array.


The split was very slow. (I split on a regular expression delimiter,  
which may have caused the slowness. But it was the equivalent of what  
Rev does with for each word) For a 76K file with 13,000 words it  
took 1900+ms to make the array. Looping though the array takes about  
460ms.


In Rev, the whole thing takes less than 300ms.

However, the comparison isn't scientific as I'm doing different  
things in the loops because of language differences. If I have time,  
I'll try and construct a fairer test.


I don't want to start a language war here. I've been using AS3 for a  
while and am generally impressed. This was the first time I'd seen a  
speed difference that was enough to affect my perception as a user.


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: Multiple Stacks Active at Same Time

2008-03-16 Thread Steven Axtell

Richard,

I hadn't thought about that, but that does sound like an interesting 
approach.  I will do some looking into that.


Thanks,

Steve



Have you considered moving all of the content from these windows into a 
single window, hiding and showing groups rather than closing and opening 
windows?


This would resolve the window hilite issue, and may lend itself to a very 
contemporary look.  iMovie and a great many other apps have migrated from 
what had traditionally been multi-window layouts to single windows with 
multiple panes.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___



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


Re: OT: Programming as a profession-the practice model

2008-03-16 Thread Joe Lewis Wilkins

Some excellent points, Marian.

I'm a little disappointed that you didn't include Architecture in your  
listing of practices; even more so by computer science's use of the  
term architect in various aspects of the work to be done. Actually,  
following my involvement with computers, I became a much better  
Architect due to several realizations. I've mentioned this before,  
elsewhere; but I believe it is worth mentioning again. In my earlier  
days as an Architect, I found myself procrastinating, being unwilling  
to actually start work on a project; mostly by being overwhelmed with  
the magnitude of what needed to be done.


Once I started breaking things down, solving little bits and pieces,  
the project started to be less imposing. Then it even started to be  
fun. But I always felt guilty about the earlier procrastination. After  
spending some time trying to program Macs, reading a lot of books on  
many programming languages, making a whole bunch of false starts, I  
came upon the concept of breaking the problem down into small,  
resolvable pieces; solving what I knew how to solve; and researching  
how to do the things that I didn't already know how to resolve.


Unfortunately, this was never taught specifically at U.C. Berkeley  
where I got my architectural degree. Maybe it was implied, since we  
did spend an enormous amount of time with preliminary designs and  
working with programs for projects; however, the programs for the  
projects were always handed to us as a part of our assignments, with  
no realization of the process. Had I been studying Computer Science,  
that would have been one of the first things I would have be taught.  
(I think!) I learned this very quickly when I started writing Handlers  
and Functions for my computer programs.


I now apply this mentality to Architecture, and have come to realize  
that procrastination (but by a different name) is part of all  
problem solving. It is during this procrastination process that we  
digest the requirements of a project, and start breaking it down into  
aha! I can solve that bits and pieces. The time is not wasted.  
Sometimes it even saves time by coming up with a better approach than  
might have been taken had we plunged right into doing it.  
Incidentally, this list is a great resource for that procrastination  
process, and then for the subsequent researching process. I only  
wish Architects had a similar resource, but I'm afraid we're too  
egotistical to admit that we don't have all the answers ourselves. You  
never hear an Architect self-label themselves as newbies.  (enormous  
smile!)


Joe Wilkins

On Mar 16, 2008, at 10:57 AM, Petrides, M.D. Marian wrote:

At the risk of opening a can of worms, I offer the following as a  
synopsis of the  sentiments underlying the posts about the Learn  
Programming in One Day ad. The common thread seems to me to be that  
programming, like any other profession, is not so much taught as  
practiced.  Just as medical or law schools teach the rudiments of  
the profession, the real learning takes place in the day-to-day  
practice.  Without lifelong learning, no lawyer, doctor, or  
programmer will come close to achieving his/her full potential.


Someone once told me in my first year of medical school that  
medicine is a personal philosophy, tempered by science and  
experience, and put into practice.  It seems to me that the  
statement applies equally to programming.  My 2 cents.


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: text speeds are good

2008-03-16 Thread Colin Holgate


On Mar 16, 2008, at 2:27 PM, Dave Cragg wrote:

The split was very slow. (I split on a regular expression delimiter,  
which may have caused the slowness. But it was the equivalent of  
what Rev does with for each word) For a 76K file with 13,000 words  
it took 1900+ms to make the array. Looping though the array takes  
about 460ms.


I'm not sure what you would have done wrong, but try this test:

filltext();
function filltext() {
var d1:Date = new Date();
var ms:int = d1.getTime();
var t:String = ;
var w:String;
for (var i = 0; i30; i++) {
t += aab;
}
var tarray:Array = t.split(ab);
for (i = 0; itarray.length; i++) {
w = tarray[i];
}
var d2:Date = new Date();
var nms:int = d2.getTime();
trace(nms - ms, t.length);
}

Without the split or the loop through the array, it takes 63 mS, with  
the split it takes 164 mS, with the loop it's 195 mS, and with the  
loop and the transfer of an array entry to a string variable, it's  
still only 206 mS. This is effectively a 6.9MB, 300,000 word test,  
which should be more demanding than your 75k/13,000 word one.


In any case, I was trying to praise Rev's handling of something that  
can be potentially slow, and not trying to find the fastest way that  
it could be done.

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


Re: OT: Programming as a profession-the practice model

2008-03-16 Thread Marian Petrides, M.D.
Oops. Sorry, Joe. That was not supposed to be an all-inclusive list  
(it didn't include, for example, my sister's profession either-- 
educator). And there are many others, too.


No offense was intended--I hope none was taken.

I entirely agree that the lessons learned from programming have made  
me a better physician and vice versa.  In fact, what I like best about  
programming is the application of the scientific method in a context  
that SHOULD be internally consistent. That is to say, if I do the same  
thing twice it should yield the same result.  (Try that with human  
patients if you want an exercise in frustration.) Then again, I'm one  
of those weird people who actually enjoys beta testing.  Hmm...  
diagnostic medicine as beta testing... works for me. ;-)


I only wish Architects had a similar resource, but I'm afraid  
we're too egotistical to admit that we don't have all the answers  
ourselves. You never hear an Architect self-label themselves as  
newbies.  (enormous smile!)


Oh, yeah.  And I hear my residents calling themselves newbies every  
day.  (NOT!) :-)


M

On Mar 16, 2008, at 1:37 PM, Joe Lewis Wilkins wrote:


Some excellent points, Marian.

I'm a little disappointed that you didn't include Architecture in  
your listing of practices; even more so by computer science's use  
of the term architect in various aspects of the work to be done.  
Actually, following my involvement with computers, I became a much  
better Architect due to several realizations. I've mentioned this  
before, elsewhere; but I believe it is worth mentioning again. In my  
earlier days as an Architect, I found myself procrastinating, being  
unwilling to actually start work on a project; mostly by being  
overwhelmed with the magnitude of what needed to be done.


Once I started breaking things down, solving little bits and  
pieces, the project started to be less imposing. Then it even  
started to be fun. But I always felt guilty about the earlier  
procrastination. After spending some time trying to program Macs,  
reading a lot of books on many programming languages, making a whole  
bunch of false starts, I came upon the concept of breaking the  
problem down into small, resolvable pieces; solving what I knew how  
to solve; and researching how to do the things that I didn't already  
know how to resolve.


Unfortunately, this was never taught specifically at U.C. Berkeley  
where I got my architectural degree. Maybe it was implied, since we  
did spend an enormous amount of time with preliminary designs and  
working with programs for projects; however, the programs for the  
projects were always handed to us as a part of our assignments, with  
no realization of the process. Had I been studying Computer Science,  
that would have been one of the first things I would have be taught.  
(I think!) I learned this very quickly when I started writing  
Handlers and Functions for my computer programs.


I now apply this mentality to Architecture, and have come to realize  
that procrastination (but by a different name) is part of all  
problem solving. It is during this procrastination process that we  
digest the requirements of a project, and start breaking it down  
into aha! I can solve that bits and pieces. The time is not  
wasted. Sometimes it even saves time by coming up with a better  
approach than might have been taken had we plunged right into doing  
it. Incidentally, this list is a great resource for that  
procrastination process, and then for the subsequent researching  
process. I only wish Architects had a similar resource, but I'm  
afraid we're too egotistical to admit that we don't have all the  
answers ourselves. You never hear an Architect self-label themselves  
as newbies.  (enormous smile!)


Joe Wilkins

On Mar 16, 2008, at 10:57 AM, Petrides, M.D. Marian wrote:

At the risk of opening a can of worms, I offer the following as a  
synopsis of the  sentiments underlying the posts about the Learn  
Programming in One Day ad. The common thread seems to me to be  
that programming, like any other profession, is not so much taught  
as practiced.  Just as medical or law schools teach the rudiments  
of the profession, the real learning takes place in the day-to-day  
practice.  Without lifelong learning, no lawyer, doctor, or  
programmer will come close to achieving his/her full potential.


Someone once told me in my first year of medical school that  
medicine is a personal philosophy, tempered by science and  
experience, and put into practice.  It seems to me that the  
statement applies equally to programming.  My 2 cents.


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


___
use-revolution mailing list

ANN: IP to Country

2008-03-16 Thread Mark Smith
I've made a little stack (IPtoCountry) for any internet sleuths who  
want to know what country an ip address comes from.


It's at: http://www.futility.co.uk/futsoft/revolutionstuff.html

It downloads a db file from the ip-to-country web host.

Best,

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: OT: Programming as a profession-the practice model

2008-03-16 Thread Joe Lewis Wilkins
Obviously, and it wasn't; and I wish that some of the testing done  
prior to drug releases were done under the auspices of some sort of  
beta test program. Right now, it is the pits. Approvals are  
literally purchased by the drug companies. Very dangerous. Back in  
the 60s, just after graduating from Cal, I was a detail person for one  
of Pfizer's subsidiaries, mostly covering anti-biotics, some of which  
are no longer on the market, though we extolled their virtues and  
played down their side-effects; i.e. liver damage among them. I became  
very disenchanted by the entire medical process. The only ones that  
impressed me as a group were the Pediatricians, D.Os. and General  
Practitioners. Obviously, there were isolated exceptions!


Joe Wilkins


On Mar 16, 2008, at 11:56 AM, Marian Petrides, M.D. wrote:

Oops. Sorry, Joe. That was not supposed to be an all-inclusive list  
(it didn't include, for example, my sister's profession either-- 
educator). And there are many others, too.


No offense was intended--I hope none was taken.

I entirely agree that the lessons learned from programming have made  
me a better physician and vice versa.  In fact, what I like best  
about programming is the application of the scientific method in a  
context that SHOULD be internally consistent. That is to say, if I  
do the same thing twice it should yield the same result.  (Try that  
with human patients if you want an exercise in frustration.) Then  
again, I'm one of those weird people who actually enjoys beta  
testing.  Hmm... diagnostic medicine as beta testing... works for  
me. ;-)


I only wish Architects had a similar resource, but I'm afraid  
we're too egotistical to admit that we don't have all the answers  
ourselves. You never hear an Architect self-label themselves as  
newbies.  (enormous smile!)


Oh, yeah.  And I hear my residents calling themselves newbies  
every day.  (NOT!) :-)


M

On Mar 16, 2008, at 1:37 PM, Joe Lewis Wilkins wrote:


Some excellent points, Marian.

I'm a little disappointed that you didn't include Architecture in  
your listing of practices; even more so by computer science's use  
of the term architect in various aspects of the work to be done.  
Actually, following my involvement with computers, I became a much  
better Architect due to several realizations. I've mentioned this  
before, elsewhere; but I believe it is worth mentioning again. In  
my earlier days as an Architect, I found myself procrastinating,  
being unwilling to actually start work on a project; mostly by  
being overwhelmed with the magnitude of what needed to be done.


Once I started breaking things down, solving little bits and  
pieces, the project started to be less imposing. Then it even  
started to be fun. But I always felt guilty about the earlier  
procrastination. After spending some time trying to program Macs,  
reading a lot of books on many programming languages, making a  
whole bunch of false starts, I came upon the concept of breaking  
the problem down into small, resolvable pieces; solving what I knew  
how to solve; and researching how to do the things that I didn't  
already know how to resolve.


Unfortunately, this was never taught specifically at U.C.  
Berkeley where I got my architectural degree. Maybe it was implied,  
since we did spend an enormous amount of time with preliminary  
designs and working with programs for projects; however, the  
programs for the projects were always handed to us as a part of our  
assignments, with no realization of the process. Had I been  
studying Computer Science, that would have been one of the first  
things I would have be taught. (I think!) I learned this very  
quickly when I started writing Handlers and Functions for my  
computer programs.


I now apply this mentality to Architecture, and have come to  
realize that procrastination (but by a different name) is part of  
all problem solving. It is during this procrastination process  
that we digest the requirements of a project, and start breaking it  
down into aha! I can solve that bits and pieces. The time is not  
wasted. Sometimes it even saves time by coming up with a better  
approach than might have been taken had we plunged right into  
doing it. Incidentally, this list is a great resource for that  
procrastination process, and then for the subsequent  
researching process. I only wish Architects had a similar  
resource, but I'm afraid we're too egotistical to admit that we  
don't have all the answers ourselves. You never hear an Architect  
self-label themselves as newbies.  (enormous smile!)


Joe Wilkins

On Mar 16, 2008, at 10:57 AM, Petrides, M.D. Marian wrote:

At the risk of opening a can of worms, I offer the following as a  
synopsis of the  sentiments underlying the posts about the Learn  
Programming in One Day ad. The common thread seems to me to be  
that programming, like any other profession, is not so much taught  
as practiced.  Just as medical 

Something I did not learn in a day

2008-03-16 Thread Richmond Mathewson
Thanks, Lee Morgan!

I, stupidly, forgot that not all RR controls have
labels.

Uploaded a version with LABELS deprecated until I can
whip up a loop to check if the control is a button.

sincerely, Richmond Mathewson



A Thorn in the flesh is better than a failed Systems Development Life Cycle.



  ___ 
Rise to the challenge for Sport Relief with Yahoo! For Good  

http://uk.promotions.yahoo.com/forgood/
___
use-revolution mailing list
use-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: text speeds are good

2008-03-16 Thread Dave Cragg


On 16 Mar 2008, at 18:46, Colin Holgate wrote:




filltext();
function filltext() {
var d1:Date = new Date();
var ms:int = d1.getTime();
var t:String = ;
var w:String;
for (var i = 0; i30; i++) {
t += aab;
}
var tarray:Array = t.split(ab);
for (i = 0; itarray.length; i++) {
w = tarray[i];
}
var d2:Date = new Date();
var nms:int = d2.getTime();
trace(nms - ms, t.length);
}


As I said, I used a regEx delimiter for the split. The following is  
what I think is the equivalent of Rev's each word structure.


var d1:Date = new Date();
var ms:int = d1.getTime();
var t:String = ;
var w:String;
var rx:RegExp = /\s/;
for (var i:int = 0; i30; i++) {
t += aa ;
}

var tarray:Array = t.split(rx);
for (i = 0; itarray.length; i++) {
w = tarray[i];
}
var d2:Date = new Date();
var nms:int = d2.getTime();
trace(nms - ms, t.length);

On my machine, it's about 10 times slower than using a simple string  
as the delimiter.


In any case, I was trying to praise Rev's handling of something  
that can be potentially slow, and not trying to find the fastest  
way that it could be done.


I know. And I was interested in your data.  But you did make the  
statement Rev isn't anywhere near as fast as AS3 at handling text  
strings which could have been misinterpreted. I just wanted to point  
out that it might depend on what you are doing.


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: text speeds are good

2008-03-16 Thread Colin Holgate
You'll be pleased to hear that I thought of a way of making the AS3  
version be a fairer test against what Rev is doing. I changed this  
line like here:


   //t += aab;
   t = t.concat(aab);

Clearly t+= is a very fast way of concatenating strings, but making  
AS3 work using the normal string concatenation routines changes the  
timing from 63 mS down to 305 mS, making it a little slower than Rev.



___
use-revolution mailing list
use-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: text speeds are good

2008-03-16 Thread Colin Holgate


On Mar 16, 2008, at 3:48 PM, Dave Cragg wrote:



I know. And I was interested in your data.  But you did make the  
statement Rev isn't anywhere near as fast as AS3 at handling text  
strings which could have been misinterpreted.


I don't see how that could misinterpreted, I mean, clearly I was  
wrong! At least when the playing field is leveled by making AS3 use  
normal string functions.


Is there something analogous to var += in Rev, that would make for  
faster concatenating in simpler cases?



___
use-revolution mailing list
use-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: text speeds are good

2008-03-16 Thread Dave Cragg


On 16 Mar 2008, at 19:54, Colin Holgate wrote:



On Mar 16, 2008, at 3:48 PM, Dave Cragg wrote:



I know. And I was interested in your data.  But you did make the  
statement Rev isn't anywhere near as fast as AS3 at handling text  
strings which could have been misinterpreted.


I don't see how that could misinterpreted,


Well, I clearly misinterpreted it, which is my problem. :-)  And I  
guess my post must have come across as confrontational. My apologies.  
It wasn't my intention. AS3 clearly concatenates text faster than  
Rev. But I haven't found a way to emulate the speed of Rev's repeat  
for each word structure.


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: setting http headers to mimic IE6/Win

2008-03-16 Thread Phil Davis

Thanks Mark!
Phil


Mark Smith wrote:

Phil, you probably want to do something like this:

set the httpHeaders to User-Agent:  whatever the appropriate 
string for IE is


and you can find out what the string is here:

http://www.useragent.org/

Best,

Mark

On 16 Mar 2008, at 05:37, Phil Davis wrote:


I barely know enough to be dangerous with this one:

Does anyone know offhand what the http headers for IE6/Win look like? 
I want to request (and download) a url from a server that will only 
talk to IE on Windows. I want to put the page directly into a field 
without using revBrowser.


Maybe the right question to ask is, Is there a proxy server or 
something else I can use to see my outgoing http headers from IE 
(e.g. revBrowser/Win)? Then I can figure out what to do.


(If I could automate the selecting of all text in revBrowser, that 
would be an adequate alternative to what I'm asking here).


I understand I'll need to use libUrlSetCustomHttpHeaders to replace 
Rev's native headers. I just don't know what to set the headers to.


Thanks!
--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-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



--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-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: Lowering high CPU rates?

2008-03-16 Thread Sarah Reichelt
I'll confirm that. I recently wrote a script that had to process a lot
of data, and I added a progress bar as a matter of course. The script
took 6 seconds to complete. That felt like quite a long time, so I
started adjusting the progress update to only change every so many
cycles. The longer between updates, the faster the script ran. Then I
had an epiphany and removed the progress bar altogether -- and the same
data got processed in about a dozen milliseconds. The entire lag was the
progress bar!
  
Rev is so fast, sometimes you forget.

  Hummm... maybe I better rethink adding the progress bar entirely and
  stick with the occasional label field updates. =/

Don't forget that not all computers are fast especially as the user
may be doing something else that is grabbing a lot of the CPU at the
time. I prefer Richard's method of occasional progress bar updates.
Unless you are sure that the process will be extremely quick in all
circumstances, removing the progress bar may not be a good solution.

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: question about splash stacks

2008-03-16 Thread Chipp Walters
Peter,

My guess is you're saving changes to a different main.rev than the
splashscreen executable is opening. Or...you're not really saving the
changes. Remember, you must issue an explicity 'save stack' for the
changes to be saved, unlike Hypecard where they were always saved
automatically.

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


getting the color of a pixel

2008-03-16 Thread Colin Holgate
For something I'm trying, I want to know the color of a specified  
pixel on the card. I haven't yet found a built in function for that,  
so I made one:


function getPixel x,y
  put the screenMouseLoc into ml
  set the screenMouseLoc to x+the left of this stack,y+the top of  
this stack

  put the mouseColor into mc
  set the screenMouseLoc to ml
  return mc
end getPixel

It works really well, and quickly, so I can carry on with what I'm  
trying. Was there a built in way that I should have found in the help?



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


Re: getting the color of a pixel

2008-03-16 Thread Mark Schonewille

Hi Colin,

This might help:

http://article.gmane.org/gmane.comp.ide.revolution.user/84652

Maybe it is not exactly what you need, but it help you to get started.

Btw, if you go to the Economy-x-Talk homepage (see below) and click on  
Developers on the left side of the page, you can download a search  
plugin for Firefox, which searches the Revolution mail list archives.


Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

A large collection of scripts for HyperCard, Revolution, SuperCard and  
other programming languages can be found at http://runrev.info





On 16 mrt 2008, at 23:21, Colin Holgate wrote:

For something I'm trying, I want to know the color of a specified  
pixel on the card. I haven't yet found a built in function for that,  
so I made one:


function getPixel x,y
 put the screenMouseLoc into ml
 set the screenMouseLoc to x+the left of this stack,y+the top of  
this stack

 put the mouseColor into mc
 set the screenMouseLoc to ml
 return mc
end getPixel

It works really well, and quickly, so I can carry on with what I'm  
trying. Was there a built in way that I should have found in the help?


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


Re: getting the color of a pixel

2008-03-16 Thread Colin Holgate


On Mar 16, 2008, at 6:31 PM, Mark Schonewille wrote:


http://article.gmane.org/gmane.comp.ide.revolution.user/84652

Maybe it is not exactly what you need, but it help you to get started.


Thanks, that could be useful. It seems to be for images though, rather  
than all of the pixels in a card. But for what I'm doing right now I  
can make something as an image, to save a bit of processor time.



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


Re: getting the color of a pixel

2008-03-16 Thread Chipp Walters
Mark,

Thanks for the plugin...SUPER IDEA and it works great in WinXP!

On Sun, Mar 16, 2008 at 4:31 PM, Mark Schonewille
[EMAIL PROTECTED] wrote:

  Btw, if you go to the Economy-x-Talk homepage (see below) and click on
  Developers on the left side of the page, you can download a search
  plugin for Firefox, which searches the Revolution mail list archives.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: getting the color of a pixel

2008-03-16 Thread Mark Schonewille

Hi Colin,

Sorry if the script wasn't too helpful. Right now, I am a bit too busy  
to look at it in detail. You could check out the screenMouseLoc and  
the mouseColor.


Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

A large collection of scripts for HyperCard, Revolution, SuperCard and  
other programming languages can be found at http://runrev.info





On 16 mrt 2008, at 23:44, Colin Holgate wrote:




Thanks, that could be useful. It seems to be for images though,  
rather than all of the pixels in a card. But for what I'm doing  
right now I can make something as an image, to save a bit of  
processor time.


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


Re: getting the color of a pixel

2008-03-16 Thread Colin Holgate


On Mar 16, 2008, at 6:59 PM, Mark Schonewille wrote:

Sorry if the script wasn't too helpful. Right now, I am a bit too  
busy to look at it in detail. You could check out the screenMouseLoc  
and the mouseColor.


You're so funny! Either that or really are busy. My script I posted  
uses those two to solve the issue. Meanwhile, the imageData thing does  
look promising.

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


instant silent crash

2008-03-16 Thread Colin Holgate
Rev 2.9 just vanished while I was using it. No message saying that it  
had crashed. Is there likely to be a crash log of some sort somewhere  
for me to look at, before I open in again?



___
use-revolution mailing list
use-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: instant silent crash

2008-03-16 Thread Mark Schonewille

Hi Colin,

Like this one?
http://quality.runrev.com/qacenter/show_bug.cgi?id=6017

Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

A large collection of scripts for HyperCard, Revolution, SuperCard and  
other programming languages can be found at http://runrev.info





On 17 mrt 2008, at 00:15, Colin Holgate wrote:

Rev 2.9 just vanished while I was using it. No message saying that  
it had crashed. Is there likely to be a crash log of some sort  
somewhere for me to look at, before I open in again?


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


Re: getting the color of a pixel

2008-03-16 Thread Chipp Walters
Nope, no built-in way. Yours is fine. Interesting is that you can also
find the mouseColor under the cursor even if outside the stack. One of
the ways I use to 'grab' colors from an eyedropper like tool.

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


Re: instant silent crash

2008-03-16 Thread Chipp Walters
You might want to check and see what externals you were using when Rev crashed.
___
use-revolution mailing list
use-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: instant silent crash

2008-03-16 Thread Colin Holgate


On Mar 16, 2008, at 7:21 PM, Mark Schonewille wrote:


Like this one?
http://quality.runrev.com/qacenter/show_bug.cgi?id=6017


No, nor the one it references. Both times it's happened now it seemed  
like I might have invoked opencard, which was putting the imageData of  
an image into a local variable. Does opencard happen before or after  
card level objects exist?



___
use-revolution mailing list
use-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: instant silent crash

2008-03-16 Thread Sarah Reichelt
On Mon, Mar 17, 2008 at 9:15 AM, Colin Holgate [EMAIL PROTECTED] wrote:
 Rev 2.9 just vanished while I was using it. No message saying that it
  had crashed. Is there likely to be a crash log of some sort somewhere
  for me to look at, before I open in again?

Or this one http://quality.runrev.com/qacenter/show_bug.cgi?id=5623.

What were you doing at the time?

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: ANN: IP to Country

2008-03-16 Thread Sarah Reichelt
On Mon, Mar 17, 2008 at 4:57 AM, Mark Smith [EMAIL PROTECTED] wrote:
 I've made a little stack (IPtoCountry) for any internet sleuths who
  want to know what country an ip address comes from.

  It's at: http://www.futility.co.uk/futsoft/revolutionstuff.html

  It downloads a db file from the ip-to-country web host.

Neat! Thanks Mark.

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: instant silent crash

2008-03-16 Thread Colin Holgate


On Mar 16, 2008, at 7:28 PM, Sarah Reichelt wrote:


Or this one http://quality.runrev.com/qacenter/show_bug.cgi?id=5623.


No. Also, the Console crashreporter area doesn't show any Revolution  
entries at all, so it was a really silent crash.



___
use-revolution mailing list
use-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: instant silent crash

2008-03-16 Thread Björnke von Gierke
I had some crashes with imagedata once. I think it was when I did  
append data in a repeat loop (leading to exponentially increasing  
sized data). But it didn't crash every time. I actually wanted to set  
the imagedate to changed data every loop, not append data, and as the  
crash happened when I did something I didn't want to do, I never got  
around to properly test and file it.


On 17 Mar 2008, at 00:27, Colin Holgate wrote:



On Mar 16, 2008, at 7:21 PM, Mark Schonewille wrote:


Like this one?
http://quality.runrev.com/qacenter/show_bug.cgi?id=6017


No, nor the one it references. Both times it's happened now it  
seemed like I might have invoked opencard, which was putting the  
imageData of an image into a local variable. Does opencard happen  
before or after card level objects exist?



--

official ChatRev page:
http://chatrev.bjoernke.com

Chat with other RunRev developers:
go stack URL http://homepage.mac.com/bvg/chatrev1.3.rev;

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


Re: ANN: IP to Country

2008-03-16 Thread Alex Shaw

Thanks Mark, always wondered the best way to do that.

regards
alex


Mark Smith wrote:
I've made a little stack (IPtoCountry) for any internet sleuths who want 
to know what country an ip address comes from.



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


Re: getting the color of a pixel

2008-03-16 Thread J. Landman Gay

Colin Holgate wrote:
For something I'm trying, I want to know the color of a specified pixel 
on the card. I haven't yet found a built in function for that, so I made 
one:


function getPixel x,y
  put the screenMouseLoc into ml
  set the screenMouseLoc to x+the left of this stack,y+the top of this 
stack

  put the mouseColor into mc
  set the screenMouseLoc to ml
  return mc
end getPixel

It works really well, and quickly, so I can carry on with what I'm 
trying. Was there a built in way that I should have found in the help?


I asked Scott Raney for a function like that many years ago, and he 
replied that I should do it exactly as you are doing it now. So I guess 
that's the officially sanctioned method.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: instant silent crash

2008-03-16 Thread J. Landman Gay

Colin Holgate wrote:


On Mar 16, 2008, at 7:21 PM, Mark Schonewille wrote:


Like this one?
http://quality.runrev.com/qacenter/show_bug.cgi?id=6017


No, nor the one it references. Both times it's happened now it seemed 
like I might have invoked opencard, which was putting the imageData of 
an image into a local variable. Does opencard happen before or after 
card level objects exist?


After. Preopencard also can reference card objects.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Something I did not learn in a day

2008-03-16 Thread Len Morgan
Ok, it seems to run but it only dumps the TEXIFIER stack details.  Is 
that what it's supposed to do?  Is there a way to point it to a stack of 
mine or do I need to move the scripts into my stack to make it work?


By the way, it's Len Morgan, not Lee.  But then, I get called lots of 
things.  :-)


leN morgan

Richmond Mathewson wrote:

Thanks, Lee Morgan!

I, stupidly, forgot that not all RR controls have
labels.

Uploaded a version with LABELS deprecated until I can
whip up a loop to check if the control is a button.

sincerely, Richmond Mathewson



A Thorn in the flesh is better than a failed Systems Development Life Cycle.



  ___ 
Rise to the challenge for Sport Relief with Yahoo! For Good  


http://uk.promotions.yahoo.com/forgood/
___
use-revolution mailing list
use-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: Lowering high CPU rates?

2008-03-16 Thread Kee Nethery
I found that the throbbing default buttons in Mac OS X would really  
hog the CPU. The screen just sitting there in idle with a throbbing  
button was all it took to use up an amazing amount of CPU. Seems like  
a lame feature.


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: Rev message box

2008-03-16 Thread -= JB =-
If you mean the property inspector that can be accessed by clicking  
the inspector
icon in the top left corner I did that and cannot figure out how to  
inspect the msg

box or its field etc.

I reinstalled Rev and the problem remains.  I do have an older  
version of Rev that

is also in my main Rev folder but this was never a problem before.

The only thing I deleted before reinstalling Rev was the version of  
Rev the installer

placed in my Rev folder that I am using and is giving me the problem.

I do not know how I saved this message (although I have used the  
message) and I

have no idea where it is being saved too.

Thanks for taking the time to reply.  If you have any other ideas  
please let me know.


-=JB=-



On Mar 16, 2008, at 10:17 AM, J. Landman Gay wrote:

I'm a little fuzzy on this part, but if you use the property  
inspector to look at the message field, you'll see a  
cRevMessageHistory property. There is also a custom property set  
with a similar name. See if the line of text appears anywhere in  
those properties and if so, delete it. Then do save stack 'Message  
box' and see if that helps.


I'm not sure, but you may have to create a button in a stack to  
issue the save command, because if you save the message box with  
the save command in it, you may start seeing that line instead of  
the old one.


Or maybe an even simpler fix would be to just reinstall Rev.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

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



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


Re: Lowering high CPU rates?

2008-03-16 Thread Richard Gaskin

Kee Nethery wrote:
I found that the throbbing default buttons in Mac OS X would really  
hog the CPU. The screen just sitting there in idle with a throbbing  
button was all it took to use up an amazing amount of CPU. Seems like  
a lame feature.


While it's true that Apple's compositing wastes a great many clock 
cycles for minor incremental aesthetic enhancements, and it's painfully 
true that the limitations of their APIs requires developers of tools 
like Rev and SC to jump through some pretty big hoops to allow their 
developers to have default buttons rendered reliable against even 
non-Apple-sanctioned-stripes backgrounds, the actual CPU time Rev takes 
up to deal with all of Apple's nonsense was tremendously reduced several 
versions ago.


Which version are you using?  In v2.9 and the last few prior, I don't 
recall seeing any idle state exceed 15% of total CPU time (more than 
ideal, perhaps, but down several times from what it once was and may be 
able to be brought down even lower if Apple changes their compositing API).


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Something I did not learn in a day

2008-03-16 Thread Stephen Barncard

Lee Morgan is a cool jazz musician.

Ok, it seems to run but it only dumps the TEXIFIER stack details. 
Is that what it's supposed to do?  Is there a way to point it to a 
stack of mine or do I need to move the scripts into my stack to make 
it work?


By the way, it's Len Morgan, not Lee.  But then, I get called lots 
of things.  :-)


leN morgan


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
use-revolution mailing list
use-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 message box

2008-03-16 Thread J. Landman Gay

-= JB =- wrote:
If you mean the property inspector that can be accessed by clicking the 
inspector
icon in the top left corner I did that and cannot figure out how to 
inspect the msg

box or its field etc.


There are a couple of ways, but try holding down command-control-shift 
and clicking on the field in the message box. You should get a 
contextual menu that allows you to inspect the field, which is named 
message field.




I reinstalled Rev and the problem remains.  I do have an older version 
of Rev that

is also in my main Rev folder but this was never a problem before.

The only thing I deleted before reinstalling Rev was the version of Rev 
the installer

placed in my Rev folder that I am using and is giving me the problem.


I'm not exactly sure where Rev stores the message history. If it isn't 
in those properties, you might try deleting your preferences stack. 
That's in:
~/Library/Preferences/Runtime Revolution/Revolution 
edition/revpreferences.rev


Keep a copy, so if that isn't the problem you can put the old one back.



I do not know how I saved this message (although I have used the 
message) and I have no idea where it is being saved too.


Me either, but try the above and keep us posted.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution