Re: Calculating the sum of a *lot* of primes

2015-11-11 Thread Geoff Canyon
I re-wrote the algorithm a bit to tweak for speed, then ran it successfully for primes up to 3 billion (a couple hours), and got the wrong answer because my big addition function was broken :-/ So I broke the problem in two: first generate the list of primes, then do the addition. For the primes

Re: Calculating the sum of a *lot* of primes

2015-11-11 Thread Jerry Jensen
Interesting challenge, and puzzling crashiness. As a first thought, making the bAdd function private might have some speed advantage - but since the message path isn’t very complicated in this example, it might not be a lot. I’m not sure how many primes are involved, but I think its lots, as you

Re: 'Quit' mystery

2015-11-11 Thread J. Landman Gay
That's what I suspected; the stacks aren't actually substacks. Now it makes sense. Thanks for the clarification. On 11/11/2015 10:59 PM, Howard Bornstein wrote: The dictionary says this (from LC 6.7.5): In standalones, some care is needed to ensure you receive the *shutdownRequest* message if

Re: 'Quit' mystery

2015-11-11 Thread Howard Bornstein
The dictionary says this (from LC 6.7.5): In standalones, some care is needed to ensure you receive the *shutdownRequest* message if your application uses multiple stacks. The most reliable approach is to install a library stack or backscript to handle the message when your application starts up.

Re: [ANN] DropboxAPI_2_tester

2015-11-11 Thread Terry Judd
Gerard, this is great!I¹m using Guglielmo¹s library (which is also fantastic) in a couple of current project but I can see myself transitioning to this before too long. Once I got the paths stuff sorted out it worked beautifully. Terry... On 9/11/2015 8:03 pm, "use-livecode on behalf of gmcrev"

Re: 'Quit' mystery

2015-11-11 Thread J. Landman Gay
On 11/11/2015 7:54 PM, Mark Smith wrote: is it not the case that the message path goes from substacks to the main stack? If so, should not a "shutdownRequest" message not handled in a sub stack be passed up the message path to the main stack? In which case you don't need shutdownRequests in each

Re: 'Quit' mystery

2015-11-11 Thread Mark Smith
I am just coming back to LC after a few months off (18 perhaps?) so I am a bit rusty but is it not the case that the message path goes from substacks to the main stack? If so, should not a "shutdownRequest" message not handled in a sub stack be passed up the message path to the main stack? In which

Re: Area of Irregular Polygon

2015-11-11 Thread BNig
for those on the list like me who can only iteratively add 1 to a variable and that have 10 seconds to spare to get at the area of a polygon: here is what the screen thinks it is: --- on mouseUp put "poly" into pName if not (there is a graphic

Re: what id "discover new properties ?

2015-11-11 Thread William Prothero
Peter: Thanks! I’m still getting familiar with the resource, but it looks very nice. Best, Bill > On Nov 11, 2015, at 3:26 PM, Peter Haworth wrote: > > Hi Bill, > Thai has to do with new properties that are introduced in each version of > Livecode. lcStackbrowser needs to gather info about them

Re: what id "discover new properties ?

2015-11-11 Thread William Prothero
Peter: Thanks! I’m still getting familiar with the resource, but it looks very complete. Best, Bill > On Nov 11, 2015, at 3:26 PM, Peter Haworth wrote: > > Hi Bill, > Thai has to do with new properties that are introduced in each version of > Livecode. lcStackbrowser needs to gather info about

Re: Area of Irregular Polygon

2015-11-11 Thread [-hh]
> James H. wrote: > Multiplying this out you get: > > x(i)*y(i+1) - x(i+1)y(i) + [x(i+1)* y(i+1) - x(i)* y(i)] > > So THE SAME EXPRESSION as in the centroid method EXCEPT for the added term in > square brackets. So, WHY THE DIFFERENCE? > > In calculating this sum all of the intermediate t

Re: what id "discover new properties ?

2015-11-11 Thread Peter Haworth
Hi Bill, Thai has to do with new properties that are introduced in each version of Livecode. lcStackbrowser needs to gather info about them for it's property editing features. For each new property it finds, it will ask you to specify how it should be edited (text, checkbox, etc). It will displa

Re: A different take on directorywalking

2015-11-11 Thread Alex Tweedly
If you think that the recursion is the cause of any perceived slow-down, there is an alternative of using a non-recursive version in pure LC. I posted one such example to the use-list on 26th Oct in the thread recursion limit when creating file list of harddrive And being pure LC, you ca

Re: MouseMove message interrupted when I change cards

2015-11-11 Thread Mike Bonner
Does it work if you put mousemove in the stack? If so, then you can filter controls you don't want to be affected by your mousemove handler. On Wed, Nov 11, 2015 at 3:27 PM, Matt Maier wrote: > Maybe you could "send MouseEnter to [same control]" when you change cards > if that restarts the mous

Re: Detailed system information

2015-11-11 Thread Roger Eller
*function* Bytes2Size pBytes *return* roundpBytes)/1024)/1024)/1024,2) && "GB" *end* Bytes2Size On Wed, Nov 11, 2015 at 4:54 PM, Roger Eller wrote: > I commented out the line dependant on another function: "Bytes2Size(the > diskspace)" > > __

Re: Area of Irregular Polygon

2015-11-11 Thread Jim Hurley
Very interesting discussion. However, I was puzzled by the following term in the sum used to calculate the area of a polygon--labeled the centroid method. x(i)*y(i+1) - x(i+1)y(i) Where does this come from? If one were using the traditional method of calculating the area under a curve (per

Re: MouseMove message interrupted when I change cards

2015-11-11 Thread Matt Maier
Maybe you could "send MouseEnter to [same control]" when you change cards if that restarts the mouseMove stream. On Wed, Nov 11, 2015 at 1:32 PM, David Epstein wrote: > Thanks to Scott Rossi, whose example is indeed what I am trying to do, and > to Matt Maier, who warns me that there are aspects

Re: what id "discover new properties ?

2015-11-11 Thread William Prothero
Dang! Never mind. It was from lcStackBrowser. I’ve gotta read the help button. Sorry, Bill > On Nov 11, 2015, at 2:24 PM, William Prothero wrote: > > Hi, when I update a version of livecode, I get a window that says “Update the > list of property names for Livecode version 7.1.1-rc-3”. > > Wha

what id "discover new properties ?

2015-11-11 Thread William Prothero
Hi, when I update a version of livecode, I get a window that says “Update the list of property names for Livecode version 7.1.1-rc-3”. What should I do with this? Bill William Prothero, Ph.D. University of California, Santa Barbara, Emeritus proth...@earthednet.org

Re: Detailed system information

2015-11-11 Thread Roger Eller
I commented out the line dependant on another function: "Bytes2Size(the diskspace)" and I changed stack "MyApp" to simply this stack. Result: System Profile Wednesday, November 11, 2015, 4:51 PM Application: MyApp Version: N/A Location: C:/Program Files (x86)/RunRev/LiveCode 6.5.2/LiveCode.

Re: Detailed system information

2015-11-11 Thread Magicgate Software - Skip Kimpel
Thank you Richard and Roger! I thought about using shell to get to command line systeminfo but it take too long to return the results. I think I will have something to start with here. I'll post whatever I end up creating. SKIP On Wed, Nov 11, 2015 at 4:38 PM, Roger Eller wrote: > Skip, here

Re: Detailed system information

2015-11-11 Thread Richard Gaskin
Skip Kimpel wrote: Has anybody created a script to get detailed information from the user in a standalone so that it can be sent back for debugging? Out of the box I am only finding "systemInformation" and "the platform" I would love to get many more details such as (on a Windows machine) the

Re: Detailed system information

2015-11-11 Thread Roger Eller
Skip, here are a few goodies. For the installed browsers, I think you'll have to query the registry, but I don't have the specifics on that. put the systemVersion put the platform put shell("java -version") put $COMPUTERNAME put $USERNAME ~Roger On Wed, Nov 11, 2015 at 4:05 PM, Magicgate S

Re: MouseMove message interrupted when I change cards

2015-11-11 Thread David Epstein
Thanks to Scott Rossi, whose example is indeed what I am trying to do, and to Matt Maier, who warns me that there are aspects of mouseMove I don't quite understand. In trying to see why Scott's example works and mine does not, I discovered that my "mouseleave" handler seemed to be the problem.

Detailed system information

2015-11-11 Thread Magicgate Software - Skip Kimpel
Good afternoon, Has anybody created a script to get detailed information from the user in a standalone so that it can be sent back for debugging? Out of the box I am only finding "systemInformation" and "the platform" I would love to get many more details such as (on a Windows machine) the versi

Formatting a number with two or more decimal points

2015-11-11 Thread Alejandro Tejada
Hi All, on Wed Nov 11, Matt Maier wrote: > This works with the two cases you described. > I've heard that "repeat while" isn't the fastest option, > but it sounded like 6 repeats would be an extreme > case, so it probably doesn't matter... on Wed Nov 11, James Hale wrote: > You could just use the

Re: Vector Images and the SVGL stack

2015-11-11 Thread [-hh]
> Scott R. wrote: > Currently, the point system of LiveCode's default graphics is based on > full 1-pixel units, which limits the degree of subtlety that can be > applied to a graphic. Until the "shape" object materializes and/or > bezier curves, it isn't possible to create a graphic with smooth >

Re: intersection point of two graphic line segments

2015-11-11 Thread David V Glasgow
Thanks Malte! > On 11 Nov 2015, at 3:04 pm, Malte Brill wrote: > > Hi David, > > http://www.derbrill.de/animationEngine6.zip > > > ae is dual licensed (GPL3 / commercial) Stack is unlocked and the zip > Contains a PDF + some examples. What you wi

AW: AW: Standalone Internet Access Errors

2015-11-11 Thread Tiemo Hollmann TB
With "private" I meant standard "home-networks" I don't think it has something to do with "installed" / "just launched". As Malte said, if it would be a security problem from not being installed, it would be blocked while launching. Standard "home-router-firewalls" and the standard windows firewa

Re: AW: Standalone Internet Access Errors

2015-11-11 Thread Paul Dupuis
On 11/11/2015 11:03 AM, Dan Friedman wrote: > Since it's only my app that was not "installed", and it launches and seems to > run fine but can't "see" the internet, I figured the issue was some type of > "anit-someing" software on their computer is blocking my app from reaching > the internet.

Re: Area of Irregular Polygon

2015-11-11 Thread [-hh]
> Alex T. wrote: > For the area calculation, it is actually marginally faster without the > "delete line 1 of p" - i.e. as Geoff Canyon suggested. > ... > So omitting the "delete line 1 of p" is more efficient - as well as > being one line fewer of code. You are right, of course. I read the thre

Re: OT: Announce -- Himalayan Academy's First LiveCode Mobile App is Up

2015-11-11 Thread paolo mazza
Very nice app. It works fine in my smartphone. On Wed, Nov 11, 2015 at 5:04 PM, Mark Smith wrote: > Looking forward to viewing this once it comes out in the appStore. > > Mark > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/OT-Announce-Himalayan-Acade

Re: OT: Announce -- Himalayan Academy's First LiveCode Mobile App is Up

2015-11-11 Thread Mark Smith
Looking forward to viewing this once it comes out in the appStore. Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Announce-Himalayan-Academy-s-First-LiveCode-Mobile-App-is-Up-tp4698518p4698693.html Sent from the Revolution - User mailing list archive at

Re: A different take on directorywalking

2015-11-11 Thread Bob Sneidar
Whoa! So long as the tree is in your own yard... ;-) Bob S On Nov 11, 2015, at 07:52 , Kevin Miller mailto:ke...@livecode.com>> wrote: so not long to wait (touchwood!). ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this ur

Re: AW: Standalone Internet Access Errors

2015-11-11 Thread Dan Friedman
Tiemo, I'm not a Windows or network expert, so I don't think I understand the complete meaning of "private". But, my customers are just normal folks on their home computers. Today, almost everyone has a home network, so I'm sure there is a network in play. And who knows how they have it conf

Re: Formatting a number with two or more decimal points

2015-11-11 Thread Bob Sneidar
A number with more than one period... is not a number. An IP address is not a number. It's a period delimited list of decimal values ranging from 0 to 255. It may help to think of them as such. Bob S ___ use-livecode mailing list use-livecode@lists

Re: A different take on directorywalking

2015-11-11 Thread Kevin Miller
Indeed he has. However I suspect that it may be this patch in fact goes into DP10 as it is still undergoing final refinements. We are keen to keep the momentum up with 8 and would like to get a DP9 out imminently to resolve some other issues that have come up. We will be aiming for a DP10 only days

Re: Standalone Internet Access Errors

2015-11-11 Thread Dan Friedman
Malte, Yes, 7.0.1. When this happens, it's usually on user's home computer. Which I would assume is a standard user account. What did you replace libURL with? -Dan > Hi Dan, > > is this with the 7 engine? > If the app launches ok, it can not be blocked in general. However, I have > s

Re: A different take on directorywalking

2015-11-11 Thread Richard Gaskin
Malte Brill wrote: > as the livecode solutions tend to become rather slow if there is > a certain amount of nesting involved, I want to come up with a shell > alternative to directorywalking. I would be interested in your benchmarks. In my own (limited) testing I've found that once we added appr

Re: intersection point of two graphic line segments

2015-11-11 Thread Malte Brill
Hi David, http://www.derbrill.de/animationEngine6.zip ae is dual licensed (GPL3 / commercial) Stack is unlocked and the zip Contains a PDF + some examples. What you will be interested in: lineSegmentIntersectionPoint(x1,y1,x2,y2,x3,y3,x4,y4) get l

Re: Calculating the sum of a *lot* of primes

2015-11-11 Thread Geoff Canyon
On Wed, Nov 11, 2015 at 3:18 AM, AndyP wrote: > Have a look here for a few examples. > > http://2108.co.uk/questions/question/primes-between-20-and-700/ > > > Interesting examples, but unfortunately none of them are even remotely a

Re: intersection point of two graphic line segments

2015-11-11 Thread David V Glasgow
Well, that’s piqued my interest. Not easy to find animation AnimationEngine, so what would detecting intersections and creating overpasses involve using AnimationEngine? D > On 11 Nov 2015, at 1:08 pm, Malte Brill wrote: > > Hi David, > >> Has anybody dealt with this before > > I have metho

Re: Calculating the sum of a *lot* of primes

2015-11-11 Thread Geoff Canyon
Ha, caught me being lazy. For loops like repeat with i = 1 to fld 1 there is (almost) no difference -- the field gets referenced one time at the start and that's it. But since I was lazy about how a loop with "step 2" in it would exit, I was slower. Thanks! gc On Wed, Nov 11, 2015 at 7:34 AM,

Re: A different take on directorywalking

2015-11-11 Thread Peter TB Brett
On 11/11/2015 13:40, Malte Brill wrote: Hi Mike, thanks for the reply! For the Mac I seem to be able to use: put "find -d tree“ && tPath && "-type f“ into tShellCommand For Windows of course I forgot to replace the backslashes with slashes. Not sure if find is available and has the same swi

Re: A different take on directorywalking

2015-11-11 Thread Malte Brill
Hi Mike, thanks for the reply! For the Mac I seem to be able to use: put "find -d tree“ && tPath && "-type f“ into tShellCommand For Windows of course I forgot to replace the backslashes with slashes. Not sure if find is available and has the same switches on Linux though… All the best, Mal

Re: Standalone Internet Access Errors

2015-11-11 Thread Malte Brill
Hi Dan, is this with the 7 engine? If the app launches ok, it can not be blocked in general. However, I have seen similar problems on windows but did not nail it yet. My problems were on the intranet though. The weird thing is, that using the IP address instead of the server name usually resolv

Re: Formatting a number with two or more decimal points

2015-11-11 Thread James Hale
You could just use the replace function. function newnum pnum put offset(".",pnum,3) into trem if trem = 0 then --only a single decimal return pnum else --we have more than on decimal, remove good number for later put char 1 to trem+2 of pnum into newnum delete cha

Re: A different take on directorywalking

2015-11-11 Thread Mike Doub
I think the issue you are going to run into is going to be the output format.  On both Mac and Linux you are going to be using the "ls -R" command. Do a search on unix ls command and you can see some example outputs in some of the articles. -= Mike On Nov 11, 2015, 7:54 AM, at 7:54 AM, Ma

Re: intersection point of two graphic line segments

2015-11-11 Thread Malte Brill
Hi David, > Has anybody dealt with this before I have methods to deal with this in animationEngine. :-) Cheers, Malte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscrip

A different take on directorywalking

2015-11-11 Thread Malte Brill
Hi all, as the livecode solutions tend to become rather slow if there is a certain amount of nesting involved, I want to come up with a shell alternative to directorywalking. something like — [snip] set the hideconsoleWindows to true switch case „win“ is in the platform put "dir " & tPath

Re: Calculating the sum of a *lot* of primes

2015-11-11 Thread Peter M. Brigham
There may be other factors more important for speed, but one thing is to avoid having to access the contents of a field 1.5 billion times, by putting fld 1 into a variable, say "maxNbr", and then doing repeat until i > maxNbr… -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/

intersection point of two graphic line segments

2015-11-11 Thread David V Glasgow
I just want to run an idea by list members. I am looking at creating “overpasses” inserted into one grc line segment over another where they cross. I can use intersect to determine if any (newly created or moved) lines cross any other(s) already existing. However, that doesn’t tell you where

AW: Standalone Internet Access Errors

2015-11-11 Thread Tiemo Hollmann TB
Hi Dan, if the same App trying to reach the same URL is working at some customers and at some not, it is obviously a thing on the customers computer side. When I get the message "host address not found" in my App it is almost always that the customers computer is not a single "private PC", but is

Re: Vector Images and the SVGL stack

2015-11-11 Thread Scott Rossi
On 11/11/15, 1:00 AM, "use-livecode on behalf of Alejandro Tejada" wrote: >Please, notice the following: Livecode vector graphics only use integer >(1,2,3,4,5...) for displaying graphics strokes (borders). This limitation >could be a barrier to import and display faithfully many professional >il

Vector Images and the SVGL stack

2015-11-11 Thread Alejandro Tejada
Hi All, Many Thanks for your kind words, but remember that this is just an updated version of Ian McPhail's stack SVGL: http://livecodeshare.runrev.com/stack/112/SVGL I posted a small update of SVGL (Not SVGL + Gradients) in this forum thread: http://forums.livecode.com/viewtopic.php?f=10&t=25612

Re: Calculating the sum of a *lot* of primes

2015-11-11 Thread AndyP
Hi Geoff, Have a look here for a few examples. http://2108.co.uk/questions/question/primes-between-20-and-700/ - Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get