MouseMove and HTML5

2018-06-29 Thread Roger Guay via use-livecode
This is my first time with saving to HTML5 and I find that a simple stack I created with a mousMove script does not work. I’m simply trying to constrain the motion of a grc along the vertical axis with a mouseMove script.The dictionary seems to confirm that mouseMove is not compatible with HTML5

bitwise shifts gone?

2018-06-29 Thread Mark Wieder via use-livecode
Hmmm... I just noticed that the bitwise shift left and right operators have disappeared from the language. When did this happen? The 'bitwise' modifier is still in the dictionary, but no indication as to how it might still be useful. From this I assume (yeah, I know...) that the engine is sm

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
You all are just too darn smart. great solution. On Fri, Jun 29, 2018 at 5:54 PM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > Why not just do it directly (avoid the function call) ... > > function sortIPList2 pIPList > set the itemdelimiter to "." > try >

Re: Tessellated hexagonal grid?

2018-06-29 Thread hh via use-livecode
A simple hexagonal grid creating stack: http://forums.livecode.com/viewtopic.php?p=168657#p168657 You choose the number of rows and columns and, for "scaling", the horizontal radius and vertical radius of the circumellipses. ___ use-livecode mailing lis

Re: Sort IP List

2018-06-29 Thread Bob Sneidar via use-livecode
Alex, you win the cookie! 4 ticks for 30,000 IP addresses! If we ever meet at a conference remind me and I will buy you beers. Not saying how namy, just more than one. :-) Bob S > On Jun 29, 2018, at 16:54 , Alex Tweedly via use-livecode > wrote: > > Why not just do it directly (avoid the f

Re: Sort IP List

2018-06-29 Thread Alex Tweedly via use-livecode
Why not just do it directly (avoid the function call) ... function sortIPList2 pIPList set the itemdelimiter to "." try sort lines of pIPList ascending numeric \ by (item 1 of each * 16777216) + \ (item 2 of each *65536) + \ (item 3 of each *256) +

Re: Sort IP List

2018-06-29 Thread hh via use-livecode
Your IP addresses [0-255].[0-255].[0-255].[0-255] are the hex IP numbers converted to base 256. So you may try the following sorting function that converts the IPs from base 256 to base 10 (decimal). function ip2dec x set itemdel to "." repeat with i=0 to 3 add (item 4-i of x)*256^i to y

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Now that is weird because the sort is definitely working for me.OH wait, you don't set the numberformat in your function. Do you set it elsewhere, and if so, does it stick when the function is called? The sort is definitely, no question, working for me. I generate a list of IPs then in the m

Re: Sort IP List

2018-06-29 Thread Bob Sneidar via use-livecode
I have good news and bad news! function sortIPList2 pIPList set the itemdelimiter to "." try sort lines of pIPList ascending numeric \ by (item 1 of each + 0) & \ (item 2 of each + 0) & \ (item 3 of each + 0) & \ (item 4 of each + 0)

RE: LCB Foreign LC9.0.0

2018-06-29 Thread Kevin Bergman via use-livecode
Monte, Thank you! And more questions 😊 I had read through the docs and I have tried the ios-universal folder - but I probably have the incorrect files in side of it. I am working with the WowazaGoCoder api and I am not familiar with ios/mac file extensions and even more confused by the .framew

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Yup, that would be it! On Fri, Jun 29, 2018 at 4:15 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Wait I know exactly what is wrong. I have a few lines that use CIDR > notation ie. 192.168.1.0/24 and THAT is not a number! > > Bob S > > > > On Jun 29, 2018, at 15:13 , B

Re: Sort IP List

2018-06-29 Thread Bob Sneidar via use-livecode
Wait I know exactly what is wrong. I have a few lines that use CIDR notation ie. 192.168.1.0/24 and THAT is not a number! Bob S > On Jun 29, 2018, at 15:13 , Bob Sneidar via use-livecode > wrote: > > Yeah mine won't run. I have: > > function sortIPList2 pIPList > set the itemdelimiter to

Re: Sort IP List

2018-06-29 Thread Bob Sneidar via use-livecode
Yeah mine won't run. I have: function sortIPList2 pIPList set the itemdelimiter to "." try sort lines of pIPList ascending numeric by (item 1 of each +0) & (item 2 of each + 0) & (item 3 of each + 0) & (item 4 of each + 0) catch theError breakpoint end try return pIPLis

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Oh, the above assumes setting the numberformat to "000" as you specified of course. On Fri, Jun 29, 2018 at 4:00 PM Mike Bonner wrote: > Thx for the clue, I see what you mean. > > I had tried to get something similar to your value(item 1 of each +0) > method to work and something wasn't clicking

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Thx for the clue, I see what you mean. I had tried to get something similar to your value(item 1 of each +0) method to work and something wasn't clicking, but after seeing yours, I think I have it working. sort lines of tList ascending numeric by (item 1 of each +0) & (item 2 of each + 0) & (item

Re: Sort IP List

2018-06-29 Thread Bob Sneidar via use-livecode
Yeah, no I get runtime error. > On Jun 29, 2018, at 14:09 , Bob Sneidar via use-livecode > wrote: > > Yes because your ampersand operator is not passing different arguements, it's > concatenating the items together so that 10.2.245.6 produces the integer > 1022456. But 10.22.2.6 produces 10

Re: Sort IP List

2018-06-29 Thread Bob Sneidar via use-livecode
Yes because your ampersand operator is not passing different arguements, it's concatenating the items together so that 10.2.245.6 produces the integer 1022456. But 10.22.2.6 produces 102226 which is smaller, but ought to sort higher. Hence the 4 pass sort. But you got me thinking, what if you

Re:

2018-06-29 Thread Bob Sneidar via use-livecode
Com is spamming again (sigh). Spammers are little sh*ts. Bob S > On Jun 29, 2018, at 10:07 , Com via use-livecode > wrote: > > > Com > > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, u

Re: LCB Foreign LC9.0.0

2018-06-29 Thread Monte Goulding via use-livecode
Hi Kevin The code folder conform to the platform id spec. https://github.com/livecode/livecode/blob/develop/docs/development/platform-id.md For iOS it will likely be universal-ios presuming you have universal b

LCB Foreign LC9.0.0

2018-06-29 Thread Kevin Bergman via use-livecode
Working with LCB - trying to load in external code. What is the proper directory structure that it needs to be in? I have it working on a windows comp - I can bulid the LCB and return data from calls in the external dll. Here is the directory structure: CVTTest\ xx.lcb

Re: Array Column Subset Revisited

2018-06-29 Thread J. Landman Gay via use-livecode
That one's the function. The command works with arrays. On 6/29/18 2:01 PM, Richmond Mathewson via use-livecode wrote: That's funny; I thought the "intersect" command was for finding out if objects overlapped each other. Richmond. On 29/6/2018 9:39 pm, J. Landman Gay via use-livecode wrote:

Re: Tessellated hexagonal grid?

2018-06-29 Thread Richmond Mathewson via use-livecode
Come to think of things, I ran off a load of tessellating hexagons in Turtle Graphics about 2 weeks ago using fekking code blocks. Richmond. On 29/6/2018 8:53 pm, Richmond Mathewson wrote: I cannot for the life of me work out why it is relatively easy to tessellate hexagons in BBC BASIC on my

Re: Array Column Subset Revisited

2018-06-29 Thread Richmond Mathewson via use-livecode
That's funny; I thought the "intersect" command was for finding out if objects overlapped each other. Richmond. On 29/6/2018 9:39 pm, J. Landman Gay via use-livecode wrote: Have you tried the "intersect" command? On 6/28/18 4:44 PM, Bob Sneidar via use-livecode wrote: Hi all. We know we can

Re: Array Column Subset Revisited

2018-06-29 Thread J. Landman Gay via use-livecode
Have you tried the "intersect" command? On 6/28/18 4:44 PM, Bob Sneidar via use-livecode wrote: Hi all. We know we can set the customKeys of an object, which will delete any elements of the custom properties not in the list we set it to. Wouldn't it be great if you do the same with the keys o

[no subject]

2018-06-29 Thread Com via use-livecode
http://distant.alexkrall.com 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

Re: Tessellated hexagonal grid?

2018-06-29 Thread Richmond Mathewson via use-livecode
I cannot for the life of me work out why it is relatively easy to tessellate hexagons in BBC BASIC on my BBC MODEL B while it is such a P.I.A. in LiveCode. https://computer-literacy-project.pilots.bbcconnectedstudio.co.uk/jsbeeb/index.html?disc1=CLP0001.ssd&loadBasic=%2Fbeeb%2Floader%2F7c8bf2e3-

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Actually, when using the multiple key sort, dont reverse the order since it does it all in one go. On Fri, Jun 29, 2018 at 11:29 AM Mike Bonner wrote: > Ok, now i'm curious about something.. I know its possible to designate > multiple keys to a single sort using the form.. > sort lines of plist

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Ok, now i'm curious about something.. I know its possible to designate multiple keys to a single sort using the form.. sort lines of plist by item 1 of each & item 2 of each & item 3 of each & item 4 of each which works fine. But changing it to.. sort lines of plist ascending numeric by item 1 o

iOS Application Loader

2018-06-29 Thread Randy Hengst via use-livecode
Hi All, I’ve been trying to send off an app to Apple using Application Loader. I’ve used it for all previous submissions. It seems to two factor change has caused issues. I’m stuck in a loop of passwords. Anyone successfully used Application Loader in the past month or two? be well, randy w

[no subject]

2018-06-29 Thread Com via use-livecode
http://edition.bluechasm-staging.com 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

Re: Sort IP List

2018-06-29 Thread Bob Sneidar via use-livecode
A realistic expectation of IP addresses for a given network might only be around 16,535 (class B network) assuming every address was in use, an unlikely scenario. I thought of way to do this for an extremely large number of addresses by reading a large file in 1000 line chunks into 4 columns of

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
## was writing this when your response showed up.. Just did some tests. For reasonable size lists of IP numbers, your method is clearly faster. As lines increase the disparity shrinks (due to 4 processings of the same lines rather than 1) until around 35000 lines at which point positions reverse a

Re: Sort IP List

2018-06-29 Thread Bob Sneidar via use-livecode
First, your function returns a single line of numbers. With 30,000 lines of input, yours takes 9 ticks, mine 8. Bob S > On Jun 29, 2018, at 08:37 , Mike Bonner via use-livecode > wrote: > > I don't know what speed differences there might be, but another option is > something like this.. >

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
I don't know what speed differences there might be, but another option is something like this.. function ipfunc pIp set the itemdel to "." set the numberformat to "###" -- force length of each chunk to 3 -- append the numbers together sans "." with padded 0's using numberformat repeat fo

Sort IP List

2018-06-29 Thread Bob Sneidar via use-livecode
Hi all. I somehow got on to how to sort IP addresses, seeing they are not real numbers, and read in the dictionary that the sort command is a "stable sort". This occured to me: function sortIPList pIPList set the itemdelimiter to "." sort lines of pIPList numeric by item 4 of each sor

Re: Tessellated hexagonal grid?

2018-06-29 Thread Phil Jimmieson via use-livecode
Hi David, Even with complex shapes, it’s pretty easy (once you have a template version) just to clone it, and then place it appropriately (and obviously that can be based on its centre, or, as you say, the edges of its rectangle). The maths shouldn’t be that hard (& I speak as someone who hates

Re: Tessellated hexagonal grid?

2018-06-29 Thread David V Glasgow via use-livecode
Not sure whether you really want to know or not ;-) Richmond puts his finger on it really. Most of the properties of a graphic polygon don’t relate to geometric features of the polygon itself - except when it is a rect. So, as Richard says, tiling them or otherwise changing properties of targ

Re: What exactly does the status pending in Livecode Quality Control Center mean

2018-06-29 Thread Ralf Bitter via use-livecode
Panos, thanks a lot. Ralf > On 29. Jun 2018, at 00:18, panagiotis merakos wrote: > > Hi all, > > This problem happened because some on-rev servers (Jasmine, Sage and Diesel) > had only the 64 bit version of this library, while others (e.g. Tio) had both > the 32 and 64 bit version. > > Rob