Re: Return Total of a Given Repeated Number in a List

2024-05-25 Thread Alex Tweedly via use-livecode
On 25/05/2024 16:13, Mike Kerner via use-livecode wrote: (to alex's question) * quicken date shortcuts quicken has/had these very nifty ways of handling date inputs, to make entry faster. if you enter a numeral, like 26, it means that date of this month. similarly, month/date e.g. 5/25 is

Re: Return Total of a Given Repeated Number in a List

2024-05-24 Thread Alex Tweedly via use-livecode
On 24/05/2024 13:35, Mike Kerner via use-livecode wrote: i LOVE all of these solutions. chunking is so great. in every language i use, there are two things i always implement: * chunking Yes. * quicken date shortcuts Alex. ___

Re: WebDeployHelper tool - the LC10 web app toolbox

2024-04-05 Thread Alex Tweedly via use-livecode
That's cool !   I really like those 'slide-out' left buttons. Thank you very much for this. Alex. On 05/04/2024 16:38, Andreas Bergendal via use-livecode wrote: And as a follow-up on this, here is also a demo web app created with the help of WebDeployHelper 1.0.1:

Re: Revisiting Lock Screen

2024-03-28 Thread Alex Tweedly via use-livecode
Hi Bob, I'm not sure from your description how / when you are seeing the (unexpected) changes happening. Remember that lockscreen is automatically set to false when there is no handler running, so unlerss you have an intensive handler running, you will see these changes. If it's not that

Re: Tutorial for Livecode Server log in system

2024-03-26 Thread Alex Tweedly via use-livecode
Hi Tim, I guess my first response would be - don't. Specifically, don't store or use passwords. Users have a bad habit of re-using the same passwords, so even if your site has no personal or valuable info about your users, the fact that passwords get re-used means you are storing valuable

Re: FindIndex question

2024-03-25 Thread Alex Tweedly via use-livecode
Bob - I think you've mentioned these functions (and posted code, or a pointer to code, for them) before (but I couldn't find it). Any chance you could re-post (or just send to me, or ...) Mike - I couldn't see in the thread *why* you want to use a dg ather than a pg ? Is there a missing

Re: web

2024-02-03 Thread Alex Tweedly via use-livecode
I've not been able to get anything worthwhile to work on web. All the working examples that I've seen (e.g. Andreas's example last week of interaction between browser and LC) , have involved a significant amount of html + JS being written. The default shipping web wrapper is completely

Re: We lost an Angle

2024-01-11 Thread Alex Tweedly via use-livecode
I  am so sorry for your loss.  You are in my prayers tonight. Alex. On 11/01/2024 01:54, Ralph DiMola via use-livecode wrote: Many of you knew Margaret from the conferences. We lost her today. She spent her life as a nurse in the oncology department. She gave her love and empathy to all her

Re: tsneterr: (3) URL using bad/illegal format or missing URL

2023-12-17 Thread Alex Tweedly via use-livecode
On 16/12/2023 14:51, Klaus major-k via use-livecode wrote: Hi friends, I am trying to upload a (not so long) urlencoded text list to my server, but get the tsNet error as in the subject. In the form of: ... ## Remove spaces etc. put clean_name(tSetlist) into tDateiname put "whatever" & CR &

Re: resizeControl wishes...

2023-11-30 Thread Alex Tweedly via use-livecode
On 30/11/2023 16:05, Paul Dupuis via use-livecode wrote: resizeControl is sent "only sent when the user resizes a control by dragging its handles. It is not sent if a handler changes the size of a control by changing its properties (width, height, and so on)." Basically, that dictionary

Re: Comparative speed in switching among groups

2023-11-27 Thread Alex Tweedly via use-livecode
On 27/11/2023 00:02, ambassador--- via use-livecode wrote: An excuse to benchmark? Sure, I'll bite. :) :=).  Beat me to it. But boy oh boy was I surprised by the difference. Bottom line, in millisecs for just 5 iterations on an M1 Mac: Groups: 141 Cards: 13619 Wow! I suspect most

Re: [OT] The Fall of the British Empire???

2023-11-17 Thread Alex Tweedly via use-livecode
> >> On Nov 17, 2023, at 1:39 PM, >> >> England was #1 until 1916, when guess who took over. >> >> Craig Hmmm I thought it was the UK on the top spot. Alex ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Me and target of script widgets

2023-10-22 Thread Alex Tweedly via use-livecode
Brutal answer :-) Script widgets aren't ready for release yet. They have (effectivtely) no documentation, no examples, no lessons. Unless you have a desparate need to do it now, I'd suggest waiting until they are somewhere near ready. Alex. On 22/10/2023 10:41, David Bovill via

Re: I give up! Mac App Installer Hell

2023-10-06 Thread Alex Tweedly via use-livecode
I'm afraid I can't help - wish I could. But I have to say that "... tried the (out of date) LC Lesions," must be the best auto-correct failure this week. Alex. On 06/10/2023 23:44, Dan Friedman via use-livecode wrote: If you have a very, very, VERY good understanding of creating Mac

Re: Sort bug

2023-08-31 Thread Alex Tweedly via use-livecode
On 01/09/2023 00:37, Bob Sneidar via use-livecode wrote: The function is adding the value of two chunks together and returning the result. How does that even compute? Unless the + operator is doing something totally different here… The code said: sort lines tVariable by myVal(each) where

Re: Adding and delete a row of data to the Polygrid

2023-08-28 Thread Alex Tweedly via use-livecode
Sorry, I meant 10.x In 9.x you could do put sColSubtotalArray into tA[1] set the addDataAfter of widget "rwTableview" to tA Alex Sent from my iPhone > On 28 Aug 2023, at 13:33, Paul Dupuis via use-livecode > wrote: > On 8/28/2023 7:28 AM, Alex Tweedly via

Re: Adding and delete a row of data to the Polygrid

2023-08-28 Thread Alex Tweedly via use-livecode
On 27/08/2023 20:43, Paul Dupuis via use-livecode wrote: I ran into an inconsistency with the Polygrid ... I am not sure this is a BUG. It is certainly an inconsistency and changing it would break some current code. On the other hand, the Polygrid is part of the widget set for Xavvi/Livecode

Re: Behaviors

2023-08-22 Thread Alex Tweedly via use-livecode
Not sure how it works in the IDE - seems a problem because it only presents button in the current stack. So I do it all in preOpen... scripts, doing something like set the behavior of fld "F" of grp tmpName to the long id of button "RichTextFieldBehaviour" of \ card "Behaviours" of

Re: Group corners

2023-08-21 Thread Alex Tweedly via use-livecode
I see those kind of changes (10.0.0DP5, MacOS), but the border changes from solid black to black/white lines - with those 'splits' you described. Alex. On 21/08/2023 01:50, Dar Scott via use-livecode wrote: On Mac and LiveCode 9.6.9… Make a new stack. Put a few controls on it. Group them.

Re: Sorting Arrays

2023-08-11 Thread Alex Tweedly via use-livecode
On 11/08/2023 23:00, J. Landman Gay via use-livecode wrote: On 8/10/23 2:29 PM, Alex Tweedly via use-livecode wrote: [ ... code from earlier posting ...] I couldn't get this to work until I altered it, but I was using a very simple array. What type of array data did you use? I think I'm

Re: xavvi - temper your expectations

2023-08-10 Thread Alex Tweedly via use-livecode
I have high expectations of xavvi - mostly because I want the cloud IDE, cloud db, new widgets, ... Oh - and I might just play with the AI, but I have no short-term expectations for that part of it. :-) Alex. On 10/08/2023 20:22, Mike Kerner via use-livecode wrote: i'm using chatgpt and

Re: Sorting Arrays

2023-08-10 Thread Alex Tweedly via use-livecode
On 09/08/2023 00:15, Bob Sneidar via use-livecode wrote: Has anyone come across a need to sort a numbered array by the values of the different keys? Here you go. Absolutely I have needed that quite often now. I tend to use sequences (numbered arrays) often - maybe too often. Up until now

Re: Question re download timeout setting

2023-07-22 Thread Alex Tweedly via use-livecode
messages. So there may be a bug in there - I'll try to track it down more closely, and if I can get anything reliable, submit a bug report). btw - livekode.com was my first attempt at a  "non-existent host" - and it does exist !! Alex. On Jul 21, 2023, at 17:49, Alex Tweed

Re: Question re download timeout setting

2023-07-21 Thread Alex Tweedly via use-livecode
On 22/07/2023 01:02, prothero--- via use-livecode wrote: Folks: Sorry for the trivial question, but.. I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works

Re: What is your best practice for setting a script in a script?

2023-07-15 Thread Alex Tweedly via use-livecode
On 15/07/2023 21:29, Paul Dupuis via use-livecode wrote: All good suggestions so far, but not what I was after, which was whether there is any better way to have the script you are setting the newly created object to, readable, in the script that setup of the new object. If a behavior script

Re: Convert date

2023-07-15 Thread Alex Tweedly via use-livecode
On 14/07/2023 19:45, Bob Sneidar via use-livecode wrote: Because I’m not that good with regular expressions and the format function. :-) But you example has one too many close parens. Oops - I got caught out copying / pasting again :-( Yes, of course it should have been put

Re: Convert date

2023-07-15 Thread Alex Tweedly via use-livecode
On 14/07/2023 16:13, Bob Sneidar via use-livecode wrote: I beg to differ. Again, Livecode is a way to build both the tools and the product made by those tools. Livecode is NOT a collection of every conceivable tool for everything everyone wants to do. No language is. I think the LC dev team

Re: Convert date

2023-07-14 Thread Alex Tweedly via use-livecode
On 14/07/2023 16:34, Bob Sneidar via use-livecode wrote: CASE "sql date" put item 1 of theDate & "-" & \ format("%02d",item 2 of theDate) & "-" & \ format("%02d",item 3 of theDate) into theDate break Why not just put

Re: How to loop through stacks with same name?

2023-04-06 Thread Alex Tweedly via use-livecode
Jacque, those two code snippets do slightly different things - and I don't think either of them is doing exactly what's intended; I think the intent is to delete stack(s) called (exactly) "test". The first one will (wrongly) catch a stack called "testabc" or "abctest" - and then will fail

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Alex Tweedly via use-livecode
n ? Might be put the number of chars in tText into K put K into N repeat for each char c in tText    put c into tRev[N]    subtract 1 from N end repeat combine tRev with empty Alex. On 23/03/2023 19:03, Alex Tweedly via use-livecode wrote: OK, I may be going in the wrong direction here, but

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Alex Tweedly via use-livecode
OK, I may be going in the wrong direction here, but put (the opening string) into temp set the itemDelimeter to temp put the number of chars in item 1 to -2 of theWholeText into theAnswer ?? Alex. On 23/03/2023 17:24, François via use-livecode wrote: Yes, this is the big picture. Plus,

Re: Chat and textarea formatting

2023-02-16 Thread Alex Tweedly via use-livecode
Of course, the other option - depending on your timescale (and maybe your license) - would be to build it as a LC app, and then 'build for web'. That way you'd have control over the formatting options you want to allow/provide. Alex P.S. but then, I'm strongly averse to any use of JS, HTML,

Re: Chat and textarea formatting

2023-02-14 Thread Alex Tweedly via use-livecode
It's not really a LC question, it's an HTML thing :-) textarea etc. only handle plain (unformatted) text. Googling for suggestions I can only find two common answers: 1. horribly complicated ways to add Javascript to your script to handle formatting 2. "use TinyMCE" I'd go for the second

Re: Html mix with livecode server

2023-02-11 Thread Alex Tweedly via use-livecode
Short answer you can use single quotes and double quotes interchangeably in HTML (so long as consistently). So you can do Second answer: Or, you could mix html + lc, and do Third answer: Or, for anything more complex like a full website, you might want to look at Ralf Bitter's

Re: [[ ANN ]] New Enhancements Bundle v1.0.29 available

2023-02-10 Thread Alex Tweedly via use-livecode
Hi Panos, I just installed the new Megabundle. When I opened up 'magic palette', I got an error dialog There was an error executing a script in stack magic palette. No more information is available because the stack is password protected. Any suggestions how I can get you a helpful error

Re: ChatGPT examples

2023-01-20 Thread Alex Tweedly via use-livecode
ets is critical: too big and you do too much work. Too small and you end up with all singletons in the buckets. This would require some experimentation and thought. 6. Go through the buckets only comparing the points within them. On Fri, Jan 20, 2023 at 10:14 AM Alex Tweedly via use-livecode < use-l

Re: ChatGPT examples

2023-01-20 Thread Alex Tweedly via use-livecode
lex. On 20/01/2023 13:05, Alex Tweedly via use-livecode wrote: Fascinating. Thank you so much for that Geoff. I've been afraid to play with ChatGPT so far - too worried abut getting sucked in and spending way too much time I did take a look at your third example (since I can never res

Re: ChatGPT examples

2023-01-20 Thread Alex Tweedly via use-livecode
On 20/01/2023 16:52, Mark Waddingham via use-livecode wrote: On 2023-01-20 13:05, Alex Tweedly via use-livecode wrote: We need a better algorithm. If we use a "linear scan", we can change it from essentially Order(N**2) to approx Order(N). Slightly pedantic point (I appreciate th

Re: ChatGPT examples

2023-01-20 Thread Alex Tweedly via use-livecode
On 20/01/2023 15:55, Geoff Canyon via use-livecode wrote: Responses inline: On Fri, Jan 20, 2023 at 5:06 AM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: I thought of this -- especially since ChatGPT's first (python-esque) example uses "inf" -- but wh

Re: ChatGPT examples

2023-01-20 Thread Alex Tweedly via use-livecode
Fascinating. Thank you so much for that Geoff. I've been afraid to play with ChatGPT so far - too worried abut getting sucked in and spending way too much time I did take a look at your third example (since I can never resist a performance challenge :-) There are a number of minor

Re: Move in Reverse

2023-01-17 Thread Alex Tweedly via use-livecode
He's moving the graphic object "to" the points of a polygon - i.e. to each in turn. So the movement would be reversed. On 17/01/2023 23:23, Mark Wieder via use-livecode wrote: On 1/17/23 12:06, Roger Guay via use-livecode wrote: Hi all, is there a simple way to move a grc to the points of a

Re: Field content as parametres in a function

2022-11-29 Thread Alex Tweedly via use-livecode
Yes, your description is correct (except for saying the behavior is "puzzling" :-) The first case you are passing a single parameter (which happens to have commas in its current content). You could have said " paramcount() returns 1 as expected". The second case you pass 5 values. And

Re: IP address and Country

2022-11-15 Thread Alex Tweedly via use-livecode
Hi Rick, I had missed the fact that you said you already had the database - that makes it a much easier problem :-) While I don't have any Livecode code for this, I do have some C code for a (probably) very similar problem. If you can describe the format of your database, and the query you

Re: itemoffset & wholematches

2022-11-15 Thread Alex Tweedly via use-livecode
so need to count how many items I have added and substract that number from the result, which is quite cumbersome and slow... To Jacqueline : Thanks fro the suggestion, but I have to stick with items and itemoffset, for some items can contain more that 1 word, like "pied de biche"... Le

Re: itemoffset & wholematches

2022-11-14 Thread Alex Tweedly via use-livecode
That would deal with the last item in a line - but not the first. Should do    replace CR with TAB & CR & TAB in ... and reverse later if needed. Alex. On 14/11/2022 18:43, Bob Sneidar via use-livecode wrote: oic. Odd use case. I suppose a lineOffset function followed by is among the items

Re: clearing a polygrid/polylist

2022-10-12 Thread Alex Tweedly via use-livecode
For polygrid    set the pgdata of widget 1 to empty For polylist   set the datacontent of widget 2 to empty BUT beware - on my trivial test, this appears to cause the last character of the header to be removed !! I'll investigate some more and bug report it if it seems consistent. Alex

Re: Quick and simple web demos?

2022-09-30 Thread Alex Tweedly via use-livecode
Short answers: 1. Yes 2. Yes, but probably not. 3. Yes. Long answers. 1. Yes, absolutely, it's ideal for quick, easy-to-distribute apps or demo samples. 2. Yes, you'll need somewhere to store/give access to the files. But it probably won't be Google Drive - you want the files of the app

Re: Charts widget.

2022-09-26 Thread Alex Tweedly via use-livecode
versions? Thank you for directing me to 10. On 9/26/2022 5:11 PM, Mike Kerner via use-livecode wrote: well, i learned something new. i don't even see that widget in 9, but i do in 10. On Mon, Sep 26, 2022 at 4:54 PM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote:

Re: Charts widget.

2022-09-26 Thread Alex Tweedly via use-livecode
b file is in Tools/Extensions/com.livecode.widget.linegraph, if you want to try reading through it. it's only 1300 lines, total, including the docs. there is not that much going on. there are no private properties that i can see. On Sun, Sep 25, 2022 at 4:55 PM Alex Tweedly via use-livecode < use

Charts widget.

2022-09-25 Thread Alex Tweedly via use-livecode
Anyone using this widget ? Is there some documentation (other than the obvious dictionary entries) about how to do different kinds of chart ? In the last 4-6 months, I've done 3 or 4 little personal projects where I wanted to create a chart, but I've not been able to figure out how to use

Re: NAVRAD was: lcb missing manual

2022-09-17 Thread Alex Tweedly via use-livecode
On 17/09/2022 08:54, Jacques Clavel via use-livecode wrote: point 6. maybe potential for future performance gains : - But today LCB is surprisingly less efficient (/3) than LCS (???) Yes, at first glance it is surprising; typed variables etc. *should* make it possible to be more efficient.

Re: NAVRAD was: lcb missing manual

2022-09-16 Thread Alex Tweedly via use-livecode
On 15/09/2022 16:37, Ralph DiMola via use-livecode wrote: Docs aside... I still think that widgets and lcb is one of best additions to LC. Community collaboration like this will make for better documentation and more new/improved widgets. A robust library of widgets can only help LC to

Re: NAVRAD was: lcb missing manual

2022-09-16 Thread Alex Tweedly via use-livecode
ion date is valid for the life of the creator plus (in the US) 75 years. Oh well. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On September 15, 2022 5:12:59 PM Alex Tweedly via use-livecode wrote: On 15/09/2022 15:44, Mike Kerner via use-

Re: NAVRAD was: lcb missing manual

2022-09-15 Thread Alex Tweedly via use-livecode
On 15/09/2022 15:44, Mike Kerner via use-livecode wrote: What's NavRAD? It's a better version of LiveCode's NavBar widget. Why "RAD"? Cos Ralph A DiMola said so, since he added the first two nifty updates to it: I see the code has an outdated copyright statement, which would (I think)

Re: Standardize Font Appearance

2022-09-13 Thread Alex Tweedly via use-livecode
On 13/09/2022 03:51, Richard Gaskin via use-livecode wrote: So help me understand: what are you working on where a user expects fine-grained font rendering consistency on multiple OSes? What do these apps do? One example that (almost) applied for me was where the target display is not an

Re: LC converts phone number to scientific notation

2022-09-09 Thread Alex Tweedly via use-livecode
No, not all are 2-digits.   USA is one digit, many are 3 digits, none are (yet) 4 digits. A phone number would have a leading zero in many countries; usually indicating it's a non-local number (kind of similar to the leading 1- in long distance in the US, e.g. 1-800-555-1212). In the UK,

Re: LC converts phone number to scientific notation

2022-09-09 Thread Alex Tweedly via use-livecode
No, I just need to learn to not type emails on my iPhone :-) I do it so rarely, I forget to be careful about autocorrect. On 09/09/2022 16:39, Bob Sneidar via use-livecode wrote: Someone needs to debug their emails. ;-) Bob S On Sep 9, 2022, at 06:32 , Klaus major-k via use-livecode

Re: LC converts phone number to scientific notation

2022-09-09 Thread Alex Tweedly via use-livecode
How about Put (“” & item 9 of globe) onto item 6 of tnewline Alex Sent from my iPhone > On 9 Sep 2022, at 11:40, Klaus major-k via use-livecode > wrote: > > Hi Panos, > >> Am 09.09.2022 um 12:27 schrieb panagiotis m via use-livecode >> : >> >> Hello Klaus, >> >> I guess what happens

Re: BN Guides

2022-08-25 Thread Alex Tweedly via use-livecode
Bob, Just email Heather- she can do everything ! Probably the support @ livecode.com address would be more correct than her directly. Alex Sent from my iPhone > On 25 Aug 2022, at 17:18, Bob Sneidar via use-livecode > wrote: > > I found the link to the Board Administrator. The board

Re: case sensitivity of the keys in an associative array

2022-08-23 Thread Alex Tweedly via use-livecode
Not quite. It is dependent on the value of "casesensitive". If you do set the casesensitve to true then the keys are different (i.e. Ddt  would NOT replace the existing value for ddt) but if it is false (which it would be by default) thne DDt and ddt are teh same. [Only tested on 10.0.0

Re: Livecode performance problem

2022-08-20 Thread Alex Tweedly via use-livecode
I can't answer for anyone else, but for me - because I never thought about it :-) Combine by column - never used it before, so never thought of it. It's significantly faster, roughly 40% improvement over the previous best. Note, the spec requires that each line begins with the line number, so

The use-livecode list.

2022-08-19 Thread Alex Tweedly via use-livecode
I've had a pretty shitty day. A variety of things have happened, or not happened, that made it not one of the good days. So I was not happy, and rather grumpy. (My apologies to Panos for being ungracious in an earlier post - it was meant to be a plea for completeness of the product in

Re: Livecode performance problem

2022-08-19 Thread Alex Tweedly via use-livecode
On 20/08/2022 00:03, Bob Sneidar via use-livecode wrote: It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan

Re: Livecode performance problem

2022-08-19 Thread Alex Tweedly via use-livecode
On 19/08/2022 23:32, Mark Wieder via use-livecode wrote: It is indeed faster. Here's what I came up with. I'm not sure why 2000 lines of text in four fields should take that long, I came up with original code: 320 ms array version: 21 ms    put empty into vCombined    put fld "A" into v1   

Polylist widget Lazy Loading images example. [was Re: polylist toys]

2022-08-18 Thread Alex Tweedly via use-livecode
On 18/08/2022 23:13, Alex Tweedly via use-livecode wrote: However, the lazy load example still contains bugs due to race conditions Solution: replace the card script with the following should fix all the race conditions I can see. local sURLToIndex on onlineImage pIndex, pURL

Re: polylist toys

2022-08-18 Thread Alex Tweedly via use-livecode
On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: Hi Mike, I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. As already confirmed, that problem is fixed in 10. However, the lazy load example still contains bugs due to

Sorting [was: Polygrid sorting]

2022-08-15 Thread Alex Tweedly via use-livecode
So it occurred to me, while playing with sorting by columns, that it might be nice to have an additional "sortType" available. I'd like to be able to say  - if all the 'things' being sorted on are numbers, then sort numeric, otherwise sort alphabetical. Would that be a reasonable

Re: Polygrid sorting (problems)

2022-08-15 Thread Alex Tweedly via use-livecode
On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me') The example code only sort the visible rows as "the text

Re: A web app launcher with responsive design

2022-08-13 Thread Alex Tweedly via use-livecode
On 13/08/2022 20:24, Andreas Bergendal via use-livecode wrote: Friends, I have done wonderful things with LC10 web deployment! I’m excited to share with you the fruits of this week's extensive research and testing! Wow. Thanks Andreas. Resize, etc. work well for me on Safari, but fail

Re: Server globals

2022-08-12 Thread Alex Tweedly via use-livecode
Hi Tim, I think there are many easy ways to do this - and many not-so-easy ones too. IMO, easiest for something simple like this is to just use the url. See tweedly.net/page_by_url.txt for the code, or try it out at tweedly.net/page_by_url.lc (or try tweedly.net/page_by_url.lc?row=14 ) You

Re: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Alex Tweedly via use-livecode
You are correct Andreas - all this basic javascript interaction *really* should be in the default built already. A sample stack for building a web app was discussed in a session in the LC Global conference, by Steven Crichton and Michael McReary. It has all kinds of javascript magic, and the

Re: megabundle thoughts

2022-08-05 Thread Alex Tweedly via use-livecode
I kind of agree with Paul (though I ame to the opposite conclusion). Once I discounted the items I'd already paid for (conferences, courses, books, etc.) and the multi-year future licensing already paid, the value of the megabundle shrank from "amazing" to "pretty good". I decided to go

Re: deleting folders on server with revDeleteFolder

2022-07-17 Thread Alex Tweedly via use-livecode
Those folders are "." - the folder itself ".." - the parent of the folder itself. As such, neither can be deleted directly, nor do they need to be in order to delete the folder itself. The folder itself should be deleted when the current folder is set to somewhere else. So - there isn't

Re: Encrypted Data over Sockets

2022-07-08 Thread Alex Tweedly via use-livecode
But, an encoded array is STILL binary data. So any issues with "read until linefeed" will still exist. Try sending a header with number of bytes, followed by the bytes. If you really wanted, you could do:    write  (the number of bytes in tSocketData) & linefeed to socket tSocket    write

Re: arrayencode

2022-06-23 Thread Alex Tweedly via use-livecode
On 23/06/2022 17:48, Ralf Bitter via use-livecode wrote: Hi Alex, have you added the mergJSON External to your server installation? No. In fact, I didn't realize I needed to, or even could :-) You guessed it, use "load extension", example (tested on on-rev): load extension from file

Re: How to color a "cell"?

2022-06-23 Thread Alex Tweedly via use-livecode
On 23/06/2022 19:28, Richard Gaskin via use-livecode wrote: Thanks. I could get away with setting the backgroundColor of the whole line, but that does the same as setting the backgroundColor of a "cell": it draws the color only beneath the portion of the line that contains text, leaving

Re: arrayencode

2022-06-23 Thread Alex Tweedly via use-livecode
Thanks, Alex Ralf On 23.06.22 01:31, Alex Tweedly via use-livecode wrote: On 22/06/2022 17:02, Richard Gaskin via use-livecode wrote: [ ... about using JSON ... ] But if you don't need interoperability, you wouldn't need to write a parser, since LC includes a good one built into the engin

Re: arrayencode

2022-06-22 Thread Alex Tweedly via use-livecode
On 23/06/2022 00:38, Richard Gaskin via use-livecode wrote: Interesting take. Thanks. I'd read Tom's post as being about LSON, with LC in both producer and consumer roles, which would make a JavaScript-optimized format unnecessary.  Perhaps I'd misunderstood. No, you didn't misunderstand.

Re: arrayencode

2022-06-22 Thread Alex Tweedly via use-livecode
On 22/06/2022 17:02, Richard Gaskin via use-livecode wrote: [ ... about using JSON ... ] But if you don't need interoperability, you wouldn't need to write a parser, since LC includes a good one built into the engine. What did I miss? The fact that Livecode's support for JSON is, hmmm,

Re: Stylistic question.

2022-06-19 Thread Alex Tweedly via use-livecode
your code with a repository like Git. This would greatly reduce the number of behavior scripts that you would create. One app that work on has the code in the stack’s behavior script. Sent from my iPhone On Jun 19, 2022, at 4:33 PM, Alex Tweedly via use-livecode wrote: I've noticed th

Stylistic question.

2022-06-19 Thread Alex Tweedly via use-livecode
I've noticed that in a lot of the example code I've seen recently, there's a bit of a common pattern. In the card script, there will be code like on mouseUp   switch the short name of the target     case "first"     doCommandFirst     break     case "another"     doCommandAnother   

Re: Case sensitivity in Livecode ??

2022-06-07 Thread Alex Tweedly via use-livecode
{ Aside: any discussion where both Mark Weider and Mark Waddingham take part is all the better because of that; two very knowledgeable people with two very different viewpoints (in some areas) is a good thing. BUT it makes it hard to refer to what each of them said - "MarkW" is still

Re: Property Sheet for LC (was Re: Right click in field for menu)

2022-06-05 Thread Alex Tweedly via use-livecode
I'll add my thanks for such a usefull tool. On 04/06/2022 19:38, Richard Gaskin via use-livecode wrote: Thanks for the report. Please keep me posted if you find any other anomalies. I don't know if it's an anomaly or another failing in widget support :-) The NavBar widget has a number of

Re: Case sensitivity in Livecode ??

2022-06-01 Thread Alex Tweedly via use-livecode
On 01/06/2022 18:05, Mark Waddingham via use-livecode wrote: Anyway, this rather odd and obscure facet of the language will disappear in 10 as we've made it so that initializers for constants and locals can be constant expressions. Thus:     constant kTrue = TRUE     local sEmptyString =

Case sensitivity in Livecode ??

2022-06-01 Thread Alex Tweedly via use-livecode
I was surprised to find that    constant K = TRUE produces an error, though   constant K = true is fine. In other contexts, you can say    put TRUE into myVar    put true into hisVar    etc. but in a constant statement, it seems to be case sensitive. Anyone got an interesting story (or

Re: A test, move along

2022-05-27 Thread Alex Tweedly via use-livecode
On 28/05/2022 00:28, Mark Wieder via use-livecode wrote: On 5/27/22 16:03, doc hawk via use-livecode wrote: As a professor, I’ll grade it a B-. I thought that was a pessimistic blood type. I thought it was short for balderdash! ___

Re: Nested loops

2022-05-17 Thread Alex Tweedly via use-livecode
Direct equivalent is probably repeat with i = 0 to myArrayLength-1    put i-1 into j    if j < 0 then put myArrayLength-1 into j    . end repeat OR, if you prefer a single-statement version repeat with i = 0 to myArrayLength-1    put (i + myArrayLength-1) mod myArrayLength  into j    .

Re: Flash Talks - 3 slots remaining

2022-04-05 Thread Alex Tweedly via use-livecode
Do you need to be in front of the running machine ? Could you maybe video the machine going through its sequence - then record your voice-over later (either muting or turning down the machine audio, whichever is better) ? (Or, to put it another way, I have no real idea :-) but I'm sure

Re: Flash Talks - 3 slots remaining

2022-04-05 Thread Alex Tweedly via use-livecode
Sounds fascinating - I'd love to hear about that. Alex. On 05/04/2022 18:36, Craig Newman via use-livecode wrote: Heather. I probably am one of the oddest LC users. Entirely for either my own use or for my company. Only once did I sell a system commercially. But I do use LC to control three

Re: CSV to TSV (was Re: Tools & techniques for one-off consolidation of multiple 'similar' CSV files?)

2022-04-05 Thread Alex Tweedly via use-livecode
Hi Keith, that code will fail for any commas which occur within quoted entries - they will be wrongly converted to TABs I'd suggest getting cvsToTab (a community effort by Richard Gaskin, me and a whole host of others over the years) as a good starting place, and perhaps finishing place. It

Re: playrate & templateimage

2022-03-30 Thread Alex Tweedly via use-livecode
On 30/03/2022 22:18, Klaus major-k via use-livecode wrote: At least on a Mac. Is this also the case on Windows? could someone please test it and report here? Thank you! really noone has a minute to test? :-( Oh, I have a minute. Unfortunately, I don't have a 'Windows". Alex. P.S.

Re: Speed up a slow loop

2022-03-09 Thread Alex Tweedly via use-livecode
23:09, Alex Tweedly via use-livecode wrote: Yes, Quentin's allowing for diagonals (that's how the number of digraphs on a 5x5 board gets up to 110). And it's probably a good idea, allowing an even finer filter - if you aren't doing the boardwalk method.. If you do use the boardwalk

Re: Speed up a slow loop

2022-03-09 Thread Alex Tweedly via use-livecode
Yes, Quentin's allowing for diagonals (that's how the number of digraphs on a 5x5 board gets up to 110). And it's probably a good idea, allowing an even finer filter - if you aren't doing the boardwalk method.. If you do use the boardwalk to generate the exact list of words, you get no

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

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

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
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://elementarysoftware.com/ email sc...@elementarysoftware.com booth1-360-734-4701 mobile

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

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

  1   2   3   4   5   6   >