Re: [ANN] New version of the MasterLibrary is available

2015-02-01 Thread Geoff Canyon
I couldn't resist. __nCombFactors is slower than __nCombFloor, although faster than the original function (slightly, in my testing), but it offers the advantage that any result that is within the number limits of LC will be returned correctly, regardless of how large the intermediate values would b

Re: [ANN] New version of the MasterLibrary is available

2015-02-01 Thread Geoff Canyon
You could handle (some) larger combinatorials (and speed up the code) by modifying like so: function __factorialFloor x,f if x <= f then return 1 return x * __factorialFloor(x-1,f) end __factorialFloor function __nCombFloor n, r if (r > 0) or (r <= n) then \ return __factorialFl

Re: [ANN] New version of the MasterLibrary is available

2015-02-01 Thread Peter Haworth
Thanks Michael, missed the filter option. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Feb 1, 2015 at 11:12 AM, Michael Doub wrote: > Thanks for catching that bug. I

Re: [ANN] New version of the MasterLibrary is available

2015-02-01 Thread Michael Doub
Thanks for catching that bug. It is now fixed in 25. As far as the search, have you tried the filter option? It may not be as obvious as it should be. When you check the filter button, the selection tree turns into a filterable list of handler name and topics. You then have a character by

Re: [ANN] New version of the MasterLibrary is available

2015-02-01 Thread Peter Haworth
Hi Michael, Thanks for keeping this up to date. One tiny cosmetic thing. When you check for a new version, the heading in the file dialog refers to "newver" instead of the actual new version number. A suggestion for you (unless I missed it). As the library gets bigger, it might be useful to hav

[ANN] New version of the MasterLibrary is available

2015-02-01 Thread Michael Doub
Release 24 *added: __Zap - a function that returns only POSIX printable characters, space, tab and return from a string __GetRegexMatches - Finds all the matches of pregex in ptext and returns a list of the start,end char positions __deleteExtraTokens - This fucti

Re: [ANN] New Version of the MasterLibrary is available

2015-01-05 Thread Magicgate Software - Skip Kimpel
Never mind. I didn't realize you had to "check" the box next to the function you wanted to insert. I thought by clicking on it and loading it into the examples / notes screen was good enough. So in short, I was able to make it work. Sorry for the confusion! SKIP On Mon, Jan 5, 2015 at 8:16 PM

Re: [ANN] New Version of the MasterLibrary is available

2015-01-05 Thread Magicgate Software - Skip Kimpel
Question: When I try to "insert script" after choosing the target stack I always get "Do you really want to set the Library Scripts of stack Untitled 1 to empty" After I choose Yes, the dialog box goes away nothing appears to have happened. Obviously my test stack is "Untitled 1" but I am assumin

Re: [ANN] New Version of the MasterLibrary is available

2015-01-05 Thread William Prothero
Michael: This looks very interesting and it should be useful when casting around for code when the lc function names and properties don’t seem obvious. Thanks! Bill > On Jan 5, 2015, at 11:52 AM, Michael Doub wrote: > > I just made available the latest version of the MasterLibrary. I added a

[ANN] New Version of the MasterLibrary is available

2015-01-05 Thread Michael Doub
I just made available the latest version of the MasterLibrary. I added a reference to a standalone library that can be used to generate test data. Below you can see what has been added in the last few releases. Enjoy... https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=