Dropbox Library Update
Still thanks to the great debugging/fixing work of *Mike Kerner*, a new version (1.05) of the phxDropboxLib, solving a really obscure issue that could cause a failure on mobile after writing a file on phx_DropboxWriteFile, is available. You can download the new version still from the same link : http://www.phoenixsea.ch/downloads/Livecode/phxDropboxLib.zip /*Guglielmo Braguglia*/ ___ 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: Dropbox Library Update
Thanks Guglielmo! On 6 Sep 2013, at 08:58, Guglielmo Braguglia guglie...@braguglia.ch wrote: Still thanks to the great debugging/fixing work of *Mike Kerner*, a new version (1.05) of the phxDropboxLib, solving a really obscure issue that could cause a failure on mobile after writing a file on phx_DropboxWriteFile, is available. You can download the new version still from the same link : http://www.phoenixsea.ch/downloads/Livecode/phxDropboxLib.zip /*Guglielmo Braguglia*/ ___ 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: Dropbox Library Update
Thanks Guglielmo Mike! -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Dropbox-Library-Update-tp4669440p4669442.html Sent from the Revolution - User mailing list archive at Nabble.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: Dropbox Library Update
Thanks Guglielmo! ~Roger On Sep 6, 2013 3:59 AM, Guglielmo Braguglia guglie...@braguglia.ch wrote: Still thanks to the great debugging/fixing work of *Mike Kerner*, a new version (1.05) of the phxDropboxLib, solving a really obscure issue that could cause a failure on mobile after writing a file on phx_DropboxWriteFile, is available. You can download the new version still from the same link : http://www.phoenixsea.ch/**downloads/Livecode/**phxDropboxLib.ziphttp://www.phoenixsea.ch/downloads/Livecode/phxDropboxLib.zip /*Guglielmo Braguglia*/ __**_ 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-livecodehttp://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
RELEASE LiveCode 6.1.1 RC5
Dear List Members LiveCode 6.1.1-rc-5 is now available. We expect this the be the last release candidate in the current maintenance cycle. Details of the contents of this release can be found below. *WARNING:* Bug 11127 which was fixed in this released involved altering code in the stack loading and saving module. We recommend backing up your stacks before testing RC5. We are confident we were able to apply the fix without altering the behaviour, but with this being a sensitive part of the LiveCode engine we would encourage all users to test the loading and saving of their apps, feeding back if any issues are encountered. *Upgrading* You can update LiveCode through the auto-updating within the product help menu or by downloading the installers directly here: http://downloads.livecode.com/livecode/6_1_1/ *Release Contents* This release contains the following changes: (Emboldened bugs were fixed for RC5) Access to the current behavior object. (experimental) Added support for reading RLE compressed BMP images Crash setting location of image with filename set to empty Find Malfunction in Script Editor for both */ and double-quote () App store submission warns about lack of push notification entitlement even for apps not using push notifications. 57 bug fixes: *11152 - Including iOS externals in Android projects (and vice versa) causes standalones to fail.* *11144 - Hang when trying to get chunk of formattedText of a field beyond the first (formatted) line.* *11131 - Moving a Layer between two groups in Project Browser* *11127 - Stackfile can get corrupted when setting the colors/patterns of an image object which is either empty, or contains RLE compressed data.* *9 - Project Browser denies existence of existing controls! * *0 - Menu Builder Disable Item problem. Unicode characters were not being handled correctly when disabling/enabling menu items.* *10796 - HTTP get URL omits port number from HOST header * *10669 - revUniqueID - the revUniqueID of the child controls of a group do not get updated when the group is cloned or duplicated.* *10108 - Thumb and scrollbar appear over top of DataGrid* 11129 - Crash when fetching the encoding or the flaggedRanges property from the templateField. 11126 - Intermittant crashes whilst using the project browser. 11122 - The script editor erroneously starts a comment in $#. 11108 - Crash in some circumstances when setting the hidden of a paragraph to false. 11105 - Plugin settings refers to Revolution. This has been updated to refer to LiveCode. 11104 - Crash when getting childControlIds/Names of group with no controls 11103 - Push notifications not handled when app is paused 10826 - Menu Text Font Size Other... does nothing. Now asks the user to input a text size. 10689 - 'the selectedChunk' returns a field reference if the field is embedded in a combo-box. 10665 - Save this stack as syntax broken in the message box 10655 - Dragging a file over a script without dropping causes the caret to continue to move in field after drag has ended. 10654 - Cells in field table mode can become misaligned if there is a change in style just after a tab. 10616 - Different padding between lines causes hgrid to render incorrectly. 10445 - Sort international does not work on Android 11089 - The 'shell()' function on server does not perform end-of-line conversion. 11084 - Conditional messages such as resizeControl are not searched for in ancestor behaviors. 11081 - Dropper dool does not work on OSX 11080 - Android input field fontSize setting value in incorrect units 11073 - Transparency lost when saving RLE encoded images with LiveCode 11064 - LiveCode IDE breaks when opening a particular PDF file - uncaught exception fetching the properties of a DataGrid 11044 - Divide by zero when calculating scrollbar thumbposition 11036 - IDE no longer exposes an AppleScript dictionary. 11025 - The PDF Printing external is not being included in Windows Standalones. 11020 - Setting or getting custom properties from global scope crashes server. 11017 - Handlers in library stacks and chained behaviors are cannot be executed from the message box. 10972 - Text does not paste from PDFs loaded into Adobe Reader 9 on Mac. 10957 - The 'flaggedRanges' property can sometimes report the wrong values in a field containing mixed unicode and non-unicode text. 10932 - Setting the flaggedRanges of a field containing Unicode text can be very slow. 10925 - Using add/subtract/multiply/divide on a variable that has not been declared causes subexpressions to be evaluated twice. 10902 - Selecting regular polygon graphic fails to update title of Property Inspector, This was due to an error in the property list for regular polygons which prevented the Property Inpsector updating correctly. 10893 - Copying HTML from clipboard into a text field generates misformatted output 10883 - Nested groups can return True in sharedBehavior getter 10868 - Mobile stack saved as iOS retains iOS settings on Windows. As the
eBook Academy Set-up
Hi friends, just received the new LC Newsletter and took a lolok at the eBook Academy Set-up page, where I saw this script snippet: ... on openCard if the environment is mobile then send playMobileVideo to me in 0 milliseconds else ### DESKTOP play videoClip (specialfolderpath(desktop) /BitterRevenge/Video/Intro.mp4) ### end if end openCard ... Hm, did the new multimedia engine already find its place into the last version of LC and I missed it? I highly doubt this does work on Windows this way. But I would love to be wrong ;-) This will work with QuickTime installed on the Win machine and when using a PLAYER object. Not? Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: eBook Academy Set-up
Hi Klaus, Yes, QuickTime needs to be installed to play an MP4 clip. I just tried it in LC 5.5, on Windows 8 with QT installed. The sound played, but the picture didn't update. I was unable to use the stop playing command and the number of videoClips reported 0 :-D I guess it isn't too reliable. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi Fill out this survey please http://livecodebeginner.economy-x-talk.com/survey/ On 9/6/2013 15:02, Klaus major-k wrote: Hi friends, just received the new LC Newsletter and took a lolok at the eBook Academy Set-up page, where I saw this script snippet: ... on openCard if the environment is mobile then send playMobileVideo to me in 0 milliseconds else ### DESKTOP play videoClip (specialfolderpath(desktop) /BitterRevenge/Video/Intro.mp4) ### end if end openCard ... Hm, did the new multimedia engine already find its place into the last version of LC and I missed it? I highly doubt this does work on Windows this way. But I would love to be wrong ;-) This will work with QuickTime installed on the Win machine and when using a PLAYER object. Not? Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: eBook Academy Set-up
Hi Mark, Am 06.09.2013 um 15:17 schrieb Mark Schonewille m.schonewi...@economy-x-talk.com: Hi Klaus, Yes, QuickTime needs to be installed to play an MP4 clip. I just tried it in LC 5.5, on Windows 8 with QT installed. The sound played, but the picture didn't update. I was unable to use the stop playing command and the number of videoClips reported 0 :-D I guess it isn't too reliable. thanks for the confirmation, I was afraid I had missed a serious and important update! 8-) On the Mac the LOC of the video was set to 0,0, but it played and couldn't be stopped with play stop vc! Sigh, looks like a lot of clueless and disappointed postings on the forum in the next time... ;-) -- Best regards, Mark Schonewille On 9/6/2013 15:02, Klaus major-k wrote: Hi friends, just received the new LC Newsletter and took a lolok at the eBook Academy Set-up page, where I saw this script snippet: ... on openCard if the environment is mobile then send playMobileVideo to me in 0 milliseconds else ### DESKTOP play videoClip (specialfolderpath(desktop) /BitterRevenge/Video/Intro.mp4) ### end if end openCard ... Hm, did the new multimedia engine already find its place into the last version of LC and I missed it? I highly doubt this does work on Windows this way. But I would love to be wrong ;-) This will work with QuickTime installed on the Win machine and when using a PLAYER object. Not? Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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 is the size limit for numbers in LC? -- and multiplying really large numbers
On Sep 5, 2013, at 6:11 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Perhaps you should add some comments to your script. What, it's not obvious? ;-) My first versions of this were list-based, and scaled poorly because of the line painter's problem (each day the paint bucket is farther away). More than about 300 digit numbers and the execution time exploded. Arrays instead of lists handled about 600 digits. The complexity of multiplication scales roughly as the product of the lengths of the numbers, so 600 digits vs. 300 means arrays were a 4x improvement. Several iterations followed, including pre-chunking the numbers, simplified storage of results, and most importantly, dealing with 4-digit chunks. At the time, I thought LC topped out at 32-bits: 2 billion. That's not a full 10 digits, so 4x4 made sense. Chunking the numbers to generate 4 digits at a time multiplies around 1000 digits in a second. The central loop for this had several statements in it: get the product of the two current chunks, break the product apart, put each part in the right place, etc. I found that simply appending the products to a list, and then summing each list at the end and breaking apart, parsing, and stitching together the sums was about 1.5x faster. This was where my concerns about the size of the numbers started. As long as I was immediately breaking each chunk product apart to add/store, I could never overflow LC's numbers. Doing the sum all at once means that when multiplying two 2000-digit numbers, if they're all 9s, the sum will be 500** = about 50 billion. Nothing broke, so I kept going. I experimented with pre-calculating 2-digit products and referencing an array instead of multiplying over and over, but it was slower. Then I realized: if I calculate the final result from least significant digit up, I can do everything in the loop and build the actual result there. The trick is to consider the places of the numbers, and process all the intermediate products in order from smallest place to largest. So to multiply 1234 * 5678: The one's digit depends on 4*8. The ten's digit depends on 3*8 and 4*7, with any carry from 4*8 The hundred's digit depends on 2*8, 3*7, and 4*6, with any carry. Etc. I did that, a digit at the time, and multiplied around 2500 digits in a second. Then I had to chunk it. 4 digits at a time, and few other bits, and here we are. function bigTimes X,Y -- returns the product of any positive or negative numbers. Good to about 20,000 digits. I'll show how it multiplies X=-1234567 and Y=234567890 -- handle negative inputs if char 1 of X is - then put - into leadChar delete char 1 of X end if -- X is now 1234567, and leadChar is - if char 1 of Y is - then if leadChar is - then put empty into leadChar else put - into leadChar delete char 1 of Y end if -- pad the numbers to a multiple of 4 digits put (3 + length(X)) div 4 * 4 into XL put char 1 to XL - length(X) of 000 before X put (3 + length(Y)) div 4 * 4 into YL put char 1 to YL - length(y) of 000 before y -- X is now 01234567 -- Y is now 000234567890 -- start from the sum of the lengths, and go down by 4s -- this will be 20, 16, 12, 8 because negative steps overshoot repeat with N = XL + YL down to 9 step -4 -- for each value in the outer loop, loop through all the -- possible positions to use for the chunk of X -- this chunks the numbers into 4 digits -- when N = 12, we will add 0123*3456 + 4567*0002 -- to whatever the carried-over value was repeat with M = max(4,N - YL) to min(XL,N - 4) step 4 -- for each chunk from X, there is only one corresponding chunk of Y -- this is the one line that gets it all done add (char M - 3 to M of X) * (char N - M - 3 to N - M of Y) to S end repeat -- 0123*3456 + 4567*0002= 434222 (pretending there was no carried value) -- so put 4222 before the result, and leave 43 in S as the carried value put char -4 to -1 of S before R delete char -4 to -1 of S end repeat -- clean up any leading 0 if S is 0 then put empty into S -- return the sign of the result, remaining carried value, and the calculated result return leadChar S R end bigTimes This could be made faster by parsing into 5, 6, or 7 digit chunks, and either living with the size limitation of the operands, or adding back the safety code. Multiplying two 10,000 digit numbers in a second would be pretty tempting to try over the weekend. ___ 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: Short Term LiveCode/RDBMS Project Help Wanted
Outstanding. I will play with it this weekend and keep my fingers crossed. Please ignore weird auto-corrected words, this message was sent from my iPad. On Sep 6, 2013, at 12:31 AM, Ruslan Zasukhin ruslan_zasuk...@valentina-db.com wrote: On 9/5/13 8:11 PM, Mike Kerner mikeker...@roadrunner.com wrote: Dang, all of that brings back memories - so what is everyone using to build reports in LC since RDP is (obviously) dead? So far I haven't been able to do everything I want to do in Valentina Hi Mike, Hi Andrew, You talk here about Valentina Reports? Well, we spending last 2 weeks preparing our own online examples. We going to spend in this area yet may be a month. We have prepared already few projects with many different reports, Against mySQL, postgreSQL, Valentina Server. We have prepare online server with all this DB servers and dbs. You can look right now what we have got ... In 2-3 hours we will update ALL_CONTROLS example here. http://www.valentina-db.com/docs/dokuwiki/v5/doku.php?id=valentina:vcompone nts:vreport:demos:demos 2) Universal Report example, we have implement so far using PHP and Xojo/REALbasic Web App. TODAY we going add online example on JAVA. Yes, we finishing Valentina for Java ADK (db + reports). Example is ready, now we need just install tomcat to online server and drop there this example also. 3) We going to make ALL_CONTROLS example to be very reach on features demonstration. So guys, we will be happy to hear WHAT YOU WANT? And we will try show this in this example as feature. Of course may happens that feature really missing, Than we will put it on TODO list. 4) NEWS: we have start add new datasources to Valentina Reports: * MS SQL/Sybase * Oracle/DB2 Later these dbs will be added into Valentina Studo as plugins also. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] ___ Valentina mailing list valent...@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina ___ 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: eBook Academy Set-up
Hi Klaus et al. No new multimedia engine yet :) This code snippet does require that QuickTime player be installed. We do have a list of all the project we are working on here http://livecode.com/community/roadmap/ Multimedia is currently in the queued section. Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com -- This code snippet still required Quicktime to be installed. On 06/09/2013 14:02, Klaus major-k wrote: Hi friends, just received the new LC Newsletter and took a lolok at the eBook Academy Set-up page, where I saw this script snippet: ... on openCard if the environment is mobile then send playMobileVideo to me in 0 milliseconds else ### DESKTOP play videoClip (specialfolderpath(desktop) /BitterRevenge/Video/Intro.mp4) ### end if end openCard ... Hm, did the new multimedia engine already find its place into the last version of LC and I missed it? I highly doubt this does work on Windows this way. But I would love to be wrong ;-) This will work with QuickTime installed on the Win machine and when using a PLAYER object. Not? Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: eBook Academy Set-up
Hi Neil, Am 06.09.2013 um 16:29 schrieb Neil Roger n...@runrev.com: Hi Klaus et al. No new multimedia engine yet :) This code snippet does require that QuickTime player be installed. We do have a list of all the project we are working on here http://livecode.com/community/roadmap/ Multimedia is currently in the queued section. I know this, Neil, but that is not the point! It just does not work on the desktop (with or without QuickTIme) this way! MP4 is NOT supported with PLAY VC xy at least not on WIndows and it does not works as exspected on a Mac, too! Please try it by yourself! Do it, please! Kind Regards, Neil Roger Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: eBook Academy Set-up
Neil, Just in case it makes a difference, I'd like to assert that Klaus is right. I tested it and the results are at least (or maybe at most) dubious on Windows 8. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 6 sep 2013, at 16:31, Klaus major-k wrote: Hi Neil, Am 06.09.2013 um 16:29 schrieb Neil Roger n...@runrev.com: Hi Klaus et al. No new multimedia engine yet :) This code snippet does require that QuickTime player be installed. We do have a list of all the project we are working on here http://livecode.com/community/roadmap/ Multimedia is currently in the queued section. I know this, Neil, but that is not the point! It just does not work on the desktop (with or without QuickTIme) this way! MP4 is NOT supported with PLAY VC xy at least not on WIndows and it does not works as exspected on a Mac, too! Please try it by yourself! Do it, please! Kind Regards, Neil Roger Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: RELEASE LiveCode 6.1.1 RC5
Ben, Thank you for the announcement, and for the stack open/save warning. Have a great weekend. ~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
Re: eBook Academy Set-up
Hi Mark, This sounds like a possible bug as the videos I replied with previously show the code snippet running on Windows 7 and Mac OSX 10.8 http://techsupport.on-rev.com/test/windows.mp4 http://techsupport.on-rev.com/test/mac.mp4 If possible, could you submit a bug report with our quality control team on the issue and we will be happy to investigate it further. Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com -- On 06/09/2013 15:37, Mark Schonewille wrote: Neil, Just in case it makes a difference, I'd like to assert that Klaus is right. I tested it and the results are at least (or maybe at most) dubious on Windows 8. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 6 sep 2013, at 16:31, Klaus major-k wrote: Hi Neil, Am 06.09.2013 um 16:29 schrieb Neil Roger n...@runrev.com: Hi Klaus et al. No new multimedia engine yet :) This code snippet does require that QuickTime player be installed. We do have a list of all the project we are working on here http://livecode.com/community/roadmap/ Multimedia is currently in the queued section. I know this, Neil, but that is not the point! It just does not work on the desktop (with or without QuickTIme) this way! MP4 is NOT supported with PLAY VC xy at least not on WIndows and it does not works as exspected on a Mac, too! Please try it by yourself! Do it, please! Kind Regards, Neil Roger Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: eBook Academy Set-up
Neil, I was able to pay the two MP4 movies you just linked. I was unable to play another movie that I happened to have on my computer. I try to figure out what's going on here and will let you know. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 6 sep 2013, at 17:27, Neil Roger wrote: Hi Mark, This sounds like a possible bug as the videos I replied with previously show the code snippet running on Windows 7 and Mac OSX 10.8 http://techsupport.on-rev.com/test/windows.mp4 http://techsupport.on-rev.com/test/mac.mp4 If possible, could you submit a bug report with our quality control team on the issue and we will be happy to investigate it further. Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com -- On 06/09/2013 15:37, Mark Schonewille wrote: Neil, Just in case it makes a difference, I'd like to assert that Klaus is right. I tested it and the results are at least (or maybe at most) dubious on Windows 8. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 6 sep 2013, at 16:31, Klaus major-k wrote: Hi Neil, Am 06.09.2013 um 16:29 schrieb Neil Roger n...@runrev.com: Hi Klaus et al. No new multimedia engine yet :) This code snippet does require that QuickTime player be installed. We do have a list of all the project we are working on here http://livecode.com/community/roadmap/ Multimedia is currently in the queued section. I know this, Neil, but that is not the point! It just does not work on the desktop (with or without QuickTIme) this way! MP4 is NOT supported with PLAY VC xy at least not on WIndows and it does not works as exspected on a Mac, too! Please try it by yourself! Do it, please! Kind Regards, Neil Roger Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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 ___ 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: eBook Academy Set-up
Hi Klaus, I made sure to test the playback of mp4 files when creating the ebook academy, with the play videoClip command on both mac and windows and could do so without any issues. Please see the below video that a sample mp4 file working as expected. http://techsupport.on-rev.com/test/windows.mp4 http://techsupport.on-rev.com/test/mac.mp4 Is this not what you experience? Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com -- On 06/09/2013 15:31, Klaus major-k wrote: Hi Neil, Am 06.09.2013 um 16:29 schrieb Neil Roger n...@runrev.com: Hi Klaus et al. No new multimedia engine yet :) This code snippet does require that QuickTime player be installed. We do have a list of all the project we are working on here http://livecode.com/community/roadmap/ Multimedia is currently in the queued section. I know this, Neil, but that is not the point! It just does not work on the desktop (with or without QuickTIme) this way! MP4 is NOT supported with PLAY VC xy at least not on WIndows and it does not works as exspected on a Mac, too! Please try it by yourself! Do it, please! Kind Regards, Neil Roger Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: Short Term LiveCode/RDBMS Project Help Wanted
On 9/6/13 4:38 PM, Mikey _ mikeyt...@gmail.com wrote: Outstanding. I will play with it this weekend and keep my fingers crossed. 4) NEWS: we have start add new datasources to Valentina Reports: * MS SQL/Sybase * Oracle/DB2 Btw, important to note, that * these dbs can be accessed and right now, but by ODBC * we have start ingrate access by NATIVE protocol for this dbs. * MS SQL will work on mac and linux also. On MAC it is already in our SVN :-) Right now developers polish windows projects, then linux. * Oracle itself is cross-paltform, so of course also will work for 3 OS. Later these dbs will be added into Valentina Studo as plugins also. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] ___ 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: eBook Academy Set-up
Neil, I forgot to mention this. Although I can play the movie, I do see what Klaus sees: only the bottom-right quarter of the movie is visible. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi Fill out this survey please http://livecodebeginner.economy-x-talk.com/survey/ On 9/6/2013 17:27, Neil Roger wrote: Hi Mark, This sounds like a possible bug as the videos I replied with previously show the code snippet running on Windows 7 and Mac OSX 10.8 http://techsupport.on-rev.com/test/windows.mp4 http://techsupport.on-rev.com/test/mac.mp4 If possible, could you submit a bug report with our quality control team on the issue and we will be happy to investigate it further. Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com -- On 06/09/2013 15:37, Mark Schonewille wrote: Neil, Just in case it makes a difference, I'd like to assert that Klaus is right. I tested it and the results are at least (or maybe at most) dubious on Windows 8. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 6 sep 2013, at 16:31, Klaus major-k wrote: Hi Neil, Am 06.09.2013 um 16:29 schrieb Neil Roger n...@runrev.com: Hi Klaus et al. No new multimedia engine yet :) This code snippet does require that QuickTime player be installed. We do have a list of all the project we are working on here http://livecode.com/community/roadmap/ Multimedia is currently in the queued section. I know this, Neil, but that is not the point! It just does not work on the desktop (with or without QuickTIme) this way! MP4 is NOT supported with PLAY VC xy at least not on WIndows and it does not works as exspected on a Mac, too! Please try it by yourself! Do it, please! Kind Regards, Neil Roger Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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 ___ 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: RELEASE WARNING: LiveCode 6.1.1 RC5
Dear List Members, Sean Cole kindly provided a stack that demonstrates the problem. We're working to resolve the issue and produce an RC6 build. Warm regards, Ben On 6 September 2013 16:49, Benjamin Beaumont b...@runrev.com wrote: Dear List Members, We have just pulled LiveCode 6.1.1 RC5 from the auto-update process. We had a report that the changes made to fix a bug have caused stacks to be corrupted when saving and then reloading. We suspect it will be in specific cases but advise caution when using RC5. We have left the version up for download for those who are wanting to test specific fixes in the release and we advise all users to use BACKUPS of their stacks for testing purposes. We would really appreciate the community helping us iron out the issue. You can do this by opening your stacks and if they corrupt after being saved, send the source stack to us. We'll use these to track down the problem before releasing an RC6. Warm regards, Ben -- _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple -- _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple ___ 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: RELEASE WARNING: LiveCode 6.1.1 RC5
Dear List Members, We've tracked down the cause of the stack corruption issue with 6.1.1 RC5. Thank you to Sean Cole for testing our build so quickly and reporting the issue. We have now applied a fix but plan to wait until Monday to put out an RC6 build. We'd like to ensure that the fix has resolved the issue completely. Warm regards and have a great weekend. Ben On 6 September 2013 16:59, Benjamin Beaumont b...@runrev.com wrote: Dear List Members, Sean Cole kindly provided a stack that demonstrates the problem. We're working to resolve the issue and produce an RC6 build. Warm regards, Ben On 6 September 2013 16:49, Benjamin Beaumont b...@runrev.com wrote: Dear List Members, We have just pulled LiveCode 6.1.1 RC5 from the auto-update process. We had a report that the changes made to fix a bug have caused stacks to be corrupted when saving and then reloading. We suspect it will be in specific cases but advise caution when using RC5. We have left the version up for download for those who are wanting to test specific fixes in the release and we advise all users to use BACKUPS of their stacks for testing purposes. We would really appreciate the community helping us iron out the issue. You can do this by opening your stacks and if they corrupt after being saved, send the source stack to us. We'll use these to track down the problem before releasing an RC6. Warm regards, Ben -- _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple -- _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple -- _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple ___ 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
RELEASE WARNING: LiveCode 6.1.1 RC5
Dear List Members, We have just pulled LiveCode 6.1.1 RC5 from the auto-update process. We had a report that the changes made to fix a bug have caused stacks to be corrupted when saving and then reloading. We suspect it will be in specific cases but advise caution when using RC5. We have left the version up for download for those who are wanting to test specific fixes in the release and we advise all users to use BACKUPS of their stacks for testing purposes. We would really appreciate the community helping us iron out the issue. You can do this by opening your stacks and if they corrupt after being saved, send the source stack to us. We'll use these to track down the problem before releasing an RC6. Warm regards, Ben -- _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple ___ 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
[OT] Bitbucket Livecode Language Support
Hi all, Just wanted to let you know that I raised a ticket with bitbucket asking them to add livecode (community) as a supported language. If they accept my request, bitbucket should be able to do DIFF and other fun stuff with .livecode files and display the scripts instead of cannot display binary file. Here is the ticket: https://bitbucket.org/site/master/issue/8046/please-add-livecode-language-support Have a nice weekend, Pascal -- Pascal Lehner ___ 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: [on-rev] Problem with revIgniter on DIESEL - any clue!?
On 9/6/13 10:31 AM, Robert Mann wrote: 1) what kind of server is diesel :: is it a mac os x? what version of OS X? I manage an account on diesel. When I SSH into it, I see this info: CentOS release 6.4 (Final) Linux diesel.on-rev.com 3.8.13--grs-ipv6-64 #3 SMP Fri May 31 13:26:19 CEST 2013 x86_64 x86_64 x86_64 GNU/Linux server: 349186 hostname : diesel.on-rev.com eth0 IPv4 : 46.105.105.217 eth0 IPv6 : 2001:41d0:2:d8d9::1/64 -- Phil Davis ___ 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
[on-rev] Problem with revIgniter on DIESEL - any clue!?
My revIgniter sites throw an error related to file paths since the last few last days. I have looked in revIgniter files to identify the problem. Checked the confif files were OK. Could find no clue except this possible bug 9869 *depending on the server version*. I asked david at on-rev support to check these question and am still waiting although I really would need these sites to run for tomorrow saterday!!! If anybody has experiences the same kind of problem please do tell me. It would be surprising that they installed a different version of rev server just for my account if that turned out to be the culprit. the Syndrom is an error message with a really wrong path like : file /home/rman/public_html/groovyarch.com/index.irev row 53, col 1: include: could not find file (/home/rman/public_html/revIgniter/system/revigniter/../revIgniter/system/revigniter/Common.irev) file /home/rman/public_html/groovyarch.com/../revIgniter/system/revigniter/RevIgniter.irev It seems that revIgniter is not getting the same file and path information as used to be the full path /home/rman/public_html/groovyarch.com/ is added in the front hence the problem. and this happens at the start of the operation prior to reading the actual web application. possible source :: There is a bug (9869) in LiveCode Server confirmed by RunRev. LiveCode Server versions 4.6.3 up to 5.0.2 have two incorrect path environment variables on Lion and Mountain Lion. These variables are: $_SERVER[\PATH_TRANSLATED\] $_SERVER[\PATH_INFO\] As revIgniter is heavily dependent on path variables this means that there is no way to run revIgniter using the said OS / server versions. Note: This issue is fixed in LiveCode Server release: 6.0.0-rc-1. so questions pending : 0) when has my account being transferred from odin to diesel? And if not recently, if the server has been transferred to another ISP lately? 1) what kind of server is diesel :: is it a mac os x? what version of OS X? 2) if mac os X with LION or MOUNTAIN LION :: WHAT VERSION of live code server is running on diesel :: there was a bug in previous versions on mac os x servers. 3) if that is positive, then cure the problem by installing latest live code server 6 that fixes that issue. If any of you guys had any part of that info.. please do forward, thanks! good day, Robert -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/on-rev-Problem-with-revIgniter-on-DIESEL-any-clue-tp4669463.html Sent from the Revolution - User mailing list archive at Nabble.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: What is the size limit for numbers in LC? -- and multiplying really large numbers
Geoff- Friday, September 6, 2013, 12:05:22 PM, you wrote: Okay, now it's chunking by 7, and checking/avoiding overflows. This little baby will multiply two 7,000 digit random numbers in right around a second on my machine. Woot! If anyone sees further optimizations let me know. At first glance that seems impressive, but do you have unit tests for this? If they're big random numbers, how do you know the answer is right? -- -Mark Wieder mwie...@ahsoftware.net ___ 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 is the size limit for numbers in LC? -- and multiplying really large numbers
Okay, now it's chunking by 7, and checking/avoiding overflows. This little baby will multiply two 7,000 digit random numbers in right around a second on my machine. Woot! If anyone sees further optimizations let me know. For fun I wrote a factorial using bigTimesN7 -- bigFact(1100) comes out at 2577 digits in under a second. Also just for laughs, I wrote a quick test to see if the size of X vs. Y affects the speed, and it looks neutral. function bigTimesN7 X,Y if char 1 of X is - then put - into leadChar delete char 1 of X end if if char 1 of Y is - then if leadChar is - then put empty into leadChar else put - into leadChar delete char 1 of Y end if put (6 + length(X)) div 7 * 7 into XL put char 1 to XL - length(X) of 00 before X put (6 + length(Y)) div 7 * 7 into YL put char 1 to YL - length(y) of 00 before y repeat with N = XL + YL down to 15 step -7 repeat with M = max(7,N - YL) to min(XL,N - 7) step 7 add (char M - 6 to M of X) * (char N - M - 6 to N - M of Y) to S if S 9001997 then add char -20 to -8 of S to Scarry delete char -20 to -8 of S end if end repeat put char -7 to -1 of S before R add char -20 to -8 of S to Scarry put char -7 to -1 of Scarry into S delete char -7 to -1 of Scarry end repeat put Scarry before S if S is 0 then put empty into S return leadChar S R end bigTimesN7 On Fri, Sep 6, 2013 at 8:35 AM, Geoff Canyon gcan...@gmail.com wrote: On Sep 5, 2013, at 6:11 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Perhaps you should add some comments to your script. What, it's not obvious? ;-) My first versions of this were list-based, and scaled poorly because of the line painter's problem (each day the paint bucket is farther away). More than about 300 digit numbers and the execution time exploded. Arrays instead of lists handled about 600 digits. The complexity of multiplication scales roughly as the product of the lengths of the numbers, so 600 digits vs. 300 means arrays were a 4x improvement. Several iterations followed, including pre-chunking the numbers, simplified storage of results, and most importantly, dealing with 4-digit chunks. At the time, I thought LC topped out at 32-bits: 2 billion. That's not a full 10 digits, so 4x4 made sense. Chunking the numbers to generate 4 digits at a time multiplies around 1000 digits in a second. The central loop for this had several statements in it: get the product of the two current chunks, break the product apart, put each part in the right place, etc. I found that simply appending the products to a list, and then summing each list at the end and breaking apart, parsing, and stitching together the sums was about 1.5x faster. This was where my concerns about the size of the numbers started. As long as I was immediately breaking each chunk product apart to add/store, I could never overflow LC's numbers. Doing the sum all at once means that when multiplying two 2000-digit numbers, if they're all 9s, the sum will be 500** = about 50 billion. Nothing broke, so I kept going. I experimented with pre-calculating 2-digit products and referencing an array instead of multiplying over and over, but it was slower. Then I realized: if I calculate the final result from least significant digit up, I can do everything in the loop and build the actual result there. The trick is to consider the places of the numbers, and process all the intermediate products in order from smallest place to largest. So to multiply 1234 * 5678: The one's digit depends on 4*8. The ten's digit depends on 3*8 and 4*7, with any carry from 4*8 The hundred's digit depends on 2*8, 3*7, and 4*6, with any carry. Etc. I did that, a digit at the time, and multiplied around 2500 digits in a second. Then I had to chunk it. 4 digits at a time, and few other bits, and here we are. function bigTimes X,Y -- returns the product of any positive or negative numbers. Good to about 20,000 digits. I'll show how it multiplies X=-1234567 and Y=234567890 -- handle negative inputs if char 1 of X is - then put - into leadChar delete char 1 of X end if -- X is now 1234567, and leadChar is - if char 1 of Y is - then if leadChar is - then put empty into leadChar else put - into leadChar delete char 1 of Y end if -- pad the numbers to a multiple of 4 digits put (3 + length(X)) div 4 * 4 into XL put char 1 to XL - length(X) of 000 before X put (3 + length(Y)) div 4 * 4 into YL put char 1 to YL - length(y) of 000 before y -- X is now 01234567 -- Y is now 000234567890 -- start from the sum of the lengths, and go down by 4s -- this will be 20, 16, 12, 8 because negative steps overshoot repeat with N = XL + YL down to 9 step -4 -- for each value in the outer loop, loop through all the
Re: [on-rev] Problem with revIgniter on DIESEL - any clue!?
64 bit ! On Fri, Sep 6, 2013 at 11:03 AM, Phil Davis rev...@pdslabs.net wrote: On 9/6/13 10:31 AM, Robert Mann wrote: 1) what kind of server is diesel :: is it a mac os x? what version of OS X? I manage an account on diesel. When I SSH into it, I see this info: CentOS release 6.4 (Final) Linux diesel.on-rev.com 3.8.13--grs-ipv6-64 #3 SMP Fri May 31 13:26:19 CEST 2013 x86_64 x86_64 x86_64 GNU/Linux server: 349186 hostname : diesel.on-rev.com eth0 IPv4 : 46.105.105.217 eth0 IPv6 : 2001:41d0:2:d8d9::1/64 -- Phil Davis __**_ 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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode -- Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ 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: [OT] Bitbucket Livecode Language Support
On 07/09/2013, at 2:58 AM, Pascal Lehner tat...@gmail.com wrote: Just wanted to let you know that I raised a ticket with bitbucket asking them to add livecode (community) as a supported language. If they accept my request, bitbucket should be able to do DIFF and other fun stuff with .livecode files and display the scripts instead of cannot display binary file. Here is the ticket: https://bitbucket.org/site/master/issue/8046/please-add-livecode-language-support Do Atlassian have a history of doing enormous amounts of work to develop diff and three way merge tools on proprietary file formats for obscure languages? I suspect not... The good news is lcVCS is progressing nicely to the point that Trevor is prepared to entrust Clarify to it: http://github.com/montegoulding/lcVCS Using lcVCS on a BitBucket or GitHub repo you will see the diffs etc like you want and also merge which is the whole reason I started the project. Cheers -- Monte Goulding M E R Goulding - software development services mergExt - There's an external for that! ___ 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 is the size limit for numbers in LC? -- and multiplying really large numbers
...and both J and bigFact (my LC function) agree that 130! is: 64668554892204736725073043955364852531553594478280496089759523229447819611855261655127070472292684529256839692403980271491207400740421058447377477994593100296357809917746129838031509651456 And for a third source, bigFact and the page at http://www.nitrxgen.net/factorialcalc.php agree that 1000! is: 4023872600770937735437024339230039857193748642107146325437999104299385123986290205920442084869694048004799886101971960586316668729948085589013238296699445909974245040870737599188236277271887325197795059509952761208749754624970436014182780946464962910563938874378864873371191810458257836478499770124766328898359557354325131853239584630755574091142624174743493475534286465766116677973966688202912073791438537195882498081268678383745597317461360853795345242215865932019280908782973084313928444032812315586110369768013573042161687476096758713483120254785893207671691324484262361314125087802080002616831510273418279777047846358681701643650241536913982812648102130927612448963599287051149649754199093422215668325720808213331861168115536158365469840467089756029009505376164758477284218896796462449451607653534081989013854424879849599533191017233660213945039973628075013783761530712776192684903435262520001588853514733161170210396817592151090778801939317811419454525722386554146106289218796022383897147 60885062768629671466746975629112340824392081601537808898939645182632436716167621791689097799119037540312746222899880051951428201218736174599264295658174662830295557029902432415318161721046583203678690611726015878352075151628422554026517048330422614397428693306169089796848259012545832716822645806652676995865268227280707578139185817888965220816434834482599326604336766017699961283186078838615027946595513115655203609398818061213855860030143569452722420634463179746059468257310379008402443243846565724501440282188525247093519062092902313649327349756551395872055965422874977401141334696271542284586237738753823048386568897646192738381490014076731044664025989949021765904339901886018566526485061799702356193897017860040811889729918311021171229845901641921068884387121855646124960798722908519296819372388642614839657382291123125024186649353143970137428531926649875337218940694281434118520158014123344828015051399694290153483077644569099073152433278288269864602789864321139083506217095002597389 8635542771967428222487575867657523442202075736305694988250879689281627538488633969099598262809561214509948717012445164612603790293091208890869420285106401821543994571568059418727489980942547421735824010636774045957417851608292301353580818400969963725242305608559037006242712434169090041536901059339838357779394109700277534720 ___ 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 is the size limit for numbers in LC? -- and multiplying really large numbers
On Fri, Sep 6, 2013 at 2:12 PM, Mark Wieder mwie...@ahsoftware.net wrote: At first glance that seems impressive, but do you have unit tests for this? If they're big random numbers, how do you know the answer is right? I haven't done anything terribly thorough but: 1. I have checked each algorithm against the previous with at least a dozen values (weakened by the fact that most of those values were strings of 9s, since I was checking for overflows). 2. I have in all cases checked small values to see that they work. 3. I have checked the above mentioned strings of 9s to see that they produce the correct result, because 99...^2 = ...998000...0001 4. In response to this email I wrote a quick test that compared the result of X * Y for 10,000 random number pairs, and found a bug :-) Turns out I was losing leading 0s from intermediate results because of: put char -7 to -1 of S before R if S is 1234, then R needs 0001234 in front of it -- unless this is the last step, obviously. This was causing put bigTimesN7(3,-480169303) to return -144507909, when it should be -1440507909. So I amended the routine to: function bigTimesN7 X,Y if char 1 of X is - then put - into leadChar delete char 1 of X end if if char 1 of Y is - then if leadChar is - then put empty into leadChar else put - into leadChar delete char 1 of Y end if put (6 + length(X)) div 7 * 7 into XL put char 1 to XL - length(X) of 00 before X put (6 + length(Y)) div 7 * 7 into YL put char 1 to YL - length(y) of 00 before y repeat with N = XL + YL down to 15 step -7 repeat with M = max(7,N - YL) to min(XL,N - 7) step 7 add (char M - 6 to M of X) * (char N - M - 6 to N - M of Y) to S if S 9001997 then add char -20 to -8 of S to Scarry delete char -20 to -8 of S end if end repeat put char -7 to -1 of (000 S) before R add char -20 to -8 of S to Scarry put char -7 to -1 of Scarry into S delete char -7 to -1 of Scarry end repeat put Scarry S before R repeat with i = 1 to 15 if char i of R is not 0 then exit repeat end repeat if i 1 then delete char 1 to i - 1 of R return leadChar R end bigTimesN7 I re-ran the test routine, and now it matched 10,000 out of 10,000. Further, I have J installed, which has its own arbitrary integer precision math. So I had LC create some equalities to test in J: _1130205693993682372824769249053636054878517315x = _39214613172841811231391033x * 28821033858276318555x 1 The 1 indicates truth. J uses an underscore for negative numbers. _212761062255119126378152174395218739555914717752x = 29931081010835427510229954x * _7108365453893795141788x 1 16252484302425344360409130220272036688212554937196254254608741748014x = 41210326672812378812736110577510887x * 394378924279374110323599616495522x 1 855949301441168562394700712367072183965950192185909474168767594482496489254071079189423582502465412218076051576598820335380230586488256862521543786177091410608514801403738523023017426796605748996223246868232771548015847240714345129475528x = 3334475101616757910712638639825532262558105533281027610787675417225717x * 256696863931043262844895953384410981101116109864288869619472109587827174383484710510486108696955762610103731039938527183481016179810325410499297282915105364237276610984x 1 I think I have it now. Thanks for keeping me honest! gc ___ 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