use-livecode Digest, Vol 233, Issue 13

Richard Hillen mail at richard-hillen.de
Tue Feb 21 12:18:50 EST 2023



> Am 21.02.2023 um 18:01 schrieb use-livecode-request at lists.runrev.com:
> 
> Send use-livecode mailing list submissions to
>    use-livecode at lists.runrev.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    http://lists.runrev.com/mailman/listinfo/use-livecode
> or, via email, send a message with subject or body 'help' to
>    use-livecode-request at lists.runrev.com
> 
> You can reach the person managing the list at
>    use-livecode-owner at lists.runrev.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of use-livecode digest..."
> 
> 
> you can find the archives for this list at:
> 
> http://lists.runrev.com/pipermail/use-livecode/
> 
> and search them using this link:
> 
> http://www.google.com/advanced_search?q=site:lists.runrev.com
> 
> 
> Today's Topics:
> 
>   1. Sort list alphabetically- ignoring first character if it is a
>      space (David V Glasgow)
>   2. Re: Sort list alphabetically- ignoring first character if it
>      is a space (Niggemann, Bernd)
>   3. Re: Sort list alphabetically- ignoring first character if it
>      is a space (Mark Wieder)
>   4. Re: Sort list alphabetically- ignoring first character if it
>      is a space (Richard Gaskin)
>   5. Re: Sort list alphabetically- ignoring first character if it
>      is a space (Bob Sneidar)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 20 Feb 2023 21:15:50 +0000
> From: David V Glasgow <dvglasgow at gmail.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: Sort list alphabetically- ignoring first character if it is a
>    space
> Message-ID: <B53F47B5-8DB4-464C-A253-BCFD8F62C682 at gmail.com>
> Content-Type: text/plain;    charset=utf-8
> 
> I am trying to alphabetically sort a list of unique strings, some of which have a leading space character.  I need these to sort as if the second character is the first character rather than all space prefixed strings being bunched together.
> 
> I just had a hilarious conversation with ChatGPT on this challenge  We ended up having a disagreement about whether a keyword ?ignoring? exists in Livecode.  Please tell me it doesn?t.  (although even if it does, I don?t think it helps me with my task)
> 
> Anyway, I did learn something, but not whether there is an elegant way to do this.
> 
> I can see how I could extract strings starting with a space, replace the first character with the second character, combine the lists, sort, then replace the doctored strings with the space prefixed originals.  
> 
> However, I couldn?t help but wonder if there is a better  solution.
> 
> Anyone?
> 
> Best wishes,
> 
> David G
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 20 Feb 2023 21:29:46 +0000
> From: "Niggemann, Bernd" <Bernd.Niggemann at uni-wh.de>
> To: "use-livecode at lists.runrev.com" <use-livecode at lists.runrev.com>
> Subject: Re: Sort list alphabetically- ignoring first character if it
>    is a space
> Message-ID: <F3D4548D-08FC-4BC1-A21C-7C818E0D3DF9 at uni-wh.de>
> Content-Type: text/plain; charset="us-ascii"
> 
>> David V Glasgow wrote:
>> I am trying to alphabetically sort a list of unique strings, some of which have 
>> a leading space character.  I need these to sort as if the second character is 
>> the first character rather than all space prefixed strings being bunched 
>> together.
> 
> Would 
> 
> sort tData ascending by word 1 to -1 of each
> 
> work for you?
> 
> Kind regards
> Bernd
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 20 Feb 2023 14:11:01 -0800
> From: Mark Wieder <ahsoftware at sonic.net>
> To: "Niggemann, Bernd via use-livecode"
>    <use-livecode at lists.runrev.com>
> Subject: Re: Sort list alphabetically- ignoring first character if it
>    is a space
> Message-ID: <78cc5c34-0046-29e7-16d8-22378b58c491 at sonic.net>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
>> On 2/20/23 13:29, Niggemann, Bernd via use-livecode wrote:
>> 
>> ...or to make ChatGPT happy:
>> 
>> sort tData ascending by word 1 to -1 of each # ignoring spaces
>> 
>> <g>
>> 
>> -- 
>>  Mark Wieder
>>  ahsoftware at gmail.com
>> 
>> 
>> 
>> 
>> ------------------------------
>> 
>> Message: 4
>> Date: Mon, 20 Feb 2023 15:14:31 -0800
>> From: Richard Gaskin <ambassador at fourthworld.com>
>> To: use-livecode at lists.runrev.com
>> Subject: Re: Sort list alphabetically- ignoring first character if it
>>    is a space
>> Message-ID: <f34c3fdf-1f7d-4355-1f6d-b3169a7a0445 at fourthworld.com>
>> Content-Type: text/plain; charset=UTF-8; format=flowed
>> 
>> David V Glasgow wrote:
>> 
>> I am trying to alphabetically sort a list of unique strings, some of
>> which have a leading space character.  I need these to sort as if the
>> second character is the first character rather than all space prefixed
>> strings being bunched together.
> 
> Would using the word delimited type help with this? e.g.:
> 
>   sort lines of field 1 by word 1 to -1 of each
> 
> 
>> I just had a hilarious conversation with ChatGPT on this challenge.
>> We ended up having a disagreement about whether a keyword ?ignoring?
>> exists in Livecode.  Please tell me it doesn?t.
> 
> I don't recall having seen an "ignoring" keyword in LiveCode.
> 
> But I have seen countless articles about Vincent Cerf, Mark Cuban, Steve 
> Wozniak, and a great many others much smarter than me cautioning against 
> making any investment in ChatGPT for serious work involving precision 
> and accuracy.
> 
> Once you see it's a caffeinated auto-complete, the useful and less 
> useful applications for a tool that literally can't understand a single 
> word it spits out become clearer.
> 
> This background from Stephen Wolfram is helpful:
> https://writings.stephenwolfram.com/2023/02/what-is-chatgpt-doing-and-why-does-it-work/
> 
> ChatGPT is fascinating, but since this isn't the first time we've been 
> through the Gartner hype cycle with an "AI" tech (I first joined AAAI 
> back when Expert Systems were a thing), even more fascinating has been 
> watching humans forget that the Trough of Disillusionment will happen 
> before we eventually reach the Plateau of Productivity.
> https://en.wikipedia.org/wiki/Gartner_hype_cycle
> 
> -- 
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  ____________________________________________________________________
>  Ambassador at FourthWorld.com                http://www.FourthWorld.com
> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Tue, 21 Feb 2023 04:35:41 +0000
> From: Bob Sneidar <bobsneidar at iotecdigital.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: Re: Sort list alphabetically- ignoring first character if it
>    is a space
> Message-ID: <D53AE70B-B48D-4283-A4E0-615BBDD4B2CB at iotecdigital.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Sort by word 1 to -1 of each
> 
> Sent from my iPhone
> 
>> On Feb 20, 2023, at 14:12, Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> ?On 2/20/23 13:29, Niggemann, Bernd via use-livecode wrote:
>> 
>> ...or to make ChatGPT happy:
>> 
>> sort tData ascending by word 1 to -1 of each # ignoring spaces
>> 
>> <g>
>> 
>> -- 
>> Mark Wieder
>> ahsoftware at gmail.com
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ------------------------------
> 
> End of use-livecode Digest, Vol 233, Issue 13
> *********************************************




More information about the use-livecode mailing list