Re: Resources folder on mac, and the good old days

2021-03-31 Thread Neville Smythe via use-livecode
standalone to use such an uninstall strategy you would need and Installer; and I don’t think it is really appropriate to have an ordinary app to have a daemon running all the time. > On 31 Mar 2021, at 9:42 pm, Keith Martin wrote: > > >> On Mar 29, 2021, at 11:22 PM, Neville Smythe v

Re: Resources folder on mac, and the good old days

2021-03-29 Thread Neville Smythe via use-livecode
> On 30 Mar 2021, at 12:44 am, use-livecode-requ...@lists.runrev.com wrote: > > Unfortunately this has never been true on macOS X. > > The Resources folder (which is in the macOS app bundle) should be > treated as read-only… Mark Waddingham chides me for saying it is OK to write to the

Resources folder on mac, and the good old days

2021-03-28 Thread Neville Smythe via use-livecode
> you may already know this, but this will not work in a standalone! > We will surely not have write permissions in that folder! > > As a workaround I would probably use -> specialfolderpath("temporary") > Or even write the text to -> the tempname > I find this discussions strange - I had the

Re: revCopyFolder in LC Server

2021-01-27 Thread Neville Smythe via use-livecode
Thanks Matthias. I would not have guessed that from the Documentation which simply says that revCopyHandler is available for “desktop,server”. I was thinking I would just use a one-line shell call to replace the handler … but I suppose I should install the whole shebang Neville

revCopyFolder in LC Server

2021-01-27 Thread Neville Smythe via use-livecode
I get a “Can’t find handler (revCopyFolder)” error in LC Server from a script line revCopyFolder tTemplateDir,tDirPath The script works up to that line. Is there a problem with using revCopyFolder in LCServer? Neville ___ use-livecode mailing list

Call lc from php?

2021-01-21 Thread Neville Smythe via use-livecode
A slightly less cursory investigation informs me that works, as I should;d have known. Neville ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Call lc from php?

2021-01-20 Thread Neville Smythe via use-livecode
Quick question: is it possible to execute a .lc server script from within php (eg from an index.php page)? This other way is documented, but on a cursory perusal I couldn’t see how to do it, and I’ve forgotten more about php than I remember. Maybe using a shell command within the php, but is

Re: POST command does not work if Lock messages is set

2021-01-11 Thread Neville Smythe via use-livecode
For anyone wishing to follow this bug, it has been confirmed by QC at https://quality.livecode.com/show_bug.cgi?id=23058 As for my other fake news problem with data size and POST, please forget I ever misspoke. LiveCode Server is rather a

POST data size bug

2021-01-10 Thread Neville Smythe via use-livecode
Ah. My bad I just discovered libURLSetExpect100 Neville ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

POST data size bug

2021-01-09 Thread Neville Smythe via use-livecode
I seem to have hit another bug in POSTing data to LiveCoder Server (Community 9.6.2) If the data being posted has 139000 characters the POST succeeds and I get a response back from my LC script in about 2.5 seconds. If I try to send about 14 characters I get a time out error. I presume

POST does not work under lock messages

2021-01-08 Thread Neville Smythe via use-livecode
It took me a while to figure this one out. I have a number of scripts which POST to LiveCode Server .lc scripts. All were working fine except one which always returned the output from whatever POST had last been executed. Evidently the previous form request was being resubmitted. Turns out I

Re: Secure connection to server

2020-12-28 Thread Neville Smythe via use-livecode
I have now moved all my code from php to LiveCode server as the middle-ware. Firstly it appears that the LiveCode post operation does reuse authentication credentials to an https connection as long as calls are made within a single script. In my case the first call typically takes slightly more

Secure connection to server

2020-12-15 Thread Neville Smythe via use-livecode
A little while ago in this forum we were alerted to the fact that LC direct connection to a remote database not using SSL was a security hole. This also applies to managing Mailman lists on a remote server. After a steep (re-)learning curve with the various technologies, I now have a working

Rer: Decrypt problem on Windows solved

2020-12-14 Thread Neville Smythe via use-livecode
> Could you try to textEncode the encrypted data before saving it in the > custom property, and then, in the other platform, textDecode it before > decrypting it? Many thanks Panos, yes, that fixed the problem. It never occurred to me that reading binary data from the custom properties of a

Rer: Decrypt problem on Windows

2020-12-14 Thread Neville Smythe via use-livecode
The problem is platform-symmetric. That is, a string encrypted in LC on Windows will not decrypt on the Mac. Linux will not decrypt a string encrypted on the Mac, and presumably vice-versa. I did toy with the idea that the encryption keys might be device dependent, maybe the public and private

Decrypt problem on Windows

2020-12-13 Thread Neville Smythe via use-livecode
I am getting a difference in the results from decryption of a variable (stored in a stack custom property) between Mac and Windows 10. The script is decrypt using "aes-256-cbc" with password On the Mac this decrypts < myEncryptedStr > to its original value On Windows it gives an empty

Re: SSL cPanel mySql setup

2020-10-19 Thread Neville Smythe via use-livecode
> I'm not sure what that DH rep is going on about, because the same set of > LC Lessons that describe how to set it up via Apache config also include > one on setting it up via .htacces on shared hosts. Many thanks Richard I will give it a go. I was once told by a DreamHost support guy that

Re: SSL cPanel mySql setup

2020-10-18 Thread Neville Smythe via use-livecode
> On 19 Oct 2020, at 3:00 am, use-livecode-requ...@lists.runrev.com wrote: > > Dreamhost never did install LC ... but several of us have made it work. > Just get the right server executable and permissions. > I could never get it work account wide but it rocked for individual web > site

Re: SSL cPanel mySql setup

2020-10-17 Thread Neville Smythe via use-livecode
Thanks to this thread for the realisation my remote db connections are not secure. I just checked with Dreamhost and they gave their reasons for not use SSL with their mySQL setup — unacceptable burden on their server and undesirable for web app access; so in their opinion very few shared host

Re: Modal stacks cpu usage

2020-10-03 Thread Neville Smythe via use-livecode
Jacque wrote > If the Project Browser is open, try closing it. On my Mac, the CPU usage > while idle is usually close to 0 when in the background. Interesting. I would indeed have expected a good-citizen app doing nothing in the background to use less than 1% cpu: Mail, Safari. Finder, BBEdit,

Re: Modal stacks cpu usage

2020-10-02 Thread Neville Smythe via use-livecode
Looks like Elanor beat me to it Bug 22929 Neville Smythe ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Modal stacks cpu usage

2020-10-02 Thread Neville Smythe via use-livecode
> Confirmed here on macOS 10.14.5. The CPU load is indeed quite dramatic > with modal dialogs. > > I also checked on Linux (Ubuntu 18.04), and LC does not exhibit the > problem there. Thanks Richard for confirming, and testing on Linux. Yes I will file a bug report. It occurred to me that

Modal stacks cpu usage

2020-09-30 Thread Neville Smythe via use-livecode
I have just noticed something curious. I am running LiveCode 8.1 IDE 9.6.1 on a Mac Air 2020 quad core Catalina. Typically LC cpu usage shows about 34% (presumably of 1 core). When a modal stack is opened it immediately ramps up to 99% ; the fan kicks in, and if left for a while the OS

Catalina and Apple mail

2020-05-17 Thread Neville Smythe via use-livecode
Graham: before updating to Catalina definitely make a back of everything. When I updated I lost 35000 emails. Not just that they weren't loaded by Mail, they were actually deleted from the computer. That said, that was some months ago, and Catalina has since solved that problem - reportedly; I

Re: DataGrid table DeleteIndex

2020-04-18 Thread Neville Smythe via use-livecode
BobS wrote > Did you try the plural form of deleteIndex(es)? Well you see I read the documentation. Which says “DeleteIndexes” is a synonym of “DeleteIndex”. So I didn’t try it (didn’t try “DeleteIndices” either). Thanks Bob, that does work! So the documentation is wrong. There is no separate

DataGrid table DeleteIndex

2020-04-18 Thread Neville Smythe via use-livecode
Am I doing something wrong? I put a comma delimited list into tIndexes, then dispatch DeleteIndex to my DataGrid with tIndexes. Only the first index in my list is actually deleted. LC 9.5.1, Mac Catalina. [Also, If I perform another action in the same handler as the call to delete indexes

Re: Go to card has become slow

2020-04-13 Thread Neville Smythe via use-livecode
Mark Waddingham wrote > Each paragraph has at least one style run - even if no styles are > applied so this is a general thing. > > Most of the text in your generated test (data) stack was unstyled anyway > (as it uses 'the text of' to replicate the data) so minimizing those API > calls should

Re: Go to card has become slow

2020-04-12 Thread Neville Smythe via use-livecode
Mark Waddingham wrote > There appear to be two reasons for the difference: > > 1) When saving each style run (block) in a field the engine is making > three Win32 API calls. > > 2) The saving method uses (and always has used) direct Win32 system > calls to manipulate files without any

Re: Go to card has become slow

2020-04-11 Thread Neville Smythe via use-livecode
Sorry Brian, I uploaded from the wrong folder. Here is the update test set. But the only difference is that you don’t need to hold down the shift key to see the binary save timing. https://www.dropbox.com/sh/cb2r9jbohxqv6bp/AAAQ1weLLlzrKYQ21yn1apf9a?dl=0

Re: Go to card has become slow

2020-04-10 Thread Neville Smythe via use-livecode
> On 11 Apr 2020, at 2:00 am, Brian Milby wrote > > I just imported a 500kb image to the card, removed the text from the field, > created 300 cards. > 0.756 seconds normal (171MB). 1.124 from a variable. (image instead of > text) > 8.311 seconds normal (8.2MB). 0.047 from a variable. (original

Re: Go to card has become slow

2020-04-08 Thread Neville Smythe via use-livecode
I have updated the SlowSave test stack with Richard's enhancement to also show the time to save the binary data (no need to use the shift button) https://www.dropbox.com/sh/cb2r9jbohxqv6bp/AAAQ1weLLlzrKYQ21yn1apf9a?dl=0 Pleased to see everyone is seeing the problem at last, it doesn’t seem to

Re: Go to card has become slow

2020-04-08 Thread Neville Smythe via use-livecode
Richard: OK, so my impression, that LC saving a (binary) file on Windows 10 is not the problem, is correct, as you deduce it lies in the serialisation of the stack. Now why would that be platform, indeed OS, dependent? Could the LC cache/virtual memory settings be different for Windows 10 from

Re: Go to card has become slow

2020-04-07 Thread Neville Smythe via use-livecode
Richard Here is a link to the test stack for testing the speed of save stack https://www.dropbox.com/sh/cb2r9jbohxqv6bp/AAAQ1weLLlzrKYQ21yn1apf9a?dl=0 I don’t know why the test stacks I supplied disappeared from the QC bug report. You need the SlowSave.livecode and the data.livecode stacks.

Re: Go to card has become slow

2020-04-06 Thread Neville Smythe via use-livecode
Richard wrote > Bob Sneidar wrote: > >> In review, I tested saving stacks on a standalone Windows Workstation, >> a VMWARE VM on a very robust server host, a Parallels VM on a >> workstation and my Mac. As I am saving the stack, I am watching the >> folder the stack is in. I see the tilde

Re: Mobile Wondering

2020-04-06 Thread Neville Smythe via use-livecode
I had been wondering when the third-class status of mobile platforms in the LC world, particularly in relation to scrolling fields and groups, would crop up here. Some time ago I looked at converting an iOS project to LC, and was appalled at the crude 1984-style appearance of scroll bars. I

Re: Unicode mysteries

2020-03-27 Thread Neville Smythe via use-livecode
I have filed a bug report bug_22561 re the misreporting of codepoints for unicode characters. I am pretty convinced the treatment of the Rainbow flag emoji as three separate characters should be treated as incorrect behaviour and therefore

Re: Unicode mysteries

2020-03-26 Thread Neville Smythe via use-livecode
> >> Which should correspond to codepoints >> 1F3F4 E0067 E0062 E0073 E0063 E0074 E007F >> And indeed if I manually build a UTF-16 string with these code points >> it does display as the flag of Scotland. So the lesson is that the >> reported chunks are not to be naively trusted --- tho

Unicode mysteries

2020-03-26 Thread Neville Smythe via use-livecode
I am trying to understand the mysteries of unicode encodings; the following may (or may not) be useful (or confusing) to others. The docs say the full chunk expression for a unicode character is byte i of codeunit j of codepoint k of character c of str (with the warning that this is 'not

Re: Bug drawing card in LC9

2019-04-26 Thread Neville Smythe via use-livecode
A workaround for the bug is to use any visual effect in the Go to Card B script In fact to force a redraw of a card you can use visual effect plain go to this cd for example in an openCard handler. In interesting trick to remember! Neville Smythe

Bug drawing card in LC9

2019-04-26 Thread Neville Smythe via use-livecode
In LC 9.0.1 and later, a card in a stack is incorrectly drawn under the following circumstances: . the stack has a menubar set as the stack menu, and the stack is running on a Mac . the user is on card A and moves to card B The bottom part of card B (the height of the Mac menubar) is not

Re: What is Macintosh equivalent of relaunch handler?

2019-03-29 Thread Neville Smythe via use-livecode
Bill: I agree sockets is the way go for communication between apps. AppleScript is great but can be frustrating until you get the hang of it. The recipe for setting up socket communication is briefly: . write a small unix shell script which your LC app installs [one caveat: the client must

tabbed windows

2018-10-27 Thread Neville Smythe via use-livecode
Extraordinary thanks, Paul, you have reduced my blood pressure by 30 points. I can’t think why I so obtuse as to not think of going to a different app and then sliding from the Development menu to the View menu! Simples! ___ use-livecode mailing

tabbed windows in Mac - as setProp

2018-10-25 Thread Neville Smythe via use-livecode
Well it seems the feature is “tabbed” windows. It is a feature of High Sierra. However for non-Apple apps it has to be implemented by the third party, and in this case I think the LC implementation is faulty. I can add windows to the tabs, but not remove the last tab.There is supposed to be a

setProp question - stacked windows

2018-10-25 Thread Neville Smythe via use-livecode
Aha. My first thought was that it must be a Mac system “feature” since the iconised version looked Mac-ish rather than LC-ish. But I hadn’t updated to Mojave, and I had just updated to LC9.0.1 and it didn’t affect LC8, so I deduced it was down to LC. Thanks Brian, you have given me a place to

RE setProp question

2018-10-25 Thread Neville Smythe via use-livecode
Thanks for the replies about may setProp question a little while back. But no-one game me any info about the annoying problem I raised concerning windows under LC9 and it’s driving me nuts. To recap: new stacks (but not old stacks) and some engine windows such as for scripts and the

setProp question

2018-10-16 Thread Neville Smythe via use-livecode
Is there any way to intercept setProp messages for properties you *don’t* want to set? I find with my poor typing skills I keep typing Set the of where NonexistentProperty is a mistype of SomePropertyWhichHasASetPropHandler and so I keep creating lots of superfluous properties for the

Re: Slow LC 9 Performance

2018-09-06 Thread Neville Smythe via use-livecode
ops, I should have waited for the next use-livecode email for the answer to my question! Thanks Curry Neville Smythe ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Slow LC 9 Performance

2018-09-06 Thread Neville Smythe via use-livecode
Curry: Your last benchmark mentioned that this was a test for Windows 10. I may have missed this qualifier in the previous discussion: do I take it that the slowdown in performance noted are all Windows 10 tests? Has performance on Mac and Linux also degraded by similar amounts? I ask because

Re: how to clear residual garbage in a stack?

2018-05-26 Thread Neville Smythe via use-livecode
> I haven't actually tried it but would it work to just put empty into the > field before deleting the card? That would be sort of a "clean as you go" > approach. That’s a very neat workaround which should leave at most a couple of bytes of uncollected garbage, until the bug is squashed. Of

Re: how to clear residual garbage in a stack?

2018-05-25 Thread Neville Smythe via use-livecode
So now we have confirmed the “delete-card-with-unshared-textfield-leaves-unreferenced-text-which-compact-does-not-remove” bug (thanks to Brian and Richard) the question remains how to actually remove the garbage. As Brian says deleting the background groups will remove the residual text; you

Re: how to clear residual garbage in a stack?

2018-05-23 Thread Neville Smythe via use-livecode
Thanks Richard. Disregard my nonsense about the EOF at 28KB, I misread the BBEdit output. The file did indeed have extra garbage after deleting all but 1 card. The extraneous data actually consists of the text of the background field from the deleted cards: “Lorem ipsum” occurs 2024 in the

Re: how to clear residual garbage in a stack?

2018-05-22 Thread Neville Smythe via use-livecode
Hmm, excellent suggestions from Phil and Richard, but evidently something else is going on. > Use "compact stack" to get rid of space formerly used by now-deleted > objects. compact stack did not recover the 8 MB after deleting all but the first card from my test stack to reduce it to what

Re: how to clear residual garbage in a stack?

2018-05-22 Thread Neville Smythe via use-livecode
Thanks Phil, I knew there had to be a command. Of all the synonyms I tried I got close with compress ;-) Turns out a stack of mine used by national organisation for 20 years had bloated from 3MB to 9MB. > Use "compact stack" to get rid of space formerly used by now-deleted > objects.

how to clear residual garbage in a stack?

2018-05-21 Thread Neville Smythe via use-livecode
I am constructing a large stack as a test for a bug report (to report the slow saving of large stacks for a standalone Windows 10 app under LC 8.x). I start with a stack with a single card which saves as a 28 KB file. I then use a script to create 299 copies of card 1. The resulting stack saves

LC on Windows 10

2018-04-30 Thread Neville Smythe via use-livecode
My users find Windows 10 takes 10 seconds or more to save a 9Mb stack with app compiled under 8.1.x, Mac and Linux save in a fraction of a second. Very annoying as the app freezes while saving. $@%?$@%?$@%?$@%?$@%?$@%? Neville Smythe IGF Director (Oceania) VicePresident, Australian Go

<    1   2