Re: FindIndex question

2024-03-24 Thread Neville Smythe via use-livecode
> On 25 Mar 2024, at 3:00 am,Mike Kerner wrote: > > i don't know if you dove into the code, but it's too early to think about > unpacking this, so here's the code: ... Thanks Mike While I was aware of the optional parameters feature of LC commands I have never used it I so was unfamiliar

FindIndex question

2024-03-24 Thread Neville Smythe via use-livecode
I am using FindIndex on a dataGrid dispatch "FindIndex" to tDataGrid with pKey, pSearchingString and I can pass multiple pKey, pSearchingString pairs such as “col1",pSearchStr1,”col2”,pSearchStr2 as cited in the dictionary entry But there is also a rather cryptic note at the end of the

Re: Nasty filter bug (not)

2024-01-24 Thread Neville Smythe via use-livecode
Thanks Brian of putting me right (once again) . I had completely forgotten.the escape sequence for the wildcards is [*] and [? (an unexpected way to escape a character, but it is what it is) and so had overlooked that [ is itself a special character. And neither * nor ? In the msg box example

Re: Multipart form decode

2024-01-23 Thread Neville Smythe via use-livecode
David: do you need a special decoder? I thought the multipart form handlers just broke up the sent data into user-defined small chunks, and the server was responsible for waiting for all the parts to be received and then re-assembling the data. From that point it is just a normal POST. Maybe

Nasty filter bug

2024-01-23 Thread Neville Smythe via use-livecode
Try this in the msg box: put "aaa[bbb" into tStr; put line 1 of tStr into tLine; filter tStr without tLine; put tStr I get (using MacOS, LC 9.6.11) aaa[bbb That is to say, the line is not filtered out. And: put "aaa[bbb" into tStr; filter tStr with tStr; put tStr produces an empty string

Re: Get rid of the remote debugger

2023-12-11 Thread Neville Smythe via use-livecode
Bob: There may be a problem with your code. I believe I have seen the Remote Debugger message when I had a runtime error in a modal dialog. In earlier versions of LiveCode the dialog would fail silently, returning to the stack without reporting any error but actually not executing any code

Re: Top things you are waiting for ....

2023-11-13 Thread Neville Smythe via use-livecode
• Font styles • Get/set text baselines Neville Smythe ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Filter with wildcards

2023-11-02 Thread Neville Smythe via use-livecode
Users should certainly never see regex! That’s covered in User Interface Guidelines 101. But surely you wouldn’t show them the LC wildcard filter either! $@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%? Neville Smythe Director, International Go Federation VicePresident, Australian Go Association Inc. > On 3

Re: Filter with wildcards

2023-11-01 Thread Neville Smythe via use-livecode
, York > Honorary Professor (SOCAMRU), Nottingham Trent University > > LinkedIn Profile > >> On 31 Oct 2023, at 8:59 pm, Neville Smythe via use-livecode >> mailto:use-livecode@lists.runrev.com>> wrote: >> >> Forgot any number of other chars after the non-num

Re: Filter with wildcards

2023-10-31 Thread Neville Smythe via use-livecode
Forgot any number of other chars after the non-numeric character Filter tList with regex "(?i).*with (you|u)([^a-zA-Z].*|$)” Now I’ve really got to go … hope I’ve got it all right this time! Neville Smythe ___ use-livecode mailing list

Re: Filter with wildcards

2023-10-31 Thread Neville Smythe via use-livecode
Filter tList with regex "(?i).*with (you|u)( .*|\.|$)" I did forget something … wth you might be folllowed by a comma or colon or something so the last brackets should search for either any non alphabetic character or the end of line, so think (going from memory here) Filter tList with regex

Re: Filter with wildcards

2023-10-31 Thread Neville Smythe via use-livecode
Reglar expressions is definitely the way to go So you want to catch any number of characters .* Followed by the string “with “ .*with Followed by either “you” or “u” .*with (you|u) Followed by a space and then any umber of characters, giving .*with (you|u) .* Except you might want to look for

Re: arrayToJSON not working in lcserver on Linux - resolved

2023-10-29 Thread Neville Smythe via use-livecode
Panos advises me that indeed arrayToJSON does not work out of the box in lcserver, although it does work in the IDE and standalones. And that this is not a bug. Let’s call it a lacuna, I suggest in code, Panos concedes in documentation. The story is that the mergJSON library, which is

arrayToJSON on lc server

2023-10-16 Thread Neville Smythe via use-livecode
I am having a problem with the function arrayToJSON on LC Server 9.6.10 pro (Linux host) (I couldn't get it to work on earlier versions either) I get the error Function: error in function handler (arrayToJSON) The mergJSON.so file is in the Externals folder, which resides in the same

Encoding in LC server - the final piece of the puzzle

2023-09-17 Thread Neville Smythe via use-livecode
So all I had to do was move that “put header..” to the first line of the script, and abracadabra, all is now working. Many many thanks Ralf, I think I have a smidgeon better understanding of how LC interacts with Apache. Ralf wrote > did you try: > > put header "Content-Type: text/html;

Encoding in LC server - the final piece of the puzzle

2023-09-16 Thread Neville Smythe via use-livecode
Ralf wrote > did you try: > > put header "Content-Type: text/html; charset=" & quote & "UTF-8" & quote > > before sending the output to the client? That sounds exactly like the incantation I needed. But I can’t get it to work. The first 3 lines of my webPage.lc file are

Encoding in LC server - the final piece of the puzzle

2023-09-15 Thread Neville Smythe via use-livecode
With the help of forum readers I have textEncode/Decode working in LC Server so that I can handle file names with ute-8 encoding and talking to mysql in tongues. But now I want to produce html documents including Chinese characters encoded with utf-8, using LC Server to output an .lc file to

Re: Sort bug and also multilevel sorting

2023-09-06 Thread Neville Smythe via use-livecode
Ralph: Interesting. Your code works as you present it, sorting the given items by the sortkey function f1 which adds 1 to each item. I do get the “sorting failed” dialog. But if I try the same thing using myVal modified as you suggest, which adds the first and second items of each line of data

Re: sort bug

2023-09-02 Thread neville smythe via use-livecode
Geoff Canyon wrote (after a bravura  display of how many different ways there are to do things in LC!) : And the function sort also sorts based on a negative infinity value for errors. I'm not sure I'd consider that a bug. Hmm. I would. The sortKey function should tolerate any sort of run-time

Sort bug

2023-08-30 Thread Neville Smythe via use-livecode
There is a bug in sorting a container using a function, as in sort lines tVariable by myVal(each) where the function is for example function myVal pStr return item 1 of pStr + item 2 of pStr end myval If the function myVal encounters a run-time error (in the example if one of the items is

Re: Linux filenames in LC Server

2023-08-17 Thread Neville Smythe via use-livecode
Hi Matthias, I didn’t see your post until now. I did wonder if .htaccess could be used using Rewrite rules, but I couldn’t get my head around the documentation. So it’s good to know both methods work. We are running other apps on the website so I wonder a bit if setting the environment

Re: Linux filenames in LC Server - Resolved

2023-08-17 Thread Neville Smythe via use-livecode
Thank you Mark, installing the launcher script to set environment variables has fixed all my issues with non-ascii filenames. The documentation for installing LCS could usefully make a note of these settings. And indeed TextEncode/Decode both work as expected, my musings there were irrelevant.

Re: Linux filenames in LC Server

2023-08-15 Thread Neville Smythe via use-livecode
Thanks Mark for semi-unfuddling me. It’s good to know that textEncode/Decode is not to blame. But if I may try everyones' patience a little further > In the case of Linux what encoding such 'sys strings' need to use > depends on the environment - the encoding *could* be anything and thus >

Re: Linux filenames in LC Server

2023-08-15 Thread Neville Smythe via use-livecode
Thanks Mark and Matthias I think it is clear the problem is not related to variant forms - if I replace [e-acute] by any other non-ascii character, such as a Kanji character or emoji, I get the same “can’t open that file” error. And the weird decoding of [e-acute] to [E-grave] would be

Re: Linux filenames in LC Server

2023-08-13 Thread Neville Smythe via use-livecode
OK, so the macOS *is* using utf-8 for its file names - the [e-acute] in the filename Carré.txt is rendered with two bytes [C3A9] not the single byte MacRoman encoding. I got tricked by copying the terminal listing into another program rather than hex dumping within the terminal, and somewhere

Linux file names in LC Server

2023-08-13 Thread Neville Smythe via use-livecode
As we know with LC it is pretty straightforward to deal with internationalised text for remote databases and unknown user platforms by conversion to utf-8. But I have come across a problem with Linux filenames containing non-ascii characters which has me befuddled. My many-years-old app has

revDeleteFolder

2023-07-27 Thread Neville Smythe via use-livecode
I just got hit (again - I had forgotten my previous encounter) with the fact that revDeleteFolder is not available in LC server. I have no problem using the workaround from the Common library noted in the bug report that dates from 2014, but it would be nice if the documentation could be

Re: Convert date

2023-07-13 Thread Neville Smythe via use-livecode
Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day,

Convert date

2023-07-13 Thread Neville Smythe via use-livecode
I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (-MM-DD, -MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. But one would have to ask… Why doesn’t it? After all, the original ISO

Re: A stack "revCursors" is already in memory.

2023-07-06 Thread Neville Smythe via use-livecode
Paul Are you launching a stack that has previously been made into a standalone? Some time ago very often when I created a standalone it added copies of the built-in revCursors stack(s) as substacks of my stack. Before I noticed this subsequent standalone builds could add multiple copies all

Re: Which sqlite?

2023-04-17 Thread Neville Smythe via use-livecode
That is excellent news Mark, thank you. Mark Waddingham wrote... > > The version of sqlite we use is compiled in to the dbsqlite driver and > thus is independent of any installed libraries. We've already got a > pending request (https://quality.livecode.com/show_bug.cgi?id=24051) to > update

Which sqlite?

2023-04-15 Thread Neville Smythe via use-livecode
Is it possible to direct LC to use a custom version of sqlite3 rather than its default? I ask because the installed version of sqlite which come installed with macOS, and which I assume LC uses when it initialises its database library, is crippled ---arithmetic functions which come with the

Stop using font file bug

2023-03-25 Thread Neville Smythe via use-livecode
I have at least got around to filing a bug report about the “stop using font file” bug discovered in my cross-platform text issues investigation, life having intervened in the last few months. Bug 24151 Stop Using font bug I have also file

Cross-platform font comparison

2023-01-28 Thread Neville Smythe via use-livecode
I have at last completed the compilation of a font database to examine the issues concerning the differences in rendering text on Mac Monterey, Windows 10 and Linux Ubuntu. Over 4600 font files have been included in the database, including the fonts distributed with each platform, the Google

Cfross-platform font comparison

2022-10-30 Thread Neville Smythe via use-livecode
As I am about to go on vacation this project delving into the Dark Arts may be on hold for a while, but a quick update of a former assertion is in order. I claimed that strings on the Mac and Windows now have the same rendered lengths for a given font and size. Turns out this is only 85%

Re: fontNames woes

2022-10-28 Thread Neville Smythe via use-livecode
In my last post I alluded to an elusive problem on Windows 10 with the fontnames function. I think I have identified at least one circumstance where fontNames() causes a crash on Windows 10. If in a Windows standalone you call stop using font file foo.ttf and then try to get fontNames()

fontNames woes

2022-10-23 Thread Neville Smythe via use-livecode
My grand project to compile a database of cross-platform LC font metrics is slowly progressing, though rather hindered by bugs in LC. In particular fontNames() produces inconsistent results between Mac and Windows (and is not available in Linux) and worse can produce incorrect results on the

Re: Standardize Font Appearance

2022-09-15 Thread Neville Smythe via use-livecode
Thanks Richard for your comments. Interesting to see comments about font drift in a general context The problems is however not fixed if you add Google fonts to your standalone. The problem could probably be fixed (on Mac and Windows anyway) by hacking the fonts to change their metadata tables

Re: Standardize Font Appearance

2022-09-13 Thread Neville Smythe via use-livecode
I agree Richard text management is a lot better than it used to be but problems remain. Text strings on Windows standalones used to be longer than on Mac. It was a painful process to find a label which had been clipped in Windows, fix it in the Mac IDE, compile, copy to a Windows box, only to

Re: Standardize Font Appearance

2022-09-11 Thread Neville Smythe via use-livecode
I have enough datapoints to report some findings from my comparison of the appearance of fonts across platforms, in particular on the length of strings in fields and text baselines, and to correct some of my previous statements. My intention is to compile a database for some 7000+ fonts in 7

Re: Cross-platform font handling, and why you don't want to do it

2022-09-06 Thread Neville Smythe via use-livecode
Bob Sneider wrote: > The fonts do not get included in a MacOS standalone embedding fonts in a Mac standalone worked fine for me. Have you checked that the fonts are actually in /Contents/Resources/_MacOS/ and your file path when loading is correct On the IDE problem > when I quit Livecode,

Re: Standardize Font Appearance

2022-09-05 Thread Neville Smythe via use-livecode
I agree Quentin, trying to make text appear exactly the same on all platforms is a fools errand. That however is not the main point of the exercise, at least for me. When designing an apps interface, it would be good to know that (at least static) text items will (probably) appear in the same

Re: Standardize Font Appearance

2022-09-04 Thread Neville Smythe via use-livecode
Actually it is possible to ensure the baselines of fields are consistent across platforms without having to use conditionals. From experimentation it appears that the baseline is given (relative to the top of the field) by the top margin - 3*fontAscent/4 -1 where the

Re: Standardize Font Appearance

2022-09-04 Thread Neville Smythe via use-livecode
So I have conducted a more careful test of the proposed method of standardising fonts across platforms, that is, installing some Google fonts in the standalone for use in labels and fields, with the objective of setting the rects of objects on the development platform and having the same

Re: Standardize Font Appearance

2022-09-02 Thread Neville Smythe via use-livecode
Consulting the dictionary would have helped me (in this case!): measureText(text,field,bounds) should give me what I need to make precise comparisons of how the various operating (iterating?!!!) systems will render my fonts. I will report back Interesting idea, Richard, to use images for all

Re: Standardize Font Appearance

2022-09-02 Thread Neville Smythe via use-livecode
Standardising fonts, so that one would no longer have to check that every label and field carefully crafted on the Mac to fit text precisely would not have missing pixels or whole words wrapped out of sight on Windows because of different font metrics, sounds like a great idea. But the reality

SVG Icon tool query

2022-08-28 Thread Neville Smythe via use-livecode
Many thanks to Brian for sharing the fantastic collection of icons included in this tool. Can I enquire as to the copyright status of the images? Neville ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: Is LC encryption different for Mac than for Windows??

2022-07-05 Thread Neville Smythe via use-livecode
Bob Sneider wrote > So strange. I built in some logging, removed the base64 stuff, and now it > works! Timing problem of some sort? Who knows. That’s what I was inferring. I’d suggest you increase socketTimeOut to avoid the problem recurring (or reduce it if you want to test that timing was

Re: Is LC encryption different for Mac than for Windows??

2022-07-02 Thread Neville Smythe via use-livecode
Is socketTimeOut set high enough? Neville ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

nsScriptDatabase (and long id's)

2022-06-30 Thread Neville Smythe via use-livecode
I have uploaded version 3 of nsScriptDatabase to Sample Stacks, and the standalones are at https://www.dropbox.com/sh/6z4yuw55rnvub3t/AAB3jJ9yO4l2zCOoDq1uO7L2a?dl=0 This version addresses the issues with groups caused by my misplaced expectations raised in the thread about long id’s of grouped

RE: long id trap for the unwary

2022-06-28 Thread Neville Smythe via use-livecode
No crashes or errors, I just didn’t get back the data I expected. Does it really have anything to do with message paths? I just expected the long id of field1 of card 1 to do what it says, that is, to return a specifier to (the instance of) field 1 on card 1. At the time I was iterating

long id trap for the unwary

2022-06-27 Thread Neville Smythe via use-livecode
If I write put the long id of field 1 of card 1 into tObject; put the text of tObject I get the text of field 1 of card 1, right ? Not necessarily. If field 1 of card 1 is in a shared group, then what I get is the text of field id something of card id whatever, where whatever is the id of

Best way to update a large DB ?

2022-06-13 Thread Neville Smythe via use-livecode
Oh and you can prevent a file transfer from timing out… look up libURLSetExpect10 Neville ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Best way to update a large DB ?

2022-06-13 Thread Neville Smythe via use-livecode
> update myDB set col1 = "blah blah", col2 = "blah blah" where id = 12345 > limit 1 > I have a file with all the requests that weights almost 200 Mb. Unless your "blah blah”s are very large indeed shouldn’t your change data be packable into a much smaller file to transmit? Eg if they were

Re: nsScriptDatabase (was property sheets)

2022-06-10 Thread Neville Smythe via use-livecode
Bob S wrote > On 11 Jun 2022, at 2:00 am, use-livecode-requ...@lists.runrev.com wrote: > > A direct link, or where to go to get it would be helpful. The stack is in the Development section of Sample Stacks, though it seems to help the extraordinarily slow search engine to click All before Go.

Multiple revCursors substacks added to standalone

2022-06-09 Thread Neville Smythe via use-livecode
For a while now (LC 9.x) I have been finding that making a standalone sometimes adds multiple copies of revCursors to the standalone. One copy as a substack of the mainstack is expected, but under some unknown circumstances I get 3 more copies of the stack added (not as substacks). This on a

Re: Property sheets

2022-06-09 Thread Neville Smythe via use-livecode
I have uploaded version 2.2 of nsScriptDatabase which can display supported properties of widgets, with their current and default values. There are also some bug fixes so current users should download the new version and update their database for those stacks which contain widgets or for which

Re: char as word boundary

2022-06-07 Thread Neville Smythe via use-livecode
Still jumping without thinking… If native char 202 or unicode char 202 is a word boundary in Windows it is a real bug — but is that the case? Native char 202, a non-breaking space, should (or maybe shouldn’t) be a word boundary in Mac - the docs say word boundaries are space, tab and return.

Re: char as word boundary

2022-06-07 Thread Neville Smythe via use-livecode
Hmm. I jumped without thinking…I was thinking if unicode char 2029 which is the paragraph separator. Unicode Char 202 is supposed to be Latin Capital Letter E With Circumflex. But 202 is beyond the standard ascii range so the deprecated numtochar(202) will return an extended ascii character

Re: Property Sheet for LC

2022-06-05 Thread Neville Smythe via use-livecode
Alex wrote > The NavBar widget has a number of properties (itemNames, itemStyle, > hilitedItem, itemArray, ..) which are visible in the Object Inspector, > but not in 4WProps. As discussed in a post a while ago, the problem is that requesting the properties of a widget object returns nothing

Re: char as word boundary

2022-06-03 Thread Neville Smythe via use-livecode
Jean-Jacques In 9.6.8 the number of chars of (numtochar(32)& numtochar(202)(32)& numtochar(202)(32)) = 5 As it should be. Did you mean the number of words? But then the number of words of (numtochar(32)& numtochar(202)(32)& numtochar(202)(32)) = 0 (in 9.6.8) As it should be. Char

Re: s it a bug?

2022-05-24 Thread Neville Smythe via use-livecode
Bob: I'm not seeing this in the IDE or standalone. LC 9.6.7, macOS Monterey > > I found one thing I think is a bug, and I'd like to report it, but I want to > see if anyone else thinks this may be the expected behavior: > > It seems to me that when clicking and holding the mouse button down

Re Pulldownmenu button bug on Windows

2022-05-10 Thread Neville Smythe via use-livecode
Thanks again Richard In my case I don’t actually need a workaround. Once I had corrected my own error, the only effect of the inconsistent event order is that on Windows and Linux the colour coding of the selection turns off a fraction of a second earlier than on a Mac. I am not so obsessive

Re: Re Pulldownmenu button bug on Windows

2022-05-08 Thread Neville Smythe via use-livecode
Thanks Richard for your wise observations. As cross-platform developers we do indeed need to be aware of differences that will arise in standalones because of GUI differences in the operating systems – different placement of menus, different text string lengths, some features not even being

Re: Zip file problem on Mac

2022-05-07 Thread Neville Smythe via use-livecode
> On 8 May 2022, at 2:00 am, Brian Milby wrote: > > It is a bug somewhere. See this big report: > https://quality.livecode.com/show_bug.cgi?id=21447 > > > I actually think it is related. The zip should be created as a Unix variant > and not

Re Pulldownmenu button bug on Windows

2022-05-07 Thread Neville Smythe via use-livecode
The pulldownmenu bug I reported has been confirmed: bug 23693 To remind the reader: On a Mac, when a user select a menu item from a pulldown menu button, the menuPick message is sent first followed by a mouseLeave message (generated as the

Re: Zip file problem on Mac

2022-05-07 Thread Neville Smythe via use-livecode
> On 7 May 2022, at 2:00 am, use-livecode-requ...@lists.runrev.com wrote: > > This sounds like this enhancement request > https://quality.livecode.com/show_bug.cgi?id=9642 > Thanks Panos for pointing out this is a duplicate to bug 9642, an

Re: Zip file problem on Mac

2022-05-05 Thread Neville Smythe via use-livecode
I have submitting a report to QC (Bug 23698 ) Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly.

Zip file problem on Mac

2022-05-04 Thread Neville Smythe via use-livecode
I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. This has worked fine until macOS Monterey or LiveCode 9.6.x Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make

Pulldownmenu button bug on Windows

2022-04-28 Thread Neville Smythe via use-livecode
I have a pulldown menu button which has a menupick script and also a mouseLeave script. On a Mac, when a user brings up the menu and drags the mouse down to select a menu item (leaving the button rect but within the pulldown menu), the menupick handler is invoked, and then the mouseleave

IAC for Livecode standalones

2022-04-13 Thread Neville Smythe via use-livecode
When developing my recent utility I have thought it could be useful if other users could access the output from some of its features, in other words inter-application communication. Stacks can do this if the utility is running in the IDE but not when run as a standalone. Now a Mac

Re: widget properties

2022-04-13 Thread Neville Smythe via use-livecode
(Bug 23670 ) has been referred by QualityControl to Expert Review, as Panos was not sure whether this is a real bug. As a use-case I have commented that the properties of all controls, including widgets, is needed when comparing stacks for

Re: widget properties

2022-04-06 Thread Neville Smythe via use-livecode
Just a point of clarification; Ali’s post does not explain how to access the object properties of a widget. The properties returned by put the keys of (revIDEExtensionProperties("com.livecode.widget.foo")) are the intrinsic properties of the widget, which these days are accessible via the

Re: widget properties

2022-04-06 Thread Neville Smythe via use-livecode
I have submitted the bug report (Bug 23670 ) As others have said, it is not likely this will be considered a high priority bug but it should be on the record. Interestingly eg setting tbar[“textcolor”] to a value and then set the properties

Widget properties

2022-04-06 Thread Neville Smythe via use-livecode
Is it not a bug that the properties of widget “foo” returns empty (for all values of foo)? No rect, no visible, no disabled etc, even though these clearly are settable and functional properties of the widget. You can export widget “foo” to array “bar” but that gives the intrinsic

Plugin changes not saved

2022-03-24 Thread Neville Smythe via use-livecode
I hadn’t realised that LC does not offer to save changes to plugin stacks when it quits. Foo! I have therefore updated nsPropertyMapper (version 3.6. Revision 9) in Sample Stacks so changes to favorites and settings will be available on the next launch, there wasn’t much point to the favorites

nsScriptDatabase 1.1

2022-03-17 Thread Neville Smythe via use-livecode
I have uploaded version 1.1 of nsScriptDatabase to the Samples Stacks. This fixes a few problems with editing code snippets and running the stack as a standalone, which is the preferred environment. You don’t need to know anything about the technicalities of databases to use nsScriptDatabase

Re: Speaking of Filter and Match...

2022-03-15 Thread Neville Smythe via use-livecode
I just ran a speed test on Dick Kriesel’s method for removing duplicates and keeping the original sort order. It is indeed faster than Jacque’s method Sorting 11000 lines of text including 1000 duplicated lines: Jacque’s method: 2.807 seconds [lineoffset is really slow, and in effect the text

Re: Speed up a slow loop

2022-03-09 Thread Neville Smythe via use-livecode
I just ran a test to try to find out how much RAM is used when you create a large array; the result is rather surprising. BTW Bob: I did not imply that an array is implemented in LC as a database. Merely that to work its magic it must be indexing keys somehow. I had suggested a 2.5 MB list

Re: Speed up a slow loop

2022-03-08 Thread Neville Smythe via use-livecode
> On 9 Mar 2022, at 4:00 am, Alex Tweedly wrote: > > I guess I'm not convinced about VM space thrashing being the problem, > certainly not due to the wordlist. It's 2.5 Mb - i.e. 0.02% of the real > RAM in a Pixel 5. There may be something else in the app making the > total VM space very

Re: Speed up a slow loop

2022-03-08 Thread Neville Smythe via use-livecode
> On 9 Mar 2022, at 4:00 am,Alex Tweedly wrote: > > Oh, well, if you've got the fast boardwalk code in there anyway, that > opens up another possibility (with one caveat). > > The boardwalk will find all valid words on the board. So that list of > words can be used as the "dictionary" for the

Re: Speed up a slow loop

2022-03-07 Thread Neville Smythe via use-livecode
Jacque seems to have found a satisfactory solution to her problem with the help of the excellent suggestions we have seen here. Since there seems to have been a lot of interest, I thought I would take the opportunity to report on an alternative method I had been exploring with Jacque via email.

Re: Speed up a slow loop

2022-03-04 Thread Neville Smythe via use-livecode
Bob’s suggestion of storing the word list in an sqlite database would keep the list on disk and not in memory, so avoiding VM swapping which is I think the basic problem, and also use a much faster search engine than LC to do the checking for the existence of user candidates. A more elegant

Re: Speed up a slow loop

2022-03-04 Thread Neville Smythe via use-livecode
Jacque, are you trying to keep the whole of SOWPODS in memory the whole time? That’s a 2.5MB file. It sounds to me like you are getting virtual memory thrashing. If so, try breaking up the wordlist into 26 files for example - or even more by length as well as initial letter - kept as resources

Property mapper and a s script database

2022-02-19 Thread Neville Smythe via use-livecode
I have uploaded version 3.4 (revision 7) of nsPropertyMapper to the Sample Stacks site. You can now insert an image into a text field by dragging an image reference from the ImagePicker onto a character in the field. It looks like another revision soon will be needed in light of the new

Re: add a "scale" option to the icongravity

2021-12-24 Thread Neville Smythe via use-livecode
> Wouldn?t you really need another property like ?iconSizing? which would have > values of ?none? or ?clip? (current behavior), ?resize? or ?fill? (the > current iconGravity option), and ?scale? (your proposal)? I can think of > situations where clip and scale would need the current

nsPropertyMapper Revision 4

2021-12-19 Thread Neville Smythe via use-livecode
Sigh. Revision 4 fixes a bug: placing an image with the ImagePicker didn’t work, Something I thought I tested just before I uploaded Rev3. I really have angered Blind IO this year. ___ use-livecode mailing list use-livecode@lists.runrev.com Please

nsPropertyMapper revision 3

2021-12-18 Thread Neville Smythe via use-livecode
I have uploaded version 3 of my drag-and-drop property management tool, which now handles patterns, graphic objects and images. Included is an ImagePicker which gives access to images in all open stacks as well as LC built-in images, allowing easier transfer of images between stacks, and many

Pattern ID bug

2021-11-23 Thread Neville Smythe via use-livecode
Try setting the backgroundPattern of a button to ID 141, either from a script, or by using the Image Library chooser and going to the MetaCard Compatible Patterns, look for ID 141 which is small image of dots on the second page. What you get, at least on my Mac with LC9.6.5, is a pattern of red

Re: Object property management

2021-11-10 Thread Neville Smythe via use-livecode
Aaargh, I can’t even remember the name of my own stack! I have incurred the wrath of Blind Io by invoking her name in the help text. Thanks Matthias it is indeed nsPropertyMapper Neville ___ use-livecode mailing list use-livecode@lists.runrev.com

Object property management

2021-11-09 Thread Neville Smythe via use-livecode
I have uploaded a plugin tool nsFormatMapper 2.0 to RunRevOnline. It is designed to help with maintaining uniformity of UI elements such as colours and text properties. It works rather like the Format Paint brush in Word or Pages. You get all the required property types from an object, and set

Re: use-livecode Digest, Vol 217, Issue 30

2021-10-26 Thread Neville Smythe via use-livecode
> On 27 Oct 2021, at 3:00 am,Craig wrote: > > An array variable is just a variable, it is not a property. You cannot ?make? > one into the other. > > So, basically, put the pArrayName[pElementName] of button ?button? is just > syntax that does not exist in the lexicon, for the above reason.

Accessing array custom properties

2021-10-25 Thread Neville Smythe via use-livecode
Is there a logic behind the following? I want the values of a custom property which is an array: to take a specific example the dropShow of button “button” and I want the specific element color Of course I can write: put the dropShadow of button “button” into aa; put aa[color] Conveniently

Re: dropShadow knockout

2021-10-20 Thread Neville Smythe via use-livecode
>> Further occasionally the edit box appear to become corrupted > > This only happens to me when I accidentally close the edit box via the close > decoration and not via the "OK" button. > The same happens with the edit box for editing gradients. Thanks for confirming that Bernd. Closing that

dropShadow knockout

2021-10-19 Thread Neville Smythe via use-livecode
The knockout checkbox is missing from the graphic effect dropShadow edit dialog in LC9.6.5 (Mac). The knockout property still works however. Further occasionally the edit box appear to become corrupted - after a few launches the display is out of kilter, and eventually the edit box won’t open

Re: Stack with the same name loop

2021-10-07 Thread Neville Smythe via use-livecode
Jaque wrote > On 8 Oct 2021, at 7:54 am, use-livecode-requ...@lists.runrev.com wrote: > > For me, the confusion would be resolved if the Save button was renamed to > "Save and Purge". I was never quite sure what that button saved, though in > retrospect it's pretty obvious. And ... if the

Hi, I'm back for more fish - and a malware query

2021-09-08 Thread Neville Smythe via use-livecode
OK, Bob S, so I have jumped through the small hoop and turned through 180 degrees. And I’m impressed even if you were not: that is to say, I am really impressed with the generosity and goodwill of the great people at LC. Many thanks to those who urged me contact Heather and Kevin about

Bye, and thanks for the fish

2021-09-01 Thread Neville Smythe via use-livecode
> On 1 Sep 2021, at 11:36 pm, use-livecode-requ...@lists.runrev.com wrote: > > i am not sure, if everyone is aware of it, but standalones that were created > with the Starter Plan license will expire as soon as the Startert Plan > subscription expires. Not even Apple is that rapacious. I

Re: Property inspector opening with wrong object

2021-08-25 Thread Neville Smythe via use-livecode
s). >> >>> On Aug 24, 2021, at 11:39 PM, Neville Smythe via use-livecode >>> wrote: >>> >>> Has anyone else experienced this? It is very annoying. >>> >>> Sometime when I open the Property Inspector for an object it opens the >

Property inspector opening with wrong object

2021-08-24 Thread Neville Smythe via use-livecode
Has anyone else experienced this? It is very annoying. Sometime when I open the Property Inspector for an object it opens the inspector for the stack instead. I don’t know what triggers it, but once it starts happening it always happens; relaunching LC restores sanity for a while. This is on a

  1   2   >