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. My 
question is, what is the best workaround for mouseMove?

Thanks for your help,

Roger
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 smart enough to 
compile a shift instead of a multiply if the multiplier is a multiple 
(see what I did there?) of 2. YMMV.


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


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
>sort lines of pIPList ascending numeric \
>  by (item 1 of each * 16777216) + \
>  (item 2 of each *65536) + \
>  (item 3 of each *256) + \
>  (item 4 of each )
> catch theError
>breakpoint
> end try
> return pIPList
> end sortIPList2
>
> or if you prefer ...
> by item 4 of each + 256 * ( item 3 of each + 256 * (item 2 of each +
> 256 * item 1 of each ))
> ...
>
> Alex.
>
> On 30/06/2018 00:41, hh via use-livecode wrote:
> > 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
> >end repeat
> >return y
> > end ip2dec
> >
> > on mouseUp
> >put fld "ips" into s
> >sort s numeric by ip2dec(each) # <
> >put s into fld "out"
> > 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: 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 list
use-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
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 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) + \
>(item 4 of each )
>   catch theError
>  breakpoint
>   end try
>   return pIPList
> end sortIPList2
> 
> or if you prefer ...
>   by item 4 of each + 256 * ( item 3 of each + 256 * (item 2 of each + 256 * 
> item 1 of each ))
> ...
> 
> Alex.
> 
> On 30/06/2018 00:41, hh via use-livecode wrote:
>> 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
>>   end repeat
>>   return y
>> end ip2dec
>> 
>> on mouseUp
>>   put fld "ips" into s
>>   sort s numeric by ip2dec(each) # <
>>   put s into fld "out"
>> 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: 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) + \
(item 4 of each )
   catch theError
  breakpoint
   end try
   return pIPList
end sortIPList2

or if you prefer ...
   by item 4 of each + 256 * ( item 3 of each + 256 * (item 2 of each + 256 * 
item 1 of each ))
...

Alex.

On 30/06/2018 00:41, hh via use-livecode wrote:

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
   end repeat
   return y
end ip2dec

on mouseUp
   put fld "ips" into s
   sort s numeric by ip2dec(each) # <
   put s into fld "out"
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


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
  end repeat
  return y
end ip2dec

on mouseUp
  put fld "ips" into s
  sort s numeric by ip2dec(each) # <
  put s into fld "out"
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


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 msg box do this..

set the numberformat to "000"
set the itemdel to "."
put the millisec into tstart
sort lines of tList ascending numeric by (item 1 of each +0) & (item 2 of
each + 0) & (item 3 of each + 0) & (item 4 of each + 0)
put the millisec - tstart
put cr & tList after msg -- the list is sorted.

Not sure why it isn't working for you, but on the off chance its a version
difference, i'm on 9.0, community +, stable.

On Fri, Jun 29, 2018 at 4:33 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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)
>catch theError
>   breakpoint
>end try
>return pIPList
> end sortIPList2
>
> With a small subset of data, it doesn't error meaning I have some cruft in
> the data. Fair enough. The bad news is... IT DOESN'T SORT! LOL!!! Reversing
> the items does not help either.
>
> Bob S
>
> > On Jun 29, 2018, at 15:16 , Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Yup, that would be 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
>
___
use-livecode mailing list
use-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
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)
   catch theError
  breakpoint
   end try
   return pIPList
end sortIPList2

With a small subset of data, it doesn't error meaning I have some cruft in the 
data. Fair enough. The bad news is... IT DOESN'T SORT! LOL!!! Reversing the 
items does not help either. 

Bob S

> On Jun 29, 2018, at 15:16 , Mike Bonner via use-livecode 
>  wrote:
> 
> Yup, that would be it!


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: 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 .framework directory

If the framework contains a dynamic library ( not 100% sure it does - but they 
have a framework directory and a wowza_gocoder_staticlib directory.. so 
guessing the framework is not static ) what would I copy into the 
/code/universal-ios/ directory?  The entire framework directory?

Example:

/code/universal-ios/WowzaGoCoderSDK.framework/

Of which the WowzaGoCoderSDK.framework/ contains:
/_CodeSignature/CodeResources --- no file extension but is an xml file 
/Headers/*.h - all the header files
/Modules/module.modulemap
/Info.plist
/strip-frameworks.sh
/WowzaGoCodersdk  this has no file extension at all

And is there any place I can look in what Livecode builds into the build 
directory to see if it copied over the library?  On the windows build there is 
a resources directory - and this was populated with the .dll.

Kevin

-Original Message-
From: use-livecode  On Behalf Of Monte 
Goulding via use-livecode
Sent: Friday, June 29, 2018 1:55 PM
To: How to use LiveCode 
Cc: Monte Goulding 
Subject: Re: LCB Foreign LC9.0.0 

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 binaries 
and don’t have separate builds for each sdk. In iOS 8+ there is such a thing as 
a dynamic framework which may be why your library comes as a lib and a 
framework. There are also lots of libraries delivered as static frameworks 
which are just a hack to make delivery easier. Dropping any of these inside the 
code/universal-ios folder should work.

If the iOS library requires linker dependencies a text file
(`.txt`) may be included to list them in the form:

{library | [weak-]framework} 

Note that if you only have a static library then as we don’t do static linking 
of our simulator builds it won’t work there.

> On 30 Jun 2018, at 6:15 am, Kevin Bergman via use-livecode 
>  wrote:
> 
> Now I am trying to work with an ios external.  I have a static lib - 
> xx.a and a headers folder as well as a xx.framework folder.  I have no 
> idea where to put these items.
> 
> Do I need to use staic and not the framework on ios?  Do I include the 
> headers folder or just the xx.a file?
> 
> 
> 
> CVTTest\
> 
>xx.lcb
> 
>xx.livecode
> 
>code
> 
>??

___
use-livecode mailing list
use-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: 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 , Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > 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 pIPList
> > end sortIPList2
> >
> > Script hits breakpoint but there is nothing in theError. What version/OS
> are you running? We may have uncovered an engine anomaly.
> >
> > Bob S
> >
> >> On Jun 29, 2018, at 15:00 , Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>
> >> sort lines of tList ascending numeric by (item 1 of each +0) & (item 2
> of
> >> each + 0) & (item 3 of each + 0) & (item 4 of each + 0)
> >
> >
> > ___
> > use-livecode mailing list
> > use-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: 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 "."
>   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 pIPList
> end sortIPList2
> 
> Script hits breakpoint but there is nothing in theError. What version/OS are 
> you running? We may have uncovered an engine anomaly. 
> 
> Bob S
> 
>> On Jun 29, 2018, at 15:00 , Mike Bonner via use-livecode 
>>  wrote:
>> 
>> sort lines of tList ascending numeric by (item 1 of each +0) & (item 2 of
>> each + 0) & (item 3 of each + 0) & (item 4 of each + 0)
> 
> 
> ___
> use-livecode mailing list
> use-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: 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 pIPList
end sortIPList2

Script hits breakpoint but there is nothing in theError. What version/OS are 
you running? We may have uncovered an engine anomaly. 

Bob S

> On Jun 29, 2018, at 15:00 , Mike Bonner via use-livecode 
>  wrote:
> 
> sort lines of tList ascending numeric by (item 1 of each +0) & (item 2 of
> each + 0) & (item 3 of each + 0) & (item 4 of each + 0)


___
use-livecode mailing list
use-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 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, 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 3 of each + 0) & (item 4 of each + 0)
>
> The above seems to work fine (and I avoided using value() to avoid an
> unnecessary function call), you just have to remember to set the
> itemdelimiter to "." otherwise you get the error.  This may be faster
> because there aren't a bunch of function calls like my first idea, though
> I'm not sure how overhead compares since the numbers must still be
> evaluated.
>
> Just did some testing and it seems to be way way faster.  100k lines sort
> in 3/4 of a second.
>
> On Fri, Jun 29, 2018 at 3:18 PM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Yeah, no I get runtime error. 
>>
>> > On Jun 29, 2018, at 14:09 , Bob Sneidar via use-livecode <
>> use-livecode@lists.runrev.com> 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 102226 which is
>> smaller, but ought to sort higher. Hence the 4 pass sort.
>> >
>> > But you got me thinking, what if you did something like:
>> >
>> > set the numberformat to "000"
>> > sort lines of tIPList numeric by \
>> >   value(item 1 of each +0) & \
>> >   value(item 2 of each +0) & \
>> >   value(item 3 of each +0) & \
>> >   value(item 4 of each)
>> >
>> > Bob S
>>
>>
>> ___
>> use-livecode mailing list
>> use-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: 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 3 of each + 0) & (item 4 of each + 0)

The above seems to work fine (and I avoided using value() to avoid an
unnecessary function call), you just have to remember to set the
itemdelimiter to "." otherwise you get the error.  This may be faster
because there aren't a bunch of function calls like my first idea, though
I'm not sure how overhead compares since the numbers must still be
evaluated.

Just did some testing and it seems to be way way faster.  100k lines sort
in 3/4 of a second.

On Fri, Jun 29, 2018 at 3:18 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Yeah, no I get runtime error. 
>
> > On Jun 29, 2018, at 14:09 , Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> 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 102226 which is smaller, but ought
> to sort higher. Hence the 4 pass sort.
> >
> > But you got me thinking, what if you did something like:
> >
> > set the numberformat to "000"
> > sort lines of tIPList numeric by \
> >   value(item 1 of each +0) & \
> >   value(item 2 of each +0) & \
> >   value(item 3 of each +0) & \
> >   value(item 4 of each)
> >
> > Bob S
>
>
> ___
> use-livecode mailing list
> use-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: 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 102226 which is smaller, but ought to sort 
> higher. Hence the 4 pass sort. 
> 
> But you got me thinking, what if you did something like:
> 
> set the numberformat to "000"
> sort lines of tIPList numeric by \
>   value(item 1 of each +0) & \
>   value(item 2 of each +0) & \
>   value(item 3 of each +0) & \
>   value(item 4 of each)
> 
> Bob S


___
use-livecode mailing list
use-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
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 did something like:

set the numberformat to "000"
sort lines of tIPList numeric by \
   value(item 1 of each +0) & \
   value(item 2 of each +0) & \
   value(item 3 of each +0) & \
   value(item 4 of each)

Bob S



> On Jun 29, 2018, at 10:29 , Mike Bonner via use-livecode 
>  wrote:
> 
> sort lines of plist  ascending numeric by item 1 of each &  item 2 of each &
> item 3 of each & item 4 of each  -- reverse this for your desired sort
> doesn't sort numerically (even if each key is forced to numeric with a + 0)


___
use-livecode mailing list
use-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:

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, 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: 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 binaries 
and don’t have separate builds for each sdk. In iOS 8+ there is such a thing as 
a dynamic framework which may be why your library comes as a lib and a 
framework. There are also lots of libraries delivered as static frameworks 
which are just a hack to make delivery easier. Dropping any of these inside the 
code/universal-ios folder should work.

If the iOS library requires linker dependencies a text file 
(`.txt`) may be included to list them in the form:

{library | [weak-]framework} 

Note that if you only have a static library then as we don’t do static linking 
of our simulator builds it won’t work there.

> On 30 Jun 2018, at 6:15 am, Kevin Bergman via use-livecode 
>  wrote:
> 
> Now I am trying to work with an ios external.  I have a static lib - xx.a
> and a headers folder as well as a xx.framework folder.  I have no idea where
> to put these items.
> 
> Do I need to use staic and not the framework on ios?  Do I include the
> headers folder or just the xx.a file?
> 
> 
> 
> CVTTest\
> 
>xx.lcb
> 
>xx.livecode
> 
>code
> 
>??

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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

xx.livecode

code\

x86-win32\

xx.dll



 

Now I am trying to work with an ios external.  I have a static lib - xx.a
and a headers folder as well as a xx.framework folder.  I have no idea where
to put these items.

Do I need to use staic and not the framework on ios?  Do I include the
headers folder or just the xx.a file?

 

CVTTest\

xx.lcb

xx.livecode

code

??



 

Thank you for your assistance!

___
use-livecode mailing list
use-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: 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:

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 of an array? 
Currently, the keys of an array are read only. If they were settable, 
you could effectively get just the column(s) of an array (like the 
dgData of a datagrid) without having to iterate through every array 
element.


It may be nitpicking though, if the time savings are negligible.

Bob S





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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
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 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=%2Fbeeb%2Floader%2F7c8bf2e3-5488-6322-09d6-e137cdae5605=1=Master

Richmond.

On 29/6/2018 2:05 pm, David V Glasgow via use-livecode wrote:

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 target and adjacent hexes on 
the fly will involve what the Bash Street Kids called "hard 
sums”.

If I do go with hexes, I’m thinking the lazy way (my way) would be to simply 
show hidden hexes rather than allow allow true creation.  That would mean 
having a hard edge - which on the plus side would at least prevent Richmond’s 
flat earther’s falling off.

Best wishes,

David G


On 27 Jun 2018, at 10:32 pm, Bob Sneidar via 
use-livecode  wrote:

I would agree if I understood one word of it, or even what the problem was this 
approach was trying to solve.

Bob S



On Jun 27, 2018, at 08:42 , Rick Harrison via 
use-livecode  wrote:

Great resource and read.

Thanks!

Rick


On Jun 27, 2018, at 5:30 AM, hh via use-livecode 
 wrote:

Here a rather complete guide to the "theory" with a link
to implementation guides for several programming languages,
especially, close to LC, JavaScript.

https://www.redblobgames.com/grids/hexagons/

___
use-livecode mailing list
use-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: 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 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 of an array? 
Currently, the keys of an array are read only. If they were settable, 
you could effectively get just the column(s) of an array (like the 
dgData of a datagrid) without having to iterate through every array 
element.


It may be nitpicking though, if the time savings are negligible.

Bob S





___
use-livecode mailing list
use-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: 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 of an array? Currently, the keys of an array are 
read only. If they were settable, you could effectively get just the column(s) 
of an array (like the dgData of a datagrid) without having to iterate through 
every array element.

It may be nitpicking though, if the time savings are negligible.

Bob S



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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


[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=%2Fbeeb%2Floader%2F7c8bf2e3-5488-6322-09d6-e137cdae5605=1=Master

Richmond.

On 29/6/2018 2:05 pm, David V Glasgow via use-livecode wrote:

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 target and adjacent hexes on 
the fly will involve what the Bash Street Kids called "hard sums”  
.

If I do go with hexes, I’m thinking the lazy way (my way) would be to simply 
show hidden hexes rather than allow allow true creation.  That would mean 
having a hard edge - which on the plus side would at least prevent Richmond’s 
flat earther’s falling off.

Best wishes,

David G


On 27 Jun 2018, at 10:32 pm, Bob Sneidar via use-livecode 
 wrote:

I would agree if I understood one word of it, or even what the problem was this 
approach was trying to solve.

Bob S



On Jun 27, 2018, at 08:42 , Rick Harrison via use-livecode 
 wrote:

Great resource and read.

Thanks!

Rick


On Jun 27, 2018, at 5:30 AM, hh via use-livecode 
 wrote:

Here a rather complete guide to the "theory" with a link
to implementation guides for several programming languages,
especially, close to LC, JavaScript.

https://www.redblobgames.com/grids/hexagons/


___
use-livecode mailing list
use-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: 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  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 of each &  item 2 of
> each & item 3 of each & item 4 of each  -- reverse this for your desired
> sort
> doesn't sort numerically (even if each key is forced to numeric with a + 0)
>
> BTW, I had to go back to comments in an older version of LC to remember
> how to do the multiple-key sorts.
>
> Since it ignores the "numeric" part, if one limits ips to all 3 digit
> numbers, the sort works as expected despite sorting as  alpha.
>
> So my question is this.. Would it be a reasonable feature request to
> adjust sort so that its multiple key format respects the numeric sort type?
>
>
> On Fri, Jun 29, 2018 at 10:46 AM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> 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 a SQL memory database, then querying using concatenation and
>> sorts on the 4 columns, and using limit 1,1000 1001,1000 2001,1000 etc. and
>> writing back to another file. The time to do this of course would be much
>> longer, but it would avoid any memory constraints.
>>
>> Bob S
>>
>>
>> > On Jun 29, 2018, at 09:35 , Mike Bonner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > ## 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 and the disparity grows in favor of the
>> > function(each) method.
>> >
>> > After just a bit more testing, the fastest method (for anything over
>> 2
>> > lines) is to run through the whole list first converting it to numeric
>> and
>> > then do a single simple sort, but that leaves you with a straight list
>> of
>> > numbers that would then have to be re-divided into triads, so the post
>> > processing needed kills the whole idea.
>> >
>> > As for your response,
>> > Yes  the function is called by sort for each line and returns the
>> numbers
>> > to use to give that line its sort value.  It isn't as fast as I had
>> hoped
>> > most likely because it has to call a function for each line in the list.
>> > With the first method I posted, on my machine, the crossover point is
>> right
>> > around 35000 lines (at least on my system, at 35000 lines it takes 475
>> > millisec to 612 millisec vs the 4xsort)   At 200,000 lines the disparity
>> > grows to over 3 seconds difference, but i'm unsure what max length list
>> > might be reasonably expected.  The 4 sort method is by far the simplest
>> to
>> > code and is plenty fast for list under 10.
>> > The nicest part of your method is that if processing a huge list, its
>> easy
>> > to give visual feedback between each sort if need be.  But again, all
>> this
>> > is likely moot unless the ip list is huge.
>>
>>
>> ___
>> use-livecode mailing list
>> use-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: 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 of each &  item 2 of each &
 item 3 of each & item 4 of each  -- reverse this for your desired sort
doesn't sort numerically (even if each key is forced to numeric with a + 0)

BTW, I had to go back to comments in an older version of LC to remember how
to do the multiple-key sorts.

Since it ignores the "numeric" part, if one limits ips to all 3 digit
numbers, the sort works as expected despite sorting as  alpha.

So my question is this.. Would it be a reasonable feature request to adjust
sort so that its multiple key format respects the numeric sort type?


On Fri, Jun 29, 2018 at 10:46 AM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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 a SQL memory database, then querying using concatenation and
> sorts on the 4 columns, and using limit 1,1000 1001,1000 2001,1000 etc. and
> writing back to another file. The time to do this of course would be much
> longer, but it would avoid any memory constraints.
>
> Bob S
>
>
> > On Jun 29, 2018, at 09:35 , Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > ## 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 and the disparity grows in favor of the
> > function(each) method.
> >
> > After just a bit more testing, the fastest method (for anything over
> 2
> > lines) is to run through the whole list first converting it to numeric
> and
> > then do a single simple sort, but that leaves you with a straight list of
> > numbers that would then have to be re-divided into triads, so the post
> > processing needed kills the whole idea.
> >
> > As for your response,
> > Yes  the function is called by sort for each line and returns the numbers
> > to use to give that line its sort value.  It isn't as fast as I had hoped
> > most likely because it has to call a function for each line in the list.
> > With the first method I posted, on my machine, the crossover point is
> right
> > around 35000 lines (at least on my system, at 35000 lines it takes 475
> > millisec to 612 millisec vs the 4xsort)   At 200,000 lines the disparity
> > grows to over 3 seconds difference, but i'm unsure what max length list
> > might be reasonably expected.  The 4 sort method is by far the simplest
> to
> > code and is plenty fast for list under 10.
> > The nicest part of your method is that if processing a huge list, its
> easy
> > to give visual feedback between each sort if need be.  But again, all
> this
> > is likely moot unless the ip list is huge.
>
>
> ___
> use-livecode mailing list
> use-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 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
www.classroomFocusedSoftware.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

[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 a SQL 
memory database, then querying using concatenation and sorts on the 4 columns, 
and using limit 1,1000 1001,1000 2001,1000 etc. and writing back to another 
file. The time to do this of course would be much longer, but it would avoid 
any memory constraints. 

Bob S


> On Jun 29, 2018, at 09:35 , Mike Bonner via use-livecode 
>  wrote:
> 
> ## 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 and the disparity grows in favor of the
> function(each) method.
> 
> After just a bit more testing, the fastest method (for anything over 2
> lines) is to run through the whole list first converting it to numeric and
> then do a single simple sort, but that leaves you with a straight list of
> numbers that would then have to be re-divided into triads, so the post
> processing needed kills the whole idea.
> 
> As for your response,
> Yes  the function is called by sort for each line and returns the numbers
> to use to give that line its sort value.  It isn't as fast as I had hoped
> most likely because it has to call a function for each line in the list.
> With the first method I posted, on my machine, the crossover point is right
> around 35000 lines (at least on my system, at 35000 lines it takes 475
> millisec to 612 millisec vs the 4xsort)   At 200,000 lines the disparity
> grows to over 3 seconds difference, but i'm unsure what max length list
> might be reasonably expected.  The 4 sort method is by far the simplest to
> code and is plenty fast for list under 10.
> The nicest part of your method is that if processing a huge list, its easy
> to give visual feedback between each sort if need be.  But again, all this
> is likely moot unless the ip list is huge.


___
use-livecode mailing list
use-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 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 and the disparity grows in favor of the
function(each) method.

After just a bit more testing, the fastest method (for anything over 2
lines) is to run through the whole list first converting it to numeric and
then do a single simple sort, but that leaves you with a straight list of
numbers that would then have to be re-divided into triads, so the post
processing needed kills the whole idea.

As for your response,
Yes  the function is called by sort for each line and returns the numbers
to use to give that line its sort value.  It isn't as fast as I had hoped
most likely because it has to call a function for each line in the list.
With the first method I posted, on my machine, the crossover point is right
around 35000 lines (at least on my system, at 35000 lines it takes 475
millisec to 612 millisec vs the 4xsort)   At 200,000 lines the disparity
grows to over 3 seconds difference, but i'm unsure what max length list
might be reasonably expected.  The 4 sort method is by far the simplest to
code and is plenty fast for list under 10.
The nicest part of your method is that if processing a huge list, its easy
to give visual feedback between each sort if need be.  But again, all this
is likely moot unless the ip list is huge.

On Fri, Jun 29, 2018 at 9:37 AM Mike Bonner  wrote:

> 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 for each item tItem in pIp
>  put tItem +0 after tIp -- do the add to force the numberformat to
> work
>end repeat
>return tIp
> end ipfunc
>
> And then use it like so..
> sort lines of myIpList ascending numeric by ipfunc(each)
>
>
> On Fri, Jun 29, 2018 at 9:14 AM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> 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
>>sort lines of pIPList numeric by item 3 of each
>>sort lines of pIPList numeric by item 2 of each
>>sort lines of pIPList numeric by item 1 of each
>>return pIPList
>> end sortIPList
>>
>> Enjoy!
>>
>> Bob S
>>
>>
>> ___
>> use-livecode mailing list
>> use-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: 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..
> 
> 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 for each item tItem in pIp
> put tItem +0 after tIp -- do the add to force the numberformat to
> work
>   end repeat
>   return tIp
> end ipfunc
> 
> And then use it like so..
> sort lines of myIpList ascending numeric by ipfunc(each)
> 
> 
> On Fri, Jun 29, 2018 at 9:14 AM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 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
>>   sort lines of pIPList numeric by item 3 of each
>>   sort lines of pIPList numeric by item 2 of each
>>   sort lines of pIPList numeric by item 1 of each
>>   return pIPList
>> end sortIPList
>> 
>> Enjoy!
>> 
>> Bob S
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: 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 for each item tItem in pIp
 put tItem +0 after tIp -- do the add to force the numberformat to
work
   end repeat
   return tIp
end ipfunc

And then use it like so..
sort lines of myIpList ascending numeric by ipfunc(each)


On Fri, Jun 29, 2018 at 9:14 AM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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
>sort lines of pIPList numeric by item 3 of each
>sort lines of pIPList numeric by item 2 of each
>sort lines of pIPList numeric by item 1 of each
>return pIPList
> end sortIPList
>
> Enjoy!
>
> Bob S
>
>
> ___
> use-livecode mailing list
> use-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


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
   sort lines of pIPList numeric by item 3 of each
   sort lines of pIPList numeric by item 2 of each
   sort lines of pIPList numeric by item 1 of each
   return pIPList
end sortIPList

Enjoy! 

Bob S


___
use-livecode mailing list
use-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 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 hard sums ).

Sent from my iPhone

> On 29 Jun 2018, at 12:05, David V Glasgow via use-livecode 
>  wrote:
> 
> 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 target and adjacent hexes on the fly will involve what the Bash 
> Street Kids called "hard sums”  
> .
>   
> 
> If I do go with hexes, I’m thinking the lazy way (my way) would be to simply 
> show hidden hexes rather than allow allow true creation.  That would mean 
> having a hard edge - which on the plus side would at least prevent Richmond’s 
> flat earther’s falling off.
> 
> Best wishes,
> 
> David G
> 
>> On 27 Jun 2018, at 10:32 pm, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> I would agree if I understood one word of it, or even what the problem was 
>> this approach was trying to solve. 
>> 
>> Bob S
>> 
>> 
>>> On Jun 27, 2018, at 08:42 , Rick Harrison via use-livecode 
>>>  wrote:
>>> 
>>> Great resource and read.
>>> 
>>> Thanks!
>>> 
>>> Rick
>>> 
 On Jun 27, 2018, at 5:30 AM, hh via use-livecode 
  wrote:
 
 Here a rather complete guide to the "theory" with a link
 to implementation guides for several programming languages,
 especially, close to LC, JavaScript.
 
 https://www.redblobgames.com/grids/hexagons/
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: 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 target and adjacent hexes on the fly will involve what the Bash 
Street Kids called "hard sums”  
.
  

If I do go with hexes, I’m thinking the lazy way (my way) would be to simply 
show hidden hexes rather than allow allow true creation.  That would mean 
having a hard edge - which on the plus side would at least prevent Richmond’s 
flat earther’s falling off.

Best wishes,

David G

> On 27 Jun 2018, at 10:32 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> I would agree if I understood one word of it, or even what the problem was 
> this approach was trying to solve. 
> 
> Bob S
> 
> 
>> On Jun 27, 2018, at 08:42 , Rick Harrison via use-livecode 
>>  wrote:
>> 
>> Great resource and read.
>> 
>> Thanks!
>> 
>> Rick
>> 
>>> On Jun 27, 2018, at 5:30 AM, hh via use-livecode 
>>>  wrote:
>>> 
>>> Here a rather complete guide to the "theory" with a link
>>> to implementation guides for several programming languages,
>>> especially, close to LC, JavaScript.
>>> 
>>> https://www.redblobgames.com/grids/hexagons/
> 
> 
> ___
> use-livecode mailing list
> use-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: 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.
> 
> Robin has identified and fixed the problem, so the 32bit version of LC Server 
> 9 now does work on all on-rev servers.
> 
> Best,
> Panos

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode