Livecode Login stuck pinging Facebook?

2024-05-03 Thread David Bovill via use-livecode
I can't login to my account and register the new dp8 - or login via the web
site. Something Livecode server end?
___
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: Help converting python one-liner...

2024-04-24 Thread David Bovill via use-livecode
I need to put encodeImageData into json (which is utf-8) and then post it
to the api. I'm not sure what aspects of base64 encoding would not be utf8
compatible... seem to remember there are some quirks there to be aware of.
The python code does  the decode("utf-8") step at the end - so I guess
there is some issue with raw base64 encoding in json?

On Wed, 24 Apr 2024 at 19:26, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 4/24/2024 1:43 PM, David Bovill via use-livecode wrote:
> > I'm trying to base64 encode an image and include it into a json file to
> > post to an api. The python code that accomplishes this is:
> >
> > image1_data =
> > base64.b64encode(httpx.get(image1_url).content).decode("utf-8")
> >
> > When I try to follow the logic in Livecode I get:
> >
> > put url imageUrl into sImage
> > put base64Encode (sImage) into base64Image
> > put textDecode (base64Image, "UTF-8") into encodedImageData
> >
> > However the api complains that the image is not encoded properly. Adding
> or
> > removing the "textDecode" step does not help. Any thoughts?
> >
>
> This is just a guess, but I thing your last line needs to be:
>
> put textEncode(base64Image,"UTF-8") into encodedImageData
>
> textDecode in Livecode converts from the format (UTF-8) to Livecode's
> 16bit internal unicode
>
> textEncode converts from livecode's internal 16bit unicode to the
> indicated format (UTF-8).
> ___
> 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


Help converting python one-liner...

2024-04-24 Thread David Bovill via use-livecode
I'm trying to base64 encode an image and include it into a json file to
post to an api. The python code that accomplishes this is:

image1_data =
base64.b64encode(httpx.get(image1_url).content).decode("utf-8")

When I try to follow the logic in Livecode I get:

put url imageUrl into sImage
put base64Encode (sImage) into base64Image
put textDecode (base64Image, "UTF-8") into encodedImageData

However the api complains that the image is not encoded properly. Adding or
removing the "textDecode" step does not help. Any thoughts?
___
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: Enhanced HTTPD - native HTTP 1.1 Livecode Socket Server

2024-03-08 Thread David Bovill via use-livecode
Hi Richard - checking in again :)

Yes I worked a lot with decentralised protocols and communities, and was
looking to integrate those technologies with Livecode. That work got set
back when Livecode pivoted away from FOSS. I believe there are still some
approaches that can work but would probably be best done off list in a
video call?

On Wed, 28 Feb 2024 at 17:56, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> FWIW I haven't heard from David, but with the economic numbers off to a
> good start this year I suspect he's just been as busy as most I know.
>
> I know of at least one other LC fan with an interest in decentralized
> protocols, but I'm not sure how far he's gotten with his implementations.
> I've mentioned LC in some of those circles, but those communities tend to
> make and use FOSS tools, so the conversation is usually very short.
>
> Richard Gaskin
> FourthWorld.com
>
>
>
> On February 28, 2024 at 9:00 AM, Mike Kerner wrote:
> >
> > just pinging to see if anything more has happened on this
> >
> > and the how list is really quiet
> >
> > On Tue, Feb 6, 2024 at 11:09?PM ambassador--- via use-livecode <
> >
> > use-livecode@lists.runrev.com> wrote:
> >
> > > David Bovill wrote:
> > >
> > >  I've been working for a while on a native server written in Livecode
> > >  using sockets. I feel it is definitely something that is sorely needed
> > >  - but to do it properly is more work that I initially thought. I need
> > >  to add HTTP 206 partial content support -
> > >  https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206. I
> expect
> > >  there to be other things that will need to be added.
> > >  Is anyone interested / need this? Or does anyone already have
> something
> > >  they use?
> > >
> > MC shipped with a simple HTTPd example included, and many years ago back
> >
> >  when Pierre was still active here I dusted it off to add support for
> HTTP
> >  1.1 so it would work with modern browsers:
> >  https://fourthworld.net/lc/mchttpd-4W.zip
> >
> > It's been years since I touched it, and IIRC the only other change I
> made
> > was to use callbacks for both ends of the network I/O (for some reason
> > Raney had used callbacks only on one side, tho I can't recall if his was
> on
> > the write or read end). Callbacks for net I/O help a lot.
> >
> > If you're already far enough down the road to be thinking of 206 errors,
> > there's likely nothing here you haven't already written. But as an
> example
> > (slightly updated) of the sort of thing that used to ship with old
> versions
> > to encourage exploration of network apps, it may be a fun trip down
> memory
> > lane.
> >
> > A question, if interesting to answer: one of the reasons I set this
> aside
> > was the beginning of a process of moving away from my own homegrown
> tools
> > for generic commodities like socket servers. Apache and Node cover most
> of
> > what I've needed since, and I don't have to maintain them, so I can focus
> > on the stuff specific to my app. What are you working on these days? I
> > stumbled across your chat with Ward Cunningham in the Full Moon
> Happening
> > just a few months ago; good stuff. Curious if your interest in
> > decentralization is still a focus, and whether it also includes things
> like
> > IPSF and blockchains. Maybe offlist if it's not too LiveCodey is fine.
> >
> > Richard Gaskin
> > FourthWorld.com
>
> ___
> 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


Re: Enhanced HTTPD - native HTTP 1.1 Livecode Socket Server

2024-03-08 Thread David Bovill via use-livecode
Hi Mike and Richard, the progress I’ve made is along the lines that Richard
speaks to in the thread. I have added a little to the earlier work and
bundled socket based servers - mainly by making it easy to add and remove
logging with before and after handlers, and layers of back scripts that
allow you to add your own custom middleware.

There are a few things holding me back from plunging in further and
finishing the work. Firstly, as Richard says  still a way to go to add
things like HTTP 206 partial content support, and there are already robust
libraries in other languages out there - so the strategy of integrating
Livecode with one of these is also attractive given the amount of effort
required it’s a question in my head as too which route would be better
pursued.

I also have quite a nice integration with local node servers, which took
quite a lot of tweaking as simply using shell() didn’t cut it - but now
works well. However with this approach I don’t get the control I need from
the Livecode side.

There are also issues with socket requests and timeouts which would need to
be debugged and while that is not a problem in itself, the underlying
concern I’d have is that at the end of the process I’d find that the cause
was a Livecode bug and not something in my code. There would be little I
could do in that case other than hope and wait.

Funny you came across the Full Moon Happening event as I’m currently
working on a new version of that early experiment for March 25th this year
(a full moon, penumbral lunar eclipse and wikis birthday - should be fun.
If anyone’s in London this Friday March 15th, I’ll be doing an event at the
RSA in the afternoon and Newspeak House in the evening where we’ll go into
this in more detail.

On Wed, 28 Feb 2024 at 13:55, Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> just pinging to see if anything more has happened on this
> and the how list is really quiet
>
> On Tue, Feb 6, 2024 at 11:09 PM ambassador--- via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > David Bovill wrote:
> >
> > > I've been working for a while on a native server written in Livecode
> > > using sockets. I feel it is definitely something that is sorely needed
> > > - but to do it properly is more work that I initially thought. I need
> > > to add HTTP 206 partial content support -
> > > https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206. I expect
> > > there to be other things that will need to be added.
> > >
> > > Is anyone interested / need this? Or does anyone already have something
> > > they use?
> >
> >
> > MC shipped with a simple HTTPd example included, and many years ago back
> > when Pierre was still active here I dusted it off to add support for HTTP
> > 1.1 so it would work with modern browsers:
> >
> > https://fourthworld.net/lc/mchttpd-4W.zip
> >
> > It's been years since I touched it, and IIRC the only other change I made
> > was to use callbacks for both ends of the network I/O (for some reason
> > Raney had used callbacks only on one side, tho I can't recall if his was
> on
> > the write or read end). Callbacks for net I/O help a lot.
> >
> > If you're already far enough down the road to be thinking of 206 errors,
> > there's likely nothing here you haven't already written.  But as an
> example
> > (slightly updated) of the sort of thing that used to ship with old
> versions
> > to encourage exploration of network apps, it may be a fun trip down
> memory
> > lane.
> >
> >
> > A question, if interesting to answer: one of the reasons I set this aside
> > was the beginning of a process of moving away from my own homegrown tools
> > for generic commodities like socket servers.  Apache and Node cover most
> of
> > what I've needed since, and I don't have to maintain them, so I can focus
> > on the stuff specific to my app.  What are you working on these days? I
> > stumbled across your chat with Ward Cunningham in the Full Moon Happening
> > just a few months ago; good stuff. Curious if your interest in
> > decentralization is still a focus, and whether it also includes things
> like
> > IPSF and blockchains.  Maybe offlist if it's not too LiveCodey is fine.
> >
> >
> > Richard Gaskin
> > FourthWorld.com
> >
> > ___
> > 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:
> 

Re: Livecode Demo of two way javascript communication?

2024-02-13 Thread David Bovill via use-livecode
That's great - digging into the scripts and html - really useful to see a
simple demo like this!

On Wed, 7 Feb 2024 at 19:45, Andreas Bergendal 
wrote:

> I’ve added a source code download link at the bottom of the page:
> https://wheninspace.com/WebpageInteractionStack/
>
> The steps are rather simple:
> - Open the stack with LC10 and run the standalone builder with "Build for
> web" checked.
> - Replace the html file in the deployment folder (in this case
> ”WebpageInteractionStack.html”) with the index.html file included in the
> source code download.
> - Upload everything in the deployment folder (should be 7 files) to
> whatever server you use, and then go to that location with your web browser
> to launch the index.html file.
>
> The html file can of course be named whatever you like, but then you must
> include it in the url when accessing the site. By calling it index.html
> it suffices to include the parent level in the url (like I do above). But I
> guess y’all know this, I believe it's worked like that since the dawn of
> the internet… :)
>
>
> 5 feb. 2024 kl. 20:40 skrev David Bovill via use-livecode <
> use-livecode@lists.runrev.com>:
>
> Perfect - just what I was looking for. Can you share the stack, and the
> steps to saving / exporting the standalone?
>
> On Sat, 27 Jan 2024 at 17:50, Andreas Bergendal via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> OK, so here’s a quick proof of concept, with functions triggered from page
> to stack and from stack to page.
> It is not using postMessage, only 'standard’ javascript listeners. Works
> well on mobile too (at least iPhone).
>
> https://wheninspace.com/WebpageInteractionStack/
>
> If I find the time, it would be very interesting to try deploying two
> different stacks on the same page (is that even possible?), and then have
> them communicate with each other. Or have two stacks in two different
> pages, and have them communicate via postMessage calls…
>
>
> 26 jan. 2024 kl. 17:15 skrev David Bovill via use-livecode <
>
> use-livecode@lists.runrev.com>:
>
>
> The scenario would be events like resize, or a button click in the html
> page triggering a handler in the Livecode wasm export. The other way
>
> round
>
> would ve a Livecode handler in the exported wasm widget calling a
> javascriot function in the surrounding Web page.
>
> My understanding in other contexts is that you use the postMessage Web
>
> api
>
> for this type of thing -
>
>
> https://www.google.com/url?q=https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage=U=2ahUKEwiE5eCSufuDAxX7UkEAHbtmBvIQFnoECAoQAg=AOvVaw09QGMScP0-9YwJuHAC-sIE
>
>
> Apart from triggering handlers in both directions passing (json) data in
> both directions is needed.
>
> On Thu, 25 Jan 2024, 20:35 Andreas Bergendal via use-livecode, <
> use-livecode@lists.runrev.com> wrote:
>
> I’ve created some web deployments where the web page interacts with the
> stack e.g. in the sense that a change of the browser window rect
>
> triggers a
>
> resizeStack message in the stack.
>
> But I’m not sure if by bidirectional you mean that actions in the stack
> should also affect the web page in some way? Could you give an example
>
> of
>
> what you have in mind?
>
>
> 24 jan. 2024 kl. 12:47 skrev David Bovill via use-livecode <
>
> use-livecode@lists.runrev.com>:
>
>
> Is there a demo out there for simple bidirectional interaction between
>
> a
>
> web page and a recent stack exported as wasm? Anyone experimenting with
> this?
>
>
>
___
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: Enhanced HTTPD - native HTTP 1.1 Livecode Socket Server

2024-02-05 Thread David Bovill via use-livecode
For testing mobile apps in development? I'm using it for an electron-style
app, and may also use it for container based microservices.

On Tue, 6 Feb 2024 at 00:48, Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> i don't use lc as a server (but maybe i should think about it). i use it to
> write mobile apps, so i could use http sockets on the client side.
>
> On Mon, Feb 5, 2024 at 3:19 PM David Bovill via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > I've been working for a while on a native server written in Livecode
> using
> > sockets. I feel it is definitely something that is sorely needed - but to
> > do it properly is more work that I initially thought. I need to add HTTP
> > 206 partial content support -
> > https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206. I expect
> > there to be other things that will need to be added.
> >
> > Is anyone interested / need this? Or does anyone already have something
> > they use?
> > ___
> > 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
>
___
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: Mousedown in Application Menubar Messages

2024-02-05 Thread David Bovill via use-livecode
Thanks Paul - I'll check with 9.6.1 - I'm getting this behavior with10 dp7
on MacOS

On Mon, 5 Feb 2024 at 20:19, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I've not experienced any problems with the menubar group receiving a
> mouseDown message to adjust the menus based on context before they
> appear (LC versions up to 9.6.11 on macOS and Windows)
>
> A long time back, I did have an unnecessary  'wait 0 with messages' in
> my mouseDown handler and had instances where other messages fired before
> my mouseDown handler was done (or so it seemed).
>
>
> On 2/5/2024 3:07 PM, David Bovill via use-livecode wrote:
> > I'm having a difficult to track down issue with application menus I've
> > created using the Menu Builder tool - everything works but the
> "mouseDown"
> > message is not sent to the group - well sometimes it is sometimes it is
> not
> > :) I'm using "mousedown" to trigger dynamic formatting of the menus.
> Menupick
> > messages are sent fine.
> >
> > Has anyone had a similar experience - I feel it may be due to the detail
> of
> > how the menu-buttons are formatted in the group - but it might also be a
> > bug in dp7?
> > ___
> > 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


Enhanced HTTPD - native HTTP 1.1 Livecode Socket Server

2024-02-05 Thread David Bovill via use-livecode
I've been working for a while on a native server written in Livecode using
sockets. I feel it is definitely something that is sorely needed - but to
do it properly is more work that I initially thought. I need to add HTTP
206 partial content support -
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206. I expect
there to be other things that will need to be added.

Is anyone interested / need this? Or does anyone already have something
they use?
___
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


Mousedown in Application Menubar Messages

2024-02-05 Thread David Bovill via use-livecode
I'm having a difficult to track down issue with application menus I've
created using the Menu Builder tool - everything works but the "mouseDown"
message is not sent to the group - well sometimes it is sometimes it is not
:) I'm using "mousedown" to trigger dynamic formatting of the menus. Menupick
messages are sent fine.

Has anyone had a similar experience - I feel it may be due to the detail of
how the menu-buttons are formatted in the group - but it might also be a
bug in dp7?
___
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 Demo of two way javascript communication?

2024-02-05 Thread David Bovill via use-livecode
Perfect - just what I was looking for. Can you share the stack, and the
steps to saving / exporting the standalone?

On Sat, 27 Jan 2024 at 17:50, Andreas Bergendal via use-livecode <
use-livecode@lists.runrev.com> wrote:

> OK, so here’s a quick proof of concept, with functions triggered from page
> to stack and from stack to page.
> It is not using postMessage, only 'standard’ javascript listeners. Works
> well on mobile too (at least iPhone).
>
> https://wheninspace.com/WebpageInteractionStack/
>
> If I find the time, it would be very interesting to try deploying two
> different stacks on the same page (is that even possible?), and then have
> them communicate with each other. Or have two stacks in two different
> pages, and have them communicate via postMessage calls…
>
>
> > 26 jan. 2024 kl. 17:15 skrev David Bovill via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > The scenario would be events like resize, or a button click in the html
> > page triggering a handler in the Livecode wasm export. The other way
> round
> > would ve a Livecode handler in the exported wasm widget calling a
> > javascriot function in the surrounding Web page.
> >
> > My understanding in other contexts is that you use the postMessage Web
> api
> > for this type of thing -
> >
> https://www.google.com/url?q=https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage=U=2ahUKEwiE5eCSufuDAxX7UkEAHbtmBvIQFnoECAoQAg=AOvVaw09QGMScP0-9YwJuHAC-sIE
> >
> > Apart from triggering handlers in both directions passing (json) data in
> > both directions is needed.
> >
> > On Thu, 25 Jan 2024, 20:35 Andreas Bergendal via use-livecode, <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> I’ve created some web deployments where the web page interacts with the
> >> stack e.g. in the sense that a change of the browser window rect
> triggers a
> >> resizeStack message in the stack.
> >>
> >> But I’m not sure if by bidirectional you mean that actions in the stack
> >> should also affect the web page in some way? Could you give an example
> of
> >> what you have in mind?
> >>
> >>
> >>> 24 jan. 2024 kl. 12:47 skrev David Bovill via use-livecode <
> >> use-livecode@lists.runrev.com>:
> >>>
> >>> Is there a demo out there for simple bidirectional interaction between
> a
> >>> web page and a recent stack exported as wasm? Anyone experimenting with
> >>> this?
> >>
> >> ___
> >> 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
>
___
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 Demo of two way javascript communication?

2024-01-26 Thread David Bovill via use-livecode
The scenario would be events like resize, or a button click in the html
page triggering a handler in the Livecode wasm export. The other way round
would ve a Livecode handler in the exported wasm widget calling a
javascriot function in the surrounding Web page.

My understanding in other contexts is that you use the postMessage Web api
for this type of thing -
https://www.google.com/url?q=https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage=U=2ahUKEwiE5eCSufuDAxX7UkEAHbtmBvIQFnoECAoQAg=AOvVaw09QGMScP0-9YwJuHAC-sIE

Apart from triggering handlers in both directions passing (json) data in
both directions is needed.

On Thu, 25 Jan 2024, 20:35 Andreas Bergendal via use-livecode, <
use-livecode@lists.runrev.com> wrote:

> I’ve created some web deployments where the web page interacts with the
> stack e.g. in the sense that a change of the browser window rect triggers a
> resizeStack message in the stack.
>
> But I’m not sure if by bidirectional you mean that actions in the stack
> should also affect the web page in some way? Could you give an example of
> what you have in mind?
>
>
> > 24 jan. 2024 kl. 12:47 skrev David Bovill via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Is there a demo out there for simple bidirectional interaction between a
> > web page and a recent stack exported as wasm? Anyone experimenting with
> > this?
>
> ___
> 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


Livecode Demo of two way javascript communication?

2024-01-24 Thread David Bovill via use-livecode
Is there a demo out there for simple bidirectional interaction between a
web page and a recent stack exported as wasm? Anyone experimenting with
this?
___
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: Multipart form decode

2024-01-24 Thread David Bovill via use-livecode
Yes - I need a (standard) decoder. As far as I can tell we have a few
handlers in Livecode for encoding data for multipart form encoding - then
the Livecode server will do its magic and parse that making the rules
available - however there is no function to do the rfc7578
 decoding - at least that is
documented. We need this if we are coding our own server using the built in
sockets handling. I have a couple of hacks to extract uploaded images or
other files - but nothing robust or a general parser.

On Wed, 24 Jan 2024 at 02:51, Neville Smythe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> David: do you need a special decoder?
>
> I thought the multipart form handlers just broke up the sent data into
> user-defined small chunks, and the server was responsible for waiting for
> all the parts to be received and then re-assembling the data. From that
> point it is just a normal POST.
>
> Maybe I have misunderstood the question?
>
>
> Neville Smythe
>
>
>
>
> ___
> 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


Re: Multipart form decode

2024-01-23 Thread David Bovill via use-livecode
Hmm writing my own generic multipart form data parser seems quite a task
(and a security risk). Any suggestions?

On Mon, 22 Jan 2024 at 19:48, David Bovill  wrote:

> I see in the dictionary several functions related to multipart form
> encoding - but not decoding. Does anyone have a function that lets my
> decode form posts to the built in HTTP server.
>
___
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


Multipart form decode

2024-01-22 Thread David Bovill via use-livecode
I see in the dictionary several functions related to multipart form
encoding - but not decoding. Does anyone have a function that lets my
decode form posts to the built in HTTP server.
___
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: Preventing Browser Navigation

2023-11-29 Thread David Bovill via use-livecode
Finally I often get the following error:

LCB Error error evaluating javascript
Object View|Obeya|Studio
LCB File browser.lcb
LCB Line 1007

The javascript in question executes with the desired result - but the error
is thrown by Livecode presenting a dialogue. I can use the "Supress Errors"
menu option to prevent this, but wondering if its a bug?
___
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: Preventing Browser Navigation

2023-11-28 Thread David Bovill via use-livecode
So you should be able to prevent navigation on iOS using:

on browserLoadRequest pURL, pType
  -- iOS only
end browserLoadRequest

But that does not work with the browser widget. Also I don;t seem to be
able to respond to browser html / javascript events that seek to open a url
in a new browser tab. This means that displaying web sites that use this
functionality is not possible. Or is there a way? The following do not
respond to links in the html that open such tabs - in fact they don't seem
to be triggered:
on browserFrameDocumentLoadFailed pUrl, pError
   breakpoint
end browserFrameDocumentLoadFailed

on browserFrameDocumentLoadBegin pUrl
   breakpoint
end browserFrameDocumentLoadBegin

on browserDocumentLoadFailed pUrl, pError
   breakpoint
end browserDocumentLoadFailed

on browserUnhandledLoadRequest pUrl
   breakpoint
end browserUnhandledLoadRequest

These work, but are not useful for the purpose of blocking a load, or
responding to requests for open in a new tab events:

on browserNavigateBegin sUrl
   breakpoint
end browserNavigateBegin

on browserDocumentLoadBegin pUrl
  breakpoint
end browserDocumentLoadBegin




On Tue, 28 Nov 2023 at 17:43, David Bovill  wrote:

> Is there a way to prevent the desktop browser widget from navigating to a
> new url by blocking a message? I seem to remember it was possible but
> intercepting: browserNavigateBegin, browserDocumentLoadBegin messages do
> not prevent the navigation. I wish to process a url dropped on the page
> rather than navigate to it.
>
___
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


Preventing Browser Navigation

2023-11-28 Thread David Bovill via use-livecode
Is there a way to prevent the desktop browser widget from navigating to a
new url by blocking a message? I seem to remember it was possible but
intercepting: browserNavigateBegin, browserDocumentLoadBegin messages do
not prevent the navigation. I wish to process a url dropped on the page
rather than navigate to it.
___
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: Subtitle and the future of the Player control

2023-11-08 Thread David Bovill via use-livecode
Thanks Paul - my understanding is that Livecode are working on a new
version of the player that works with HTML5 deployment. I'm not sure if in
that scenario the current player will become a legacy control.

AFAIK there is no Livecode libraries out there for working with timed
sub-title tracks?

On Tue, 7 Nov 2023 at 12:37, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> There are a lot more details to really assess a best choice here (unless
> your questions is rhetorical).
>
> Is this a planned web app, desktop app (which platforms) or a mobile
> app? I assume from the javascript player comment that you are looking to
> build this as a web app? What video file formats do you need to support
> - just mpeg4 or other formats?
>
> On 11/7/2023 6:05 AM, David Bovill via use-livecode wrote:
> > I'm doing some coding around videos and transcripts. Before diving in I
> > thought I'd see if there is any existing code out there? I'm working on
> > creating transcripts from videos we shoot for a community project -
> > naturally using ai (whisper) to do that - but Livecode to edit the
> > transcript and make the final output interactive.
> >
> > I'd like to stick to SRT standards, and be able to display the text track
> > with the video playing and to click and interact with it under Livecode
> > control.
> >
> > Given the future of the video player seems to be more focussed on an
> HTML5
> > player - I'm wondering if it worth the effort of scripting this in
> Livecode
> > - or I should build on one of the opensource javascript players?
> > ___
> > 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


Subtitle and the future of the Player control

2023-11-07 Thread David Bovill via use-livecode
I'm doing some coding around videos and transcripts. Before diving in I
thought I'd see if there is any existing code out there? I'm working on
creating transcripts from videos we shoot for a community project -
naturally using ai (whisper) to do that - but Livecode to edit the
transcript and make the final output interactive.

I'd like to stick to SRT standards, and be able to display the text track
with the video playing and to click and interact with it under Livecode
control.

Given the future of the video player seems to be more focussed on an HTML5
player - I'm wondering if it worth the effort of scripting this in Livecode
- or I should build on one of the opensource javascript players?
___
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


Me and target of script widgets

2023-10-22 Thread David Bovill via use-livecode
Having my first go at script widgets. It appears that there is either an
issue (or it is a feature) with script widgets and "me"?

A handler like this:

*on* mouseUp

*## All references are to "inner" controls (ie the target) and not the
group*

*put* the short id of me into shortID

*put* the long id of the target into sName

*put* the long id of me into myID

*## Have to be explicit with messages*

*-- dispatch "menu_AskEdit" to me -- or the target does not work*

*dispatch* "menu_AskEdit" to this card with myID,shortID

*end* mouseUp

When inside a script only widget shows that would normally pass the long id
of the control clicked on within the group (script widget) with myID and
the short ID of the group (script widget) itself in shortID. However both
the target and me refer to the control and not the group / script widget.
It seems there is no easy way to find out a reference to "me" in a
script widget?

I've a lot of scripts that use "me" in behaviors for potential script
widgets - so looking for a short term and long term solution for this?
___
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: Media Keys - volume / play/pause/next...

2023-10-21 Thread David Bovill via use-livecode
>
>
> The media key events are sent. Several apps accept them, and you can
> customise what they do with https://github.com/pqrs-org/Karabiner-Elements
> which works robustly.
>
> Media key input from peripherals such as keyboards or earbuds typically
> adheres to the Human Interface Device (HID) standard
> <https://en.wikipedia.org/wiki/Human_interface_device#HID_standard>.
> Common media controls you might find include:
>
>- Play/Pause: Toggles between play and pause for media playback.
>- Stop: Stops the media playback.
>- Next Track: Advances to the next track or chapter.
>- Previous Track: Returns to the previous track or chapter.
>- Volume Up: Increases the volume.
>- Volume Down: Decreases the volume.
>- Mute: Mutes or unmutes the audio.
>
> The way earbuds communicate with devices can also depend on the specific
> connection protocol they use. Bluetooth headphones and earbuds use the 
> Audio/Video
> Remote Control Profile (AVRCP)
> <https://en.wikipedia.org/wiki/List_of_Bluetooth_profiles#Audio/Video_Remote_Control_Profile_(AVRCP)>
> to control playback (e.g., play, pause, volume control) on the paired
> device.
>


> On Sat, 21 Oct 2023 at 00:43, J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> If rawKeyDown/Up doesn't catch them then I assume the OS isn't sending the
> keycodes to apps.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On October 20, 2023 5:42:05 PM David Bovill via use-livecode
>  wrote:
>
> > Surprisingly difficult. There are a couple of apps that let you customize
> > play/pause interactions from the keyboard - but they dont work when sent
> > from other devices such as earbuds. Livecode does not seem to read these
> > events either
> >
> > On Fri, 20 Oct 2023 at 16:08, David Bovill 
> wrote:
> >
> >> Is there a way to trap for these keyboard events.
> >>
> >> Volume and Media Keys: In the HID standard, volume and media control
> keys
> >> often have specific usage IDs. For example:
> >>
> >>
> >>- 0xE9 is for volume up.
> >>- 0xEA is for volume down.
> >>- 0xE2 is for mute.
> >>- 0xCD is for play/pauseetc
> >>
> >>
> > ___
> > 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


Re: Mdiai Keys - volume / play/pause/next...

2023-10-21 Thread David Bovill via use-livecode
Thanks for noting that on Windows. Nothing is sent on MacOS - at least M2
Macbook Air.

I filed a report - please vote -
https://quality.livecode.com/show_bug.cgi?id=24375

On Sat, 21 Oct 2023 at 02:05, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> When I try on Windows 11 using Livecode 9.6.10 a rawKeyDown or rawkeyUp
> message, the media keys on my HP laptop all return 0 as the keyCode, so
> I think this is a bug of some sort that should be reported to the
> Livecode Quality Center https://quality.livecode.com/
>
> The keyDown or keyUp message does not get sent. the OS (Win11)
> apparently intercepts and raises/lowers/mutes the volume or play/pause
> as applicable.
>
>
> On 10/20/2023 11:08 AM, David Bovill via use-livecode wrote:
> > Is there a way to trap for these keyboard events.
> >
> > Volume and Media Keys: In the HID standard, volume and media control keys
> > often have specific usage IDs. For example:
> >
> >
> > - 0xE9 is for volume up.
> > - 0xEA is for volume down.
> > - 0xE2 is for mute.
> > - 0xCD is for play/pauseetc
> > ___
> > 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


Re: Media Keys - volume / play/pause/next...

2023-10-20 Thread David Bovill via use-livecode
Surprisingly difficult. There are a couple of apps that let you customize
play/pause interactions from the keyboard - but they dont work when sent
from other devices such as earbuds. Livecode does not seem to read these
events either

On Fri, 20 Oct 2023 at 16:08, David Bovill  wrote:

> Is there a way to trap for these keyboard events.
>
> Volume and Media Keys: In the HID standard, volume and media control keys
> often have specific usage IDs. For example:
>
>
>- 0xE9 is for volume up.
>- 0xEA is for volume down.
>- 0xE2 is for mute.
>- 0xCD is for play/pauseetc
>
>
___
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


Mdiai Keys - volume / play/pause/next...

2023-10-20 Thread David Bovill via use-livecode
Is there a way to trap for these keyboard events.

Volume and Media Keys: In the HID standard, volume and media control keys
often have specific usage IDs. For example:


   - 0xE9 is for volume up.
   - 0xEA is for volume down.
   - 0xE2 is for mute.
   - 0xCD is for play/pauseetc
___
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: Questions on Wasm export, licenses and file siz

2023-10-13 Thread David Bovill via use-livecode
Lets take the following scenario:

1) We have a library of interactive components created in Livecode.  They
are structured as (Levure) components. They could be turned into script
components easily, or LCB based components with a little more work.
2) We wish to compose a series of apps based on these components in which
3-15 of them interact with each other on any given screen.
3) We can prototype and deliver these apps in a Livecode based prototype.
4) There is a project need for an advanced architecture that engages the
enthusiasm of University students and the wider developer community. We
therefore require a strategy that enables developers in a range of modern
language - particularly rust, javascript and python to participate.
5) It is a long term project - so we can take out time and wait for
technologies to mature. However we wish to deliver rapid prototypes that
can be tested with communities in the short term.

Given the above I’d like to be able to prototype the software(s) by
exporting these Livecode (Levure-style) components as wasm - and embed
these on web pages in which they communicate with each other securely.
Components that need speeding up, or reduced in file size once tested may
be rewritten eventually in another language.

My concern is:

- having several wasm components on a single web view will involve
multiplying the quite large engine download for each component?
- which licence will be required so that these wasm components over the
duration of the project?

On Thu, 12 Oct 2023 at 20:16, David Bovill  wrote:

> Hi Richard specifically I need to know if I create an web page with
> multiple HTML5  export embeds whether the Livecode wasm approach forces the
> engine to be exported multiple times.
>
> On Thu, 12 Oct 2023 at 17:09, ambassador--- via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> David Bovill wrote:
>> > With the old JavaScript export you had a separation between the engine
>> > and stacks such that you could cache the engine part in the browser to
>> > speed up the loading of the much smaller stacks. Is that the case (or
>> > it is intended to be the case in the future) with the wasm export?
>>
>> A couple years ago Andre outlined the differences between JS and WASM,
>> worth reviewing:
>>
>> https://www.mail-archive.com/use-livecode%40lists.runrev.com/msg08.html
>>
>> With your background you're probably well aware of the differences, but
>> since we see so many conceptualizing WASM as "compiled JavaScript" it's
>> worth taking a moment to review their respective boundaries.
>>
>> Given that WASM has no direct access to the DOM, and therefore no direct
>> manipulation of controls or events, it is not a drop-in replacement for JS.
>>
>> In LC terms, it may be best to think about WASM's relationship to the
>> browser as similar to what externals are to LC.
>>
>> Of course externals are very powerful; most of the v8 bullet points were
>> new externals. But they still need LC Script to interface with our apps.
>>
>> The degree to which LC Ltd will be able to compile the whole engine into
>> WASM is a good question, but it seems clear it will be limited in some
>> ways, and it's unlikely we'll see compilation of LC Script to WASM for the
>> foreseeable future.
>>
>> The good news is that the LC Community has a growing body of knowledge
>> around JavaScript: some of the cooler widgets are just wrappers around a
>> browser instance running JS/HTML/CSS.  And given the vast amounts of
>> web-native (JS/HTML/CSS) code out in the world, folks are continually
>> finding new ways to integrate the native web stack with LC stack objects
>> nicely.
>>
>> If web deployment is the goal, I see no downside and much to be gained
>> from spending more time practicing JavaScript. While different from xTalk,
>> it's a good language, and arguably closer to what xTalk might have looked
>> like if HyperCard premiered 10 years later than it did.
>>
>> Being comfortable with JS means being able to fill in gaps between your
>> LC work and LC's web export more easily, and even within LC today it's the
>> gateway to vast components via the browser widget.
>>
>> JS is the only interactive language included in browsers.  The best time
>> to learn it was yesterday. The second best time is today.
>>
>> Like AppleScript, PowerShell, bash, and others, learning other languages
>> opens new doors for integrating LC across a wide variety of systems.
>>
>> Bonus: the more you learn JS, the less you need to wait for with the
>> feature completion in LC's web export.
>>
>> As for your question about deployment size, we can expect a WASMified
>> engine to be smaller than its JS version, but there are so many factors
>> that go into that it may just be too early to tell.
>>
>> If you do a web search for "WASM replace JavaScript" you'll not only get
>> deeper discussions than what I've offered here, but also some confounding
>> benchmarks where it's possible to have compiled WASM larger than the 

Re: Questions on Wasm export, licenses and file siz

2023-10-12 Thread David Bovill via use-livecode
Hi Richard specifically I need to know if I create an web page with
multiple HTML5  export embeds whether the Livecode wasm approach forces the
engine to be exported multiple times.

On Thu, 12 Oct 2023 at 17:09, ambassador--- via use-livecode <
use-livecode@lists.runrev.com> wrote:

> David Bovill wrote:
> > With the old JavaScript export you had a separation between the engine
> > and stacks such that you could cache the engine part in the browser to
> > speed up the loading of the much smaller stacks. Is that the case (or
> > it is intended to be the case in the future) with the wasm export?
>
> A couple years ago Andre outlined the differences between JS and WASM,
> worth reviewing:
> https://www.mail-archive.com/use-livecode%40lists.runrev.com/msg08.html
>
> With your background you're probably well aware of the differences, but
> since we see so many conceptualizing WASM as "compiled JavaScript" it's
> worth taking a moment to review their respective boundaries.
>
> Given that WASM has no direct access to the DOM, and therefore no direct
> manipulation of controls or events, it is not a drop-in replacement for JS.
>
> In LC terms, it may be best to think about WASM's relationship to the
> browser as similar to what externals are to LC.
>
> Of course externals are very powerful; most of the v8 bullet points were
> new externals. But they still need LC Script to interface with our apps.
>
> The degree to which LC Ltd will be able to compile the whole engine into
> WASM is a good question, but it seems clear it will be limited in some
> ways, and it's unlikely we'll see compilation of LC Script to WASM for the
> foreseeable future.
>
> The good news is that the LC Community has a growing body of knowledge
> around JavaScript: some of the cooler widgets are just wrappers around a
> browser instance running JS/HTML/CSS.  And given the vast amounts of
> web-native (JS/HTML/CSS) code out in the world, folks are continually
> finding new ways to integrate the native web stack with LC stack objects
> nicely.
>
> If web deployment is the goal, I see no downside and much to be gained
> from spending more time practicing JavaScript. While different from xTalk,
> it's a good language, and arguably closer to what xTalk might have looked
> like if HyperCard premiered 10 years later than it did.
>
> Being comfortable with JS means being able to fill in gaps between your LC
> work and LC's web export more easily, and even within LC today it's the
> gateway to vast components via the browser widget.
>
> JS is the only interactive language included in browsers.  The best time
> to learn it was yesterday. The second best time is today.
>
> Like AppleScript, PowerShell, bash, and others, learning other languages
> opens new doors for integrating LC across a wide variety of systems.
>
> Bonus: the more you learn JS, the less you need to wait for with the
> feature completion in LC's web export.
>
> As for your question about deployment size, we can expect a WASMified
> engine to be smaller than its JS version, but there are so many factors
> that go into that it may just be too early to tell.
>
> If you do a web search for "WASM replace JavaScript" you'll not only get
> deeper discussions than what I've offered here, but also some confounding
> benchmarks where it's possible to have compiled WASM larger than the source
> code, and sometimes only slightly small, and then some amazingly smaller.
> So much will depend on so many implementation details...
>
> --
> Richard Gaskin
> Fourth World Systems
>
> ___
> 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


Questions on Wasm export, licenses and file size

2023-10-12 Thread David Bovill via use-livecode
I know that HTML5 export is not quite ready yet - but I’m a patient man :)
I would like to know how it works / will work - particularly with regard to
the size of the exports.

With the old JavaScript export you had a separation between the engine  and
stacks such that you could cache the engine part in the browser to speed up
the loading of the much smaller stacks. Is that the case (or it is intended
to be the case in the future) with the wasm export?

I’m looking towards a world in which multiple wasm components written in
various languages sit on a web page talking to each other.
___
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: Your scripts as a flowchart

2023-09-22 Thread David Bovill via use-livecode
Hi Andreas, quick note - I've not read the full thread - but I have a code
graph browser that I have been using for a number of years - it is a big
piece of work - so not easy to distribute - and many of the parts should
probably be done better / differently. I would Love to make use /
integrate that work - rather than see it all stay on my laptop - but either
way I'd like to get involved. This is what I have / the current approach:

   - Script Indexing project - libraries to recursively crawl an object or
   a stacks script to find handlers, and calls from each type of handler
   - Experimental caching and database based versions to speed up graph
   analysis and reporting (currently dropped)
   - Integration with IDE / Script Editor (using behaviors attached to
   "Apply" button etc
   - Projects arranged more or less as Levure projects
   - SVG graph export with interactive browsing of handlers (using graphviz)
   - Native graph export creating native Livecode layouts of shapes from
   Graphviz or Mermai d(experimental)
   - Filtering, and processing of graphs (experimental)

What I'd like to do is:

   1. Finish integration with Levure
   2. Focus on Mermaid implementation
   3. Test and improve the code parsing and graph creation to ensure it
   works properly with different coding styles

Happy to demo / jump on a Zoom call and share ideas / discuss.

On Mon, 18 Sept 2023 at 13:11, Andreas Bergendal via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Getting a full export is a tricky business, and I’m looking at various
> solutions.
>
> The easiest workaround is to launch the flowchart in a web browser and
> print to PDF from there.
> On Windows/Linux the flowchart is shown that way anyway, and on Mac you
> load it in a web browser by shift-clicking the Create flowchart button. The
> obvious downside of printing to pdf is that you get page breaks that split
> up the flowchart.
>
> Another workaround is to paste the Mermaid code into an online editor like
> https://mermaid.live and then export to PNG from there.
>
> What looks more promising for actually solving it in-stack though, is
> using the command-line interface (CLI) for Mermaid to generate an
> svg/png/pdf file:
> https://github.com/mermaid-js/mermaid-cli
>
> I’ll experiment with that and see what I can come up with. :)
>
> > As an aside, I don't know whether to be proud or horrified at the map
> > Navigator produces…
>
> Yeah, I know the feeling… :D
>
> /Andreas
>
>
> > 18 sep. 2023 kl. 03:38 skrev Geoff Canyon via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Is there a way to export the entire flowchart, instead of just the
> portion
> > currently displayed?
> >
> > As an aside, I don't know whether to be proud or horrified at the map
> > Navigator produces...
> >
> > On Sat, Sep 16, 2023 at 8:04 PM Geoff Canyon  wrote:
> >
> >> Ah, okay, that explains it. In Navigator, *everything* is a script-only
> >> stack behavior. In a few of the substacks there are scripts for a few
> >> template objects or where script-only-stack behaviors were inconvenient
> (I
> >> don't remember why, honestly).
> >>
> >> That has it working, and the resulting diagram is nice. Navigator does a
> >> similar survey (without the visualization, that's a neat trick).
> >>
> >> Navigator reports:
> >>
> >> 302986 characters in
> >> 8092 lines in
> >> 112 scripts in
> >> 885 objects.
> >>
> >> ScriptDependencies reports:
> >>
> >> 341 unique handler names - 407 commands, 124 functions, 1 setProps
> >>
> >> regards,
> >>
> >> Geoff
> >>
> >> On Sat, Sep 16, 2023 at 6:24 PM Andreas Bergendal via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >>> As long as you include all the script-only stacks in the analysis, they
> >>> will be handled.
> >>> The tool will not look for behaviors and auto-include them. Every stack
> >>> that has relevant code must be included manually in the project pane.
> If
> >>> you have many SoSs, you can quickly add them all by adding the whole
> folder
> >>> they are in.
> >>>
> >>> How many handlers does the analysis find?
> >>>
> >>> /Andreas
> >>>
> >>>
>  16 sep. 2023 kl. 22:43 skrev Geoff Canyon via use-livecode <
> >>> use-livecode@lists.runrev.com>:
> 
>  I didn't change anything before generating, and the flow chart is
> >>> literally
>  blank -- unless it:
> 
>  1. scrolls invisibly
>  2. keeps returning the project name to the upper left while scrolling
>  3. has *at least* 30 screens' worth of blank space at the top?
> 
>  On Sat, Sep 16, 2023 at 1:35 PM J. Landman Gay via use-livecode <
>  use-livecode@lists.runrev.com> wrote:
> 
> > That happened to me too with a very long script. To keep everything
> in
> > view
> > there's a lot of white space. Keep scrolling. This happens only if
> you
> > have
> > set it to use unlimited sizing.
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software 

Snapshot of browser not working?

2023-08-01 Thread David Bovill via use-livecode
I cannot find a specific bug report - but I am trying to take a snapshot of
a browser widget to capture an image of the website. In the latest 10 DP 5
on MacOS M2 i get a very truncated text of the image (a few lines) in all
formats using:

*export* snapshot from widget "Browser" to pictVariable as PNG

Is this something that works on other  platforms or livecode versions?
___
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: What is your best practice for setting a script in a script?

2023-07-15 Thread David Bovill via use-livecode
This is the same type of problem as deleting an object from a user
interaction with the object - but more common use case and I don;t know a
good way of doing that either. I use:

 send "delete_Object" to somewhere in 2 ticks

But it is messy and tends to be a bit unreliable in my experience. I don't
know a way around it other than avoiding any events being trapped within
the object itself - but that is not so easy.

On Sat, 15 Jul 2023 at 20:47, Dick Kriesel via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> > On Jul 15, 2023, at 8:06 AM, Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > So in the instances where you have a script that creates an object and
> then sets the script of that object (example below), what is you best
> practice for having the script in a script and still be readable?
>
> Hi, Paul. The best way to set the script may be not to; that is, instead
> set the new object’s behavior to a button that contains the readable script.
> — Dick
> ___
> 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


Re: Workaround for regular Crash setting (audio) file of player?

2023-07-15 Thread David Bovill via use-livecode
Interesting - I do have two monitors - though the player is on the main
default monitor - I will try with the monitor disconnected.

On Sat, 15 Jul 2023 at 14:42, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Are you on a single monitor or do you have more than 1 display?
>
> It is a known bug that the player object freezes or crashes when petting
> properties on any monitor but the primary display:
> https://quality.livecode.com/show_bug.cgi?id=20707
>
>
> On 7/15/2023 9:07 AM, David Bovill via use-livecode wrote:
> > I'm working a lot with media again - and the last two days I get a crash
> > every 15 minutes when I set the filename of a player to various mp4 audio
> > tracks. I'd love a workaround as its slowing things up quite a bit.
> >
> > I've seen this behavior quite a bit over the years with media and the
> > player. it happens erratically - so works well then after 5 or 6
> > successful attempts setting the audio file in the script crashes
> livecode.
> >
> > Recipe:
> >
> > 1.
> >
> > *set* the filename of me to audioFile -- the offending line
> >
> > 2.
> >
> > audiioFile is one of several different m4a files (created using
> > mergMicrophone)
> > 3.
> >
> > The filename is a long path
> > 4.
> >
> > No pattern regarding a particular audio file, or sequence I can
> detect
> >
> > If anyone has a thought of a way to set an audio file that will work
> > without crashing... much appreciated.
> > ___
> > 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


Re: Tree Widget - order of titles

2023-07-15 Thread David Bovill via use-livecode
Thanks Brian - that works. I can remove the indent created by the now empty
first column by using:

set the separatorRatio of widget to 0


However there is still a separator line and if I:

set the showSeparator to false


Then the indent returns. But it mostly looks OK.

On Sat, 15 Jul 2023 at 15:28, Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:

> While I don’t know if a way to hide the key, there is a way to get a
> manual sort by combining the key with a sortable leading value.  See the
> charsToTrimFromKey property.
>
> Brian Milby
> br...@milby7.com
>
> > On Jul 15, 2023, at 9:11 AM, David Bovill via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Is there a way to display an indexed array in the tree widget without
> > displaying the numeric inde items (ie first column)? I'm looking to
> display
> > an ordered index of titles and would prefer not to use both a field and a
> > tree widget to accomplish this?
> > ___
> > 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


Tree Widget - order of titles

2023-07-15 Thread David Bovill via use-livecode
Is there a way to display an indexed array in the tree widget without
displaying the numeric inde items (ie first column)? I'm looking to display
an ordered index of titles and would prefer not to use both a field and a
tree widget to accomplish this?
___
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


Workaround for regular Crash setting (audio) file of player?

2023-07-15 Thread David Bovill via use-livecode
I'm working a lot with media again - and the last two days I get a crash
every 15 minutes when I set the filename of a player to various mp4 audio
tracks. I'd love a workaround as its slowing things up quite a bit.

I've seen this behavior quite a bit over the years with media and the
player. it happens erratically - so works well then after 5 or 6
successful attempts setting the audio file in the script crashes livecode.

Recipe:

   1.

   *set* the filename of me to audioFile -- the offending line

   2.

   audiioFile is one of several different m4a files (created using
   mergMicrophone)
   3.

   The filename is a long path
   4.

   No pattern regarding a particular audio file, or sequence I can detect

If anyone has a thought of a way to set an audio file that will work
without crashing... much appreciated.
___
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


Livecode Hosting

2023-02-27 Thread David Bovill via use-livecode
I’m wondering what the current status and plans are with Livecode hosting?

I have / had lifetime On-Rev hosting - but never really used it preferring
to host myself. Is there still a Livecode hosting option available?
___
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: Browser Widget navigation and urls

2023-02-06 Thread David Bovill via use-livecode
Thanks Ben, will try experiment with window.location method...

On Mon, 6 Feb 2023, 12:26 Ben Rubinstein via use-livecode, <
use-livecode@lists.runrev.com> wrote:

> The website might be actually a JavaScript 'app' that's displaying
> different
> information rather than navigating to different pages, which is now a very
> popular web dev technique.
>
> A responsible implementation of this approach includes a non-JS fallback,
> for
> accessibility purposes; and makes the app manipulate the browser's URL
> display
> so that if someone bookmarks the page, or sends a link, the link will work
> to
> display the same 'page' as the user intended.
>
> You might be able to inject something to access the 'window.location'
> object,
> which I think is what is manipulated in this case.
>
>
> On 05/02/2023 12:28, David Bovill via use-livecode wrote:
> > I have a web site which I navigate in Chrome, and then in the Livecode
> > browser widget. I load the same starting url.  In Chrome the browsers url
> > changes as I navigate the pages, while if I navigate to the saem place in
> > the same way in Livecodes embedded browser "the url" of the browser
> widget
> > returns the original url and not the one i've navigated to.
> >
> > I'm trying to bookmark the url of the page navigated to in the browser
> > widget - any ideas?
> > ___
> > 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


Browser Widget navigation and urls

2023-02-05 Thread David Bovill via use-livecode
I have a web site which I navigate in Chrome, and then in the Livecode
browser widget. I load the same starting url.  In Chrome the browsers url
changes as I navigate the pages, while if I navigate to the saem place in
the same way in Livecodes embedded browser "the url" of the browser widget
returns the original url and not the one i've navigated to.

I'm trying to bookmark the url of the page navigated to in the browser
widget - any ideas?
___
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


Challenge: converting python (or Javascript) code to Livecode

2022-06-15 Thread David Bovill via use-livecode
Thanks Craig - I dug around but no joy. I hate it when you loose code as I had 
a function somewhere… The javascript and python code is not that long, so it 
will be an interesting challenge to translate:

Python code:

• https://github.com/volkerp/fitCurves/blob/master/fitCurves.py

Javascript code:

• https://github.com/soswow/fit-curve/blob/master/src/fit-curve.js

Here is the core python function:
> quote_type
> def fitCubic(points, leftTangent, rightTangent, error):
>  # Use heuristic if region only has two points in it
>  if (len(points) == 2):
>  dist = linalg.norm(points[0] - points[1]) / 3.0
>  bezCurve = [points[0], points[0] + leftTangent * dist, points[1] + 
> rightTangent * dist, points[1]]
>  return [bezCurve]
>
>  # Parameterize points, and attempt to fit curve
>  u = chordLengthParameterize(points)
>  bezCurve = generateBezier(points, u, leftTangent, rightTangent)
>  # Find max deviation of points to fitted curve
>  maxError, splitPoint = computeMaxError(points, bezCurve, u)
>  if maxError < error:
>  return [bezCurve]
>
>  # If error not too large, try some reparameterization and iteration
>  if maxError < error**2:
>  for i in range(20):
>  uPrime = reparameterize(bezCurve, points, u)
>  bezCurve = generateBezier(points, uPrime, leftTangent, rightTangent)
>  maxError, splitPoint = computeMaxError(points, bezCurve, uPrime)
>  if maxError < error:
>  return [bezCurve]
>  u = uPrime
>
>  # Fitting failed -- split at max error point and fit recursively
>  beziers = []
>  centerTangent = normalize(points[splitPoint-1] - points[splitPoint+1])
>  beziers += fitCubic(points[:splitPoint+1], leftTangent, centerTangent, error)
>  beziers += fitCubic(points[splitPoint:], -centerTangent, rightTangent, error)
>
>  return beziers
>
The maths code for the Newton Raphson method is:
> quote_type
> def newtonRaphsonRootFind(bez, point, u):
>  """
>  Newton's root finding algorithm calculates f(x)=0 by reiterating
>  x_n+1 = x_n - f(x_n)/f'(x_n)
>
>  We are trying to find curve parameter u for some point p that minimizes
>  the distance from that point to the curve. Distance point to curve is 
> d=q(u)-p.
>  At minimum distance the point is perpendicular to the curve.
>  We are solving
>  f = q(u)-p * q'(u) = 0
>  with
>  f' = q'(u) * q'(u) + q(u)-p * q''(u)
>
>  gives
>  u_n+1 = u_n - |q(u_n)-p * q'(u_n)| / |q'(u_n)**2 + q(u_n)-p * q''(u_n)|
>  """
>  d = bezier.q(bez, u)-point
>  numerator = (d * bezier.qprime(bez, u)).sum()
>  denominator = (bezier.qprime(bez, u)**2 + d * bezier.qprimeprime(bez, 
> u)).sum()
>
>
>  if denominator == 0.0:
>  return u
>  else:
>  return u - numerator/denominator
>
Seems a useful little challenge for the list?

    Schedule a call with me
On 14 Jun 2022, 14:43 +0100, Craig Newman via use-livecode 
, wrote:
> There is a similar thread on the forum:
>
> https://forums.livecode.com/viewtopic.php?f=8=34550 
> <https://forums.livecode.com/viewtopic.php?f=8=34550>
>
> Craig
>
> > On Jun 14, 2022, at 8:54 AM, David Bovill via use-livecode 
> >  wrote:
> >
> > I found some well documented python code:
> >
> > • https://github.com/volkerp/fitCurves/blob/master/fitCurves.py
> >
> > And some Javascript code:
> >
> > • https://github.com/soswow/fit-curve/blob/master/src/fit-curve.js
> >
> > The javascript code could be called from Livecode. To see the demo of how 
> > this would work in the browser:
> >
> > • http://soswow.github.io/fit-curve/demo/
> > • https://codepen.io/Sphin/pen/jrLxvQ
> >
> > Would seem to be a useful library to have available in native LC?
> >
> >  Schedule a call with me
> > On 14 Jun 2022, 12:30 +0100, David Bovill , wrote:
> > > Searching around for a function in LC. It should take the points of a 
> > > graphic and return a smoothed the points of a smoothed line. I’ve found 
> > > lots of bezier style experiments but no “curve fitting” code. Anyone have 
> > > a function?
> > >
> > >  Schedule a call with me
> > > On 6 Dec 2015, 12:10 +, Michael Kristensen 
> > > , wrote:
> > > > Pointlist to Bezier
> > > >
> > > > Hi there
> > > >
> > > > I wonder if any have code to take a point-list and turn it into a 
> > > > smooth-lined bezier.
> > > >
> > > > There are explanations around the net for C-code but it is very hard to 
> > > > understand.
> > > >
> > > > (one here said to be good but misses the graphics:)
> > > >

Re: Pointlist to Bezier?

2022-06-14 Thread David Bovill via use-livecode
I found some well documented python code:

• https://github.com/volkerp/fitCurves/blob/master/fitCurves.py

And some Javascript code:

• https://github.com/soswow/fit-curve/blob/master/src/fit-curve.js

The javascript code could be called from Livecode. To see the demo of how this 
would work in the browser:

• http://soswow.github.io/fit-curve/demo/
• https://codepen.io/Sphin/pen/jrLxvQ

Would seem to be a useful library to have available in native LC?

    Schedule a call with me
On 14 Jun 2022, 12:30 +0100, David Bovill , wrote:
> Searching around for a function in LC. It should take the points of a graphic 
> and return a smoothed the points of a smoothed line. I’ve found lots of 
> bezier style experiments but no “curve fitting” code. Anyone have a function?
>
>     Schedule a call with me
> On 6 Dec 2015, 12:10 +, Michael Kristensen 
> , wrote:
> > Pointlist to Bezier
> >
> > Hi there
> >
> > I wonder if any have code to take a point-list and turn it into a 
> > smooth-lined bezier.
> >
> > There are explanations around the net for C-code but it is very hard to 
> > understand.
> >
> > (one here said to be good but misses the graphics:)
> > http://www.benknowscode.com/2012/09/path-interpolation-using-cubic-bezier_9742.html
> >
> > What could this code be used for.
> >
> > — Tracing an image
> >
> > — Smoothing the lines drawn by a user
> >
> > plus a lot more Im sure
> >
> > Thanks
> > Michael
> > ___
> > 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


Re: Pointlist to Bezier?

2022-06-14 Thread David Bovill via use-livecode
Searching around for a function in LC. It should take the points of a graphic 
and return a smoothed the points of a smoothed line. I’ve found lots of bezier 
style experiments but no “curve fitting” code. Anyone have a function?

    Schedule a call with me
On 6 Dec 2015, 12:10 +, Michael Kristensen , 
wrote:
> Pointlist to Bezier
>
> Hi there
>
> I wonder if any have code to take a point-list and turn it into a 
> smooth-lined bezier.
>
> There are explanations around the net for C-code but it is very hard to 
> understand.
>
> (one here said to be good but misses the graphics:)
> http://www.benknowscode.com/2012/09/path-interpolation-using-cubic-bezier_9742.html
>
> What could this code be used for.
>
> — Tracing an image
>
> — Smoothing the lines drawn by a user
>
> plus a lot more Im sure
>
> Thanks
> Michael
> ___
> 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


Wasm export examples

2022-01-23 Thread David Bovill via use-livecode
I’m trying to evaluate the state of the wasm export in dp10. As I’m not able to 
export to wasm from my current license, nor does the trial seem to give that 
option - I’m a bit stuck.

Are there any examples on the web of Livecode stacks running using the wasm 
export that I can evaluate?

    Schedule a call with me
___
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


Customising Wasm export

2022-01-23 Thread David Bovill via use-livecode
I have a project that requires creating and rapidly prototyping was modules 
that would suitably be created in Livecode. However the was modules need to 
interface with other system components in a manner that is most easily 
accomplished at the moment using a rust based toolchain.

How would I explore this possibility? Can a wasm based Livecode be embedded / 
wrapped / included in the existing rust code? Can the Livecode export be 
relatively easily customised to provide the relevant warm api / headers needed? 
Is it feasible to edit the warm directly to add the relevant api / headers and 
set up the way the Livecode code is organised to make this possible?

What are the right questions to ask here?

    Schedule a call with me
___
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


Building stuff

2021-09-06 Thread David Bovill via use-livecode
It’s a good question - what to build with regard to the sort of tools and 
components a vibrant developer community expects. I only know about examples of 
open source communities, and though I’d be interested in exploring how such a 
coding community might work with alternative closed licensing schemes - the 
only example that I know of would be music licensing - so I’ll stick to open 
source examples.

Andre mentions the following list:

1. Package Manager
2. Tools and Libraries
3. Community Evangelism
4. Business Model - Ecosystem of Companies

I think that should be a good list to start with. Challenge accepted.

I’m on family holiday now, pulled a back muscle showing off to the kids, and 
applying for investment to help develop the above. PS if anyone would like to 
help get involved please drop us a line.

Here are my introductory notes on each of the four points, specifically with 
regard what to build:

Package Manager
Trevor’s Levure framework, seems a good starting point. I independently 
developed a similarly structured set of tools, which complements Levure (same 
folder structure) - so it seems natural to modify my tools a bit to enable them 
to work with Levure.

However this is not exactly a package manager. I’ve explored the idea of using 
an existing package manager, and simply interfacing with it like I currently 
interface with git and GitHub - using shell and Api commands. Right now I think 
deno is a better fit with LiveCode but that would need a bit more research 
before taking the plunge.

So in terms of building. I’d like to release my git and GitHub libraries and 
IDE integration tools and work out the best way to integrate them with a proper 
package manager by writing and researching options (point 4 - evangelism).

Tools and Libraries
In terms of building, Id like to release libraries distributed on GitHub and as 
part using the package manager - however initially basic above. Need to 
consider whether to change the licence from GPL to MIT in order to fit with 
Livecode Ltd’s new approach (this relates to Business Model below).

In terms of early action - that means organising existing open sourced code 
based in one place and linking that to the other components.

Community Evangelism
It’s important to make this fun, and inspiring. I’ve been working on a 
podcasting environment built using LiveCode community edition - and reaching 
out to interesting projects and speakers within and outside of the community 
would be a key party of that.

To make this interesting enough to developers and an audience outside of the 
existing community, my focus would be on Open Language and the history (and 
future) of literate programming language.

There is a great deal of free culture (ccby4.0) licensed content available and 
linking this to the existing LiveCode Dictionary in a more accessible form of 
documentation can provide a valuable resource that can help build an active 
community.

So in terms of doing and making - I’ve reached out to a couple of communities 
to help with this “documentation project” around literate languages, and well… 
we’ll see where the interest goes.

The documentation will be published to the three “wiki” communities - federated 
wiki, TiddlyWiki and Massive Wiki as json and markdown files that each 
community can contribute too. JavaScript will be a significant part of this I 
suspect.

Business Model
This aspect is one of the most interesting. There is currently a lot if change 
and opportunity in new business models around code and language design. I 
believe we should discuss these. Seek investment and apply for funding.

I would love to see an independent community effort to create an Open Language 
Foundation that would help finance the ongoing development of Open Language. An 
open rather than closed discussion of these possibilities I would see best done 
as part of the podcast / evangelism.

I hope some of these ideas appeal, to members of the list here. I’m personally 
committed to this path as I work on a new literate language, and had been 
developing much of the above to start by November this year anyway - so it 
seems a waste more to release.

    Schedule a call with me
On 6 Sep 2021, 12:22 +0100, Andre Garzia via use-livecode 
, wrote:
> Don’t know how many people here remember that they tried that approach with 
> Dreamcard. I really like it, but in the end it didn’t work for the company. I 
> see many members here in the list saying “what should be done”, “what would 
> have worked”, and I wanted to remember every one that while speculation is 
> fun and a healthy practice, it is not necessarily a representation of truth. 
> We don’t know what could have worked, very few people here know the day to 
> day managing of LiveCode Ltd to judge what are their best options. What 
> people here can do is lobby from the user’s point of view, and yet I see a 
> ton of people “playing CEO with these emails”, that is not productive IMHO.
>
> Let’s take 

Re: Suggestion: Non-Appbuilding Community Edition

2021-09-04 Thread David Bovill via use-livecode
The clearest example of a free-forever development licence which you pay for 
when you wish to release your app is obviously Unity 3D. I remember when this 
project was a small developer community supported by a company and community of 
keen early adopters. I asked then why Livecode Ltd didn’t adopt a model close 
to that - sure there are differences between the game market and Livecode’s 
market but still?

So the question here is why not do the same here - keep a free-to-develop 
“trial version” without the compilation framework and tools. I’m curious to the 
reasoning. The cynic in me would say that the assumption is that there are too 
few developers in this (non-game) market who would need the compilation / 
stand-alone-builder functions - so while game developers and companies might 
pay for commercial Unity 3D licenses - that is not true for Livecode 
developers? I don’t / like / buy that argument - so I would love to here good 
reasons or not adopting a Unity 3D style licensing model?

    Schedule a call with me
On 3 Sep 2021, 15:07 +0100, Kevin Miller via use-livecode 
, wrote:
> What I liked about your email to me Tom was that it was extremely specific. 
> You had just a handful of issues you considered absolutely key and offered to 
> Zoom to show that to me. I look forward to scheduling that once I finish 
> getting unburried __
>
> Kind regards,
>
> Kevin
>
> Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
> LiveCode: Develop Yourself
>
> On 02/09/2021, 22:59, "use-livecode on behalf of Tom Glod via use-livecode" 
>  use-livecode@lists.runrev.com> wrote:
>
> Lagi,
>
> I wrote to Kevin earlier and gave the exact same advice. those exact 2
> points needing to be addressed.
>
> Give long trial, fix the most obvious IDE issues ASAP.
>
> Without those two things how is any new developer going to join the
> platform?
>
>
>
> On Thu, Sep 2, 2021 at 5:34 PM Lagi Pittas via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Trials of 14 days or even 30 days are a waste of time. I can install
> > something and use it for a couple of days - then life / work gets in the
> > way
> > so It sits on the computer for 31 days and then times out.
> >
> > You then have to waste your time and the companies to get an extension,
> > and by the time they answer
> > you get cheesed off and remove the program.
> >
> > The BEST trial is the one that lasts for 30 actual executions or 6 months
> > (whichever comes first).
> >
> > This stops the clever SOD who decides to keep it running without exiting
> > for 6 months but it times out anyway.
> > Even better if he keeps it on for 2 days it counts as "executing" twice so
> > it will last 30 days.
> >
> > This means I have 30 days over a 6 month period to really test it without
> > rushing.
> >
> > The people who would game the system are the people who won't be loyal
> > customer anyway, so not giving a worthwhile trial period handicaps those
> > who want to give it a good try.
> >
> > You can also put a nag screen at the start of any executable with an OK
> > button link to a special discounted price - free marketing (what a
> > brilliant Idea, why didn't I think of it?).
> >
> > But the best way of selling it is to FIX the bloody IDE - I am running on a
> > 16G 1 year Old 8th Generation CoreI7 processor and it STILL runs like
> > treacle.
> >
> > If I downloaded it today as a new person it would be off my machine in less
> > than 30 minutes.
> >
> > You could also use this as your "marketing" system by "giving it away" to
> > schools for nothing and without the trial period but the nag screen.
> >
> > It can then be used by the students to learn programming at no cost - and
> > some of the students parent might pony up for a paid for version at a
> > student price (with no expiring standalones of cours - the most stupid idea
> > of the lot so far)
> >
> >
> > Anyway Kevin, have I/we wastedour time again putting out these cranky,
> > stupid and not workable suggestions?.
> >
> > Lagi
> >
> >
> >
> >
> >
> >
> >
> > On Thu, 2 Sept 2021 at 15:55, Kevin Miller via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > We *are* considering the length of the trial actively, we may well give a
> > > longer trial a shot at some point.
> > >
> > > Kind regards,
> > >
> > > Kevin
> > >
> > > Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
> > > LiveCode: Develop Yourself
> > >
> > > On 02/09/2021, 15:51, "use-livecode on behalf of Ralph DiMola via
> > > use-livecode"  > > use-livecode@lists.runrev.com> wrote:
> > >
> > > True, true.
> > >
> > > There could be a small group of programmers that pass a stack around
> > > but you would not be able to convince/teach a civilian to install a
> > > programming IDE and explain how to run the stack along with any other
> > > supporting files, SW or plug-ins... Mobile would be a non-starter. I
> > would
> > > not dismiss this out-of-hand. A 90 day free IDE could also be an option.
> > >
> > 

Re: Suggestion: Non-Appbuilding Community Edition

2021-09-02 Thread David Bovill via use-livecode
A web only version however that allowed you to learn and experiment with the 
language and develop free and open source server side code would not suffer 
this limitation. You would not be able to use that to build apps.

There are options to retain open source community versions that do not 
canabalise the app making aspect of the business.

    Schedule a call with me
On 2 Sep 2021, 15:31 +0100, Kevin Miller via use-livecode 
, wrote:
> Thanks for the constructive suggestion. Unfortunately with a free non-app 
> building version, everyone who needs to run an app can just download that.
>
> Kind regards,
>
> Kevin
>
> Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
> LiveCode: Develop Yourself
>
> On 02/09/2021, 14:49, "use-livecode on behalf of Michael Kristensen via 
> use-livecode"  use-livecode@lists.runrev.com> wrote:
>
> Hi there
>
> I suggest that there could be a Non-Appbuilding Community Edition
>
> That would be for personal use, and to learn coding.
>
> Michael
>
> ___
> 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


Re: Suggestion: Non-Appbuilding Community Edition

2021-09-02 Thread David Bovill via use-livecode
That’s an interesting idea.

I’m wondering if a bit of terminology is helpful here - there seem to be two 
distinct things that have been put together previously - community and open 
source.

The needs of the two are not always aligned - especially with LiveCode where an 
easy to use well documented and low cost community edition is not necessarily 
the sane as an open source software that might be quite geeky.

For me it makes more sense for LiveCode LTD to focus on easy to use products 
that are packaged for community and commercial use, while the open source 
aspect fits the needs of more specialised developers.

We could achieve both, that is your proposal for a non-app building open source 
version for easy introduction and learning of the language and something 
developers would find interesting to work on - if the focus was on the core of 
the language that runs on the server.

That way there can be a web experience which is accessible, but you would want 
to buy the commercial edition if you wanted to develop apps and leverage more 
advanced tools.

    Schedule a call with me
On 2 Sep 2021, 14:51 +0100, Michael Kristensen via use-livecode 
, wrote:
> Hi there
>
> I suggest that there could be a Non-Appbuilding Community Edition
>
> That would be for personal use, and to learn coding.
>
> Michael
>
> ___
> 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


Calling all fish!

2021-09-02 Thread David Bovill via use-livecode
Don’t go , we love you :)

The open source version, is alive. It just needs maintainers. Personally I 
think this move by LiveCode is healthy. We now have two choices a free open 
source edition maintained by the community, and a closed source version 
maintained by LiveCode LTD. If you want to use the commercial wizz-bang extras 
LiveCode LTD adds - then you can upgrade.

In the meantime the language should go it’s own way. The language I believe has 
always wanted to be a free and open literate language, that enables anyone to 
code in an English like syntax. That vision was the foundation of the 
Kickstarter Campaign and was called Open Language.

I believe the community should maintain that vision. I for one am going to dive 
in :) I see this in two parts.

The first is preserving and maintaining the current code base. The LiveCode 
engine is rich and powerful. Using the current community edition you can create 
pretty well anything you want. Preserving this and strengthening the existing 
sharing of code, and documentation gets us a long way.

Second I feel we should aspire to something meaningful and motivating for the 
future of the language. This would be a long term vision, with a lot of 
learning on the road there. This is how I see it for myself personally, and of 
course I would love it if I had some company on the way :)

Open Language is something I know that is close to LiveCode Ltd’s heart, but it 
is hampered by the need to preserve the legacy  of maintaining complex and 
user-friendly IDE. That with the perceived commercial need to provide all the 
present abilities of the standalone builder mean that it is not a realistic 
proposition. However we can simplify by focussing only on the pure language as 
used by the server - this is a manageable task.

Freeing Open Language from this legacy is a good thing. When it is truly free 
it can join on equal footing the other great languages out there, and still 
hopefully remain compatible with LiveCode Ltd’s commercial offering. For me my 
journey is about mastering the tools that enable the creation of modern 
languages, and these tools have come a long way.

I’m heading on a family holiday now - but over the next two weeks - in 
discussion and with the advice of whoever is interested - Ill get a web site up 
for the project.

    Schedule a call with me
On 2 Sep 2021, 02:29 +0100, Bob Sneidar via use-livecode 
, wrote:
> It’s, “So long, and thanks for all the fish!” And unless you can do a double 
> 360 back flip while passing through a smallish ring suspended above the pool, 
> I remain unimpressed.
>
> Sent from my iPhone
>
> > On Sep 1, 2021, at 17:53, Neville Smythe via use-livecode 
> >  wrote:
> >
> >
> > > On 1 Sep 2021, at 11:36 pm, use-livecode-requ...@lists.runrev.com wrote:
> > >
> > > i am not sure, if everyone is aware of it, but standalones that were 
> > > created with the Starter Plan license will expire as soon as the Startert 
> > > Plan subscription expires.
> >
> > Not even Apple is that rapacious.
> >
> > I used to have a commercial licence back when I was selling stuff (although 
> > the economics of software never made sense). Since retiring I have been 
> > “freeloading" with the Community edition as a hobbyist, my only LC uses 
> > being for personal use, and maintaining admin and operating software I 
> > wrote for a not-for-profit sporting organisation, and occasionally 
> > contributing bug reports. I can well understand the need for LC to move to 
> > a profitable basis, and I would be happy buy a plan if it made sense for 
> > our use, but there is no way my NFP association can afford US$1000 every 
> > year - or even one year (we would use 3 platforms, and not even the Server 
> > is thrown in with the desktop platforms). And a Starter Kit that means the 
> > app would stop working when I pass on (I have been around since Hypercard 
> > day 1) is an insult. Seems to me the hobbyist use of LC has come to an end. 
> > A great pity, but I guess times move on.
> >
> > I have greatly enjoyed being part of this (mostly) friendly and generous 
> > community for many years.
> >
> > Neville Smythe
> >
> > ___
> > 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


Re: Text encoding.

2021-09-02 Thread David Bovill via use-livecode
Thanks for the question Alex, I’m wrestling with the same issues - but so far 
got no responses from encoding gurus here :)

This is my understanding:

1) Yes its recommended to textEncode text that comes from outside into 
Livecode’s internal native format (which is utf16).  Livecode handles 
everything internally “transparently” from then on - which I guess means all 
usual language and control operations expect this utf16 internal format. My 
guess is this is why a few things have got slower as compared with early 
versions of Livecode.
2) Without doing textEncode the engine tries to guess the encoding 
(duck-typing?) and does this in a platform specific way? Again exactly what is 
going on there is a bit opaque to me, but the take-home message is that this is 
slower and less robust. So yes -losing nothing (assuming the original file is 
utf8, and yes its the best alternative.

I thing the hard thing to find out is exactly what type of encoding some files 
are - would be great if there was a duck-typing service where we could paste 
text or upload files and it would say - hey this looks like utf8 - but that’s 
asking too much

    Schedule a call with me
On 2 Sep 2021, 12:12 +0100, Alex Tweedly via use-livecode 
, wrote:
> Sorry to drag us off the interesting topic of licensing :-) into some
> Livecode question.
>
> I know little or nothing about Unicode, text encodings, etc. - so my
> question is indeed naive.
>
> I have a text file (War & Peace from Project Gutenberg), about 3.4Mb.
> The Mac describes it simply as "Plain text".
>
> When I read that into a variable, and then do
>     replace tChar by SPACE in tWholeText
> it takes between 1000 and 4000 millisecs - versus the 8-10 msecs I had
> expected from other samples.
>
> If I put in
>     put textEncode(tWHoleText, "UTF8") into tWholeText
> before the replace then it does indeed tae 8-10 msecs.
>
> Q1. What (if anything) am I losing by doing that ?
>
> Q2. Is this the best alternative ?
>
> Additional info - I just discovered that according to 'more' command
> line, the file start with :
>
> The Project 
>
> if that is useful.
>
> Many thanks,
>
> Alex.
>
>
> ___
> 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


Re: Custom URLs

2021-09-01 Thread David Bovill via use-livecode
I don’t know Dan as its been a while since I looked into this - but it sounds 
like a typical security thing Apple insists on for the AppStore? They tend 
(when compared to Android), to lock that sort of thing down save for a few 
standard (internet) url schema.

    Schedule a call with me
On 1 Sep 2021, 18:05 +0100, Dan Friedman via use-livecode 
, wrote:
> I need a little help here...
>
> I am creating a mobile app for a client that wants to simply launch another 
> app. To do this, I am trying to use a custom url to launch an external app. 
> For example:
>
> launch url "fb:"
>
> This works fine on Android, but on iOS, I get "no association" (yes, Facebook 
> is installed). Then I read that you have to enter the Custom URLs you want to 
> use in the "App URL Query Whitelist" area in the Application Builder. Is this 
> true? Why does the app have to know at compile time what URLs are going to be 
> opened? In my app's case, client can change and edit the list on a server, so 
> the list of apps to launch are received by the our app at launch.
>
> "mailto:;, "http:", "music:" and "tel:" all work just fine on iOS without 
> being included in the App URL Query Whitelist.
>
> Anyone have any insight to this process?
>
> Thanks in advance!
> -Dan
>
> ___
> 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


Re: LiveCode community edition is gone

2021-09-01 Thread David Bovill via use-livecode
I think I’ll head over there and. See if there is any will to maintain an 
aspect of the language as open source - I think there are a couple of options:

1. The server
2. The language with a focus on was and web

I would think that with these components open, this is in no way incompatible 
with a closed source development platform for mobile etc - people will still. 
Pay for the tools but the core of the language would be open.MModern tools make 
the development of the language aspect something a community can do and as it 
is is relatively cutting edge - something an open source community might be 
willing to undertake. Would need new blood I think.

    Schedule a call with me
On 1 Sep 2021, 14:30 +0100, Bernard Devlin via use-livecode 
, wrote:
> FWIW over on the forums the sentiment seems to be mostly hostile to these
> changes. Many are talking of collecting and hosting past "community"
> installers to get around these changes by LC Ltd, others talking of jumping
> ship. Over there the attitude is "the sky is falling". I can only assume
> many of them used LC simply because it was free of charge, disliking that
> doing so in future will entail them making some contribution to the cost of
> progress.
>
> Regards, Bernard
> ___
> 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


Re: LiveCode Community - anyone up for maintaining the community edition?

2021-09-01 Thread David Bovill via use-livecode
Yes - I agree with the reasons mentioned for difficulty getting contributions. 
I have some faith in new opportunities, and I personally would invest in 
growing and maintaining some aspect of an open source strategy - particularly 
around the server.

I would have thought that having an open source version of the server would be 
a good idea, and not cut into revenue from core parts of the business?

Trying to figure a way forwards. From a personal perspective I cannot develop 
the sort of education, and community projects I’m working on in a proprietary 
language. It is not sufficient to say that there is this one source code on 
Github that has not been maintained in so many years… that argument won’t 
enable me to grow a community of developers around that project, or convince 
educators, or social projects to finance them. So I have to figure some way 
forwards.

    Schedule a call with me
On 1 Sep 2021, 14:37 +0100, Timothy Bleiler via use-livecode 
, wrote:
> I’m afraid I have to agree with Andre that if people didn’t contribute 
> before, with Livecode Ltd. overseeing the process, they’re not going to now. 
> A large part of the problem is that there just aren’t very many of us with 
> the time and skills to make contributions to the engine.
>
> Like Sean, I’m wondering about the status of LCB and widgets. This seemed 
> like a considerable effort to facilitate community contributions and it would 
> be unfortunate not to leverage this somehow going forward. If this 
> architecture were to remain and be enhanced perhaps the company could offer 
> discounts on subscriptions in exchange for contributions. Maybe a dedicated 
> section of the forums listing and discussing features that might be added. 
> Also, why not keep the IDE “open” in some sense? If a little more guidance 
> were provided on the design of the IDE I think there are a lot of us that 
> have the scripting skills to improve it.
>
> Some ideas along these lines might have more chance of success than a “go it 
> alone” community open source effort.
>
> Tim Bleiler, Ph.D.
> Instructional Designer, HSIT
> University at Buffalo
>
> > On Sep 1, 2021, at 8:59 AM, Sean Cole (Pi) via use-livecode 
> >  wrote:
> >
> > The main reasons I stopped contributing were:
> > No easy support for LiveCode script as it was all in binary so versioning
> > was non-existent.
> > Life cycle between a pull request, merge and deployment
> >
> > The dictionary was the only place I was able to properly contribute. But it
> > still sucked a lot. And was inconsistent between the Doc Viewer and the Doc
> > panel in the script editor. I kind-of got fed up with all of it. The new AI
> > thing is cool. But it would be good to have a good portal for submitting
> > updates and improving the quality of the Guide/Dictionary.
> >
> > Liking where LC10 is heading. I was an outspoken naysayer of Open Sourcing.
> > TBH, I didn't understand the need. I liked it a bit more when it happened.
> > I definitely liked peeking into the core and getting a better understanding
> > of how stuff like the datagrid worked and other bits and bobs.
> >
> > But I am happier now it's gone back into the hands of LCLtd. It makes much
> > more sense.
> >
> > I'd be interested to know if a new SDK is being implemented if it's now no
> > longer open source. Or if Widgets and LCB will remain the main way in
> > (which is probably fine).
> >
> > Sean
> > *Pi *
> >
> > On Wed, 1 Sept 2021 at 13:26, Andre Garzia via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > People had eight years to contribute to the community edition, and they
> > > didn't. I don't think people would now start caring for and devoting the
> > > necessary energy to maintain the community edition. It is because people
> > > didn't organise and contribute that this recent change happened.
> > >
> > > On Wed, 1 Sept 2021 at 12:56, David Bovill via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > >
> > > > Here are my thoughts on this - and a request.
> > > >
> > > > Yes - it’s not a surprising move by Livecode Ltd - they were clearly
> > > > struggling supporting the community aspect and taking the language to 
> > > > the
> > > > next level and they need more revenue to do that.
> > > >
> > > > The question is (for my part at least) - what to do about this.
> > > Personally
> > > > I have never seen a future for a closed source language, and the
> > > projects I
> > > > work on will not fund. Projects developed in closed sour

Re: Licensing model change

2021-09-01 Thread David Bovill via use-livecode
That’s true Kevin for some business cases - and I am sure you speak for your 
existing customers.

However it does not apply to businesses built around GPL licensed code. Nor 
does it apply to publicly funded initiative like EU funding, where an open 
source license is  required to avoid fears of locking of public funds.

    Schedule a call with me
On 31 Aug 2021, 17:39 +0100, Kevin Miller via use-livecode 
, wrote:
> So I am disappointed that the code will not be out in the open in the event 
> of a business failure
>
> The GPL open source license we used never provided this sort of protection 
> due to the terms of the GPL. For that reason, we continued to sell source 
> code escrow licenses to some commercial users, even as an open source company.
>
> Kind regards,
>
> Kevin
>
> Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
> LiveCode: Develop Yourself
___
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


LiveCode Community - anyone up for maintaining the community edition?

2021-09-01 Thread David Bovill via use-livecode
Here are my thoughts on this - and a request.

Yes - it’s not a surprising move by Livecode Ltd - they were clearly struggling 
supporting the community aspect and taking the language to the next level and 
they need more revenue to do that.

The question is (for my part at least) - what to do about this. Personally I 
have never seen a future for a closed source language, and the projects I work 
on will not fund. Projects developed in closed source - especially by a small 
company. So I have a choice, switch language, or look to continue with 
developing with the community edition and help build an open source community 
around that. The former (switching languages) is relatively easy, the latter a 
lot of work.

I’m happy to have a company like Livecode Ltd create closed source products  
that I can use, so how to have both an open source language, and the ability to 
work with closed source products developed by Livecode Ltd? As I see it the 
only option is for those interested in the community to take control and 
responsibility for the core language.

There are a number of options with regard to future language development, that 
would put the language on an even par with other open source languages, and 
there are also new ways to finance such initiatives. It would be valuable to 
get together as a community and discuss those.

How about having a community conference to look at what is possible? We can do 
this online and showcase new and existing open source projects and discuss the 
opportunities this new environment presents?


    Schedule a call with me
On 1 Sep 2021, 12:18 +0100, David V Glasgow via use-livecode 
, wrote:
>
>
> > On 1 Sep 2021, at 11:26 am, Bernard Devlin via use-livecode 
> >  wrote:
> >
> > There you had a group of programmers who supposedly loved what
> > HyperCard could do, but they only loved that concept as a historical
> > artefact, not as a tool available to people now.
>
> Abso-frogging-lutely.
>
> The really interesting questions are “why?" and “Is there anything we could 
> do about it?”
>
>
> Best Wishes,
>
> David Glasgow
> Consultant Forensic & Clinical Psychologist
> Carlton Glasgow Partnership
> Director, Child & Family Training, York
> Honorary Professor
> Sexual Offences, Crime and Misconduct Research Unit
> Nottingham Trent 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


Storing json - mergeJSON, textdecode and "\u00a0”

2021-08-26 Thread David Bovill via use-livecode
An update on my flailing attempts to get a robust way to go Fromm arrays to 
json and back. Essentially the story is stuff that works on OSX fails now and 
then on the server - and I’m trying to track down why?

It’s an intermittent problem and hard to pinpoint as the json files have a lot 
of content -so finding a character that is causing the problem is not easy. My 
assumption is that this is an encoding issue - but attempts at using 
textDecode() are not helping.

I found one instance that was causing the array encoding to fail:
> quote_type
> put textDecode (utf8JSON, "UTF-8") into rJSON
> replace "\u00a0” with empty in rJSON

While this is fixing the cases I have so far - I am not sure what the 
underlying encoding issue is here. Its a unicode non-breaking-space - 
https://www.fileformat.info/info/unicode/char/00a0/index.htm but I’m not sure 
about the encoding and whether its valid utf8?

Bit stuck any thoughts?

    Schedule a call with me
On 15 Aug 2021, 11:46 +0100, David Bovill , wrote:
> I’ve been historically a bit lazy in taking care of how I store json data - 
> so mostly it works but some times I get a different result on the server than 
> I do locally on OSX. I suspect this is due to encoding differences in how the 
> data is stored and which characters are in the json. I’d like to standardise 
> on utf8 encoded json as my text storage of choice, and use a standard way to 
> store this while in Livecode I parse the json and just deal with arrays.
>
> As I understand it I should really be using textEncode and textDecode() - and 
> I should store the utf8 encoded json files using “binfile:” not “file:” - 
> however this is not what the dictionary entry fo textEncode() illustrates:
> > quote_type
> > put textEncode(field "output","UTF-8") into tOutput
> > put tOutput into url ("file:output.txt")
>
> So if I want to implement best practice in storing utf8 encoded json locally 
> on Mac, on mobile and on unix servers according to:
> > quote_type
> > The textEncode function takes text, and returns it as binary data, encoded 
> > with the specified encoding.
> > It is highly recommended that any time you interface with things outside 
> > LiveCode (files, network sockets, processes, etc) that you explicitly 
> > textEncode any text you send outside LiveCode and textDecode all text 
> > received into LiveCode. If this doesnt happen, a platform-dependent 
> > encoding will be used (which normally does not support Unicode text).
>
> How should I do that? Should I not do something like this (in pseudocode):
> > quote_type
> > function fetchFromUrl jsonURL
> >   put url someURL into utf8JSON
> >   put textDecode(jsonURL, "UTF-8") into encodedJSON
> >   put json_ToArray (encodedJSON) into someArray
> >   return someArray
> > end fetchFromUrl
> >
> > command exportToUrl someArray, jsonURL
> >   put json_FromArray (someArray) into encodedJSON
> >   put textEncode(encodedJSON, "UTF-8") into decodedJSON
> >   put decodedJSON into url someURL
> > end exportToUrl
>
> And. If so - should I be using “binfile:” or “file:” for writing to the file 
> system?
>
>     Schedule a call with me
___
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


Best practice storing json?

2021-08-15 Thread David Bovill via use-livecode
I’ve been historically a bit lazy in taking care of how I store json data - so 
mostly it works but some times I get a different result on the server than I do 
locally on OSX. I suspect this is due to encoding differences in how the data 
is stored and which characters are in the json. I’d like to standardise on utf8 
encoded json as my text storage of choice, and use a standard way to store this 
while in Livecode I parse the json and just deal with arrays.

As I understand it I should really be using textEncode and textDecode() - and I 
should store the utf8 encoded json files using “binfile:” not “file:” - however 
this is not what the dictionary entry fo textEncode() illustrates:
> quote_type
> put textEncode(field "output","UTF-8") into tOutput
> put tOutput into url ("file:output.txt")

So if I want to implement best practice in storing utf8 encoded json locally on 
Mac, on mobile and on unix servers according to:
> quote_type
> The textEncode function takes text, and returns it as binary data, encoded 
> with the specified encoding.
> It is highly recommended that any time you interface with things outside 
> LiveCode (files, network sockets, processes, etc) that you explicitly 
> textEncode any text you send outside LiveCode and textDecode all text 
> received into LiveCode. If this doesnt happen, a platform-dependent encoding 
> will be used (which normally does not support Unicode text).

How should I do that? Should I not do something like this (in pseudocode):
> quote_type
> function fetchFromUrl jsonURL
>   put url someURL into utf8JSON
>   put textDecode(jsonURL, "UTF-8") into encodedJSON
>   put json_ToArray (encodedJSON) into someArray
>   return someArray
> end fetchFromUrl
>
> command exportToUrl someArray, jsonURL
>   put json_FromArray (someArray) into encodedJSON
>   put textEncode(encodedJSON, "UTF-8") into decodedJSON
>   put decodedJSON into url someURL
> end exportToUrl

And. If so - should I be using “binfile:” or “file:” for writing to the file 
system?

    Schedule a call with me
___
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


Livecode Electron-style App

2021-07-28 Thread David Bovill via use-livecode
I’m researching for an article on Livecode and javascript for electron-style 
applications. Would really love some examples to work from, especially around:

• Bidirectional javascript communication
• Custom url schema for browser integration

I have a few examples gleaned from the forum and this list, but ti would be 
great to see a good example of interacting with a useful javascript library in 
the browser - any examples out there?

Also I’m digging up how we might provide some form of link in the browser that 
opens a Livecode app - I remember doing this many years ago, but about to 
re-engage :)

    Schedule a call with me
___
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: Levure Dataview: hiding rows

2021-07-01 Thread David Bovill via use-livecode
Thanks Bob - I’ll go ahead and do that. In the documentation for DataViews 
there is some mention of “hiding” and “HideRowControl”  - so I wanted to check 
that there is not a better way. For now I’ll keep the original data and then 
set the dvData of what I need to different filtered arrays.

    Schedule a call with me
On 1 Jul 2021, 16:12 +0100, Bob Sneidar via use-livecode 
, wrote:
> Delete the row data??
>
> Bob S
>
>
> > On Jul 1, 2021, at 01:16 , David Bovill via use-livecode 
> >  wrote:
> >
> > I took a look at the code to try and work out if hiding rows is a thing / 
> > supported - but find only a private handler.
> >
> > Trevor what is the recommended technique for providing views of a DataView 
> > with hidden rows?
>
>
> ___
> 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


Re: Levure Dataview: hiding rows

2021-07-01 Thread David Bovill via use-livecode
I took a look at the code to try and work out if hiding rows is a thing / 
supported - but find only a private handler.

Trevor what is the recommended technique fir providing views of a DataView with 
hidden rows?

    Schedule a call with me
On 24 Jun 2021, 12:46 +0100, David Bovill , wrote:
> Im exploring how to hide a row in Levure Dataview. I can delete the row and 
> reset the dvData - but that seems overkill. On GitHub there is a mention of 
> HideRowControl?
>
> I’m running into the limits of the documentation for Dataview. Any ideas?
>
>     Schedule a call with me
> On 22 Jun 2021, 05:08 +0100, David Bovill , wrote:
> > Hah - hey thanks for that Sean. The recipe feels a bit like going to the 
> > government and filling in forms in triplicate to get your life back :)
> >
> >     Schedule a call with me
> > On 22 Jun 2021, 03:15 +0100, Sean Cole (Pi) via use-livecode 
> > , wrote:
> > > Hi David,
> > >
> > > iOS 'fir' / 'for' issue.
> > >
> > > I don't know if this already got answered elsewhere in the thread. There
> > > are two easy fixes for this.
> > >
> > > 1. In Notes, type 'Fir always' then select the word 'Fir' and from the
> > > pop-up menu select 'replace...' then replace with 'For'. Delete the line 
> > > of
> > > text and repeat nine times.
> > > Now repeat this whole thing but use the phrase 'Once fir all'. If this
> > > corrects to 'for' right away then it is already fixed. Otherwise, continue
> > > using this phrase replacing 'fir' with 'for'.
> > >
> > > 2. If this still does not fix it, in
> > > Settings>General>Keyboard>TextReplacement>, add 'fir' with the replacement
> > > 'for'.
> > >
> > > (3. Or, go to Settings>General>Reset>ResetKeyboardDictionary, but that is
> > > the last resort.)
> > >
> > > All the best
> > >
> > > Sean
> > >
> > >
> > > On Mon, 21 Jun 2021 at 20:33, David Bovill via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > >
> > > > I’d like to add an image background to a Dataview, so that is scrolls
> > > > alongside the rows.
> > > >
> > > > Any pointers?
> > > >
> > > >  Schedule a call with me
> > > > On 11 Jun 2021, 18:01 +0100, David Bovill , 
> > > > wrote:
> > > > > So I got visual feedback from drag-and-drop using the Levure DataView
> > > > following instructions at:
> > > > >
> > > > > • https://github.com/trevordevore/levurehelper-dataview
> > > > >
> > > > > I add the following code to the DataView:
> > > > > > quote_type
> > > > > > on dragStart
> > > > > > set the dvDragImageRow of me to item 1 of the dvHilitedRows of me
> > > > > > set the dvTrackDragReorder[the dvHilitedRows of me] of me to true
> > > > > > set the dragData["private"] to the dvHilitedRows of me # dragdata 
> > > > > > has
> > > > to be set to something.
> > > > > > end dragStart
> > > > > >
> > > > > > on ValidateRowDrop pDraggingInfoA, pProposedRow, 
> > > > > > pProposedDropOperation
> > > > > > put "Dragging" && pProposedRow && pProposedDropOperation
> > > > > > return true
> > > > > > end ValidateRowDrop
> > > > > >
> > > > > > on AcceptRowDrop pDraggingInfoA, pRow, pDropOperation
> > > > > > put "Dropped" && pRow && pDropOperation
> > > > > > end AcceptRowDrop
> > > > > >
> > > > > But the ValidateRowDrop message does not get sent, also I don’t get 
> > > > > any
> > > > visual feedback with a "drop indicator" (the line that shows you where 
> > > > the
> > > > drop will occur) - any idea?
> > > > >
> > > > >  Schedule a call with me
> > > > > On 11 Jun 2021, 16:03 +0100, David Bovill ,
> > > > wrote:
> > > > > > Yeah sorry about the typo - sent from mobile. I meant Levure - as
> > > > Trevor is the main man with the drag stuff and having differenr styles 
> > > > for
> > > > rows is a must.
> > > > > >
> > > > > > NB on the typo front I have a distant memory that aeons ago when I
> > > > fi

Levure Dataview: hiding rows

2021-06-24 Thread David Bovill via use-livecode
Im exploring how to hide a row in Levure Dataview. I can delete the row and 
reset the dvData - but that seems overkill. On GitHub there is a mention of 
HideRowControl?

I’m running into the limits of the documentation for Dataview. Any ideas?

    Schedule a call with me
On 22 Jun 2021, 05:08 +0100, David Bovill , wrote:
> Hah - hey thanks for that Sean. The recipe feels a bit like going to the 
> government and filling in forms in triplicate to get your life back :)
>
>     Schedule a call with me
> On 22 Jun 2021, 03:15 +0100, Sean Cole (Pi) via use-livecode 
> , wrote:
> > Hi David,
> >
> > iOS 'fir' / 'for' issue.
> >
> > I don't know if this already got answered elsewhere in the thread. There
> > are two easy fixes for this.
> >
> > 1. In Notes, type 'Fir always' then select the word 'Fir' and from the
> > pop-up menu select 'replace...' then replace with 'For'. Delete the line of
> > text and repeat nine times.
> > Now repeat this whole thing but use the phrase 'Once fir all'. If this
> > corrects to 'for' right away then it is already fixed. Otherwise, continue
> > using this phrase replacing 'fir' with 'for'.
> >
> > 2. If this still does not fix it, in
> > Settings>General>Keyboard>TextReplacement>, add 'fir' with the replacement
> > 'for'.
> >
> > (3. Or, go to Settings>General>Reset>ResetKeyboardDictionary, but that is
> > the last resort.)
> >
> > All the best
> >
> > Sean
> >
> >
> > On Mon, 21 Jun 2021 at 20:33, David Bovill via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > I’d like to add an image background to a Dataview, so that is scrolls
> > > alongside the rows.
> > >
> > > Any pointers?
> > >
> > >  Schedule a call with me
> > > On 11 Jun 2021, 18:01 +0100, David Bovill , wrote:
> > > > So I got visual feedback from drag-and-drop using the Levure DataView
> > > following instructions at:
> > > >
> > > > • https://github.com/trevordevore/levurehelper-dataview
> > > >
> > > > I add the following code to the DataView:
> > > > > quote_type
> > > > > on dragStart
> > > > > set the dvDragImageRow of me to item 1 of the dvHilitedRows of me
> > > > > set the dvTrackDragReorder[the dvHilitedRows of me] of me to true
> > > > > set the dragData["private"] to the dvHilitedRows of me # dragdata has
> > > to be set to something.
> > > > > end dragStart
> > > > >
> > > > > on ValidateRowDrop pDraggingInfoA, pProposedRow, 
> > > > > pProposedDropOperation
> > > > > put "Dragging" && pProposedRow && pProposedDropOperation
> > > > > return true
> > > > > end ValidateRowDrop
> > > > >
> > > > > on AcceptRowDrop pDraggingInfoA, pRow, pDropOperation
> > > > > put "Dropped" && pRow && pDropOperation
> > > > > end AcceptRowDrop
> > > > >
> > > > But the ValidateRowDrop message does not get sent, also I don’t get any
> > > visual feedback with a "drop indicator" (the line that shows you where the
> > > drop will occur) - any idea?
> > > >
> > > >  Schedule a call with me
> > > > On 11 Jun 2021, 16:03 +0100, David Bovill ,
> > > wrote:
> > > > > Yeah sorry about the typo - sent from mobile. I meant Levure - as
> > > Trevor is the main man with the drag stuff and having differenr styles for
> > > rows is a must.
> > > > >
> > > > > NB on the typo front I have a distant memory that aeons ago when I
> > > first got an iPhone I said yes to the spelling “fir”. Ever since then all
> > > my devices seem to love this word - anyone have an idea how to correct 
> > > this
> > > auto typing flaw?
> > > > >
> > > > >  Schedule a call with me
> > > > > On 11 Jun 2021, 15:05 +0100, Klaus major-k via use-livecode <
> > > use-livecode@lists.runrev.com>, wrote:
> > > > > > Hi David,
> > > > > >
> > > > > > > Am 11.06.2021 um 15:58 schrieb David Bovill via use-livecode <
> > > use-livecode@lists.runrev.com>:
> > > > > > >
> > > > > > > Is there a simple demo out there that shows how drag-reordering of
> > > rows in a dataview works? Is this feature experimental? Got a d

Re: SVG Library

2021-06-24 Thread David Bovill via use-livecode
Thanks for the info. Until now I’ve been displaying SVGs in the browser widget 
- you might want to try that for more advanced SVGs?

I was thinking more of creating svgs using LiveCode. My use case is multiple 
coloured lines - I don’t want to use too many graphic controls so I thought I’d 
create a single SVG.

I want D3 for LiveCode :)

    Schedule a call with me
On 22 Jun 2021, 14:11 +0100, Bleiler, Timothy via use-livecode 
, wrote:
> I’d like to do the same thing David. I ran into the following problems on 
> MacOS 11.3 with all versions of Livecode 9.
>
> I tried using Pixelmator and Inkscape. Pixelmator Pro worked ok but most of 
> its effects don’t export to SVG. I haven’t been able to get Inkscape to work.
>
> There is a confirmed bug (https://quality.livecode.com/show_bug.cgi?id=23216) 
> in Livecode 9 that cause linear and radial gradients to fail to render.
>
> Livecode has no support for any SVG effects filters but simpler SVG files 
> work well.
>
> I’m hoping the bug is fixed soon and then at least basic SVG will be 
> supported again. The SVG files do look much better when scaled up than .png 
> or .jpg. and you can avoid having to store all the different sizes of files 
> when trying to minimize the scaling problem.
>
>
> Tim Bleiler, Ph.D.
> Instructional Designer, HSIT
> University at Buffalo
>
> On Jun 22, 2021, at 1:52 AM, David Bovill via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
>
> I’d like to be able to construct SVG’s easily that work with 
> DrawingSvgCompile. Any thoughts?
>
>  Schedule a call with me
> ___
> 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
> 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


SVG Library

2021-06-21 Thread David Bovill via use-livecode
I’d like to be able to construct SVG’s easily that work with DrawingSvgCompile. 
Any thoughts?

    Schedule a call with me
___
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: Levure Dataview: adding a scrolling background

2021-06-21 Thread David Bovill via use-livecode
Hah - hey thanks for that Sean. The recipe feels a bit like going to the 
government and filling in forms in triplicate to get your life back :)

    Schedule a call with me
On 22 Jun 2021, 03:15 +0100, Sean Cole (Pi) via use-livecode 
, wrote:
> Hi David,
>
> iOS 'fir' / 'for' issue.
>
> I don't know if this already got answered elsewhere in the thread. There
> are two easy fixes for this.
>
> 1. In Notes, type 'Fir always' then select the word 'Fir' and from the
> pop-up menu select 'replace...' then replace with 'For'. Delete the line of
> text and repeat nine times.
> Now repeat this whole thing but use the phrase 'Once fir all'. If this
> corrects to 'for' right away then it is already fixed. Otherwise, continue
> using this phrase replacing 'fir' with 'for'.
>
> 2. If this still does not fix it, in
> Settings>General>Keyboard>TextReplacement>, add 'fir' with the replacement
> 'for'.
>
> (3. Or, go to Settings>General>Reset>ResetKeyboardDictionary, but that is
> the last resort.)
>
> All the best
>
> Sean
>
>
> On Mon, 21 Jun 2021 at 20:33, David Bovill via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > I’d like to add an image background to a Dataview, so that is scrolls
> > alongside the rows.
> >
> > Any pointers?
> >
> >  Schedule a call with me
> > On 11 Jun 2021, 18:01 +0100, David Bovill , wrote:
> > > So I got visual feedback from drag-and-drop using the Levure DataView
> > following instructions at:
> > >
> > > • https://github.com/trevordevore/levurehelper-dataview
> > >
> > > I add the following code to the DataView:
> > > > quote_type
> > > > on dragStart
> > > > set the dvDragImageRow of me to item 1 of the dvHilitedRows of me
> > > > set the dvTrackDragReorder[the dvHilitedRows of me] of me to true
> > > > set the dragData["private"] to the dvHilitedRows of me # dragdata has
> > to be set to something.
> > > > end dragStart
> > > >
> > > > on ValidateRowDrop pDraggingInfoA, pProposedRow, pProposedDropOperation
> > > > put "Dragging" && pProposedRow && pProposedDropOperation
> > > > return true
> > > > end ValidateRowDrop
> > > >
> > > > on AcceptRowDrop pDraggingInfoA, pRow, pDropOperation
> > > > put "Dropped" && pRow && pDropOperation
> > > > end AcceptRowDrop
> > > >
> > > But the ValidateRowDrop message does not get sent, also I don’t get any
> > visual feedback with a "drop indicator" (the line that shows you where the
> > drop will occur) - any idea?
> > >
> > >  Schedule a call with me
> > > On 11 Jun 2021, 16:03 +0100, David Bovill ,
> > wrote:
> > > > Yeah sorry about the typo - sent from mobile. I meant Levure - as
> > Trevor is the main man with the drag stuff and having differenr styles for
> > rows is a must.
> > > >
> > > > NB on the typo front I have a distant memory that aeons ago when I
> > first got an iPhone I said yes to the spelling “fir”. Ever since then all
> > my devices seem to love this word - anyone have an idea how to correct this
> > auto typing flaw?
> > > >
> > > >  Schedule a call with me
> > > > On 11 Jun 2021, 15:05 +0100, Klaus major-k via use-livecode <
> > use-livecode@lists.runrev.com>, wrote:
> > > > > Hi David,
> > > > >
> > > > > > Am 11.06.2021 um 15:58 schrieb David Bovill via use-livecode <
> > use-livecode@lists.runrev.com>:
> > > > > >
> > > > > > Is there a simple demo out there that shows how drag-reordering of
> > rows in a dataview works? Is this feature experimental? Got a deadline fir
> > Monday considering taking the plunge?
> > > > >
> > > > > Levite Dataview? 8-)
> > > > > Sure you do not mean LC datagrid?
> > > > >
> > > > > >  Schedule a call with me
> > > > >
> > > > > No. :-D
> > > > >
> > > > >
> > > > > Best
> > > > >
> > > > > Klaus
> > > > > --
> > > > > Klaus Major
> > > > > https://www.major-k.de
> > > > > https://www.major-k.de/bass
> > > > > kl...@major-k.de
> > > > >
> > > > >
> > > > > ___
> > > > > 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
___
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


Levure Dataview: adding a scrolling background

2021-06-21 Thread David Bovill via use-livecode
I’d like to add an image background to a Dataview, so that is scrolls alongside 
the rows.

Any pointers?

    Schedule a call with me
On 11 Jun 2021, 18:01 +0100, David Bovill , wrote:
> So I got visual feedback from drag-and-drop using the Levure DataView 
> following instructions at:
>
> • https://github.com/trevordevore/levurehelper-dataview
>
> I add the following code to the DataView:
> > quote_type
> > on dragStart
> >  set the dvDragImageRow of me to item 1 of the dvHilitedRows of me
> >  set the dvTrackDragReorder[the dvHilitedRows of me] of me to true
> >  set the dragData["private"] to the dvHilitedRows of me # dragdata has to 
> > be set to something.
> > end dragStart
> >
> > on ValidateRowDrop pDraggingInfoA, pProposedRow, pProposedDropOperation
> >  put "Dragging" && pProposedRow && pProposedDropOperation
> >  return true
> > end ValidateRowDrop
> >
> > on AcceptRowDrop pDraggingInfoA, pRow, pDropOperation
> >  put "Dropped" && pRow && pDropOperation
> > end AcceptRowDrop
> >
> But the ValidateRowDrop message does not get sent, also I don’t get any 
> visual feedback with a "drop indicator" (the line that shows you where the 
> drop will occur) - any idea?
>
>     Schedule a call with me
> On 11 Jun 2021, 16:03 +0100, David Bovill , wrote:
> > Yeah sorry about the typo - sent from mobile. I meant Levure -  as Trevor 
> > is the main man with the drag stuff and having differenr styles for rows is 
> > a must.
> >
> > NB on the typo front I have a distant memory that aeons ago when I first 
> > got an iPhone I said yes to the spelling “fir”.  Ever since then all my 
> > devices seem to love this word - anyone have an idea how to correct this 
> > auto typing flaw?
> >
> >     Schedule a call with me
> > On 11 Jun 2021, 15:05 +0100, Klaus major-k via use-livecode 
> > , wrote:
> > > Hi David,
> > >
> > > > Am 11.06.2021 um 15:58 schrieb David Bovill via use-livecode 
> > > > :
> > > >
> > > > Is there a simple demo out there that shows how drag-reordering of rows 
> > > > in a dataview works? Is this feature experimental? Got a deadline fir 
> > > > Monday considering taking the plunge?
> > >
> > > Levite Dataview? 8-)
> > > Sure you do not mean LC datagrid?
> > >
> > > >  Schedule a call with me
> > >
> > > No. :-D
> > >
> > >
> > > Best
> > >
> > > Klaus
> > > --
> > > Klaus Major
> > > https://www.major-k.de
> > > https://www.major-k.de/bass
> > > kl...@major-k.de
> > >
> > >
> > > ___
> > > 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


Re: Regular crash: Dictionary (API)

2021-06-21 Thread David Bovill via use-livecode
Anyone point me too an alternative Dictionary  - too many regular crashes using 
the built in one?

    Schedule a call with me
On 11 Jun 2021, 19:46 +0100, David Bovill , wrote:
> For several years I have a regular crash when opening the `Dictionary (API)` 
> - wondering the cause. Everything else works as normal - latest MacOs and 
> Livecode - spinning coloured ball and now dictionary stack displayed  - 
> requires force quit. Doing that now. Third time today.
>
>     Schedule a call with me
___
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


Display Youtube video

2021-06-12 Thread David Bovill via use-livecode
Does anyone have any code to display a Youtube video. As far as I understand 
the only way to do this is to request an html embed code from the Youtube api 
based on the id of the video. The browser widget then could display this html. 
Has anyone done this and can share a code snippet?

    Schedule a call with me
___
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


Regular crash: Dictionary (API)

2021-06-11 Thread David Bovill via use-livecode
For several years I have a regular crash when opening the `Dictionary (API)` - 
wondering the cause. Everything else works as normal - latest MacOs and 
Livecode - spinning coloured ball and now dictionary stack displayed  - 
requires force quit. Doing that now. Third time today.

    Schedule a call with me
___
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: Levure Dataview drag-reordering

2021-06-11 Thread David Bovill via use-livecode
So I got visual feedback from drag-and-drop using the Levure DataView following 
instructions at:

• https://github.com/trevordevore/levurehelper-dataview

I add the following code to the DataView:
> quote_type
> on dragStart
>  set the dvDragImageRow of me to item 1 of the dvHilitedRows of me
>  set the dvTrackDragReorder[the dvHilitedRows of me] of me to true
>  set the dragData["private"] to the dvHilitedRows of me # dragdata has to be 
> set to something.
> end dragStart
>
> on ValidateRowDrop pDraggingInfoA, pProposedRow, pProposedDropOperation
>  put "Dragging" && pProposedRow && pProposedDropOperation
>  return true
> end ValidateRowDrop
>
> on AcceptRowDrop pDraggingInfoA, pRow, pDropOperation
>  put "Dropped" && pRow && pDropOperation
> end AcceptRowDrop
>
But the ValidateRowDrop message does not get sent, also I don’t get any visual 
feedback with a "drop indicator" (the line that shows you where the drop will 
occur) - any idea?

    Schedule a call with me
On 11 Jun 2021, 16:03 +0100, David Bovill , wrote:
> Yeah sorry about the typo - sent from mobile. I meant Levure -  as Trevor is 
> the main man with the drag stuff and having differenr styles for rows is a 
> must.
>
> NB on the typo front I have a distant memory that aeons ago when I first got 
> an iPhone I said yes to the spelling “fir”.  Ever since then all my devices 
> seem to love this word - anyone have an idea how to correct this auto typing 
> flaw?
>
>     Schedule a call with me
> On 11 Jun 2021, 15:05 +0100, Klaus major-k via use-livecode 
> , wrote:
> > Hi David,
> >
> > > Am 11.06.2021 um 15:58 schrieb David Bovill via use-livecode 
> > > :
> > >
> > > Is there a simple demo out there that shows how drag-reordering of rows 
> > > in a dataview works? Is this feature experimental? Got a deadline fir 
> > > Monday considering taking the plunge?
> >
> > Levite Dataview? 8-)
> > Sure you do not mean LC datagrid?
> >
> > >  Schedule a call with me
> >
> > No. :-D
> >
> >
> > Best
> >
> > Klaus
> > --
> > Klaus Major
> > https://www.major-k.de
> > https://www.major-k.de/bass
> > kl...@major-k.de
> >
> >
> > ___
> > 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


Re: Levure Dataview drag-reordering

2021-06-11 Thread David Bovill via use-livecode
Yeah sorry about the typo - sent from mobile. I meant Levure -  as Trevor is 
the main man with the drag stuff and having differenr styles for rows is a must.

NB on the typo front I have a distant memory that aeons ago when I first got an 
iPhone I said yes to the spelling “fir”.  Ever since then all my devices seem 
to love this word - anyone have an idea how to correct this auto typing flaw?

    Schedule a call with me
On 11 Jun 2021, 15:05 +0100, Klaus major-k via use-livecode 
, wrote:
> Hi David,
>
> > Am 11.06.2021 um 15:58 schrieb David Bovill via use-livecode 
> > :
> >
> > Is there a simple demo out there that shows how drag-reordering of rows in 
> > a dataview works? Is this feature experimental? Got a deadline fir Monday 
> > considering taking the plunge?
>
> Levite Dataview? 8-)
> Sure you do not mean LC datagrid?
>
> >  Schedule a call with me
>
> No. :-D
>
>
> Best
>
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
>
>
> ___
> 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


Levite Dataview drag-reordering

2021-06-11 Thread David Bovill via use-livecode
Is there a simple demo out there that shows how drag-reordering of rows in a 
dataview works? Is this feature experimental? Got a deadline fir Monday 
considering taking the plunge?

    Schedule a call with me
___
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: Browser Widget Issue

2021-05-26 Thread David Bovill via use-livecode
Thanks Keith - the issue is with the HTML5 that uses modern webrtc standards 
for video - either the javascript is excluding the type of embedded framework 
Livecode is no using on MacOS - or the framework doesn’t;t yet support those. 
Features - I’d like to check - but not sure what Livecode is using under the 
hood. Would be nice if it were in the dictionary entry.
On 25 May 2021, 18:11 +0100, Keith Clarke via use-livecode 
, wrote:
> Hi David,
> Pass on the framework, but regarding the page…
>
> FWIW from the message box, I was able to set the url of widget ‘Browser’ to 
> "https://obs.ninja” (apparently empty...) but then put the htmltext of widget 
> “Browser” to see that there is indeed some content.
>
> So, it’s not scripting itself to hide and there’s some content & potential to 
> investigate why it’s rendering as 'white on white'. However, only inline 
> styling is available as AFAIK there’s no dev tools nor access to any 
> downloaded css files, wherever resources might get cached by the LC browser 
> widget…?
>
> Good luck,
> Keith
>
> > On 25 May 2021, at 17:53, David Bovill via use-livecode 
> >  wrote:
> >
> > I’m having trouble keeping track of which framework the browser widget uses 
> > - on MacOS is it using webkit or Chromium?
> >
> > A url I am trying to access is blank - https://obs.ninja - while it is 
> > showing in Safari and Chrome on the desktop - any suggestions?
> > ___
> > 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


Browser Widget Issue

2021-05-25 Thread David Bovill via use-livecode
I’m having trouble keeping track of which framework the browser widget uses - 
on MacOS is it using webkit or Chromium?

A url I am trying to access is blank - https://obs.ninja  - while it is showing 
in Safari and Chrome on the desktop - any suggestions?
___
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


Contact Library for Address Book on MacOS

2021-05-09 Thread David Bovill via use-livecode
I’m looking to create an address book on MacOS and mobile and I see that there 
is no built in functionality on desktop. I’ve used AppleScript before for this 
- but a long time ago. Is there a library hanging around for this for MacOS or 
Windows?
___
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


Rust

2021-04-28 Thread David Bovill via use-livecode
I need to interface with an open-source project that is being ported to rust 
(from C++). I would like to make an extensions library to add new syntax to my 
scripts.

Is the way to go to create some C code that interfaces with rust - 
https://docs.rust-embedded.org/book/interoperability/rust-with-c.html

Or?
___
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: On the dangers of automated refactoring

2021-04-13 Thread David Bovill via use-livecode
Hence the value of crowd-funding a version of the LiveCode language for the 
Graalvm.

I spend a great deal of my time in LiveCode refactoring and renaming handlers. 
I’ve done this not so much because it is useful to my productivity, but because 
I see a method in the madness of spaghetti code that is worth exploring with 
the tools of collaborative authoring. I’d be interested to understand the 
nature of the gazillion stack project to see how it compares to my gazillion 
stack project (and I presume others). We could learn things by comparing 
approaches.
On 13 Apr 2021, 11:07 +0100, Andre Garzia via use-livecode 
, wrote:
> Hi Folks,
>
> I’ve recently read that long thread that almost got people banned and will 
> not comment on it. What I want to comment on is about the kernel of the 
> activity that was mentioned there: refactoring.
>
> Often in LiveCode (and most programming languages to be honest) we go coding 
> for a long while and then realise that our code need extensive refactoring. 
> We may have repeated a pattern over and over again and discovered that we 
> need to change every instance of them, or something similar.
>
> There are small cases of refactoring, such as renaming a variable in a single 
> script, that can be easily (and quite safely) be done with find & replace 
> tools. Others are much more complex and attempting to do it over multiple 
> scripts on a large project will result in crying and maybe needing a drink or 
> hug.
>
> An example of a really smart IDE that is considered the most advanced in 
> terms of refactoring are the ones based on JetBrains IDEA such as IDEA 
> itself, Android Studio, webStorms, etc. A key part of these IDEs to do 
> refactoring is that they have deep knowledge about the source code being 
> written. The code is constantly parsed and assembled in a AST that is exposed 
> internally for the refactoring tools. When you refactor code in these IDEs, 
> you’re not really working with text, you’re telling the IDE to manipulate a 
> tree in ways the IDE knows how to manipulate such tree. That is why when you 
> “rename a symbol” or “extract selected code into method in enclosing scope” 
> or whatever you do in these IDEs, you end up with the expected result.
>
> Find and Replace dialogs, or even custom plugins in LiveCode, don’t have the 
> same advanced capabilities. You’re usually working with text and hoping that 
> whatever RegEx you’re applying is error-free. And by error-free I don’t mean 
> it is a “valid regex”, I mean that “it does what you expect, and your 
> expectations are correct”. It is very hard to apply script transformations 
> like that, you can’t be sure they’ll work for every little replacement, and 
> for the cases where it doesn’t work, the bugs introduced might be too subtle 
> to notice. Let me tell you folks a recent story in which I tried to do 
> exactly that and shot myself on the foot.
>
> I’m dealing with a very large LC app. Very large, thousands and thousands of 
> lines spread in a gazilion stacks, behaviors, and libraries. Some of these 
> files needed refactoring. Among the various tasks I needed to do was to apply 
> our “variable naming scheme” to the scripts because there were variables 
> using the wrong prefixes.
>
> Naturally, I tried being smart with find & replace. Even going as far as 
> extracting the script into an editor with more features —such as RegEx 
> replacing— and trying my best to identify and replace the names I needed with 
> vast swoops of RegEx.
>
> All the replacements worked like I wrote them.
>
> What I didn’t realise was that there was variable shadowing happening in 
> which handler arguments were named with the same name as script-local 
> variables, my smart replacing removed those arguments because there was no 
> need to redeclare the script-local vars. I didn’t realise at that time, that 
> those variables were real arguments being passed to the handlers, they just 
> happened to have the same name as script-local vars in the same script and 
> were in fact shadowing them.
>
> I broke all the source code. It took me a long time to work out which 
> handlers needed arguments, and which didn’t need and were actually using the 
> script-local vars.
>
> I tried being smart fixing broken code, and for a while it became more broken.
>
> Refactoring is hard.
>
> We don’t have a system to create and manipulate LC AST.
>
> We don’t even have unit testing libraries so that we can make sure our code 
> works as expected.
>
> Avoid large automated refactoring at all cost, it is not worth it. Do it 
> manually. It will be slower, but it will be safer.
>
> Best
> A
> ___
> 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

Re: Wasm and the LC Roadmap

2021-02-17 Thread David Bovill via use-livecode
Wasm is a pretty mature target by now. Most of the projects I work with already 
have deployments using wasm on either the server side or the client side. 
ASP.NET and Blazer is making quite a stir. It’s not the sort of - let’s deploy 
it now thing - but when looking at a partnership between several institutions 
each with their own projects - wasm provides a relatively solid basis fir 
glueing the pieces together - regardless (more or less) of the language if 
choice of the collaborator.

   
 
   ***
   

   \\   //  
\\\//  ***
  \\\
   |||//   ,
   |__/
,,,//\,,o==o
;

Schedule a meeting using this link.
Writing and media work on Media Garden.

LinkedIn: David Bovill
Twitter: @fortyfoxes
On 17 Feb 2021, 15:44 +, Andre Garzia via use-livecode 
, wrote:
> Let me begin by saying that WASM is not a silver bullet. I know this doesn’t 
> happen on our community, and that David is not mentioning WASM as a magical 
> solution for HTML5 deployment.
>
> A bit of context is needed to understand why WASM is important and cool. In 
> the past, many C/C++ to Web solutions were based on emscripten which is a 
> toolset based on LLVM that can output C/C++ code in something called “ASM.js” 
> which is a very compact JavaScript source code that kinda does what the C/C++ 
> was doing. This is how people ported the “Unreal Engine” to the web for 
> example. Be aware that ASM.js doesn’t deal with graphics and stuff, that 
> still web technologies. It is just very good at number crunching and makes it 
> possible to reuse C/C++ code.
>
> The main drawbacks from ASM.js (which can be felt on the HTML5 deployment) is 
> that the file sizes are huge. Just imagine a compiler that instead of 
> generating native binary code is generating actual equivalent JavaScript 
> code. This presents two problems for the user, first is the lengthy file 
> transfer needed to download all that content to the users browser, second is 
> the time it takes for the JS engine to actually parse those large files.
>
> These problems are mitigated by WASM. WebAssembly grew out of the working 
> groups that were developing ASM.js. It is a bytecode format, so it is smaller 
> than the equivalent JS file. It is also a standardized VM, which means it 
> executes the same in all browsers that support it. Another cute trick it can 
> do is that is can start loading the bytecode in the VM while it is 
> transferring (aka loading while streaming) which means that by the time the 
> transfer completes, a huge portion of that code is already loaded.
>
> Not only this speeds up the user experience, but having a well-defined VM 
> makes it easier for language developers to target it instead of the ASM.js 
> hacks.
>
> The same toolset that produces ASM.js can produce WASM. It should be natural 
> evolution for the HTML5 deployment to switch from ASM.js based to WASM based. 
> This doesn’t make it magical though, this switch alone will not make LC work 
> on the browser beyond what they’re currently doing. It needs more work, but 
> it should yield smaller files which makes it a better experience.
>
> > On 17 Feb 2021, at 15:30, Graham Samuel via use-livecode 
> >  wrote:
> >
> > Well done Klaus, I was still Googling it! I am in fact looking at articles 
> > (e.g. https://blog.bitsrc.io/whats-wrong-with-web-assembly-3b9abb671ec2 
> > <https://blog.bitsrc.io/whats-wrong-with-web-assembly-3b9abb671ec2>) that 
> > suggest that despite some very significant users (Google Earth is one), 
> > wasm hasn’t exactly conquered the universe in the three years since it was 
> > launched.
> >
> > Would LC users benefit and/or would it be a massive diversion of scarce 
> > development effort? Anyone have any idea?
> >
> > Graham
> >
> > > On 17 Feb 2021, at 15:19, Klaus major-k via use-livecode 
> > >  wrote:
> > >
> > > To all who are also not familiar witht the gazillion abbreviations,
> > > David is talking about -> WebaSseMbly :-)
> > >
> > > > Am 17.02.2021 um 16:13 schrieb David Bovill via use-livecode 
> > > > :
> > > >
> > > > Anyone know the wasm plans?
> > > >
> > > > I’m Woking on a project in collaboration with a number of other 
> > > > platforms and partners that are using wasm. Would like to play in the 
> > > > same place with LiveCode.
> > > >
> > > > 
> > > > ***

Wasm and the LC Roadmap

2021-02-17 Thread David Bovill via use-livecode
Anyone know the wasm plans?

I’m Woking on a project in collaboration with a number of other platforms and 
partners that are using wasm. Would like to play in the same place with 
LiveCode.

   
 
   ***
   

   \\   //  
\\\//  ***
  \\\
   |||//   ,
   |__/
,,,//\,,o==o
;

Schedule a meeting using this link.
Writing and media work on Media Garden.

LinkedIn: David Bovill
Twitter: @fortyfoxes
___
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: xAPI in LiveCode with xAPI Cohort Meeting #2 2/10/21 1:30 EST to 4 PM EST

2021-02-10 Thread David Bovill via use-livecode
I’ll be there towards the end I hop. Have a meeting clash for the start 
unfortunately…. Have started work on the API.
On 10 Feb 2021, 00:17 +, Brian K. Duck via use-livecode 
, wrote:
> I’m hopeful that you will be able to attend part, or all, of this meeting 
> time.
>
> Please continue to mark your availability in When2Meet, url below.
> > https://www.when2meet.com/?10983382-E3NWh 
> > 
> There is another opportunity tomorrow for meeting time from 1:30 PM to 4 PM 
> EST. The times are broken into 1/2 hour blocks within When2Meet, and there is 
> a maximum of 2 people that have conflicts. Based on the information in 
> When2Meet, I have blocked time in zoom starting 2/10 at 1:30 PM EST.
>
> As I am in possession of a free Zoom account, the meeting scheduling is 
> limited to 30 minute blocks. I will update the xAPI Cohort Slack for 
> Team-xAPI-in-LiveCode with zoom credentials during the event.
>
> I will also paste the follow on Zoom meetings into the chat during the 
> meeting.
>
> The FIRST block of Zoom meeting is here:
>
> Topic: xAPI in LiveCode #2 Zoom Meeting, Part 1
> Time: Feb 10, 2021 01:30 PM America/Detroit
>
> Join Zoom Meeting
> https://us04web.zoom.us/j/71113499164?pwd=OE9ERTMwZ09iZityTlVPOS9JVVl2Zz09
>
> Meeting ID: 711 1349 9164
> Passcode: m465Fz
>
> During this time, we'll recap what we covered in Meeting #1, ask for 
> introductions, and look at the strategy of using LiveCode as a Learning 
> Record Provider. With the added time, we may be able to open the LiveCode 
> project and discuss how LiveCode is sending a statement to the LRS.
>
> This meeting will be recorded for those who cannot attend, or will be offline 
> for part of the meeting.
>
> Brian
>
> Bduck a t Mac do t com
> ___
> 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


Re: installing and running LC on 'headless' linux server

2021-01-31 Thread David Bovill via use-livecode
Mark that is interesting. I would like to something similar during the Learning 
Cohort coding sprint over the next 12 weeks.

I’d be happy to write up documentation and create a community GitHub project 
around that approach including Nginx config etc?

   
 
   ***
   

   \\   //  
\\\//  ***
  \\\
   |||//   ,
   |__/
,,,//\,,o==o
;

Schedule a meeting using this link.
Writing and media work on Media Garden.

LinkedIn: David Bovill
Twitter: @fortyfoxes
On 31 Jan 2021, 16:07 +, Mark Talluto via use-livecode 
, wrote:
> One more thought came to mind. You should run the executable in the
> background by applying an & as in this example:
>
>
> ./yourCoolExecutable -ui &
>
>
> If you run the executable from terminal and you do not apply the & the
> executable will die as terminal quits.
>
>
> Best regards,
>
>
> Mark Talluto
>
> livecloud.io
>
> nursenotes.net
>
> canelasoftware.com 
> ___
> 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


Re: Fwd: xAPI in LiveCode (was Cmi5 eLearning Standard in LiveCode)

2021-01-22 Thread David Bovill via use-livecode
We've switched to:

   - https://us02web.zoom.us/j/6819268068

For the second half of the meeting.

On Fri, 22 Jan 2021 at 14:07, David Bovill  wrote:

> Im in the waiting room?
> On 22 Jan 2021, 13:58 +, David Bovill , wrote:
>
> I’m here :- but only occasionally in email) See you in a minute!
> On 22 Jan 2021, 05:56 +, Brian K. Duck via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
>
> Copy to the list...
>
> Begin forwarded message:
>
> From: "Brian K. Duck" 
> Subject: Re: xAPI in LiveCode (was Cmi5 eLearning Standard in LiveCode)
> Date: January 22, 2021 at 12:52:40 AM EST
> To: Martin Koob , David Bovill ,
> Brian Duck 
> Cc: i...@mac.com, Alex , chi...@themartinz.com,
> Henry Ryng , Bryan Anderson 
>
> I’ve not heard back that David can make the meeting or host the zoom, with
> that in mind, I’ll make the first Zoom meeting for. 9 AM EST later this
> morning, and if we run out of time, I’ll schedule another and share via
> email and chat.
>
> Brian
>
> Brian Duck is inviting you to a scheduled Zoom meeting.
>
> Topic: xAPI in LiveCode - Zoom Meeting
> Time: Jan 22, 2021 09:00 AM America/Detroit
>
> Join Zoom Meeting
> https://us04web.zoom.us/j/76771139503?pwd=UGRpWno1b0d6c1hPUlRUY0pTdmtzZz09
> <
> https://us04web.zoom.us/j/76771139503?pwd=UGRpWno1b0d6c1hPUlRUY0pTdmtzZz09
> >
>
> Meeting ID: 767 7113 9503
> Passcode: g95CH6
>
> On Jan 21, 2021, at 4:51 PM, Brian K. Duck  bd...@mac.com>> wrote:
>
> Martin, et al.
>
> I see both Friday 9-11 am EST and Tuuesday 9-11 am as good working times.
>
> David Boville has offered his premium Zoom account, so I’ve forwarded
> meeting notices to him to see if he is available.
>
> If anyone has a PRO/paid zoom account and may be able to host meetings,
> please let me know - it seems we may be best served with 2 hour work
> sessions. These are longer than the 40 minute free account allows, and it’s
> a challenge to get going, only to be kicked out of the room and get
> everyone to rejoin.
>
> I should have said this sooner: one major drawback of When2Meet is that I
> don’t see email addresses for those who add their time, but don’t respond
> to this group.
> If you are interested, please send email Il directly to bduck at mac dot
> com, and we’ll get you on this list.
>
> We’ve also had some interest from the CMI5 working group, they meet
> Fridays at 10:30 EST, so there is overlap with their meeting.
>
> Sent from my iPad,
> Brian Duck
>
> On Jan 21, 2021, at 2:18 PM, Martin Koob  mk...@rogers.com>> wrote:
>
> Hi Brian
>
> I put my availability for https://www.when2meet.com/?10756300-eiYV4 <
> https://www.when2meet.com/?10756300-eiYV4> Mine overlaps with yours and
> Henk’s availability on Friday Jan 22, 2021 9:30 am - 10:00 am EST and on
> Tuesday Jan 26, 2021 from 9:30 am - 10:45 am EST
>
> Anyone else available at those times?
>
> Martin
>
>
> On Jan 19, 2021, at 11:53 AM, Brian K. Duck  bd...@mac.com>> wrote:
>
>
> Please take the time to sign in to When2Meet at this URL, and let us know
> when you are available for week #2 of xAPI in LiveCode:
> xAPI in LiveCode (Week 2)
>
> https://www.when2meet.com/?10756300-eiYV4 <
> https://www.when2meet.com/?10756300-eiYV4>
>
> Thanks for your attention,
>
>
>
>
> ___
> 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


Re: Fwd: xAPI in LiveCode (was Cmi5 eLearning Standard in LiveCode)

2021-01-22 Thread David Bovill via use-livecode
Im in the waiting room?
On 22 Jan 2021, 13:58 +, David Bovill , wrote:
> I’m here :- but only occasionally in email) See you in a minute!
> On 22 Jan 2021, 05:56 +, Brian K. Duck via use-livecode 
> , wrote:
> > Copy to the list...
> >
> > > Begin forwarded message:
> > >
> > > From: "Brian K. Duck" 
> > > Subject: Re: xAPI in LiveCode (was Cmi5 eLearning Standard in LiveCode)
> > > Date: January 22, 2021 at 12:52:40 AM EST
> > > To: Martin Koob , David Bovill 
> > > , Brian Duck 
> > > Cc: i...@mac.com, Alex , chi...@themartinz.com, 
> > > Henry Ryng , Bryan Anderson 
> > >
> > > I’ve not heard back that David can make the meeting or host the zoom, 
> > > with that in mind, I’ll make the first Zoom meeting for. 9 AM EST later 
> > > this morning, and if we run out of time, I’ll schedule another and share 
> > > via email and chat.
> > >
> > > Brian
> > >
> > > Brian Duck is inviting you to a scheduled Zoom meeting.
> > >
> > > Topic: xAPI in LiveCode - Zoom Meeting
> > > Time: Jan 22, 2021 09:00 AM America/Detroit
> > >
> > > Join Zoom Meeting
> > > https://us04web.zoom.us/j/76771139503?pwd=UGRpWno1b0d6c1hPUlRUY0pTdmtzZz09
> > >  
> > > 
> > >
> > > Meeting ID: 767 7113 9503
> > > Passcode: g95CH6
> > >
> > > > On Jan 21, 2021, at 4:51 PM, Brian K. Duck  > > > > wrote:
> > > >
> > > > Martin, et al.
> > > >
> > > > I see both Friday 9-11 am EST and Tuuesday 9-11 am as good working 
> > > > times.
> > > >
> > > > David Boville has offered his premium Zoom account, so I’ve forwarded 
> > > > meeting notices to him to see if he is available.
> > > >
> > > > If anyone has a PRO/paid zoom account and may be able to host meetings, 
> > > > please let me know - it seems we may be best served with 2 hour work 
> > > > sessions. These are longer than the 40 minute free account allows, and 
> > > > it’s a challenge to get going, only to be kicked out of the room and 
> > > > get everyone to rejoin.
> > > >
> > > > I should have said this sooner: one major drawback of When2Meet is that 
> > > > I don’t see email addresses for those who add their time, but don’t 
> > > > respond to this group.
> > > > If you are interested, please send email Il directly to bduck at mac 
> > > > dot com, and we’ll get you on this list.
> > > >
> > > > We’ve also had some interest from the CMI5 working group, they meet 
> > > > Fridays at 10:30 EST, so there is overlap with their meeting.
> > > >
> > > > Sent from my iPad,
> > > > Brian Duck
> > > >
> > > > > On Jan 21, 2021, at 2:18 PM, Martin Koob  > > > > > wrote:
> > > > >
> > > > > Hi Brian
> > > > >
> > > > > I put my availability for https://www.when2meet.com/?10756300-eiYV4 
> > > > >  Mine overlaps with yours 
> > > > > and Henk’s availability on Friday Jan 22, 2021 9:30 am - 10:00 am EST 
> > > > > and on Tuesday Jan 26, 2021 from 9:30 am - 10:45 am EST
> > > > >
> > > > > Anyone else available at those times?
> > > > >
> > > > > Martin
> > > > >
> > > > >
> > > > > > On Jan 19, 2021, at 11:53 AM, Brian K. Duck  > > > > > > wrote:
> > > > > >
> > > > > >
> > > > > > Please take the time to sign in to When2Meet at this URL, and let 
> > > > > > us know when you are available for week #2 of xAPI in LiveCode:
> > > > > > xAPI in LiveCode (Week 2)
> > > > > >
> > > > > > https://www.when2meet.com/?10756300-eiYV4 
> > > > > > 
> > > > > >
> > > > > > Thanks for your attention,
> > > > >
> > >
> >
> > ___
> > 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


Re: Fwd: xAPI in LiveCode (was Cmi5 eLearning Standard in LiveCode)

2021-01-22 Thread David Bovill via use-livecode
I’m here :- but only occasionally in email) See you in a minute!
On 22 Jan 2021, 05:56 +, Brian K. Duck via use-livecode 
, wrote:
> Copy to the list...
>
> > Begin forwarded message:
> >
> > From: "Brian K. Duck" 
> > Subject: Re: xAPI in LiveCode (was Cmi5 eLearning Standard in LiveCode)
> > Date: January 22, 2021 at 12:52:40 AM EST
> > To: Martin Koob , David Bovill , 
> > Brian Duck 
> > Cc: i...@mac.com, Alex , chi...@themartinz.com, 
> > Henry Ryng , Bryan Anderson 
> >
> > I’ve not heard back that David can make the meeting or host the zoom, with 
> > that in mind, I’ll make the first Zoom meeting for. 9 AM EST later this 
> > morning, and if we run out of time, I’ll schedule another and share via 
> > email and chat.
> >
> > Brian
> >
> > Brian Duck is inviting you to a scheduled Zoom meeting.
> >
> > Topic: xAPI in LiveCode - Zoom Meeting
> > Time: Jan 22, 2021 09:00 AM America/Detroit
> >
> > Join Zoom Meeting
> > https://us04web.zoom.us/j/76771139503?pwd=UGRpWno1b0d6c1hPUlRUY0pTdmtzZz09 
> > 
> >
> > Meeting ID: 767 7113 9503
> > Passcode: g95CH6
> >
> > > On Jan 21, 2021, at 4:51 PM, Brian K. Duck  > > > wrote:
> > >
> > > Martin, et al.
> > >
> > > I see both Friday 9-11 am EST and Tuuesday 9-11 am as good working times.
> > >
> > > David Boville has offered his premium Zoom account, so I’ve forwarded 
> > > meeting notices to him to see if he is available.
> > >
> > > If anyone has a PRO/paid zoom account and may be able to host meetings, 
> > > please let me know - it seems we may be best served with 2 hour work 
> > > sessions. These are longer than the 40 minute free account allows, and 
> > > it’s a challenge to get going, only to be kicked out of the room and get 
> > > everyone to rejoin.
> > >
> > > I should have said this sooner: one major drawback of When2Meet is that I 
> > > don’t see email addresses for those who add their time, but don’t respond 
> > > to this group.
> > > If you are interested, please send email Il directly to bduck at mac dot 
> > > com, and we’ll get you on this list.
> > >
> > > We’ve also had some interest from the CMI5 working group, they meet 
> > > Fridays at 10:30 EST, so there is overlap with their meeting.
> > >
> > > Sent from my iPad,
> > > Brian Duck
> > >
> > > > On Jan 21, 2021, at 2:18 PM, Martin Koob  > > > > wrote:
> > > >
> > > > Hi Brian
> > > >
> > > > I put my availability for https://www.when2meet.com/?10756300-eiYV4 
> > > >  Mine overlaps with yours 
> > > > and Henk’s availability on Friday Jan 22, 2021 9:30 am - 10:00 am EST 
> > > > and on Tuesday Jan 26, 2021 from 9:30 am - 10:45 am EST
> > > >
> > > > Anyone else available at those times?
> > > >
> > > > Martin
> > > >
> > > >
> > > > > On Jan 19, 2021, at 11:53 AM, Brian K. Duck  > > > > > wrote:
> > > > >
> > > > >
> > > > > Please take the time to sign in to When2Meet at this URL, and let us 
> > > > > know when you are available for week #2 of xAPI in LiveCode:
> > > > > xAPI in LiveCode (Week 2)
> > > > >
> > > > > https://www.when2meet.com/?10756300-eiYV4 
> > > > > 
> > > > >
> > > > > Thanks for your attention,
> > > >
> >
>
> ___
> 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


Re: Cmi5 eLearning Standard in LiveCode MEETING TODAY AT 1 PM EST

2021-01-20 Thread David Bovill via use-livecode
I like this conversation on list - I don’t consider it spam.

Martin are there elements of Videolinkwell that you would consider useful as a 
community library?
On 19 Jan 2021, 19:10 +, David V Glasgow via use-livecode 
, wrote:
> I intended to comment on list, because I was impressed with Videolinkwell and 
> thought folks on the list might be interested!
>
> I watched the videos and think your app is really cool and worthwhile.
>
> There! I did it again!
>
> David G
>
> > On 19 Jan 2021, at 5:37 pm, Martin Koob  wrote:
> >
> > Hi List.
> > 
> >
> > I didn't mean to spam everyone with this. I did not notice I was conversing 
> > with David G thru the use-LiveCode list till just now. We can take this 
> > offline.
> >
> > But since you now have the links you can do a trial of my software. Curious 
> > what people think.
> >
> >
>
> ___
> 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


Re: Cmi5 eLearning Standard in LiveCode MEETING TODAY AT 1 PM EST

2021-01-18 Thread David Bovill via use-livecode
See the one I sent?
On 18 Jan 2021, 18:42 +, Martin Koob via use-livecode 
, wrote:
> Hi Brian
>
> Waiting the new link.
>
> Martin
>
> Sent from my iPhone
>
> > On Jan 18, 2021, at 1:34 PM, Martin Koob via use-livecode 
> >  wrote:
> >
> > Hi.
> >
> > Sorry I am on a train and trying to connect with my phone with cell and we 
> > are goin thru an area with 3G.
> >
> > If we get back to LTE territory I will try again.
> >
> > I did hear a bit of what David was saying about his use case with playing 
> > videos at different starting points.
> >
> > I am interested in seeing how xAPI and/or Cmi5 can be used to store a 
> > learning record that contains a number of video time points in a video of a 
> > student’s work including current time, start time and end time. I have the 
> > app that records this info. Next step is to create xAPI statements.
> >
> > Another comment I had was that in the Fall 2020 xAPI cohort I joined team 
> > #audio-video
> > Hoping to work on this idea. This team worked on this in past cohorts so 
> > there is work we could build on if we took this on as a project.
> >
> > Can someone post the above to meeting chat?
> >
> > Hopefully I can join back in soon.
> >
> > If not I will watch the recording. Let me know when the next meeting is.
> >
> > Martin
> >
> >
> > Sent from my iPhone
> >
> > > On Jan 18, 2021, at 11:58 AM, Martin Koob via use-livecode 
> > >  wrote:
> > >
> > > Hi.
> > >
> > > I can join the 1:00 pm or 2:00 pm meeting today depending on WiFi access.
> > >
> > > Martin
> > >
> > >
> > > Sent from my iPhone
> > >
> > > > On Jan 18, 2021, at 11:51 AM, Brian K. Duck  wrote:
> > > >
> > > > Hello,
> > > >
> > > > I have scheduled back to back meetings today at 1 PM and 2 Pm, until 
> > > > 2:30, for those who are able to join in zoom:
> > > >
> > > > #2 1/18/21 1 PM EST
> > > >
> > > > Topic: CMI5 in LiveCode Zoom Meeting 1 PM EST
> > > > Time: Jan 18, 2021 01:00 PM America/Detroit
> > > >
> > > > Join Zoom Meeting
> > > > https://us04web.zoom.us/j/75302230176?pwd=dk5TVkRLdWtyU0k1S1diYUpTSlc3Zz09
> > > >
> > > > Meeting ID: 753 0223 0176
> > > > Passcode: Cc0az8
> > > >
> > > > #3 1/18/21 2 PM EST
> > > > Topic: CMI5 In LiveCode Zoom Meeting 2 PM EST
> > > > Time: Jan 18, 2021 02:00 PM America/Detroit
> > > >
> > > > Join Zoom Meeting
> > > > https://us04web.zoom.us/j/76047154315?pwd=cUd2VjVlRmd2UnpvTzE5UGdGaEdoUT09
> > > >
> > > > Meeting ID: 760 4715 4315
> > > > Passcode: JG1CgZ
> > > >
> > > > 1 PM would be best, but I saw at least one conflict with that time.
> > > >
> > > > Later today, I will summarize the notes from these meetings for the 
> > > > list and provide xAPI, CMI5 and LRS references; as well as the gitHub 
> > > > URL to prior LiveCode xAPI Project for #team-MakeyMakey.
> > > >
> > > > General References:
> > > >
> > > > xAPI
> > > >
> > > > xAPI.com
> > > >
> > > > xAPICohort.com
> > > >
> > > >
> > > > CMI5
> > > > https://aicc.github.io/CMI-5_Spec_Current/
> > > >
> > > >
> > > > https://aicc.github.io/CMI-5_Spec_Current/samples/
> > > >
> > > >
> > > > If you are interested, but unable to join these first few meeting, 
> > > > reply to me or the list and I’ll keep you posted...
> > > >
> > > >
> > > > Brian Duck
> > > > Bduck at Mac dot Com
> > > >
> > > > > On Jan 18, 2021, at 10:49 AM, David Bovill  
> > > > > wrote:
> > > > >
> > > > > I’ve done some research, and it looks interesting to create a 
> > > > > LiveCode library that would allow logging of learning events using 
> > > > > the experience Api (xAPI).
> > > > >
> > > > > There are some free servers to use, and hosting our own community 
> > > > > server would also be readable. I feel that any LiveCode developers 
> > > > > with a focus on education would benefit from this library.
> > > > >
> > > > > Do we have a Zoom today Brian?
> > > > > David
> > > ___
> > > 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
___
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: Cmi5 eLearning Standard in LiveCode MEETING TODAY AT 1 PM EST

2021-01-18 Thread David Bovill via use-livecode
Try this Zoom:

• https://us02web.zoom.us/j/6819268068

On 18 Jan 2021, 16:51 +, Brian K. Duck , wrote:
> Hello,
>
> I have scheduled back to back meetings today at 1 PM and 2 Pm, until 2:30, 
> for those who are able to join in zoom:
>
> #2 1/18/21 1 PM EST
>
> Topic: CMI5 in LiveCode Zoom Meeting 1 PM EST
> Time: Jan 18, 2021 01:00 PM America/Detroit
>
> Join Zoom Meeting
> https://us04web.zoom.us/j/75302230176?pwd=dk5TVkRLdWtyU0k1S1diYUpTSlc3Zz09
>
> Meeting ID: 753 0223 0176
> Passcode: Cc0az8
>
> #3 1/18/21 2 PM EST
> Topic: CMI5 In LiveCode Zoom Meeting 2 PM EST
> Time: Jan 18, 2021 02:00 PM America/Detroit
>
> Join Zoom Meeting
> https://us04web.zoom.us/j/76047154315?pwd=cUd2VjVlRmd2UnpvTzE5UGdGaEdoUT09
>
> Meeting ID: 760 4715 4315
> Passcode: JG1CgZ
>
> 1 PM would be best, but I saw at least one conflict with that time.
>
> Later today, I will summarize the notes from these meetings for the list and 
> provide xAPI, CMI5 and LRS references; as well as the gitHub URL to prior 
> LiveCode xAPI Project for #team-MakeyMakey.
>
> General References:
>
> xAPI
>
> xAPI.com
>
> xAPICohort.com
>
>
> CMI5
> https://aicc.github.io/CMI-5_Spec_Current/
>
>
> https://aicc.github.io/CMI-5_Spec_Current/samples/
>
>
> If you are interested, but unable to join these first few meeting, reply to 
> me or the list and I’ll keep you posted...
>
>
> Brian Duck
> Bduck at Mac dot Com
>
> > On Jan 18, 2021, at 10:49 AM, David Bovill  wrote:
> >
> > I’ve done some research, and it looks interesting to create a LiveCode 
> > library that would allow logging of learning events using the experience 
> > Api (xAPI).
> >
> > There are some free servers to use, and hosting our own community server 
> > would also be readable. I feel that any LiveCode developers with a focus on 
> > education would benefit from this library.
> >
> > Do we have a Zoom today Brian?
> > David
___
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: Cmi5 eLearning Standard in LiveCode

2021-01-11 Thread David Bovill via use-livecode
Hi Brian, that sounds interesting. I signed up for the cohort. Would like to 
know what you are thinking of doing with Livecode for this? Maybe we could have 
a Zoom before hand?
On 11 Jan 2021, 03:22 +, Brian K. Duck via use-livecode 
, wrote:
> Roger,
>
> I haven’t done anything with CMI5, yet.
>
> I have been running a project during the FREE xAPI Cohorts, both the 2020 
> Spring & Fall sessions, where we’ve used LiveCode Comunity to send xAPI 
> statements from input received via a MakeyMakey board to an LRS.
>
> The LiveCode for this project is available as a GitHub download, and is 
> usable by LiveCode Community. There are JavaScript libraries that I would 
> like to make available internal to the stack, guidance on internalizing the 
> HTML, CSS, and JavaScript would be appreciated.
>
> The next xAPI Cohort begins February 4th, the live sessions are Thursdays at 
> 2 PM Eastern, and the signup is at: https://xapicohort.com/
>
> Anyone who would like to learn about using LiveCode for xAPI, online learning 
> and assessing training events is invited to join. Once you register for the 
> xAPI Cohort, you will receive information on joining the xAPI Cohort Slack 
> channel, and you should look for the #Discuss-Dev-LiveCode sub group to join, 
> say hello, or reach out to me via slack.
>
> If you like, we could look at building a CMI5 project in LiveCode as a 
> getting started effort.
>
> Sent from my iPad,
> Brian Duck
> ___
> 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


Re: Threads in LC

2021-01-08 Thread David Bovill via use-livecode
I would find it very helpful if we would share some code in this “thread” about 
threads?

At the moment I have a need to break up a heavy indexing task on a LiveCode 
server into a series of smaller steps that execute asynchronously.

The web server receives a webhook  notifying it that there is some new data 
that needs indexing, and should reply immediately notifying receipt of the 
webhook.

This is one of the “easy” cases Bob was referring too I think. But I’m not sure 
until I see and can test the code what the right approach is. Approaches could 
be:

1) In LiveCode server return “put” a response the after use wait / send in time 
to do indexing. Does this work and not lockup the server?

2) Schedule cron jobs with LiveCode

3) Use shell commands such as “at” to schedule a task at a future time.

4) Use tools that can manage spawning of LiveCode server pseudo-threads

While this example might be server centric, I suspect that many of the 
principles carry over to the desktop and it is the most common use case for a 
need for “threads”
On 8 Jan 2021, 10:32 +, Graham Samuel via use-livecode 
, wrote:
> On a purely personal note (does that make it OT?), I think I am beginning to 
> accept, at a pretty advanced age, that just understanding LC coding is not 
> really enough to get stuff done. Linux for example I have managed to avoid, 
> and many other technologies… perhaps learning all this stuff is good use of 
> one’s time in lockdown (I’m in the UK at the moment). Can’t spend all one’s 
> time on the bike trainer…
>
> So, Richard, if you have time to expand a bit on Linux virtual directories, 
> I’d be grateful. But only if you have time.
>
> Graham
>
> > On 8 Jan 2021, at 07:19, Richard Gaskin via use-livecode 
> >  wrote:
> >
> > Peter Bogdanoff wrote:
> >
> > > On Jan 7, 2021, at 3:07 PM, Richard Gaskin wrote:
> > >
> > > > Maybe.
> > > >
> > > > Does your Pi_gpio_output function use file I/O calls to the virtual
> > > > file system in /run, or call an LCB or external using a lower-level
> > > > interface for GPIO?
> > >
> > >
> > > Maybe. Maybe not. In spite of all events, this may be the most
> > > challenging, nay, inscrutable question I have seen this year.
> >
> > From you I'll take that as a compliment. :)
> >
> > If this is interesting I don't mind breaking that down for people who don't 
> > yet spend as much time on the Raspberry Pi. Linux virtual directories are a 
> > pretty nifty invention.
> >
> > --
> > Richard Gaskin
> > Fourth World Systems
> > Software Design and Development for the Desktop, Mobile, and the Web
> > 
> > ambassa...@fourthworld.com http://www.FourthWorld.com
> >
>
>
> ___
> 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


Re: Livecode server configuration: tracking down and Apache redirect

2020-12-20 Thread David Bovill via use-livecode
Thanks for the tips Richard:
On 18 Dec 2020, 21:05 +, Richard Gaskin via use-livecode 
, wrote:
> David Bovill wrote:
>
> > I have a Livecode server running Revigniter under Apache on Ubuntu. I
> > installed it 8 years ago or so, and it is causing redirect problems
> > with files ending in .json. I am assuming that a long time ago a set
> > the configuration somewhere to handle .json files in a particular way,
> > but I can’t track this down. Any thoughts where to look?
>
> Is the redirect a 301, 302, or something else?

The server return 400 Not Found when routing for a *.json file, while 200 OK 
when routing for a *.txt file - all other conditions seem the same.

If I replace “json” with “json” or “xyz” or any arbitrary txt in the 
(Revigniter) routing everything works as expected. The .htaccess in the 
$DOCUMENT_ROOT folder does not mention json file endings.

I suspect there is another file somewhere doing the Apache based redirect?
> Is the returntype appropriate for JSON?

Yes
> Do you see the problem when access from an LC client, a browser, or both?

Both
> > I’m wondering if there is some sort of log that would allow me to know
> > how Apache is handling a faulty redirect? I’m a bit stuck tracking it
> > down.
>
> The Apache logs are at:
> /var/log/apache2/access.log
> /var/log/apache2/error.log

I can’t see information there that will help debug.
___
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


Livecode server configuration: tracking down and Apache redirect

2020-12-18 Thread David Bovill via use-livecode
I have a Livecode server running Revigniter under Apache on Ubuntu. I installed 
it 8 years ago or so, and it is causing redirect problems with files ending in 
.json. I am assuming that a long time ago a set the configuration somewhere to 
handle .json files in a particular way, but I can’t track this down. Any 
thoughts where to look?

I’ve tried the following places so far: .htaccess and 
/etc/apache2/sites-enabled/000-default.conf  which do their job - but no 
mention of .json files.

I’m wondering if there is some sort of log that would allow me to know how 
Apache is handling a faulty redirect? I’m a bit stuck tracking it down.

___
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: Checking a received header for LC Server or revIgniter>

2020-12-17 Thread David Bovill via use-livecode
Fantastic - thanks!

NB I don’t get a result when searching for rigGetHTTPheader in the revIgniter 
docs. I guess it’s not documented?
On 17 Dec 2020, 10:13 +, How to use LiveCode 
, wrote:
>
> rigGetHTTPheader
___
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


Checking a received header for LC Server or revIgniter>

2020-12-16 Thread David Bovill via use-livecode
I’m looking to check for received custom headers on a Livecode + revIgniter 
based server. I know how to set headers, and on the desktop Id use 
libURLLastRHHeaders - but what is the best way to do this on the server?
___
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: Is the DateFormat read only?

2020-11-07 Thread David Bovill via use-livecode
d as anyone else as to what you are trying to do, but just 
> > > in case, this little function seems to work for me to get the ’standard’ 
> > > UTC date format which I have to use in my app to put time stamps into GPX 
> > > files. It apparently produces the correct time zone. Doubtless it could 
> > > be more elegantly coded.
> > >
> > > Hope it helps - who knows?
> > >
> > > Graham
> > >
> > > function fUTCTime
> > > local t1,t2,t3
> > > -- this gets the current time and puts it into UTC format, i.e 
> > > -MM-DDThh:mm:ssTZD
> > > put word 5 to 6 of the internet date into t3 -- we are interested in the 
> > > time and time zone
> > > put the long time into t1
> > > convert t1 to dateItems -- format is ,m,d,h,m,s,day no.
> > > put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 
> > > of t1) &"T" & word 1 of t3 into t2
> > > put word 2 of t3 into t1 -- the time zone indication
> > > get char 1 of t1 — the code for 0 (zero) is Z, apparently
> > > if it <> "+" and it <> "-“ then
> > > put "Z" after t2
> > > else
> > > put t1 after t2
> > > end if
> > > return t2
> > > end fUTCTime
> > >
> > > function f2digits theNum
> > > -- add a leading zero. We don't check if there are more than two digits
> > > if number of chars of theNum = 1 then
> > > return ("0" & theNum)
> > > else
> > > return theNum
> > > end if
> > > end f2digits
> > >
> > >
> > > > On 7 Nov 2020, at 01:34, Alex Tweedly via use-livecode 
> > > >  wrote:
> > > >
> > > > 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 (regardless of the +0300), and 
> > > > therefore your example returns + for you (I assume you're in the 
> > > > UK, or equivalent, now). It does the same for me, and returns the date 
> > > > with "+".
> > > >
> > > > However, the same code run on my LC server (wherever on-rev is these 
> > > > days), changes the +0300 to -0500 - i.e. it's taken as local time where 
> > > > the server is.
> > > >
> > > >
> > > > I assume you should be able to do something with the TimeZone library - 
> > > > but I'm struggling to figure that out.
> > > >
> > > > > local tNow
> > > > > put the seconds into tNow
> > > > > put FromUniversalTime(tNow,"US/Central") into tt
> > > > > put tNow && tt
> > > > > put FromUniversalTime(tNow,"US/Alaska") into tt
> > > > > put CR & tt after msg
> > > > gives me
> > > >
> > > > 1604709030 1604709030
> > > >
> > > > 1604709030
> > > >
> > > > so I don't have a clue what it was trying to do !?!
> > > >
> > > > Alex.
> > > >
> > > > On 06/11/2020 21:28, David Bovill via use-livecode wrote:
> > > > > Why does:
> > > > >
> > > > > get "Fri, 06 Nov 2020 10:57:37 +0300"
> > > > > convert it to internet date
> > > > > put it
> > > > >
> > > > > — give
> > > > > "Fri, 06 Nov 2020 10:57:37 +"
> > > > >
> > > > > Just seems to strip the timezone info?
> > > > > On 30 Oct 2020, 21:29 +, How to use LiveCode 
> > > > > , wrote:
> > > > > > ToUniversalTime
> > > > > ___
> > > > > 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
> > ___
> > 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


Re: Basic question: Time Zone Library

2020-11-07 Thread David Bovill via use-livecode
Thanks Matthias - very helpful. Looks like there is no dictionary entry for 
revLibraryMapping :(
On 6 Nov 2020, 23:11 +, matthias rebbe via use-livecode 
, wrote:
> Hi,
>
> i am not sure if this is still the way how to do it with newer LC Server 
> versions, but at least it still works with LC 9.6.1
>
> First copy the folder of of the time zone library to your server for example 
> into a folder extension
>
> Then, to use the library you'll have to put the following 2 lines before your 
> time zone specific code.
>
> set the revLibraryMapping["tz"] to 
> "/home/ua829968/public_html/livecode.dermattes.de/tz-test/extensions/com.livecode.library.timezone/code/x86_64-linux/tz.so"
> load extension from file 
> "./extensions/com.livecode.library.timezone/module.lcm"
> //here comes your timezone script
>
>
>
> In the first line you define where the needed shared libraries are located. 
> It must contain the complete path to the shared libraries. In the above 
> example the shared library for 64bit Linux is used. The second line then 
> loads the extension.
>
> Mark Waddingham provided that information here 2 years ago
> https://www.mail-archive.com/use-livecode@lists.runrev.com/msg97605.html
>
> Regards,
>
> Matthias
>
>
>
>
>
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
>
> > Am 06.11.2020 um 23:29 schrieb David Bovill via use-livecode 
> > :
> >
> > Just created a handler that I want to use in a Livecode server that uses 
> > the Time Zone Library handler TimeZones(). So:
> >
> > 1. How do I find where the library is?
> > 2. How do I add it so the server code can use it?
> >
> > On 6 Nov 2020, 21:28 +, How to use LiveCode 
> > , wrote:
> > >
> > > ToUniversalTime
> > ___
> > 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


Basic question: Time Zone Library

2020-11-06 Thread David Bovill via use-livecode
Just created a handler that I want to use in a Livecode server that uses the 
Time Zone Library handler TimeZones(). So:

1. How do I find where the library is?
2. How do I add it so the server code can use it?

On 6 Nov 2020, 21:28 +, How to use LiveCode 
, wrote:
>
> ToUniversalTime
___
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: Is the DateFormat read only?

2020-11-06 Thread David Bovill via use-livecode
Why does:

get "Fri, 06 Nov 2020 10:57:37 +0300"
convert it to internet date
put it

— give
"Fri, 06 Nov 2020 10:57:37 +"

Just seems to strip the timezone info?
On 30 Oct 2020, 21:29 +, How to use LiveCode 
, wrote:
>
> ToUniversalTime
___
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: mergeJSON on server problem

2020-11-05 Thread David Bovill via use-livecode
Let me dig into this in more detail with some tests - other data encoding is 
causing problems. Note I only find this on the unix server not with the local 
MacOS version of the same code and data.

I’m going to refer to this stack overflow answer regarding encoding:

https://stackoverflow.com/questions/583562/json-character-encoding-is-utf-8-well-supported-by-browsers-or-should-i-use-nu
On 2 Nov 2020, 09:28 +, Monte Goulding via use-livecode 
, wrote:
>
>
> > On 1 Nov 2020, at 6:21 am, David Bovill via use-livecode 
> >  wrote:
> >
> > Thanks Mark - I may give fastjson a go.
> >
> > I tracked down the problem to the "\u00a0” unicode character in the json I 
> > fetched, which was causing mergeJSON to fail. This hack fixed the issue in 
> > a temporary way.
> > replace "\u00a0” with empty in episodeJson -- hack to remove "¬"
> >
> > Any thoughts on safe encoding of data I fetch fro jsonrpc calls so that it 
> > plays nicely with Livecode?
>
> Hi David
>
> The following seems to work without error:
> put format("[ \"\\u00a0\" ]") into tJSON; get JSONToArray(tJSON); put tJSON 
> && it[1]
>
> Cheers
>
> Monte
> ___
> 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


Re: mergeJSON on server problem

2020-10-31 Thread David Bovill via use-livecode
Thanks Mark - I may give fastjson a go.

I tracked down the problem to the "\u00a0” unicode character in the json I 
fetched, which was causing mergeJSON to fail. This hack fixed the issue in a 
temporary way.
replace "\u00a0” with empty in episodeJson -- hack to remove "¬"

Any thoughts on safe encoding of data I fetch fro jsonrpc calls so that it 
plays nicely with Livecode?
On 31 Oct 2020, 18:29 +, Mark Wieder via use-livecode 
, wrote:
> On 10/31/20 10:27 AM, David Bovill via use-livecode wrote:
> > I use mergeJSON to move back an forth between json and arrays for web 
> > services. It’s currently failing when I fetch json data from another source 
> > on the Ubuntu server, while the same code and data works on MacoS - 
> > presumably due to some encoding issues.
> >
> > It’s a large amount of data and I can’t debug where the issue is easily. 
> > Maybe I can use jsonImport/Export on the server? Not sure. Any thoughts?
>
> Is this any help? Hard to tell without knowing what's failing.
>
> https://quality.livecode.com/show_bug.cgi?id=19698
>
> --
> Mark Wieder
> ahsoftw...@gmail.com
>
> ___
> 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


mergeJSON on server problem

2020-10-31 Thread David Bovill via use-livecode
I use mergeJSON to move back an forth between json and arrays for web services. 
It’s currently failing when I fetch json data from another source on the Ubuntu 
server, while the same code and data works on MacoS - presumably due to some 
encoding issues.

It’s a large amount of data and I can’t debug where the issue is easily. Maybe 
I can use jsonImport/Export on the server? Not sure. Any thoughts?
On 31 Oct 2020, 02:29 +, 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 equation might branch at any point and might even have multiple 
> branches both of which are unknown before plotting.
>
> Of course, there’s always the possibility that I’m not fully comprehending 
> your suggestions??? What does NB stand for? Are you suggesting creating a new 
> polygon every time a branch is detected? That just might work?!
>
> Roger
>
>
> > On Oct 30, 2020, at 4:12 PM, Alex Tweedly via use-livecode 
> >  wrote:
> >
> >
> > 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 (no 
> > > problem)
> > > Then produces 2 different but simultaneous values of y as x progresses 
> > > from 235 to 335. This is the problem as you don’t want the end point of 
> > > the separated lines to connect. If you place an empty line in the points 
> > > after each iteration beyond x = 235 then you end up with the bifurcated 
> > > lines being points rather than a solid line.
> > >
> > > How do plotting programs handle this situation
> >
> >
> > Here are two different ways you could do it.
> >
> > 1. simple - assume there would (could) be two Y values for any x, and just 
> > calculate two series, and combine them for output.
> >
> > 2. harder - for each x value, keep track of the previous y value for each 
> > series, and if necessary, put in a 'skip' plus new value plus skip ...
> >
> > NB makes for a more complex polygon; each new x value after bifurcation 
> > results in 5 lines added to the points.
> >
> > on mouseup
> > local tSeries1, tSeries2, thepoints
> > if the shiftkey is down then
> >
> > -- the easy way - just allow for the possibility of two series of points 
> > all along
> > repeat with i = 35 to 335
> > -- calculate series 1
> > if i < 235 then
> > put i,249  after tSeries1
> > else
> > put i, 249+(i-235)  after tSeries1
> > end if
> > -- calculate series 2
> > if i < 235 then
> > -- do nothing - it's the same as series 1
> > else
> > put i, 249+2*(i-235)  after tSeries2
> > end if
> > end repeat
> >
> > put tSeries1  & tSeries2 into thePoints
> > set the points of grc "X" to thePoints
> > set the foregroundColor of grc "X" to "blue"
> > else
> > -- the harder way - multiple series ...
> > -- does each step for each series ... much more complex polygon, but ...
> > local t1, t2, tLast1, tLast2
> > repeat with i = 35 to 335
> > -- calculate values
> > if i < 235 then
> > put 249 into t1
> > put 249 into t2
> > else
> > put 249+(i-235) into t1
> > put 249+2*(i-235) into t2
> > end if
> > -- put in series 1
> > if tLast1 is not empty then
> > put i-1, tLast1  & i, t1  after thePoints
> > end if
> > -- possibly put in series 2
> > if tLast1 <> tLast2 OR t1 <> t2 then
> > put CR after thePoints -- blank skip over to series 2 value
> > put i-1, tLast2  & i, t2  after thePoints
> > put CR after thePoints -- blank skip back to series 1
> > end if
> > put t1 into tLast1
> > put t2 into tLast2
> > end repeat
> > set the points of grc "X" to thePoints
> > set the foregroundColor of grc "X" to "red"
> > end if
> >
> > end mouseup
> >
> >
> > ___
> > 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


Re: Livecode Podcast Player - earbud click?

2020-10-23 Thread David Bovill via use-livecode
Checking the interaction between earbud clicks (trying two different types of 
earbud) and Livecode - no "appleEvent" message is sent to Livecode. I wonder 
how this interaction works across different apps? Trying on desktop at the 
moment.

So seems like the browser widget is the only way to go. Will test on mobile. 
Anyone have an idea how events are sent to apps from earbuds?
On 23 Oct 2020, 11:27 +0100, JeeJeeStudio via use-livecode 
, wrote:
> From other threads and maybe on the forum similar is done for video of
> which the dev also wanted to catch likewise information when played in
> the browser.
>
> So maybe if you search the list you might find some javascript which
> could help with that.
___
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


  1   2   3   >