Re: Speed up a slow loop

2022-03-08 Thread Alex Tweedly via use-livecode
On 08/03/2022 07:27, Neville Smythe via use-livecode wrote: I believe there were two problems: a) the original search search algorithm was too slow, and b) when implemented on certain devices the app went into an unusable state. Both problems were caused by the wordlist being stored being too

Re: Speed up a slow loop

2022-03-07 Thread Alex Tweedly via use-livecode
On 06/03/2022 22:56, J. Landman Gay via use-livecode wrote: The board walk took 179 ms for all 108 words because I ditched my old, juvenile, inefficient code and swiped yours. :) As Bill requested, I've marked all the stuff I used with credits for the people who suggested or provided code,

Re: Speed up a slow loop

2022-03-06 Thread Alex Tweedly via use-livecode
Another thought on this problem; I think worth discussing even if the various suggestions so far have already got you a solution. I think it's a general observation ... You don't really care how long it takes to do this. What you care about is how long the user has to wait for your (the app's)

Re: Speed up a slow loop

2022-03-06 Thread Alex Tweedly via use-livecode
On 06/03/2022 06:35, J. Landman Gay via use-livecode wrote: Combined with Ken's suggestion to use "difference", looking up a list of about 50 words in the filtered dictionary reduces the time from 2-4 seconds to about 40 ms. It varies, depending on a lot of things, but it's fast enough that

Re: Chart widget and axes which are time values.

2022-02-25 Thread Alex Tweedly via use-livecode
mothership asked me to create a separate bug report because it worked fine for them… I don’t have a problem creating a bug report, it just seemed odd that it absolutely doesn’t work for me.) -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftwa

Chart widget and axes which are time values.

2022-02-22 Thread Alex Tweedly via use-livecode
I've been trying to use the new chart widget, but no success yet. All the charts I want to do have times (or dates) along the X axis. I can see that any options which have not been wrapped in LC can be set by doing something like:    put the chartJSONOptions of widget "mine" into tA    put "t

Re: Creating a simple menu

2022-01-08 Thread Alex Tweedly via use-livecode
On 08/01/2022 13:14, Alex Tweedly via use-livecode wrote: I think you mean "[...] menu is not an option in the list of styles in the dictionary". I meant to say "in the list of styles in the drop-down list, although it is in the dictionary" Hope that wasn't co

Re: Creating a simple menu

2022-01-08 Thread Alex Tweedly via use-livecode
caveat - I've never done any of this in real life :-) On 08/01/2022 03:41, David Squance via use-livecode wrote: Hi all, I want to create a mock-up of a web site, so some menus are required. It’s something I’ve done very little with, and the last was years ago. I’m an infrequent LC user, anyw

ANN: BoggleSolver now on sample stacks

2022-01-02 Thread Alex Tweedly via use-livecode
I've put a little 'game' up on "sample stacks", and also on the web. It "solves" Boggle style puzzles, i.e. you give it a 5x5 grid of letters, and it finds all words within it, following the prescribed rules - words are formed by moving to adjacent (including diagonal) grid positions, and you

Re: Sorting cards problem, and a link

2022-01-01 Thread Alex Tweedly via use-livecode
Not sure if I understand it properly, but cards 1 and 2 (i.e. the index and the current choice) do not have a field "title" If I do a **sort card by field "title" ** then the cards come out unsorted (or improperly sorted, not sure). I added a field "title" to each of the first 2 cards,

Re: Sorting cards

2022-01-01 Thread Alex Tweedly via use-livecode
I'd be happy to look - but my knowledge is entirely LC - never touched HC, so that may prevent me seeing something relevant. Suggestions (that you may have tried already :-) : 1. loop through the cards: put the short ID of this card & TAB & field "title" ... after myVariable then try sorting

Re: Sorting cards

2021-12-30 Thread Alex Tweedly via use-livecode
On 30/12/2021 19:38, J. Landman Gay via use-livecode wrote: Thanks for the reply. I understand how it works, my question is how to make it not work that way. :) Basically, I don't want the sub-sort. The 'sub-sort' will only have any effect if there are cards with identical values for the "ti

Re: Sorting cards

2021-12-30 Thread Alex Tweedly via use-livecode
You shouldn't need to ignore the previous sort. The second sort over-rides the first; it's only when looking at those cards which have the same value for the second field that the previous sorting applies. So if we have A2 B1 A1 C3 If we sort by char 2 of each, we would get    B1 A1 A2 C3 (nb

Re: Infection Simulation

2021-12-29 Thread Alex Tweedly via use-livecode
That's really cool - thanks. Improvements ?   How much time do you have :-) 1. Visual display of contagion zone while running. 2. Recovery. After being infected for some length of time, an individual stops being infectious; either it dies, and becomes a static black dot, or recovers and becom

Re: Livecode downloads VERY slow

2021-12-22 Thread Alex Tweedly via use-livecode
OK, memory lane time. Before we had 1200 baud modems, we used to use acoustic couplers. I often used one to call from the main office (England) to our US office, at a mind-blowing 300 baud. Problem was, in those days (1978 I think), even voice transatlantic calls were hit or miss. Often you

Re: [ANN] Release 9.6.6 RC-1

2021-12-21 Thread Alex Tweedly via use-livecode
On 21/12/2021 15:27, panagiotis m via use-livecode wrote: Hello Mike, When a runtime error occurs in a context where the script debugger cannot run, the error dialog will be displayed rather than failing silently Before LC 9.6.6 rc1, runtime errors in moveStack and resizeStack were ignored, b

Re: How to get a hilitedElement value from a Tree View's arrayData?

2021-12-21 Thread Alex Tweedly via use-livecode
Hmmm - maybe I'm missing something, but Can't you use the feature of "using a numeric-indexed array as key" ? (AFAIK it's an undocumented feature, except in the original release notes for 5.x, which are no longer on the downloads site, and which I can't find my copy of - so if anyone has

Re: Smile for Christmas.

2021-12-16 Thread Alex Tweedly via use-livecode
"100"intotRight["width"] *union*tLeft withtRight *# RESULT** # tLeft["colour"] = "green" # tLeft["align"] = "left"** # tLeft["width"] = "100"* On Dec 16, 2021, at 12:55 PM, Alex Tweedly via use-livecode wrote: N

Smile for Christmas.

2021-12-16 Thread Alex Tweedly via use-livecode
I was just reading the dictionary entry for 'union'. Not only does it combine two arrays, but apparently it also spell-corrects "color" to "colour" !! Alex. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscr

Re: open socket on start up and can't close

2021-12-15 Thread Alex Tweedly via use-livecode
Could it be remote debugging ? Which version / license are you using ? Alex. On 15/12/2021 19:26, RobEppich via use-livecode wrote: Downloaded and run Livecode 9.6.5, type “put the opensockets” and a socket is open, 65463. Close socket 65463 and put the opensockets again and result is 65466.

Re: Ghost in the Machine?

2021-12-12 Thread Alex Tweedly via use-livecode
Peter, I think the piece of info we are all missing (or guessing wrongly about) is: the existing club membership system - is it a web-based system, or an app that runs on your desktop. We're all kind of assuming it's a web page, but I now suspect maybe it isn't. If it is a web page - then the

Re: Ghost in the Machine?

2021-12-08 Thread Alex Tweedly via use-livecode
Hi Peter, just checking if I have understood this right. I think you have a website / webpage which allows the user to view / update a single entry (i.e. "manual on-line form with 20+ fields"). If that is the case, I'd consider writing an app to take in the file of rows of details, and inser

Re: Project browser docs

2021-12-06 Thread Alex Tweedly via use-livecode
to get an overview of all loaded stacks, its substacks, cards and all objects on that cards. You can now find it under Plugins->revApplicationOveriew. Regards, Matthias Am 06.12.2021 um 13:49 schrieb Alex Tweedly via use-livecode : On 06/12/2021 04:14, J. Landman Gay via use-livecode wrot

Re: Project browser docs

2021-12-06 Thread Alex Tweedly via use-livecode
On 06/12/2021 04:14, J. Landman Gay via use-livecode wrote: I prefer the horizontal layout in the Application Overview, but i thought I'd give the PB another try now that I'm working on a simpler project. It's too unweildy for multi-stack projects with lots of controls. Sorry, dumb question

Re: Control of Text Fields.

2021-11-10 Thread Alex Tweedly via use-livecode
; Cheers, Roger On Nov 7, 2021, at 5:51 PM, Alex Tweedly via use-livecode wrote: On 07/11/2021 11:36, Richmond via use-livecode wrote: No hard feelings. See what I have got up to over on the Forums, and https://forums.livecode.com/viewtopic.php?f=7&t=36444 PLEASE, feel free to pull

Re: Clicking around . . .

2021-11-08 Thread Alex Tweedly via use-livecode
Hi Richmond, I of course agree that shouldn't happen - but I've not been able to reproduce it. I tried : create new stack create field put text into it, then position insertion cursor within that text (ibeam is flashing) use Property Inspector to set locktext to true     (ibeam is no lon

Re: Control of Text Fields.

2021-11-07 Thread Alex Tweedly via use-livecode
On 07/11/2021 11:36, Richmond via use-livecode wrote: No hard feelings. See what I have got up to over on the Forums, and https://forums.livecode.com/viewtopic.php?f=7&t=36444 PLEASE, feel free to pull the thing to bits. I don't want to "pull the thing to bits". Like you, I enjoy seeing "co

Re: Control of Text Fields.

2021-11-07 Thread Alex Tweedly via use-livecode
On 07/11/2021 09:01, Richmond via use-livecode wrote: I did not mean "competing" in the sense of "b*gger you", I meant it in the sense of healthy competition. Yeah, so did I. And if it came across any other way, then I wholeheartedly apologise. Sorry Richmond. Alex.

Re: Control of Text Fields.

2021-11-06 Thread Alex Tweedly via use-livecode
ghtmost character of the selection. Alex. On 5.11.21 23:08, Alex Tweedly via use-livecode wrote: On 05/11/2021 20:18, Roger Guay via use-livecode wrote: Alex, I did not see that and it is not in my mailbox. Would you please send it again? Thanks, Roger Here it is again, below. Or downlo

Re: Control of Text Fields.

2021-11-05 Thread Alex Tweedly via use-livecode
On 05/11/2021 20:18, Roger Guay via use-livecode wrote: Alex, I did not see that and it is not in my mailbox. Would you please send it again? Thanks, Roger Here it is again, below. Or download the sample stack at https://tweedly.org/downloads/calcbuttons.livecode  - not as pretty as Rich

Re: Control of Text Fields.

2021-11-05 Thread Alex Tweedly via use-livecode
021 03:41 Roger Guay via use-livecode, < use-livecode@lists.runrev.com> wrote: Thanks, Alex. Sorry I didn’t make myself clear. I’m building a calculator stack with forward and back arrow buttons and a Delete button. What's the script for these buttons? Roger On Nov 4, 2021, at

Re: Control of Text Fields.

2021-11-05 Thread Alex Tweedly via use-livecode
; end if break -- all the other keys !!   default    end switch end mouseup Alex. On 05/11/2021 01:39, Roger Guay via use-livecode wrote: Thanks, Alex. Sorry I didn’t make myself clear. I’m building a calculator stack with forward and back arrow buttons and a De

Re: Control of Text Fields.

2021-11-04 Thread Alex Tweedly via use-livecode
Hi Roger, I'm not sure I properly understand your question. here's a code snippet the moves the insertion point (in this sample, typing an 'f' moves it forward, 'b' moves it back). (Note this also works if there is some text selected - it moves the insertion to just after the selection, just

Re: Number of items

2021-10-25 Thread Alex Tweedly via use-livecode
One. The three dots are an ellipsis, not a period :-) :-) On 25/10/2021 20:32, J. Landman Gay via use-livecode wrote: On 10/25/21 1:00 PM, Alex Tweedly via use-livecode wrote: On 25/10/2021 17:43, J. Landman Gay via use-livecode wrote: Delimiters signify the end of a unit, like a period at

Re: Number of items

2021-10-25 Thread Alex Tweedly via use-livecode
On 25/10/2021 17:43, J. Landman Gay via use-livecode wrote: Delimiters signify the end of a unit, like a period at the end of a sentence. The delimiter basically "belongs" to the string preceeding it. So I wonder how many sentences this reply might contain ... :-) Alex. _

Re: Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-09-30 Thread Alex Tweedly via use-livecode
reat and often overlooked resource save for it’s interface. I note that "Log In" and "Sign Up" do not work. Is there any value in those items? Roger On Sep 30, 2021, at 10:05 AM, Alex Tweedly via use-livecode wrote: Hmmm ... not sure why. Easy way : https://www.tweedly.org/D

Re: Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-09-30 Thread Alex Tweedly via use-livecode
sounds absolutely wonderful, Alex, except I can’t find it as you described. Roger On Sep 30, 2021, at 7:27 AM, Alex Tweedly via use-livecode wrote: On 30/09/2021 15:02, Alex Tweedly via use-livecode wrote: On 06/09/2021 15:14, Kevin Miller via use-livecode wrote: Upgrading this could b

Re: Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-09-30 Thread Alex Tweedly via use-livecode
On 30/09/2021 15:02, Alex Tweedly via use-livecode wrote: On 06/09/2021 15:14, Kevin Miller via use-livecode wrote: Upgrading this could be a very useful project. There is a lot of content in there but it has the issues you list. So I had a look at what could be done just within the IDE for

Re: Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-09-30 Thread Alex Tweedly via use-livecode
. Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/ LiveCode: Develop Yourself On 06/09/2021, 14:11, "use-livecode on behalf of Alex Tweedly via use-livecode" wrote: In the main thread, I mentioned that I found revOnline (aka "Sample Stacks"), but didn'

Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-08 Thread Alex Tweedly via use-livecode
On 2021-09-08 01:33, Alex Tweedly via use-livecode wrote: But put [1, 2, 3 ] into tVar2 isn't clear to me. If it was in Python it would be a list - but LC doesn't have 'lists'. Is it equivalent to    put true into tVar2[1]    put true into tVar2[2]    put true into t

Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-08 Thread Alex Tweedly via use-livecode
On 08/09/2021 22:43, Mark Waddingham via use-livecode wrote: However, if applied to something which is continuous (and perhaps more importantly something humans are not that great at accurately estimating - eg time) it rarely means two exactly... After all when was the last time you said to s

Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-07 Thread Alex Tweedly via use-livecode
On 07/09/2021 23:01, Martin Koob via use-livecode wrote: Hi all. There has been lots of discussion on the list and forums about the one part of Kevin’s announcement regarding the changes in licensing but nothing that I see on the other major part of the announcement — the new features coming

Re: Suggestion: Non-Appbuilding Community Edition

2021-09-06 Thread Alex Tweedly via use-livecode
On 06/09/2021 19:07, Lagi Pittas via use-livecode wrote: The biggest error livecode has made all these years is not creating a "working" storefront that doesn't look like it has been totally given up on. Not sure that's the "biggest" - but yes, I agree it looks unloved. Look at the addons crea

Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-09-06 Thread Alex Tweedly via use-livecode
In the main thread, I mentioned that I found revOnline (aka "Sample Stacks"), but didn't say how or why. Here the answer to that ... It has: - no differentiation between 'libraries' and 'examples' - it has no support for script-only stacks, which is surely the way most libraries will be done

Re: Suggestion: Non-Appbuilding Community Edition

2021-09-06 Thread Alex Tweedly via use-livecode
+1    Yes, speculation is fun, but probably not very useful :-) On 06/09/2021 12:20, Andre Garzia via use-livecode wrote: Let’s take a step back for a second and realise as a community we lack many things that other programming language communities have. We do have a very healthy mailing list,

Re: Suggestion: Non-Appbuilding Community Edition

2021-09-04 Thread Alex Tweedly via use-livecode
On 04/09/2021 15:36, David Bovill via use-livecode wrote: So the question here is why not do the same here - keep a free-to-develop “trial version” without the compilation framework and tools. I’m curious to the reasoning. The cynic in me would say that the assumption is that there are too fe

Re: Text encoding: summary of results and times.

2021-09-03 Thread Alex Tweedly via use-livecode
ible' and "war&peace" sample textfiles, can be downloaded from     https://www.tweedly.org/Downloads/SpellLib.gz if anyone wants to look at it. Alex. On 03/09/2021 13:38, Alex Tweedly via use-livecode wrote: On 03/09/2021 11:07, David V Glasgow via use-livecode wrote: Ale

Re: Text encoding.

2021-09-03 Thread Alex Tweedly via use-livecode
On 03/09/2021 11:07, David V Glasgow via use-livecode wrote: Alex states that put textEncode(tWHoleText, "UTF8") into tWholeText speeds replace up, but David B says LC internal format is UTF16. Doesn’t the 8 vs 16 difference matter? Or matters less than other encodings? I would regard tha

Re: Put URL command

2021-09-02 Thread Alex Tweedly via use-livecode
I said : try put URL "binfile:" & sourceURL into URL ("binfile:" & destinationURL) No. Don't. I was wrong. That avoids the error message, but gets the wrong result. It gives you the content of the URL "binfile:" (i.e. empty) plus the value of the variable sourceURL or, if you'r

Re: Text encoding.

2021-09-02 Thread Alex Tweedly via use-livecode
On 02/09/2021 13:01, David Bovill via use-livecode wrote: Thanks for the question Alex, I’m wrestling with the same issues - but so far got no responses from encoding gurus here :) This is my understanding: 1) Yes its recommended to textEncode text that comes from outside into Livecode’s int

Re: Put URL command

2021-09-02 Thread Alex Tweedly via use-livecode
try put URL "binfile:" & sourceURL into URL ("binfile:" & destinationURL) or, if you're cautious like me, put URL ("binfile:" & sourceURL) into URL ("binfile:" & destinationURL) Alex On 03/09/2021 00:55, Peter Bogdanoff via use-livecode wrote: put URL "binfile:" & sourc

Re: Text encoding.

2021-09-02 Thread Alex Tweedly via use-livecode
On 02/09/2021 18:34, Mark Waddingham via use-livecode wrote: On 2021-09-02 12:12, Alex Tweedly via use-livecode wrote: Sorry to drag us off the interesting topic of licensing :-) into some Livecode question. I know little or nothing about Unicode, text encodings, etc. - so my question is

Text encoding.

2021-09-02 Thread Alex Tweedly via use-livecode
Sorry to drag us off the interesting topic of licensing :-) into some Livecode question. I know little or nothing about Unicode, text encodings, etc. - so my question is indeed naive. I have a text file (War & Peace from Project Gutenberg), about 3.4Mb. The Mac describes it simply as "Plain

Re: LiveCode community edition is gone

2021-09-01 Thread Alex Tweedly via use-livecode
Thanks Curry. You are absolutely right, everything I said was about the starter plan, not the standard plan. With that correction: “I am surprised there is no annual option on the starter (hobbyist) plan”. Thanks, Alex the hobbyist. Sent from my iPhone > On 1 Sep 2021, at 01:55, Curry Kenw

Re: LiveCode community edition is gone

2021-08-31 Thread Alex Tweedly via use-livecode
On 31/08/2021 19:28, Kevin Miller via use-livecode wrote: You can only buy one plan time per person. Or if you are an organization, again you all need to be on the same plan. You can't buy two $9.99 platforms - Starter pricing is intended to be just that, to make it easy and accessible to get

Re: [ANN] Organize - A daily task manager

2021-08-25 Thread Alex Tweedly via use-livecode
Hi Mark, Looks great. I'm impressed - and inspired to have another try at getting past the hurdles and making an iOS app :-) Any suggestions on how to get started would be welcome. I'm not sure if I should send comments/suggestions directly to you, or to start on the list to encourage discuss

Re: Accumulating text is *VERY* slow in LC9 on Windows

2021-08-25 Thread Alex Tweedly via use-livecode
Crazy idea - totally untried (sorry, I don't have a Win machine)   put 1 into tLineCount   repeat for each line tRow in tWorkTable   put tRow into tNewTable[tLineCount]       add 1 to tLineCount   end repeat   combine tNewTable using CR Alex. On 25/08/2021 18:15, Ben Rubinstein via u

Re: Whatever happened to on-rev?

2021-08-19 Thread Alex Tweedly via use-livecode
Well, it's complicated -) For me (Chrome on Mac), I get on-rev.com   : redirects to livecode.com and all works ok www.on-rev.com : gives error page (in French) and Error 403 https://on-rev.com : gives scary "connection is not private", etc. message Alex. On 20/08/2021 00:59, Bob Sneidar via

Re: Most streamlined method to get data

2021-08-01 Thread Alex Tweedly via use-livecode
It looks like all the "thousand dollar+" amounts are quoted - i.e. it's an example of a regular CSV file - ugly but predictable. Did you try the CSVToTab converter ? https://github.com/macMikey/csvToText Alex. On 01/08/2021 20:39, Skip Kimpel via use

Re: workaround for cut-off text in native scroller?

2021-06-02 Thread Alex Tweedly via use-livecode
On 02/06/2021 04:18, Mark Wieder via use-livecode wrote: I do ok on resizing routines until it comes to groups. Then I always end up reinventing things: when and where to lock messages, how to get things resized in the right order so as not to undo what I just did... If there are any rules

Re: 3-way slider control

2021-05-26 Thread Alex Tweedly via use-livecode
I'd prefer it like ... On 26/05/2021 18:28, Paul Dupuis via use-livecode wrote: What, like this: on scrollbarDrag pNewPosition   local tToolTip = "CiC only,both CiC and Source,Source only"   set the thumbPosition of me to pNewPosition   set the tooltip of me to "Text style changes will be appli

Re: Bug, feature, or just something I need to program around?

2021-05-13 Thread Alex Tweedly via use-livecode
On 13/05/2021 20:25, Jim Lambert via use-livecode wrote: In Notes if you are in one note then select a different note and execute Shift-Command-Right Arrow, you will see the same behavior. The insertion point moves to the end of the note without selecting any text. I don't see that. If I mov

Re: Bug, feature, or just something I need to program around?

2021-05-13 Thread Alex Tweedly via use-livecode
Thanks Jacque. 'autoTab' does indeed give a behaviour the same as I see in Apple's own apps (for single line fields, differs for multi-line fields), so I'll go with that for now. And when I've got this all sorted out, I'll submit the issues as bug reports (3 I think, so far) and report them

Re: Bug, feature, or just something I need to program around?

2021-05-12 Thread Alex Tweedly via use-livecode
I don't follow you Jim. Each Note in the Notes app is a multi-line field, and they all behave just the same as multi-line fields in LC (i.e what I think of as "properly" - TABbing into the field positions the cursor with nothing selected, and an immediate cmd-shift-arrow will select all charac

Re: Bug, feature, or just something I need to program around?

2021-05-12 Thread Alex Tweedly via use-livecode
on’t work? If you tab into a field and then cmd-arrow (right or left) I think it restores the “selection” behavior you are looking for ie. you can then shift-cmd-right or left to select the chars. Would that be a work-around? On May 11, 2021, at 9:22 PM, Alex Tweedly via use-livecode < use-l

Re: Bug, feature, or just something I need to program around?

2021-05-12 Thread Alex Tweedly via use-livecode
ence are you trying to do that won’t work? If you tab into a field and then cmd-arrow (right or left) I think it restores the “selection” behavior you are looking for ie. you can then shift-cmd-right or left to select the chars. Would that be a work-around? On May 11, 2021, at 9:22 PM, Alex

Bug, feature, or just something I need to program around?

2021-05-11 Thread Alex Tweedly via use-livecode
In a LC single line field (MacOS), the keys shift-cmd-rightarrow will select from the current position to the end of the line, and add that to the selection. BUT if I TAB into the field the cursor is initially at the start of the field and the key sequence above will move the cursor to the end

Re: LiveCode convert seconds to dateItems - year is out by 19?

2021-05-11 Thread Alex Tweedly via use-livecode
I doubt it :-)  As a useless piece of info, it works OK for me. I'd suggest printing out the tCreateDate and "the seconds" so you can compare. Or, put the seconds into tCreateDate and convert it, just to see. Alex. On 11/05/2021 11:44, Keith Clarke via use-livecode wrote: Hi folks, What am

Re: Enhancement request: show the execution contexts in debugger UI

2021-04-20 Thread Alex Tweedly via use-livecode
I will join in to support (as soon as I remember which password gives me access). But I think it would be more useful to have this displayed as a "value" palette - similar to what you get when you double-click a variable - rather than another tabbed pane. Alex. On 20/04/2021 11:46, Andre G

Re: On the dangers of automated refactoring

2021-04-14 Thread Alex Tweedly via use-livecode
On 14/04/2021 21:01, Ralph DiMola via use-livecode wrote: Good question... I'm thinking it's the same reason that with strict compilation enabled a variable in a repeat loop does not have to be declared as a script local. If it is declared as a script local no shadow error occurs. A handler

Re: On the dangers of automated refactoring

2021-04-14 Thread Alex Tweedly via use-livecode
On 14/04/2021 10:23, Andre Garzia via use-livecode wrote: That is the main issue, the code was using the wrong hungarian-lite prefixes. You’d see something like on myHandler pDataA … end myHandler But, lo and behold, on top of the script there would be something like local pDa

Re: Find Replace in Script Editor with cr

2021-04-07 Thread Alex Tweedly via use-livecode
On 07/04/2021 16:46, Sean Cole (Pi) via use-livecode wrote: FFS Alex, I HAVE created a plugin! I was JUST trying to ask, can I insert a cr using the replace field of the Find Replace ONLY. And now I have too. And I found that fun and interesting. Thank you for triggering this interesting act

Re: Find Replace in Script Editor with cr

2021-04-07 Thread Alex Tweedly via use-livecode
Hi Sean, I'm struggling a bit to understand how you intend to use this. You give an example of *if* field "Level" begins with "Director" and field "UserDisplay" is not empty and field "UserDisplay" is not "All Agents" and the label of button "Status" is "All Sales"*then* *put* pidbQueryDatab

Re: How to get the path to the 'My Livecode' or the plugins folder?

2021-03-29 Thread Alex Tweedly via use-livecode
Not pretty, but if you know you have a particular plugin installed, then you can do put the filename of stack "4wDevo" into tmp and work from there; e.g. I get /Users/alextweedly/Dropbox (Personal)/My Livecode/Plugins/4wDevo.livecode Alex. On 30/03/2021 00:06, matthias rebbe via use-livecode

Re: New(?) Idea for Standalones

2021-03-29 Thread Alex Tweedly via use-livecode
On 29/03/2021 22:11, Roger Guay via use-livecode wrote: Thanks, Alex. Unfortunately it comes up with the “No Entry” sign on this machine. Roger I'm not exactly sure what message this is, or when it happens. But this sounds like "Fortunately, ..." because I think it means you have an app th

Re: New(?) Idea for Standalones

2021-03-29 Thread Alex Tweedly via use-livecode
On 29/03/2021 20:54, Paul Dupuis via use-livecode wrote: On 3/29/2021 3:36 PM, Alex Tweedly via use-livecode wrote: there is some way to allow unsigned apps to run on all current and foreseeable versions of the desktop OSes I think your assumption that you will be able - even via some

Re: New(?) Idea for Standalones

2021-03-29 Thread Alex Tweedly via use-livecode
On 29/03/2021 21:23, Roger Guay via use-livecode wrote: I have to admit I haven’t had a lot of time to experiment yet on my wife’s computer as I've been busy here trying to communicate my problem. Also, my wife’s computer is busy helping her work from home, not to mention, her style is to hav

Re: New(?) Idea for Standalones

2021-03-29 Thread Alex Tweedly via use-livecode
Roger, this is frustrating, isn't it !! If I were you, I'd send an email to the list saying (something along the lines of ) I want to get to the bottom of this. I'm going to host a Zoom call on my wife's Mac at where I will share my screen so you can all see what I'm doing, and I'll th

Re: New(?) Idea for Standalones

2021-03-29 Thread Alex Tweedly via use-livecode
On 29/03/2021 19:20, Craig Newman via use-livecode wrote: Roger. For about eight users in my business I distribute standalones for desktop only, both Mac and Windows versions. These are developed on a Mac. Simple to update and make, simple to give away, simple to use. That is the aspect of

Re: New(?) Idea for Standalones

2021-03-27 Thread Alex Tweedly via use-livecode
On 27/03/2021 02:43, Richard Gaskin via use-livecode wrote: This makes the Community Edition a natural fit for a generic player, since the proliferation the license explicitly encourages would be very much with the grain of its goals. But then we have to ask: how many of those who might enjo

Re: New(?) Idea for Standalones

2021-03-27 Thread Alex Tweedly via use-livecode
On 27/03/2021 18:29, Richard Gaskin via use-livecode wrote: My response to Alex was apparently too long to be read, but I touched on this in third block, re "security", re implications for a player as well: http://lists.runrev.com/pipermail/use-livecode/2021-March/263948.html Not at all "too

Re: New(?) Idea for Standalones

2021-03-26 Thread Alex Tweedly via use-livecode
On 27/03/2021 00:35, Richard Gaskin via use-livecode wrote: What are you looking for?  When were these "good ol days" in which one could run stack files without an engine, and how did that work? I can describe what I would like; that may be similar to what Roger is looking for. Or it may no

Re: Does anybody know if the Livecode Global happened yesterday?

2021-03-26 Thread Alex Tweedly via use-livecode
Yes, it happened yesterday (and I enjoyed it, and as always learnt something), and it will again today. I'd email Heather (support@...) - and maybe mark it urgent if you want to get in in the next hour. Alex. On 26/03/2021 14:18, Lagi Pittas via use-livecode wrote: HI All, I purchase both

Re: Array Split vs Combine

2021-03-09 Thread Alex Tweedly via use-livecode
On 09/03/2021 16:56, Sean Cole (Pi) via use-livecode wrote: Hi all, I have a tsv I split out as an array, process, then combine back to a tsv. The tsv is 53MB (55,635,198 bytes) and has 228320 lines with 21 columns (55406878 chars). To load the tsv file : 434ms To split the tsv to array : 506

Re: sort container parameters

2021-03-02 Thread Alex Tweedly via use-livecode
The number of lines being sorted makes o difference. The number of distinct sorts will - but at a single 'do' for each of "several hundreds", you'll not even notice except (maybe) if you are benchmarking it (around 5ms per 1000 'do's on an elderly MacBook Pro). Alex. On 02/03/2021 22:52, Pau

Re: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread Alex Tweedly via use-livecode
Paul - if you need to do this (i.e. find pairs of rects which are too close) for LARGE numbers of rects, I have some code to do this very efficiently (somewhere in an old archive, just ready to translate from C to LC). It uses a 'trailing window horizontal scan' so reduces the complexity/time f

Re: LC Roadmap

2021-02-16 Thread Alex Tweedly via use-livecode
On 15/02/2021 12:55, Andre Garzia via use-livecode wrote: It is with this in mind, that I decided to create content for our community. Books are an easy value proposition. Most of our community is beyond their thirties and have a fondness (and experience) for the written word and documentation

Re: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread Alex Tweedly via use-livecode
Hi Henk, No, it's maybe not obvious but it does take all cases into account. If the smallest distance is between corners of each rectangle - only then does the 'sqrt' have real meaning. In all other cases, one or other of the DX and DY comes out as 0. --  |    | | R1 |  --  |    |  |

Re: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-15 Thread Alex Tweedly via use-livecode
On 15/02/2021 23:21, Sean Cole (Pi) via use-livecode wrote: Hi, No point reinventing the wheel.. But most of those links actually did not have this particular wheel, or anything like it. The exception was the last one (programmerssought.com) which had an ugly, inefficient and lengthy (45 l

Re: Stack check-out/check-in

2021-01-25 Thread Alex Tweedly via use-livecode
which is fine if you are OK doing manual clean-up when, not if, if the stack should ever exit without 'quit'ing, or become disconnected from the network, or ... any of which would leave the file-flag behind. The  easiest alternative is to have the stack update the file periodically, and instea

Re: opened socket in IDE prevents script changes

2021-01-15 Thread Alex Tweedly via use-livecode
On 15/01/2021 14:46, matthias rebbe via use-livecode wrote: Alex, for a new project which should include socket communication i have to prototype a short "demo" and i was already wondering if i need to have running 2 instances of the LC IDE for development. But now you wrote that you had one

Re: opened socket in IDE prevents script changes

2021-01-15 Thread Alex Tweedly via use-livecode
tside of LC. But I can't see why that would make a difference (particularly once I've closed all sockets, I wouldn't expect sockets to interfere with scripts being changed). Regards, Bernard On Fri, Jan 15, 2021 at 12:07 PM Alex Tweedly via use-livecode < use-livecode@lists.runre

Re: opened socket in IDE prevents script changes

2021-01-15 Thread Alex Tweedly via use-livecode
I've not seen any such problems - though with 9.6.1 / Mac. I've spent most of the last week in the IDE, with two or more stacks open (one server, one client - occasionally multiple client stacks) so I have multiple open sockets (both 'accept'ing and 'open'ed)  almost all the time, and had no p

Re: Threads in LC

2021-01-08 Thread Alex Tweedly via use-livecode
On 08/01/2021 01:51, Bob Sneidar via use-livecode wrote: I have thought about this a bit. If what you mean by multiprocessing is that a new process can be spawned while your app can go off and do other things and get notified later that something happened, then this is quite doable. If what y

Re: How to set up a library?

2020-12-31 Thread Alex Tweedly via use-livecode
On 31/12/2020 17:12, Bob Sneidar via use-livecode wrote: Setting the behavior of something is a one time thing. Start Using is something that has to be done every time a stack is opened, unless another stack in the IDE has done so. Doing it more than once has no effect, other than pushing the

Re: How to render a two-dimensional array correctly with empty/missing 'cell' elements?

2020-12-30 Thread Alex Tweedly via use-livecode
Hi Keith here's a quick answer typed into email (i.e. not tested at all, sorry) function displayArray @pArray # create variables that point to the line and column of the array local tLineItem, tColumnItem # create a variable that stores the output for printing local tPrintLine put empt

Re: How to set up a library?

2020-12-29 Thread Alex Tweedly via use-livecode
I'd make it a script-only stack, and then start using stack "..." (probably in an openstack handler - but could be anywhere you like for your own use). By far the easiest to share (and for others to accept when shared). Alex. P.S. And, should this library be useful in LCServer context, it m

Re: Translate Code?

2020-12-03 Thread Alex Tweedly via use-livecode
I'll have a try - though it's in R, not Python - and I've never used R -) constant alpha = 2 constant n = 1000 -- x, y are arrays - initialised to 0 already for LC, so no need for "rep" repeat with i = 2 to n   -- runif(1) returns a random between 0 and 1, so do something similar   put (random(1

Re: Is the DateFormat read only?

2020-11-07 Thread Alex Tweedly via use-livecode
module.lcm (see line 4 in the sample script below) The following script uses the time zone library to output the available time zones " in tTZ put tTZ ?> - Matthias Rebbe Life Is Too Short For Boring Code Am 07.11.2020 um 13:57 schrieb Alex Tweedly via use-livecode : Thanks Graham. That

Re: Is the DateFormat read only?

2020-11-07 Thread Alex Tweedly via use-livecode
d it <> "-“ then put "Z" after t2 else put t1 after t2 end if return t2 end fUTCTime function f2digits theNum -- add a leading zero. We don't check if there are more than two digits if number of chars of theNum = 1 then return ("0&quo

<    1   2   3   4   5   6   >