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


Livecode Podcast Player - earbud click?

2020-10-23 Thread David Bovill via use-livecode
Yes. I have some old code - seems to still work fetching and parsing RSS 
steams. I’m looking into the best way. To make the player now - browser or 
player widget?

An interesting experiment this morning with earbuds - if I play an mp3 or a 
video in the player object and listen to the sound through the earbuds - 
pressing / clicking the earbuds has no effect on the playback. Using the 
machinery of the browser widget pauses and restarts the playback reliably. I 
want. This feature so I may well choose the browser widget unless I can figure 
out a message that is sent to the. Stack that I can trap?

The issue is that I want to know the “currenttime” when the video is paused - 
this and other features would be easier using the player control. I guess I can 
use javascript if needed?
On 23 Oct 2020, 09:38 +0100, JeeJeeStudio via use-livecode 
, wrote:
> So in fact it needs to retrieve a list of podcast streams, user can pick a
> stream, and then it has to play like an mp3 player. Can be done with either
> the browser or audio player right?
>
> Op vr 23 okt. 2020 10:29 schreef David Bovill via use-livecode <
> use-livecode@lists.runrev.com>:
>
> > I guess not - could not find anything in the forums or email thread.
> > On 21 Oct 2020, 20:17 +0100, JeeJeeStudio via use-livecode <
> > use-livecode@lists.runrev.com>, wrote:
> > > You've just hijacked someone's thread...you said something last time.
> > It's
> > > now a totally different subject.
> >
> > That’s fine :) It’s kind of related to the general subject of community
> > contribution. My understanding is that the general approach to that has not
> > helped produce an organised collection of material - whether this is the
> > documentation, or the library of Livecode components. There is the usual
> > tension between centralised quality control and wiki like easy open
> > community contribution.
> >
> > I agree with Sean that we can all contribute to this, but a little
> > improvement in the architecture that supports such collaboration would also
> > help I believe. It is harder than I think necessary to find stacks and code
> > related to for instance podcasts and RSS feeds. I’m pretty sure that this
> > has been worked on multiple times over the last 10 years, but the
> > combination of forum, email, and resource library does not do justice to
> > what we could achieve.
> >
> > Maybe I’m wrong - and no one has produced a podcast player in Livecode? My
> > understanding is that an easy to contribute set of tools that made it
> > easier to share stacks and code would help here. As I see it the attempts
> > that have been made historically have been somewhat too “closed” for there
> > to the right sort of community contribution.
> >
> > I can mainly speak for my personal experience, but if I produce this
> > podcast player, and various libraries for it - then historically I haven't
> > really see a good way to share that. When I come across errors or
> > improvements I want to make to the dictionary I don’t really see how, or
> > have quite enough faith that my contributions will valued - so I make a
> > note to “do that later” and well - don’t.
> >
> > There is a form of federated architecture for user contributions that
> > looks promising that can help. Essentially the trick is to combine both
> > that ability of people to make their own personal notes / changes and
> > contributions by forking existing material, while also making it very easy
> > to combine these contributions into an editorial synopsis. That way each
> > Livecode author wold have a tool for their own personal productivity use,
> > and the overall community gets the value of the shared content production.
> > Right now the balance between my personal space and the sharing is in an
> > unhealthy state of mediation.
> > ___
> > 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

2020-10-23 Thread David Bovill via use-livecode
On 23 Oct 2020, 10:08 +0100, matthias rebbe via use-livecode 
, wrote:
> I thought one could also create Widgets and submit them to/publish on the 
> Widget store instead of submitting them to be included in the Livecode 
> Release.
> The documentation for the dictionary is in the widget itself. So if the 
> widget contains a documentation file the LC dictionary lists that information 
> as soon as the widget is installed. So if you publish to the widget store, 
> then you should be able to publish your corrections and improvements 
> immediately. Or am i wrong?

I think that is right yes. I’m trying to put into words why many people don’t 
do that, or help fix the documentation. I feel that the reasons people don’t do 
that is understandable and somewhat fixable.
___
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

2020-10-23 Thread David Bovill via use-livecode
I guess not - could not find anything in the forums or email thread.
On 21 Oct 2020, 20:17 +0100, JeeJeeStudio via use-livecode 
, wrote:
> You've just hijacked someone's thread...you said something last time. It's
> now a totally different subject.

That’s fine :) It’s kind of related to the general subject of community 
contribution. My understanding is that the general approach to that has not 
helped produce an organised collection of material - whether this is the 
documentation, or the library of Livecode components. There is the usual 
tension between centralised quality control and wiki like easy open community 
contribution.

I agree with Sean that we can all contribute to this, but a little improvement 
in the architecture that supports such collaboration would also help I believe. 
It is harder than I think necessary to find stacks and code related to for 
instance podcasts and RSS feeds. I’m pretty sure that this has been worked on 
multiple times over the last 10 years, but the combination of forum, email, and 
resource library does not do justice to what we could achieve.

Maybe I’m wrong - and no one has produced a podcast player in Livecode? My 
understanding is that an easy to contribute set of tools that made it easier to 
share stacks and code would help here. As I see it the attempts that have been 
made historically have been somewhat too “closed” for there to the right sort 
of community contribution.

I can mainly speak for my personal experience, but if I produce this podcast 
player, and various libraries for it - then historically I haven't really see a 
good way to share that. When I come across errors or improvements I want to 
make to the dictionary I don’t really see how, or have quite enough faith that 
my contributions will valued - so I make a note to “do that later” and well - 
don’t.

There is a form of federated architecture for user contributions that looks 
promising that can help. Essentially the trick is to combine both that ability 
of people to make their own personal notes / changes and contributions by 
forking existing material, while also making it very easy to combine these 
contributions into an editorial synopsis. That way each Livecode author wold 
have a tool for their own personal productivity use, and the overall community 
gets the value of the shared content production. Right now the balance between 
my personal space and the sharing is in an unhealthy state of mediation.
___
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 Podcast Player

2020-10-21 Thread David Bovill via use-livecode
Does anyone have a stack that plays audio podcasts?
___
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


Datagrid question - variable row templates

2020-10-15 Thread David Bovill via use-livecode
It’s been a while since I used data grids - so I’m wondering if there are any 
new aspects / tricks here that I’m missing.

Requirements
I need a data grid like object to display json data / an array, in which each 
item has a type. So type image or type text etc. Each type should be displayed 
by a different equivalent of a row template.

As far as I know the data grid can’t really do this. I’ve hacked it before by 
creating a row template that has the ability to transfer itself - but this is 
quite a hack and I expect will be too slow for mobile.

Solutions sought?
My thought is that I have to create my. Own. Custom datagrid like group - which 
is naturally quite a lot of work. 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


Re: Is this a bug?

2020-10-15 Thread David Bovill via use-livecode
Oooh thanks!

Fun. Fact. I’ve been living with this bug for a few years - which is why I 
didn’t try deleting the prefs.
On 14 Oct 2020, 09:23 +0100, How to use LiveCode 
, wrote:
>
> /Users//Library/Preferences/RunRev/livecode.rev
> /Users//Library/Preferences/RunRev/livecode7.rev
>
___
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


Is this a bug?

2020-10-13 Thread David Bovill via use-livecode
Does anyone else have this behaviour in MacOs? Note I have no plugins installed 
or loaded in the demo. The same behaviour happens on different laptops.

• https://vimeo.com/466580164

On 9 Oct 2020, 16:33 +0100, Paul Dupuis via use-livecode 
, wrote:
> Sorry,
>
> When I read you posts and saw "windows" I thought you were talking about
> this happening on Microsoft Windows.
>
> I have seen something similar on macOS, but only when you have dual
> monitors and the second monitor has it's top positioned higher than the
> primary monitor.
>
>
>
>
>
>
> On 10/9/2020 10:23 AM, Paul Dupuis via use-livecode wrote:
> > Window 10 has a snap to feature on by default that will try to snap
> > any window of any application to the edges and resize it to have the
> > screen (or perhaps other options) if the windows is being dragged and
> > the mouse moves close to a screen edge. I have not explored the
> > feature fully, so I am not sure of the details.
> >
> >
> >
> > On 10/9/2020 9:48 AM, David Bovill via use-livecode wrote:
> > > I’m getting pretty curious about this bug :)
> > >
> > > Testing  mouse clicks- and not stacks jumping position when moving
> > > their location - I find that a stack that is successfully moved
> > > between the four quadrants of the screen - accepts mouse clicks
> > > accurately in the bottom-left, top-right and bottom right quadrants -
> > > but in the top-eft quadrant the mouse-click interactions are offset
> > > vertically in a way that is compatible with the stack jump. So if you
> > > manage to locate the. Stack without it jumping - in the top-left
> > > quadrant the mouse clicks are off.
> > >
> > > Monitor settings are set for default value of the MacBook Pro
> > > display. I think I’ll make a short video of this behaviour.
> > > On 9 Oct 2020, 14:35 +0100, David Bovill ,
> > > wrote:
> > > > Also tested on Livecode 8.1.5 with same results.
> > > > On 9 Oct 2020, 14:00 +0100, David Bovill ,
> > > > wrote:
> > > > > Windows intermittently jump to a location on the screen when I move
> > > > > windows. It’s got too annoying to ignore.
> > > > >
> > > > > • Is anyone else having this problem?
> > > > >
> > > > > I am testing this on Mojave and Livecode 9.6.1 rc2. I am testing
> > > > > this without any of my own code such just was IDE stacks. This I
> > > > > “think” is quite a long standing bug that I suspect is related to
> > > > > the global coordinate system as I have been working around this for
> > > > > quite a while now.
> > > > >
> > > > >
> > > > > Detail
> > > > > The location of the jump seems to be the same horizontal x
> > > > > location. But with the vertical value being reset to the halfway
> > > > > point.
> > > > >
> > > > > I am testing by. Simply moving the message box. It is intermittent
> > > > > - so occurring about once every 5 moves, and strangely is happening
> > > > > only when the top left of the stack window is within the top left
> > > > > quadrant of the screen. Using. The following code int eh message
> > > > > box I find the top of the message box stack is always 492 after a
> > > > > jump (see below). This appears to be related to half the screen
> > > > > less the decorations like menu?
> > > > > put the screenrect & CR & the rect of stack” Message box"
> > > > >
> > > > > 0,0,1680,1050
> > > > > 215,492,634,640
> > > > > As a further indication that the problem is due to the IDE, I find
> > > > > that creating a test stack (no scripts or controls) exhibits the
> > > > > same behaviour - but this behaviour can be suppressed by choosing
> > > > > “Suppress Messages” from the “Development” menu. This suppression
> > > > > has no effect on the message box or other IDE windows which still
> > > > > jump intermittently.
> > > > >
> > > > > The problem is most intense when working with multiple screens. For
> > > > > at least a couple of years stacks I create and place on second or
> > > > > third monitors receive mouse clicks in the wrong location. This
> > > > > happens on different machines, and different. Monitor setups. Only
> > > > > tested on Macs.
> &

Re: Bug: jumping stack windows (when supress messages is off)

2020-10-13 Thread David Bovill via use-livecode
Sure Mark. This week I’m doing a sprint on this topic - finishing on Sunday. As 
part of that work I’ll be recording more videos in Livecode and will post them 
next week together with some documentation. If you want a quick touch base 
before that I’d be happy to do a Zoom and do a show / tell.
On 11 Oct 2020, 11:37 +0100, Mark Smith , wrote:
> Completely off-topic, but could you post a brief description of how you made 
> that video David (or send me a PM)? I have to do something similar in the 
> near future and it would be good to know what kit/software you recorded with.
>
> Cheers and thanks,
> Mark
>
> > On Oct 9, 2020, at 3:18 PM, David Bovill via use-livecode 
> >  wrote:
> >
> > Here is a video describing the bug - or at least I am assuming it is a bug. 
> > Very curious to see if anyone else is experiencing this issue:
> >
> > • https://vimeo.com/466580164
> >
> > On 9 Oct 2020, 14:48 +0100, David Bovill , wrote:
> > > I’m getting pretty curious about this bug :)
> > >
> > > Testing mouse clicks- and not stacks jumping position when moving their 
> > > location - I find that a stack that is successfully moved between the 
> > > four quadrants of the screen - accepts mouse clicks accurately in the 
> > > bottom-left, top-right and bottom right quadrants - but in the top-eft 
> > > quadrant the mouse-click interactions are offset vertically in a way that 
> > > is compatible with the stack jump. So if you manage to locate the. Stack 
> > > without it jumping - in the top-left quadrant the mouse clicks are off.
> > >
> > > Monitor settings are set for default value of the MacBook Pro display. I 
> > > think I’ll make a short video of this behaviour.
> > > On 9 Oct 2020, 14:35 +0100, David Bovill , wrote:
> > > > Also tested on Livecode 8.1.5 with same results.
> > > > On 9 Oct 2020, 14:00 +0100, David Bovill , 
> > > > wrote:
> > > > >
> > > > > Windows intermittently jump to a location on the screen when I move 
> > > > > windows. It’s got too annoying to ignore.
> > > > >
> > > > > • Is anyone else having this problem?
> > > > >
> > > > > I am testing this on Mojave and Livecode 9.6.1 rc2. I am testing this 
> > > > > without any of my own code such just was IDE stacks. This I “think” 
> > > > > is quite a long standing bug that I suspect is related to the global 
> > > > > coordinate system as I have been working around this for quite a 
> > > > > while now.
> > > > >
> > > > >
> > > > > Detail
> > > > > The location of the jump seems to be the same horizontal x location. 
> > > > > But with the vertical value being reset to the halfway point.
> > > > >
> > > > > I am testing by. Simply moving the message box. It is intermittent - 
> > > > > so occurring about once every 5 moves, and strangely is happening 
> > > > > only when the top left of the stack window is within the top left 
> > > > > quadrant of the screen. Using. The following code int eh message box 
> > > > > I find the top of the message box stack is always 492 after a jump 
> > > > > (see below). This appears to be related to half the screen less the 
> > > > > decorations like menu?
> > > > > put the screenrect & CR & the rect of stack” Message box"
> > > > >
> > > > > 0,0,1680,1050
> > > > > 215,492,634,640
> > > > >
> > > > > As a further indication that the problem is due to the IDE, I find 
> > > > > that creating a test stack (no scripts or controls) exhibits the same 
> > > > > behaviour - but this behaviour can be suppressed by choosing 
> > > > > “Suppress Messages” from the “Development” menu. This suppression has 
> > > > > no effect on the message box or other IDE windows which still jump 
> > > > > intermittently.
> > > > >
> > > > > The problem is most intense when working with multiple screens. For 
> > > > > at least a couple of years stacks I create and place on second or 
> > > > > third monitors receive mouse clicks in the wrong location. This 
> > > > > happens on different machines, and different. Monitor setups. Only 
> > > > > tested on Macs.
> > > > >
> > > > > I am currently creating a multiscreen app - so taking the tracking 
> > > > > down. Of this bug more seriously. The current tests are one on my 
> > > > > laptop without external monitors, and having restarted the computer 
> > > > > (several times). Applications other than Livecode don’t suffer this 
> > > > > problem.
> > > > >
> > > > > How should I report this bug - should I submit a video / screen 
> > > > > recording?
> > > > >
> > ___
> > 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: Bug: jumping stack windows (when supress messages is off)

2020-10-11 Thread David Bovill via use-livecode
Hi Bernd, the bug is not to do with the standard window snap. This is 
unresponsive try to any mouse clicks and a big jump across half the screen 
without any other windows present. Check the video to see.
On 10 Oct 2020, 22:15 +0100, Niggemann, Bernd via use-livecode 
, wrote:
> Hi David,
>
> What I see on Mojave is that e.g. TextEdit or Safari show a similar behavior.
> Open 2 windows in TextEdit. Move one close to the other and they will snap 
> into place, if the tops of those two windows are almost horizontally aligned 
> they will snap into place.
>
> Same goes for Safari with two windows open. And the same happens in the IDE.
> If that is what you describe on a single monitor setup then it is an 
> operating system thing.
>
> Kind regards
> Bernd
> ___
> 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: Bug: jumping stack windows (when supress messages is off)

2020-10-09 Thread David Bovill via use-livecode
Here is a video describing the bug - or at least I am assuming it is a bug. 
Very curious to see if anyone else is experiencing this issue:

• https://vimeo.com/466580164

On 9 Oct 2020, 14:48 +0100, David Bovill , wrote:
> I’m getting pretty curious about this bug :)
>
> Testing  mouse clicks- and not stacks jumping position when moving their 
> location - I find that a stack that is successfully moved between the four 
> quadrants of the screen - accepts mouse clicks accurately in the bottom-left, 
> top-right and bottom right quadrants - but in the top-eft quadrant the 
> mouse-click interactions are offset vertically in a way that is compatible 
> with the stack jump. So if you manage to locate the. Stack without it jumping 
> - in the top-left quadrant the mouse clicks are off.
>
> Monitor settings are set for default value of the MacBook Pro display. I 
> think I’ll make a short video of this behaviour.
> On 9 Oct 2020, 14:35 +0100, David Bovill , wrote:
> > Also tested on Livecode 8.1.5 with same results.
> > On 9 Oct 2020, 14:00 +0100, David Bovill , wrote:
> > >
> > > Windows intermittently jump to a location on the screen when I move 
> > > windows. It’s got too annoying to ignore.
> > >
> > > • Is anyone else having this problem?
> > >
> > > I am testing this on Mojave and Livecode 9.6.1 rc2. I am testing this 
> > > without any of my own code such just was IDE stacks. This I “think” is 
> > > quite a long standing bug that I suspect is related to the global 
> > > coordinate system as I have been working around this for quite a while 
> > > now.
> > >
> > >
> > > Detail
> > > The location of the jump seems to be the same horizontal x location. But 
> > > with the vertical value being reset to the halfway point.
> > >
> > > I am testing by. Simply moving the message box. It is intermittent - so 
> > > occurring about once every 5 moves, and strangely is happening only when 
> > > the top left of the stack window is within the top left quadrant of the 
> > > screen. Using. The following code int eh message box I find the top of 
> > > the message box stack is always 492 after a jump (see below). This 
> > > appears to be related to half the screen less the decorations like menu?
> > > put the screenrect & CR & the rect of stack” Message box"
> > >
> > > 0,0,1680,1050
> > > 215,492,634,640
> > >
> > > As a further indication that the problem is due to the IDE, I find that 
> > > creating a test stack (no scripts or controls) exhibits the same 
> > > behaviour - but this behaviour can be suppressed by choosing “Suppress 
> > > Messages” from the “Development” menu. This suppression has no effect on 
> > > the message box or other IDE windows which still jump intermittently.
> > >
> > > The problem is most intense when working with multiple screens. For at 
> > > least a couple of years stacks I create and place on second or third 
> > > monitors receive mouse clicks in the wrong location. This happens on 
> > > different machines, and different. Monitor setups. Only tested on Macs.
> > >
> > > I am currently creating a multiscreen app - so taking the tracking down. 
> > > Of this bug more seriously. The current tests are one on my laptop 
> > > without external monitors, and having restarted the computer (several 
> > > times). Applications other than Livecode don’t suffer this problem.
> > >
> > > How should I report this bug - should I submit a video / screen recording?
> > >
___
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: Bug: jumping stack windows (when supress messages is off)

2020-10-09 Thread David Bovill via use-livecode
I’m getting pretty curious about this bug :)

Testing  mouse clicks- and not stacks jumping position when moving their 
location - I find that a stack that is successfully moved between the four 
quadrants of the screen - accepts mouse clicks accurately in the bottom-left, 
top-right and bottom right quadrants - but in the top-eft quadrant the 
mouse-click interactions are offset vertically in a way that is compatible with 
the stack jump. So if you manage to locate the. Stack without it jumping - in 
the top-left quadrant the mouse clicks are off.

Monitor settings are set for default value of the MacBook Pro display. I think 
I’ll make a short video of this behaviour.
On 9 Oct 2020, 14:35 +0100, David Bovill , wrote:
> Also tested on Livecode 8.1.5 with same results.
> On 9 Oct 2020, 14:00 +0100, David Bovill , wrote:
> >
> > Windows intermittently jump to a location on the screen when I move 
> > windows. It’s got too annoying to ignore.
> >
> > • Is anyone else having this problem?
> >
> > I am testing this on Mojave and Livecode 9.6.1 rc2. I am testing this 
> > without any of my own code such just was IDE stacks. This I “think” is 
> > quite a long standing bug that I suspect is related to the global 
> > coordinate system as I have been working around this for quite a while now.
> >
> >
> > Detail
> > The location of the jump seems to be the same horizontal x location. But 
> > with the vertical value being reset to the halfway point.
> >
> > I am testing by. Simply moving the message box. It is intermittent - so 
> > occurring about once every 5 moves, and strangely is happening only when 
> > the top left of the stack window is within the top left quadrant of the 
> > screen. Using. The following code int eh message box I find the top of the 
> > message box stack is always 492 after a jump (see below). This appears to 
> > be related to half the screen less the decorations like menu?
> > put the screenrect & CR & the rect of stack” Message box"
> >
> > 0,0,1680,1050
> > 215,492,634,640
> >
> > As a further indication that the problem is due to the IDE, I find that 
> > creating a test stack (no scripts or controls) exhibits the same behaviour 
> > - but this behaviour can be suppressed by choosing “Suppress Messages” from 
> > the “Development” menu. This suppression has no effect on the message box 
> > or other IDE windows which still jump intermittently.
> >
> > The problem is most intense when working with multiple screens. For at 
> > least a couple of years stacks I create and place on second or third 
> > monitors receive mouse clicks in the wrong location. This happens on 
> > different machines, and different. Monitor setups. Only tested on Macs.
> >
> > I am currently creating a multiscreen app - so taking the tracking down. Of 
> > this bug more seriously. The current tests are one on my laptop without 
> > external monitors, and having restarted the computer (several times). 
> > Applications other than Livecode don’t suffer this problem.
> >
> > How should I report this bug - should I submit a video / screen recording?
> >
___
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: Bug: jumping stack windows (when supress messages is off)

2020-10-09 Thread David Bovill via use-livecode
Also tested on Livecode 8.1.5 with same results.
On 9 Oct 2020, 14:00 +0100, David Bovill , wrote:
>
> Windows intermittently jump to a location on the screen when I move windows. 
> It’s got too annoying to ignore.
>
> • Is anyone else having this problem?
>
> I am testing this on Mojave and Livecode 9.6.1 rc2. I am testing this without 
> any of my own code such just was IDE stacks. This I “think” is quite a long 
> standing bug that I suspect is related to the global coordinate system as I 
> have been working around this for quite a while now.
>
>
> Detail
> The location of the jump seems to be the same horizontal x location. But with 
> the vertical value being reset to the halfway point.
>
> I am testing by. Simply moving the message box. It is intermittent - so 
> occurring about once every 5 moves, and strangely is happening only when the 
> top left of the stack window is within the top left quadrant of the screen. 
> Using. The following code int eh message box I find the top of the message 
> box stack is always 492 after a jump (see below). This appears to be related 
> to half the screen less the decorations like menu?
> put the screenrect & CR & the rect of stack” Message box"
>
> 0,0,1680,1050
> 215,492,634,640
>
> As a further indication that the problem is due to the IDE, I find that 
> creating a test stack (no scripts or controls) exhibits the same behaviour - 
> but this behaviour can be suppressed by choosing “Suppress Messages” from the 
> “Development” menu. This suppression has no effect on the message box or 
> other IDE windows which still jump intermittently.
>
> The problem is most intense when working with multiple screens. For at least 
> a couple of years stacks I create and place on second or third monitors 
> receive mouse clicks in the wrong location. This happens on different 
> machines, and different. Monitor setups. Only tested on Macs.
>
> I am currently creating a multiscreen app - so taking the tracking down. Of 
> this bug more seriously. The current tests are one on my laptop without 
> external monitors, and having restarted the computer (several times). 
> Applications other than Livecode don’t suffer this problem.
>
> How should I report this bug - should I submit a video / screen recording?
>
___
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


Bug: jumping stack windows (when supress messages is off)

2020-10-09 Thread David Bovill via use-livecode

Windows intermittently jump to a location on the screen when I move windows. 
It’s got too annoying to ignore.

• Is anyone else having this problem?

I am testing this on Mojave and Livecode 9.6.1 rc2. I am testing this without 
any of my own code such just was IDE stacks. This I “think” is quite a long 
standing bug that I suspect is related to the global coordinate system as I 
have been working around this for quite a while now.


Detail
The location of the jump seems to be the same horizontal x location. But with 
the vertical value being reset to the halfway point.

I am testing by. Simply moving the message box. It is intermittent - so 
occurring about once every 5 moves, and strangely is happening only when the 
top left of the stack window is within the top left quadrant of the screen. 
Using. The following code int eh message box I find the top of the message box 
stack is always 492 after a jump (see below). This appears to be related to 
half the screen less the decorations like menu?
put the screenrect & CR & the rect of stack” Message box"

0,0,1680,1050
215,492,634,640

As a further indication that the problem is due to the IDE, I find that 
creating a test stack (no scripts or controls) exhibits the same behaviour - 
but this behaviour can be suppressed by choosing “Suppress Messages” from the 
“Development” menu. This suppression has no effect on the message box or other 
IDE windows which still jump intermittently.

The problem is most intense when working with multiple screens. For at least a 
couple of years stacks I create and place on second or third monitors receive 
mouse clicks in the wrong location. This happens on different machines, and 
different. Monitor setups. Only tested on Macs.

I am currently creating a multiscreen app - so taking the tracking down. Of 
this bug more seriously. The current tests are one on my laptop without 
external monitors, and having restarted the computer (several times). 
Applications other than Livecode don’t suffer this problem.

How should I report this bug - should I submit a video / screen recording?

___
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 and GPU's

2020-09-12 Thread David Bovill via use-livecode
Thanks Jim - works a treat. Didn’t think this one would be possible.
On 12 Sep 2020, 01:45 +0100, How to use LiveCode 
, wrote:
>
> go stack url "https://netrin.on-rev.com/misc/TransparentStack.livecode;

I can now use this technique to layer elements over things such as the browser 
widget, of player object when playing streaming video. It’s relatively fast so 
for instance typing text in the field and exporting a snapshot with each letter 
types works acceptably.

Graphic processing of live video layers
Out of interest why does live streaming video to a player object or other tools 
(camera control or browser widget) draw directly to the screen? I understand 
this will be faster, but with modern gpu’s other applications do amazing 
things. Does anyone know if this is a complex thing to do in terms of coding - 
or is it just a choice made by developers thinking that layering of things like 
video is not something many people want to do?

Livecode and GPU's
I’ve noticed in these tests that Livecode is not using any GPU’s for doing 
these complex graphic tasks. I have Activity Monitor open and a couple of CPU 
cores are being used but none of the GPU’s. I’m wondering if this is an issue 
for speed, and what is involved with taking advantage of the capabilities of 
GPU’s in the code we write?
___
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: Possible : stack with transparent backgound?

2020-09-10 Thread David Bovill via use-livecode
Yes. Not sure but I think this will nuke all the other layers - I’m hoping that 
an ink on an object can prevent this from being transparent as well. I don’t 
think that is possible/

Use case scrolling text over a live video.
On 10 Sep 2020, 23:13 +0100, Bob Sneidar via use-livecode 
, wrote:
> I believe you can add an alpha channel to mask the stack. I have never done 
> it, but I heard it discussed a number of times.
>
> Bob S
>
>
> > On Sep 10, 2020, at 2:41 PM, David Bovill via use-livecode 
> >  wrote:
> >
> > Id like to create a stack - has to be a stack - and for the text and some 
> > other elements to be visible but the stack background to be transparent - 
> > is this possible with some combination of inks and masks and blend levels?
> > On 2 Sep 2020, 22:03 +0100, Bob Sneidar via use-livecode 
> > , wrote:
> > > It appears I have that backwards?
> > >
> > > Bob S
> > >
> > >
> > > > On Sep 2, 2020, at 8:28 AM, Bob Sneidar  
> > > > wrote:
> > > >
> > > > Ditto, and I am not sure what noticeable impact one method would have 
> > > > over another. There was some blurb a long time ago about how these keys 
> > > > are internally sorted. I believe what was proposed is that a set of 
> > > > NUMERIC keys beginning with 0 would actually sort correctly.
> > > >
> > > > Bob S
> > > >
> > > >
> > > > > On Sep 2, 2020, at 8:24 AM, Ralph DiMola via use-livecode 
> > > > >  wrote:
> > > > >
> > > > > David,
> > > > >
> > > > > Nope you have to sort them NUMERIC. As you said this is the only way 
> > > > > I know of. I do this all the time. I don't know of any other way.
> > > > >
> > > > > put the keys of tMyArray into tKeys
> > > > > sort lines of tKeys numeric
> > > > > repeat for each line tKey in tKeys
> > > > >
> > > > > -- do what you want with tMyArray[tKey]
> > > > > -- this line will put the array data in the message box (assuming 
> > > > > there is no other sub keys in each numeric array entry).
> > > > > put tMyArray[tKey] into tMyVar
> > > > >
> > > > > end repeat
> > > > >
> > > > > Ralph DiMola
> > > > > IT Director
> > > > > Evergreen Information Services
> > > > > rdim...@evergreeninfo.net
> > > > >
> > > > > -Original Message-
> > > > > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
> > > > > Behalf Of David Bovill via use-livecode
> > > > > Sent: Wednesday, September 02, 2020 10:55 AM
> > > > > To: How to use LiveCode
> > > > > Cc: David Bovill
> > > > > Subject: Looping though a numerically indexed array
> > > > >
> > > > > I’m pretty sure there must be a way to efficiently loop through 
> > > > > numerically indexed arrays
> > > > >
> > > > > Repeat for each key and repeat for each element does not seem to sort 
> > > > > the keys in numeric order,. Of course I can get the keys and sort 
> > > > > them before repeating - but is there a more efficient way?
> > > > > ___
> > > > > 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


Possible : stack with transparent backgound?

2020-09-10 Thread David Bovill via use-livecode
Id like to create a stack  - has to be a stack - and for the text and some 
other elements to be visible but the stack background to be transparent - is 
this possible with some combination of inks and masks and blend levels?
On 2 Sep 2020, 22:03 +0100, Bob Sneidar via use-livecode 
, wrote:
> It appears I have that backwards?
>
> Bob S
>
>
> > On Sep 2, 2020, at 8:28 AM, Bob Sneidar  wrote:
> >
> > Ditto, and I am not sure what noticeable impact one method would have over 
> > another. There was some blurb a long time ago about how these keys are 
> > internally sorted. I believe what was proposed is that a set of NUMERIC 
> > keys beginning with 0 would actually sort correctly.
> >
> > Bob S
> >
> >
> > > On Sep 2, 2020, at 8:24 AM, Ralph DiMola via use-livecode 
> > >  wrote:
> > >
> > > David,
> > >
> > > Nope you have to sort them NUMERIC. As you said this is the only way I 
> > > know of. I do this all the time. I don't know of any other way.
> > >
> > > put the keys of tMyArray into tKeys
> > > sort lines of tKeys numeric
> > > repeat for each line tKey in tKeys
> > >
> > > -- do what you want with tMyArray[tKey]
> > > -- this line will put the array data in the message box (assuming there 
> > > is no other sub keys in each numeric array entry).
> > > put tMyArray[tKey] into tMyVar
> > >
> > > end repeat
> > >
> > > Ralph DiMola
> > > IT Director
> > > Evergreen Information Services
> > > rdim...@evergreeninfo.net
> > >
> > > -Original Message-
> > > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
> > > Behalf Of David Bovill via use-livecode
> > > Sent: Wednesday, September 02, 2020 10:55 AM
> > > To: How to use LiveCode
> > > Cc: David Bovill
> > > Subject: Looping though a numerically indexed array
> > >
> > > I’m pretty sure there must be a way to efficiently loop through 
> > > numerically indexed arrays
> > >
> > > Repeat for each key and repeat for each element does not seem to sort the 
> > > keys in numeric order,. Of course I can get the keys and sort them before 
> > > repeating - but is there a more efficient way?
> > > ___
> > > 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: Looping though a numerically indexed array

2020-09-10 Thread David Bovill via use-livecode
Ah that explains it. The extents works but I seem to remember for each is 
considerably faster
On 2 Sep 2020, 16:29 +0100, Brian Milby via use-livecode 
, wrote:
> As long as the array is indexed starting at 1 with no gaps it should work by 
> looping for each element. I just did a quick test to confirm. I built a 100 
> element array and it looped in order. I deleted 2 keys and then it didn’t. I 
> then added those 2 missing keys back and it worked again.
>
> Sent from my iPhone
>
> > On Sep 2, 2020, at 10:55 AM, David Bovill via use-livecode 
> >  wrote:
> >
> > I’m pretty sure there must be a way to efficiently loop through numerically 
> > indexed arrays
> >
> > Repeat for each key and repeat for each element does not seem to sort the 
> > keys in numeric order,. Of course I can get the keys and sort them before 
> > repeating - but is there a more efficient way?
> > ___
> > 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


iOS sharing extension - anyone ever made one?

2020-09-02 Thread David Bovill via use-livecode
I’m still having no joy figuring our how to make a sharing extension for a 
Livecode app. Has anyone ever done this?
On 25 Jun 2020, 21:05 +0100, David Bovill , wrote:
> Having another go at creating an iOS Share extension in Livecode.
>
> Ben I had a go with the code snippets you supplied, but I’m not getting my 
> app appearing in the list of apps available to share. I had a bit of a goose 
> around and tried a bunch of options for the info.plist file without result - 
> well in fact I’m getting the app launching with a black screen and then 
> crashing if I use the following style recipe:
> NSExtension
>  
>  NSExtensionAttributes
>  
>  NSExtensionActivationRule
>  TRUEPREDICATE
>  
>  NSExtensionMainStoryboard
>  MainInterface
>  NSExtensionPointIdentifier
>  com.apple.share-services
>  
>
> This type of plist addition:
> CFBundleDocumentTypes
>   
>   
>   CFBundleTypeName
>   Sound Garden
>   CFBundleTypeRole
>   Editor
>   LSItemContentTypes
>   
>   public.plain-text
>   
>   LSHandlerRank
>   Alternate
>   
>   
>   CFBundleTypeName
>   Audio
>   CFBundleTypeRole
>   Editor
>   LSItemContentTypes
>   
>   public.audio
>   
>   LSHandlerRank
>   Alternate
>   
>   
>
> Does not crash the app - but appears to do nothing? The following lesson 
> appears related - 
> http://lessons.livecode.com/m/4069/l/1069016-associating-a-file-type-file-extension-with-an-lc-ios-app
>  and I note there are / were issues with iPhone X and this lesson.
>
> My basic question is how do I get an iOS app to work with as an iOS sharing 
> extension such that in any app (say a web browser) where I select the share 
> icon I can use my Livecode app as something that handles the share?
> On 20 Nov 2018, 18:40 +, Ben Rubinstein via use-livecode 
> , wrote:
> > You need to do two things:
> >
> > - add code in your app to handle the "urlWakeUp" message, see the dictionary
> > entry and
> > http://lessons.livecode.com/m/4069/l/58672-using-custom-url-schemes
> >
> > - add entries in the app's plist to tell the operating system what file 
> > types
> > your app can handle, see
> > https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685
> >
> > The latter is the bit you need to do for iOS - not sure what the Android
> > equivalent is.
> >
> >
> > On 19/11/2018 20:35, David Bovill via use-livecode wrote:
> > > How could I create the ability for Livecode mobile apps - say iOS but
> > > ideally also on Android) to add the ability for other apps to share to 
> > > them?
> > >
> > > -
> > > https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Share.html
> > >
> > > I can't find any thread here or in the forums?
> > > ___
> > > 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


Looping though a numerically indexed array

2020-09-02 Thread David Bovill via use-livecode
I’m pretty sure there must be a way to efficiently loop through numerically 
indexed arrays

Repeat for each key and repeat for each element does not seem to sort the keys 
in numeric order,. Of course I can get the keys and sort them before repeating 
- but is there a more efficient way?
___
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


System Window Mask Stack (Keyhole effect for stack with Windowshape)

2020-07-31 Thread David Bovill via use-livecode
I’m trying to create a stack which I place in front of stacks which contain 
browser objects and camera controls in order to mask them and create more 
interesting shapes for the video and browser content. The only way to do this I 
believe is to have a stack - let’s call it a “System Window Mask” stack - and 
punch holes though it. A stack level keyhole effect.

Scott if you are there I need your help :)

This stack of Scotts shows the result:

• go url "http://www.tactilemedia.com/download/animated_mask.livecode;

And I’d like a way to generate those masks from graphic objects that I place on 
the “System Window Mask” stack - then export a snapshot - my experiments so far 
are failing.

I can get a polygon to make the stack with code like this:

• export snapshot from graphicObject with effects to img”mask” of me as PNG
• set the windowshape of stack stackName to imageID

But I’d like to reverse the effect - so I get a hole in the shape of the 
graphic. Code like this:

-- set the ink of graphicObject to "blendDstIn"
-- set the ink of myGroup to "blendSrcOver"

Before taking the snapshot is not cutting 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: OAuth2 invalid_grant: Malformed auth code (Google Sheets API)

2020-07-09 Thread David Bovill via use-livecode
Ah - makes sense. Thanks for spotting that Brian.
On 9 Jul 2020, 14:15 +0100, Ben Rubinstein via use-livecode 
, wrote:
> Thanks Brian!
>
> I've patched my copy for now. What a PITA.
>
> Ben
>
> On 09/07/2020 13:29, Brian Milby via use-livecode wrote:
> > Check out bug 22557 / PR 7381.
> >
> > Line 247 of oath2.livecodescript need urlEncode removed
> >
> > Sent from my iPad
> >
> > > On Jul 9, 2020, at 7:33 AM, Ben Rubinstein via use-livecode 
> > >  wrote:
> > >
> > > I had code that did stuff with Google sheets, it worked fine, I haven't 
> > > used it for about nine (?) months. Now it doesn't work.
> > >
> > > To cut a long story short, I've started all over again on a clean base.
> > >
> > > Created a new Client ID at
> > > https://console.developers.google.com/apis/api/sheets.googleapis.com/credentials
> > >
> > > Make the call to Oauth2, with all the parameters from the Google creds, 
> > > get a suitable authorisation screen, all seems to go OK. But the result 
> > > (i.e. 'it') is set to the array:
> > > error: invalid_grant
> > > error_description: Malformed auth code.
> > >
> > > OAuth2 is working for me with other services - e.g. Slack.
> > >
> > > client_id and client_secret contain only a-z, 0-9, full stop and hyphen - 
> > > nothing that might want to be encoded.
> > >
> > > Redirect ID is registered both with and without a slash, because I've 
> > > been caught that way before.
> > >
> > > (My old code had an API Key, but the OAuth2 command doesn't take this as 
> > > a param, so I don't think that's relevant at this point.)
> > >
> > > Is anyone currently using the Google APIs successfully? Has anyone been 
> > > through this before?
> > >
> > > Any help gratefully received,
> > >
> > > Ben
> > >
> > >
> > > ___
> > > 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 Community Site

2020-07-08 Thread David Bovill via use-livecode
Yes - I’m in. My only requirements are that it is done well. Like others have 
said time is limited, so for my part I only want to put effort into quality and 
innovative content. Let me pick through the suggestions from my point of view:

> > Please give me a quick reply
> > 1. If this interests you.
> 2. And If you would like to be involved with it

Yes, yes, yes.
> So I think that unless we are confident that there is enough interest,
> commitment and agreement on goals, we would be better off not even
> starting . Sorry if that sounds negative - but the last thing we need to
> do is to use up the rather scarce resource we have (i.e. our own time)
> on a likely-to-fail effort.

I’m personally confident of interest. This is in part because I know some 
interesting developers, and relevant content. Partly because I’m confident that 
the format can be done in a way that gathers interest. These positive aspects 
come with a potential difference of approach - one which puts content and cross 
cutting interests over an above a pure Livecode focussed site (see below)
> > Here are my goals:
> >
> > For LoveLivecode.com to be a "modern" central hub for:

For my part that brand is not strong enough to attract interest. I also see 
several sites working together in a modern way - to that end I believe we 
should allow anyone to create their own community site and federate these in 
interesting ways.
> Not sure what 'modern' is (or whether I like it :-)  And central could
> mean 'one place for everything' which I think is not practical.

I agree 'one place for everything’  is not practical. My focus would be on ways 
in which federated sites can share content. So I see:

1. A podcast - that uses Livecode to add some interesting features, but 
essentially is something that any Livecode community site can embed and 
collaborate with.
2. A new container based community hosting solution - the solution I’d love to 
work on with people uses Traffic, Federated wiki, and Livecode server. Other 
container based services can be added with a few lines of code. I have a test 
community server up and running - and I think it would be good content to 
evolve that through the podcast and community meet-ups.
3. Exciting community content - new approaches to education etc (my focus is 
climate change and social projects).


> > (Up-to-date) Educational resources
> Yeah, could be possible.

There are a number of projects I’d like to include here. There is a good deal 
of innovative content to draw on, that we can enhance with features provided by 
Livecode tools. It’s all creative commons licensed, and would go with the 
podcast which will also be free culture licensed.
> > Code snippets
> > Sample Files
> Yes, definitely. I think there is a particular gap in this area
> (libraries) but I'll keep that for a possible later detailed discussion.

I’ve got a few libraries for this, and we could go through what is available in 
a community call. At the moment I use Gists, and Github API’s to save code 
snippets and projects from the IDE, and I use Federated wiki to document the 
handlers and code - however we could use Github wiki pages or other solutions. 
Again something better to demo in a community call than describe.
> > Events / Online & Live
> > Community Polls (to help livecode inc to understand us better)
> Yes - I'm sure there is interest for this, even if we are all not sure
> what we want, we really do want something.

> I think this is very important. A lot of the interest would come from 
> communities outside of the Livecode developer community. I work with artists 
> (musicians and film makers), and social projects (educators and people 
> looking at social change) that are interested. They need software tools like 
> Livecode, but their focus is on content.

How about doing a Zoom next week, and see where it goes. I’d be happy to 
present the docker based federated Livecode instance - with a quick demo of 
Github & wiki integration?
___
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 Zoom

2020-07-04 Thread David Bovill via use-livecode
I’m thinking it would be nice to support Livecode Ltd a bit at this time of 
pandemic, and as I’m working full time on creating interesting community 
building experiences using Zoom and related platforms - I thought the best 
thing I could do to help would be to apply these to building interest and 
community around Livecode.
On 3 Jul 2020, 18:57 +0100, Stephen Barncard via use-livecode 
, wrote:
> I'm not sure there's a good reason to integrate Livecode into the Zoom API
> just for the sake of using Livecode to do it. I do like the idea of
> using Zoom for discussions and demonstrations of Livecode technology. All
> anyone needs to do is for the leader to have the lowest level subscription
> to Zoom ($15US) which allows that person to host up to 100 participants. I
> noticed that our last (first?)

Yes - can use my paid for Zoom account and I’ve played with the Zoom API in 
Livecode though like you point out that’s not so important. So just doing an 
interesting fun weekly Zoom call would be the starter for one.
> Zoom online meeting with the mother ship
> there weren't that many participants. It also appears that access to their
> API might not be for ordinary mortals (i.e. $$$). What could we add to
> Zoom that they don't already offer?

I think what would be interesting would be to build some data visualisation 
tools that feedback into the Zoom conversation more interesting visualisations 
that you are able to get with native Zoom tools. So we create some Livecode app 
that can chat with each other to share data, and I can pipe a realtime image of 
a Livecode stack back into the Zoom.  So I imagine a realtime coding experience 
in which the resulting visualisations would be made available live to Zoom 
viewers.

I see this as Livecoders showing off what they can do to a non-Livecode 
audience - that way we can have interesting conversations about subjects of 
interest that could do with a bit of Livecode software magic to make the 
discussions more interactive. That way we can extend the audience to 
non-programmers while having some fun ourselves coding on stuff.
___
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 Zoom

2020-07-03 Thread David Bovill via use-livecode
I’d like to host / take part in a weekly Zoom with other Livecoders. I started 
the Livecode TV thing ages ago now, and this time I think we can do something 
more interesting - but what?

I take part in a couple of regular Zoom gatherings around open source projects 
for a few years now, and It seems a pity not to do it with LiveCode.

I’m thinking of it as a regular drop in, and to integrate LiveCode into how the 
event works. Just not quite sure how. Thing out loud here :)
On 3 Jul 2020, 16:48 +0100, Heriberto Torrado via use-livecode 
, wrote:
> Hi Dan,
>
> The customer cares about the backend, because he wants to be sure he
> will find a livecode hosting company in the future. We will host the web
> page into our own servers.
> We currently offer PHP, Python  and LiveCode hosting.
> I'm honest with my customers and I told him about Livecode backend
> hosting pros & cons.
>
> There are other companies offering LiveCode hosting, but in Spain it is
> not very popular.
>
> It will not be the typical Wordpress webpage, it will be a small Human
> Resources website for their employees.
> It would be easier to do it with Python-Flask or Django, but I'm very
> excited to do it using livecode.
>
> Thank you very much for those links.
>
> Hery
>
> On 7/3/20 8:51 AM, Dan Brown via use-livecode wrote:
> > I'd be surprised if the client cares at all about the websites backend, you
> > might be better off picking a modern frontend framework (bulma,react,vue
> > etc) and showing examples of websites using it.
> >
> > As for the backend, there are some great flat file CMS's that could be
> > managed with livecode scripts ( creating directories, template files, html
> > templates )
> >
> > https://getgrav.org/
> >
> > https://getkirby.com/
> >
> >
> > On Fri, Jul 3, 2020 at 12:43 PM Torsten Holmer via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > Do you know revIgniter, the Livecode Framework for Websites?
> > > https://revigniter.com/
> > >
> > > "Many websites have been successfully built with revIgniter including the
> > > presumably largest Hindu website  in
> > > existence."
> > > https://www.himalayanacademy.com/ 
> > >
> > > Best regards,
> > > Torsten
> > >
> > >
> > > > Am 02.07.2020 um 21:39 schrieb Heriberto Torrado via use-livecode <
> > > use-livecode@lists.runrev.com>:
> > > > Dear LiveCode experts:
> > > >
> > > > I am trying to convince a customer to create their next website with
> > > LiveCode Server instead PHP. The client asks me what other popular sites
> > > are created with LiveCode server.
> > > > I have seen this in the Livecode forums , but it seems to be very old:
> > > >
> > > > https://forums.livecode.com/viewtopic.php?t=15689
> > > >
> > > > Do you know modern websites created with LiveCode?
> > > >
> > > > I have seen that the current LiveCode site runs Wordpress + PHP.
> > > > Do you know why?
> > > > --
> > > >
> > > > Best regards/ Saludos cordiales/ Cordialement
> > > >
> > > > Heriberto Torrado
> > > > ​Chief Technology Officer (CTO)
> > > > ​Director de informática
> > > > Directeur informatique
> > > >
> > > > *NetDreams S.C.*
> > > > http://www.networkdreams.net
> > > >
> > > > Address / Dirección / Adresse:
> > > >
> > > > *USA: *538 East 85th Street, #1C Manhattan NY, NY 10028 USA
> > > > *Europe / Europa: *Paseo de la Castellana 135 10ª Planta Madrid 28024
> > > Spain / España
> > > > *Tel - Phone - Fax:*
> > > >
> > > > Phone / Tel USA : +1 917 287 5644 / +1 646 596 8787
> > > > Phone / Tel Spain :+34 627 556 500 / + 34 91 063 74 48
> > > >
> > > > Please consider the environment before printing this email / Por
> > > favor considera tu responsabilidad medioambiental antes de imprimir esta
> > > página.
> > > > Confidentiality: The information contained in this message as well as
> > > the attached file(s) is confidential/privileged and is only intended for
> > > the person(s) to whom it is addressed. If the reader of this message is 
> > > not
> > > the intended recipient or the employee or agent responsible for delivering
> > > the message to the intended recipient, or you have received this
> > > comunication in error, please be aware that any dissemination, 
> > > distribution
> > > or duplication is strictly prohibited, and can be illegal, and please
> > > notify us immediately and return the original message to us at the address
> > > above. Thank you.
> > > > Confidencialidad: La información contenida en este mensaje y/o
> > > archivo(s) adjunto(s) es confidencial/privilegiada y está destinada a ser
> > > leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este
> > > mensaje y no es el destinatario señalado, el empleado o el agente
> > > responsable de entregar el mensaje al destinatario, o ha recibido esta
> > > comunicación por error, le informamos que está totalmente prohibida, y
> > > puede ser ilegal, cualquier divulgación, distribución o reproducción 

Re: Animation Engine: speed tips

2020-07-02 Thread David Bovill via use-livecode
Here is a short video of a really nice ball animation of the Earth’s Carbon 
Cycle - which is the sort of thing I’d like to make a series of animations / 
interactive simulations about. There a re a few more than 30-40 moving balls 
here - but they are more or less dots….

https://www.youtube.com/watch?v=dwVsD9CiokY

I wonder how many particles can be animated like this in Livecode...
On 2 Jul 2020, 20:53 +0100, David Bovill , wrote:
> That's inspired me :)
>
> I think it may be possible to do what I want in Livecode - which would be 
> great. Thanks Alex and Bernd :)
>
> > On Thu, 2 Jul 2020 at 20:36, Alex Tweedly via use-livecode 
> >  wrote:
> > >
> > > On 01/07/2020 02:52, J. Landman Gay via use-livecode wrote:
> > > > Did you use acceleratedRendering? Set it to true and set the layermode
> > > > of each moving object to dynamic. I'd be curious to see if there's a
> > > > difference.
> > > >
> > > >
> > > Hadn't  tried those until now. There is a difference - but not the kind
> > > I'd hoped for :-)
> > >
> > > Full script is below with detailed time, but the summary is:
> > > - acceleratedRendering made things much worse (50% to 90% slower)
> > > - dynamic layerMode made things a little bit better (5% to 15%).
> > >
> > > If the circle was moving over a plain background, improvement was only
> > > 5%-ish, while if moving over multiple other shapes, it gave a better
> > > improvement.
> > >
> > > Here's the full snippet of the script involved (other cases obvious :-)
> > >
> > > >   set the acceleratedRendering of this stack to false
> > > >    set the layermode of grc "g1" to "static"
> > > >
> > > >    repeat 3 times
> > > >   put 100,400 into tmp
> > > >   put the millisecs into tim1
> > > >   repeat 100 times
> > > >  add 1 to item 1 of tmp
> > > >  set the loc of grc "g1" to tmp
> > > >  wait 0 with messages
> > > >   end repeat
> > > >   put the acceleratedRendering of this stack && \
> > > >     the layermode of grc "g1" \
> > > >     && the millisecs-tim1  after gLog
> > > >    end repeat
> > > >    put CR after gLog
> > >
> > > Here are the times for each of the cases, moving 100 times
> > >
> > > false static 192
> > > false static 154
> > > false static 155
> > >
> > > true static 285
> > > true static 332
> > > true static 249
> > >
> > > true dynamic 265
> > > true dynamic 255
> > > true dynamic 309
> > >
> > > false dynamic 131
> > > false dynamic 134
> > > false dynamic 149
> > >
> > > 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: Animation Engine: speed tips

2020-07-02 Thread David Bovill via use-livecode
That's inspired me :)

I think it may be possible to do what I want in Livecode - which would be
great. Thanks Alex and Bernd :)

On Thu, 2 Jul 2020 at 20:36, Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> On 01/07/2020 02:52, J. Landman Gay via use-livecode wrote:
> > Did you use acceleratedRendering? Set it to true and set the layermode
> > of each moving object to dynamic. I'd be curious to see if there's a
> > difference.
> >
> >
> Hadn't  tried those until now. There is a difference - but not the kind
> I'd hoped for :-)
>
> Full script is below with detailed time, but the summary is:
> - acceleratedRendering made things much worse (50% to 90% slower)
> - dynamic layerMode made things a little bit better (5% to 15%).
>
> If the circle was moving over a plain background, improvement was only
> 5%-ish, while if moving over multiple other shapes, it gave a better
> improvement.
>
> Here's the full snippet of the script involved (other cases obvious :-)
>
> >   set the acceleratedRendering of this stack to false
> >set the layermode of grc "g1" to "static"
> >
> >repeat 3 times
> >   put 100,400 into tmp
> >   put the millisecs into tim1
> >   repeat 100 times
> >  add 1 to item 1 of tmp
> >  set the loc of grc "g1" to tmp
> >  wait 0 with messages
> >   end repeat
> >   put the acceleratedRendering of this stack && \
> > the layermode of grc "g1" \
> > && the millisecs-tim1  after gLog
> >end repeat
> >put CR after gLog
>
> Here are the times for each of the cases, moving 100 times
>
> false static 192
> false static 154
> false static 155
>
> true static 285
> true static 332
> true static 249
>
> true dynamic 265
> true dynamic 255
> true dynamic 309
>
> false dynamic 131
> false dynamic 134
> false dynamic 149
>
> 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: OAuth2 on Win10: not returning to my app

2020-06-30 Thread David Bovill via use-livecode
May be related but I’m having an issue with an old script returning cancel with 
oauth2 lib today - can’t debug will check in morning
On 30 Jun 2020, 23:19 +0100, Monte Goulding via use-livecode 
, wrote:
> It does sound like an issue with the redirect uri.
>
> Perhaps a configuration issue in your app on the endpoint? Some endpoints 
> will use the redirect uri from the request, some will ensure it matches 
> perfectly with your settings for your app on their portal, some will just use 
> the redirect in the portal settings.
>
> Whatever is happening, there is no HTTP request to localhost on your 
> specified port because if there was the dialog would close by itself.
>
> > On 30 Jun 2020, at 6:14 am, Richard Gaskin via use-livecode 
> >  wrote:
> >
> > I've been working with the Oauth2 lib included with v9 (superhandy, team, 
> > thanks!), and I've run into a snag:
> >
> > When I call it, the browser widgets opens and goes to the authentication 
> > provider (in this case Office 365), and authentication seems to work well.
> >
> > However, at that point I'd expect the browser widget's window to close and 
> > "it" would contain the approved auth scope info.
> >
> > Instead what I'm seeing is the browser widget window remains open, and it 
> > redirects into my Office 365 account. I can close the window manually with 
> > the "Cancel" button, but then "it" in my calling script contains "Cancel", 
> > no auth info.
> >
> > Have any of you successfully used LC's OAuth2 lib to log into MS Office 365 
> > or other MS product that uses OAuth?
> >
> > If so, what did you use for the redirect URL? Or is there something else I 
> > should be considering?
> >
> > TIA -
> >
> > --
> > 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
___
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


iOS sharing extensions: an important market for Livecode?

2020-06-28 Thread David Bovill via use-livecode
Not sure what people think, but for my part one of the main itches I have for 
creating mobile apps in Livecode is to figure out more advanced ways of 
processing data that is generated by all those mobile apps I have installed on 
my phone. So I REALLY want tone able to share from podcast apps, and browsers, 
and note / project management apps to a Livecode app I create on my mobile - 
get Livecode to  massage the data then save it somewhere useful.

But first I need to create that sharing extension - a test case would be to 
share a browser url from Chrome or Safari. Any ideas what I’m doing wrong?
On 25 Jun 2020, 21:05 +0100, David Bovill , wrote:
> Having another go at creating an iOS Share extension in Livecode.
>
> Ben I had a go with the code snippets you supplied, but I’m not getting my 
> app appearing in the list of apps available to share. I had a bit of a goose 
> around and tried a bunch of options for the info.plist file without result - 
> well in fact I’m getting the app launching with a black screen and then 
> crashing if I use the following style recipe:
> NSExtension
>  
>  NSExtensionAttributes
>  
>  NSExtensionActivationRule
>  TRUEPREDICATE
>  
>  NSExtensionMainStoryboard
>  MainInterface
>  NSExtensionPointIdentifier
>  com.apple.share-services
>  
>
> This type of plist addition:
> CFBundleDocumentTypes
>   
>   
>   CFBundleTypeName
>   Sound Garden
>   CFBundleTypeRole
>   Editor
>   LSItemContentTypes
>   
>   public.plain-text
>   
>   LSHandlerRank
>   Alternate
>   
>   
>   CFBundleTypeName
>   Audio
>   CFBundleTypeRole
>   Editor
>   LSItemContentTypes
>   
>   public.audio
>   
>   LSHandlerRank
>   Alternate
>   
>   
>
> Does not crash the app - but appears to do nothing? The following lesson 
> appears related - 
> http://lessons.livecode.com/m/4069/l/1069016-associating-a-file-type-file-extension-with-an-lc-ios-app
>  and I note there are / were issues with iPhone X and this lesson.
>
> My basic question is how do I get an iOS app to work with as an iOS sharing 
> extension such that in any app (say a web browser) where I select the share 
> icon I can use my Livecode app as something that handles the share?
> On 20 Nov 2018, 18:40 +, Ben Rubinstein via use-livecode 
> , wrote:
> > You need to do two things:
> >
> > - add code in your app to handle the "urlWakeUp" message, see the dictionary
> > entry and
> > http://lessons.livecode.com/m/4069/l/58672-using-custom-url-schemes
> >
> > - add entries in the app's plist to tell the operating system what file 
> > types
> > your app can handle, see
> > https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685
> >
> > The latter is the bit you need to do for iOS - not sure what the Android
> > equivalent is.
> >
> >
> > On 19/11/2018 20:35, David Bovill via use-livecode wrote:
> > > How could I create the ability for Livecode mobile apps - say iOS but
> > > ideally also on Android) to add the ability for other apps to share to 
> > > them?
> > >
> > > -
> > > https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Share.html
> > >
> > > I can't find any thread here or in the forums?
> > > ___
> > > 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: Animation Engine: speed tips

2020-06-28 Thread David Bovill via use-livecode
OK - will take a look. I suspect it is due to too many messages being sent due 
to the sort of line that is drawn when you create a curve by hand….
On 28 Jun 2020, 10:28 +0100, Malte Pfaff-Brill via use-livecode 
, wrote:
> Hi,
>
> off
> it. might be worth digging into AEs source and change the handlers from using 
> cProps to local variables. Also, there might be unnecessary instances. of 
> locking / unlocking screen that. should be refactored in AE.
> If anyone is going to take that up I’d be happy iff you shared your patches 
> to the community. :-)
> on
>
> All the. Best,
>
> Malte
> ___
> 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: Quick question: player object callbacks still working?

2020-06-28 Thread David Bovill via use-livecode
The message is not being sent. I set the callbacks of the payer and test it 
with:
set the callbacks of player 1 to "0,soundNotes"

command soundNotes
  — does not get sent
  put the params
end soundNotes

on currentTimeChanged theInterval
  put theInterval
end currentTimeChanged

on playPaused
  put the currenttime of me
endplayPaused

As I understand it the callback timing should be in “intervals"

• The duration of player 1= 4665600
• The  timescale of player 1 = 9

Setting the callbacks to a range of values between 0 and the duration seems to 
have no effect with regard to messages actually being sent. I’ve tried putting 
the “soundNotes” handler in various positions - card, stack and player. Still 
debugging...
On 28 Jun 2020, 06:35 +0100, Peter Bogdanoff via use-livecode 
, wrote:
> David,
>
> Specifically what is not working? Setting the callbacks, the callbacks 
> message not being sent or received?
>
> Sometimes I’ve seen that the interval between callbacks is so great, that the 
> message is never sent before the player ends. That is highly dependent on the 
> timeScale of the player. Put in the message box after the file is loaded into 
> the player:
>
> put the timeScale of player “”
>
> to see if the numbers make sense. Some files will have very different 
> timeScales (a Mac file with 600/second may have a Windows equivalent of a 
> number in the millions).
>
> Peter Bogdanoff
>
> > On Jun 27, 2020, at 1:41 PM, David Bovill via use-livecode 
> >  wrote:
> >
> > I’ve been testing an idea for an app - and I can’t get the callbacks 
> > property sending of messages. Does it still work with 9.6 MacOS?
> > ___
> > 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


Animation Engine: speed tips

2020-06-27 Thread David Bovill via use-livecode
I made a quick test - creating and animating small graphic circles along a 
complex curve with many points. It works fine with one or two animated spheres 
but I’d like to be able to animate >30 and it slows to a crawl after 4 or 5. I 
tried setting the layer mode appropriately for all the objects - but I’m doing 
this on a new MacBook Pro - and it does not make a difference.

Does anyone have an example stack with multiple animated objects that I can 
compare / test for speed?
___
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


Quick question: player object callbacks still working?

2020-06-27 Thread David Bovill via use-livecode
I’ve been testing an idea for an app - and I can’t get the callbacks property 
sending of messages. Does it still work with 9.6 MacOS?
___
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: iOS sharing extension

2020-06-25 Thread David Bovill via use-livecode
Having another go at creating an iOS Share extension in Livecode.

Ben I had a go with the code snippets you supplied, but I’m not getting my app 
appearing in the list of apps available to share. I had a bit of a goose around 
and tried a bunch of options for the info.plist file without result - well in 
fact I’m getting the app launching with a black screen and then crashing if I 
use the following style recipe:
NSExtension
 
 NSExtensionAttributes
 
 NSExtensionActivationRule
 TRUEPREDICATE
 
 NSExtensionMainStoryboard
 MainInterface
 NSExtensionPointIdentifier
 com.apple.share-services
 

This type of plist addition:
CFBundleDocumentTypes


CFBundleTypeName
Sound Garden
CFBundleTypeRole
Editor
LSItemContentTypes

public.plain-text

LSHandlerRank
Alternate


CFBundleTypeName
Audio
CFBundleTypeRole
Editor
LSItemContentTypes

public.audio

LSHandlerRank
Alternate



Does not crash the app - but appears to do nothing? The following lesson 
appears related - 
http://lessons.livecode.com/m/4069/l/1069016-associating-a-file-type-file-extension-with-an-lc-ios-app
 and I note there are / were issues with iPhone X and this lesson.

My basic question is how do I get an iOS app to work with as an iOS sharing 
extension such that in any app (say a web browser) where I select the share 
icon I can use my Livecode app as something that handles the share?
On 20 Nov 2018, 18:40 +, Ben Rubinstein via use-livecode 
, wrote:
> You need to do two things:
>
> - add code in your app to handle the "urlWakeUp" message, see the dictionary
> entry and
> http://lessons.livecode.com/m/4069/l/58672-using-custom-url-schemes
>
> - add entries in the app's plist to tell the operating system what file types
> your app can handle, see
> https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685
>
> The latter is the bit you need to do for iOS - not sure what the Android
> equivalent is.
>
>
> On 19/11/2018 20:35, David Bovill via use-livecode wrote:
> > How could I create the ability for Livecode mobile apps - say iOS but
> > ideally also on Android) to add the ability for other apps to share to them?
> >
> > -
> > https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Share.html
> >
> > I can't find any thread here or in the forums?
> > ___
> > 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: Integrating Desktop or mobile application with LMS using LTI 1.3

2020-05-27 Thread David Bovill via use-livecode
Interesting. I looked at this a couple of years ago. Please include me in any 
open source project in that space.
On 27 May 2020, 00:34 +0100, William Prothero via use-livecode 
, wrote:
> Martin and Peter:
> I am retired, but still creating one (big) educational application. I thought 
> the LMS integration idea had died a death by silence, so I am so glad you are 
> looking into this. I’m very interested, but have not put forth any effort in 
> this direction.
>
> Please keep me informed about what you find.
> Best,
> Bill
>
> William A. Prothero
> https://earthlearningsolutions.org
>
> > On May 25, 2020, at 3:28 PM, Peter Bogdanoff via use-livecode 
> >  wrote:
> >
> > Hi Martin,
> >
> > I’ve just begun looking into this myself, so I’m also interested in what 
> > anybody knows about this.
> >
> > Peter Bogdanoff
> > ArtsInteractive
> >
> >
> > > On May 25, 2020, at 3:05 PM, Martin Koob via use-livecode 
> > >  wrote:
> > >
> > > Hi list
> > >
> > > I have been researching how to integrate a desktop application created 
> > > with LiveCode with a learning Management system (LMS) like Brightspace by 
> > > D2L, Moodle, Canvas etc. Last time I looked at this SCORM was the 
> > > standard with TinCan( aka xAPI) as a potential successor. This time 
> > > around I found those seem to have been superseded by LTI 1.1 going to LTI 
> > > 1.3.
> > >
> > > In the documents I have found I see that one of the advantages of LTI 1.3 
> > > is that it can be used with desktop and mobile apps. LTI 1.1 only worked 
> > > with web based applications.
> > >
> > > " Mobile Ready—The model is independent of web browsers, a better 
> > > solution for server-to-server, native desktop and mobile applications.”
> > > https://www.imsglobal.org/why-platforms-and-tools-should-adopt-lti-13 
> > > 
> > >
> > > I am looking for examples of people doing this but have not found any 
> > > online.(I don’t want to spend time on idly ddl I looks like it would be 
> > > possible to use it in an LiveCode application. It uses oAuth 2 for 
> > > authentication and JSON for messages both of which are available on the 
> > > the latest version of LiveCode.
> > >
> > > First I just want to confirm it has been done for a desktop application 
> > > in general so I know that is a viable approach for integrating an App 
> > > into an LMS.
> > >
> > > Second I wonder if people have done it using LiveCode.
> > >
> > > Thanks
> > >
> > >
> > >
> > > Martin Koob
> > >
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your 
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > 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: Linking to a LC desktop app with a URL

2020-05-21 Thread David Bovill via use-livecode
Yes thanks Trevor. I must some time soon migrate to using Levure - is there an 
easy Start here introduction for a new project?
On 21 May 2020, 07:10 +0100, Peter Bogdanoff via use-livecode 
, wrote:
> This is great! Thank you Trevor!
>
>
> > On May 20, 2020, at 5:01 PM, Trevor DeVore via use-livecode 
> >  wrote:
> >
> > On Wed, May 20, 2020 at 5:12 PM Peter Bogdanoff via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > Has anyone worked on the idea of accessing a LiveCode application from a
> > > web browser, such as happens with Zoom? With a URL link to a zoom.us
> > > page, the webpage shows a dialog:
> > >
> > > “Do you want to allow this page to open ‘zoom.us’?”
> > >
> > > which then opens the local app zoom.us.
> > >
> > > My use for this would be for enabling a user using an online LMS (learning
> > > management system) to directly access a location in my application on 
> > > their
> > > local machine.
> > >
> > > I see a few methods described online, but was wondering if anyone has
> > > experience with this.
> > >
> >
> > ScreenSteps uses this technique for sending actions from our web app to our
> > desktop. Extensive testing has been done on macOS and Windows. The Levure
> > framework has the file_system helper which does most of the work for you
> > on Windows, macOS, and iOS so you can look at that code for guidance. You
> > can find the source code at the link below. I will link to specific code
> > examples below as well.
> >
> > https://github.com/trevordevore/levure/tree/develop/framework/helpers/file_system
> >
> > There are three parts that make up a working solution - registration,
> > processing requests, and triggering requests. Here is a description of
> > each. Hopefully I'm not missing anything. I coded this a long time in
> > Levure and haven't had to think about it much since.
> >
> > 1. Tell the operating system your app can handle a url protocol.
> >
> > ## Windows
> >
> > You will need to modify the registry. Here is a link to the command that
> > updates the registry in the file_system helper:
> > https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L193
> >
> > The command uses levureStandaloneFilename(), a framework function that
> > returns the full path to the standalone application. Just replace that with
> > a similar function so that you can add the full path to your app to the
> > registry.
> >
> > This command can be called each time your application launches if you want
> > to make sure that the version the user just launched is the one the OS will
> > send a url request to.
> >
> > ## macOS and iOS
> >
> > Add the URL protocol you want to add to your Info.plist file. It will look
> > something like this (taken from the ScreenSteps Info.plist file) :
> >
> > 
> >  > http://www.apple.com/DTDs/PropertyList-1.0.dtd;>
> > 
> > 
> > ... OTHER STUFF
> > 
> > 
> > CFBundleURLName
> > ScreenSteps URL
> > CFBundleURLSchemes
> > 
> > x-screensteps-app
> > screensteps
> > screensteps-4
> > 
> > 
> > 
> > 
> >
> > 2. Process URL requests sent by the OS to your app
> >
> > ## Windows
> > Process `relaunch` command, extract command line arguments looking for url.
> >
> > `relaunch` is handled within main Levure script:
> > https://github.com/trevordevore/levure/blob/develop/framework/levure.livecodescript#L46
> >
> > The file_system helper processes the parameters though:
> > https://github.com/trevordevore/levure/blob/develop/framework/levure.livecodescript#L46
> >
> > ## macOS
> > Process the appleEvent with pClass "GURL" AND pID "GURL".
> >
> > https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L111
> >
> > ## iOS
> > Process `urlWakeUp`.
> >
> > https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L65
> >
> > 3. Triggering requests
> >
> > Triggering requests is as simple as using your custom protocol in an 
> > tag in your web page.
> >
> > Click me
> >
> > Hopefully this helps you implement the behavior in your own app.
> >
> > --
> > Trevor DeVore
> > ScreenSteps - https://www.screensteps.com
> > Levure App Framework for LiveCode - https://github.com/trevordevore/levure/
> > LiveCode Repos -
> > https://github.com/search?q=user%3Atrevordevore+topic:livecode
> > LiveCode Builder Repos -
> > https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
> > ___
> > 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:
> 

Re: Anyone willing to share a basic webpage template for LC HTML5 apps?

2020-05-15 Thread David Bovill via use-livecode
Just asked the same question. Would love to figure that out? Could we share a 
Github project?
On 14 May 2020, 03:40 +0100, Terry Judd via use-livecode 
, wrote:
> Hi - I've got a couple of HTML5 apps that I want to deploy to students at my 
> uni and was wondering if anyone had a fairly basic starting webpage that I 
> could use rather than the one that LC generates automatically.
>
> If possible I'm looking to lose the elements in the top section (LC logo, 
> resize canvas and lock/hide mouse pointer checkboxes and the fullscreen 
> button) and just retain a basic download indicator. There is also a debug? 
> section that appears below the canvas that I would like to remove if possible.
>
> My actual HTML skills are rudimentary at best so I'm reluctant to try editing 
> the LC generated html file and the 'skeleton' page that is mentioned in the 
> HTML5 deployment guide (via the dictionary) seems a bit too basic as it has 
> no loader.
>
> If anyone has a template page that they would be willing to share I'd be very 
> grateful.
>
> BTW, I have a HTML5 license so I think I'm ok to drop off the LC logo and 
> links.
>
> Regards,
>
> Terry...
>
> ___
> 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 with HTML5 Livecode Site

2020-05-15 Thread David Bovill via use-livecode
I would like to create a beautiful HTML5 Livecode based community site. The 
best examples I’ve found are by hh here on the list. I’m really looking to 
build on those great resources and work with some artists to make something 
neat.

Can anyone advise how to do lazy loading of the engine, and responsive design 
for mobile and desktop?

I would like to present a loading screen which we design to look great, and 
takes enough time to load the engine in the background.

When it is fully downloaded I’d like to show navigation elements that allow the 
reader to enter the Livecode HTML5 Playground.

I kind of know how to do this (in theory) but looking for some code examples 
Demi’s I can customise.
___
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: HTML Platform

2020-05-06 Thread David Bovill via use-livecode
WASM support is very important to Livecode future. It will address most of the 
problems of current HTML5 deployment, and I definitely intend to use it - for 
micro service deployment, and blockchain integration for instance.

It will doubtless be a commercial feature, which is also important for a 
Livecode feature but as soon as I can play in an equal footing as other high 
level languages - then I can build commercial solutions with project partners 
and universities. Until then I can only really prototype in Livecode.
On 6 May 2020, 11:28 +0100, Pi Digital via use-livecode 
, wrote:
> Two words, Richard.
> IT Departments.
> Of the 150+clients my client has, 150+ of them would emphatically prefer a 
> web based app than a desktop one. They don’t want stuff ‘installed’ or ‘run’ 
> on their machines that haven’t been thoroughly tested before use. Each and 
> every update. And they really don’t want to have to keep testing each and 
> every update. Using Chrome/Edge-Chromium overcomes all of that.
>
> Having built his business over 10 yrs ago with zero coding experience and 
> learning LC from scratch, to now, remaining his only coding 
> platform/language, he wants a way to continue being able to contribute 
> without having to learn a new language while still taking his maaassive app 
> suite onto the web. Emscripten is (part-way to) a godsend.
>
> If only the basics worked as they had before chromium deprecated old event 
> handler syntax. That’s the major crux of its current downfall. Otherwise it’s 
> an incredibly powerful way of coding for the web.
>
> And mySQL from LC in the browser is tonnes faster than on the desktop - 
> massively! Because they’re both on the same server. Even though the message 
> path is LC>JS>(AJAX)>PHP>JS>LC!
>
> Sean
>
> > In my own mind I phrase that differently. Whether it's gentler or more 
> > stark is up to the reader, but for me it's more:
> >
> > ...it can't address the fundamental differences between desktop
> > and web architectures, and the limitations inherent in Emscripten.
> >
> > Emscripten is good for what it was designed to do. But look deeply at LC, 
> > consider what Emscripten is, and the more time you spend pondering it the 
> > clearer it becomes how difficult it is to put a desktop app's square peg 
> > into a browser hole.
> >
> > Putting an entire scripting engine and object model into a browser 
> > application that already has its own scripting engine and object model 
> > cannot achieve size, performance, and integration features as well as a 
> > web-native implementation.
> >
> > If you truly need a browser as your only deployment option, it's kinda hard 
> > to argue against going with the grain of the browser.
> >
> > But most apps that might make good candidates for LC's HTML export have 
> > characteristics that lend themselves very well to not doing HTML at all, 
> > instead using a one-time download of an LC standalone which then downloads 
> > and runs stack files (a practice that, in the absence of a more common 
> > label, I like to call "streaming apps").
> >
> > Fits most of the same uses cases, but provides a more focused user 
> > experience that integrates with the OS as only a native app can.
> >
> > Extra bonus points that they're cheap and easy to build in LC, fast cheaper 
> > to deliver sophisticated works than even web-native implementations.
> >
> > For the sorts of vertical audiences where LC's HTML would seem interesting, 
> > I believe simply streaming stacks in a standalone is the most 
> > underappreciated and underutilized opportunity in our community.
> >
> > MetaCard promoted the idea heavily with some nice example downloads, but in 
> > all these years only a few of us make streaming apps regularly.
> >
> > If you're waiting for LC's HTML to get good, let's discuss streaming apps 
> > for those where they might be a great solution. We really don't need to 
> > wait for anything to have the benefits of net-distributed apps. You can 
> > have it all today, with the LC you know and love already.
> >
> > --
> > Richard Gaskin
> ___
> 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: Group resizing.

2020-05-05 Thread David Bovill via use-livecode
Yes - this sort of bug is why having a couple of simple tools helps when 
developing these dynamically resizing widgets.
On 4 May 2020, 14:17 +0100, Alex Tweedly via use-livecode 
, wrote:
> David,
>
> thank you - that's a kind and generous offer to Zoom / pair on it.
> However, since the immediate problem is solved, I'd rather take a
> raincheck, and keep your offer in my back pocket for some future time I
> have a problem.
>
> Summary of this case - when you do resizing based on groups, you should
> be sure to have the lockLocation of the groups set true.
>
> I had a silly typo
>    set the top of something to the bottom of another+10
> and I had
>    set the top of something to the bottom of another+1000
>
> If lockLocation had been set, that would have been trivially obvious,
> and fixed in 30 seconds. However, it wasn't, so the group grew out of
> scale and obscured  most of the window, including where the problematic
> controls should have been - so I couldn't see they had gone astray..
>
> And by bad luck, when I started adding "put  to msg" statements, I
> happened to span a bit of code that *only* tried to change X
> coordinates, and was actually changing Y coords (because of group
> inclusion). So I spent a long time down a rabbit hole of trying to see
> find which code could be doing that, not realizing this "feature" that
> changing one dimension would expand both dimensions of the group.
>
> Thanks again,
>
> Alex.
>
> P.S. any thoughts on another group Zoom for Livecoders ? Haven't heard
> more from Heather (and they may be busy), so maybe we should try to
> arrange a community get-together ?
>
>
> On 04/05/2020 10:09, David Bovill via use-livecode wrote:
> > Trying to understand this thread. I’ve been doing nested group resizing for 
> > all my work now for several years - it has been difficult often to debug 
> > track errors because of all the nested messages.
> >
> > As a result I’ve had to make a bunch of tools to test each nested element 
> > before they are combined, and also I’ve developed a consistent style of 
> > doing it - which may mean that I’m not coming across the issue you report.
> >
> > My suggestion Alex is the only way to explore this is to jump into a Zoom 
> > where we can share practice and see visually the issue? It would also be 
> > more fun at this time if lock down?
> >
> > Feel free to pick a time if that appeals - I got nothing better to do :)
> >
> > • https://woven.com/c/david62/pairprogramming
> >
> > On 4 May 2020, 01:38 +0100, scott--- via use-livecode 
> > , wrote:
> > > Oh good, I was hoping I wasn’t the only one.
> > >
> > > —
> > > Scott
> > >
> > >
> > > > On May 3, 2020, at 11:28 AM, Alex Tweedly via use-livecode 
> > > >  wrote:
> > > >
> > > > 
> > > > I can now get back to my "10-minute cleanup task" that I started 8 
> > > > hours ago :-)
> > > >
> > > > 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
>
> ___
> 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


  1   2   >