Re: Our first Community Zoom Session

2020-04-04 Thread David Bovill via use-livecode
I’ve spent some time yesterday working on an open source Livecode library for 
the Zoom API. I’m hoping a few of us could start collaborating on that as an 
outcome of the Zoom today?

Will try to get that on Github by the meeting. It’s a script only stack. Anyone 
else working with API’s and Livecode want to join?
On 4 Apr 2020, 06:28 +0100, Richard Gaskin via use-livecode 
, wrote:
> Mark Wieder wrote:
>
> > I'm *very* impressed with Zoom's engineering team, rolling out a new
> > version to quash this vulnerability asap. I got prompted to install
> > the new version this morning. Upgrading was painless. Not only is
> > Zoom being super-responsive about this (and given the publicity lately
> > it stands to reason that they would) but they're being upfront about
> > the issues and backtracking and patching in public in real time. You
> > don't often see companies with this size a customer base turn on a
> > dime like this.
>
> +1
>
> I knew nothing about Zoom until a few weeks ago, but everything I've
> read since is impressive.
>
> And as both technologists and citizens, in addition to what Zoom is,
> also valuable is what they're not: not Google Hangouts, not Apple
> FaceTime, not Microsoft Teams, etc. A startup this successful outside
> the Big Five is helpful for everyone, and devs in particular. Developers
> thrive in diverse and fluid ecosystems.
>
> And did you notice Zoom's API docs?
> https://marketplace.zoom.us/docs/guides/tools-resources/zoom-apis
>
> I've only started reading them, but the functionality seems like a very
> empowering compliment to LC's GUI capabilities, esp. for integrating
> with other services an organization may need.
>
> --
> 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: Our first Community Zoom Session

2020-04-04 Thread David Bovill via use-livecode
Except of course I missed the meeting :)

Is the recording available yet?

On 4 Apr 2020, 12:20 +0100, David Bovill , wrote:
> I’ve spent some time yesterday working on an open source Livecode library for 
> the Zoom API. I’m hoping a few of us could start collaborating on that as an 
> outcome of the Zoom today?
>
> Will try to get that on Github by the meeting. It’s a script only stack. 
> Anyone else working with API’s and Livecode want to join?
> On 4 Apr 2020, 06:28 +0100, Richard Gaskin via use-livecode 
> , wrote:
> > Mark Wieder wrote:
> >
> > > I'm *very* impressed with Zoom's engineering team, rolling out a new
> > > version to quash this vulnerability asap. I got prompted to install
> > > the new version this morning. Upgrading was painless. Not only is
> > > Zoom being super-responsive about this (and given the publicity lately
> > > it stands to reason that they would) but they're being upfront about
> > > the issues and backtracking and patching in public in real time. You
> > > don't often see companies with this size a customer base turn on a
> > > dime like this.
> >
> > +1
> >
> > I knew nothing about Zoom until a few weeks ago, but everything I've
> > read since is impressive.
> >
> > And as both technologists and citizens, in addition to what Zoom is,
> > also valuable is what they're not: not Google Hangouts, not Apple
> > FaceTime, not Microsoft Teams, etc. A startup this successful outside
> > the Big Five is helpful for everyone, and devs in particular. Developers
> > thrive in diverse and fluid ecosystems.
> >
> > And did you notice Zoom's API docs?
> > https://marketplace.zoom.us/docs/guides/tools-resources/zoom-apis
> >
> > I've only started reading them, but the functionality seems like a very
> > empowering compliment to LC's GUI capabilities, esp. for integrating
> > with other services an organization may need.
> >
> > --
> > 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: Our first Community Zoom Session

2020-04-04 Thread David Bovill via use-livecode
We have some experience for running learning groups and breakouts in Zoom. 
Would love to help trial that at the next Zoom?
On 4 Apr 2020, 19:29 +0100, Richard Gaskin via use-livecode 
, wrote:
> Bob Sneidar worte:
>
> > Richard wrote:
> > > And did you notice Zoom's API docs?
> > > https://marketplace.zoom.us/docs/guides/tools-resources/zoom-apis
> > >
> > > I've only started reading them, but the functionality seems like
> > > a very empowering compliment to LC's GUI capabilities, esp. for
> > > integrating with other services an organization may need.
> >
> >
> > Richard,
> >
> > Without going into the details of the API, do you think a kind of
> > Customer Support portal could be built into LC?
>
> Why not?
>
> And imagine what can be done integrating the workflow with other
> services useful to an organization, including perhaps an issue tracker,
> project management, contacts, content management, any of the great tools
> in Nextcloud, or MS Teams, or as Bill Prothero suggests, a learning
> management system.
>
> The ways in which cloud services can be made even more useful by mixing
> and matching them to fit the unique needs of an organization are nearly
> limitless.
>
> LiveCode can be used to provide attractive, feature-rich UIs that turn
> disparate services into a cohesive workflow.
>
> I believe that this painfully disruptive moment in history provides all
> of us with thousands of ways yet to be discovered that we can lend our
> talents and interests to helping organizations get through this
> transition with less difficulty.
>
> --
> 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: Our first Community Zoom Session

2020-04-04 Thread David Bovill via use-livecode
Would be great to get that up and running. Matrix plays well with Jitsi, and is 
a great decentralised chat platform.
On 4 Apr 2020, 20:30 +0100, Mark Wieder via use-livecode 
, wrote:
> On 4/4/20 8:33 AM, Dan Brown via use-livecode wrote:
>
> > https://jitsi.org/ is a great open source Zoom alternative
>
> Jitsi looks very impressive *if* you're running your own server.
> Everything is encrypted from end to end *except* on the server itself,
> so you probably don't want to use their cloud server if you're looking
> for security.
>
> ...and as long as you're not running linux. I gave it two attempts and
> decided they're not quite ready for the big leagues yet. Too many unmet
> java dependencies. All I got launching from a commandline was pages of
> java errors and a hung application. Launching from the menu after
> installation was worse - just a hung app that had to be kill -9ed.
> Seemed to work fine on OSX though, once I figured out that the prefs
> panel was hidden behind the main window.
>
> But I like the idea a lot, especially in terms of low latency - it's
> basically a passthrough that supports encrypted communications.
>
> --
> 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


Re: Script Only Stack Properties

2020-04-04 Thread David Bovill via use-livecode
The approach I take is to use getorop and set prop handlers for this. The data 
is then seperated from the code and Ibuse one standardised technique for 
accessing a model:

out the model_Data of stack stackName into someData
On 4 Apr 2020, 19:39 +0100, How to use LiveCode 
, wrote:
>
> ?
>
> What are objects but a type declaration followed by a set of properties
___
use-livecode mailing list
use-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: Our first Community Zoom Session

2020-04-06 Thread David Bovill via use-livecode
Me too!
On 6 Apr 2020, 11:40 +0100, Andre Garzia via use-livecode 
, wrote:
> Hi Folks,
>
> I missed the meeting, is there a recording available?
>
> 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


Re: Apps to fight COVID-19

2020-04-08 Thread David Bovill via use-livecode
I’d be interested in volunteering to make a Livecode app for this. Anyone else?
On 7 Apr 2020, 00:41 +0100, Dar Scott Consulting via use-livecode 
, wrote:
> Hi, everybody!
>
> I apologize for the drive-by email.
>
> And I miss everybody on the list. Been busy all that.
>
> I am a strong believer in contact tracing as an implortant part of COVID-19 
> containment.
>
> There are several teams out there working on voluntary privacy-protecting 
> contact tracing apps to deploy before Big Brother mandates some central DB 
> app usage. Those include COVID Watch, CoEpi, Private Watch Safe Paths, and 
> others. Most have already started and are using swift and kotlin. Only Safe 
> Paths has something out. However, there might be some room in creating some 
> instant apps in LiveCode or in supporting in other ways. Also, some teams are 
> just getting started and need something fast. I think we need some education 
> apps done quickly.
>
> Also, 4Catalyzer is making a home test and needs some app development.
>
> For myself, I am on on the COVID Watch team.
>
> If you want to do something, take a look around at privacy preserving contact 
> tracing projects. And also look specifically I the ones I mentioned.
>
> I might be rehashing what has already been discussed. Sorry. Like I said, 
> "Drive by email".
>
> And remember what the Beatles said, "You wanna wash your ha-a-ands!"
>
> Dar Scott
>
> I am using Private Watch: Safe Paths on my iPhone to fight COVID-19..
>
> ___
> use-livecode mailing list
> use-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: Apps to fight COVID-19

2020-04-10 Thread David Bovill via use-livecode
Thanks for all the info Dar - that’s a great start.

I think creating a hospital / care-worker privacy respecting contact tracing 
app would be a great Livecode project.

This is what I’m thinking:

• Some of gather some material / research - maybe a few Livecode experiments 
not he topic
• We prepare a video conference call - like the Livecode Zoom one I missed
• We invite a few people
• We follow up the video conference with a week long online sprint - some 
coding, some writing, some design / cartoons
• We showcase the results at a wrap up event

I’m working with a handful of volunteers - mainly on the video / media / Zoom / 
research / facilitation end of things, but we’re getting pretty good at 
organising small and larger scale interactive video conferences and editing 
together the footage for feedback documentation. Mostly Livecode novices but 
interested to learn. So we could set up the event - most probably in Zoom - but 
could be Jitsi.

To make it work, I think we’d need a few Livecode tutors, and interest from the 
community - in the end it should be something that the folks on this list would 
like to take part in, so when we onboard other people the party is not empty.

I’d propose we do this on Earth Day - Wednesday 22nd April - in the evening 
Europe time, after midday US time.

Any thoughts / takers?

On 10 Apr 2020, 04:04 +0100, Dar Scott Consulting via use-livecode 
, wrote:
>
> Hi, David! Hi, Mark! Hi, Everybody!
>
> There are several teams that need help in a variety of ways.
>
> Several teams are in the TCN Coalition <https://tcn-coalition.org/>. These 
> teams respect privacy and use the TCN Protocol. COVID Watch is there with 
> help from around the world, but with a USA focus. You can see a list with 
> links on that very simple page. Volunteers might want to seek out those whose 
> location, philosophy or neediness seem to be appealing.
>
> Other organizations include Private Kit: Safe Paths (GPS) and "Eastcoast" 
> PACT out of MIT. You can probably find more. If you have a direction or need 
> you want to focus on, I can try to help.
>
> A group in Europe is forming around DT-3T, triggered by work by Carmela 
> Troncoso of EPFL and folks at ETHZ. (Even though DT-3T is considered to be 
> under the umbrella of PEPPPT, the later group includes teams whose methods 
> that require trusted servers. DT-3T does not.) This project has some nice 
> features.
> https://github.com/DP-3T <https://github.com/DP-3T>
>
> Artist/explainer Nicky Case has created a comic in a phone format that 
> explains contact tracing. The details look a little more like DT-3T than what 
> COVID Watch is doing, but one tweaked for COVID Watch is in the works. You 
> can incorporate this into your current apps or make a new education app. The 
> education app might remind people how they downloaded that app and how to 
> download the kind of app described in the comic. You can run with this on 
> your own.
> https://ncase.me/contact-tracing/ <https://ncase.me/contact-tracing/>
>
> Everybody should look at that comic anyway. It explains a lot in just a few 
> minutes.
>
> There is a need for both phone and desktop apps used by healthcare providers 
> to validate "I'm sick" reports. Many organizations need some means of making 
> sure there are few false reports. Maybe some sort of cryptographic signature 
> or something. While groups are focusing on the user app, the hospital apps 
> are seeing less work.
>
> And then there are the servers. Maybe Firebase will work but I suspect that 
> there might have to be more, depending on the team. Server? Look at the Nicky 
> Case comic.
>
> I have some for a containment game that includes contact tracing. I can give 
> it to somebody and even (in my copious spare time) provide some handwaving.
>
> One problem is that auntie does not know how to download apps. Encouraging 
> friends showing friends how to download is a good thing. Rapid adoption will 
> become important. And even education about contact tracing in general.
>
> You might be coming up with ideas I didn't even think about.
>
> Contact me if you need any help.
>
> Dar
>
>
>
>
>
> > On Apr 9, 2020, at 4:46 AM, Mark Smith via use-livecode 
> >  wrote:
> >
> > Happy to contribute as well.
> >
> > > On Apr 8, 2020, at 3:17 PM, David Bovill via use-livecode 
> > >  wrote:
> > >
> > > I’d be interested in volunteering to make a Livecode app for this. Anyone 
> > > else?
> > > On 7 Apr 2020, 00:41 +0100, Dar Scott Consulting via use-livecode 
> > > , wrote:
> > > > Hi, everybody!
> > > >
> > > > I apologize for the drive-by email.
> > > >
> > &

Re: Apps to fight COVID-19

2020-04-11 Thread David Bovill via use-livecode
Personally - especially after reading the links below on Apple + Googles 
initiative - I’d go for story telling based around the comic in an app that we 
could add contact tracing functionality too. I think emphasising in the story 
telling privacy issues would be something that would be an important aspect and 
a strong point with regard to adding to the mix - rather than duplicating 
efforts by other groups?
On 10 Apr 2020, 18:05 +0100, dsc--- via use-livecode 
, wrote:
> And it doesn't have to be just contact tracing related.
>
> Jonathan Rothberg's team is working on a simple test at home that needs an 
> app.
> co...@4catalyzer.com 
>
> Anybody want to talk about a containment game? Or take the concept and go in 
> one's own direction?
>
> Nicky Case's phone size comic is now available in several languages, so if 
> you include that in _anything_ you do, can localize a little.
>
> Dar
> team COVID Watch
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Simple 3D animation question

2020-04-18 Thread David Bovill via use-livecode
For Earth Day this Wendesday a few of us are working on an art piece that I 
want to use Livecode for.

As part of this event I need to create an interactive presentation and wish to 
create an icosahedrons - so a 3 dimensional hexagon - that I need to rotate in 
different dimensions.

I have seen and experimented with a few examples in the past in Livecode. It 
only needs to be a wireframe animation using the built in graphics object fir 
now.

 Doors anyone have any tips / 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: Apps to fight COVID-19

2020-04-18 Thread David Bovill via use-livecode
The app looks a good start, but basic. I took a closer look at the cartoon 
images, they are quite specific, but a good base for a discussion about privacy 
issues. Not so good for an app.

My suggestion regarding taking this forwards is that we have a creative 
workshop on Earth Day this coming Weds, as part of an in-line in conference 
that we are organising with a few folk. There will be plenty of other thing to 
drop into. I’ll send some info to this list on Sunday.

It’s pretty informal, so we can organise our own breakout open space meeting 
when we like - so it should be no issue organising a Livecode workshop on 
making a CORVID-19 app.

My focus is on doing an interactive sound piece and helping convene some if the 
breakout discussions, but doing a workshop on Livecode would be a fun part of 
that.

I could do with some help though :)
On 17 Apr 2020, 17:09 +0100, dsc--- via use-livecode 
, wrote:
> Here is a cool app from Kreativzirkel Design Studio. It is a contact diary as 
> mentioned here.
>
> https://www.coronika.app/en 
>
> I say "cool", but I haven't tried it. it looks good. Should it be done better?
>
>
>
>
> > On Apr 15, 2020, at 4:57 PM, dsc--- via use-livecode 
> >  wrote:
> >
> > Meanwhile at Covid Watch there is talk of moving the provider-facing at to 
> > a web app of some sort.
> >
> > > On Apr 14, 2020, at 1:37 PM, dsc--- via use-livecode 
> > >  wrote:
> > >
> > > Jonathan Rothberg is looking for brilliant people who can code whatever 
> > > your domain.
> > >
> > >
> > > > On Apr 13, 2020, at 6:52 PM, Dar Scott Consulting via use-livecode 
> > > >  wrote:
> > > >
> > > > Thanks!
> > > >
> > > >
> > > > > On Apr 13, 2020, at 11:42 AM, Mark Wieder via use-livecode 
> > > > >  wrote:
> > > > >
> > > > > On 4/13/20 10:14 AM, dsc--- via use-livecode wrote:
> > > > > > 1. Covid Watch needs expertise in making HIPAA compliant apps. (We 
> > > > > > have changed COVID Watch to Covid Watch.)
> > > > >
> > > > > This any help?
> > > > >
> > > > > https://www.healthcareblocks.com/hipaa/developer_guidelines
> > > > >
> > > > > --
> > > > > 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
> > >
> > >
> > > ___
> > > use-livecode mailing list
> > > use-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: Simple 3D animation question

2020-04-18 Thread David Bovill via use-livecode
Thanks Rick - yes an icosahedrons wireframe is quite minimal. No opacity or 
shading needed at this stage. Livecode animation of the graphic object is 
certainly fast enough. It’s acceptable smooth enough - though not ideal due to 
lack of antialiasing (I think).

I could look around for some existing Javascriot based examples and look to 
control them through do as Javascriot calls to the browser widget - but I’d 
prefer more control over layering and blend modes.

Animation engine had some simple examples. I’m not sure about anything else?
On 18 Apr 2020, 15:08 +0100, Rick Harrison via use-livecode 
, wrote:
> Hi David,
>
> How many wires in your wire animation?
>
> How fast and smooth does your rotation
> need to be?
>
> Is there going to be an image or writing
> on the side that shows up?
>
> Hmm, an icosahedron has 20 sides, so
> it’s like 20 sided dice!
>
> I just saw a web version that didn’t bother
> to rotate the image since only one side
> is up. The guy did a fade to white to
> simulate the roll and then just showed
> a new number on facing side.
>
> It’s a lot simpler! It would save you a
> lot of coding time. Especially since you
> clearly have a looming deadline.
>
> Anytime I have tried to do an animation
> with LiveCode I have found it to be too
> slow and jerky. Your mileage may vary.
>
> Good luck!
>
> Rick
>
>
>
> > On Apr 18, 2020, at 9:32 AM, David Bovill via use-livecode 
> >  wrote:
> >
> > For Earth Day this Wendesday a few of us are working on an art piece that I 
> > want to use Livecode for.
> >
> > As part of this event I need to create an interactive presentation and wish 
> > to create an icosahedrons - so a 3 dimensional hexagon - that I need to 
> > rotate in different dimensions.
> >
> > I have seen and experimented with a few examples in the past in Livecode. 
> > It only needs to be a wireframe animation using the built in graphics 
> > object fir now.
> >
> > Doors anyone have any tips / 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


Re: Simple 3D animation question

2020-04-19 Thread David Bovill via use-livecode
Thanks for all the input - threeJS is great. I’ll take your advice on that. I 
haven’t updated my knowledge on it for a couple of years.

FYI - a reason for using Livecode exists outside of the actual animation. It’s 
the educational aspect and geometry. Would like to be able to explore the 
language and coding as a learning experience as a follow up in Livecode rather 
than JavaScript.
On 19 Apr 2020, 01:27 +0100, Mark Wieder via use-livecode 
, wrote:
> On 4/18/20 1:56 PM, ha...@exformedia.se wrote:
> > When teaching my students about hybrid apps I usually do a session
> > called "Vad är klockan vart då?" (What is the time where?) Where we have
> > a globe in a browser widget, that you can spin and tap. When you tap a
> > location we have a clock-widget set to the current time at that
> > location. The globe is driven by d3js, which is a really powerful
> > visualization library written in JavaScript. Without resorting to
> > builder or embedding some other graphic library I don't think that would
> > be possible at the current state of LiveCode graphics. But on the other
> > hand it is really nice to see how easily you can combine the browser
> > widget with LiveCode.
> >
> > So to conclude I also would suggest to resort to a browser widget and
> > then add something like:
> >
> > https://codepen.io/Mombasa/pen/fvgqb
> > (Built with threes)
>
> There was an amazing demonstration of data visualization using threejs
> at SCaLE last month. I got hooked right away.
>
> https://www.youtube.com/watch?v=nCR_1YBFyN0
>
> --
> 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


Re: Apps to fight COVID-19

2020-04-22 Thread David Bovill via use-livecode
Yes - we launched the radio station collecting sounds and voices from round
the world on Earth Day, it is live now with sounds being added to the piece
as it comes in. Radio player on this page:

   - https://www.nowwhat2020.com/sonic-spring-sound-garden

To listen live. It's an ambient musical slow jam - start of a project
leading to a conference we will be organising for Earth Day next year.

As part of the event we are also doing an open space meeting (in Zoom -
sorry about that - last one hopefully before we move to our own platform).
We're doing it on Patterns of Life - where we discuss Pattern Language and
it's relation to the origins of Wiki with Ward Cunningham, and to the
future information architecture we need. It's an open space with breakouts
so you can bring your own topics and discuss them with others in small
groups:

   - Patterns of Nature -
   https://teamup.com/event/show/id/eNTEPffjchtYe3RYbzHjCXQy7ePrzr
   - Full calendar of events - https://teamup.com/ks3bcytpjd2v8bus7k
   - Zoom - https://zoom.us/j/92153676576 (20:00 London Time - see calendar
   above for times in your zone)


Best wished on Earth Day,

David


On Tue, 21 Apr 2020 at 16:57, dsc--- via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Is something still happening tomorrow?
>
> > On Apr 18, 2020, at 1:46 PM, dsc--- via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I will attend.
> >
> >> On Apr 18, 2020, at 7:45 AM, David Bovill via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>
> >> The app looks a good start, but basic. I took a closer look at the
> cartoon images, they are quite specific, but a good base for a discussion
> about privacy issues. Not so good for an app.
> >>
> >> My suggestion regarding taking this forwards is that we have a creative
> workshop on Earth Day this coming Weds, as part of an in-line in conference
> that we are organising with a few folk. There will be plenty of other thing
> to drop into. I’ll send some info to this list on Sunday.
> >>
> >> It’s pretty informal, so we can organise our own breakout open space
> meeting when we like - so it should be no issue organising a Livecode
> workshop on making a CORVID-19 app.
> >>
> >> My focus is on doing an interactive sound piece and helping convene
> some if the breakout discussions, but doing a workshop on Livecode would be
> a fun part of that.
> >>
> >> I could do with some help though :)
> >> On 17 Apr 2020, 17:09 +0100, dsc--- via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
> >>> Here is a cool app from Kreativzirkel Design Studio. It is a contact
> diary as mentioned here.
> >>>
> >>> https://www.coronika.app/en <https://www.coronika.app/en>
> >>>
> >>> I say "cool", but I haven't tried it. it looks good. Should it be done
> better?
> >>>
> >>>
> >>>
> >>>
> >>>> On Apr 15, 2020, at 4:57 PM, dsc--- via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>>>
> >>>> Meanwhile at Covid Watch there is talk of moving the provider-facing
> at to a web app of some sort.
> >>>>
> >>>>> On Apr 14, 2020, at 1:37 PM, dsc--- via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>>>>
> >>>>> Jonathan Rothberg is looking for brilliant people who can code
> whatever your domain.
> >>>>>
> >>>>>
> >>>>>> On Apr 13, 2020, at 6:52 PM, Dar Scott Consulting via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>>>>>
> >>>>>> Thanks!
> >>>>>>
> >>>>>>
> >>>>>>> On Apr 13, 2020, at 11:42 AM, Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>>>>>>
> >>>>>>> On 4/13/20 10:14 AM, dsc--- via use-livecode wrote:
> >>>>>>>> 1. Covid Watch needs expertise in making HIPAA compliant apps.
> (We have changed COVID Watch to Covid Watch.)
> >>>>>>>
> >>>>>>> This any help?
> >>>>>>>
> >>>>>>> https://www.healthcareblocks.com/hipaa/developer_guidelines
> >>>>>>>
> >>>>>>> --
> >>>>>>> Mark Wieder
> >>>>>>> ahsoftw...@gmail.com
> >>>>>>>
> >>>>>>> ___
> &g

Google Drive or Dropbox integration

2020-04-29 Thread David Bovill via use-livecode
I’m looking to create some tools to automate / augment the work of volunteers 
working on the Sound Garden media archive we created for the radio station.

I want to create desktop and mobile apps I can distribute to volunteers as the 
project moves forwards.

At this early stage we have both Dropbox and Google drive storage - and I’m 
looking for the apps to integrate into the workflow ie read and write to the 
archive.

I’m wondering if anyone has experience with the Livecode libraries that do this 
- which is easier to code against for mobile and desktop? Anyone got a demo 
stack?
___
use-livecode mailing list
use-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-04 Thread David Bovill via use-livecode
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


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


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


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: 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


Re: Linking to a LC desktop app with a URL

2020-05-20 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:
> http://lists.runrev.com/mailman/listinfo/use-liveco

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: 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


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


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


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


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


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: 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


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 &CR 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
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 &CR 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


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 de

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


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: 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


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


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


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


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


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: 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


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


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


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


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
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-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-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


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: 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


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


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


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


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


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 - 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


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 &CR after tSeries1
> > else
> > put i, 249+(i-235) &CR 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) &CR after tSeries2
> > end if
> > end repeat
> >
> > put tSeries1 &CR & 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 &CR & i, t1 &CR 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 &CR & i, t2 &CR 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: 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


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: 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


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: 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


Re: Is the DateFormat read only?

2020-11-07 Thread David Bovill via use-livecode
, Graham Samuel via use-livecode wrote:
> > > I am as confused 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


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: 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


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: 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


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: 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: 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 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-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: 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: 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
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: 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: 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


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: 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.
> > > >
> > > > 
> > > > ***

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
use-

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


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


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


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


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: 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


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


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


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


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


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: 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


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: 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


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 dem

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.
> > > > > &

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


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


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


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


  1   2   3   >