Re: Training the AI to write better LiveCode

2023-01-16 Thread Kaveh via use-livecode
 ChatGPT clearly likes me more that you. ;-) At least I have one friend!!!

On Tue, 17 Jan 2023 at 06:28, Torsten Holmer via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I also used chatGPT for looking uo code and I repeated your question. But
> this time chatGPT gives a wrong answer!
>
> —chatGPT:
> You will need to specify the group that the button should be added to by
> setting the group property of the button. The syntax for this is as follows:
> set the group of button [name of button] to [name of group]
>
> For example, if you wanted to create a button called "myButton" and add it
> to a group called "myGroup", you would use the following script:
>
> create button "myButton“
>
> set the group of button "myButton" to "myGroup"
>
> create button "myButton“
> set the group of button "myButton" to „myGroup"
> ---
>
> It is an error because  group is not a property of a button!
> So, really be careful with copy programming ;-)
>
> Cheers
> Torsten
>
>
>
> > Am 14.01.2023 um 22:14 schrieb Kaveh via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > I just tried Google to the answer to a problem. Didn't get it first time,
> > so tried ChatGPT. I asked:
> >
> > *How do I add a button to a group in LiveCode using a script?*
> >
> > I got:
> >
> > *create button "myButton" in group "myGroup"*
> >
> >
> > *This command creates a new button object with the name "myButton" and
> > places it inside the group "myGroup".*
> > Just what I needed.
> >
> > You can also set properties of the button
> >
> > On Sat, 14 Jan 2023 at 20:09, Mark Smith via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Thanks for posting this Geoff. It’s the first time I've seen a ongoing
> >> dialog between a programmer and Chat GPT and the first thing I am
> struck by
> >> (but not the only thing) is it’s ability to deal with human ambiguity.
> For
> >> example, you ask it to modify the code to be an “on mouseUp handler in a
> >> button". But nowhere in its response is there any sign of a button. It
> just
> >> totally ignored that part of your request. The code it provides works
> in a
> >> card, a stack, a graphic image, an svg widget, in fact, in anything that
> >> accepts mouseUp input. And yet, it didn’t worry itself about that. Very
> >> interesting. It’s kind of like, “this works in a button, so good
> enough”.
> >> That is not the kind of “nuance” I am used to expecting from an AI. So,
> >> progress has clearly been made in interpreting what humans say (or ask)
> in
> >> a very loose way.
> >>
> >> The 2nd, and perhaps more astounding example, is when you ask it to
> >> "rewrite the code to be a function that takes an argument "n", repeats
> with
> >> 1 to n, and returns the results”.
> >>
> >> The really clever bit here is not that it rewrites the previous code
> into
> >> a function, but that it removes the bit about "put fizzbin into field
> >> “display””. How does it know that putting the result in a field is NOT
> the
> >> typical responsibility of a function? How does it know that that step
> needs
> >> to occur AFTER the function call? That is so high-level that I am sure
> lots
> >> of beginning programmers have made that mistake. It even comments on it
> in
> >> the documentation. So there is some very deep semantic understanding of
> >> programming code that is going on here. Because,  you did not ask it to
> do
> >> that, but the fact that it did it anyway indicates it clearly
> understands
> >> what the purpose of a function is.
> >>
> >> Quite weird for me to comprehend how it knows that. Unless of course,
> you
> >> were somehow more specific than your examples illustrate.
> >>
> >> Mark
> >>
> >>> On 14 Jan 2023, at 3:22 am, Geoff Canyon via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> So just now I put this in to chatgpt:
> >>>
> >>> "fizz bin" is a program that counts from 1 to 100, replacing every
> number
> >>> divisible by 5 with "fizz" and every number divisible by 7 with "bin";
> >> and
> >>> numbers divisible by both 5 and 7 with "fizz bin". Write code in the
> >>> programming language livecode to ex

Re: Training the AI to write better LiveCode

2023-01-14 Thread Kaveh via use-livecode
I just tried Google to the answer to a problem. Didn't get it first time,
so tried ChatGPT. I asked:

*How do I add a button to a group in LiveCode using a script?*

I got:

*create button "myButton" in group "myGroup"*


*This command creates a new button object with the name "myButton" and
places it inside the group "myGroup".*
Just what I needed.

You can also set properties of the button

On Sat, 14 Jan 2023 at 20:09, Mark Smith via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks for posting this Geoff. It’s the first time I've seen a ongoing
> dialog between a programmer and Chat GPT and the first thing I am struck by
> (but not the only thing) is it’s ability to deal with human ambiguity. For
> example, you ask it to modify the code to be an “on mouseUp handler in a
> button". But nowhere in its response is there any sign of a button. It just
> totally ignored that part of your request. The code it provides works in a
> card, a stack, a graphic image, an svg widget, in fact, in anything that
> accepts mouseUp input. And yet, it didn’t worry itself about that. Very
> interesting. It’s kind of like, “this works in a button, so good enough”.
> That is not the kind of “nuance” I am used to expecting from an AI. So,
> progress has clearly been made in interpreting what humans say (or ask) in
> a very loose way.
>
> The 2nd, and perhaps more astounding example, is when you ask it to
> "rewrite the code to be a function that takes an argument "n", repeats with
> 1 to n, and returns the results”.
>
> The really clever bit here is not that it rewrites the previous code into
> a function, but that it removes the bit about "put fizzbin into field
> “display””. How does it know that putting the result in a field is NOT the
> typical responsibility of a function? How does it know that that step needs
> to occur AFTER the function call? That is so high-level that I am sure lots
> of beginning programmers have made that mistake. It even comments on it in
> the documentation. So there is some very deep semantic understanding of
> programming code that is going on here. Because,  you did not ask it to do
> that, but the fact that it did it anyway indicates it clearly understands
> what the purpose of a function is.
>
> Quite weird for me to comprehend how it knows that. Unless of course, you
> were somehow more specific than your examples illustrate.
>
> Mark
>
> > On 14 Jan 2023, at 3:22 am, Geoff Canyon via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > So just now I put this in to chatgpt:
> >
> > "fizz bin" is a program that counts from 1 to 100, replacing every number
> > divisible by 5 with "fizz" and every number divisible by 7 with "bin";
> and
> > numbers divisible by both 5 and 7 with "fizz bin". Write code in the
> > programming language livecode to execute "fizz bin"
> >
> > This is what ChatGPT responded with:
> >
> > repeat with x = 1 to 100
> >if x mod 5 = 0 and x mod 7 = 0 then
> >put "fizz bin"
> >else if x mod 5 = 0 then
> >put "fizz"
> >else if x mod 7 = 0 then
> >put "bin"
> >else
> >put x
> >end if
> > end repeat
> >
> > That works as-is, but obviously the results fly by in the message box.
> So I
> > put a field and a button on a card, and edited to this, and it works
> > perfectly:
> >
> > on mouseUp
> >   repeat with x = 1 to 100
> >  if x mod 5 = 0 and x mod 7 = 0 then
> > put "fizz bin" & cr after fld 1
> >  else if x mod 5 = 0 then
> > put "fizz" & cr after fld 1
> >  else if x mod 7 = 0 then
> > put "bin" & cr after fld 1
> >  else
> > put x & cr after fld 1
> >  end if
> >   end repeat
> > end mouseUp
> >
> > Then as I was typing this email I realized I was potentially selling
> > chatgpt short, so I put this in:
> >
> > Modify that code so it works as an "on mouseUp" handler in a button, and
> > concatenates the results on individual lines, and puts the final result
> > into the field "display"
> >
> > And it output this:
> >
> >
> > on mouseUp
> >   put "" into fizzbin
> >   repeat with x = 1 to 100
> >  if x mod 5 = 0 and x mod 7 = 0 then
> >  put "fizz bin" & return after fizzbin
> >  else if x mod 5 = 0 then
> >  put "fizz" & return after fizzbin
> >  else if x mod 7 = 0 then
> >  put "bin" & return after fizzbin
> >  else
> >  put x & return after fizzbin
> >  end if
> >   end repeat
> >   put fizzbin into field "display"
> > end mouseUp
> >
> > And it followed that with instructions:
> >
> > This code uses the "on mouseUp" handler to execute the script when the
> > button is clicked. The results are concatenated and separated by a new
> line
> > using the "& return" operator after each output. The final result is
> placed
> > into a field with the name "display" using the "put" command.
> >
> > I'll save you the trouble: that code executes perfectly right out of the
> > box, with no errors, and of 

Re: Training the AI to write better LiveCode

2023-01-14 Thread Kaveh via use-livecode
Quite incredible!

It might be that LiveCode's simple syntax is best suited to ChatGPT.

On Sat, 14 Jan 2023 at 03:24, Geoff Canyon via use-livecode <
use-livecode@lists.runrev.com> wrote:

> So just now I put this in to chatgpt:
>
> "fizz bin" is a program that counts from 1 to 100, replacing every number
> divisible by 5 with "fizz" and every number divisible by 7 with "bin"; and
> numbers divisible by both 5 and 7 with "fizz bin". Write code in the
> programming language livecode to execute "fizz bin"
>
> This is what ChatGPT responded with:
>
> repeat with x = 1 to 100
> if x mod 5 = 0 and x mod 7 = 0 then
> put "fizz bin"
> else if x mod 5 = 0 then
> put "fizz"
> else if x mod 7 = 0 then
> put "bin"
> else
> put x
> end if
> end repeat
>
> That works as-is, but obviously the results fly by in the message box. So I
> put a field and a button on a card, and edited to this, and it works
> perfectly:
>
> on mouseUp
>repeat with x = 1 to 100
>   if x mod 5 = 0 and x mod 7 = 0 then
>  put "fizz bin" & cr after fld 1
>   else if x mod 5 = 0 then
>  put "fizz" & cr after fld 1
>   else if x mod 7 = 0 then
>  put "bin" & cr after fld 1
>   else
>  put x & cr after fld 1
>   end if
>end repeat
> end mouseUp
>
> Then as I was typing this email I realized I was potentially selling
> chatgpt short, so I put this in:
>
> Modify that code so it works as an "on mouseUp" handler in a button, and
> concatenates the results on individual lines, and puts the final result
> into the field "display"
>
> And it output this:
>
>
> on mouseUp
>put "" into fizzbin
>repeat with x = 1 to 100
>   if x mod 5 = 0 and x mod 7 = 0 then
>   put "fizz bin" & return after fizzbin
>   else if x mod 5 = 0 then
>   put "fizz" & return after fizzbin
>   else if x mod 7 = 0 then
>   put "bin" & return after fizzbin
>   else
>   put x & return after fizzbin
>   end if
>end repeat
>put fizzbin into field "display"
> end mouseUp
>
> And it followed that with instructions:
>
> This code uses the "on mouseUp" handler to execute the script when the
> button is clicked. The results are concatenated and separated by a new line
> using the "& return" operator after each output. The final result is placed
> into a field with the name "display" using the "put" command.
>
> I'll save you the trouble: that code executes perfectly right out of the
> box, with no errors, and of course even though I didn't ask it to, it uses
> a variable to store the intermediate values, saving the field update for
> the end.
>
> If I were writing it, I'd probably do something like
>
> on mouseUp
>put "" into fizzbin
>repeat with x = 1 to 100
>   if x mod 5 = 0 then put "fizz " after fizzbin
>   if x mod 7 = 0 then put "bin " after fizzbin
>   if char -1 of fizzbin is space
>   then put return into char -1 of fizzbin
>   else put x & return after fizzbin
>end repeat
>put fizzbin into field "display"
> end mouseUp
>
> That might be a bit faster, but probably not as clear.
>
> Finally, I gave it the input:
>
> Now rewrite the code to be a function named "fizzbin" that takes an
> argument "n", repeats with 1 to n, and returns the results.
>
> function fizzbin n
>put "" into fizzbin
>repeat with x = 1 to n
>   if x mod 5 = 0 and x mod 7 = 0 then
>   put "fizz bin" & return after fizzbin
>   else if x mod 5 = 0 then
>   put "fizz" & return after fizzbin
>   else if x mod 7 = 0 then
>   put "bin" & return after fizzbin
>   else
>   put x & return after fizzbin
>   end if
>end repeat
>return fizzbin
> end fizzbin
>
> This works perfectly, and chat gpt also documents its answer:
>
> This code defines a function named "fizzbin" which takes an argument "n"
> that determines the range of the repeat loop. The function builds the
> result string in a variable "fizzbin" and return the final result. The
> calling script can then use the returned value for further processing or
> for displaying in a field.
>
> Grammatical issue notwithstanding, that's good documentation.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID
 ● @kaveh1000@mastodon.social

*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to 

Re: RegEx to convert standard date to sql date

2022-10-01 Thread Kaveh via use-livecode
Search for
(\d\d)\/(\d\d)\/(\d\d\d\d)
replace with
\3\1\2

See here 

On Fri, 30 Sept 2022 at 23:46, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Well it's like this. I am working in a document management system, and
> when I capture a date, I want to convert it to an sql date. I am not
> working in Livecode for this.
>
> Bob S
>
>
> > On Sep 30, 2022, at 10:38 , Jacques Clavel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Why not :
> > set itemdel to "/"
> > get tDate
> > put item 3 of it & item 1 of it & item 2 of it into tSql
> >
> > JC
> >
> > Le ven. 30 sept. 2022 à 19:13, Bob Sneidar via use-livecode <
> > use-livecode@lists.runrev.com> a écrit :
> >
> >> I'm trying to convert a date format like mm/dd/ to an sql date
> format
> >> mmdd. Any ideas? Nothing I found on the interwebs seems to work.
> >>
> >> Bob S
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >
> >
> > --
> > Jacques Clavel
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: MegaBundle whatnot

2022-07-09 Thread Kaveh via use-livecode
Why does LiveCode make the licenses so complicated? I try to understand
from time to time so I can repurchase, then give up...

On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Mark,
> What I forgot.
>
> I assume you have a current subscription, right?
> So why do you not try a newer LC release; one of the new editions without
> Indy and business in the name? Anything higher than 9.63 should do.
>
> Regards
> Matthias
>
> Von meinem iPhone gesendet
>
> > Am 08.07.2022 um 21:01 schrieb matthias_livecode_150...@m-r-d.de:
> >
> > Mark,
> >
> > that seems to be a problem with Indy and Business licenses. I can
> reproduce it here with an Indy license. Seems, the Enh.Pack needs to be
> modified a little bit.;)
> >
> > As you are on digest mode and i do not know when you read this, I've
> filed a bug already to speed it up a little bit.
> >
> > https://quality.livecode.com/show_bug.cgi?id=23799
> >
> > Maybe you want to add yourself to the CC list.
> >
> > Regards,
> > Matthias
> >
> >
> >> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode <
> use-livecode@lists.runrev.com>:
> >>
> >> I went ahead and purchased the megabundle, mostly for the LC
> Enhancement piece. Got that download and clicked the install widgets and
> the widgets all show “unlicensed.” Hmm, what?
> >>
> >> Tried to re-license and for some reason I only see my business license
> as an option (also have the old commercial license whatever that maps to
> now). So, np figure it out later, selected business license and LC starts
> but the enhancements still show unlicensed. Is there something manual I’m
> missing?
> >>
> >> TIA,
> >> Mark (on digest mode)
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: regex backreferences

2022-01-14 Thread Kaveh via use-livecode
Hi all

I emailed Thierry on 23 Dec and I have had no response. It looks like his last
post
<https://forums.livecode.com/viewtopic.php?f=9=36139=207519#p207519> on
the Forum was in July 2021.

His software for backreferences <https://sunny-tdz.com/livecode/sunnyrex> works
beautifully. It is closed source and commercial. I purchased it and used it
successfully. He also provided good support.

Precisely because I could not have my stacks dependent on proprietary
software, I stopped using his sunnYrex program and started implementing
backreferences myself. it is not an easy task and I even wonder if an
efficient method is possible using LiveCode scripting.

But I have made a start and if anyone is interested I am happy to
collaborate.

The ideal would be if LiveCode could implement this. The feature request
ticket is here <https://quality.livecode.com/show_bug.cgi?id=21534>.

Regards
Kaveh

On Wed, 15 Dec 2021 at 16:40, Kaveh 
wrote:

> It's two years since I have been in contact, but this is the email I had:
>
> th.do...@sunny-tdz.com
>
> Regards
> Kaveh
>
> On Wed, 15 Dec 2021 at 16:37, Douglas A. Ruisaard via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> None of the links to acquire nor contact Thierry on his site (<
>> https://sunny-tdz.com/livecode/sunnyrex>) work.  They just hang
>> indefinitely... but the web site, itself, appears to be functrional.
>>
>> Can anyone provide an alternative means to contact this developer?
>>
>> Douglas Ruisaard
>>
>> Trilogy Software
>>   (250) 573-3935
>>
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
>> Behalf Of Devin Asay via use-livecode
>> Sent: Wednesday, December 15, 2021 7:54 AM
>> To: How to use LiveCode
>> Cc: Devin Asay
>> Subject: Re: regex backreferences
>>
>> Thanks for confirming, Jacque and Kaveh. I figured that was the case. I
>> can stop beating my head against it now!
>>
>> Now for a trip to workaround land!
>>
>> - Devin
>>
>> On Dec 15, 2021, at 2:46 AM, Kaveh via use-livecode <
>> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>>
>> wrote:
>>
>> This is a major shortcoming and I have wanted this for years. Thierry has
>> filled the gap with his excellent SunnyRex library
>> <https://sunny-tdz.com/livecode/sunnyrex>. I have used it successfully, I
>> recommend it, and it works well. He has also supported me well after I
>> purchased SunnyRex. But it is a proprietary dependency and that is
>> something at the back of my mind.
>>
>> It would be great if LiveCode could add this feature. Or perhaps come to
>> an
>> agreement with Thierry so that we reduce dependencies.
>>
>> Regards
>> Kaveh
>>
>> On Wed, 15 Dec 2021 at 03:42, J. Landman Gay via use-livecode <
>> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>>
>> wrote:
>>
>> I wish it did, but replaceText doesn't support back references. The
>> parameters at the end are treated as literals, whether as actual quoted
>> literals or variables containing a value.
>>
>> If there isn't a feature request for it, there should be.
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com> jac...@hyperactivesw.com>
>> HyperActive Software | http://www.hyperactivesw.com
>> On December 14, 2021 6:03:12 PM Devin Asay via use-livecode
>> mailto:use-livecode@lists.runrev.com>>
>> wrote:
>>
>> Hi all,
>>
>> Does the replaceText() function allow the use of backreferences to
>> retain
>> groupings of text between matches. For example, if I have some text like
>> this:
>>
>> Good stuff here.
>>
>> I want to end up something like this:
>>
>> Good stuff here.”
>>
>> In BBedit I can search for (.*) and
>> replace it with \1 and it preserves the run of text designated
>> by
>> parentheses.
>> (I know, I can get more fancy on matching the runs of html tags, but I’m
>> mainly interested in retaining the text, not in regex madness.)
>>
>> In LC this does not work:
>>
>>  put replaceText(myText,">  style=“cruft”>(.*)”,”\1”) into myText
>>
>> I just end up with \1, when I want Good stuff here.
>>
>> Can replaceText even do this?
>>
>> - Devin
>>
>>
>> Devin Asay
>> Office of Digital Humanities
>> Brigham Young University
>>
>> ___
>> use-livecode mailing list
>> use-livec

Re: Communication with future you with a message board

2021-12-22 Thread Kaveh via use-livecode
I have done exactly the same thing several times where my past self has
been the only one asking exactly the question I need. But this is not
limited to LiveCode forums. Yesterday I was scratching my head regarding a
regex pattern. I was overjoyed when I found someone asking precisely the
question I needed around 2 years back on StackExchange. It was my former
self!

https://stackoverflow.com/questions/60025513/regex-to-extract-lookbehind-and-lookahead-from-a-regex-pattern

On Wed, 22 Dec 2021 at 17:42, Martin Koob via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi all
>
> I have been reading Alex Hughson’s thread "New user” renamed "Serial
> Communication with an I/O board (New user)” by Curry Kenworthy to make it
> easier for future users to find.
>
> It makes me think of something that happened a few times with me.  I am
> trying to do something in LiveCode and I come up against a blocker.  I
> start searching the use-livecode list, the LiveCode Forums, and also
> general web searches.  Finally I find my answer — exactly what I wanted.
> Then I look at the author asking the original question or answering…
> Martin Koob.
> 臘‍♂️
>
> So I am curious — am I the only one whose mind is going or have others run
> this mental recursive documentation loop?
>
> Anyway  now when I am typing a question or a suggested answer I think I
> should put the salutation “Dear Future me.”.  In any case once the problem
> is solved I do a final email summarizing what the final solution was and I
> do make sure there are some good keywords in the text that I would probably
> search for in the future when I have forgotten ever even working on this
> problem this let alone how to solve it.
>
> Martin Koob
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: regex backreferences

2021-12-17 Thread Kaveh via use-livecode
Hah. I read my own comment without checking the poster and thought this guy
is a bit pushy but let's hope he succeeds! It really is a fundamental
limitation that will allow so much more to be done in LiveCode, including a
really good interactive tutorial on regex.

Regards
Kaveh

On Fri, 17 Dec 2021 at 12:49, Ben Rubinstein  wrote:

> Hi Kaveh,
>
> Thanks, but actually it wasn't me who made the original report - that was
> Bart
> Voorzanger. And you added a useful comment to it 18 months ago, before I
> found it!
>
> best,
>
> Ben
>
>
> On 17/12/2021 11:41, Kaveh wrote:
> > Great to know this is already in the wish list, Ben and thanks for
> adding it.
> > Anything we can do to support this request and expedite it?
> >
> > On Fri, 17 Dec 2021 at 11:35, Ben Rubinstein via use-livecode
> > mailto:use-livecode@lists.runrev.com>>
> wrote:
> >
> >
> > On 15/12/2021 03:41, J. Landman Gay via use-livecode wrote:
> >  > If there isn't a feature request for it, there should be.
> >
> > https://quality.livecode.com/show_bug.cgi?id=21534
> > 
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com 
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> > 
> >
> >
> >
> > --
> > Kaveh Bazargan PhD
> > Director
> > River Valley Technologies  ● Twitter
> >  ● LinkedIn
> > ● ORCID
> > 
> > *Accelerating the Communication of Research*
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: regex backreferences

2021-12-17 Thread Kaveh via use-livecode
Great to know this is already in the wish list, Ben and thanks for adding
it. Anything we can do to support this request and expedite it?

On Fri, 17 Dec 2021 at 11:35, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> On 15/12/2021 03:41, J. Landman Gay via use-livecode wrote:
> > If there isn't a feature request for it, there should be.
>
> https://quality.livecode.com/show_bug.cgi?id=21534
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: regex backreferences

2021-12-15 Thread Kaveh via use-livecode
It's two years since I have been in contact, but this is the email I had:

th.do...@sunny-tdz.com

Regards
Kaveh

On Wed, 15 Dec 2021 at 16:37, Douglas A. Ruisaard via use-livecode <
use-livecode@lists.runrev.com> wrote:

> None of the links to acquire nor contact Thierry on his site (<
> https://sunny-tdz.com/livecode/sunnyrex>) work.  They just hang
> indefinitely... but the web site, itself, appears to be functrional.
>
> Can anyone provide an alternative means to contact this developer?
>
> Douglas Ruisaard
>
> Trilogy Software
>   (250) 573-3935
>
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
> Behalf Of Devin Asay via use-livecode
> Sent: Wednesday, December 15, 2021 7:54 AM
> To: How to use LiveCode
> Cc: Devin Asay
> Subject: Re: regex backreferences
>
> Thanks for confirming, Jacque and Kaveh. I figured that was the case. I
> can stop beating my head against it now!
>
> Now for a trip to workaround land!
>
> - Devin
>
> On Dec 15, 2021, at 2:46 AM, Kaveh via use-livecode <
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>>
> wrote:
>
> This is a major shortcoming and I have wanted this for years. Thierry has
> filled the gap with his excellent SunnyRex library
> <https://sunny-tdz.com/livecode/sunnyrex>. I have used it successfully, I
> recommend it, and it works well. He has also supported me well after I
> purchased SunnyRex. But it is a proprietary dependency and that is
> something at the back of my mind.
>
> It would be great if LiveCode could add this feature. Or perhaps come to an
> agreement with Thierry so that we reduce dependencies.
>
> Regards
> Kaveh
>
> On Wed, 15 Dec 2021 at 03:42, J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>>
> wrote:
>
> I wish it did, but replaceText doesn't support back references. The
> parameters at the end are treated as literals, whether as actual quoted
> literals or variables containing a value.
>
> If there isn't a feature request for it, there should be.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com jac...@hyperactivesw.com>
> HyperActive Software | http://www.hyperactivesw.com
> On December 14, 2021 6:03:12 PM Devin Asay via use-livecode
> mailto:use-livecode@lists.runrev.com>>
> wrote:
>
> Hi all,
>
> Does the replaceText() function allow the use of backreferences to
> retain
> groupings of text between matches. For example, if I have some text like
> this:
>
> Good stuff here.
>
> I want to end up something like this:
>
> Good stuff here.”
>
> In BBedit I can search for (.*) and
> replace it with \1 and it preserves the run of text designated
> by
> parentheses.
> (I know, I can get more fancy on matching the runs of html tags, but I’m
> mainly interested in retaining the text, not in regex madness.)
>
> In LC this does not work:
>
>  put replaceText(myText,"  style=“cruft”>(.*)”,”\1”) into myText
>
> I just end up with \1, when I want Good stuff here.
>
> Can replaceText even do this?
>
> - Devin
>
>
> Devin Asay
> Office of Digital Humanities
> Brigham Young University
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> --
> Kaveh Bazargan PhD
> Director
> River Valley Technologies <http://rivervalley.io> ● Twitter
> <https://twitter.com/rivervalley1000> ● LinkedIn
> <https://www.linkedin.com/in/bazargankaveh/> ● ORCID
> <https://orcid.org/-0002-1414-9098>
> *Accelerating the Communication of Research*
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> Devin Asay
> Office of Digital Humanities
> Brigham Young University
>
> ___
> use-livecode mailing list
>

Re: regex backreferences

2021-12-15 Thread Kaveh via use-livecode
This is a major shortcoming and I have wanted this for years. Thierry has
filled the gap with his excellent SunnyRex library
. I have used it successfully, I
recommend it, and it works well. He has also supported me well after I
purchased SunnyRex. But it is a proprietary dependency and that is
something at the back of my mind.

It would be great if LiveCode could add this feature. Or perhaps come to an
agreement with Thierry so that we reduce dependencies.

Regards
Kaveh

On Wed, 15 Dec 2021 at 03:42, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I wish it did, but replaceText doesn't support back references. The
> parameters at the end are treated as literals, whether as actual quoted
> literals or variables containing a value.
>
> If there isn't a feature request for it, there should be.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On December 14, 2021 6:03:12 PM Devin Asay via use-livecode
>  wrote:
>
> > Hi all,
> >
> > Does the replaceText() function allow the use of backreferences to
> retain
> > groupings of text between matches. For example, if I have some text like
> this:
> >
> > Good stuff here.
> >
> > I want to end up something like this:
> >
> > Good stuff here.”
> >
> > In BBedit I can search for (.*) and
> > replace it with \1 and it preserves the run of text designated
> by
> > parentheses.
> > (I know, I can get more fancy on matching the runs of html tags, but I’m
> > mainly interested in retaining the text, not in regex madness.)
> >
> > In LC this does not work:
> >
> >   put replaceText(myText," >   style=“cruft”>(.*)”,”\1”) into myText
> >
> > I just end up with \1, when I want Good stuff here.
> >
> > Can replaceText even do this?
> >
> > - Devin
> >
> >
> > Devin Asay
> > Office of Digital Humanities
> > Brigham Young University
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Licensing model change

2021-09-01 Thread Kaveh via use-livecode
but OpenOffice is not!

On Wed, 1 Sept 2021 at 09:15, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> LibreOffice is alive and kicking.
>
> On Wed, 1 Sep 2021 09:48 David Wood via use-livecode, <
> use-livecode@lists.runrev.com> wrote:
>
> > > LiveCode is magical. (From a beta HyperCard user!)
> >
> >
> > Gosh! I was also a Hypercard user. But a beta Hypercard user! WOW!
> >
> > Dave
> >
> >
> >
> > >
> > > On Wed, 1 Sept 2021 at 01:04, Bob Sneidar via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > >
> > >> I honestly never quite saw how offering a free version alongside
> > >> commercial versions was going to fly. People need to eat, and if you
> > give
> > >> something away for free, people will simply not pay for it.
> > >>
> > >> I did the free version for a couple years, mainly because what I
> create
> > >> helps almost exclusively myself, and I do not sell anything. I am on
> > Indy
> > >> for a couple years now because I feel bad about using the software for
> > >> free, and I feel like I need to contribute to the "cause", which is
> not
> > >> purely altruistic by the way. The loss of Livecode would pretty much
> > mean
> > >> the end of my development hobby.
> > >>
> > >> Overall I welcome this new approach. If you are using LC for free,
> > please
> > >> consider getting on a subscription, especially if you develop
> regularly.
> > >>
> > >> Bob S
> > >>
> > >>
> > >>> On Aug 31, 2021, at 09:16 , Mike Kerner via use-livecode <
> > >> use-livecode@lists.runrev.com> wrote:
> > >>>
> > >>> I just read and watched Kevin's announcement about LC licensing.
> > >>> The value for us in the OSS license was simply a greater level of
> > >> assurance
> > >>> that there would be longevity in the event that LC the company
> failed,
> > as
> > >>> the source was still there for someone else to pick up. I think
> that's
> > >> how
> > >>> MC -> RR.
> > >>> So I am disappointed that the code will not be out in the open in the
> > >> event
> > >>> of a business failure, however, I'm also respectful of the need for
> > more
> > >>> revenue.
> > >>> I will leave it to others to discuss the failure of LC to deliver
> x,y,z
> > >> and
> > >>> how that plays into the situation.
> > >>> I am also not privy to a recent P/L, so I am in a bad position to
> opine
> > >> on
> > >>> what they should do or prioritize.
> > >>>
> > >>> --
> > >>> On the first day, God created the heavens and the Earth
> > >>> On the second day, God created the oceans.
> > >>> On the third day, God put the animals on hold for a few hours,
> > >>>  and did a little diving.
> > >>> And God said, "This is good."
> > >>> ___
> > >>> use-livecode mailing list
> > >>> use-livecode@lists.runrev.com
> > >>> Please visit this url to subscribe, unsubscribe and manage your
> > >> subscription preferences:
> > >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >>
> > >>
> > >> ___
> > >> use-livecode mailing list
> > >> use-livecode@lists.runrev.com
> > >> Please visit this url to subscribe, unsubscribe and manage your
> > >> subscription preferences:
> > >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >>
> > >
> > >
> > > --
> > > Kaveh Bazargan PhD
> > > Director
> > > River Valley Technologies  ●
> > Twitter
> > >  ● LinkedIn
> > >  ● ORCID
> > > 
> > > *Accelerating the Communication of Research*
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Licensing model change

2021-09-01 Thread Kaveh via use-livecode
For what it's worth, I am also an open source skeptic. Look what happened
to Open Office. It died because no one wanted to work on it.

But please simplify the pricing. And I am not a fan of subscription prices
either. Let me buy and upgrade if I want when a new version is out.

LiveCode is magical. (From a beta HyperCard user!)

On Wed, 1 Sept 2021 at 01:04, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I honestly never quite saw how offering a free version alongside
> commercial versions was going to fly. People need to eat, and if you give
> something away for free, people will simply not pay for it.
>
> I did the free version for a couple years, mainly because what I create
> helps almost exclusively myself, and I do not sell anything. I am on Indy
> for a couple years now because I feel bad about using the software for
> free, and I feel like I need to contribute to the "cause", which is not
> purely altruistic by the way. The loss of Livecode would pretty much mean
> the end of my development hobby.
>
> Overall I welcome this new approach. If you are using LC for free, please
> consider getting on a subscription, especially if you develop regularly.
>
> Bob S
>
>
> > On Aug 31, 2021, at 09:16 , Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I just read and watched Kevin's announcement about LC licensing.
> > The value for us in the OSS license was simply a greater level of
> assurance
> > that there would be longevity in the event that LC the company failed, as
> > the source was still there for someone else to pick up. I think that's
> how
> > MC -> RR.
> > So I am disappointed that the code will not be out in the open in the
> event
> > of a business failure, however, I'm also respectful of the need for more
> > revenue.
> > I will leave it to others to discuss the failure of LC to deliver x,y,z
> and
> > how that plays into the situation.
> > I am also not privy to a recent P/L, so I am in a bad position to opine
> on
> > what they should do or prioritize.
> >
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> >   and did a little diving.
> > And God said, "This is good."
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LiveCode community edition is gone

2021-08-31 Thread Kaveh via use-livecode
OK. Price per month:

   - Starter plan Mac – £7.99
   - Starter plan Windows – £7.99
   - Starter Mac + Windows – £24.99

What am I missing?

On Tue, 31 Aug 2021 at 18:03, Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Don't forget the discount for however long that's good for
>
> On Tue, Aug 31, 2021 at 1:00 PM Kaveh via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Now I have to work out the new maze of pricing!
> >
> > On Tue, 31 Aug 2021 at 17:07, Andre Garzia via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > here is the announcement: https://livecode.org/
> > >
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> >
> >
> > --
> > Kaveh Bazargan PhD
> > Director
> > River Valley Technologies <http://rivervalleytechnologies.com/> ●
> Twitter
> > <https://twitter.com/rivervalley1000> ● LinkedIn
> > <https://www.linkedin.com/in/bazargankaveh/> ● ORCID
> > <https://orcid.org/-0002-1414-9098>
> > *Accelerating the Communication of Research*
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalleytechnologies.com/> ● Twitter
<https://twitter.com/rivervalley1000> ● LinkedIn
<https://www.linkedin.com/in/bazargankaveh/> ● ORCID
<https://orcid.org/-0002-1414-9098>
*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LiveCode community edition is gone

2021-08-31 Thread Kaveh via use-livecode
Now I have to work out the new maze of pricing!

On Tue, 31 Aug 2021 at 17:07, Andre Garzia via use-livecode <
use-livecode@lists.runrev.com> wrote:

> here is the announcement: https://livecode.org/
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode