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

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

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*

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

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

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

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

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

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

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 :

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,

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

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

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

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

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

Re: opened socket in IDE prevents script changes

2021-01-15 Thread Alex Tweedly via use-livecode
e (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.runrev.com> wrote: I've not seen any such problems - though with 9.6

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

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

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

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

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

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

Re: Is the DateFormat read only?

2020-11-07 Thread Alex Tweedly via use-livecode
ple 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 does indeed work - on your local syste

Re: Is the DateFormat read only?

2020-11-07 Thread Alex Tweedly via use-livecode
2 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" & theNum) else return theNum end if end f2d

Re: Is the DateFormat read only?

2020-11-06 Thread Alex Tweedly via use-livecode
I don't think it "strips" the TZ info - it simply ignores it. I think the key phrase is in the dictionary as : *Note:* The *convert* command assumes all dates / times are in local time except for 'the seconds', which is taken to be universal time. So it assume syou date is in local time

Re: Plotting Equations that Bifurcate

2020-11-04 Thread Alex Tweedly via use-livecode
eCode. Put simply, I am currently trying to expand on CoupDeGraph to be able to handle double-valued equations. Again, thanks for your help Roger On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode wrote: On 31/10/2020 02:28, Roger Guay via use-livecode wrote: Lots of clever ideas here, A

Re: Plotting Equations that Bifurcate

2020-11-03 Thread Alex Tweedly via use-livecode
On 31/10/2020 02:28, Roger Guay via use-livecode wrote: Lots of clever ideas here, Alex, but I think you’re missing the point of what I ultimately want to do. I'm building a plotting program for which I want to plot any equation including those that have multiple values of y for a given x. An

Re: Plotting Equations that Bifurcate

2020-10-30 Thread Alex Tweedly via use-livecode
On 30/10/2020 22:40, Roger Guay via use-livecode wrote: Let’s try this again after spellchecking: Yes, yours is a good example of a bifurcated line. But now imagine producing this line programmatically with an equation that: Produces a constant y value of 149 as x progresses from 35 to 235

Re: Is the DateFormat read only?

2020-10-30 Thread Alex Tweedly via use-livecode
But that will only work for those time zones whose variation from UTC is an exact number of hours. the internet date has 4 digits so that it can handle hour and minute variations - you could change   subtract (char 1 to -3 of last word of the internet date) from item 4 of tTime to   put

Re: Plotting Equations that Bifurcate

2020-10-29 Thread Alex Tweedly via use-livecode
remember that a blank line in the 'points' (aka the vertexlist) is not drawn - therefore you can put each of the branches as a subset of points, with a blank in between Alex. e.g. two Y values for each X, in a single graphic ... repeat with i = 1 to N     put N,2*n after t1     put N,3*n

Re: Naive XML questions

2020-10-25 Thread Alex Tweedly via use-livecode
On 25/10/2020 18:51, Bernard Devlin via use-livecode wrote: In his reply to you I think Alex is suggesting you use the handlers that come with the Datagrid. These can convert xml to a LC array. You might find it easier just to deal with a familair data structure rather than learn XML. I

Re: Naive XML questions

2020-10-25 Thread Alex Tweedly via use-livecode
I know nothing about it, so I can feel free to answer:-) Don’t care about the file format- look at the array format, probably in the IDE/debugger. That’s probably going to let you see how to address the individual nodes. Alex Sent from my iPhone > On 25 Oct 2020, at 17:21, Graham Samuel via

Re: LiveCode server IDE

2020-10-12 Thread Alex Tweedly via use-livecode
Hi Keith, My workflow is not much different from Ralph's. Short answer:  - edit in IDE, test in IDE  - upload to server using Coda 2  (which I also use to edit non-lc files). Long answer:  - I don't use any of the LCserver specific features -  no entangled html, no includes, ... -

Re: ICS Generation

2020-10-01 Thread Alex Tweedly via use-livecode
On 02/10/2020 00:11, Bob Sneidar via use-livecode wrote: Thanks Alex. I already downloaded the git zip file. I’ll have a look. Oh yeah, it's on github - I'd forgotten that :-) But I haven't used it since (I think) LC 5.5 - so if you bump into any issues, please drop me anote. Thanks

Re: ICS Generation

2020-10-01 Thread Alex Tweedly via use-livecode
I don't know of one - but the minimal version (i.e. all-day events only, no repeating events, no multiple timezones) should be really trivial. If no-one comes up with something in the next day or two I'll try it as my weekend project. Bob - if you want to interact with calendars, take a look

Re: Converting from unicode to ASCII

2020-09-24 Thread Alex Tweedly via use-livecode
You could even decide that, rather than strip out non-ascii characters, you would convert (reduce?) each one to a canonical equivalent (where there is one), and hence instead of l’Académie française---> lAcadmiefranaise_1234.livecode it would become l’Académie française--->

Re: Persistant Insertion Point

2020-09-11 Thread Alex Tweedly via use-livecode
You can save the insertion point (i.e. the selectedchunk) when you leave the second field, and then provide a handler to insert text at that saved point; and of course call that handler when needed e.g.   in your "second field, have local sChunk on exitfield    put the selectedchunk into

Re: Looping though a numerically indexed array

2020-09-02 Thread Alex Tweedly via use-livecode
If the array is indexed from 1 with no gaps, you can do repeat with I = 1 to item 2 of line 1 of the extents of myArray Alex > On 2 Sep 2020, at 15:54, David Bovill via use-livecode > wrote: > > I’m pretty sure there must be a way to efficiently loop through numerically > indexed arrays >

Re: Help me understand infinity

2020-07-29 Thread Alex Tweedly via use-livecode
On 29/07/2020 20:17, Dr. Hawkins wrote: On Jul 29, 2020, at 12:08 PM, Alex Tweedly via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Any number compared to positive infinity (other than itself) *will* be less than it. Bah, *ℵ*_2 > floating point infinity (which

Re: Help me understand infinity

2020-07-29 Thread Alex Tweedly via use-livecode
On 29/07/2020 18:57, Richard Gaskin via use-livecode wrote: In the v9.6.1RC1 Release Notes there's this:    Infinity constant    The constant infinity has been added to the language in this release.    As a result, theunquoted literal infinity is now reserved. Any    existing uses of it should

Re: Object naming

2020-07-28 Thread Alex Tweedly via use-livecode
On 28/07/2020 08:27, Curry Kenworthy via use-livecode wrote: Alex: > Using unambiguous short names prevents behaviour scripts > that references child controls completely Sure about that? (Option A) Yes, I think I am. At least, it prevents using names of the child objects in the script.

Re: Object naming

2020-07-28 Thread Alex Tweedly via use-livecode
*exit* *repeat* *end* *if* *end* *if* *end* *repeat* *return* tControl *end* findTargetControl Martin Koob On Jul 27, 2020, at 8:47 PM, Alex Tweedly via use-livecode <mailto:use-livecode@lists.runrev.com>> wrote: On 27/07/2020 21:26, Curry Kenworthy via use-livecode wro

Re: Object naming

2020-07-28 Thread Alex Tweedly via use-livecode
On 28/07/2020 06:24, Richard Gaskin via use-livecode wrote: Consider a simplified problem statement: You have two objects of the same type in a container, and you want to tell them apart but had given them the same name. +100 OK, when I stop laughing, I will admit I am convinced :-)

Re: Object naming

2020-07-27 Thread Alex Tweedly via use-livecode
On 27/07/2020 21:26, Curry Kenworthy via use-livecode wrote: Use unambiguous SHORT names! Thanks, but ... Yes, using unambiguous SHORT names solves this naming problem, but introduces other problems. In particular, this group script should (probably) be a behaviour script, since the

Re: Object naming

2020-07-27 Thread Alex Tweedly via use-livecode
On 27/07/2020 16:33, Richard Gaskin via use-livecode wrote: There are many ways to refer to things.  The simplest is to use unambiguous names for things that matter. Is there an unambiguous name in this case ? And if so, what is it :-) ? A group "A" contains a rectangle "R", and a (sub)group

Re: Object naming

2020-07-27 Thread Alex Tweedly via use-livecode
"clever" is one of the trickster spirits of the software development world. Best A On Mon, 27 Jul 2020 at 01:33, Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: I think my head is melting :-) I have a group called 'A'. Inside A, there is a rect called "R" and

Object naming

2020-07-26 Thread Alex Tweedly via use-livecode
I think my head is melting :-) I have a group called 'A'. Inside A, there is a rect called "R" and also a group called "B" inside B there is a rect called "R" How do I refer unambiguously to the first rectangle (i.e. A - R, not A - B - R) ? If I say    grc "R" of grp "B" of grp A then I

Re: ANN: FieldGroup - a simple rich text editor field.

2020-07-23 Thread Alex Tweedly via use-livecode
On 23/07/2020 17:20, Richard Gaskin via use-livecode wrote: https://www.tweedly.org/downloads/FieldGroupsample.livecode Thanks for posting this, Alex. Super cool. I didn't find license info in the package - did I miss it? What license is this distributed under? Sorry, I should have

ANN: FieldGroup - a simple rich text editor field.

2020-07-22 Thread Alex Tweedly via use-livecode
I'd like to announce the Beta (i.e. v0.1) release of my simple rich text field. Currently it's not on Github or anywhere sensible - it's just on my own download site (see URL at end of this email). I'd be happy if anyone finds it useful, and / or has feedback that might make it useful.

Re: Livecode Community Site

2020-07-08 Thread Alex Tweedly via use-livecode
On 08/07/2020 06:30, Richard Gaskin via use-livecode wrote: LC Ltd loves guest content in their blog, Really ?  There's been *one* guest blog post in the last 2 years - maybe they need to push harder for contributions. and additions to the Lessons and docs.  The nice thing about making

Re: Livecode Community Site

2020-07-07 Thread Alex Tweedly via use-livecode
On 07/07/2020 18:46, Tom Glod via use-livecode wrote: Hi Folks, For years I have owned the domain "lovelivecode.com". At one point I lost it, but decided to buy it again a few months ago. ... Recently,I am seeing the glaring need in the community (also touched on by recent threads): Yes, I

Re: [off-topic-ish] do you prefer LC-related content as books or video courses?

2020-07-07 Thread Alex Tweedly via use-livecode
My immediate response is anything but video !! I hate video - can't find things, no indexing, can't fast forward effectively over the bits I know or more-or-less know, need audio which doesn't always fit my surroundings, But that doesn't mean video is without its advantages -

Re: Message watcher and selectionChanged

2020-07-06 Thread Alex Tweedly via use-livecode
On 06/07/2020 17:19, J. Landman Gay via use-livecode wrote: There's a button at the lower right of the window that allows you to select which messages are suppressed. The default is to suppress unused messages but you can change that. IDE messages aren't shown by default either and you can

Message watcher and selectionChanged

2020-07-06 Thread Alex Tweedly via use-livecode
I was using the Message Watcher in the IDE to check on which messages were sent in different cases, and noticed that: 'selectionChanged' was not being reported when I changed the selection or insertion point within a field. BUT if I add a 'selectionChanged' handler to the field, the handler

Re: WebSites made using Livecode.

2020-07-06 Thread Alex Tweedly via use-livecode
Hi Hery, not sure if you've received any pointers to actual sites yet :-). Here are a few I've made : https://kilmelford.com/ most interesting of them - but since all events are cancelled this year, it's currently less interesting than other times :-) All made with my own CMS for LC; flat

Re: Animation Engine: speed tips

2020-07-02 Thread Alex Tweedly via use-livecode
On 01/07/2020 02:52, J. Landman Gay via use-livecode wrote: Did you use acceleratedRendering? Set it to true and set the layermode of each moving object to dynamic. I'd be curious to see if there's a difference. Hadn't  tried those until now. There is a difference - but not the kind I'd

Re: Animation Engine: speed tips

2020-06-30 Thread Alex Tweedly via use-livecode
Hi David, I had a quick look at this (for slightly selfish reasons - I will be doing some simple animation soon, so this piqued my interest to look at it sooner :-) [ all comments on performance or timing here are on an aging (2011) Macbook Pro, LC 9.6.0 ] So, there's good news, and

Re: Animation Engine: speed tips

2020-06-29 Thread Alex Tweedly via use-livecode
Thanks Malte. Hope you are enjoying whatever it is you're doing instead of writing code :-) Thanks again for having put AE into the Public Domain. Alex. On 29/06/2020 10:15, Malte Pfaff-Brill via use-livecode wrote: Hey Alex, Public Domain it is. I’ve set it free couple. of years back, as I

Re: Animation Engine: speed tips

2020-06-28 Thread Alex Tweedly via use-livecode
Hi there submariner :-), can you just confirm the licensing of AE ? The demo code says it is dual Commercial & GLPL3 - but GitHub says it is Public Domain. Can you just say which of those is correct ? Thanks Alex. On 28/06/2020 10:27, Malte Pfaff-Brill via use-livecode wrote: Hi, off

"Set filename of image" does nothing if the file name has not changed.

2020-06-19 Thread Alex Tweedly via use-livecode
Hi folks, I'm trying to decide if this is a bug or just an oddity. (or a documentation deficiency). Comments welcome to help me decide what bug report (if any) to file :-) When I "set the filename of an image" to a file, I expected that the image should show the content of the file. And if

Re: New Campaign

2020-06-18 Thread Alex Tweedly via use-livecode
On 18/06/2020 08:48, Heather Laine via use-livecode wrote: :) what he said. Thanks Sean - tried that first :-) No (relevant) subscriptions, only two old ones (one deactivated, one cancelled !!). But if you don't see your subscription there, check your email address. You could have a second

Re: New Campaign

2020-06-17 Thread Alex Tweedly via use-livecode
Hi Heather, I have a question, and I think it might be a common one, so I'll ask here on the list rather than individually. Please feel free to reply whichever way you think is better :-) I will definitely buy something (or failing that simply donate) - but I wanted to find what would be

Re: Moving object out of a group

2020-06-15 Thread Alex Tweedly via use-livecode
two possible, but not great, answers ... but (something like) this has worked for me in the past. 1. - drag/drop the grc rect to the containing group or card (i.e. outside the groups it should not be in)  - drag / drop other groups to before it 2. - select the group it is in    - "Ungroup"

Re: Unicode and languages

2020-06-06 Thread Alex Tweedly via use-livecode
If you simply need to protect users in the scenario you describe, then you could try a simple heuristic  - extract the first 100 (200? - 500?) characters (or first 20 words)  - spell check that  - if there are more than 10 (20? - 50??) spelling errors then flag it as a likely language

Re: ADA Compliency

2020-05-29 Thread Alex Tweedly via use-livecode
On 29/05/2020 18:09, Curry Kenworthy via use-livecode wrote: > Have you tried using the mac OS voice commands or controls? Strike two! I think that's a bad call. Think carefully about the implications of what I said: "I can only say a few words without getting out of breath." You are

Re: What have I done now ? (aka CR and LF confusion)

2020-05-28 Thread Alex Tweedly via use-livecode
urrently expected line endings. Thanks, Brian On May 27, 2020, 9:24 PM -0400, Alex Tweedly via use-livecode , wrote: I don't know if I've done something to my LC prefs, or to my Mac, or to myself :-) the following script on mouseUp    local t    put "asd" & CR & "qwe&q

What have I done now ? (aka CR and LF confusion)

2020-05-27 Thread Alex Tweedly via use-livecode
I don't know if I've done something to my LC prefs, or to my Mac, or to myself :-) the following script on mouseUp    local t    put "asd" & CR & "qwe" & CR & "zxc" into t    put t into URL ("file:/Users/alextweedly/tiny.txt") end mouseUp does create a file - but that file can't be (easily,

Re: Map Widget - how does it actually work?

2020-05-25 Thread Alex Tweedly via use-livecode
Well, the big advantage of widgets is that you can look at the source code. As it says in the Livecode Lesson ( http://lessons.livecode.com/m/4071/l/1005132-how-do-i-modify-a-livecode-widget ), What do you do if a LiveCode widget is missing a property or message you need? The source code

Re: on-rev server upgrade-related problems

2020-05-08 Thread Alex Tweedly via use-livecode
While I'm glad the issue has been tracked down, we need to remember that what's really happened is that a work-around has been found (due to great detective work by Matthias). The real problem remains, but will, I hope, some day be identified and solved. Problem statement : the upgrade to

Re: on-rev server upgrade-related problems

2020-05-07 Thread Alex Tweedly via use-livecode
Hi Phil, I absolutely agree with Matthias - the first thing to try (if you didn't already) is a custom-install of the older LC server version that you were using pre-upgrade. However, it would also help to clarify the bug report somewhat. My reading of it is (almost) the opposite of

Re: Group resizing.

2020-05-04 Thread Alex Tweedly via use-livecode
? Feel free to pick a time if that appeals - I got nothing better to do :) • https://woven.com/c/david62/pairprogramming On 4 May 2020, 01:38 +0100, scott--- via use-livecode , wrote: Oh good, I was hoping I wasn’t the only one. — Scott On May 3, 2020, at 11:28 AM, Alex Tweedly via use-l

Re: Group resizing.

2020-05-03 Thread Alex Tweedly via use-livecode
adapt to your resizing of your controls. I usually begin with both lock messages and lock screen, but the last is more for optimization. Håkan On 3 May 2020, 16:22 +0200, Alex Tweedly via use-livecode , wrote: I realized after the discussion last week about resizing that I was missin

Re: Group resizing.

2020-05-03 Thread Alex Tweedly via use-livecode
the group will adapt to your resizing of your controls. I usually begin with both lock messages and lock screen, but the last is more for optimization. Håkan On 3 May 2020, 16:22 +0200, Alex Tweedly via use-livecode , wrote: I realized after the discussion last week about resizing that I w

Group resizing.

2020-05-03 Thread Alex Tweedly via use-livecode
I realized after the discussion last week about resizing that I was missing the benefits of "resizeControl" being sent to each group, so I changed one of my resize handlers to make use of groups (adding a few groups along the way). And it all went wrong :-( Eventually I traced it down to the

Re: Best relational database for IOS / Android

2020-04-29 Thread Alex Tweedly via use-livecode
Livecloud is indeed from Canela Software - but there's no obvious link from their own website for it. Go straight to livecloud.io to get the info about it. It does require Indy or above LC license Alex. On 29/04/2020 15:06, Clarence Martin via use-livecode wrote: You may want to explore

Re: Mobile screen sizes - another naive question

2020-04-28 Thread Alex Tweedly via use-livecode
Richard, it wasn't that you over-wrote it - the problem was I over-thought it. My excuse is that I have been thinking quite a bit this last week about whether there was a (simple enough) approach to layout that would allow "rows & columns" semi-flow layout to be nearly automatic, and be

Re: Another widget grumble

2020-04-28 Thread Alex Tweedly via use-livecode
On 28/04/2020 13:38, Brian Milby via use-livecode wrote: For any that are part of the main product, a PR to add that feature would not be very difficult.  If I get some time I will take a look.  I do agree that a distinct label would be a good idea for native control widgets. How do you

Re: Mobile screen sizes - another naive question

2020-04-27 Thread Alex Tweedly via use-livecode
On 27/04/2020 21:29, Richard Gaskin via use-livecode wrote: I've been itching to write a tutorial on using specific object placement ("Responsive Design", as the kids call it) to compliment the Lesson we've had for years on the other mobile layout option, FullScreenMode. I had a few

Re: Three very simple questions

2020-04-26 Thread Alex Tweedly via use-livecode
On 26/04/2020 13:28, Klaus major-k via use-livecode wrote: I was thinking for example of an array of constants (really strings) which could be written into my script. Again, if that’s possible I don’t know how. It seems odd to have to do something like convert lists of constants into array

Re: Three very simple questions

2020-04-26 Thread Alex Tweedly via use-livecode
Sorry for sending 3 replies - but I don't know when I will run out of time, and wanted to get some sent before the oven demands attention :-) On 26/04/2020 13:11, Graham Samuel via use-livecode wrote: 3. I can’t work out if you can construct an array using the IDE, i.e. prior to actually

Re: Three very simple questions

2020-04-26 Thread Alex Tweedly via use-livecode
On 26/04/2020 13:11, Graham Samuel via use-livecode wrote: 1. In the IDE, the ‘Align Selected Controls’ menu item doesn’t allow all possible combinations of alignment, particularly aligning horizontal and vertical centres; nor does it allow alignments in relation to the stack dimensions. I

Re: Three very simple questions

2020-04-26 Thread Alex Tweedly via use-livecode
On 26/04/2020 13:11, Graham Samuel via use-livecode wrote: 2. I’ve not had to use LC arrays much, at least not ones containing my own data. The description of arrays is somewhat scattered throughout the lessons and the Guide, and I failed to find a thorough treatment of the whole idea of

Re: Even Distribution

2020-04-17 Thread Alex Tweedly via use-livecode
Or to do the full distribution ... put Njobs div Ndrivers into tMin put NJobs mod Ndrivers into tExtras repeat with i = 1 to NDrivers    if i <= tExtras then   allocate tMin+1   else allocate tMin   end if end repeat However, say your drivers are sorted alphabetically, then before

Re: Getting started with geographical coordinates

2020-04-07 Thread Alex Tweedly via use-livecode
ode > wrote: > > What a beautiful view you have! Interesting that Google Maps doesn't accept > what3words yet - possibly viewed as a competitor. > >> On 04/04/2020 01:49, Alex Tweedly via use-livecode wrote: >> And I'm at plump.magpie.tightest (sorry, no calculated

Re: Maximum field height?

2020-04-06 Thread Alex Tweedly via use-livecode
Hi Jacque, Scott made many of the same good points as you did - so I won't replicate my replies here. On 06/04/2020 05:20, J. Landman Gay via use-livecode wrote: On April 5, 2020 8:39:15 PM Alex Tweedly via use-livecode wrote: 1. xTalk features just don't work, or work totally

Re: Mobile Wondering

2020-04-06 Thread Alex Tweedly via use-livecode
On 06/04/2020 03:55, scott--- via use-livecode wrote: 1. xTalk features just don't work, or work totally inadequately (e.g. scrolling fields). I feel this is overly harsh. Livecode fields (and the creation of native UIText fields) do work on mobile. I think the issue is that the use of some

Re: Maximum field height?

2020-04-05 Thread Alex Tweedly via use-livecode
As I see it, there are 4 broad areas of problem for LC on mobile OSes. The first two have been well described earlier in the thread and should just be fixed. 1. xTalk features just don't work, or work totally inadequately (e.g. scrolling fields). 2. Failure in cross-platform equivalence.

Re: Getting started with geographical coordinates

2020-04-03 Thread Alex Tweedly via use-livecode
And I'm at plump.magpie.tightest (sorry, no calculated height available, not even in annoying feet - but I'd guess somewhere around 2 or 3 metres). Alex. On 03/04/2020 23:07, Graham Samuel via use-livecode wrote: A long way from me at 43°16′43″N 2°09′36″E

Re: DataGrid question...

2020-03-30 Thread Alex Tweedly via use-livecode
Tweedly via use-livecode wrote: I don't know of a simple way to do it. However, Bernd's modTableField does do it, and it uses regular fields, and it's open source - so I took a very quick look there. It's not simple :-) But there's a function 'gatherItemClickedInfo' that (with some modifications

Re: DataGrid question...

2020-03-30 Thread Alex Tweedly via use-livecode
I don't know of a simple way to do it. However, Bernd's modTableField does do it, and it uses regular fields, and it's open source - so I took a very quick look there. It's not simple :-) But there's a function 'gatherItemClickedInfo' that (with some modifications) might be the foundation

Re: Its very quiet

2020-03-27 Thread Alex Tweedly via use-livecode
Yeah- but we can't count higher than 2 ! :-) On 27/03/2020 15:17, Bob Sneidar via use-livecode wrote: That’s odd. Here in ‘Merica we only have to stay 6 feet away. Bob S ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: Its very quiet

2020-03-27 Thread Alex Tweedly via use-livecode
It's social distancing. I have to stay 2 metres away from the message - and I can't reach the keyboard. Alex. On 27/03/2020 15:08, Heather Laine via use-livecode wrote: We are all still here, right? Our list hasn't fallen over again... If you get this, no need to reply ;) Only let me know

Re: Any electronic document formats offering interactivity?

2020-03-18 Thread Alex Tweedly via use-livecode
Hi David, as Richard says, there are many unknowns, or unstated constraints, etc. - so anyone who would try to give a detailed answer without more details is either:  - brave  - foolhardy  or  - just foolish. So here I go you choose which of the above adjectives fits :-) Possibly a

  1   2   3   4   >