Re: Memory usage

2013-07-05 Thread J. Landman Gay
On 7/5/13 8:00 AM, Bernard Devlin wrote: Jacques, Since your client has the requirement of no externals, I think there is still one way to encrypt the data, using nothing but the engine. Isn't it the case that if you store data as custom properties in password-protected stacks that the custom

Re: Memory usage

2013-07-05 Thread Dar Scott
There is no harm in using SHA1 in a scrambling/encrypting function of this type. The longer key might make it harder to crack. (Redoing the key based on the previous key every so-many characters might also help.) However, there is a tiny way in which MD5 is better. It is faster. That might

Re: Memory usage

2013-07-04 Thread Richard Gaskin
Monte Goulding wrote: If this is the same project I think it is then she can't use encryption because she can't use any externals... nothing but the executable is allowed... While not nearly as secure as Blowfish (not by a long shot), this modest encryption script can at least slow down

Re: Memory usage

2013-07-04 Thread J. Landman Gay
On 7/3/13 5:19 PM, Monte Goulding wrote: On 04/07/2013, at 8:16 AM, Devin Asay devin_a...@byu.edu wrote: But now we're getting into semantics, right? Because if you use up all your RAM the OS is going to start spooling stuff onto the hard drive. Seems like there are all kinds of safeguards

Re: Memory usage

2013-07-04 Thread J. Landman Gay
On 7/3/13 5:22 PM, Devin Asay wrote: Hey, just make up your own encryption scheme. I know a good one-- A=1, B=2, C=3, etc. ;-) It's even harder if you offset those by 2: A=3, B=4. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: Memory usage

2013-07-04 Thread J. Landman Gay
On 7/4/13 2:52 AM, Mark Wilcox wrote: jac...@hyperactivesw.com wrote: You're a good guesser. I just asked, and the client thinks a 2-gig average is about right. From what you described of the memory usage of your system, it's not going to get even remotely close to needing swap on a PC

Re: Memory usage

2013-07-04 Thread J. Landman Gay
On 7/4/13 8:53 AM, Richard Gaskin wrote: Monte Goulding wrote: If this is the same project I think it is then she can't use encryption because she can't use any externals... nothing but the executable is allowed... While not nearly as secure as Blowfish (not by a long shot), this modest

Re: Memory usage

2013-07-04 Thread Richard Gaskin
J. Landman Gay wrote: BTW, RR recently removed the ability to see scripts in a memory dump. :) Which version? The implications are interesting: does it make things faster or slower? If they're only saving a tokenized form of the script that would seem likely to make things faster, as it

Re: Memory usage

2013-07-04 Thread J. Landman Gay
I'm not sure how it's done exactly. Mark Waddingham mentioned it to me at the last conference, he just said it was no longer possible to read the code from memory. I didn't even ask what version but I got the impression it was a recent change. Richard Gaskin ambassa...@fourthworld.com

Re: Memory usage

2013-07-03 Thread Phil Davis
That would be my guess. Phil On 7/2/13 8:13 PM, J. Landman Gay wrote: Can I safely assume that if I load a whole bunch of stacks into RAM, that virtual memory will take care of memory usage for me? My project is getting huge. -- Phil Davis

Re: Memory usage

2013-07-03 Thread Mark Wilcox
into RAM, that virtual memory will take care of memory usage for me? My project is getting huge. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list

Re: Memory usage

2013-07-03 Thread J. Landman Gay
it (unlikely). On mobile platforms, no, use too much memory and the OS will kill your app. Mark J. Landman Gay jac...@hyperactivesw.com wrote: Can I safely assume that if I load a whole bunch of stacks into RAM, that virtual memory will take care of memory usage for me? My project is getting huge

Re: Memory usage

2013-07-03 Thread Richard Gaskin
J. Landman Gay wrote: Can I safely assume that if I load a whole bunch of stacks into RAM, that virtual memory will take care of memory usage for me? Yes, but with two caveats: 1. Swap space is limited, and the OS uses it a lot. In most cases it'll do what you need, but it's possible

Re: Memory usage

2013-07-03 Thread Paul Looney
into RAM, that virtual memory will take care of memory usage for me? Yes, but with two caveats: 1. Swap space is limited, and the OS uses it a lot. In most cases it'll do what you need, but it's possible to meet limits. 2. Swap space is slow. If the foreground app dips into swap space

Re: Memory usage

2013-07-03 Thread Paul Looney
If Jacque's program is too big to work with 8 G of RAM, an SSD should be a trivial expense to run it properly. How big IS it? PL On Jul 3, 2013, at 10:22 AM, Richard Gaskin wrote: Paul Looney wrote: This is a situation where using an SSD instead of an HD can make a world of difference.

Re: Memory usage

2013-07-03 Thread Dar Scott
, that virtual memory will take care of memory usage for me? My project is getting huge. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use

Re: Memory usage

2013-07-03 Thread J. Landman Gay
On 7/3/13 12:01 PM, Paul Looney wrote: This is a situation where using an SSD instead of an HD can make a world of difference. Swaps into and out of an SSD take about a tenth the time. Paul Looney A commercial desktop app doesn't have any control over that, unfortunately. -- Jacqueline

Re: Memory usage

2013-07-03 Thread Paul Looney
Jacque, For as long as I can remember, the developer has been able to specify the OS Version, the amount of RAM, and the amount of disk space required for a program. If the program really requires 16 G of RAM or an SSD, the developer should specify that as well. Small SSDs (60 G) are less than

Re: Memory usage

2013-07-03 Thread Dar Scott
I just can't remember what it was, but I recently saw an app that would not run at all unless it could perform well. Short of that, you can list system requirements. But maybe (eventually) a commercial app should run well even in typical RAM. Now, what is typical RAM? Dar On Jul 3,

Re: Memory usage

2013-07-03 Thread J. Landman Gay
On 7/3/13 12:29 PM, Paul Looney wrote: If Jacque's program is too big to work with 8 G of RAM, an SSD should be a trivial expense to run it properly. How big IS it? It's for students and they will run the app on their own machines. My concern is for students with old machines, or school lab

Re: Memory usage

2013-07-03 Thread J. Landman Gay
On 7/3/13 12:57 PM, Dar Scott wrote: Now, what is typical RAM? I'd like to know that too, especially for school lab computers. I'd also like to know how I should calculate the minimum requirements. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software

Re: Memory usage

2013-07-03 Thread Dar Scott
Now, I'm being (half) goofy. You can have a student and homeschool version which limits the student to some number of things being worked on and has a requirement of 4G. You can have a school or teacher or government institution version that has no such limit and has a requirement of 8G.

Re: Memory usage

2013-07-03 Thread J. Landman Gay
On 7/3/13 1:53 PM, Devin Asay wrote: Why not set the destroyStack to true, and save the stacks as they are downloaded from the server to specialFolderPath(temporary)? Then they would open quickly when re-called. You could make sure the temporary cache was deleted before quitting. Yeah. But I

Re: Memory usage

2013-07-03 Thread J. Landman Gay
On 7/3/13 1:49 PM, Dar Scott wrote: I'd like to know that too, especially for school lab computers. I'd also like to know how I should calculate the minimum requirements. Perhaps school districts have guidelines for memory requirements of purchased software as well as upgrade/retire memory

Re: Memory usage

2013-07-03 Thread Devin Asay
On Jul 3, 2013, at 2:25 PM, J. Landman Gay wrote: On 7/3/13 1:53 PM, Devin Asay wrote: Why not set the destroyStack to true, and save the stacks as they are downloaded from the server to specialFolderPath(temporary)? Then they would open quickly when re-called. You could make sure the

Re: Memory usage

2013-07-03 Thread Monte Goulding
On 04/07/2013, at 8:16 AM, Devin Asay devin_a...@byu.edu wrote: But now we're getting into semantics, right? Because if you use up all your RAM the OS is going to start spooling stuff onto the hard drive. Seems like there are all kinds of safeguards you could put in place to protect their

Re: Memory usage

2013-07-03 Thread Devin Asay
On Jul 3, 2013, at 4:19 PM, Monte Goulding wrote: On 04/07/2013, at 8:16 AM, Devin Asay devin_a...@byu.edu wrote: But now we're getting into semantics, right? Because if you use up all your RAM the OS is going to start spooling stuff onto the hard drive. Seems like there are all kinds

Re: Memory usage

2013-07-03 Thread Monte Goulding
On 04/07/2013, at 8:22 AM, Devin Asay devin_a...@byu.edu wrote: Hey, just make up your own encryption scheme. I know a good one-- A=1, B=2, C=3, etc. ;-) Ah.. everyone knows how to crack that one now Devin ;-) -- Monte Goulding M E R Goulding - software development services mergExt -

Re: Determining LC Server memory usage?

2013-07-02 Thread Richard Gaskin
Phil Davis wrote: Interesting question, Richard. Here is something I just tried in a quick CGI script. Don't know it gives the memory info we need, but here goes: put p word 2 of shell(ps -p the processID -o rss) k/p Nice solution. I had forgotten about processID. I was hoping for

Memory usage

2013-07-02 Thread J. Landman Gay
Can I safely assume that if I load a whole bunch of stacks into RAM, that virtual memory will take care of memory usage for me? My project is getting huge. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com

Determining LC Server memory usage?

2013-06-30 Thread Richard Gaskin
Phil's recent thread on LC Server memory usage got me thinking: how can we measure the RAM used by LC Server while it's running? CGI processes generally end too quickly to show up in top. Any other solutions? -- Richard Gaskin Fourth World LiveCode training and consulting: http

Re: Determining LC Server memory usage?

2013-06-30 Thread J. Landman Gay
thread on LC Server memory usage got me thinking: how can we measure the RAM used by LC Server while it's running? CGI processes generally end too quickly to show up in top. Any other solutions? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com