Re: Contesting for Idiot du Jour

2020-09-02 Thread Mark Wieder via use-livecode
On 9/2/20 9:25 PM, Dev via use-livecode wrote: You do understand math much better than I do obviously! Better than I do as well. I was puzzling over that thing until Jerry came through with the answer. -- Mark Wieder ahsoftw...@gmail.com ___

Re: Contesting for Idiot du Jour

2020-09-02 Thread Jerry Jensen via use-livecode
Whew !! > On Sep 2, 2020, at 9:25 PM, Dev via use-livecode > wrote: > > Me again Jerry > > Changed the setup so that the pellets landing outside the big circle were > ignored and just kept going until I had 1000 within the circles in a > completely random pattern without Trig. Now the

Re: Contesting for Idiot du Jour

2020-09-02 Thread Dev via use-livecode
Me again Jerry Changed the setup so that the pellets landing outside the big circle were ignored and just kept going until I had 1000 within the circles in a completely random pattern without Trig. Now the ratio in the smaller circle is 25% or ¼ like the area comparison would suggest. You do

Re: Contesting for Idiot du Jour

2020-09-02 Thread Dev via use-livecode
Hi Jerry I just tried that because I’m no math wizard and need to see things. When shooting a random shotgun blast of 1000 pellets into the centre of a target square that contained the large circle and small circles, the ratio worked out to around 0.2 - not 0.25. It seems the corners outside

Re: Contesting for Idiot du Jour

2020-09-02 Thread Jerry Jensen via use-livecode
Additional thought: If you just used random x and y, then ignored points outside the larger circle, you would see that 1/4 of the points would be in the smaller circle. No trig or integrals involved. .Jerry > On Sep 2, 2020, at 8:27 PM, Jerry Jensen via use-livecode > wrote: > > 1/2 is the

Re: Contesting for Idiot du Jour

2020-09-02 Thread Jerry Jensen via use-livecode
1/2 is the right answer. Take your drawing of the circles. Cut a veyy thin radial slice from the center to the outside circle. So thin that it is just a line. Now think of how likely a random point on that line will be in the part of the line that was in the smaller circle. The part that

Contesting for Idiot du Jour

2020-09-02 Thread Roger Guay via use-livecode
Your chance to be Genius du Jour: If I construct 2 concentric circles, one being half the radius of the larger, then simple math shows that the smaller circle has an area ¼ the area of the larger. Now if I generate a random point within the radius of the larger circle, I should expect that the

Re: Looping though a numerically indexed array

2020-09-02 Thread Bob Sneidar via use-livecode
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

Re: Looping though a numerically indexed array

2020-09-02 Thread Alex Tweedly via use-livecode
If the array is indexed from 1 with no gaps, you can do repeat with I = 1 to item 2 of line 1 of the extents of myArray Alex > On 2 Sep 2020, at 15:54, David Bovill via use-livecode > wrote: > > I’m pretty sure there must be a way to efficiently loop through numerically > indexed arrays >

Re: iOS sharing extension - anyone ever made one?

2020-09-02 Thread Ben Rubinstein via use-livecode
Hi David, Yes, I did have this working on iOS. ... unfortunately that's all I've got to offer! It's a couple of years since I worked on this project, and it was an internal app only - not distributed to the app store. I'm actually currently disbarred from testing apps on iOS - my current

Re: Hacktoberfest is coming

2020-09-02 Thread Richard Gaskin via use-livecode
Mike Kerner wrote: > there isn't any reason why we can't have a fork of the ide that > doesn't sit around waiting for themuns to say "ok". I've considered this myself, but maintaining something as complex as LC's IDE is no small task. In fact, I'm finding it less time consuming to replace

Re: Layers in PBrowser

2020-09-02 Thread Mark Wieder via use-livecode
On 9/2/20 8:22 AM, Bob Sneidar via use-livecode wrote: Looks like revGLX2 status. Interesting. I don't have that problem. I see a different problem though. I just tried minimizing Navigator and it's more or less centered on my main screen, but it's also unmovable when minimized, which is

Re: Looping though a numerically indexed array

2020-09-02 Thread Bob Sneidar via use-livecode
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,

RE: Looping though a numerically indexed array

2020-09-02 Thread Ralph DiMola via use-livecode
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

Re: Layers in PBrowser

2020-09-02 Thread Bob Sneidar via use-livecode
Looks like revGLX2 status. Bob S On Sep 2, 2020, at 7:15 AM, Geoff Canyon via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Hi Bob, Goes to show how important user research is. For me personally, I want to get Navigator out of the way entirely when I minimize it. It's trivial to

Re: Looping though a numerically indexed array

2020-09-02 Thread Brian Milby via use-livecode
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.

Re: Looking for LiveCode developer in Norway, Stavanger area

2020-09-02 Thread JeeJeeStudio via use-livecode
Off topic-- Ah Stavanger, i was there on motor holiday in 1995 or 96. Very nice to see the Fjords. On topic-- Keep us posted, most interested. But i'm Dutch, living in Belgium since a few months. So if you can't find people, it can be done remote. Tak, Jerry Op wo 2 sep. 2020 10:48 schreef Tore

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

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?

Re: Layers in PBrowser

2020-09-02 Thread Geoff Canyon via use-livecode
Hi Bob, Goes to show how important user research is. For me personally, I want to get Navigator out of the way entirely when I minimize it. It's trivial to have a preference to make it minimize in place. But also: I went to some length to have it avoid minimizing behind/on top of (don't remember

Re: Hacktoberfest is coming

2020-09-02 Thread Mike Kerner via use-livecode
there isn't any reason why we can't have a fork of the ide that doesn't sit around waiting for themuns to say "ok". On Tue, Sep 1, 2020 at 1:36 PM Tom Glod via use-livecode < use-livecode@lists.runrev.com> wrote: > H. good question Mark...I certainly don't want to do any work thats >

Re: Looking for LiveCode developer in Norway, Stavanger area

2020-09-02 Thread Tore Nilsen via use-livecode
And I thought I was the only person in Rogaland County using LiveCode. I have been teaching Information Technology at an upper secondary school in Haugesund for the last seven years, using LiveCode. I would very much like to keep tabs on what you are doing. It may be of interest to both me and

Re: Looking for LiveCode developer in Norway, Stavanger area

2020-09-02 Thread Stephen Barncard via use-livecode
Wow. Looking forward to the success story. On Tue, Sep 1, 2020 at 23:48 Ivar Andreassen via use-livecode < use-livecode@lists.runrev.com> wrote: > A mature startup is looking for programmers that have from "little" to > > professional experience with LiveCode in Norway, and in "south Rogaland" >

Looking for LiveCode developer in Norway, Stavanger area

2020-09-02 Thread Ivar Andreassen via use-livecode
A mature startup is looking for programmers that have from "little" to professional experience with LiveCode in Norway, and in "south Rogaland" "Stavanger Sandnes region". The reason for being so specific on location is that we want you physically present in our team meetings. We are developing a