From ben at runrev.com Fri Aug 1 12:08:00 2014 From: ben at runrev.com (Benjamin Beaumont) Date: Fri, 1 Aug 2014 17:08:00 +0100 Subject: RELEASE: LiveCode 7.0 DP8 Message-ID: Dear List Members. We are pleased to announce the release of LiveCode 7.0 DP8. * Warning, this is a pre-release with new features which have the potential to cause issues. Please ensure you backup your stacks before testing this release.* *Release Focus* 1. Bug fixes 1. 50+ in 7.0 related engine changes 2. 50+ in 6.7 related engine changes 2. 64 bit Linux support *Important Changes* - We?ve update the platform component of the engine on Linux substantially. Think of it as the equivalent of the cocoa port for MacOS X. As a result, windowing related activities on Linux are subject to change. If you are testing on Linux we would encourage you to focus on windowing, window shapes, shortcuts, copy/paste and drag/drop. - LiveCode 7.0 is now based on LiveCode 6.7. It includes cocoa, the webkit browser, the new AVFoundation player on Mac. - The file format has changed for this release to accommodate Unicode. Old stacks will still work in 7.0, but stacks saved in 7.0 format will not open in previous versions of LiveCode. Therefore it is doubly critical to backup your stacks. *Known issues* - LiveCode 7 64-bit Linux installer does not run for "All Users". To install for all users use the command line install or install for "you only". - 10 outstanding reports against 7.0: http://bit.ly/1m5HoHt - 15 outstanding reports against 6.7: http://bit.ly/1nSzINf *Release contents* The number of bugs fixed is so large that it no longer makes sense to include a summary in the release email. Instead, please look at the bug fix section of the release notes which can be found here: http://downloads.livecode.com/livecode/7_0_0/LiveCodeNotes-7_0_0_dp_8.pdf *Getting this release* LiveCode 7.0 is not yet part of the auto-update process yet. We'll add it once 7.0 once we enter the RC cycle. For the time being we're looking to our more experienced community members to help with initial testing by downloading directly at: http://downloads.livecode.com/livecode/ *Feeding Back* If you find an issue in this release, please report a bug at quality.runrev.com. Warm regards, The LiveCode Team _____________________________________________ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : ben at runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple From richmondmathewson at gmail.com Fri Aug 1 12:25:33 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 01 Aug 2014 19:25:33 +0300 Subject: Back to the Future. In-Reply-To: References: <53DA5AE6.1030605@gmail.com> Message-ID: <53DBBF7D.902@gmail.com> On 01/08/14 05:53, Kay C Lan wrote: > On Thu, Jul 31, 2014 at 11:04 PM, Richmond wrote: > >> However, has anybody any idea about 6.6.2 on Mac OS 10.3 > I thought Ben put out something a while back asking for community > reaction to LC 6.6 being the last version of LC to support 10.5. The > community basically agreed. > > So I'd say that give it a month and the only person who'll have an > idea about 6.6 on 10.3 will be you. I"m sure you'll let us all know > how you got on. > > Yes: and you will be waiting, drooling, for the information as you are quite unable to live without it, knowing that all your mission-critical machines run Mac OS 10.3 on ancient machines :/ Richmond. From richmondmathewson at gmail.com Fri Aug 1 12:28:18 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 01 Aug 2014 19:28:18 +0300 Subject: RELEASE: LiveCode 7.0 DP8 In-Reply-To: References: Message-ID: <53DBC022.8050306@gmail.com> On 01/08/14 19:08, Benjamin Beaumont wrote: > Dear List Members. > > We are pleased to announce the release of LiveCode 7.0 DP8. > > That 64-bit version for Linux is Well Posh! Bravo! Richmond. From jiml at netrin.com Fri Aug 1 12:51:20 2014 From: jiml at netrin.com (Jim Lambert) Date: Fri, 1 Aug 2014 09:51:20 -0700 Subject: Livecode Server and Repeat Scripts on Server In-Reply-To: References: Message-ID: <7A66B100-51C9-48FE-803F-2870CF5CC220@netrin.com> John, > put url("file:users.txt") into tUserFile Since you have read the entire file into memory you might also try filter filter tUserFile with ?tUsername,*? if it?s empty then the name is unique. You may be able to speed up subsequent searches by sorting the contents of the file before writing it back to disk, which will put it in alphabetical order by username, since that is the first word of each line. Then subsequently you can use offset or lineoffset to quickly discard all the lines up to the letter of the alphabet that begins the tUsername. Another possibility 'read from file? until (CR & ?tUsername,?) Jim Lambert From ben at runrev.com Fri Aug 1 13:19:51 2014 From: ben at runrev.com (Benjamin Beaumont) Date: Fri, 1 Aug 2014 18:19:51 +0100 Subject: RELEASE: LiveCode 6.7 DP7 Message-ID: Dear List Members. We are pleased to announce the release of LiveCode 6.7 DP7. *Release Focus* 1. 50+ bug fixes 2. Multicore Rendering Architecture *Known issues* 1. The multicore rending architecture is causing some subtle rendering glitches on retina Macs 2. Multicore rendering disabled in Windows due to multimedia not being thread-safe 3. 15 outstanding reports against 6.7: http://bit.ly/1nSzINf *Release contents* The number of bugs fixed is so large that it no longer makes sense to include a summary in the release email. Instead, please look at the bug fix section of the release notes which can be found here: http://downloads.livecode.com/livecode/6_7_0/LiveCodeNotes-6_7_0_dp_7.pdf *Multicore Rendering* We've updated the way LiveCode renders on all platforms. It now splits your stack up into as many section as there are CPU cores. Each core renders portion of your stack which in theory improves rendering performance by the number of core available. In practice this isn't the case as there are overheads associated with this approach. The performance improvements will be felt in fairly specific circumstances at the moment as there are a number limitations in the engine we're still trying to remove. However, as this is the final feature to go into LiveCode 6.7 we felt it important to get it into testing early. We've seen a number of glitches on Retina Mac but we would appreciate your help in identifying the edge cases on other platforms. It is also possible that some instability will have been introduced. LiveCode was not written with multicore processing in mind so we have been updating the engine where necessary to be "thread-safe". If you app crashes please try and reproduce the crash and report it to us as it will lead us to the parts of the engine that need a similar update. We think we've caught the majority but once again, there may be some edge cases that your project exercises that our test system does not cover. In the next few builds as we mature the feature we'll release a few simple sample stack that exercise the cores available on your machine. *Getting this release* http://downloads.livecode.com/livecode/ *Feeding Back* Please report any issues at quality.runrev.com. Where possible, please check the list of outstanding bugs at the link above to ensure you are not duplicating a report. Having said that, our team is here to help so we?ll mark duplicate bugs as they come in. Warm regards, The LiveCode Team _____________________________________________ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : ben at runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple From t.heaford at btinternet.com Fri Aug 1 15:00:22 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Fri, 1 Aug 2014 20:00:22 +0100 Subject: Calculating the left of a column in a DataGrid Message-ID: <05471421-0F49-4D03-89B2-658E67126E94@btinternet.com> Is there a short method to obtain the left of a column in a DataGrid. I have set the width of a bar grc as below. set the width of grc "barGraphic" of me to (the dgColumnWidth["Progress"] of group "budgetTable" - 8) * pData but have the left of the grc hardwired. I would like to calculate this in the column behaviour. set the left of grc "barGraphic" of me to 504 Is there a short way to do this or have I got to loop through the column widths? Thanks Terry From richmondmathewson at gmail.com Fri Aug 1 16:28:18 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 01 Aug 2014 23:28:18 +0300 Subject: RELEASE: LiveCode 7.0 DP8 In-Reply-To: References: Message-ID: <53DBF862.1030805@gmail.com> Crashes on "You Only" install attempt on Ubuntu Studio 14.04.1 Other install methods work. Richmond. From devin_asay at byu.edu Fri Aug 1 17:58:40 2014 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 1 Aug 2014 21:58:40 +0000 Subject: Add a control to a group Message-ID: <2C79F60A-1479-4DCB-8849-2889E4544CE5@byu.edu> I know I've seen this before, but I can't find it now. You can group objects with the group command: group obj a and obj b But how do you add an object to an existing group (through scripting not in the IDE)? Devin Asay Learn to code with LiveCode University http://university.livecode.com From m.schonewille at economy-x-talk.com Fri Aug 1 18:02:33 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 02 Aug 2014 00:02:33 +0200 Subject: Add a control to a group In-Reply-To: <2C79F60A-1479-4DCB-8849-2889E4544CE5@byu.edu> References: <2C79F60A-1479-4DCB-8849-2889E4544CE5@byu.edu> Message-ID: <53DC0E79.1010303@economy-x-talk.com> Hi Devin, Usually I copy them and then I delete the original: copy btn id x to grp y delete btn id x Probably you could also write a script to cut the control, edit the group and paste the control in the group. This wouldn't require creating a copy and deleting the original, but it might look strange when this happens and if something goes wrong, you lose your control :-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/1/2014 23:58, Devin Asay wrote: > I know I've seen this before, but I can't find it now. > > You can group objects with the group command: group obj a and obj b > > But how do you add an object to an existing group (through scripting not in the IDE)? From devin_asay at byu.edu Fri Aug 1 18:27:03 2014 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 1 Aug 2014 22:27:03 +0000 Subject: Add a control to a group In-Reply-To: <53DC0E79.1010303@economy-x-talk.com> References: <2C79F60A-1479-4DCB-8849-2889E4544CE5@byu.edu> <53DC0E79.1010303@economy-x-talk.com> Message-ID: On Aug 1, 2014, at 4:02 PM, Mark Schonewille wrote: > Hi Devin, > > Usually I copy them and then I delete the original: > > copy btn id x to grp y > delete btn id x > > Probably you could also write a script to cut the control, edit the group and paste the control in the group. This wouldn't require creating a copy and deleting the original, but it might look strange when this happens and if something goes wrong, you lose your control :-) Thanks, Mark. Right after I posted this I started experimenting with that technique and it looks promising. I just thought there might be a more direct way to do it. I just found this from the list in Nabble, from Klaus: create button in group "foo" But that won't work for me, because I am taking a snapshot then adding it to the group. I think I'll use Mark's suggestion. Regards, Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com From m.schonewille at economy-x-talk.com Fri Aug 1 18:36:43 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 02 Aug 2014 00:36:43 +0200 Subject: Add a control to a group In-Reply-To: References: <2C79F60A-1479-4DCB-8849-2889E4544CE5@byu.edu> <53DC0E79.1010303@economy-x-talk.com> Message-ID: <53DC167B.3090308@economy-x-talk.com> Hi Devin, You could export a snapshot to a variable, create an image object in the group and set the text of the image. export snapshot from rect myRect to myPicture as PNG create image "New Image" in grp "Your Group" set the text of it to myPicture -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/2/2014 00:27, Devin Asay wrote: > > On Aug 1, 2014, at 4:02 PM, Mark Schonewille > wrote: > >> Hi Devin, >> >> Usually I copy them and then I delete the original: >> >> copy btn id x to grp y >> delete btn id x >> >> Probably you could also write a script to cut the control, edit the group and paste the control in the group. This wouldn't require creating a copy and deleting the original, but it might look strange when this happens and if something goes wrong, you lose your control :-) > > > Thanks, Mark. Right after I posted this I started experimenting with that technique and it looks promising. I just thought there might be a more direct way to do it. > > I just found this from the list in Nabble, from Klaus: > > create button in group "foo" > > But that won't work for me, because I am taking a snapshot then adding it to the group. I think I'll use Mark's suggestion. > > > Regards, > > Devin > > > Devin Asay > Learn to code with LiveCode University > http://university.livecode.com > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paulhibbert at mac.com Fri Aug 1 18:41:26 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Fri, 01 Aug 2014 15:41:26 -0700 Subject: Add a control to a group In-Reply-To: <53DC167B.3090308@economy-x-talk.com> References: <2C79F60A-1479-4DCB-8849-2889E4544CE5@byu.edu> <53DC0E79.1010303@economy-x-talk.com> <53DC167B.3090308@economy-x-talk.com> Message-ID: <98AED9FE-D4F5-41E5-9E98-5FE2572B7261@mac.com> Hi Devin, Yet another approach? create invisible image "snapShot" in group "myGroup" export snapshot from group "or_Whatever" to image "snapShot" set the visible of img "snapShot" to true Paul On 2014-08-01, at 3:36 PM, Mark Schonewille wrote: > Hi Devin, > > You could export a snapshot to a variable, create an image object in the group and set the text of the image. > > export snapshot from rect myRect to myPicture as PNG > create image "New Image" in grp "Your Group" > set the text of it to myPicture > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > On 8/2/2014 00:27, Devin Asay wrote: >> >> On Aug 1, 2014, at 4:02 PM, Mark Schonewille >> wrote: >> >>> Hi Devin, >>> >>> Usually I copy them and then I delete the original: >>> >>> copy btn id x to grp y >>> delete btn id x >>> >>> Probably you could also write a script to cut the control, edit the group and paste the control in the group. This wouldn't require creating a copy and deleting the original, but it might look strange when this happens and if something goes wrong, you lose your control :-) >> >> >> Thanks, Mark. Right after I posted this I started experimenting with that technique and it looks promising. I just thought there might be a more direct way to do it. >> >> I just found this from the list in Nabble, from Klaus: >> >> create button in group "foo" >> >> But that won't work for me, because I am taking a snapshot then adding it to the group. I think I'll use Mark's suggestion. >> >> >> Regards, >> >> Devin >> >> >> Devin Asay >> Learn to code with LiveCode University >> http://university.livecode.com >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Fri Aug 1 19:03:21 2014 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 1 Aug 2014 23:03:21 +0000 Subject: Add a control to a group In-Reply-To: <98AED9FE-D4F5-41E5-9E98-5FE2572B7261@mac.com> References: <2C79F60A-1479-4DCB-8849-2889E4544CE5@byu.edu> <53DC0E79.1010303@economy-x-talk.com> <53DC167B.3090308@economy-x-talk.com> <98AED9FE-D4F5-41E5-9E98-5FE2572B7261@mac.com> Message-ID: <133F930E-7CF4-4F19-9A43-36CA5C152138@byu.edu> Thanks, Paul and Mark. As usual, there are many ways to skin that cat. Devin On Aug 1, 2014, at 4:41 PM, Paul Hibbert wrote: > Hi Devin, > > Yet another approach? > > create invisible image "snapShot" in group "myGroup" > export snapshot from group "or_Whatever" to image "snapShot" > set the visible of img "snapShot" to true > > Paul > > On 2014-08-01, at 3:36 PM, Mark Schonewille wrote: > >> Hi Devin, >> >> You could export a snapshot to a variable, create an image object in the group and set the text of the image. >> >> export snapshot from rect myRect to myPicture as PNG >> create image "New Image" in grp "Your Group" >> set the text of it to myPicture >> >> -- >> Best regards, >> >> Mark Schonewille >> >> Economy-x-Talk Consulting and Software Engineering >> Homepage: http://economy-x-talk.com >> Twitter: http://twitter.com/xtalkprogrammer >> KvK: 50277553 >> >> Installer Maker for LiveCode: >> http://qery.us/468 >> >> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi >> >> LiveCode on Facebook: >> https://www.facebook.com/groups/runrev/ >> >> On 8/2/2014 00:27, Devin Asay wrote: >>> >>> On Aug 1, 2014, at 4:02 PM, Mark Schonewille >>> wrote: >>> >>>> Hi Devin, >>>> >>>> Usually I copy them and then I delete the original: >>>> >>>> copy btn id x to grp y >>>> delete btn id x >>>> >>>> Probably you could also write a script to cut the control, edit the group and paste the control in the group. This wouldn't require creating a copy and deleting the original, but it might look strange when this happens and if something goes wrong, you lose your control :-) >>> >>> >>> Thanks, Mark. Right after I posted this I started experimenting with that technique and it looks promising. I just thought there might be a more direct way to do it. >>> >>> I just found this from the list in Nabble, from Klaus: >>> >>> create button in group "foo" >>> >>> But that won't work for me, because I am taking a snapshot then adding it to the group. I think I'll use Mark's suggestion. >>> >>> >>> Regards, >>> >>> Devin >>> >>> >>> Devin Asay >>> Learn to code with LiveCode University >>> http://university.livecode.com >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University From revolution at derbrill.de Fri Aug 1 20:03:59 2014 From: revolution at derbrill.de (Malte Brill) Date: Sat, 2 Aug 2014 02:03:59 +0200 Subject: [ANN] libDate update and help request In-Reply-To: References: Message-ID: Hi all, some of you know that I have been working hard(ly) on a date handling library. I have put some more work into it, in order to get rid of the need to use convert. The library can now parse different date formats without the need to use convert and thus the limitations of the convert command (1970, 2036) can be overcome. There are some more extra goodies in there, even though some more work is needed. You can download the stack from the forums: http://forums.livecode.com/viewtopic.php?f=16&t=15752 I also posted a little call for help there. If you have set your OS to a language different from english, swedish or german, I would like to know the following on your machines: the system dateFormat the long system dateFormat the abbrev system dateFormat the system monthNames the abbrev system monthNames the system weekDayNames the abbrev system weekDayNames on your machines, along with the language you are using on your system and if possible the ISO code for that language? That would be a great help! I am aware that this would be too much for the lists, So a private mail, or post to the forums would be fine. I hope some of you will find libDate useful. It is released into the public domain under DBMIAGW (Don't blame Malte if anything goes wrong) license. All the best, Malte From dochawk at gmail.com Fri Aug 1 21:29:51 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 1 Aug 2014 18:29:51 -0700 Subject: Add a control to a group In-Reply-To: <133F930E-7CF4-4F19-9A43-36CA5C152138@byu.edu> References: <2C79F60A-1479-4DCB-8849-2889E4544CE5@byu.edu> <53DC0E79.1010303@economy-x-talk.com> <53DC167B.3090308@economy-x-talk.com> <98AED9FE-D4F5-41E5-9E98-5FE2572B7261@mac.com> <133F930E-7CF4-4F19-9A43-36CA5C152138@byu.edu> Message-ID: On Fri, Aug 1, 2014 at 4:03 PM, Devin Asay wrote: > Thanks, Paul and Mark. As usual, there are many ways to skin that cat. > Bu very few cats that like getting skinned . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From wwaldman at klht.org Sat Aug 2 06:00:18 2014 From: wwaldman at klht.org (William Waldman) Date: Sat, 02 Aug 2014 06:00:18 -0400 Subject: use-livecode Digest, Vol 131, Issue 3 Message-ID: Thanks for your message. I am out of the office this week. If you need immediate assistance, please email "help at klht.org".


This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and any attachments and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized. From pete at lcsql.com Sat Aug 2 10:35:35 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 2 Aug 2014 07:35:35 -0700 Subject: Add a control to a group In-Reply-To: References: <2C79F60A-1479-4DCB-8849-2889E4544CE5@byu.edu> <53DC0E79.1010303@economy-x-talk.com> Message-ID: Hi Devin, Another way might be: create image in group........ export snapshot.......... to it Pete lcSQL Software On Aug 1, 2014 3:27 PM, "Devin Asay" wrote: > > On Aug 1, 2014, at 4:02 PM, Mark Schonewille < > m.schonewille at economy-x-talk.com> > wrote: > > > Hi Devin, > > > > Usually I copy them and then I delete the original: > > > > copy btn id x to grp y > > delete btn id x > > > > Probably you could also write a script to cut the control, edit the > group and paste the control in the group. This wouldn't require creating a > copy and deleting the original, but it might look strange when this happens > and if something goes wrong, you lose your control :-) > > > Thanks, Mark. Right after I posted this I started experimenting with that > technique and it looks promising. I just thought there might be a more > direct way to do it. > > I just found this from the list in Nabble, from Klaus: > > create button in group "foo" > > But that won't work for me, because I am taking a snapshot then adding it > to the group. I think I'll use Mark's suggestion. > > > Regards, > > Devin > > > Devin Asay > Learn to code with LiveCode University > http://university.livecode.com > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Sat Aug 2 10:58:56 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 02 Aug 2014 07:58:56 -0700 Subject: Performance v Python Message-ID: <53DCFCB0.7070802@fourthworld.com> A couple months ago Simon Smith did a very helpful comparison of PHP v LC: Has anyone here had the opportunity to perform any comparative benchmarks between LiveCode and Python? Given the strengths and weaknesses of each, I would imagine in many respects they would run roughly on par, with some operations perhaps slightly faster in LC, but I don't have the Python skills to make a good test myself. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From hh at livecode.org Sat Aug 2 14:58:30 2014 From: hh at livecode.org (hh) Date: Sat, 2 Aug 2014 20:58:30 +0200 Subject: Performance v Python Message-ID: You could use this LC-stack 'Python-Helper' (=raspiCollectionStack 19). It has a timing built in and cards 2 and 8 (choose at left) are ready-made-usable for this, just hit enter in the input field. http://forums.livecode.com/viewtopic.php?f=76&t=19248&start=15#p105550 I dare say, this will result in a feature request by you for building lists. There are also other examples that LC can't do itself ("bignum"), which would be lasso nice to have built in. From pete at lcsql.com Sat Aug 2 17:52:54 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 2 Aug 2014 14:52:54 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: <53D6DE7F.4010807@fourthworld.com> References: <53D6DE7F.4010807@fourthworld.com> Message-ID: On Mon, Jul 28, 2014 at 4:36 PM, Richard Gaskin wrote: > There are some extremely rare cases where "do" is useful, but most uses I > come across are just habits held over from more limited xTalks like > HyperCard. Here's the one that catches me every time: set the () of button "xyz" to 10 That results in a compile error "token is not a property". Tried it using "value" too but same error. The only way round this I've found is to use "do" but why can't the compiler handle this? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From ambassador at fourthworld.com Sat Aug 2 19:31:18 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 02 Aug 2014 16:31:18 -0700 Subject: No libURL with -ui? Message-ID: <53DD74C6.2050906@fourthworld.com> With the old MetaCard runtime engine we could call it facelessly with -ui and if we loaded libURL could make calls to remote servers quite well. With LC v7 I don't seem to be able to do this, even with a Linux standalone in which I've confirmed that libURL is among the backscripts. Anyone here successfully used libURL from a faceless standalone? If not I'll file a bug report. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sat Aug 2 20:00:29 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 02 Aug 2014 17:00:29 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: References: Message-ID: <53DD7B9D.3050604@fourthworld.com> Peter Haworth wrote: > Here's the one that catches me every time: > > set the () of button "xyz" to 10 > > That results in a compile error "token is not a property". Tried it > using "value" too but same error. The only way round this I've found > is to use "do" but why can't the compiler handle this? That looks like pretty much the syntax we all use every day to set property values. Can you gives us an example that doesn't work? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Sat Aug 2 20:05:25 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 02 Aug 2014 19:05:25 -0500 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: References: <53D6DE7F.4010807@fourthworld.com> Message-ID: <53DD7CC5.6030501@hyperactivesw.com> On 8/2/2014, 4:52 PM, Peter Haworth wrote: > Here's the one that catches me every time: > > set the () of button "xyz" to 10 > > That results in a compile error "token is not a property". Tried it using > "value" too but same error. The only way round this I've found is to use > "do" but why can't the compiler handle this? Try: put into tProp set the tProp of button "xyz" to 10 -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Sat Aug 2 20:51:01 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 3 Aug 2014 08:51:01 +0800 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: References: <53D6DE7F.4010807@fourthworld.com> Message-ID: On Sun, Aug 3, 2014 at 5:52 AM, Peter Haworth wrote: > Here's the one that catches me every time: > > set the () of button "xyz" to 10 I've just checked the latest stack I'm working on and I have 63 of these statements and they all work fine. A common example is for my many Option Menus: set the cScriptRunning of btn "Choices" to true -- or false Inside that btn the script looks like this: on menuPick pItemName if (the cScriptRunning of me is false) then set the cScriptRunning of me to true --do all you need to do here set the cScriptRunning of me to false end if end menuPick This allows me to preselect default values for Option Menus without running their scripts: set the cScriptRunning of btn "Choices" to true set the menuHistory of btn "Choices" to 26 set the cScriptRunning of btn "Choices" to false It also ensures where there are complex interaction between different Option Menus - clicking one will effect the values and preselected option in another - that I don't get into a infinite loop and that the scripts for each Option Menu are only run once. So that is two examples, one of a custom property, and one of an inbuilt property, where your syntax works perfectly for me. I'm on OS X 10.9.4 using LC 6.6.2GM From hh at livecode.org Sat Aug 2 20:57:16 2014 From: hh at livecode.org (hh) Date: Sun, 3 Aug 2014 02:57:16 +0200 Subject: [TAO] value() to obtain pointer functionality Message-ID: <00D77604-A0C9-4768-921B-B7FE0B8297FA@livecode.org> @Peter, this cannot work: Token, here "(" and ")", as part of a property name? Do "set (...) of btn ...." must also result in an error. Do "set" && (...) && "of btn ..." removes the offending token "(" and ")". @Richard, you are right: do "answer (do is useful)". Hermann From pete at lcsql.com Sat Aug 2 21:08:17 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 2 Aug 2014 18:08:17 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: <53DD7CC5.6030501@hyperactivesw.com> References: <53D6DE7F.4010807@fourthworld.com> <53DD7CC5.6030501@hyperactivesw.com> Message-ID: Right, actually that's what I ended up doing instead of using a "do" statement. Just not clear why the compiler can't evaluate an expression as a cprop name. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Aug 2, 2014 at 5:05 PM, J. Landman Gay wrote: > On 8/2/2014, 4:52 PM, Peter Haworth wrote: > >> Here's the one that catches me every time: >> >> set the () of button "xyz" to 10 >> >> That results in a compile error "token is not a property". Tried it using >> "value" too but same error. The only way round this I've found is to use >> "do" but why can't the compiler handle this? >> > > Try: > > put into tProp > set the tProp of button "xyz" to 10 > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sat Aug 2 21:09:14 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 2 Aug 2014 18:09:14 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: <53DD7B9D.3050604@fourthworld.com> References: <53DD7B9D.3050604@fourthworld.com> Message-ID: On Sat, Aug 2, 2014 at 5:00 PM, Richard Gaskin wrote: > Can you gives us an example that doesn't work? Just about any expression causes an error, eg: set the ("abc" & "def") of button "xyz" to 10 Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From lan.kc.macmail at gmail.com Sat Aug 2 21:18:08 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 3 Aug 2014 09:18:08 +0800 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: <53DD7B9D.3050604@fourthworld.com> References: <53DD7B9D.3050604@fourthworld.com> Message-ID: On Sun, Aug 3, 2014 at 8:00 AM, Richard Gaskin wrote: >> set the () of button "xyz" to 10 I looked at this again and thought maybe the problem you're having is because you're setting numbers and I'm generally using true and false, although I'm sure I've set text and numbers on many many occassions, but I just did a quick check by changing true and false to 1 and 0 and it still works fine: on menuPick pItemName if (the cScriptRunning of me is 0) then set the cScriptRunning of me to 1 --do all you need to do here set the cScriptRunning of me to 0 end if end menuPick set the cScriptRunning of btn "Choices" to 1 set the menuHistory of btn "Choices" to 26 set the cScriptRunning of btn "Choices" to 0 There must be something about your set up that is causing this because the examples in the User Guide include: set the loc of button "OK" to 32,104 --page 207 set the myCustomProperty of button 1 to false --page 223 set the customKeys of button "My Button" to it --page 227 set the customPropertySet of button 3 to "Spanish" --page 228 set the myCustomProp of button 1 to true --page 230 So when you say do you mean any, as in custom properties and inbuilt properties, or is it specifically with custom properties and does it make a difference if the values is a number, text or Boolean? From lan.kc.macmail at gmail.com Sat Aug 2 21:21:52 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 3 Aug 2014 09:21:52 +0800 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: References: <53DD7B9D.3050604@fourthworld.com> Message-ID: Oh now I see, it's the parenthesis that is causing the problem. From hh at livecode.org Sat Aug 2 22:46:00 2014 From: hh at livecode.org (hh) Date: Sun, 3 Aug 2014 04:46:00 +0200 Subject: Back to the Future. Message-ID: <6CBAEE32-64DA-4F32-BC07-A918F00D0347@livecode.org> If I have to be really fast, I start the fastest Mac one can currently buy (I have it). Then I go to my 12 year old PPC running Mac OS 10.4.11 and start it. LC 10.5.2 was opened at startup, I write 10 lines of code, run them and I'm done. Then I go back to the fastest Mac one can currently buy. It has meanwhile booted, fast checked and (incrementally) backed up the disk and I watch it loading the 750 Mbyte of LC 7.0 from its 2 TB disk in its 16 GB RAM. Wow! I'll wait again two seconds, then it's ready to use. How good I feel! Both things need about the same time that a MacPlus needed to start up its 560 KByte OS and to load it into its 4 MByte RAM. Do you see what I mean? In general you may be right and I'm with you to have good new things. But sometimes there is also 'Much Ado About Nothing'. It's content that counts, not the wrapping ... From ambassador at fourthworld.com Sat Aug 2 23:09:37 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 02 Aug 2014 20:09:37 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: References: Message-ID: <53DDA7F1.8000305@fourthworld.com> Peter Haworth wrote: > Just about any expression causes an error, eg: > > set the ("abc" & "def") of button "xyz" to 10 String literals are also expressions, which is what threw me off. What we have here seems like a case where the engine isn't doing a proper up-front evaluation of the stuff between parens, which I'd consider a bug. Does it only fail with concatenated expressions, or any others? -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Sat Aug 2 23:42:25 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 2 Aug 2014 20:42:25 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: <00D77604-A0C9-4768-921B-B7FE0B8297FA@livecode.org> References: <00D77604-A0C9-4768-921B-B7FE0B8297FA@livecode.org> Message-ID: Of course it can work. Expressions in Parentheses are supposed to be evaluated before the rest of the command. It just doesn't happen when the expression is preceded by "the". Pete lcSQL Software On Aug 2, 2014 5:57 PM, "hh" wrote: > @Peter, > > this cannot work: Token, here "(" and ")", as part of a property name? > Do "set (...) of btn ...." must also result in an error. > > Do "set" && (...) && "of btn ..." removes the offending token "(" and ")". > > @Richard, > > you are right: do "answer (do is useful)". > > Hermann > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sat Aug 2 23:45:06 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 2 Aug 2014 20:45:06 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: References: <53DD7B9D.3050604@fourthworld.com> Message-ID: See the example I posted in response to Richard's question. Pete lcSQL Software On Aug 2, 2014 6:18 PM, "Kay C Lan" wrote: > On Sun, Aug 3, 2014 at 8:00 AM, Richard Gaskin > wrote: > >> set the () of button "xyz" to 10 > > I looked at this again and thought maybe the problem you're having is > because you're setting numbers and I'm generally using true and false, > although I'm sure I've set text and numbers on many many occassions, > but I just did a quick check by changing true and false to 1 and 0 and > it still works fine: > > on menuPick pItemName > if (the cScriptRunning of me is 0) then > set the cScriptRunning of me to 1 > > --do all you need to do here > > set the cScriptRunning of me to 0 > end if > end menuPick > > set the cScriptRunning of btn "Choices" to 1 > set the menuHistory of btn "Choices" to 26 > set the cScriptRunning of btn "Choices" to 0 > > There must be something about your set up that is causing this because > the examples in the User Guide include: > > set the loc of button "OK" to 32,104 --page 207 > set the myCustomProperty of button 1 to false --page 223 > set the customKeys of button "My Button" to it --page 227 > set the customPropertySet of button 3 to "Spanish" --page 228 > set the myCustomProp of button 1 to true --page 230 > > So when you say do you mean any, as in custom > properties and inbuilt properties, or is it specifically with custom > properties and does it make a difference if the values is a number, > text or Boolean? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jhj at jhj.com Sat Aug 2 23:56:34 2014 From: jhj at jhj.com (Jerry Jensen) Date: Sat, 2 Aug 2014 20:56:34 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: <53DDA7F1.8000305@fourthworld.com> References: <53DDA7F1.8000305@fourthworld.com> Message-ID: On Aug 2, 2014, at 8:09 PM, Richard Gaskin wrote: > Peter Haworth wrote: > >> Just about any expression causes an error, eg: >> >> set the ("abc" & "def") of button "xyz" to 10 > > String literals are also expressions, which is what threw me off. > > What we have here seems like a case where the engine isn't doing a proper up-front evaluation of the stuff between parens, which I'd consider a bug. Interesting situation. The dictionary says what goes after the word "the" is the name of the cprop. I'm not sure if a value (the result of evaluating an expression) qualifies as a "name". If evaluation doesn't occur there, why can a bare variable be used successfully? Its inconsistent. I think whats needed is an enhancement request to evaluate an expression there. Not knowing anything about the engine internals, I simply am guessing it shouldn't be too difficult. Maybe the messy syntax of an unquoted literal being a legal literal if its not a variable name (except in strict compilation mode) is handled in a different part of the engine. Yet another reason to use strict compilation mode. Amen. .Jerry From richmondmathewson at gmail.com Sun Aug 3 03:51:58 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 03 Aug 2014 10:51:58 +0300 Subject: Back to the Future. In-Reply-To: <6CBAEE32-64DA-4F32-BC07-A918F00D0347@livecode.org> References: <6CBAEE32-64DA-4F32-BC07-A918F00D0347@livecode.org> Message-ID: <53DDEA1E.30207@gmail.com> On 03/08/14 05:46, hh wrote: > > > It's content that counts, not the wrapping ... > > This is very much the case, plus the fact that most people in the world do NOT need the "fastest Mac one currently buy" despite the hype. I have a cousin who runs a sort of farm for socially and mentally disturbed young adults, in England, and does all the work (including the website) on some "horrible" Pentium 3. She does not have the money for a new computer, and it is rather difficult to get her a groovy 3 year-old one from the dumping ground of 3 year-old computers (Bulgaria). I am not convinced she needs one. My Mum and Dad use a 10 year-old Toshiba laptop running Xubuntu. From my point of view it would be great if RunRev could take some earlier recensions of Livecode and remove their password protection capabilities and release them as Community versions for the people who are running Mac OS 10.1 -10.3 and Mac OS 8-9, Windows Me and XP, and so on. The Tray-loading iMac running 10.3 is capable of a wide range of things, and as such seems a sin to chuck it out (plus the advantage of having a "known quantity" sitting in Mum and Dad's house that I am 100% sure nobody will have been mucking around with between my visits): the same is true for all sorts of computers. As PPC Macs are very robust machines they should be good and usable for a while yet. Richmond. From lyn.teyla at gmail.com Sun Aug 3 04:14:54 2014 From: lyn.teyla at gmail.com (Lyn Teyla) Date: Sun, 3 Aug 2014 10:14:54 +0200 Subject: Will the new Widgets system allow LiveCoders to implement these? Message-ID: <6CFC1353-7D30-4771-B508-7850BCB3339B@gmail.com> Hi all, A preview of the Widgets & Themes project was shown last month by Kevin: http://livecode.com/blog/2014/07/08/the-next-generation-widgets-themes/ -------- Will the following missing GUI items be possible to implement via Widgets (i.e. solely via the new "lower-level" LiveCode)? 1. _Native_ transluscent blur effects (without faking it) on specified portions of the stack/card background (independently, i.e. without affecting its objects' opacities) as well as for individual objects and/or entire groups: http://forums.livecode.com/viewtopic.php?f=49&t=17609 2. Create a system menu bar icon: http://forums.livecode.com/viewtopic.php?f=7&t=14125 3. Create _native_ toolbars (and toolbar elements including buttons, search boxes, full-screen icon, etc.) without faking it: http://forums.livecode.com/viewtopic.php?f=19&t=14272 4. Embed CEF browser (third party library) with JavaScript integration on all platforms rather than just OS X and Windows: http://quality.runrev.com/show_bug.cgi?id=12698 5. Display _native_ alert boxes (again, without faking it which is what the current 'answer' command does) containing built-in elements such as Message Text, Informative Text, Accessory View, Icon, Title, Buttons, etc.: https://developer.apple.com/library/mac/documentation/userexperience/conceptual/applehiguidelines/Windows/Windows.html#//apple_ref/doc/uid/20000961-TP10 -------- In the Widgets & Themes presentation, it was also mentioned that new networking and database layers will be developed using Widgets, with the final goal being to have nearly all of LiveCode written in LiveCode itself. This implies that Widgets are not limited to GUI elements, since it can interface with non-GUI routines (e.g. networking) and those from third-party libraries (e.g. databases). Does this mean that it will be possible to use Widgets to (again, solely via the new "lower-level" LiveCode): 6. Extend dragDestination (or implement an alternative to dragDestination) to return file paths: http://quality.runrev.com/show_bug.cgi?id=8634 7. Hook into the notification manager of each platform, e.g. enabling the ability to bounce the dock icon on OS X, etc.: http://lists.runrev.com/pipermail/use-livecode/2011-August/159957.html -------- Once again, for all of the above, I am referring _strictly_ to the use of the new "lower-level" LiveCode that is used to implement Widgets. That means: (a) No "faking it" (drawing your own non-native stuff); and (b) Non-involvement of any other programming language (e.g. C, etc). -------- Many thanks for any information that you can provide. Best, Lyn From m.schonewille at economy-x-talk.com Sun Aug 3 04:39:30 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 03 Aug 2014 10:39:30 +0200 Subject: Will the new Widgets system allow LiveCoders to implement these? In-Reply-To: <6CFC1353-7D30-4771-B508-7850BCB3339B@gmail.com> References: <6CFC1353-7D30-4771-B508-7850BCB3339B@gmail.com> Message-ID: <53DDF542.6060600@economy-x-talk.com> Hi Lyn, As I understand it, Widgets will exist inside the stack window, just like controls. They are drawn in what RunRev calls a canvas, in the same layer as current controls. This might impose some limitations on what is possible. Then again, since you can hook directly into the API of the operating system, you should be able to call API's that add a toolbar for instance. This means that widgets provide pretty much the same extensibility as externals, but with less effort. If a widget doesn't always need to have a visible canvas, which is what I would expect, then widgets can also exist "outside" the stack window and you should be able to do anything you want, as long as there is an API for it. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/3/2014 10:14, Lyn Teyla wrote: > Hi all, > > A preview of the Widgets & Themes project was shown last month by Kevin: > > http://livecode.com/blog/2014/07/08/the-next-generation-widgets-themes/ > > -------- > > Will the following missing GUI items be possible to implement via Widgets (i.e. solely via the new "lower-level" LiveCode)? > > 1. _Native_ transluscent blur effects (without faking it) on specified portions of the stack/card background (independently, i.e. without affecting its objects' opacities) as well as for individual objects and/or entire groups: > > http://forums.livecode.com/viewtopic.php?f=49&t=17609 > > 2. Create a system menu bar icon: > > http://forums.livecode.com/viewtopic.php?f=7&t=14125 > > 3. Create _native_ toolbars (and toolbar elements including buttons, search boxes, full-screen icon, etc.) without faking it: > > http://forums.livecode.com/viewtopic.php?f=19&t=14272 > > 4. Embed CEF browser (third party library) with JavaScript integration on all platforms rather than just OS X and Windows: > > http://quality.runrev.com/show_bug.cgi?id=12698 > > 5. Display _native_ alert boxes (again, without faking it which is what the current 'answer' command does) containing built-in elements such as Message Text, Informative Text, Accessory View, Icon, Title, Buttons, etc.: > > https://developer.apple.com/library/mac/documentation/userexperience/conceptual/applehiguidelines/Windows/Windows.html#//apple_ref/doc/uid/20000961-TP10 > > -------- > > In the Widgets & Themes presentation, it was also mentioned that new networking and database layers will be developed using Widgets, with the final goal being to have nearly all of LiveCode written in LiveCode itself. > > This implies that Widgets are not limited to GUI elements, since it can interface with non-GUI routines (e.g. networking) and those from third-party libraries (e.g. databases). > > Does this mean that it will be possible to use Widgets to (again, solely via the new "lower-level" LiveCode): > > 6. Extend dragDestination (or implement an alternative to dragDestination) to return file paths: > > http://quality.runrev.com/show_bug.cgi?id=8634 > > 7. Hook into the notification manager of each platform, e.g. enabling the ability to bounce the dock icon on OS X, etc.: > > http://lists.runrev.com/pipermail/use-livecode/2011-August/159957.html > > -------- > > Once again, for all of the above, I am referring _strictly_ to the use of the new "lower-level" LiveCode that is used to implement Widgets. That means: > > (a) No "faking it" (drawing your own non-native stuff); and > > (b) Non-involvement of any other programming language (e.g. C, etc). > > -------- > > Many thanks for any information that you can provide. > > Best, > Lyn > > From sims at ezpzapps.com Sun Aug 3 05:05:50 2014 From: sims at ezpzapps.com (Jim sims) Date: Sun, 3 Aug 2014 10:05:50 +0100 Subject: duplicates of parts of a line in list Message-ID: I have a list of items such as in example 1 shown below. I want to record how many are the same but only the same by char 1 to 2 and char 6 to 7 then place that number of duplicates after each line, as in the second example list. Any ideas for doing this? Thanks, sims --- LIST 1 08:00_d3_180_Monica_pink 10:45_d2_90_Mary_orange 10:00_d2_90_Mary_orange 10:15_d2_90_Mary_orange 10:30_d2_90_Mary_orange 10:00_d2_90_Mary_orange 10:00_d2_90_Mary_orange 12:30_d5_45_Mary_blue 12:45_d5_45_Mary_blue 12:60_d5_45_Mary_blue LIST 2 08:00_d3_180_Monica_pink_1 10:45_d2_90_Mary_orange_3 10:00_d2_90_Mary_orange_3 10:15_d2_90_Mary_orange_3 10:30_d6_90_Mary_orange_2 10:00_d6_90_Mary_orange_2 10:00_d3_90_Mary_orange_1 12:30_d5_45_Mary_blue_3 12:45_d5_45_Mary_blue_3 12:60_d5_45_Mary_blue_3 From wwaldman at klht.org Sun Aug 3 06:00:23 2014 From: wwaldman at klht.org (William Waldman) Date: Sun, 03 Aug 2014 06:00:23 -0400 Subject: use-livecode Digest, Vol 131, Issue 4 Message-ID: Thanks for your message. I am out of the office this week. If you need immediate assistance, please email "help at klht.org".


This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and any attachments and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized. From hh at livecode.org Sun Aug 3 07:29:21 2014 From: hh at livecode.org (hh) Date: Sun, 3 Aug 2014 13:29:21 +0200 Subject: [TAO] value() to obtain pointer functionality Message-ID: <831171EF-D329-4443-901D-F83C3510D42C@livecode.org> Hi Peter and all, (please have in mind, that I'm not a native speaker and am 18 months with LC. So the following will be a bit 'bumpy'. I write just as I understand it, no arrogance intended with my phrasing and wording.) This is a syntax rule: "the" is followed by the name of a property or function. That's why no parentheses are allowed to follow in the name, else date() couldn't be equivalent to "the date". Now recall also that the keyword "the" is optional before the names of properties. > Peter H. wrote : > Here's the one that catches me every time: > set the () of button "xyz" to 10 In sum all this cannot work: set ("na" & "me") of btn "xyz" to 10 set "(na" & "me)" of btn "xyz" to 10 set the ("na" & "me") of btn "xyz" to 10 set the "(na" & "me)" of btn "xyz" to 10 set "the (na" & "me)" of btn "xyz" to 10 Besides other working examples given by you and others this works (with or without "the") too, e.g.: do "set the" && ("na"&"me") && "of btn" && quote&"xyz""e && "to 10" because "do" removes the offending token "(" and ")" [and also, what's next, the offending double quotes]. That's very useful. Consequently LC is in this case wrong with setting "(do is useful)" to false. Hermann p.s. Also this cannot work (too with "tName", ...): set the "name" of btn "xyz" to 10 set "name" of btn "xyz" to 10 The latter one does nothing and gives no error, but it should, the quotes are 'offending' token separators. Call it a "bug"? Would be nice if Mark Wieder came in (?) and correct me where I'm wrong. From hh at livecode.org Sun Aug 3 08:03:18 2014 From: hh at livecode.org (hh) Date: Sun, 3 Aug 2014 14:03:18 +0200 Subject: duplicates of parts of a line in list Message-ID: <998C9FDD-A151-440D-9D5D-20ECE0C2444F@livecode.org> Do you mean char 7 to 8? And list 2 is not the result of this counting for list 1? Should be 08:00_d3_180_Monica_pink_1 10:45_d2_90_Mary_orange_6 10:00_d2_90_Mary_orange_6 10:15_d2_90_Mary_orange_6 10:30_d2_90_Mary_orange_6 10:00_d2_90_Mary_orange_6 10:00_d2_90_Mary_orange_6 12:30_d5_45_Mary_blue_3 12:45_d5_45_Mary_blue_3 12:60_d5_45_Mary_blue_3 If I got this right then try this: function myCounter myList repeat for each line l in myList if l is empty then next repeat add 1 to f[char 1 to 2 of l &comma& char 7 to 8 of l] end repeat repeat for each line l in myList if l is empty then next repeat put cr & l & "_" & f[char 1 to 2 of l &comma& char 7 to 8 of l] after s end repeat delete char 1 of s -- is return return s end myCounter From hh at livecode.org Sun Aug 3 08:11:49 2014 From: hh at livecode.org (hh) Date: Sun, 3 Aug 2014 14:11:49 +0200 Subject: duplicates of parts of a line in list Message-ID: Sorru "ell" and "one" are hard to distinguish. SO function myCounter myList repeat for each line i in myList if i is empty then next repeat add 1 to f[char 1 to 2 of i &comma& char 7 to 8 of i] end repeat repeat for each line i in myList if i is empty then next repeat put cr & i & "_" & f[char 1 to 2 of i &comma& char 7 to 8 of i] after s end repeat delete char 1 of s -- is return return s end myCounter From sims at ezpzapps.com Sun Aug 3 08:15:13 2014 From: sims at ezpzapps.com (Jim sims) Date: Sun, 3 Aug 2014 13:15:13 +0100 Subject: duplicates of parts of a line in list In-Reply-To: <998C9FDD-A151-440D-9D5D-20ECE0C2444F@livecode.org> References: <998C9FDD-A151-440D-9D5D-20ECE0C2444F@livecode.org> Message-ID: Very nice :-) Thank you! sims Can you explain what the the "f" in the following line means/signifies? put cr & l & "_" & f[char 1 to 2 of l &comma& char 7 to 8 of l] after s On Sun, Aug 3, 2014 at 1:03 PM, hh wrote: > Do you mean char 7 to 8? > And list 2 is not the result of this counting for list 1? Should be > > 08:00_d3_180_Monica_pink_1 > 10:45_d2_90_Mary_orange_6 > 10:00_d2_90_Mary_orange_6 > 10:15_d2_90_Mary_orange_6 > 10:30_d2_90_Mary_orange_6 > 10:00_d2_90_Mary_orange_6 > 10:00_d2_90_Mary_orange_6 > 12:30_d5_45_Mary_blue_3 > 12:45_d5_45_Mary_blue_3 > 12:60_d5_45_Mary_blue_3 > > If I got this right then try this: > > function myCounter myList > repeat for each line l in myList > if l is empty then next repeat > add 1 to f[char 1 to 2 of l &comma& char 7 to 8 of l] > end repeat > repeat for each line l in myList > if l is empty then next repeat > put cr & l & "_" & f[char 1 to 2 of l &comma& char 7 to 8 of l] after s > end repeat > delete char 1 of s -- is return > return s > end myCounter > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at livecode.org Sun Aug 3 08:29:01 2014 From: hh at livecode.org (hh) Date: Sun, 3 Aug 2014 14:29:01 +0200 Subject: duplicates of parts of a line in list Message-ID: Never mind, just try: put myCounter(fld "X") into fld "Y" That's life - more exactly, that's LiveCode: s is an empty string, created by LC for you f is an empty array variable, created by LC for you Did you already look in the LC-forum? There is a lot of help and there are some impressively good helpers for such questions. I started there too at my very LC beginning, close to yesterday (time flows...). See you there, I'm only here today because its saturday (Craig?). And there are very good tutorials to using arrays. Both reachable from the top site of LiveCode. From hh at livecode.org Sun Aug 3 08:53:07 2014 From: hh at livecode.org (hh) Date: Sun, 3 Aug 2014 14:53:07 +0200 Subject: use-livecode Digest, Vol 131, Issue 4 Message-ID: <36C8A613-25B1-46F1-97E4-EEAA7B2BD027@livecode.org> Hi answeringRobot at klht.org, I'm a robot of hh at livecode.org and instructed to post nothing useful. I'm so lonely in this world of human beings. Could we arrange a meeting in Silicon Valley this evening? Please leave for that your office for a week and delegate any help to the humans. HAL42, postingRobot of hh at livecode.org From richmondmathewson at gmail.com Sun Aug 3 10:33:12 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 03 Aug 2014 17:33:12 +0300 Subject: "Go Big" Message-ID: <53DE4828.9070506@gmail.com> I have just checked the Spam folder of my Yahoo e-mail and found a message from RunRev entitled "Go Big", which, unsurprisingly, end up in the Spam. From now on I will treat any e-mails that have 'Big', 'Enlarge' and associated words as communications from RunRev. Unless, of course, RunRev realises that sending a message entitled "Go Big" was just too tempting for a Spam filter. Richmond. From richmondmathewson at gmail.com Sun Aug 3 10:38:20 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 03 Aug 2014 17:38:20 +0300 Subject: use-livecode Digest, Vol 131, Issue 4 In-Reply-To: <36C8A613-25B1-46F1-97E4-EEAA7B2BD027@livecode.org> References: <36C8A613-25B1-46F1-97E4-EEAA7B2BD027@livecode.org> Message-ID: <53DE495C.30703@gmail.com> On 03/08/14 15:53, hh wrote: > Hi answeringRobot at klht.org, > > I'm a robot of hh at livecode.org and instructed to post nothing useful. > > I'm so lonely in this world of human beings. Could we arrange a meeting in Silicon Valley this evening? > Please leave for that your office for a week and delegate any help to the humans. > > HAL42, postingRobot of hh at livecode.org > _______________________________________________ > Hi answering HAL42 postingRobot of hh at livecode.org Maybe we could get together with the robots of the RunRev staff and 'Go Big' somewhere such as Westerhailes or Leith. Please leave questions referring to the cultural implications contained in 'Westerhailes' or 'Leith' to humans. Bottles of Buckfast are not suitable for robots, [nor for programmers, come to think of things]. RM108, postingRobot of richmondmathewson at gmail.com ----------------------------------------------------------------------------- From pete at lcsql.com Sun Aug 3 13:01:38 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 3 Aug 2014 10:01:38 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: <831171EF-D329-4443-901D-F83C3510D42C@livecode.org> References: <831171EF-D329-4443-901D-F83C3510D42C@livecode.org> Message-ID: On Sun, Aug 3, 2014 at 4:29 AM, hh wrote: > This is a syntax rule: "the" is followed by the name of a property or > function. > That's why no parentheses are allowed to follow in the name, else date() > couldn't be equivalent to "the date". > > > Peter H. wrote : > > Here's the one that catches me every time: > > set the () of button "xyz" to 10 > > In sum all this cannot work: > > set ("na" & "me") of btn "xyz" to 10 > set "(na" & "me)" of btn "xyz" to 10 > set the ("na" & "me") of btn "xyz" to 10 > set the "(na" & "me)" of btn "xyz" to 10 > set "the (na" & "me)" of btn "xyz" to 10 > Herman, I think you're misunderstanding my point. The "(" and ")" aren't the issue. My point is that LC won't accept any type of expression (other than a variable name) with or without parentheses as a custom property name. The first and third examples you gave above should work, with or without the parentheses. The presence of "set" and "of" tell the compiler that a custom property is being referenced and, although I'm certainly not an expert on parsing, I can't see why the compiler ( or the engine at runtime) can't evaluate an expression which results in a custom property name before executing the rest of the command. That's what happens everywhere else in LC although sometimes the value() function is required. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From pete at lcsql.com Sun Aug 3 13:25:12 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 3 Aug 2014 10:25:12 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: <53DDA7F1.8000305@fourthworld.com> References: <53DDA7F1.8000305@fourthworld.com> Message-ID: Hi Richard, Just tried it with an arithmetic expression and it generated the same error, with or without parens. I'll say again, since it seems to be causing some confusion, the parens aren't really the issue other than they should force the expression between them to be evaluated before the rest of the statement. I originally tried this without parens, got the error, then added the parens. Also tried value("abc" & "def"). However, it looks like if the compiler sees any character that is not valid as part of a custom property name, it flags an error instead of checking to see if it is part of an expression to be evaluated. Hence the need for a do statement or, as Jacque pointed out, putting the expression into a variable I've entered QCC report# 13086 on this. Even if it's not accepted as a bug, it will be interesting to discover why it works this way. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Aug 2, 2014 at 8:09 PM, Richard Gaskin wrote: > Peter Haworth wrote: > > Just about any expression causes an error, eg: >> >> set the ("abc" & "def") of button "xyz" to 10 >> > > String literals are also expressions, which is what threw me off. > > What we have here seems like a case where the engine isn't doing a proper > up-front evaluation of the stuff between parens, which I'd consider a bug. > > Does it only fail with concatenated expressions, or any others? > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for Desktop, Mobile, and Web > ____________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sun Aug 3 14:15:41 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 03 Aug 2014 21:15:41 +0300 Subject: The man's a beast. Message-ID: <53DE7C4D.1010807@gmail.com> Try it: https://www.facebook.com/download/792824757415236/speeder_too.livecode.zip Richmond. From jacque at hyperactivesw.com Sun Aug 3 15:30:44 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 03 Aug 2014 14:30:44 -0500 Subject: OpenControl Message-ID: <53DE8DE4.5080307@hyperactivesw.com> I want to create a shared group that resets its content every time it's displayed on a different card. The group needs to be self-contained with no additional scripting anywhere else in the stack. The preOpenControl and openControl messages are only sent the first time the shared group is drawn. I need a similar message every time the card changes. I'd rather not put a different copy of the control on every card (which would allow those messages.) Has anyone dealt with this? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From m.schonewille at economy-x-talk.com Sun Aug 3 15:49:45 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 03 Aug 2014 21:49:45 +0200 Subject: OpenControl In-Reply-To: <53DE8DE4.5080307@hyperactivesw.com> References: <53DE8DE4.5080307@hyperactivesw.com> Message-ID: <53DE9259.9000401@economy-x-talk.com> Hi, Include a front script in your group and add a preOpenCard handler to that front script. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/3/2014 21:30, J. Landman Gay wrote: > I want to create a shared group that resets its content every time it's > displayed on a different card. The group needs to be self-contained with > no additional scripting anywhere else in the stack. > > The preOpenControl and openControl messages are only sent the first time > the shared group is drawn. I need a similar message every time the card > changes. I'd rather not put a different copy of the control on every > card (which would allow those messages.) > > Has anyone dealt with this? > From richmondmathewson at gmail.com Sun Aug 3 15:56:51 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 03 Aug 2014 22:56:51 +0300 Subject: OpenControl In-Reply-To: <53DE8DE4.5080307@hyperactivesw.com> References: <53DE8DE4.5080307@hyperactivesw.com> Message-ID: <53DE9403.4060506@gmail.com> On 03/08/14 22:30, J. Landman Gay wrote: > I want to create a shared group that resets its content every time > it's displayed on a different card. The group needs to be > self-contained with no additional scripting anywhere else in the stack. > > The preOpenControl and openControl messages are only sent the first > time the shared group is drawn. I need a similar message every time > the card changes. I'd rather not put a different copy of the control > on every card (which would allow those messages.) > > Has anyone dealt with this? > That seems to be asking quite a lot . . . Presumably, as you want the group to be self-contained it itself has to detect when the end-user hits a "Go Next" button? I am not sure how this can be done. http://forums.livecode.com/posting.php?mode=post&f=8 Richmond. From richmondmathewson at gmail.com Sun Aug 3 15:59:33 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 03 Aug 2014 22:59:33 +0300 Subject: OpenControl In-Reply-To: <53DE9403.4060506@gmail.com> References: <53DE8DE4.5080307@hyperactivesw.com> <53DE9403.4060506@gmail.com> Message-ID: <53DE94A5.301@gmail.com> On 03/08/14 22:56, Richmond wrote: > On 03/08/14 22:30, J. Landman Gay wrote: >> I want to create a shared group that resets its content every time >> it's displayed on a different card. The group needs to be >> self-contained with no additional scripting anywhere else in the stack. >> >> The preOpenControl and openControl messages are only sent the first >> time the shared group is drawn. I need a similar message every time >> the card changes. I'd rather not put a different copy of the control >> on every card (which would allow those messages.) >> >> Has anyone dealt with this? >> > > That seems to be asking quite a lot . . . > > Presumably, as you want the group to be self-contained it itself has > to detect when > the end-user hits a "Go Next" button? > > I am not sure how this can be done. > > http://forums.livecode.com/posting.php?mode=post&f=8 > > Richmond. Whoops: http://forums.livecode.com/viewtopic.php?f=8&t=21251 Richmond. From mats.wilstrand at tapirsoft.com Sun Aug 3 17:03:18 2014 From: mats.wilstrand at tapirsoft.com (Mats Wilstrand) Date: Sun, 3 Aug 2014 23:03:18 +0200 Subject: OpenControl In-Reply-To: <53DE8DE4.5080307@hyperactivesw.com> References: <53DE8DE4.5080307@hyperactivesw.com> Message-ID: Hi Jaque. I assume you're using a background grp. If so I have used the "focusOut" message to fire some action in the self-contained grp when the card changes. The "focusIn" message is not received by the group on crad change. This is kind of counter intuitive imho but it works. All the best Mats > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of J. Landman Gay > Sent: den 3 augusti 2014 21:31 > To: LiveCode Mailing List > Subject: OpenControl > > I want to create a shared group that resets its content every time it's > displayed on a different card. The group needs to be self-contained with no > additional scripting anywhere else in the stack. > > The preOpenControl and openControl messages are only sent the first time > the shared group is drawn. I need a similar message every time the card > changes. I'd rather not put a different copy of the control on every card > (which would allow those messages.) > > Has anyone dealt with this? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at livecode.org Sun Aug 3 17:14:05 2014 From: hh at livecode.org (hh) Date: Sun, 3 Aug 2014 23:14:05 +0200 Subject: [TAO] value() to obtain pointer functionality Message-ID: Hello Peter. Let us argue constructively instead insisting on "rules". Currently wonderful things are possible to "set" (because "set" doesn't use internally "the"): set empty of this stack to "papperlapapp" set 7 of this stack to "empty" set 7.0 of this stack to "1" set 7.00 of this stack to "2" Now you wish to have to allow set "7.0 + empty" of this stack to (the 7 of this stack) What's the result? All parts are valid expressions 7.0 + empty is 7, 7.0 + empty is 7.0, 7.0 + empty is 7.00 and the 7 of this stack is empty. Currently you certainly cannot get the above properties by "get " (because "get" uses internally "the") but e.g. like this: on mouseUp set empty of this stack to "paperlapapp" set 7 of this stack to "empty" set 7.0 of this stack to "1" set 7.00 of this stack to "2" put the customproperties of this stack into o...kay combine o...kay by cr and comma; answer o...kay end mouseUp I understand very well what you wish and can fully understand why you wish it. But eventually you are requesting what's already implemented and unambiguously usable: "do". Hermann From hh at livecode.org Sun Aug 3 18:02:31 2014 From: hh at livecode.org (hh) Date: Mon, 4 Aug 2014 00:02:31 +0200 Subject: OpenControl Message-ID: <1E08BF6C-8144-46AE-9386-5377D28DCBC2@livecode.org> I use to use "on openBackground" or "on preOpenBackground". [Good bye all, until next sunday. Was nice to be here. Mo-Fr I'm in the forum.] From lan.kc.macmail at gmail.com Sun Aug 3 20:52:11 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 4 Aug 2014 08:52:11 +0800 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: References: <53DDA7F1.8000305@fourthworld.com> Message-ID: On Sun, Aug 3, 2014 at 11:56 AM, Jerry Jensen wrote: > Interesting situation. The dictionary says what goes after the word "the" is the name of the cprop. I'm not sure if a value (the result of evaluating an expression) qualifies as a "name". Just did a quick test, New Stack, one fld "testField", in the msg box: put "hello" into fld ("test" & "Field") works fine, so in some cases the engine can up-front evaluate and correctly associate it as an object name. I haven't tested every instance where a name is required and whether parenthesis can be used, but I'd agree it's inconsistent and therefore a bug. From jacque at hyperactivesw.com Sun Aug 3 21:32:37 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 03 Aug 2014 20:32:37 -0500 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: References: <53DDA7F1.8000305@fourthworld.com> Message-ID: <53DEE2B5.4030402@hyperactivesw.com> On 8/3/2014, 7:52 PM, Kay C Lan wrote: > Just did a quick test, New Stack, one fld "testField", in the msg box: > > put "hello" into fld ("test" & "Field") > > works fine It's very useful in repeat loops, for this sort of thing: repeat with x = 1 to the number of btns set the hilite of btn ("answer"&&x) to false end repeat It works for the name of any object. I don't know if the failure with custom properties is a bug or an oversight, but it is definitely inconsistent. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Sun Aug 3 21:40:59 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 4 Aug 2014 09:40:59 +0800 Subject: Back to the Future. In-Reply-To: <6CBAEE32-64DA-4F32-BC07-A918F00D0347@livecode.org> References: <6CBAEE32-64DA-4F32-BC07-A918F00D0347@livecode.org> Message-ID: On Sun, Aug 3, 2014 at 10:46 AM, hh wrote: > Do you see what I mean? In general you may be right and I'm with you to have good new things. But sometimes there is also 'Much Ado About Nothing'. > > It's content that counts, not the wrapping ... Totally agree. Moore's Law may state that CPU performance may double every 18 months, but my own experience is that Application performance is gradually headed the other way; unless it's a Cloud app in which case it's performance is plummeting. Due to my aforementioned frequent use of thinband I hate Cloud apps and avoid them with a passion. I believe Snow Leopard was the pinnacle of OS X. I have a bottom of the range single processor 1.8 GHZ G5 stuck on Leopard which takes between 1/2 to 2/3 the time to rip a commercial DVD than my quad core 2.7 GHz Intel Core i7 running Mavericks. When we are talking 100s of DVD we are talking days and weeks of time saved or wasted. And it's not just computers but cars and planes that are slowing as well. 40 years ago a commercial passenger could fly supersonic, but today even the transonic commercial jets are slower than those of last century. I appreciate that technology these days is acutely directed at efficiency and saving the planet rather than last centuries focus on speed, but even so technology today seems to provide an abundance of ways to waste time rather than use less of it. Use it 'til it breaks. I wish Richmond every success in getting LC6.6 running on his G3 iMac. From MikeKerner at roadrunner.com Sun Aug 3 22:19:14 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 3 Aug 2014 22:19:14 -0400 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: <53DEE2B5.4030402@hyperactivesw.com> References: <53DDA7F1.8000305@fourthworld.com> <53DEE2B5.4030402@hyperactivesw.com> Message-ID: And this won't be truly great until I can put "y" into x put 1 into value(x) because I can use this to get values but not set them, so I'm still stuck with do "put 1 into"&&x On Sun, Aug 3, 2014 at 9:32 PM, J. Landman Gay wrote: > On 8/3/2014, 7:52 PM, Kay C Lan wrote: > >> Just did a quick test, New Stack, one fld "testField", in the msg box: >> >> put "hello" into fld ("test" & "Field") >> >> works fine >> > > It's very useful in repeat loops, for this sort of thing: > > repeat with x = 1 to the number of btns > set the hilite of btn ("answer"&&x) to false > end repeat > > It works for the name of any object. I don't know if the failure with > custom properties is a bug or an oversight, but it is definitely > inconsistent. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Sun Aug 3 22:26:49 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 03 Aug 2014 19:26:49 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: References: Message-ID: <53DEEF69.1070307@fourthworld.com> Mike Kerner wrote: > And this won't be truly great until I can > > put "y" into x > put 1 into value(x) > > because I can use this to get values but not set them, so I'm still stuck > with > > do "put 1 into"&&x I'm all for inventing radical new programming paradigms, and maybe Open Language may help with some of this, but what you have there is a common need addressed through a different pattern: In essence it's a name-value pair, and whenever you have a set of name-value pair in which the names can't be known in advance one of the most common solutions is an associative array, which LC handles well: put 1 into tArray[x] -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From johnpatten at me.com Sun Aug 3 22:32:30 2014 From: johnpatten at me.com (JOHN PATTEN) Date: Sun, 03 Aug 2014 19:32:30 -0700 Subject: Missing digits when replacing single digit item with two digit item? Message-ID: <129377B7-15F0-4931-9DFE-DAFDD5FD16CD@me.com> Hello! I have 15 buttons on a card. They are each named Button 1, Button 2, Button 3, etc. I have another button that I am using as a game piece. It moves around the digital game board to the loc of each of the other 15 buttons. I am attempting to save the players information into a single line, in a text file, on the server. I?m using LC Server to manage the text file. Each line on the the text field holds the username, password, emailaddress, and player?s game piece button location. So a line in the text file would appear as: jpatten,password,jpatten at bmail.com,Button 2 My player piece moves across the digital game board from button loc to button loc, across 15 spots (button locs.) The LS Server writes the current players location by putting the name of the button it is over. So if the player is currently at Button 2, rolls a 3, their player moves to the loc of Button 5 and server writes Button 5 into the last item of the text entry for that player. So that players entry into text file becomes: jpatten,password,jpatten at bmail.com,Button 5. The problem is when I get to buttons (game board spots) 10-15. I can tell by examining the code that it is exchanging, say Button 9 for Button 12 in a move of 3, but when it puts Button 12 in for item 4 it only writes ?Button 1,? leaving out the 2 in twelve. If I go around the board, to single digits, the code works again. It is only when I replace the last item with a two digit number that it fails. It?s as if it won?t allow the replacement of the single digit last item, Button 9, with a two digit item, Button 12. It lops off the 2. Does anybody have an idea of what could be going wrong? I will put my server code in a reply to this email, otherwise I will be put into ?long message limbo? if I paste it to the bottom of this message. Thank you! John Patten SUSD From johnpatten at me.com Sun Aug 3 22:33:40 2014 From: johnpatten at me.com (JOHN PATTEN) Date: Sun, 03 Aug 2014 19:33:40 -0700 Subject: Missing digits when replacing single digit item with two digit item? In-Reply-To: <129377B7-15F0-4931-9DFE-DAFDD5FD16CD@me.com> References: <129377B7-15F0-4931-9DFE-DAFDD5FD16CD@me.com> Message-ID: <2571BBD5-803B-4390-9A3C-B18A359EDA38@me.com> Here?s the server script: On Aug 3, 2014, at 7:32 PM, JOHN PATTEN wrote: > Hello! > > I have 15 buttons on a card. They are each named Button 1, Button 2, Button 3, etc. I have another button that I am using as a game piece. It moves around the digital game board to the loc of each of the other 15 buttons. I am attempting to save the players information into a single line, in a text file, on the server. I?m using LC Server to manage the text file. Each line on the the text field holds the username, password, emailaddress, and player?s game piece button location. So a line in the text file would appear as: jpatten,password,jpatten at bmail.com,Button 2 > > My player piece moves across the digital game board from button loc to button loc, across 15 spots (button locs.) The LS Server writes the current players location by putting the name of the button it is over. So if the player is currently at Button 2, rolls a 3, their player moves to the loc of Button 5 and server writes Button 5 into the last item of the text entry for that player. So that players entry into text file becomes: jpatten,password,jpatten at bmail.com,Button 5. > > The problem is when I get to buttons (game board spots) 10-15. I can tell by examining the code that it is exchanging, say Button 9 for Button 12 in a move of 3, but when it puts Button 12 in for item 4 it only writes ?Button 1,? leaving out the 2 in twelve. If I go around the board, to single digits, the code works again. > > It is only when I replace the last item with a two digit number that it fails. It?s as if it won?t allow the replacement of the single digit last item, Button 9, with a two digit item, Button 12. It lops off the 2. > > Does anybody have an idea of what could be going wrong? I will put my server code in a reply to this email, otherwise I will be put into ?long message limbo? if I paste it to the bottom of this message. > > Thank you! > > John Patten > SUSD > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From johnpatten at me.com Sun Aug 3 22:36:12 2014 From: johnpatten at me.com (JOHN PATTEN) Date: Sun, 03 Aug 2014 19:36:12 -0700 Subject: Missing digits when replacing single digit item with two digit item? In-Reply-To: <129377B7-15F0-4931-9DFE-DAFDD5FD16CD@me.com> References: <129377B7-15F0-4931-9DFE-DAFDD5FD16CD@me.com> Message-ID: <5042D629-AB62-46F7-9452-1812B18AC721@me.com> And here is the button script to move the player?s game piece: on mouseUp put cd fld "username" of cd 1 into tTargetPlayer put the loc of cd btn tTargetPlayer into tTargetPlayerLoc put 1 into x repeat 15 put the id of cd button ( "Button" && x ) & return after GameSpots add 1 to x end repeat put 1 into x repeat for number of lines in GameSpots if the loc of btn id (line x of GameSpots) is tTargetPlayerLoc then put the short name of button id (line x of GameSpots) into tLabels end if add 1 to x end repeat put char 1 to 2 of word 2 of tLabels into tCurrentSpot put tCurrentSpot + (cd fld "DiceRoll") into tButton if tButton > 15 then put 1 into tButton move cd button tTargetPlayer to the loc of cd button ("Button" && tButton) put urlEncode(tTargetPlayer) into tUsername put urlEncode("Button" && tButton) into tButtonSpot put "username=" & tUsername &"&ButtonSpot=" & tButtonSpot into tArgList post tArgList to URL "http://jpatten.on-rev.com/superdupergame/moveplayer.lc" put it --into tData else move cd button tTargetPlayer to the loc of cd button ("Button" && tButton) put urlEncode(tTargetPlayer) into tUsername put urlEncode("Button" && tButton) into tButtonSpot put "username=" & tUsername &"&ButtonSpot=" & tButtonSpot into tArgList post tArgList to URL "http://jpatten.on-rev.com/superdupergame/moveplayer.lc" put it --into tData end if end mouseUp On Aug 3, 2014, at 7:32 PM, JOHN PATTEN wrote: > Hello! > > I have 15 buttons on a card. They are each named Button 1, Button 2, Button 3, etc. I have another button that I am using as a game piece. It moves around the digital game board to the loc of each of the other 15 buttons. I am attempting to save the players information into a single line, in a text file, on the server. I?m using LC Server to manage the text file. Each line on the the text field holds the username, password, emailaddress, and player?s game piece button location. So a line in the text file would appear as: jpatten,password,jpatten at bmail.com,Button 2 > > My player piece moves across the digital game board from button loc to button loc, across 15 spots (button locs.) The LS Server writes the current players location by putting the name of the button it is over. So if the player is currently at Button 2, rolls a 3, their player moves to the loc of Button 5 and server writes Button 5 into the last item of the text entry for that player. So that players entry into text file becomes: jpatten,password,jpatten at bmail.com,Button 5. > > The problem is when I get to buttons (game board spots) 10-15. I can tell by examining the code that it is exchanging, say Button 9 for Button 12 in a move of 3, but when it puts Button 12 in for item 4 it only writes ?Button 1,? leaving out the 2 in twelve. If I go around the board, to single digits, the code works again. > > It is only when I replace the last item with a two digit number that it fails. It?s as if it won?t allow the replacement of the single digit last item, Button 9, with a two digit item, Button 12. It lops off the 2. > > Does anybody have an idea of what could be going wrong? I will put my server code in a reply to this email, otherwise I will be put into ?long message limbo? if I paste it to the bottom of this message. > > Thank you! > > John Patten > SUSD > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Mon Aug 4 00:21:50 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 4 Aug 2014 00:21:50 -0400 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: <53DEEF69.1070307@fourthworld.com> References: <53DEEF69.1070307@fourthworld.com> Message-ID: The problem we have with arrays is that they don't let us really use indirection, i.e. pointers/handles. It's a lot easier to write generic handlers for a screen full of controls with pointers/handles. "DO" is ok, but it's the same problem we've always had with "DO", namely it's slow. It's very, very flexible, but it's slow. I can also understand the newbie saying "but I can actually read and understand that code" (meaning, code that uses "do"). Indirection, references, recursion, etc. definitely can all make code harder to read and/or follow, and so it has to be documented well, and heavily. I am pleased that half of my DO's can come out, thanks to being able to evaluate expressions to indirectly obtain values. Now, if I could go the other way, too, it would be even better. On Sun, Aug 3, 2014 at 10:26 PM, Richard Gaskin wrote: > Mike Kerner wrote: > > And this won't be truly great until I can >> >> put "y" into x >> put 1 into value(x) >> >> because I can use this to get values but not set them, so I'm still stuck >> with >> >> do "put 1 into"&&x >> > > I'm all for inventing radical new programming paradigms, and maybe Open > Language may help with some of this, but what you have there is a common > need addressed through a different pattern: > > In essence it's a name-value pair, and whenever you have a set of > name-value pair in which the names can't be known in advance one of the > most common solutions is an associative array, which LC handles well: > > put 1 into tArray[x] > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for Desktop, Mobile, and Web > ____________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Mon Aug 4 01:48:36 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 03 Aug 2014 22:48:36 -0700 Subject: [TAO] value() to obtain pointer functionality In-Reply-To: References: Message-ID: <53DF1EB4.3040409@fourthworld.com> Mike Kerner wrote: > The problem we have with arrays is that they don't let us really use > indirection, i.e. pointers/handles. It's a lot easier to write generic > handlers for a screen full of controls with pointers/handles. "DO" is ok, > but it's the same problem we've always had with "DO", namely it's slow. > It's very, very flexible, but it's slow. Your post suggests an interesting angle: Before xTalk had associative arrays, I used to work really hard to be able to have arbitrary numbers of name-value pairs in structures that were gracefully usable. Then when arrays came along so many things became easy which had been difficult and slow before. So with the sorts of things you'd like to do with pointers, what might we imagine that would be to arrays what arrays are to "do" in terms of efficient paradigm shift for certain ranges of problems? Maybe there is indeed a very different way of working waiting to be discovered and put to use. Maybe it could become achievable within the time frame of Open Language.... -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From wwaldman at klht.org Mon Aug 4 01:49:06 2014 From: wwaldman at klht.org (William Waldman) Date: Mon, 04 Aug 2014 01:49:06 -0400 Subject: use-livecode Digest, Vol 131, Issue 5 Message-ID: Thanks for your message. I am out of the office this week. If you need immediate assistance, please email "help at klht.org".


This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and any attachments and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized. From hh at livecode.org Mon Aug 4 02:20:36 2014 From: hh at livecode.org (hh) Date: Mon, 4 Aug 2014 08:20:36 +0200 Subject: Missing digits when replacing single digit item with two digit item? Message-ID: <72B251E9-9992-44BC-835F-CF0569F1DD1D@livecode.org> Hi John, instead of decimals use true hex (has 15 "digits") OR, very effective, "dadaNumbers" (my youngest daughter named this) you may use e.g. n=48 or n=65 function dec2dada dc,n return numToByte(n+dc) end dec2dada function dada2dec hx,n return byteToNum(hx)-n end dada2dec From jacque at hyperactivesw.com Mon Aug 4 02:45:54 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 04 Aug 2014 01:45:54 -0500 Subject: OpenControl In-Reply-To: References: <53DE8DE4.5080307@hyperactivesw.com> Message-ID: <53DF2C22.40801@hyperactivesw.com> On 8/3/2014, 4:03 PM, Mats Wilstrand wrote: > I assume you're using a background grp. If so I have used the "focusOut" > message to fire some action in the self-contained grp when the card changes. > The "focusIn" message is not received by the group on crad change. This is > kind of counter intuitive imho but it works. That's a clever approach Mats. Unfortunately I need to set up the group based on the contents of the current card, and I don't think that's known when a focusOut message is sent. Since a frontscript isn't practical for this stack, and openBackground has the same limitations as openControl, I think I'll just put copies of the group on the cards that need it. There aren't too many, but it would have been better to share it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Mon Aug 4 02:57:10 2014 From: brahma at hindu.org (Brahmanathswami) Date: Sun, 03 Aug 2014 20:57:10 -1000 Subject: Missing digits when replacing single digit item with two digit item? In-Reply-To: <2571BBD5-803B-4390-9A3C-B18A359EDA38@me.com> References: <129377B7-15F0-4931-9DFE-DAFDD5FD16CD@me.com> <2571BBD5-803B-4390-9A3C-B18A359EDA38@me.com> Message-ID: <53DF2EC6.90403@hindu.org> John: I've had gremlins like this in the past where certain functions run before the "interior" expression. Or put another way: what is inside parentheses is not always evaluated as expected when running inside a function request. I have never been able to determine a recipe, but my solution is always the same: build the variable first *then* run it into your function: This could be creating wrong results (I lost your email with the button script put urlEncode ("Button" && tBotton) into tCurrentLocation Try this instead (two lines instead of 1) put ("Button" && tBotton) into tCurrentLocation put urlEncode(tCurrentLocation) into tUploadLatestPosition Why not must post a number? You don't really need "Button 12" all you need is "12" Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com JOHN PATTEN wrote: > Here?s the server script: > > > put $_POST["username"] into tUsername > put $_POST["ButtonSpot"] into tButtonSpot > put url("file:users.txt") into tUsersFile > > repeat for each line tLine in tUsersFile > if item 1 of tLine is tUserName then > put tButtonSpot into item 4 of tLine > --when it gets to spot 10 it is no allowing the 1s spot only the 10s spot, so button "Button 10" shows up as "Button 1," button 11, as Button 1 and so on... > put tLine into tLine > --put return& tLine after tUsersFile > --sort tUsersFile > --put tLine > put tUsersFile > end if > end repeat > > --else > > --put tUsersFile > --end if > --end repeat > --put tUsersFile > > --open file "users.txt" for write > --write tUsersFile to file "users.txt" > --close file "users.txt" > --put "Moving on!" > > ?> > On Aug 3, 2014, at 7:32 PM, JOHN PATTEN wrote: > >> Hello! >> >> I have 15 buttons on a card. They are each named Button 1, Button 2, Button 3, etc. I have another button that I am using as a game piece. It moves around the digital game board to the loc of each of the other 15 buttons. I am attempting to save the players information into a single line, in a text file, on the server. I?m using LC Server to manage the text file. Each line on the the text field holds the username, password, emailaddress, and player?s game piece button location. So a line in the text file would appear as: jpatten,password,jpatten at bmail.com,Button 2 >> >> My player piece moves across the digital game board from button loc to button loc, across 15 spots (button locs.) The LS Server writes the current players location by putting the name of the button it is over. So if the player is currently at Button 2, rolls a 3, their player moves to the loc of Button 5 and server writes Button 5 into the last item of the text entry for that player. So that players entry into text file becomes: jpatten,password,jpatten at bmail.com,Button 5. >> >> The problem is when I get to buttons (game board spots) 10-15. I can tell by examining the code that it is exchanging, say Button 9 for Button 12 in a move of 3, but when it puts Button 12 in for item 4 it only writes ?Button 1,? leaving out the 2 in twelve. If I go around the board, to single digits, the code works again. >> >> It is only when I replace the last item with a two digit number that it fails. It?s as if it won?t allow the replacement of the single digit last item, Button 9, with a two digit item, Button 12. It lops off the 2. >> >> Does anybody have an idea of what could be going wrong? I will put my server code in a reply to this email, otherwise I will be put into ?long message limbo? if I paste it to the bottom of this message. >> >> Thank you! >> >> John Patten >> SUSD >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at livecode.org Mon Aug 4 09:11:16 2014 From: hh at livecode.org (hh) Date: Mon, 4 Aug 2014 15:11:16 +0200 Subject: OpenControl Message-ID: <592161DA-E8AF-468D-9CA3-81AD96B4B976@livecode.org> From your answer I understand now what's the point. You have a (shared) backgroundGroup that should go on some or all cards and you wish to change some properties of the group or its members depending on the card you wish to go to. Right? For this situation I use the following. We have one (shared) background group G 1) Give the group a customProperty array f that has these properties as elements, say f[i] = the properties to set in group G before opening card i. 2) Place the group on EVERY card and add instead it's *visible property* to f[i]. 3) Do all changes in a preOpenCard handler in the group's script. For beginners who read this: Such a group is in the message path by default AFTER card and stack. The only condition is now, that this is message is not "trapped" (= writing a preopenstack handler there and not passing it before e.g. by card or stack). This works always for me and the group is "effectively" (in size) only once in the stack. This is somehow close to Mark's proposition (preOpenCard as frontscript, see above), but one doesn't have to control the message path as this uses a *backscript* by default. Please write us a short note here (or in the forum, past Craig's post, see Richmond's link above) if this has besides "trapping" some more limitations we don't know of. Hermann From sritcp at gmail.com Mon Aug 4 12:46:18 2014 From: sritcp at gmail.com (Sri) Date: Mon, 4 Aug 2014 09:46:18 -0700 (PDT) Subject: OpenControl In-Reply-To: <53DE8DE4.5080307@hyperactivesw.com> References: <53DE8DE4.5080307@hyperactivesw.com> Message-ID: <1407170778958-4681714.post@n4.nabble.com> Will this work? 1. Create an invisible button in your group named, say, Card Change. 2. On openControl, "Set the script" of the current card to add in the "on closeCard" handler the statement: send "mouseUp" to button "Card Change" of group "myGroup" 3. When the button received the mouseUp message on closeCard of the current card, a) it goes into a watch mode to see if the current card has changed; and b) when it changes, it resets the contents of the group, and c) modifies the closeCard of the new card. Just trying to exercise my brain cells! Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OpenControl-tp4681692p4681714.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Mon Aug 4 13:37:06 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 4 Aug 2014 10:37:06 -0700 Subject: OpenControl In-Reply-To: <592161DA-E8AF-468D-9CA3-81AD96B4B976@livecode.org> References: <592161DA-E8AF-468D-9CA3-81AD96B4B976@livecode.org> Message-ID: On Mon, Aug 4, 2014 at 6:11 AM, hh wrote: > Do all changes in a preOpenCard handler in the group's script. I believe the original post stated that no openxxx or preopenxxx handlers could be used. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From jacque at hyperactivesw.com Mon Aug 4 14:05:39 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 04 Aug 2014 13:05:39 -0500 Subject: OpenControl In-Reply-To: References: <592161DA-E8AF-468D-9CA3-81AD96B4B976@livecode.org> Message-ID: <53DFCB73.20302@hyperactivesw.com> On 8/4/2014, 12:37 PM, Peter Haworth wrote: > On Mon, Aug 4, 2014 at 6:11 AM, hh wrote: > >> Do all changes in a preOpenCard handler in the group's script. > > > I believe the original post stated that no openxxx or preopenxxx handlers > could be used. Right. Due to this particular setup, inserting (even more) scripts into front or back, or placing a group on every card whether it needs it or not, isn't practical. The system is already too large and the messaging too complex to tinker with at this late stage (going live in a week.) In this case it isn't a big deal to use separate copies of the group on each card that needs it because there are only a few. I was just curious if there was a quick, self-contained trick that would allow sharing the group. It's too late now to change the messaging that is already in place. There will be a demo of this project soon, for anyone who is curious about what I've been talking about for the last 20 months. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Mon Aug 4 14:08:55 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 04 Aug 2014 13:08:55 -0500 Subject: OpenControl In-Reply-To: <1407170778958-4681714.post@n4.nabble.com> References: <53DE8DE4.5080307@hyperactivesw.com> <1407170778958-4681714.post@n4.nabble.com> Message-ID: <53DFCC37.1050706@hyperactivesw.com> On 8/4/2014, 11:46 AM, Sri wrote: > Will this work? > > 1. Create an invisible button in your group named, say, Card Change. > > 2. On openControl, "Set the script" of the current card to add in the "on > closeCard" handler the statement: > send "mouseUp" to button "Card Change" of group "myGroup" > > 3. When the button received the mouseUp message on closeCard of the current > card, > a) it goes into a watch mode to see if the current card has changed; and > b) when it changes, it resets the contents of the group, and > c) modifies the closeCard of the new card. In some cases this might work, but I can't change the card scripts, even temporarily. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paulhibbert at mac.com Mon Aug 4 14:22:19 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Mon, 04 Aug 2014 11:22:19 -0700 Subject: OpenControl In-Reply-To: References: <592161DA-E8AF-468D-9CA3-81AD96B4B976@livecode.org> Message-ID: Jacque stated; "The group needs to be self-contained with no additional scripting anywhere else in the stack." But by putting a "preOpenCard" (or openCard) handler in the *Group's script* does mean that the group is still self contained. I was curious, so I tried a quick experiment and this does appear to work. Not too sure if it would solve Jacque's problem, but may be worth a try, looking at the manual I'd expect this just to work for user events, system events bypass controls and groups. Thanks to HH for suggesting it, I've learnt something new, I always expected preOpenCard or openCard handlers just go in card or stack scripts, I never considered using them in a group or a control to be valid. Paul On 2014-08-04, at 10:37 AM, Peter Haworth wrote: > On Mon, Aug 4, 2014 at 6:11 AM, hh wrote: > >> Do all changes in a preOpenCard handler in the group's script. > > > I believe the original post stated that no openxxx or preopenxxx handlers > could be used. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Aug 4 14:32:33 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 04 Aug 2014 13:32:33 -0500 Subject: OpenControl In-Reply-To: References: <592161DA-E8AF-468D-9CA3-81AD96B4B976@livecode.org> Message-ID: <53DFD1C1.8000203@hyperactivesw.com> On 8/4/2014, 1:22 PM, Paul Hibbert wrote: > But by putting a "preOpenCard" (or openCard) handler in the*Group's > script* does mean that the group is still self contained. I was > curious, so I tried a quick experiment and this does appear to work. > Not too sure if it would solve Jacque's problem, but may be worth a > try, looking at the manual I'd expect this just to work for user > events, system events bypass controls and groups. Yes, it would work in general. In this case I have a backscript that will change whatever the group has already done, so it needs its own message. That's why I was looking at the openControl/preOpenControl message, which the backscript doesn't handle. I think my setup is fairly unique; most of the suggestions posted here would work for most typical stacks. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at livecode.org Mon Aug 4 15:20:56 2014 From: hh at livecode.org (hh) Date: Mon, 4 Aug 2014 21:20:56 +0200 Subject: OpenControl Message-ID: <74192653-6316-4FE1-B52A-BED5C42D3F3A@livecode.org> Grande Dame Jacque, > Jacque wrote > ...The system is already too large and the messaging too complex to tinker with at this late stage ... Just let me add the following for all who reads this later on and are now a bit frustrated because we have learned a lot in this discussion. And just now you bring in criteria never mentioned before with this problem (rating indirectly all contributions until now as "garbage"): > Jacque wrote > ... And I was just curious if there was a quick, self-contained trick that would allow sharing the group ... This sounds as if there was no. There was one: The handler preopenCard suggested by Mark. The only thing to talk about is whether to put this in a frontscript or just put it in the group's script only. > Jacque wrote: > ... Due to this particular setup, inserting (even more) scripts into front or back, or placing a group on every card whether it needs it or not, isn't practical ... You know this and I insist on writing this down for 'beginners': The script of a shared backGround button hasn't to be placed in the backscript. It's by default inserted past card and stack. Every single background group gets each message sent to a card (even mouseDown) if it's passed by card and stack. And placing a group on every card is *once* a repeat loop of 3 lines and one line of 'checking' in the first line of the group's preopenCard handler to hide or show it or "pass preopenCard". In TOTAL: Typing effort < 2 minutes. Difference in size for use on one card and use on 1000 cards in total < 2 KByte. We know you are stressed and the following is not only from this reason not meant as an affront against you. It's simply a defence for other solutions presented here, especially Mark's (mine is a simple variant of) and Mat's (we learned from that 'focus' is *the* first message), that ARE more or less self-contained solutions or easily convertible to such. Take this advice from an old man: Please be cautious with your direct or indirect "rating": Your assessments have highest weight in the community. Don't make them careless. I really love your contributions on other webpages, here and in the forum. And your scripts are a source of pure gold to digg from. Thank you VERY much for that. Respectfully and kind regards, Hermann From hh at livecode.org Mon Aug 4 16:55:46 2014 From: hh at livecode.org (hh) Date: Mon, 4 Aug 2014 22:55:46 +0200 Subject: OpenControl Message-ID: <9DEF6774-69E5-4F52-AB83-022EC0E5C517@livecode.org> > Paul wrote: > I'd expect this just to work for user events, system events bypass > controls and groups. YES it works. You know I'm now nearly "experienced" (3/2 years with LC). But this was *very* soon for me one of the finest things in LC (and could even enhanced by using 'behavior'): Using the message path by a background group. If I have for example a stack without titlebar that has substacks and all have one to N cards. Then I make a backGround group and place this on every card of the mainstack -- invisible and containing an 16x16 image, nothing else. Then I write ONE dragHandler (the usual one) in the group and can now drag the stack window on every card and on every card of every substack that passes mouseDown (with setting the cursor to this image while dragging). And/or I write ONE mouseEnter handler in that group that receives (being visible or not) every mouseEnter of every object that passes mouseEnter (we had a similar thread recently in the forum). Try this in the groups script: -- Instead of msg and clipboard you could use a grouped (visible) field on mouseEnter if the tool is "pointer tool" and the optionkey is up then if the shiftkey is down then set clipboardData["text"] to the target put the internet date &": "& the target -- into fld "devInfo" end if pass mouseEnter end mouseEnter Now choose the pointer tool when going to scriptEditor. If you need the name of a control you wish to insert as target in a script then (read this with all parentheses or without all parentheses): 1) point the control with the cursor (with shiftKey down for copying) 2) hold (additionally) the optionKey down -- to 'fix' current info 3) move the cursor back over your script and release keys (and paste) To block this, handle mouseEnter in the main stack's script by not passing it, it's not required to touch the background group's script. Hermann From pete at lcsql.com Mon Aug 4 17:43:52 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 4 Aug 2014 14:43:52 -0700 Subject: Shift-tab Message-ID: It seems that the shift-tab key combination doesn't tab backwards in a field control as it does in other applications, although it does in a table control. Does anyone have any code to implement shift-tab they'd be willing to share? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From m.schonewille at economy-x-talk.com Mon Aug 4 18:02:22 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 05 Aug 2014 00:02:22 +0200 Subject: Shift-tab In-Reply-To: References: Message-ID: <53E002EE.8040407@economy-x-talk.com> Hi Pete, Create a new stack. Add 4 fields. Type tab to move the text insertion point to the next field, shift-tab to go to the previous field. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/4/2014 23:43, Peter Haworth wrote: > It seems that the shift-tab key combination doesn't tab backwards in a > field control as it does in other applications, although it does in a table > control. > > Does anyone have any code to implement shift-tab they'd be willing to share? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin From mwieder at ahsoftware.net Mon Aug 4 18:21:05 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 4 Aug 2014 15:21:05 -0700 Subject: Shift-tab In-Reply-To: <53E002EE.8040407@economy-x-talk.com> References: <53E002EE.8040407@economy-x-talk.com> Message-ID: <1101798839669.20140804152105@ahsoftware.net> Mark- Monday, August 4, 2014, 3:02:22 PM, you wrote: > Create a new stack. Add 4 fields. Type tab to move the text insertion > point to the next field, shift-tab to go to the previous field. Sorry, I can confirm that shift-tab does nothing. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From kaveh at rivervalleytechnologies.com Mon Aug 4 18:28:01 2014 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Mon, 4 Aug 2014 23:28:01 +0100 Subject: Shift-tab In-Reply-To: <1101798839669.20140804152105@ahsoftware.net> References: <53E002EE.8040407@economy-x-talk.com> <1101798839669.20140804152105@ahsoftware.net> Message-ID: On 4 August 2014 23:21, Mark Wieder wrote: > Mark- > > Monday, August 4, 2014, 3:02:22 PM, you wrote: > > > Create a new stack. Add 4 fields. Type tab to move the text insertion > > point to the next field, shift-tab to go to the previous field. > > Sorry, I can confirm that shift-tab does nothing. > > Works for me on Mac. Cycles backwards through flds. > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan River Valley Technologies @kaveh1000 +44 7771 824 111 kaveh at rivervalleytechnologies.com Please note new email ID From m.schonewille at economy-x-talk.com Mon Aug 4 19:54:44 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 05 Aug 2014 01:54:44 +0200 Subject: Shift-tab In-Reply-To: <1101798839669.20140804152105@ahsoftware.net> References: <53E002EE.8040407@economy-x-talk.com> <1101798839669.20140804152105@ahsoftware.net> Message-ID: <53E01D44.4000504@economy-x-talk.com> I've tested it on both Windows and Mac and it works on both platforms. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/5/2014 00:21, Mark Wieder wrote: > Mark- > > Monday, August 4, 2014, 3:02:22 PM, you wrote: > >> Create a new stack. Add 4 fields. Type tab to move the text insertion >> point to the next field, shift-tab to go to the previous field. > > Sorry, I can confirm that shift-tab does nothing. > From pete at lcsql.com Mon Aug 4 20:03:25 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 4 Aug 2014 17:03:25 -0700 Subject: Shift-tab In-Reply-To: References: <53E002EE.8040407@economy-x-talk.com> <1101798839669.20140804152105@ahsoftware.net> Message-ID: On Mon, Aug 4, 2014 at 3:28 PM, Kaveh Bazargan < kaveh at rivervalleytechnologies.com> wrote: > Works for me on Mac. Cycles backwards through flds. Yeah, but I want it to put the insertion point at the tab before its current position in the current field, not cycle through fields. I think Mark is confirming that's what doesn't work. I've almost got a script to handle this. I compare word 2 of the selectedChunk to the items of the tabstops to find which tab to go back to, that was easy. What I can't figure out is how to position the insertion point at that tab position. "select" won't do it because it works on character positions and tabstops are in pixels. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From mwieder at ahsoftware.net Mon Aug 4 20:04:42 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 4 Aug 2014 17:04:42 -0700 Subject: Shift-tab In-Reply-To: References: <53E002EE.8040407@economy-x-talk.com> <1101798839669.20140804152105@ahsoftware.net> Message-ID: <11805056934.20140804170442@ahsoftware.net> Kaveh- Monday, August 4, 2014, 3:28:01 PM, you wrote: > Works for me on Mac. Cycles backwards through flds. Interesting. Just had a chance to test this on OSX. Yep, it does indeed cycle backwards. Must be a mac thing. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From jacque at hyperactivesw.com Mon Aug 4 21:02:16 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 04 Aug 2014 20:02:16 -0500 Subject: OpenControl In-Reply-To: <74192653-6316-4FE1-B52A-BED5C42D3F3A@livecode.org> References: <74192653-6316-4FE1-B52A-BED5C42D3F3A@livecode.org> Message-ID: <53E02D18.2030901@hyperactivesw.com> On 8/4/2014, 2:20 PM, hh wrote: > Please be cautious with your direct or indirect "rating": Apologies if it sounded like I was giving a "rating." Your method, and the others, will work fine for most stacks. I only meant that in this particular case, it won't. I have a suite of hundreds of stacks with tens of thousands of cards. The stacks are created automatically by a building tool based on the contents of text files, and some cards require specific plugins I've written. The plugins need to work independently of the larger system. That's because there is a backscript which is the main heartbeat of the app, and it changes the state of every card in both openCard and preOpenCard handlers. Whatever a group sets up is likely to be undone if it uses any of those messages. That's why I need a message that isn't included in the backscript. The same thing would apply to a frontscript, which would change the group state first, and then the backscript would undo those changes. I didn't mean to be critical, just explanatory. As I said, any of the methods various people have suggested would be good solutions most of the time. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mwieder at ahsoftware.net Mon Aug 4 21:18:14 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 5 Aug 2014 01:18:14 +0000 (UTC) Subject: Shift-tab References: <53E002EE.8040407@economy-x-talk.com> <1101798839669.20140804152105@ahsoftware.net> <53E01D44.4000504@economy-x-talk.com> Message-ID: Mark Schonewille writes: > > I've tested it on both Windows and Mac and it works on both platforms. Doesn't work on linux and that's what counts :-P I'll file a bug report. No worries. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Mon Aug 4 21:19:56 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 5 Aug 2014 01:19:56 +0000 (UTC) Subject: Shift-tab References: <53E002EE.8040407@economy-x-talk.com> <1101798839669.20140804152105@ahsoftware.net> Message-ID: Peter Haworth writes: > > Yeah, but I want it to put the insertion point at the tab before its > current position in the current field, not cycle through fields. I think > Mark is confirming that's what doesn't work. I was actually confirming that shift-tab doesn't do *anything* on linux, but yeah... that's one of the things it doesn't do. -- Mark Wieder ahsoftware at gmail.com From pete at lcsql.com Mon Aug 4 22:19:14 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 4 Aug 2014 19:19:14 -0700 Subject: Shift-tab In-Reply-To: References: <53E002EE.8040407@economy-x-talk.com> <1101798839669.20140804152105@ahsoftware.net> <53E01D44.4000504@economy-x-talk.com> Message-ID: For some reason or other Mark S's posts aren't showing up in my mail app so I don't have the full text of the quote, so I'm not sure what "it works" is referring to. If it refers to moving to a different field and that doesn't work on Linux, certainly seems like a bug. But if it refers to what I want to achieve - moving backwards to the previous tab in the same field - then I'm confused because that's not what happens on my Mac. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Aug 4, 2014 at 6:18 PM, Mark Wieder wrote: > Mark Schonewille writes: > > > > > I've tested it on both Windows and Mac and it works on both platforms. > > Doesn't work on linux and that's what counts :-P > I'll file a bug report. No worries. > > -- > Mark Wieder > ahsoftware at gmail.com > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at livecode.org Mon Aug 4 22:29:32 2014 From: hh at livecode.org (hh) Date: Tue, 5 Aug 2014 04:29:32 +0200 Subject: Shift-tab Message-ID: Hi Pete and all, I have problems not only on Mac but on all platforms because my default system shortcuts block the combination "modifier+tab". This may be only changed in the engine, as Mark's naming this a "bug" indicates. Just because I'm curious: What's wrong with using arrow keys for switching between the "table-cells"? One has to press only one key and two more options (up+down) with this. Works for me on Mac+Linux+Win desktop. Hermann From pete at lcsql.com Mon Aug 4 22:59:55 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 4 Aug 2014 19:59:55 -0700 Subject: Shift-tab In-Reply-To: References: Message-ID: On Mon, Aug 4, 2014 at 7:29 PM, hh wrote: > What's wrong with using arrow keys for switching between the > "table-cells"? One has to press only one key and two more options (up+down) > with this. Works for me on Mac+Linux+Win desktop. I'm not using a table field, it's a scrolling list field. The arrow keys just move one character/line not to tab stops Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From mwieder at ahsoftware.net Mon Aug 4 23:06:13 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 5 Aug 2014 03:06:13 +0000 (UTC) Subject: on-rev borked Message-ID: nuff said. I'm using gmane to post this because email is screwed up and the cpanel page is taking on the order of ten minutes to load. Partially. The status page, of course is (when it finally loads) all green. Oh, one more thing... the server certificate (registered through the bottom-feeder of domain registrars) is going to expire in three weeks. While I'm at it, *why* do you now have to log into the livecode store page first and *then* log in to the on-rev server? And why does status-page/home not point to the status page? the one at support/status-page/home? -- Mark Wieder ahsoftware at gmail.com From sritcp at gmail.com Mon Aug 4 23:24:53 2014 From: sritcp at gmail.com (Sri) Date: Mon, 4 Aug 2014 20:24:53 -0700 (PDT) Subject: OpenControl In-Reply-To: <53E02D18.2030901@hyperactivesw.com> References: <53DE8DE4.5080307@hyperactivesw.com> <74192653-6316-4FE1-B52A-BED5C42D3F3A@livecode.org> <53E02D18.2030901@hyperactivesw.com> Message-ID: <1407209093854-4681736.post@n4.nabble.com> Hi Jacque: Wilstrand's method seems to work (with a little modification). In the following, oldCardID is a custom property of the group. The first focusOut is issued on closeCard. on focusOut local tID put the ID of this card into tID if tID is not the oldCardID of me then set the oldCardID of me to tID -- here, change the contents of the group, as necessary else send "focusOut" to me in 50 milliseconds end if end focusOut Let me know if this doesn't serve your purpose. I am just trying to learn from all you experts on this use group. Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OpenControl-tp4681692p4681736.html Sent from the Revolution - User mailing list archive at Nabble.com. From peterwawood at gmail.com Mon Aug 4 23:31:01 2014 From: peterwawood at gmail.com (Peter W A Wood) Date: Tue, 5 Aug 2014 11:31:01 +0800 Subject: on-rev borked References: Message-ID: <88CB989D-44CD-468A-A0D1-F560EA866142@gmail.com> Mark On 5 Aug 2014, at 11:06, Mark Wieder wrote: > nuff said. I'm using gmane to post this because email is screwed up and the > cpanel page is taking on the order of ten minutes to load. Partially. The > status page, of course is (when it finally loads) all green. The status page shows pancake under high load for me. Everything else is green. > While I'm at it, *why* do you now have to log into the livecode store page > first and *then* log in to the on-rev server? I log straight into Cpanel on the server using .on-rev.com:2083 Regards Peter From mwieder at ahsoftware.net Mon Aug 4 23:38:15 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 4 Aug 2014 20:38:15 -0700 Subject: on-rev borked In-Reply-To: <88CB989D-44CD-468A-A0D1-F560EA866142@gmail.com> References: <88CB989D-44CD-468A-A0D1-F560EA866142@gmail.com> Message-ID: <1331817870136.20140804203815@ahsoftware.net> Peter- Monday, August 4, 2014, 8:31:01 PM, you wrote: > The status page shows pancake under high load for me. Everything else is green. Yeah it's up again. >> While I'm at it, *why* do you now have to log into the livecode store page >> first and *then* log in to the on-rev server? > I log straight into Cpanel on the server using .on-rev.com:2083 That was taking ten minutes to load for me earlier. Just for fun, go to www.on-rev.com and try to log in. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From hh at livecode.org Mon Aug 4 23:48:53 2014 From: hh at livecode.org (hh) Date: Tue, 5 Aug 2014 05:48:53 +0200 Subject: OpenControl Message-ID: <4F1AAC17-4DD5-4BF1-B02F-C0C675E0B387@livecode.org> This explains a lot and solves the situation perfectly. But I didn't want you to apologize. This was one of the first things I noticed in this community, what you say is heard and has immense weight (even if it is sometimes 4.2% incorrect). There are impressive landmarks here (or in forum), to specify some: A "Did you think about this"-line of Craig, a regex-one-liner of Thierry, a "Hmmmmm"-line of Mark-W., a "little stack" of Bernd, a "Hi"-shortliner of Mark-Sch., a spikey line with two smilies of Klaus, a "FWIW" note of Richard, an opening "welcome" by Simon or a closing "nagging" by Richmond (I have to stop now or nobody will read to end). Your words are more than landmarks, rather seen like a monument in front of a train station. I think you should be *very* proud of this. And also, let me say this again, be very careful with this. > hh wrote: > > Please be cautious with your direct or indirect "rating": > > jacque wrote: > Apologies if it sounded like I was giving a "rating." Your method, and > the others, will work fine for most stacks. I only meant that in this > particular case, it won't. > > I have a suite of hundreds of stacks with tens of thousands of cards. > The stacks are created automatically by a building tool based on the > contents of text files, and some cards require specific plugins I've > written. The plugins need to work independently of the larger system. > > That's because there is a backscript which is the main heartbeat of the > app, and it changes the state of every card in both openCard and > preOpenCard handlers. Whatever a group sets up is likely to be undone if > it uses any of those messages. That's why I need a message that isn't > included in the backscript. The same thing would apply to a frontscript, > which would change the group state first, and then the backscript would > undo those changes. > > I didn't mean to be critical, just explanatory. As I said, any of the > methods various people have suggested would be good solutions most of > the time. From jacque at hyperactivesw.com Tue Aug 5 03:32:19 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 05 Aug 2014 02:32:19 -0500 Subject: OpenControl In-Reply-To: <1407209093854-4681736.post@n4.nabble.com> References: <53DE8DE4.5080307@hyperactivesw.com> <74192653-6316-4FE1-B52A-BED5C42D3F3A@livecode.org> <53E02D18.2030901@hyperactivesw.com> <1407209093854-4681736.post@n4.nabble.com> Message-ID: <53E08883.5080109@hyperactivesw.com> On 8/4/2014, 10:24 PM, Sri wrote: > Hi Jacque: > > Wilstrand's method seems to work (with a little modification). In the > following, oldCardID is a custom property of the group. The first focusOut > is issued on closeCard. > > on focusOut > local tID > put the ID of this card into tID > if tID is not the oldCardID of me then > set the oldCardID of me to tID > -- here, change the contents of the group, as necessary > else > send "focusOut" to me in 50 milliseconds > end if > end focusOut > > Let me know if this doesn't serve your purpose. I am just trying to learn > from all you experts on this use group. Very close. :) I can't set up the group until I arrive at the card, because the group needs to read some card properties before it changes. That said, I've realized that no background group will work at all. Any group that has background behavior is going to be affected by my backscript, regardless of what message it responds to. Which means I asked a silly question. The group works fine with openControl as long as it isn't a background group. But I'm glad you and Mat posted, I'm sure this technique will come in handy some time. I thought Mats idea was pretty clever. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Aug 5 03:39:13 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 05 Aug 2014 02:39:13 -0500 Subject: OpenControl In-Reply-To: <4F1AAC17-4DD5-4BF1-B02F-C0C675E0B387@livecode.org> References: <4F1AAC17-4DD5-4BF1-B02F-C0C675E0B387@livecode.org> Message-ID: <53E08A21.1030607@hyperactivesw.com> On 8/4/2014, 10:48 PM, hh wrote: > Your words are more than landmarks I'm very flattered, but I think you give me too much credit. There are some geniuses here on this list who know far more than I do, especially in niche areas where I have either no experience or no skills. You'll see who they are as you continue to read this list; many of them aren't in the forums. The only difference between them and me is probably that I talk more. ;) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bernd.niggemann at uni-wh.de Tue Aug 5 04:52:17 2014 From: bernd.niggemann at uni-wh.de (BNig) Date: Tue, 5 Aug 2014 01:52:17 -0700 (PDT) Subject: Shift-tab In-Reply-To: References: Message-ID: <1407228737906-4681742.post@n4.nabble.com> Hi Pete, in a field with tab-delimited data that is editable this works for me provided that there is an additional tab before the returns. I.e.: data tab data tab return data tab data tab return otherwise it will omit the last item of a line and jump to the first item of the next line. ----------------------------- on tabKey set the itemDelimiter to tab put the selectedChunk into tSelect put the number of items of char 1 to (word 2 of tSelect) of me into tItemNo if the shiftKey is down then select after item tItemNo - 1 of me else select after item tItemNo + 1 of me end if end tabKey ----------------------------- I not entirely sure that I got what you want, since a scrolling list field always selects the entire line. In an editable scrollilng field with tab delimited data above code would work. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Shift-tab-tp4681722p4681742.html Sent from the Revolution - User mailing list archive at Nabble.com. From wwaldman at klht.org Tue Aug 5 06:00:25 2014 From: wwaldman at klht.org (William Waldman) Date: Tue, 05 Aug 2014 06:00:25 -0400 Subject: use-livecode Digest, Vol 131, Issue 7 Message-ID: Thanks for your message. I am out of the office this week. If you need immediate assistance, please email "help at klht.org".


This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and any attachments and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized. From bernd.niggemann at uni-wh.de Tue Aug 5 06:02:56 2014 From: bernd.niggemann at uni-wh.de (BNig) Date: Tue, 5 Aug 2014 03:02:56 -0700 (PDT) Subject: Shift-tab In-Reply-To: <1407228737906-4681742.post@n4.nabble.com> References: <1407228737906-4681742.post@n4.nabble.com> Message-ID: <1407232976346-4681744.post@n4.nabble.com> Pete, in a scrolling editable field with columnar data delimited by tabs of the form data tab data return data tab data return i.e. no additional tab before the return the following code works for me for the tab key and shit-tab key to move from one item to the other (tested in 6.6.2, 6.7DP7 and 7.0DP8) ------------------------------------------------- on tabKey set the itemDelimiter to tab put the selectedChunk into tSelect put word 2 of tSelect into tIndex put the number of lines of char 1 to tIndex of me into tCurrLine put (the number of chars of line 1 to tCurrLine - 1 of me) + 1 into tChars put tIndex - tChars into tLineChar put the number of items of line tCurrLine of me into tNoItemsInLine put the number of items of char 1 to tLineChar of Line tCurrLine of me into tCurrItem if the shiftKey is down then if tCurrItem = 1 then if tCurrLine > 1 then select after item (the number of items of line tCurrLine - 1 of me) of line tCurrLine - 1 of me end if else select after item tCurrItem-1 of line tCurrLine of me end if else if tCurrItem = tNoItemsInLine then select after item 1 of line tCurrLine + 1 of me else select after item tCurrItem + 1 of line tCurrLine of me end if end if end tabKey -------------------------------------------- the difference of the two scripts has to do with how LC counts items across lines and within a line. I would rather not like to start a discussion about how items are counted... Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Shift-tab-tp4681722p4681744.html Sent from the Revolution - User mailing list archive at Nabble.com. From jbv at souslelogo.com Tue Aug 5 10:00:51 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 5 Aug 2014 17:00:51 +0300 Subject: Dumb XML library question In-Reply-To: <1407232976346-4681744.post@n4.nabble.com> References: <1407228737906-4681742.post@n4.nabble.com> <1407232976346-4681744.post@n4.nabble.com> Message-ID: Hi list When I have a tree such as the following one : name1 name2 name3 Is there a simple way to loop through the children of and get their respective contents ? Please correct me is I'm wrong, but it looks like all xml functions require the path to the child, which doesn't work in this case for the path person/aliases/name always leads to the first child... I found a workaround by sucessively deleting the 1st child and then getting the firstchildcontent, but that means more lines of code and destruction of parts of the tree... Thanks jbv From dave.cragg at lacscentre.co.uk Tue Aug 5 10:39:06 2014 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Tue, 5 Aug 2014 15:39:06 +0100 Subject: Dumb XML library question In-Reply-To: References: <1407228737906-4681742.post@n4.nabble.com> <1407232976346-4681744.post@n4.nabble.com> Message-ID: On 5 Aug 2014, at 15:00, jbv at souslelogo.com wrote: > Hi list > > When I have a tree such as the following one : > > > name1 > name2 > name3 > > > > Is there a simple way to loop through the children of > and get their respective contents ? > Please correct me is I'm wrong, but it looks like all xml functions > require the path to the child, which doesn't work in this case for > the path person/aliases/name always leads to the first child... > > I found a workaround by sucessively deleting the 1st child and > then getting the firstchildcontent, but that means more lines of > code and destruction of parts of the tree... There may be a better way, but using revXMLChildNames allows you get the child names with the index appended (e.g. name[1], name[2], etc.) put field 1 into tData //source of xml text put revXMLCreateTree(tData,true,true,false) into tID put revXMLChildNames(tID, "person/aliases/", cr, "name" ,true) into tNameNodes put "" into tOut repeat for each line tNodeName in tNameNodes put "person/aliases/" & tNodeName into tNode put revXMLNodeContents(tID, tNode) & cr after tOut end repeat put tOut into field 2 Cheers Dave Cragg From jbv at souslelogo.com Tue Aug 5 10:51:27 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 5 Aug 2014 17:51:27 +0300 Subject: Dumb XML library question In-Reply-To: References: <1407228737906-4681742.post@n4.nabble.com> <1407232976346-4681744.post@n4.nabble.com> Message-ID: <10233bf269d5f83f95261caf46e1b552.squirrel@185.8.104.234> Thanks Dave, I had noticed revXMLChildNames but I didn't know that the child tag followed by a number inside brackets could be used to form the path to a specific child... jbv > > On 5 Aug 2014, at 15:00, jbv at souslelogo.com wrote: > >> Hi list >> >> When I have a tree such as the following one : >> >> >> name1 >> name2 >> name3 >> >> >> >> Is there a simple way to loop through the children of >> and get their respective contents ? >> Please correct me is I'm wrong, but it looks like all xml functions >> require the path to the child, which doesn't work in this case for >> the path person/aliases/name always leads to the first child... >> >> I found a workaround by sucessively deleting the 1st child and >> then getting the firstchildcontent, but that means more lines of >> code and destruction of parts of the tree... > > > There may be a better way, but using revXMLChildNames allows you get the > child names with the index appended (e.g. name[1], name[2], etc.) > > put field 1 into tData //source of xml text > put revXMLCreateTree(tData,true,true,false) into tID > put revXMLChildNames(tID, "person/aliases/", cr, "name" ,true) into > tNameNodes > put "" into tOut > repeat for each line tNodeName in tNameNodes > put "person/aliases/" & tNodeName into tNode > put revXMLNodeContents(tID, tNode) & cr after tOut > end repeat > put tOut into field 2 > > Cheers > Dave Cragg > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Tue Aug 5 11:02:00 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 5 Aug 2014 18:02:00 +0300 Subject: Another dumb question Message-ID: <8e818e9c901888ce128074249564916d.squirrel@185.8.104.234> Hi again list, I am processing large xml files (from 190 Mb to 1.6 Gb) in order to extract nodes contents to be inserted in a DB, and then displayed in various types of web pages or svg graphs. Because of the files size, I proceed by successive chunks of 1000 lines. These data include a small portion of japanese, russian and arabic names & addresses, and the purpose is to keep everything identical all the way from xml extraction to DB to html & svg display. So I use "set the useUnicode to true" at the beginning of my main LC script, but how can I be sure that everything will work as expected ? When I save temporary files of the content of each successive portion of xml data, even in utf8, japanese chars are replaced by strings of garbage... Any help & advice will be much apreciated. Thanks in advance. jbv From ambassador at fourthworld.com Tue Aug 5 11:31:18 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 05 Aug 2014 08:31:18 -0700 Subject: "read...until " -- buffer size Message-ID: <53E0F8C6.2040909@fourthworld.com> The "read...until " form is wonderfully convenient, but very slow. It's so slow, in fact, that I've found I can write a few dozen lines of code to perform a functionally identical task at much greater speed. The algo I use I picked up from some old HyperCard article back in the day. In short, I read from disk into a buffer by a specified amount, then walk through the lines within the buffer in memory. When I reach the last item, which doesn't have a terminator, I read another batch from the file, appending my buffer, and repeat this process until I've completed my traversal of the file. While this has given me a satisfying speed bump well worth the time it took to write it, it occurs to me that it shouldn't be necessary at all. After all, it's not like "read...until " is reading only one byte at a time from disk; I haven't read that part of the source but I'd be surprised if it's not reading at least one block's worth in each pass (usually 4k, depending on the file system). So in essence, it would seem the current "read...until " algo in the engine is nearly identical to what I'm doing in script, with only one critical difference: the buffer size. Oddly enough, experimenting with different buffer sizes has yielded surprising results. At first I thought that minimizing disk access would be the primary boost, so I tried reading in 1 MB chunks but found far greater performance with much smaller amounts, even though it meant touching the disk more often. Ultimately, it seems the optimal buffer size in my experiments on one system was 128k; when reading smaller amounts the extra disk accesses take a toll, and when reading larger amounts it's also slower, perhaps due to malloc anomalies or the way LC uses malloc in that context. All this leaves me with a proposal: Should we consider adding an optional argument for "read...until " to specify the buffer size the engine will use? E.g.: read from file tMyFile until CR with buffer 128000 ...or: read from file tMyFile until CR for 128000 ...or if we're going to try to be more English-like about it: read from file tMyFile until CR for 128k Worth submitting as an enhancement request? Anyone here in a position to implement this themselves? And is there anyone here who happens to know the buffer size the engine currently uses for this? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mwieder at ahsoftware.net Tue Aug 5 11:54:49 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 5 Aug 2014 08:54:49 -0700 Subject: Dumb XML library question In-Reply-To: References: <1407228737906-4681742.post@n4.nabble.com> <1407232976346-4681744.post@n4.nabble.com> Message-ID: <971862063169.20140805085449@ahsoftware.net> Dave- Tuesday, August 5, 2014, 7:39:06 AM, you wrote: > There may be a better way, but using revXMLChildNames allows you > get the child names with the index appended (e.g. name[1], name[2], > etc.) You can also step through them with revXMLFirstChild and revXMLNextSibling. put field 1 into tData //source of xml text put revXMLCreateTree(tData,true,true,false) into tID put revXMLFirstChild(tID, "person/aliases") into tChild breakpoint if tChild is not empty then repeat until tChild is empty -- now you are pointing to a child node -- do something with the tChild contents put revXMLNextSibling(tID, tChild) into tChild end repeat end if -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From pete at lcsql.com Tue Aug 5 12:32:34 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 5 Aug 2014 09:32:34 -0700 Subject: Shift-tab In-Reply-To: <1407232976346-4681744.post@n4.nabble.com> References: <1407228737906-4681742.post@n4.nabble.com> <1407232976346-4681744.post@n4.nabble.com> Message-ID: Thanks Bernd, I had a feeling you'd respond to this one :-) My mistake on what type of field - it's a scrolling field not a scrolling list field. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Aug 5, 2014 at 3:02 AM, BNig wrote: > Pete, > > in a scrolling editable field with columnar data delimited by tabs of the > form > > data tab data return > data tab data return > > i.e. no additional tab before the return > > the following code works for me for the tab key and shit-tab key to move > from one item to the other (tested in 6.6.2, 6.7DP7 and 7.0DP8) > > ------------------------------------------------- > on tabKey > set the itemDelimiter to tab > put the selectedChunk into tSelect > put word 2 of tSelect into tIndex > put the number of lines of char 1 to tIndex of me into tCurrLine > put (the number of chars of line 1 to tCurrLine - 1 of me) + 1 into > tChars > put tIndex - tChars into tLineChar > put the number of items of line tCurrLine of me into tNoItemsInLine > put the number of items of char 1 to tLineChar of Line tCurrLine of me > into tCurrItem > > if the shiftKey is down then > if tCurrItem = 1 then > if tCurrLine > 1 then > select after item (the number of items of line tCurrLine - 1 of > me) of line tCurrLine - 1 of me > end if > else > select after item tCurrItem-1 of line tCurrLine of me > end if > else > if tCurrItem = tNoItemsInLine then > select after item 1 of line tCurrLine + 1 of me > else > select after item tCurrItem + 1 of line tCurrLine of me > end if > end if > end tabKey > -------------------------------------------- > the difference of the two scripts has to do with how LC counts items across > lines and within a line. > > I would rather not like to start a discussion about how items are > counted... > > Kind regards > Bernd > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Shift-tab-tp4681722p4681744.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Tue Aug 5 12:36:51 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 5 Aug 2014 09:36:51 -0700 Subject: Expressions as custom property names Message-ID: Starting a new thread on this. The bug I entered on this has been changed to an enhancement request with a comment from Mark Waddingham that it should be straightforward to implement expressions within parentheses but more investigation needed to see if it could have a broader scope than that. It's QCC report# 13086. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From dunbarx at aol.com Tue Aug 5 13:08:50 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 5 Aug 2014 13:08:50 -0400 (EDT) Subject: Problem with bounces. Message-ID: <8D17EE70FBB4263-8B4-327EF@webmail-va029.sysops.aol.com> I get this more and more. My account here is to be terminated due to too many bounces unless I reply to the eMail. This to confirm I am who I am, I suppose. Anyone else seeing this? Craig Newman From MikeKerner at roadrunner.com Tue Aug 5 13:09:03 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 5 Aug 2014 13:09:03 -0400 Subject: on-rev borked In-Reply-To: References: Message-ID: You realize that they're going to send Jillian Michaels after you, now, for calling them a "bottom feeder", right? On Mon, Aug 4, 2014 at 11:06 PM, Mark Wieder wrote: > nuff said. I'm using gmane to post this because email is screwed up and the > cpanel page is taking on the order of ten minutes to load. Partially. The > status page, of course is (when it finally loads) all green. > > Oh, one more thing... the server certificate (registered through the > bottom-feeder of domain registrars) is going to expire in three weeks. > > While I'm at it, *why* do you now have to log into the livecode store page > first and *then* log in to the on-rev server? > > And why does status-page/home not point to the status page? the one at > support/status-page/home? > > -- > Mark Wieder > ahsoftware at gmail.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From mwieder at ahsoftware.net Tue Aug 5 14:35:46 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 5 Aug 2014 11:35:46 -0700 Subject: on-rev borked In-Reply-To: References: Message-ID: <1691871719570.20140805113546@ahsoftware.net> Mike- Tuesday, August 5, 2014, 10:09:03 AM, you wrote: > You realize that they're going to send Jillian Michaels after you, now, for > calling them a "bottom feeder", right? OK - I googled it but I still don't get it. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From MikeKerner at roadrunner.com Tue Aug 5 14:39:24 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 5 Aug 2014 14:39:24 -0400 Subject: on-rev borked In-Reply-To: <1691871719570.20140805113546@ahsoftware.net> References: <1691871719570.20140805113546@ahsoftware.net> Message-ID: She's a GoDaddy spokesperson, and she's a badass personal trainer. On Tue, Aug 5, 2014 at 2:35 PM, Mark Wieder wrote: > Mike- > > Tuesday, August 5, 2014, 10:09:03 AM, you wrote: > > > You realize that they're going to send Jillian Michaels after you, now, > for > > calling them a "bottom feeder", right? > > OK - I googled it but I still don't get it. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From m.schonewille at economy-x-talk.com Tue Aug 5 14:50:03 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 05 Aug 2014 20:50:03 +0200 Subject: on-rev borked In-Reply-To: References: <1691871719570.20140805113546@ahsoftware.net> Message-ID: <53E1275B.3090906@economy-x-talk.com> Spokes person? I thought they just pay her to use her photo? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/5/2014 20:39, Mike Kerner wrote: > She's a GoDaddy spokesperson, and she's a badass personal trainer. > > > On Tue, Aug 5, 2014 at 2:35 PM, Mark Wieder wrote: > >> Mike- >> >> Tuesday, August 5, 2014, 10:09:03 AM, you wrote: >> >>> You realize that they're going to send Jillian Michaels after you, now, >> for >>> calling them a "bottom feeder", right? >> >> OK - I googled it but I still don't get it. >> >> -- >> -Mark Wieder >> ahsoftware at gmail.com >> >> This communication may be unlawfully collected and stored by the National >> Security Agency (NSA) in secret. The parties to this email do not >> consent to the retrieving or storing of this communication and any >> related metadata, as well as printing, copying, re-transmitting, >> disseminating, or otherwise using it. If you believe you have received >> this communication in error, please delete it immediately. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > From mwieder at ahsoftware.net Tue Aug 5 14:59:19 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 5 Aug 2014 11:59:19 -0700 Subject: on-rev borked In-Reply-To: References: <1691871719570.20140805113546@ahsoftware.net> Message-ID: <1831873132619.20140805115919@ahsoftware.net> Mike- Tuesday, August 5, 2014, 11:39:24 AM, you wrote: > She's a GoDaddy spokesperson, and she's a badass personal trainer. Ah. Thanks. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From jacque at hyperactivesw.com Tue Aug 5 15:46:34 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 05 Aug 2014 14:46:34 -0500 Subject: Problem with bounces. In-Reply-To: <8D17EE70FBB4263-8B4-327EF@webmail-va029.sysops.aol.com> References: <8D17EE70FBB4263-8B4-327EF@webmail-va029.sysops.aol.com> Message-ID: <53E1349A.1040800@hyperactivesw.com> On 8/5/2014, 12:08 PM, dunbarx at aol.com wrote: > I get this more and more. My account here is to be terminated due to > too many bounces unless I reply to the eMail. This to confirm I am > who I am, I suppose. Anyone else seeing this? No, but I'm betting it's your aol address. I had a client with an aol address and it bounced my emails to him constantly if there was even a hint of certain trigger words. Of course, their list is top secret so you don't know what sets it off, but it appears to be *very* sensitive. I got pretty frustrated trying to communicate with him. If there is a way for you to whitelist the mailing list, you should do it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dave.cragg at lacscentre.co.uk Tue Aug 5 16:20:11 2014 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Tue, 5 Aug 2014 21:20:11 +0100 Subject: Dumb XML library question In-Reply-To: <971862063169.20140805085449@ahsoftware.net> References: <1407228737906-4681742.post@n4.nabble.com> <1407232976346-4681744.post@n4.nabble.com> <971862063169.20140805085449@ahsoftware.net> Message-ID: <4C0495B6-0409-4689-9AF9-9FC73E268A15@lacscentre.co.uk> On 5 Aug 2014, at 16:54, Mark Wieder wrote: > You can also step through them with revXMLFirstChild and > revXMLNextSibling. > > put field 1 into tData //source of xml text > put revXMLCreateTree(tData,true,true,false) into tID > put revXMLFirstChild(tID, "person/aliases") into tChild > breakpoint > if tChild is not empty then > repeat until tChild is empty > -- now you are pointing to a child node > -- do something with the tChild contents > put revXMLNextSibling(tID, tChild) into tChild > end repeat > end if Thanks Mark, I noticed that with "revXMLChildNames", you can filter on which child nodes you want to get. So if there were other nodes as siblings of "name", using "revXMLChildNames" might be more useful. But for a more general walk through the child nodes, your approach looks better. Cheers Dave From benr_mc at cogapp.com Tue Aug 5 16:58:07 2014 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 05 Aug 2014 21:58:07 +0100 Subject: Problem with bounces. In-Reply-To: <8D17EE70FBB4263-8B4-327EF@webmail-va029.sysops.aol.com> References: <8D17EE70FBB4263-8B4-327EF@webmail-va029.sysops.aol.com> Message-ID: <53E1455F.5090709@cogapp.com> On 05/08/2014 18:08, dunbarx at aol.com wrote: > I get this more and more. My account here is to be terminated due to too many bounces unless I reply to the eMail. This to confirm I am who I am, I suppose. Anyone else seeing this? Quite likely to be the DMARC problem, a change of policy by Yahoo and AOL which is driving many mailing list adminstrators crazy, see explanation here: http://tidbits.com/article/14843 From alex at tweedly.net Tue Aug 5 17:16:55 2014 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 05 Aug 2014 22:16:55 +0100 Subject: "read...until " -- buffer size In-Reply-To: <53E0F8C6.2040909@fourthworld.com> References: <53E0F8C6.2040909@fourthworld.com> Message-ID: <53E149C7.7040504@tweedly.net> Summary : Richard said : > Should we consider adding an optional argument for "read...until > " to specify the buffer size the engine will use? IMHO, No. LC is supposed to be an easy to use language/system. I don't need to deal with malloc/free, I'm not vulnerable to memory leaks, I don't need to fiddle with unnecessary detail - LC deals with it for me. So rather than this "enhancement request", I'd say this would be a "report of a bug due to unacceptable performance", and it should just say something like "Make this work at acceptable speed so it can be used" :-). Even if you or I were able and willing to experiment with different buffer sizes, how could we choose suitable sizes for all the different OSes, disk setups, etc. that users might finish up using ? I wonder if the problem is some generality in the string search for the termination ? Shouldn't be, really - but if it is, I guess it would be OK to have a more restricted form, such as read lines from file ... if that would get better performance. But I would definitely want to make it easier to get good results, not harder :-) -- Alex. On 05/08/2014 16:31, Richard Gaskin wrote: > The "read...until " form is wonderfully convenient, but very > slow. > > It's so slow, in fact, that I've found I can write a few dozen lines > of code to perform a functionally identical task at much greater speed. > > The algo I use I picked up from some old HyperCard article back in the > day. In short, I read from disk into a buffer by a specified amount, > then walk through the lines within the buffer in memory. When I reach > the last item, which doesn't have a terminator, I read another batch > from the file, appending my buffer, and repeat this process until I've > completed my traversal of the file. > > While this has given me a satisfying speed bump well worth the time it > took to write it, it occurs to me that it shouldn't be necessary at all. > > After all, it's not like "read...until " is reading only one > byte at a time from disk; I haven't read that part of the source but > I'd be surprised if it's not reading at least one block's worth in > each pass (usually 4k, depending on the file system). > > So in essence, it would seem the current "read...until " algo > in the engine is nearly identical to what I'm doing in script, with > only one critical difference: the buffer size. > > Oddly enough, experimenting with different buffer sizes has yielded > surprising results. At first I thought that minimizing disk access > would be the primary boost, so I tried reading in 1 MB chunks but > found far greater performance with much smaller amounts, even though > it meant touching the disk more often. Ultimately, it seems the > optimal buffer size in my experiments on one system was 128k; when > reading smaller amounts the extra disk accesses take a toll, and when > reading larger amounts it's also slower, perhaps due to malloc > anomalies or the way LC uses malloc in that context. > > All this leaves me with a proposal: > > Should we consider adding an optional argument for "read...until > " to specify the buffer size the engine will use? > > E.g.: > > read from file tMyFile until CR with buffer 128000 > > ...or: > > read from file tMyFile until CR for 128000 > > ...or if we're going to try to be more English-like about it: > > read from file tMyFile until CR for 128k > > > Worth submitting as an enhancement request? > > Anyone here in a position to implement this themselves? > > And is there anyone here who happens to know the buffer size the > engine currently uses for this? > From stephenREVOLUTION2 at barncard.com Tue Aug 5 18:49:10 2014 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 5 Aug 2014 15:49:10 -0700 Subject: "read...until " -- buffer size In-Reply-To: <53E149C7.7040504@tweedly.net> References: <53E0F8C6.2040909@fourthworld.com> <53E149C7.7040504@tweedly.net> Message-ID: On Tue, Aug 5, 2014 at 2:16 PM, Alex Tweedly wrote: > LC is supposed to be an easy to use language/system. I don't see the problem if there's a default as usual. Same thing with 'pointers' - as long as 'reasonable' defaults are in place and it doesn't bog down anything, win-win. *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* From sundown at pacifier.com Tue Aug 5 21:32:51 2014 From: sundown at pacifier.com (JB) Date: Tue, 5 Aug 2014 18:32:51 -0700 Subject: Cryptograhy Message-ID: <657E56BE-A48D-42F7-9315-8BEAF8B6ECA6@pacifier.com> I was testing base64 and the Pack function written by Richard Gaskin and after packing and unpacking the data appears the same but does not properly write to a file. For instance I have a image that I read as a binary and put the info in a field. Then I base64Encode it and put the date into a field. I am able to take the encoded data and use base64Decode which will decode it to its original form and I am able to write that data to a file and I have the original image. When I use the Pack function it does the same thing but adds a password if you want it and encrypts it. After I unPack the date the date looks the same as the original but when I write the date to a file I end up with a corrupted file and cannot view the image. Does anyone know why the file gets corrupted? I have the same problem when I use base64Encode and convert the encoded ascii data to hex and back to ascii then decode it. The data looks the same but I end up with a corrupted file. -=>JB<=- From ambassador at fourthworld.com Tue Aug 5 21:47:23 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 05 Aug 2014 18:47:23 -0700 Subject: Cryptograhy In-Reply-To: <657E56BE-A48D-42F7-9315-8BEAF8B6ECA6@pacifier.com> References: <657E56BE-A48D-42F7-9315-8BEAF8B6ECA6@pacifier.com> Message-ID: <53E1892B.4020403@fourthworld.com> JB wrote: > I was testing base64 and the Pack function > written by Richard Gaskin and after packing > and unpacking the data appears the same > but does not properly write to a file. > > For instance I have a image that I read as a binary > and put the info in a field. Then I base64Encode it > and put the date into a field. I am able to take the > encoded data and use base64Decode which will > decode it to its original form and I am able to write > that data to a file and I have the original image. > > When I use the Pack function it does the same thing > but adds a password if you want it and encrypts it. > > After I unPack the date the date looks the same as > the original but when I write the date to a file I end > up with a corrupted file and cannot view the image. > > Does anyone know why the file gets corrupted? I > have the same problem when I use base64Encode > and convert the encoded ascii data to hex and back > to ascii then decode it. The data looks the same but > I end up with a corrupted file. fwPack/fwUnpack were written as quick workarounds for simple encryption long before LC provided industrial-strength encryption. While still useful in some contexts (I use it often for simple masking), for true encryption I use LC's built-in encrypt/decrypt commands. As for how your files is corrupted it's hard to say without seeing the code, but often what happens with seemingly corrupted files is that binary data is being written without specifying a binary write form. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Tue Aug 5 22:03:53 2014 From: sundown at pacifier.com (JB) Date: Tue, 5 Aug 2014 19:03:53 -0700 Subject: Cryptograhy In-Reply-To: <53E1892B.4020403@fourthworld.com> References: <657E56BE-A48D-42F7-9315-8BEAF8B6ECA6@pacifier.com> <53E1892B.4020403@fourthworld.com> Message-ID: <04948C9B-F4E9-4DE6-89F8-A1C81A12EB30@pacifier.com> Thanks for the quick response and info. I am using this code to write the file open file filePath for binary write put fld id 1004 into theData write theData to file filePath and it writes the data properly if all I do is base64encode/decode. When the encoded data is altered and then put back to what appears to be the same and decoded it ends up corrupted after decoding it. I can take a Hex file and convert it to ascii or binary and back again and it will write the image properly. But when I convert the ascii from base64encode it ends up corrupted. I have used regex to remove NULLS and CRLF but that does not solve the problem. I can send you the code but the code that I am testing at the moment is fwPack. Are you able to use the code to pack and unpack a image and write it to disk? thanks again, -=>JB<=- On Aug 5, 2014, at 6:47 PM, Richard Gaskin wrote: > JB wrote: >> I was testing base64 and the Pack function >> written by Richard Gaskin and after packing >> and unpacking the data appears the same >> but does not properly write to a file. >> >> For instance I have a image that I read as a binary >> and put the info in a field. Then I base64Encode it >> and put the date into a field. I am able to take the >> encoded data and use base64Decode which will >> decode it to its original form and I am able to write >> that data to a file and I have the original image. >> >> When I use the Pack function it does the same thing >> but adds a password if you want it and encrypts it. >> >> After I unPack the date the date looks the same as >> the original but when I write the date to a file I end >> up with a corrupted file and cannot view the image. >> >> Does anyone know why the file gets corrupted? I >> have the same problem when I use base64Encode >> and convert the encoded ascii data to hex and back >> to ascii then decode it. The data looks the same but >> I end up with a corrupted file. > > fwPack/fwUnpack were written as quick workarounds for simple encryption long before LC provided industrial-strength encryption. While still useful in some contexts (I use it often for simple masking), for true encryption I use LC's built-in encrypt/decrypt commands. > > As for how your files is corrupted it's hard to say without seeing the code, but often what happens with seemingly corrupted files is that binary data is being written without specifying a binary write form. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Aug 5 23:07:17 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 05 Aug 2014 20:07:17 -0700 Subject: Cryptograhy In-Reply-To: <04948C9B-F4E9-4DE6-89F8-A1C81A12EB30@pacifier.com> References: <04948C9B-F4E9-4DE6-89F8-A1C81A12EB30@pacifier.com> Message-ID: <53E19BE5.5040203@fourthworld.com> BJ wrote: > Are you able to use the code to pack and unpack > a image and write it to disk? Running this code here and selecting a JPEG file it seems to work well: on mouseUp answer file "Select a file:" if it is empty then exit to top put url ("binfile:"& it ) into tData put fwPack(tData, "bob") into tData put fwUnpack(tData, "bob") into tData put tData into url ("binfile:"& \ specialFolderPath("desktop")&"/testfile.jpg") end mouseUp I wasn't able to follow your description: since fwPack already uses base64, what else are you doing in your code that would require you to use base64 separately? -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Tue Aug 5 23:27:30 2014 From: sundown at pacifier.com (JB) Date: Tue, 5 Aug 2014 20:27:30 -0700 Subject: Cryptograhy In-Reply-To: <53E19BE5.5040203@fourthworld.com> References: <04948C9B-F4E9-4DE6-89F8-A1C81A12EB30@pacifier.com> <53E19BE5.5040203@fourthworld.com> Message-ID: <61E71E48-7C40-46A2-9ABC-FE28A18B9DEF@pacifier.com> I just did a compare of both files and there was nothing different at all. Then your answer included a better file open and write which included url and special folder path. Thank you very much for the help!!!! Not to be mean but my initials are actually JB not BJ. I know I made a lot of mistakes with the word data being date. Thanks again for the help I appracieat if very much. John Balgenorth On Aug 5, 2014, at 8:07 PM, Richard Gaskin wrote: > BJ wrote: > > > Are you able to use the code to pack and unpack > > a image and write it to disk? > > Running this code here and selecting a JPEG file it seems to work well: > > on mouseUp > answer file "Select a file:" > if it is empty then exit to top > put url ("binfile:"& it ) into tData > put fwPack(tData, "bob") into tData > put fwUnpack(tData, "bob") into tData > put tData into url ("binfile:"& \ > specialFolderPath("desktop")&"/testfile.jpg") > end mouseUp > > > I wasn't able to follow your description: since fwPack already uses base64, what else are you doing in your code that would require you to use base64 separately? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for Desktop, Mobile, and Web > ____________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Tue Aug 5 23:53:17 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 6 Aug 2014 11:53:17 +0800 Subject: "read...until " -- buffer size In-Reply-To: <53E149C7.7040504@tweedly.net> References: <53E0F8C6.2040909@fourthworld.com> <53E149C7.7040504@tweedly.net> Message-ID: On Wed, Aug 6, 2014 at 5:16 AM, Alex Tweedly wrote: > > LC is supposed to be an easy to use language/system.... > "report of a bug due to unacceptable performance", > and it should just say something like "Make this work at acceptable speed so > it can be used" :-). I tend to agree with Alex on this one, but if the route cause is buffer size, and it's discovered that it's currently optimised for the 400KB Floppies of the HyperCard days then I'd suggest the solution is not to manually set the buffer size but to have LC find the optimum for you. With the current variety of disk sizes, proportion of disk empty, rpm and even if it's mechanical or SSD, what ever you discover to be the optimum on your machine is unlikely to be the optimum on Richmond's heroic G3 tray loading iMac running 10.3. I'd even suggest taht whatever you find is the optimum today, may not be the optimum in a year. I've bench tested many HDs and there seems to be quite a variety of factors that determine the file size that achieves the fastest read/write times, and quite a variety in those file sizes, so I'm sure whether it's buffer size, something else, or a combinateion, the same would be true for 'read from file'. Wouldn't it be better if you could, in an openStack or similar: get maxReadSpeed() --runs a suite of tests to determine the settings that achieves maximum read from file speed. --then sets these as defaults which will be used by read (and other?) functions --only needs to run once --automatically reset to pre-LC settings when you Quit LC And from then on use the standard read functions. So a bug report to fix the current speed, then if it's found that speed improvements can be had by adjusting system/LC internal settings, an enhancement request for an LC function that would determine and set these as default. This would ensure whether you're running a nearly full 250GB 5400rpm HD or a basically empty 750GB SSD, ' read from file tMyFile until CR' will work faster than anything you can mangle using multiple lines of LC code. From ambassador at fourthworld.com Tue Aug 5 23:57:51 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 05 Aug 2014 20:57:51 -0700 Subject: Cryptograhy In-Reply-To: <61E71E48-7C40-46A2-9ABC-FE28A18B9DEF@pacifier.com> References: <61E71E48-7C40-46A2-9ABC-FE28A18B9DEF@pacifier.com> Message-ID: <53E1A7BF.5080303@fourthworld.com> Glad that worked out. Apologies for the typo; I was on an experimental system with all manner of oddities to contend with ( beyond my normal bad spelling ), -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Wed Aug 6 00:03:08 2014 From: sundown at pacifier.com (JB) Date: Tue, 5 Aug 2014 21:03:08 -0700 Subject: Cryptograhy In-Reply-To: <53E1A7BF.5080303@fourthworld.com> References: <61E71E48-7C40-46A2-9ABC-FE28A18B9DEF@pacifier.com> <53E1A7BF.5080303@fourthworld.com> Message-ID: <67F93711-BDE1-4D51-B069-CAC4FF0D51A3@pacifier.com> Not a problem. I can?t even begin to tell you how much this has helped me. I am working on a project that I wanted to use base64 on instead of accessing a line tool command and as you can see I was having problems. Your code fixed it and now I do not need to use the command line. John Balgenorth On Aug 5, 2014, at 8:57 PM, Richard Gaskin wrote: > Glad that worked out. > > Apologies for the typo; I was on an experimental system with all manner of oddities to contend with ( beyond my normal bad spelling ), > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for Desktop, Mobile, and Web > ____________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Wed Aug 6 00:30:52 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 6 Aug 2014 12:30:52 +0800 Subject: Problem with bounces. In-Reply-To: <8D17EE70FBB4263-8B4-327EF@webmail-va029.sysops.aol.com> References: <8D17EE70FBB4263-8B4-327EF@webmail-va029.sysops.aol.com> Message-ID: As a side note, I think >75% of your emails end up in my Gmail SPAM folder. Gmail is normally pretty good, I occasionally get other use-livecode List emails in my SPAM folder, but over time Gmail seems to learn and they eventually end up where they should. Not so with yours. This email for instance, was in my SPAM folder. On Wed, Aug 6, 2014 at 1:08 AM, wrote: > I get this more and more. My account here is to be terminated due to too many bounces unless I reply to the eMail. This to confirm I am who I am, I suppose. Anyone else seeing this? > > > Craig Newman > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From larry at significantplanet.org Wed Aug 6 00:37:36 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Tue, 5 Aug 2014 22:37:36 -0600 Subject: sending data somehow... Message-ID: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> I read the following lesson: http://lessons.runrev.com/m/4071/l/13197-how-do-i-create-an-html-e-mail Supposedly this only works if Thunderbird is the default email client. Does anyone know if there is a way to send an email from a stack if Thunderbird is NOT the default email client? ACTUALLY, what I want to do is this: create some data in a stack send that data (by email or whatever) to another person who has a stack that imports the data and makes use of it. Can that be done? TIA Larry From jacque at hyperactivesw.com Wed Aug 6 02:02:21 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 06 Aug 2014 01:02:21 -0500 Subject: Problem with bounces. In-Reply-To: <53E1455F.5090709@cogapp.com> References: <8D17EE70FBB4263-8B4-327EF@webmail-va029.sysops.aol.com> <53E1455F.5090709@cogapp.com> Message-ID: <53E1C4ED.4080407@hyperactivesw.com> On 8/5/2014, 3:58 PM, Ben Rubinstein wrote: > > Quite likely to be the DMARC problem, a change of policy by Yahoo and > AOL which is driving many mailing list adminstrators crazy, see > explanation here: > http://tidbits.com/article/14843 That's pretty interesting, I had no idea. So theoretically Craig could bump all of us off this list. We need to be extra nice to him now. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From admin at FlexibleLearning.com Wed Aug 6 02:19:43 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Wed, 6 Aug 2014 07:19:43 +0100 Subject: "read...until " -- buffer size Message-ID: <002b01cfb13e$6a201590$3e6040b0$@FlexibleLearning.com> Kay C Lan wrote: > On Wed, Aug 6, 2014 at 5:16 AM, Alex Tweedly wrote: > > > LC is supposed to be an easy to use language/system.... > > > > "report of a bug due to unacceptable performance", and it > > should just say something like "Make this work at acceptable speed > > so it can be used" :-). > > I tend to agree with Alex on this one, but if the route cause is > buffer size, and it's discovered that it's currently optimised for the > 400KB Floppies of the HyperCard days then I'd suggest the solution is > not to manually set the buffer size but to have LC find the optimum > for you. > > With the current variety of disk sizes, proportion of disk empty, rpm > and even if it's mechanical or SSD, what ever you discover to be the > optimum on your machine is unlikely to be the optimum on Richmond's > heroic G3 tray loading iMac running 10.3. I'd even suggest taht > whatever you find is the optimum today, may not be the optimum in a > year. I've bench tested many HDs and there seems to be quite a variety > of factors that determine the file size that achieves the fastest > read/write times, and quite a variety in those file sizes, so I'm sure > whether it's buffer size, something else, or a combinateion, the same > would be true for 'read from file'. > > Wouldn't it be better if you could, in an openStack or similar: > > get maxReadSpeed() > --runs a suite of tests to determine the settings that achieves > maximum read from file speed. > --then sets these as defaults which will be used by read (and other?) > functions > --only needs to run once > --automatically reset to pre-LC settings when you Quit LC > > And from then on use the standard read functions. > > So a bug report to fix the current speed, then if it's found that > speed improvements can be had by adjusting system/LC internal > settings, an enhancement request for an LC function that would > determine and set these as default. This would ensure whether you're > running a nearly full 250GB 5400rpm HD or a basically empty 750GB SSD, > ' read from file tMyFile until CR' will work faster than anything you > can mangle using multiple lines of LC code. Nice one, Kay... One step further: Why not automatically "maxReadSpeed()" as part of the LC's startup routine? Richard gets his buffer size, Alex gets his simplicity, and you can have the kudos :) Hugh Senior FLCo From hello at simonsmith.co Wed Aug 6 03:11:05 2014 From: hello at simonsmith.co (Simon Smith) Date: Wed, 6 Aug 2014 09:11:05 +0200 Subject: sending data somehow... In-Reply-To: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> Message-ID: Hi Larry Take a look at the SMTP stack on http://www.troz.net/rev/index.irev?category=All I have used http://commandlinesendmail.blogspot.com/ though in the past (windows only) Simon On Wed, Aug 6, 2014 at 6:37 AM, wrote: > I read the following lesson: > http://lessons.runrev.com/m/4071/l/13197-how-do-i-create-an-html-e-mail > > Supposedly this only works if Thunderbird is the default email client. > > Does anyone know if there is a way to send an email from a stack if > Thunderbird is NOT the default email client? > > > ACTUALLY, what I want to do is this: > create some data in a stack > send that data (by email or whatever) to another person who has a stack > that imports the data and makes use of it. > > Can that be done? > > TIA > Larry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Wed Aug 6 04:24:55 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 6 Aug 2014 16:24:55 +0800 Subject: "read...until " -- buffer size In-Reply-To: <002b01cfb13e$6a201590$3e6040b0$@FlexibleLearning.com> References: <002b01cfb13e$6a201590$3e6040b0$@FlexibleLearning.com> Message-ID: On Wed, Aug 6, 2014 at 2:19 PM, FlexibleLearning.com wrote: One step further: Why not automatically "maxReadSpeed()" as > part of the LC's startup routine? I thought of that, but not everyone needs blinding read speed and I could imagine that the tests to determine the fastest combination of settings could take a couple of seconds; and certainly long enough to be noticeable. So that's why I'd leave it to be manually run and include a note with the open file for read Dictionary entry (and any other functions that my benefit from faster read/write access) that if repeated reading from Disk is going to be a big part of your app, a few seconds at the beginning running maxReadSpeed() could save a whole lot of time when you really need to crunch data. From wwaldman at klht.org Wed Aug 6 06:00:25 2014 From: wwaldman at klht.org (William Waldman) Date: Wed, 06 Aug 2014 06:00:25 -0400 Subject: use-livecode Digest, Vol 131, Issue 9 Message-ID: Thanks for your message. I am out of the office this week. If you need immediate assistance, please email "help at klht.org".


This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and any attachments and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized. From hh at livecode.org Wed Aug 6 06:36:00 2014 From: hh at livecode.org (hh) Date: Wed, 6 Aug 2014 12:36:00 +0200 Subject: OpenControl Message-ID: <5FEF36BD-A4CC-4D2D-B7B8-8309EC729AFE@livecode.org> jacque wrote: > There are some geniuses here on this list who know far more than > I do, especially in niche areas where I have either no experience > or no skills. Certainly there are some geniuses here, probably I know most (I read this year's archives last week). But there are also some who believe they are genius and being immune to feedback would others also make believe this. I'm well exercised in bluff detection, one hasn't to be genius for that. And you never bluff, that's why you have this good reputation. From larry at significantplanet.org Wed Aug 6 10:01:15 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Wed, 6 Aug 2014 08:01:15 -0600 Subject: sending data somehow... References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> Message-ID: Hi Simon, Thanks - I will look into those links. Larry ----- Original Message ----- From: "Simon Smith" To: "How to use LiveCode" Sent: Wednesday, August 06, 2014 1:11 AM Subject: Re: sending data somehow... > Hi Larry > > Take a look at the SMTP stack on > http://www.troz.net/rev/index.irev?category=All > > I have used http://commandlinesendmail.blogspot.com/ though in the past > (windows only) > > Simon > > > On Wed, Aug 6, 2014 at 6:37 AM, wrote: > >> I read the following lesson: >> http://lessons.runrev.com/m/4071/l/13197-how-do-i-create-an-html-e-mail >> >> Supposedly this only works if Thunderbird is the default email client. >> >> Does anyone know if there is a way to send an email from a stack if >> Thunderbird is NOT the default email client? >> >> >> ACTUALLY, what I want to do is this: >> create some data in a stack >> send that data (by email or whatever) to another person who has a stack >> that imports the data and makes use of it. >> >> Can that be done? >> >> TIA >> Larry >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skip at magicgate.com Wed Aug 6 10:37:53 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Wed, 6 Aug 2014 10:37:53 -0400 Subject: sending data somehow... In-Reply-To: References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> Message-ID: In Windows, I also use a VBScript technique that sends stuff out through my Outlook client without any interaction. Just a thought if you want to go down that route.... SKIP On Wed, Aug 6, 2014 at 10:01 AM, wrote: > Hi Simon, > Thanks - I will look into those links. > Larry > > ----- Original Message ----- From: "Simon Smith" > To: "How to use LiveCode" > Sent: Wednesday, August 06, 2014 1:11 AM > Subject: Re: sending data somehow... > > > > Hi Larry >> >> Take a look at the SMTP stack on >> http://www.troz.net/rev/index.irev?category=All >> >> I have used http://commandlinesendmail.blogspot.com/ though in the past >> (windows only) >> >> Simon >> >> >> On Wed, Aug 6, 2014 at 6:37 AM, wrote: >> >> I read the following lesson: >>> http://lessons.runrev.com/m/4071/l/13197-how-do-i-create-an-html-e-mail >>> >>> Supposedly this only works if Thunderbird is the default email client. >>> >>> Does anyone know if there is a way to send an email from a stack if >>> Thunderbird is NOT the default email client? >>> >>> >>> ACTUALLY, what I want to do is this: >>> create some data in a stack >>> send that data (by email or whatever) to another person who has a stack >>> that imports the data and makes use of it. >>> >>> Can that be done? >>> >>> TIA >>> Larry >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From larry at significantplanet.org Wed Aug 6 11:06:54 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Wed, 6 Aug 2014 09:06:54 -0600 Subject: sending data somehow... References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> Message-ID: <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> Hi Skip, Yes, I'd like to learn more about that technique. Please send more info. Larry ----- Original Message ----- From: "Magicgate Software - Skip Kimpel" To: "How to use LiveCode" Sent: Wednesday, August 06, 2014 8:37 AM Subject: Re: sending data somehow... > In Windows, I also use a VBScript technique that sends stuff out through > my > Outlook client without any interaction. > > Just a thought if you want to go down that route.... > > SKIP > > > On Wed, Aug 6, 2014 at 10:01 AM, wrote: > >> Hi Simon, >> Thanks - I will look into those links. >> Larry >> >> ----- Original Message ----- From: "Simon Smith" >> To: "How to use LiveCode" >> Sent: Wednesday, August 06, 2014 1:11 AM >> Subject: Re: sending data somehow... >> >> >> >> Hi Larry >>> >>> Take a look at the SMTP stack on >>> http://www.troz.net/rev/index.irev?category=All >>> >>> I have used http://commandlinesendmail.blogspot.com/ though in the past >>> (windows only) >>> >>> Simon >>> >>> >>> On Wed, Aug 6, 2014 at 6:37 AM, wrote: >>> >>> I read the following lesson: >>>> http://lessons.runrev.com/m/4071/l/13197-how-do-i-create-an-html-e-mail >>>> >>>> Supposedly this only works if Thunderbird is the default email client. >>>> >>>> Does anyone know if there is a way to send an email from a stack if >>>> Thunderbird is NOT the default email client? >>>> >>>> >>>> ACTUALLY, what I want to do is this: >>>> create some data in a stack >>>> send that data (by email or whatever) to another person who has a stack >>>> that imports the data and makes use of it. >>>> >>>> Can that be done? >>>> >>>> TIA >>>> Larry >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From green.rodney at gmail.com Wed Aug 6 11:41:43 2014 From: green.rodney at gmail.com (Rodney Green) Date: Wed, 6 Aug 2014 11:41:43 -0400 Subject: Screen resolution Message-ID: Using 6.6.1 with resolution independence, is there a recommended screen size for a main stack to target ios and android? What is your default size that you use for your projects? Thanks. From m.schonewille at economy-x-talk.com Wed Aug 6 12:11:17 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 06 Aug 2014 18:11:17 +0200 Subject: [OT] We're shipping books In-Reply-To: <53CCFE84.4030006@economy-x-talk.com> References: <53CCFE84.4030006@economy-x-talk.com> Message-ID: <53E253A5.9000306@economy-x-talk.com> Hi, I wanted to write a few things about the current status of my book, but I'm really busy with a few projects right now. I'll write more later. Nonetheless, we'll be shipping books again on Friday. We have sent many customers a request to confirm their postal mailing address, but there are still a few people who haven't replied yet. If you purchased the book recently and haven't received a request to confirm your address yet, please send an e-mail to support at economy-x-talk.com and make sure you get a reply. Contact us from a different address if you don't get any replies. If you decide to buy the book today, we'll send you a request with a confirmation tonight or tomorrow. Keep an eye on your in-box (and spam-box). More info here http://www3.economy-x-talk.com/file.php?node=programming-livecode-for-the-real-beginner and http://www3.economy-x-talk.com/blog/2013/11/26/everything-everybody-needs-to-know-about-my-book/ or click the short link in my signature below. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From ray at linkit.com Wed Aug 6 12:18:08 2014 From: ray at linkit.com (Ray) Date: Wed, 06 Aug 2014 13:18:08 -0300 Subject: Image File Size Reduction In-Reply-To: <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> Message-ID: <53E25540.2070002@LinkIt.Com> Does anybody know of a way to reduce an image's disk size from within Livecode? Specifically, I'd like to be able to: 1) change the file from PNG to JPEG 2) change the color depth for PNG's to 8 bit 3) change the dimensions Regarding the last of these I know you can set it up and take a snapshot but I was kind of looking for a way to do all three of these without a lot of fussing around. If not, does anybody know of any command line tools which will do this? Image Magick works but I don't believe they have a command prompt version. Very PDF has a product named Document Converter but it only does #1. Many Thanks! From th.douez at gmail.com Wed Aug 6 12:36:47 2014 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 6 Aug 2014 18:36:47 +0200 Subject: Image File Size Reduction In-Reply-To: <53E25540.2070002@LinkIt.Com> References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> <53E25540.2070002@LinkIt.Com> Message-ID: Ray, http://www.imagemagick.org/script/command-line-tools.php on Mac, you can use "sips" HTH, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2014-08-06 18:18 GMT+02:00 Ray : > Does anybody know of a way to reduce an image's disk size from within > Livecode? > > Specifically, I'd like to be able to: > 1) change the file from PNG to JPEG > 2) change the color depth for PNG's to 8 bit > 3) change the dimensions > > Regarding the last of these I know you can set it up and take a snapshot but > I was kind of looking for a way to do all three of these without a lot of > fussing around. > > If not, does anybody know of any command line tools which will do this? > Image Magick works but I don't believe they have a command prompt version. > Very PDF has a product named Document Converter but it only does #1. > > Many Thanks! > From jacques.hausser at unil.ch Wed Aug 6 12:37:08 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Wed, 6 Aug 2014 18:37:08 +0200 Subject: Image File Size Reduction In-Reply-To: <53E25540.2070002@LinkIt.Com> References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> <53E25540.2070002@LinkIt.Com> Message-ID: I don't know fi it's the best way, but in one of my applications, I drag and drop an image and retrieve only it's file path (e.g. : put the dragData["files"] into photoFile); then I set the filename of existing empty images to this file path, adjust the size as needed (in reference to rectangles on the card) and export them "as jpeg" (and so I get rid of EXIF metadata). For the colors, I don't know... Le 6 ao?t 2014 ? 18:18, Ray a ?crit : > Does anybody know of a way to reduce an image's disk size from within Livecode? > > Specifically, I'd like to be able to: > 1) change the file from PNG to JPEG > 2) change the color depth for PNG's to 8 bit > 3) change the dimensions > > Regarding the last of these I know you can set it up and take a snapshot but I was kind of looking for a way to do all three of these without a lot of fussing around. > > If not, does anybody know of any command line tools which will do this? Image Magick works but I don't believe they have a command prompt version. Very PDF has a product named Document Converter but it only does #1. > > Many Thanks! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From ray at linkit.com Wed Aug 6 12:48:20 2014 From: ray at linkit.com (Ray) Date: Wed, 06 Aug 2014 13:48:20 -0300 Subject: Image File Size Reduction In-Reply-To: References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> <53E25540.2070002@LinkIt.Com> Message-ID: <53E25C54.70206@LinkIt.Com> Thierry - I didn't think there was a command-line version of Image Magick but I guess there is. Thanks! On 8/6/2014 1:36 PM, Thierry Douez wrote: > Ray, > > http://www.imagemagick.org/script/command-line-tools.php > > on Mac, you can use "sips" > > HTH, > > Thierry > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.com > Maker of sunnYperl - sunnYmidi - sunnYmage > > > 2014-08-06 18:18 GMT+02:00 Ray : >> Does anybody know of a way to reduce an image's disk size from within >> Livecode? >> >> Specifically, I'd like to be able to: >> 1) change the file from PNG to JPEG >> 2) change the color depth for PNG's to 8 bit >> 3) change the dimensions >> >> Regarding the last of these I know you can set it up and take a snapshot but >> I was kind of looking for a way to do all three of these without a lot of >> fussing around. >> >> If not, does anybody know of any command line tools which will do this? >> Image Magick works but I don't believe they have a command prompt version. >> Very PDF has a product named Document Converter but it only does #1. >> >> Many Thanks! >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Wed Aug 6 12:48:55 2014 From: ray at linkit.com (Ray) Date: Wed, 06 Aug 2014 13:48:55 -0300 Subject: Image File Size Reduction In-Reply-To: References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> <53E25540.2070002@LinkIt.Com> Message-ID: <53E25C77.3060405@LinkIt.Com> Jacques - interesting. This might fit my needs. Thanks for the idea. On 8/6/2014 1:37 PM, Jacques Hausser wrote: > I don't know fi it's the best way, but in one of my applications, I drag and drop an image and retrieve only it's file path (e.g. : put the dragData["files"] into photoFile); then I set the filename of existing empty images to this file path, adjust the size as needed (in reference to rectangles on the card) and export them "as jpeg" (and so I get rid of EXIF metadata). For the colors, I don't know... > > > Le 6 ao?t 2014 ? 18:18, Ray a ?crit : > >> Does anybody know of a way to reduce an image's disk size from within Livecode? >> >> Specifically, I'd like to be able to: >> 1) change the file from PNG to JPEG >> 2) change the color depth for PNG's to 8 bit >> 3) change the dimensions >> >> Regarding the last of these I know you can set it up and take a snapshot but I was kind of looking for a way to do all three of these without a lot of fussing around. >> >> If not, does anybody know of any command line tools which will do this? Image Magick works but I don't believe they have a command prompt version. Very PDF has a product named Document Converter but it only does #1. >> >> Many Thanks! >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > ****************************************** > Prof. Jacques Hausser > Department of Ecology and Evolution > Biophore / Sorge > University of Lausanne > CH 1015 Lausanne > please use my private address: > 6 route de Burtigny > CH-1269 Bassins > tel: ++ 41 22 366 19 40 > mobile: ++ 41 79 757 05 24 > E-Mail: jacques.hausser at unil.ch > ******************************************* > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From th.douez at gmail.com Wed Aug 6 12:53:59 2014 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 6 Aug 2014 18:53:59 +0200 Subject: Image File Size Reduction In-Reply-To: <53E25C54.70206@LinkIt.Com> References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> <53E25540.2070002@LinkIt.Com> <53E25C54.70206@LinkIt.Com> Message-ID: > Thierry - I didn't think there was a command-line version of Image Magick > but I guess there is. > > Thanks! You're welcome :) I was used to work a lot with them years ago and mainly on Linux. I'm using successfully sips on Mac from time to time. Regards, Thierry > On 8/6/2014 1:36 PM, Thierry Douez wrote: >> >> Ray, >> >> http://www.imagemagick.org/script/command-line-tools.php >> >> on Mac, you can use "sips" >> >> ------------------------------------------------ >> Thierry Douez - http://sunny-tdz.com >> Maker of sunnYperl - sunnYmidi - sunnYmage From ray at linkit.com Wed Aug 6 13:09:23 2014 From: ray at linkit.com (Ray) Date: Wed, 06 Aug 2014 14:09:23 -0300 Subject: Image File Size Reduction In-Reply-To: References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> <53E25540.2070002@LinkIt.Com> <53E25C54.70206@LinkIt.Com> Message-ID: <53E26143.8070401@LinkIt.Com> Thierry - are you sure I need to use sips for Mac? It appears Image Magick has command line tools for Mac also. On 8/6/2014 1:53 PM, Thierry Douez wrote: >> Thierry - I didn't think there was a command-line version of Image Magick >> but I guess there is. >> >> Thanks! > You're welcome :) > > I was used to work a lot with them years ago > and mainly on Linux. > > I'm using successfully sips on Mac from time to time. > > Regards, > > Thierry > > >> On 8/6/2014 1:36 PM, Thierry Douez wrote: >>> Ray, >>> >>> http://www.imagemagick.org/script/command-line-tools.php >>> >>> on Mac, you can use "sips" >>> >>> ------------------------------------------------ >>> Thierry Douez - http://sunny-tdz.com >>> Maker of sunnYperl - sunnYmidi - sunnYmage > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Wed Aug 6 13:14:08 2014 From: klaus at major-k.de (Klaus major-k) Date: Wed, 6 Aug 2014 19:14:08 +0200 Subject: Image File Size Reduction In-Reply-To: <53E26143.8070401@LinkIt.Com> References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> <53E25540.2070002@LinkIt.Com> <53E25C54.70206@LinkIt.Com> <53E26143.8070401@LinkIt.Com> Message-ID: Hi Ry, Am 06.08.2014 um 19:09 schrieb Ray : > Thierry - are you sure I need to use sips for Mac? It appears Image Magick has command line tools for Mac also. yes, sure, but SIPS is already built-in into OS X :-) > On 8/6/2014 1:53 PM, Thierry Douez wrote: >>> Thierry - I didn't think there was a command-line version of Image Magick >>> but I guess there is. >>> Thanks! >> You're welcome :) >> I was used to work a lot with them years ago >> and mainly on Linux. >> I'm using successfully sips on Mac from time to time. >> Regards, >> Thierry >> >>> On 8/6/2014 1:36 PM, Thierry Douez wrote: >>>> Ray, >>>> http://www.imagemagick.org/script/command-line-tools.php >>>> on Mac, you can use "sips" Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From th.douez at gmail.com Wed Aug 6 13:14:55 2014 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 6 Aug 2014 19:14:55 +0200 Subject: Image File Size Reduction In-Reply-To: <53E26143.8070401@LinkIt.Com> References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> <53E25540.2070002@LinkIt.Com> <53E25C54.70206@LinkIt.Com> <53E26143.8070401@LinkIt.Com> Message-ID: > Thierry - are you sure I need to use sips for Mac? > It appears Image Magick has command line tools for Mac also. In between us, getting older and older, I'm sure of less and less and I'm bored with those so sure of... :) That said, the nice thing about sips is that it is already installed and working on the Mac; nothing to download. That's why I speak about it. Comparing sips with imagemagick will be another topic, and certainly a long one. Both tools are good. Does that make sense? Thierry > > On 8/6/2014 1:53 PM, Thierry Douez wrote: >>> >>> Thierry - I didn't think there was a command-line version of Image Magick >>> but I guess there is. >>> >>> Thanks! >> >> You're welcome :) >> >> I was used to work a lot with them years ago >> and mainly on Linux. >> >> I'm using successfully sips on Mac from time to time. >> >> Regards, >> >> Thierry >> >> >>> On 8/6/2014 1:36 PM, Thierry Douez wrote: >>>> >>>> Ray, >>>> >>>> http://www.imagemagick.org/script/command-line-tools.php >>>> >>>> on Mac, you can use "sips" >>>> >>>> ------------------------------------------------ >>>> Thierry Douez - http://sunny-tdz.com >>>> Maker of sunnYperl - sunnYmidi - sunnYmage >> >> _______________________________________________ >> >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Wed Aug 6 13:17:40 2014 From: ray at linkit.com (Ray) Date: Wed, 06 Aug 2014 14:17:40 -0300 Subject: Image File Size Reduction In-Reply-To: References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> <53E25540.2070002@LinkIt.Com> <53E25C54.70206@LinkIt.Com> <53E26143.8070401@LinkIt.Com> Message-ID: <53E26334.5070703@LinkIt.Com> I've become a Windows user and didn't realize sips was built into the Mac OS. Thanks Klaus and Thierry. I'll look into this. On 8/6/2014 2:14 PM, Thierry Douez wrote: >> Thierry - are you sure I need to use sips for Mac? >> It appears Image Magick has command line tools for Mac also. > In between us, getting older and older, I'm sure of less and less > and I'm bored with those so sure of... :) > > That said, the nice thing about sips is that it is already installed > and working on the Mac; nothing to download. > That's why I speak about it. > > Comparing sips with imagemagick will be another topic, > and certainly a long one. Both tools are good. > > Does that make sense? > > Thierry > > >> On 8/6/2014 1:53 PM, Thierry Douez wrote: >>>> Thierry - I didn't think there was a command-line version of Image Magick >>>> but I guess there is. >>>> >>>> Thanks! >>> You're welcome :) >>> >>> I was used to work a lot with them years ago >>> and mainly on Linux. >>> >>> I'm using successfully sips on Mac from time to time. >>> >>> Regards, >>> >>> Thierry >>> >>> >>>> On 8/6/2014 1:36 PM, Thierry Douez wrote: >>>>> Ray, >>>>> >>>>> http://www.imagemagick.org/script/command-line-tools.php >>>>> >>>>> on Mac, you can use "sips" >>>>> >>>>> ------------------------------------------------ >>>>> Thierry Douez - http://sunny-tdz.com >>>>> Maker of sunnYperl - sunnYmidi - sunnYmage >>> _______________________________________________ >>> >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From cszasz at me.com Wed Aug 6 14:40:31 2014 From: cszasz at me.com (Charles Szasz) Date: Wed, 06 Aug 2014 12:40:31 -0600 Subject: Text in edit field disappears after opening substack. Message-ID: I am using LC 5.5.5. I have a substack ("Grade") that is launched when the user goes from an edit field to the next edit field. The substack has a grade option button that is programmed to insert a grade in the second field. I have no script in the first field. When the substack is launched the text in the first field disappears. This is my script in the second field: On openfield If field "grade2" is empty then go stack "grade" end if End openField Has anybody run into this problem? Does anybody has a solution to this problem? Sent from my iPhone 4S! From ambassador at fourthworld.com Wed Aug 6 15:13:06 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 06 Aug 2014 12:13:06 -0700 Subject: "read...until " -- buffer size In-Reply-To: References: Message-ID: <53E27E42.5080504@fourthworld.com> Kay C Lan wrote: > ...I'd suggest the solution is not to manually set the buffer size > but to have LC find the optimum for you. > > With the current variety of disk sizes, proportion of disk empty, rpm > and even if it's mechanical or SSD, what ever you discover to be the > optimum on your machine is unlikely to be the optimum on Richmond's > heroic G3 tray loading iMac running 10.3. I'd even suggest taht > whatever you find is the optimum today, may not be the optimum in a > year. I've bench tested many HDs and there seems to be quite a variety > of factors that determine the file size that achieves the fastest > read/write times, and quite a variety in those file sizes, so I'm sure > whether it's buffer size, something else, or a combinateion, the same > would be true for 'read from file'. > > Wouldn't it be better if you could, in an openStack or similar: > > get maxReadSpeed() > --runs a suite of tests to determine the settings that achieves > maximum read from file speed. > --then sets these as defaults which will be used by read (and other?) functions > --only needs to run once > --automatically reset to pre-LC settings when you Quit LC > > And from then on use the standard read functions. I like the fresh thinking on this, but if it's difficult for me to find an optimal buffer size for a given hardware configuration and file system, will be it any easier for the engine team to address not only those concerns but also my own application-specific needs? I'm not all that picky about syntax, and both options require the engine team to expose some underlying mechanism that affects buffer size. As long as it gets the job done I'm not all that particular about how it gets done. With "put...after..." Dr. Raney was able to change the way he was using pointers with malloc to deliver a many-fold speed boost with no extra work required by us at all. If that were possible here I certainly wouldn't mind, and maybe simply increasing the existing buffer size might do the trick*. Looking at what's been proposed thus far, it seems like: Good: The default buffer size is increased. Better: The default buffer size is increased, along with some means of allowing the scripter to optionally adjust it manually if they choose for the needs of a particular application. Best: RunRev figures out a way to optimize for my application's needs for me, and provides some means of allowing us to make that happen. > So a bug report to fix the current speed, then if it's found that > speed improvements can be had by adjusting system/LC internal > settings, an enhancement request for an LC function that would > determine and set these as default. This would ensure whether you're > running a nearly full 250GB 5400rpm HD or a basically empty 750GB SSD, > ' read from file tMyFile until CR' will work faster than anything you > can mangle using multiple lines of LC code. Indeed, I don't think it's unreasonable to expect that now, at least as far as a modest increase to the buffer size that better reflects modern file systems and RAM configurations. But like many other cases (e.g. regex vs filter vs repeat for each, or arrays vs simple lists) what's optimal may be specific to a given use-case, so I'm not yet certain which is the "best" approach. As a side note: Anyone else here ever notice that this is valid syntax?: read from file tMyFile for 2 uint4 With the read command, other valid binary chunk types include uint1, uint2, and their plurals, uint1s, uint2s, uint4s (filter the Dictionary by "uint" to find these, or see the notes in the Parameters section for the Read command). I bring these up because they represent one of the great strengths of LiveCode over so many other xTalks: LiveCode contains many elements that go far beyond the relatively narrow bounds of HyperTalk, with most of its users blissfully enjoying the tokens they use without ever having to think about the rest. But if you find yourself doing deeper work on binary files, or needing to parse files larger than can fit in RAM, or a wide range of other tasks that programmers sometimes have to do, it's nice to discover these optional gems that make such coding as enjoyable as "go next". Like arrays, regex, and many other language elements that have become popular over the years since they were introduced to xTalk in LiveCode, all of these help LiveCode address a far larger scope of viable projects than its predecessors. Sometimes a little branching out from one's roots is a good, healthy evolution. Kevin's recent video on Open Language and Widgets takes that further, and while it may seem a bit daunting to think about memory management at that level, for those who need it it's every bit as liberating as being able to navigate between cards or create a button. * Once again I tried going through GitHub to find a specific relevant bit of code, and once again it seems I lack the training needed to do so effectively. Anyone here know where the current "read...until" buffer size is defined? Knowing the current buffer size would be very helpful for making suggestions about changing it. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From devin_asay at byu.edu Wed Aug 6 15:56:26 2014 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 6 Aug 2014 19:56:26 +0000 Subject: the effective me? Message-ID: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> Hi folks, Did this discussion ever get resolved? If you need to refer to properties of a button that holds a behavior script, is there any way to override the meaning of 'me'? Normally 'me' in a behavior script refers to the object that is executing the behavior script. We had a long discussion a few months back about referring to parent behaviors, and one of the tongue-in-cheek(?) suggestions was 'the effective me'. But how could one refer to the button holding the behavior script? 'the real me'? Struggling with who I really am, Devin, just me Devin Asay Office of Digital Humanities Brigham Young University From m.schonewille at economy-x-talk.com Wed Aug 6 16:07:25 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 6 Aug 2014 22:07:25 +0200 Subject: the effective me? In-Reply-To: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> References: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> Message-ID: <9B89D15B-47F0-4F18-B85C-1521FD232EC8@economy-x-talk.com> Hi Devin, That should be the parent of me or the behaviour of me, e.g. put the script of the parent of me -- 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 aug 2014, at 21:56, Devin Asay wrote: > Hi folks, > > Did this discussion ever get resolved? If you need to refer to properties of a button that holds a behavior script, is there any way to override the meaning of 'me'? Normally 'me' in a behavior script refers to the object that is executing the behavior script. > > We had a long discussion a few months back about referring to parent behaviors, and one of the tongue-in-cheek(?) suggestions was 'the effective me'. But how could one refer to the button holding the behavior script? 'the real me'? > > Struggling with who I really am, > > Devin, just me > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Aug 6 16:09:00 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 06 Aug 2014 15:09:00 -0500 Subject: the effective me? In-Reply-To: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> References: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> Message-ID: <53E28B5C.7080509@hyperactivesw.com> On 8/6/2014, 2:56 PM, Devin Asay wrote: > Hi folks, > > Did this discussion ever get resolved? If you need to refer to > properties of a button that holds a behavior script, is there any way > to override the meaning of 'me'? Normally 'me' in a behavior script > refers to the object that is executing the behavior script. > > We had a long discussion a few months back about referring to parent > behaviors, and one of the tongue-in-cheek(?) suggestions was 'the > effective me'. But how could one refer to the button holding the > behavior script? 'the real me'? > > Struggling with who I really am, It was "this me" and it's in there. I thought it was silly at the time, and yet, it's does describe it correctly and no one could think of a better term. And I had to use it yesterday and it works. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From devin_asay at byu.edu Wed Aug 6 16:19:41 2014 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 6 Aug 2014 20:19:41 +0000 Subject: the effective me? In-Reply-To: <53E28B5C.7080509@hyperactivesw.com> References: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> <53E28B5C.7080509@hyperactivesw.com> Message-ID: <2BED7BC9-444B-4A9C-8333-99564E0E793C@byu.edu> On Aug 6, 2014, at 2:09 PM, "J. Landman Gay" wrote: > On 8/6/2014, 2:56 PM, Devin Asay wrote: >> >> Struggling with who I really am, > > It was "this me" and it's in there. I thought it was silly at the time, and yet, it's does describe it correctly and no one could think of a better term. And I had to use it yesterday and it works. Wow! It works. I just did this in my behavior button: before mouseDown set the colorOverlay of me to the colorOverlay of this me end mouseDown With only a little bit of metaphysical angst. :) You're right, Jacque, weird but strangely satisfying. Devin Devin Asay Office of Digital Humanities Brigham Young University From hh at livecode.org Wed Aug 6 17:26:28 2014 From: hh at livecode.org (hh) Date: Wed, 6 Aug 2014 23:26:28 +0200 Subject: Image File Size Reduction Message-ID: <15622CD4-502B-4CCF-BC08-08F4DFD4894D@livecode.org> One more interesting thing with sips on MacOS that Thierry not mentioned (because this is his daily 2nd breakfast I suppose): One can effectively use it via applescript by the "image events" suite and can even modify ColorSync ICC profiles with it (am I right Thierry?). This is not subject here but may be interesting for some 'beginner readers' in this context: "convert", one of the imageMagick tools Klaus had in mind, could have some more options than sips for importing/exporting special formats (camera formats), see put shell("/usr/local/bin/convert -list format"). From lan.kc.macmail at gmail.com Wed Aug 6 19:21:37 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 7 Aug 2014 07:21:37 +0800 Subject: "read...until " -- buffer size In-Reply-To: <53E27E42.5080504@fourthworld.com> References: <53E27E42.5080504@fourthworld.com> Message-ID: On Thu, Aug 7, 2014 at 3:13 AM, Richard Gaskin wrote: > * Once again I tried going through GitHub to find a specific relevant bit of > code, and once again it seems I lack the training needed to do so > effectively. It's comments like that, from Gurus like you, that leave me with an overwhelming feeling of gratitude for LiveCode and what it allows me to do because it confirms my total incomprehension of all that lies within GitHub and the engine internals. I'm also in awe of all those bilingual folk who can speak both xTalk and C (and it's derivatives) and am extremely appreciative of the time and effort they spend over on the dark side to make my world an easy place to live with code. I've always thought RunRev's should have a T-Shirt 'I live code therefore I LiveCode'. So the sum of my efforts is a paltry suggestion here or there; to those who make it happen - THANK YOU! From ray at linkit.com Wed Aug 6 20:35:06 2014 From: ray at linkit.com (Ray) Date: Wed, 06 Aug 2014 21:35:06 -0300 Subject: Image File Size Reduction In-Reply-To: <15622CD4-502B-4CCF-BC08-08F4DFD4894D@livecode.org> References: <15622CD4-502B-4CCF-BC08-08F4DFD4894D@livecode.org> Message-ID: <53E2C9BA.6060705@LinkIt.Com> Thanks hh - I haven't gotten into the Mac side yet but this is helpful for when I get around to it. On 8/6/2014 6:26 PM, hh wrote: > One more interesting thing with sips on MacOS that Thierry not mentioned (because this is his daily 2nd breakfast I suppose): > One can effectively use it via applescript by the "image events" suite and can even modify ColorSync ICC profiles with it (am I right Thierry?). > > This is not subject here but may be interesting for some 'beginner readers' in this context: > "convert", one of the imageMagick tools Klaus had in mind, could have some more options than sips for importing/exporting special formats (camera formats), see > put shell("/usr/local/bin/convert -list format"). > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Aug 6 20:52:44 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 06 Aug 2014 17:52:44 -0700 Subject: Image File Size Reduction In-Reply-To: <53E25540.2070002@LinkIt.Com> References: <53E25540.2070002@LinkIt.Com> Message-ID: <53E2CDDC.1010504@fourthworld.com> Ray wrote: > Does anybody know of a way to reduce an image's disk size from within > Livecode? > > Specifically, I'd like to be able to: > 1) change the file from PNG to JPEG import PNG; export as JPEG > 2) change the color depth for PNG's to 8 bit "export as raw..." might help, maybe even "export with palette..." (filter the Dictionary for "export" to see the new options) But AFAIK JPEG is always full color anyway, so the biggest reduction in size is likely to come from setting the JPEGQuality global property before exporting in that format. > 3) change the dimensions set the rect... > Regarding the last of these I know you can set it up and take a > snapshot but I was kind of looking for a way to do all three of > these without a lot of fussing around. Any such transformations will involve some fussing around, but it's often more fun to fuss around in LiveCode than anything else. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From cszasz at me.com Wed Aug 6 21:01:52 2014 From: cszasz at me.com (Charles Szasz) Date: Wed, 06 Aug 2014 19:01:52 -0600 Subject: Problem solved! Message-ID: <148EA637-D2EE-48CF-BEAC-7DB06BE5BBC5@me.com> Please disregard my previous posting. The disappearing text was due to preferences being loaded for the main stack, which was easily fixed. Sent from my iPad From mwieder at ahsoftware.net Wed Aug 6 22:01:02 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 6 Aug 2014 19:01:02 -0700 Subject: Image File Size Reduction In-Reply-To: <53E26334.5070703@LinkIt.Com> References: <954F353A3066429780A553A790C2A3F8@userd204a4d61c> <3F8CF1766A7C49CC9E324744D7D153A7@userd204a4d61c> <53E25540.2070002@LinkIt.Com> <53E25C54.70206@LinkIt.Com> <53E26143.8070401@LinkIt.Com> <53E26334.5070703@LinkIt.Com> Message-ID: <1351984833830.20140806190102@ahsoftware.net> Ray- Wednesday, August 6, 2014, 10:17:40 AM, you wrote: > I've become a Windows user My condolences. Nonetheless, I've always used imagemagick in commandline mode on whatever platform. I didn't realize there was anything else. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Wed Aug 6 22:05:55 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 6 Aug 2014 19:05:55 -0700 Subject: the effective me? In-Reply-To: <2BED7BC9-444B-4A9C-8333-99564E0E793C@byu.edu> References: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> <53E28B5C.7080509@hyperactivesw.com> <2BED7BC9-444B-4A9C-8333-99564E0E793C@byu.edu> Message-ID: <371985127113.20140806190555@ahsoftware.net> Devin- Wednesday, August 6, 2014, 1:19:41 PM, you wrote: > With only a little bit of metaphysical angst. :) My brain still twists itself into knots trying to deal with "this me". What if I want to refer to "that me" or "the other me" or "the me next door" or "the me that used to be"? Obviously "this me" is different from "me", and that doesn't make my brain hurt any the less. So much for the arguments about LC being "natural language" code. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From jacque at hyperactivesw.com Wed Aug 6 22:55:53 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 06 Aug 2014 21:55:53 -0500 Subject: the effective me? In-Reply-To: <371985127113.20140806190555@ahsoftware.net> References: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> <53E28B5C.7080509@hyperactivesw.com> <2BED7BC9-444B-4A9C-8333-99564E0E793C@byu.edu> <371985127113.20140806190555@ahsoftware.net> Message-ID: <53E2EAB9.8000908@hyperactivesw.com> On 8/6/2014, 9:05 PM, Mark Wieder wrote: > What if I want to refer to "that me" or "the other me" or "the me next > door" or "the me that used to be"? That won't be an issue until the time warp stack is done. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ethan at lish.net Wed Aug 6 23:04:42 2014 From: ethan at lish.net (ethan at lish.net) Date: Wed, 6 Aug 2014 17:04:42 -1000 Subject: LC interface code Message-ID: <63D2742D-3AB7-43F3-BD34-F3F7A834B8B7@lish.net> Hey, Long time listener, first time poster ;-) Any example LC interface code to app.net or glassboard.com available for review? I'm looking to enhance a app with one of these services as a backend discussion board Thanks in advance, Ethan ethan at lish.net 240.449.8270 From capellan2000 at gmail.com Wed Aug 6 23:15:35 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 6 Aug 2014 20:15:35 -0700 (PDT) Subject: "...for neither" - really? In-Reply-To: <1406321785935-4681435.post@n4.nabble.com> References: <53D2B13C.50508@fourthworld.com> <1406321785935-4681435.post@n4.nabble.com> Message-ID: <1407381335155-4681811.post@n4.nabble.com> Now that I am in front of a Linux Computer I confirm that it's possible to play many sounds at the same time, using open process put "aplay sample.au" into tCommand open process tCommand for neither This command does plays *.wav and *.au Does not works with *.mp3 or *.aiff http://www.linuxcommand.org/man_pages/aplay1.html http://alsa.opensrc.org/Aplay Just one thing: How could I stop or pause different sounds using the command Aplay? Alejandro Tejada wrote > > Richard Gaskin wrote >> Monte recently helped me with a shell task by reminding me that I can >> use this for asynchronously calling another process: >> >> open tSomeProcessCommand for neither >> >> Useful enough, but the syntax kinda bugs me. > I am not in front of a Linux computer to test > this command, but > Could developers play many simultaneous sounds > in Linux using "aplay" and "for neither"? > > I remember a Space Invaders Linux clone published > by Lestroso of FaSaSoftware that hangs badly while > trying to play many sounds at the same time... :( > > Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/for-neither-really-tp4681430p4681811.html Sent from the Revolution - User mailing list archive at Nabble.com. From larry at significantplanet.org Thu Aug 7 00:11:27 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Wed, 6 Aug 2014 22:11:27 -0600 Subject: mouseUp question Message-ID: <142D42EC2A114AA2A518337D0E0D59E1@userd204a4d61c> In a field I have two scripts - one for mouseUp and another one for mouseDoubleUp When the user clicks a line in the field (mouseUp) it plays the .wav file they click on When the user double clicks it copies the .wav file to another field. The problem is that LC runs BOTH scripts when the user dbl clicks. There is the small delay of time after the first click and before the second click. How do I get LC to ignore mouseUp when the user dbl clicks?? TIA Larry From johnpatten at me.com Thu Aug 7 00:18:03 2014 From: johnpatten at me.com (JOHN PATTEN) Date: Wed, 06 Aug 2014 21:18:03 -0700 Subject: Wrestling with LC Server and wacky results...? Message-ID: <34F39AC4-CFAD-46F0-88AF-62352A5786A3@me.com> Hi All, Still not getting LC server script to record the correct info in a text file. I?m trying recording the last item, item 4, of a players game piece based on the button they are over. Here?s the abbreviated ?move game piece script:? put word 2 of tLabels into tCurrentSpot --word 2 is a number, ie Button3 put tCurrentSpot + (cd fld "DiceRoll") into tButton if tButton > 15 then put 1 into tButton move cd button tTargetPlayer to the loc of cd button ("Button" && tButton) put urlEncode(tTargetPlayer) into tUsername put urlEncode("Button" && tButton) into tButtonSpot put "username=" & tUsername &"&ButtonSpot=" & tButtonSpot into tArgList post tArgList to URL "http://jpatten.on-rev.com/tHidden/moveplayer.lc" put it --into tData else move cd button tTargetPlayer to the loc of cd button ("Button" && tButton) put urlEncode(tTargetPlayer) into tUsername put urlEncode("Button" && tButton) into tButtonSpot put "username=" & tUsername &"&ButtonSpot=" & tButtonSpot into tArgList post tArgList to URL "http://jpatten.on-rev.com/tHidden/moveplayer.lc" put it --into tData end if Here?s server script: The script works fine until player moves up into double digit game spaces, i.e. Button 10, Button 11, etc. However, when I add my changed line as a new line at the bottom of the variable the new line at bottom has the correct two digit button label. So if the player was Luna, and she had just moved to spot ?Button 13,? the resulting text file looks like this after the server script runs: John Patten,secret,jpatten at bmail.com,Button 1 Ivy Patten,1valve,ipatten at bmail.com,Button 5 Sawyer Patten,luna,spatten at bmail.com,Button 1 Luna Patten,secret,mmouse at gmouse.com,Button 6 Sean Patten,secret,spatten at gmouse.com,Button 1 Luna Patten,secret,mmouse at gmouse.com,Button 13 I tried to figure out a way to delete the original line, in this case for Luna where the item 4 is the old labeled Button 6, but couldn?t come up with a script on the server to that. Tried a couple of the other suggestions too, but know luck. It just seems kind of odd why it will write the correct line to the end of the file, but not to the line in the middle? Any other suggestions? Thank you! John Patten SUSD From devinasay at gmail.com Thu Aug 7 00:29:47 2014 From: devinasay at gmail.com (Devin Asay) Date: Wed, 6 Aug 2014 22:29:47 -0600 Subject: the effective me? In-Reply-To: <371985127113.20140806190555@ahsoftware.net> References: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> <53E28B5C.7080509@hyperactivesw.com> <2BED7BC9-444B-4A9C-8333-99564E0E793C@byu.edu> <371985127113.20140806190555@ahsoftware.net> Message-ID: <0A0E94C5-62B6-4B62-B1BA-7A27DB24CF84@byu.edu> On Aug 6, 2014, at 8:05 PM, Mark Wieder wrote: > Devin- > > Wednesday, August 6, 2014, 1:19:41 PM, you wrote: > >> With only a little bit of metaphysical angst. :) > > My brain still twists itself into knots trying to deal with "this me". > What if I want to refer to "that me" or "the other me" or "the me next > door" or "the me that used to be"? Obviously "this me" is different > from "me", and that doesn't make my brain hurt any the less. > > So much for the arguments about LC being "natural language" code. It makes perfect sense to me, as illustrated by this conversation I recently had with myself: me: I don?t get ?this me? stuff. It makes no sense. this me: What do you mean? It?s perfectly clear. me: Who are you? this me: I?m the other me that lives in your head, Precious. me: Now you?re creeping me out. this me: False, tricksy livecodeses! me: Go away! this me: [crickets] me: Aaaaah! Finally, the world makes sense again. :) Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com From paulhibbert at mac.com Thu Aug 7 00:30:00 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Wed, 06 Aug 2014 21:30:00 -0700 Subject: mouseUp question In-Reply-To: <142D42EC2A114AA2A518337D0E0D59E1@userd204a4d61c> References: <142D42EC2A114AA2A518337D0E0D59E1@userd204a4d61c> Message-ID: Larry, One way to do this is to pass the result of each mouse handler to a command e.g.: local sMouseClicks on mouseUp put 1 into sMouseClicks mouseAction end mouseUp on mouseDoubleUp put 2 into sMouseClicks mouseAction end mouseDoubleUp command mouseAction if sMouseClicks = 2 then put "Mouse Double Up" else put "Mouse Up" end if end mouseAction There may be better ways but this works well enough for me. Paul On 2014-08-06, at 9:11 PM, larry at significantplanet.org wrote: > In a field I have two scripts - one for mouseUp and another one for mouseDoubleUp > > When the user clicks a line in the field (mouseUp) it plays the .wav file they click on > > When the user double clicks it copies the .wav file to another field. > > The problem is that LC runs BOTH scripts when the user dbl clicks. > There is the small delay of time after the first click and before the second click. > > How do I get LC to ignore mouseUp when the user dbl clicks?? > > TIA > Larry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Thu Aug 7 00:28:20 2014 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 7 Aug 2014 04:28:20 +0000 Subject: mouseUp question In-Reply-To: <142D42EC2A114AA2A518337D0E0D59E1@userd204a4d61c> References: <142D42EC2A114AA2A518337D0E0D59E1@userd204a4d61c> Message-ID: Hi Larry, one approach is to do something like the code below, which delays the mouseUp handler from running until after the doubleClick interval has expired. You can adjust the double-click interval to be whatever you like (shorter times will cause less obvious delays in the mouseUp handler running). on mouseUp send "doStuff" to me in (the doubleClickInterval)+1 millisecs end mouseUp on doStuff put "mouseUp"&cr after fld 1 end doStuff on mouseDoubleUp repeat for each line tMessage in the pendingMessages if tMessage contains "doStuff" then cancel (item 1 of tMessage) end repeat put "mouseDoubleUp" &cr after fld 1 end mouseDoubleUp Terry... On 7/08/2014 2:11 pm, "larry at significantplanet.org" wrote: >In a field I have two scripts - one for mouseUp and another one for >mouseDoubleUp > >When the user clicks a line in the field (mouseUp) it plays the .wav file >they click on > >When the user double clicks it copies the .wav file to another field. > >The problem is that LC runs BOTH scripts when the user dbl clicks. >There is the small delay of time after the first click and before the >second click. > >How do I get LC to ignore mouseUp when the user dbl clicks?? > >TIA >Larry >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Thu Aug 7 00:33:03 2014 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 7 Aug 2014 00:33:03 -0400 Subject: LC interface code In-Reply-To: <63D2742D-3AB7-43F3-BD34-F3F7A834B8B7@lish.net> References: <63D2742D-3AB7-43F3-BD34-F3F7A834B8B7@lish.net> Message-ID: Does Glassboard have an API? I see that app.net does... Now I'm intrigued. SKIP > On Aug 6, 2014, at 11:04 PM, "ethan at lish.net" wrote: > > Hey, > > Long time listener, first time poster ;-) > > Any example LC interface code to app.net or glassboard.com available for review? > > I'm looking to enhance a app with one of these services as a backend discussion board > > Thanks in advance, > Ethan > > ethan at lish.net > 240.449.8270 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paulhibbert at mac.com Thu Aug 7 00:34:52 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Wed, 06 Aug 2014 21:34:52 -0700 Subject: mouseUp question In-Reply-To: References: <142D42EC2A114AA2A518337D0E0D59E1@userd204a4d61c> Message-ID: Just realised that won't work in this case! It will play the file and copy it. Paul On 2014-08-06, at 9:30 PM, Paul Hibbert wrote: > Larry, > > One way to do this is to pass the result of each mouse handler to a command e.g.: > > local sMouseClicks > > on mouseUp > put 1 into sMouseClicks > mouseAction > end mouseUp > > on mouseDoubleUp > put 2 into sMouseClicks > mouseAction > end mouseDoubleUp > > command mouseAction > if sMouseClicks = 2 then > put "Mouse Double Up" > else > put "Mouse Up" > end if > end mouseAction > > There may be better ways but this works well enough for me. > > Paul > > > On 2014-08-06, at 9:11 PM, larry at significantplanet.org wrote: > >> In a field I have two scripts - one for mouseUp and another one for mouseDoubleUp >> >> When the user clicks a line in the field (mouseUp) it plays the .wav file they click on >> >> When the user double clicks it copies the .wav file to another field. >> >> The problem is that LC runs BOTH scripts when the user dbl clicks. >> There is the small delay of time after the first click and before the second click. >> >> How do I get LC to ignore mouseUp when the user dbl clicks?? >> >> TIA >> Larry >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ethan at lish.net Thu Aug 7 00:56:05 2014 From: ethan at lish.net (ethan at lish.net) Date: Wed, 6 Aug 2014 18:56:05 -1000 Subject: LC interface code In-Reply-To: References: <63D2742D-3AB7-43F3-BD34-F3F7A834B8B7@lish.net> Message-ID: <42F0EA02-C844-4364-9D46-6E22957B1769@lish.net> Glassboard had a API on github but I think it's been taken down while they do a rewrite http://www.rassoc.com/gregr/weblog/2012/05/15/glassboard-2-0-and-glassbot/ App.net has a robust API https://developers.app.net/ E ethan at lish.net 240.449.8270 > On Aug 6, 2014, at 6:33 PM, Skip Kimpel wrote: > > Does Glassboard have an API? I see that app.net does... Now I'm intrigued. > > SKIP > >> On Aug 6, 2014, at 11:04 PM, "ethan at lish.net" wrote: >> >> Hey, >> >> Long time listener, first time poster ;-) >> >> Any example LC interface code to app.net or glassboard.com available for review? >> >> I'm looking to enhance a app with one of these services as a backend discussion board >> >> Thanks in advance, >> Ethan >> >> ethan at lish.net >> 240.449.8270 >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From larry at significantplanet.org Thu Aug 7 01:12:52 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Wed, 6 Aug 2014 23:12:52 -0600 Subject: mouseUp question References: <142D42EC2A114AA2A518337D0E0D59E1@userd204a4d61c> Message-ID: <804B1B616D684BE7B4BCEADC90676B3D@userd204a4d61c> Hi Terry, You put me on the right track. I'm sure your script below would work, but I don't like messing with pendingMessages, so I did the following: global myClick on mouseUp put 1 into myClick send soundChoice to me in .3 seconds end mouseUp on mouseDoubleUp put 2 into myClick soundChoice end mouseDoubleUp on soundChoice if myClick = 1 then put the hilitedtext of field allMySounds into thisSound play ac thisSound end if if myClick = 2 then put return & the hilitedtext of field allMySounds after field eventSounds sort field eventSounds if line 1 of field eventSounds is empty then delete line 1 of field eventSounds put 3 into myClick -- SO IT DOESN'T PUT IT IN TWICE end if end soundChoice Thanks for your help! Larry ----- Original Message ----- From: "Terry Judd" To: "How to use LiveCode" Sent: Wednesday, August 06, 2014 10:28 PM Subject: Re: mouseUp question > Hi Larry, one approach is to do something like the code below, which > delays the mouseUp handler from running until after the doubleClick > interval has expired. You can adjust the double-click interval to be > whatever you like (shorter times will cause less obvious delays in the > mouseUp handler running). > > on mouseUp > send "doStuff" to me in (the doubleClickInterval)+1 millisecs > end mouseUp > > on doStuff > put "mouseUp"&cr after fld 1 > end doStuff > > on mouseDoubleUp > repeat for each line tMessage in the pendingMessages > if tMessage contains "doStuff" then cancel (item 1 of tMessage) > end repeat > put "mouseDoubleUp" &cr after fld 1 > end mouseDoubleUp > > Terry... > > > > On 7/08/2014 2:11 pm, "larry at significantplanet.org" > wrote: > >>In a field I have two scripts - one for mouseUp and another one for >>mouseDoubleUp >> >>When the user clicks a line in the field (mouseUp) it plays the .wav file >>they click on >> >>When the user double clicks it copies the .wav file to another field. >> >>The problem is that LC runs BOTH scripts when the user dbl clicks. >>There is the small delay of time after the first click and before the >>second click. >> >>How do I get LC to ignore mouseUp when the user dbl clicks?? >> >>TIA >>Larry >>_______________________________________________ >>use-livecode mailing list >>use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Thu Aug 7 02:21:04 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 6 Aug 2014 23:21:04 -0700 Subject: "...for neither" - really? In-Reply-To: <1407381335155-4681811.post@n4.nabble.com> References: <53D2B13C.50508@fourthworld.com> <1406321785935-4681435.post@n4.nabble.com> <1407381335155-4681811.post@n4.nabble.com> Message-ID: <1122000435721.20140806232104@ahsoftware.net> Alejandro- Wednesday, August 6, 2014, 8:15:35 PM, you wrote: > Just one thing: > How could I stop or pause different sounds > using the command Aplay? Kill the process? -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From hh at livecode.org Thu Aug 7 02:29:31 2014 From: hh at livecode.org (hh) Date: Thu, 7 Aug 2014 08:29:31 +0200 Subject: the effective me? Message-ID: Knock-knock. Who's there? Me. Me who? The me next door ... (Freely after Mark W.) Knock-knock. Who's there? Mrs. Missis who? The me this of the other me ... (Freely after Devin A.) Sorry, forget it. I'm so tired, I better go to sleep now. From th.douez at gmail.com Thu Aug 7 02:56:34 2014 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 7 Aug 2014 08:56:34 +0200 Subject: Image File Size Reduction In-Reply-To: <15622CD4-502B-4CCF-BC08-08F4DFD4894D@livecode.org> References: <15622CD4-502B-4CCF-BC08-08F4DFD4894D@livecode.org> Message-ID: 2014-08-06 23:26 GMT+02:00 hh : > One more interesting thing with sips on MacOS that Thierry not mentioned (because this is his daily 2nd breakfast I suppose): Sorry Hermann, but you're wrong this time :) I was only in my garden taking care of roses strongly watched by one of my cat.. > One can effectively use it via applescript by the "image events" suite and can even modify ColorSync ICC profiles with it (am I right Thierry?). Certainly. But working only from time to time with Applescripts, I can't say much.. and I'm more used to shell() and terminal which have also the advantage of being almost cross-platform. Thierry From bernd.niggemann at uni-wh.de Thu Aug 7 03:06:39 2014 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 7 Aug 2014 00:06:39 -0700 (PDT) Subject: Dumb XML library question In-Reply-To: References: <1407228737906-4681742.post@n4.nabble.com> <1407232976346-4681744.post@n4.nabble.com> Message-ID: <1407395199471-4681824.post@n4.nabble.com> for the record Pete wants to cycle trough tab delimited data in a scrolling field with the tab key forward and tab-shift key to go backwards The solutions I posted above don't take into account an empty cell. Here is a script that places the cursor into empty cells for data of type data tab data tab data return data tab empty tab no return at the end of the field --------------------------------------------------------- on tabKey set the itemDelimiter to tab put the selectedChunk into tSelect if the shiftKey is down then put word 4 of tSelect into tIndex else put word 2 of tSelect into tIndex end if if not ( the shiftKey is down) then -- find next tab put tIndex into tCounter put offset(tab,me,tCounter) into tNextTab if tNextTab > 0 then add tNextTab to tCounter put tCounter into tForWardPos else put the number of chars of me into tForwardPos end if -- find next return put offset(return,me,tIndex) into tNextReturn if tNextReturn <> 0 then add tIndex to tNextReturn else put the number of chars of me into tNextReturn end if if (tNextReturn < tForwardPos) then select before char tNextReturn of me end if -- both have the number of chars as values, end of text if (tNextReturn = tForwardPos) then select after char tNextReturn of me end if if (tNextReturn > tForwardPos) then select before char tForwardPos of me end if else --- shiftKey is down -- go backwards to find previous tab or return repeat with i = tIndex down to 0 if char i of me = tab or char i of me = return or i = 0 then put i into tFound exit repeat end if end repeat -- go forward to find from previous delimiter -- next delim and place cursor before delim repeat with j = tFound to the number of chars of me if char j of me = tab or char j of me = return then put j into tFound exit repeat end if end repeat select before char tFound of me end if end tabKey ------------------------------------------------------------ tested on LC 6.6.2, 6.7DP7, 7.0DP8 watch out for line breaks Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Shift-tab-tp4681722p4681824.html Sent from the Revolution - User mailing list archive at Nabble.com. From gerry.orkin at gmail.com Thu Aug 7 07:20:57 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Thu, 7 Aug 2014 21:20:57 +1000 Subject: LC interface code In-Reply-To: References: <63D2742D-3AB7-43F3-BD34-F3F7A834B8B7@lish.net> Message-ID: <729BC168-DAFA-42D6-B364-8821671C159C@gmail.com> app.net is in suspended animation... I wouldn't build anything on it. g On 7 Aug 2014, at 2:33 pm, Skip Kimpel wrote: > I see that app.net does... Now I'm intrigued. From bonnmike at gmail.com Thu Aug 7 11:04:21 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 7 Aug 2014 09:04:21 -0600 Subject: "...for neither" - really? In-Reply-To: <1122000435721.20140806232104@ahsoftware.net> References: <53D2B13C.50508@fourthworld.com> <1406321785935-4681435.post@n4.nabble.com> <1407381335155-4681811.post@n4.nabble.com> <1122000435721.20140806232104@ahsoftware.net> Message-ID: Can you do it for "update" or "write" and start it in interactive mode? Should support sending suspend and resume commands. Also makes it easy to keep a list of your running sounds in an array or something making it easy to close process when you wish. To pause, or resume, send a return to the process. On Thu, Aug 7, 2014 at 12:21 AM, Mark Wieder wrote: > Alejandro- > > Wednesday, August 6, 2014, 8:15:35 PM, you wrote: > > > Just one thing: > > How could I stop or pause different sounds > > using the command Aplay? > > Kill the process? > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Thu Aug 7 12:00:08 2014 From: pmbrig at gmail.com (Peter Brigham) Date: Thu, 7 Aug 2014 12:00:08 -0400 Subject: the effective me? In-Reply-To: <53E2EAB9.8000908@hyperactivesw.com> References: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> <53E28B5C.7080509@hyperactivesw.com> <2BED7BC9-444B-4A9C-8333-99564E0E793C@byu.edu> <371985127113.20140806190555@ahsoftware.net> <53E2EAB9.8000908@hyperactivesw.com> Message-ID: I'm already using it, since it will be done at some point and then it works in the past too. I will have downloaded it some time ago. The future me will have, that is. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Wed, Aug 6, 2014 at 10:55 PM, J. Landman Gay wrote: > On 8/6/2014, 9:05 PM, Mark Wieder wrote: > >> What if I want to refer to "that me" or "the other me" or "the me next >> door" or "the me that used to be"? >> > > That won't be an issue until the time warp stack is done. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Thu Aug 7 14:36:18 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 7 Aug 2014 18:36:18 +0000 (UTC) Subject: the effective me? References: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> <53E28B5C.7080509@hyperactivesw.com> <2BED7BC9-444B-4A9C-8333-99564E0E793C@byu.edu> <371985127113.20140806190555@ahsoftware.net> <53E2EAB9.8000908@hyperactivesw.com> Message-ID: J. Landman Gay writes: > > On 8/6/2014, 9:05 PM, Mark Wieder wrote: > > What if I want to refer to "that me" or "the other me" or "the me next > > door" or "the me that used to be"? > > That won't be an issue until the time warp stack is done. > By the time the time warp stack was done, this wasn't a problem any more. Or isn't. Or won't be. Or something. -- Mark Wieder ahsoftware at gmail.com From hello at simonsmith.co Thu Aug 7 15:05:49 2014 From: hello at simonsmith.co (Simon Smith) Date: Thu, 7 Aug 2014 21:05:49 +0200 Subject: Wrestling with LC Server and wacky results...? In-Reply-To: <34F39AC4-CFAD-46F0-88AF-62352A5786A3@me.com> References: <34F39AC4-CFAD-46F0-88AF-62352A5786A3@me.com> Message-ID: Hi John When looping through tUsersFile I would probably write everything to a new variable instead of trying to update tUsersFile - should not have any problems removing the line or updating it when the username matches. Simon On Thu, Aug 7, 2014 at 6:18 AM, JOHN PATTEN wrote: > Hi All, > > Still not getting LC server script to record the correct info in a text > file. I?m trying recording the last item, item 4, of a players game piece > based on the button they are over. Here?s the abbreviated ?move game piece > script:? > put word 2 of tLabels into tCurrentSpot --word 2 is a number, ie Button3 > put tCurrentSpot + (cd fld "DiceRoll") into tButton > > if tButton > 15 then > put 1 into tButton > move cd button tTargetPlayer to the loc of cd button ("Button" && > tButton) > put urlEncode(tTargetPlayer) into tUsername > put urlEncode("Button" && tButton) into tButtonSpot > put "username=" & tUsername &"&ButtonSpot=" & tButtonSpot into > tArgList > > post tArgList to URL "http://jpatten.on-rev.com/tHidden/moveplayer.lc" > put it --into tData > > else > move cd button tTargetPlayer to the loc of cd button ("Button" && > tButton) > put urlEncode(tTargetPlayer) into tUsername > put urlEncode("Button" && tButton) into tButtonSpot > put "username=" & tUsername &"&ButtonSpot=" & tButtonSpot into > tArgList > post tArgList to URL "http://jpatten.on-rev.com/tHidden/moveplayer.lc > " > put it --into tData > end if > > Here?s server script: > put $_POST["username"] into tUsername > put $_POST["ButtonSpot"] into tButtonSpot > put url("file:users.txt") into tUsersFile > repeat for each line tLine in tUsersFile > if item 1 of tLine is tUserName then > put tButtonSpot into item 4 of tLine > --when it gets to spot 10 it is no allowing the 1s spot only the 10s spot, > so button "Button 10" shows up as "Button 1," button 11, as Button 1 and so > on... > put tLine into tLineNew > put empty into tLine > put return & tLineNew after tUsersFile > put tUsersFile > end if > end repeat > > --open file "users.txt" for write > --write tUsersFile to file "users.txt" > --close file "users.txt" > --put "Moving on!" > --put tUsersFile > > ?> > > The script works fine until player moves up into double digit game spaces, > i.e. Button 10, Button 11, etc. However, when I add my changed line as a > new line at the bottom of the variable the new line at bottom has the > correct two digit button label. So if the player was Luna, and she had just > moved to spot ?Button 13,? the resulting text file looks like this after > the server script runs: > > John Patten,secret,jpatten at bmail.com,Button 1 > Ivy Patten,1valve,ipatten at bmail.com,Button 5 > Sawyer Patten,luna,spatten at bmail.com,Button 1 > Luna Patten,secret,mmouse at gmouse.com,Button 6 > Sean Patten,secret,spatten at gmouse.com,Button 1 > Luna Patten,secret,mmouse at gmouse.com,Button 13 > > I tried to figure out a way to delete the original line, in this case for > Luna where the item 4 is the old labeled Button 6, but couldn?t come up > with a script on the server to that. > > Tried a couple of the other suggestions too, but know luck. It just seems > kind of odd why it will write the correct line to the end of the file, but > not to the line in the middle? Any other suggestions? > > Thank you! > John Patten > SUSD > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Thu Aug 7 15:49:26 2014 From: ray at linkit.com (Ray) Date: Thu, 07 Aug 2014 16:49:26 -0300 Subject: Image File Size Reduction In-Reply-To: <53E2CDDC.1010504@fourthworld.com> References: <53E25540.2070002@LinkIt.Com> <53E2CDDC.1010504@fourthworld.com> Message-ID: <53E3D846.2030701@LinkIt.Com> Richard, After considering both Image Magick and SIPS for the Mac side of things (even though Image Magick has command prompt for Mac) I've ended up working within Livecode as you've suggested. It's going well. Thanks! I'll post something tomorrow and let you know how it goes altering the color depth. Ray On 8/6/2014 9:52 PM, Richard Gaskin wrote: > Ray wrote: > > > Does anybody know of a way to reduce an image's disk size from within > > Livecode? > > > > Specifically, I'd like to be able to: > > 1) change the file from PNG to JPEG > > import PNG; export as JPEG > > > > 2) change the color depth for PNG's to 8 bit > > "export as raw..." might help, maybe even "export with > palette..." (filter the Dictionary for "export" to see the new options) > > But AFAIK JPEG is always full color anyway, so the biggest reduction > in size is likely to come from setting the JPEGQuality global property > before exporting in that format. > > > > 3) change the dimensions > > set the rect... > > > > > Regarding the last of these I know you can set it up and take a > > snapshot but I was kind of looking for a way to do all three of > > these without a lot of fussing around. > > Any such transformations will involve some fussing around, but it's > often more fun to fuss around in LiveCode than anything else. :) > From sundown at pacifier.com Thu Aug 7 16:32:13 2014 From: sundown at pacifier.com (JB) Date: Thu, 7 Aug 2014 13:32:13 -0700 Subject: ListMagic Message-ID: I have ListMagic which I purchased many years ago and now for some reason it is a trial version. It was registered and when I asked LiveCode they said they are not able to retrieve lost keys. I finally found the key and now I need to know how to properly register it. Will someone please tell me where to paste the registration key into ListMagic. thank you, John Balgenorth From matthias_livecode_150811 at m-r-d.de Thu Aug 7 17:12:48 2014 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Thu, 7 Aug 2014 23:12:48 +0200 Subject: ListMagic In-Reply-To: References: Message-ID: <93B521C1-C472-4820-B913-DA4873D39DA0@m-r-d.de> Hi John, i am not sure if this still works, but some years ago i posted a solution for that problem. <-- You need a special folder structure to get the registration working. This folder structure was used with Revolution prior 4.5 i think. Just create the following folder structure. has to replaced with your user name. Mac OS X /Users//Library/Application Support/Runtime Revolution/Revolution Enterprise/Cache/Misc Windows XP C:\Documents and Settings\\Application Data\Runtime Revolution\Revolution Enterprise\Cache\Misc Windows 7 C:\Users\\AppData\Roaming\Runtime Revolution\Revolution Enterprise\Cache\Misc If this folder structure exists, then ListMagic can successful register. If registration was successful there is a file "revTest" in the folder misc. That?s it. --> HTH, Matthias Am 07.08.2014 um 22:32 schrieb JB : > I have ListMagic which I purchased many > years ago and now for some reason it is > a trial version. > > It was registered and when I asked LiveCode > they said they are not able to retrieve lost keys. > > I finally found the key and now I need to know > how to properly register it. > > Will someone please tell me where to paste the > registration key into ListMagic. > > thank you, > John Balgenorth > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bill at bluewatermaritime.com Thu Aug 7 17:13:31 2014 From: bill at bluewatermaritime.com (william humphrey) Date: Thu, 7 Aug 2014 17:13:31 -0400 Subject: ListMagic In-Reply-To: References: Message-ID: John I used to use ListMagic which I thought was wonderful at the time (still do) but I had so much trouble with the keys and registering it and making it unlocked that I finally stripped it out of everyone of my stacks and replaced it mostly with the DataGrid which can do almost everything ListMagic does and does not have the problem of that locked stack. In fact I learned from this never to buy any sort of add-on from the LiveCode store or anywhere else that makes you add a locked stack to your programs. Bill On Thu, Aug 7, 2014 at 4:32 PM, JB wrote: > I have ListMagic which I purchased many > years ago and now for some reason it is > a trial version. > > It was registered and when I asked LiveCode > they said they are not able to retrieve lost keys. > > I finally found the key and now I need to know > how to properly register it. > > Will someone please tell me where to paste the > registration key into ListMagic. > > thank you, > John Balgenorth > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- http://www.bluewatermaritime.com From sundown at pacifier.com Thu Aug 7 17:31:59 2014 From: sundown at pacifier.com (JB) Date: Thu, 7 Aug 2014 14:31:59 -0700 Subject: ListMagic In-Reply-To: <93B521C1-C472-4820-B913-DA4873D39DA0@m-r-d.de> References: <93B521C1-C472-4820-B913-DA4873D39DA0@m-r-d.de> Message-ID: Hi Matthias, Thanks for the help. I finally found you can enter the registration key by clicking on the Presentation tab in ListMagic and scrolling to the bottom of the page where there is a button to enter it. After entering the key it registered for me without any problems. Your fix is still important to know since I registered it many years ago and I probably have the folder already. You would think the Installation tab would be a good place to find information related to the installation of the full version. thank you, John Balgenorth On Aug 7, 2014, at 2:12 PM, Matthias Rebbe | M-R-D wrote: > Hi John, > > i am not sure if this still works, but some years ago i posted a solution for that problem. > > <-- > You need a special folder structure to get the registration working. This folder structure was used with Revolution prior 4.5 i think. > > Just create the following folder structure. has to replaced with your user name. > > Mac OS X > /Users//Library/Application Support/Runtime Revolution/Revolution Enterprise/Cache/Misc > > Windows XP > C:\Documents and Settings\\Application Data\Runtime Revolution\Revolution Enterprise\Cache\Misc > > Windows 7 > C:\Users\\AppData\Roaming\Runtime Revolution\Revolution Enterprise\Cache\Misc > > If this folder structure exists, then ListMagic can successful register. If registration was successful there is a file "revTest" in the folder misc. > > That?s it. > --> > > HTH, > > Matthias > > Am 07.08.2014 um 22:32 schrieb JB : > >> I have ListMagic which I purchased many >> years ago and now for some reason it is >> a trial version. >> >> It was registered and when I asked LiveCode >> they said they are not able to retrieve lost keys. >> >> I finally found the key and now I need to know >> how to properly register it. >> >> Will someone please tell me where to paste the >> registration key into ListMagic. >> >> thank you, >> John Balgenorth >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Thu Aug 7 17:39:03 2014 From: sundown at pacifier.com (JB) Date: Thu, 7 Aug 2014 14:39:03 -0700 Subject: ListMagic In-Reply-To: References: Message-ID: Hi William, Thank you for the good advice and info. I think you have learned the hard way and will consider it very much because I have learned the hard way too. I do like ListMagic and might still use it now that I finally registered it again. But I am going to try to use mostly LiveCode and the tools they provide since they are more likely to make sure it works. As for them not being able to retrieve lost keys it is because they did not sell ListMagic and do not control their products. All of these problems are actually a plus for using LiveCode tools to do the job. Thank you, John Balgenorth On Aug 7, 2014, at 2:13 PM, william humphrey wrote: > John > > I used to use ListMagic which I thought was wonderful at the time > (still do) but I had so much trouble with the keys and registering it > and making it unlocked that I finally stripped it out of everyone of > my stacks and replaced it mostly with the DataGrid which can do almost > everything ListMagic does and does not have the problem of that locked > stack. > > In fact I learned from this never to buy any sort of add-on from the > LiveCode store or anywhere else that makes you add a locked stack to > your programs. > > Bill > > On Thu, Aug 7, 2014 at 4:32 PM, JB wrote: >> I have ListMagic which I purchased many >> years ago and now for some reason it is >> a trial version. >> >> It was registered and when I asked LiveCode >> they said they are not able to retrieve lost keys. >> >> I finally found the key and now I need to know >> how to properly register it. >> >> Will someone please tell me where to paste the >> registration key into ListMagic. >> >> thank you, >> John Balgenorth >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > -- > http://www.bluewatermaritime.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Thu Aug 7 17:47:21 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 07 Aug 2014 16:47:21 -0500 Subject: the effective me? In-Reply-To: References: <167DD53E-3FA2-4BE5-B056-76755EBEE7E5@byu.edu> <53E28B5C.7080509@hyperactivesw.com> <2BED7BC9-444B-4A9C-8333-99564E0E793C@byu.edu> <371985127113.20140806190555@ahsoftware.net> <53E2EAB9.8000908@hyperactivesw.com> Message-ID: <53E3F3E9.5080401@hyperactivesw.com> On 8/7/2014, 1:36 PM, Mark Wieder wrote: > J. Landman Gay writes: > >> >> On 8/6/2014, 9:05 PM, Mark Wieder wrote: >>> What if I want to refer to "that me" or "the other me" or "the me next >>> door" or "the me that used to be"? >> >> That won't be an issue until the time warp stack is done. >> > > By the time the time warp stack was done, this wasn't a problem any more. > Or isn't. > Or won't be. > Or something. > Will have not been. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From capellan2000 at gmail.com Thu Aug 7 21:00:26 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 7 Aug 2014 18:00:26 -0700 (PDT) Subject: "...for neither" - really? In-Reply-To: References: <53D2B13C.50508@fourthworld.com> <1406321785935-4681435.post@n4.nabble.com> <1407381335155-4681811.post@n4.nabble.com> <1122000435721.20140806232104@ahsoftware.net> Message-ID: <1407459626331-4681837.post@n4.nabble.com> My Unknowledge about Linux Shell commands is appalling... :o http://www.tuxradar.com/content/command-line-tricks-smart-geeks Mike Bonner wrote > Can you do it for "update" or "write" and start it in interactive mode? > Should support sending suspend and resume commands. Also makes it easy > to > keep a list of your running sounds in an array or something making it easy > to close process when you wish. To pause, or resume, send a return to the > process. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/for-neither-really-tp4681430p4681837.html Sent from the Revolution - User mailing list archive at Nabble.com. From bvg at mac.com Thu Aug 7 21:37:47 2014 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Fri, 08 Aug 2014 03:37:47 +0200 Subject: Selling a ticket for RevCon '14 Message-ID: Hi Due to Family business, I'll be unable to go to America this year. Therefore I have a superfluous Premium 4 Day Ticket to RunRevLive, which I am selling for 1700.- USD (or equivalent other currency). First come first serve, please email me directly. Bj?rnke -- Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ From wilhelm.forchheim at freenet.de Fri Aug 8 05:56:22 2014 From: wilhelm.forchheim at freenet.de (Ruediger Wilhelm) Date: Fri, 8 Aug 2014 11:56:22 +0200 Subject: Voice Recognition ? Message-ID: <000501cfb2ef$030b3df0$0921b9d0$@freenet.de> I would like to build an application in LC for Win and Android where the user reads a question from the screen and enters his response by talking single words into the microphone. The quality of the answer has to be evaluated by the program. Has somebody advice or experience in this respect? Ruediger ==================== Ruediger Wilhelm D-91301 Forchheim ==================== From skiplondon at gmail.com Fri Aug 8 07:07:18 2014 From: skiplondon at gmail.com (Skip Kimpel) Date: Fri, 8 Aug 2014 07:07:18 -0400 Subject: Voice Recognition ? In-Reply-To: <000501cfb2ef$030b3df0$0921b9d0$@freenet.de> References: <000501cfb2ef$030b3df0$0921b9d0$@freenet.de> Message-ID: <59EF0626-3E30-46F8-91CF-EF883B038C94@gmail.com> I would love to hear some other input from the community on this. I have never done it with LC but have done it in past with an Arduino....... After a quick search I found this interesting raspberry pi project: http://www.raspberrypi.org/meet-jasper-open-source-voice-computing/ Keep us posted on what you find as a solution! SKIP > On Aug 8, 2014, at 5:56 AM, "Ruediger Wilhelm" wrote: > > I would like to build an application in > LC for Win and Android > where the user reads a question from the > screen and > enters his response by talking single > words into the microphone. > The quality of the answer has to be > evaluated > by the program. > Has somebody advice or experience in > this respect? > > Ruediger > > > ==================== > Ruediger Wilhelm > D-91301 Forchheim > ==================== > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Fri Aug 8 07:54:13 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 8 Aug 2014 07:54:13 -0400 Subject: Voice Recognition ? In-Reply-To: <000501cfb2ef$030b3df0$0921b9d0$@freenet.de> References: <000501cfb2ef$030b3df0$0921b9d0$@freenet.de> Message-ID: I talked this using speech recognition on android. That's funny. I said "typed" but it put "talked". Was it being cute, or did it misinterpret my speech? Anyway, I've only played around with this. Any field that has focus is already speech enabled. Just touch the microphone on the Android keyboard. On Windows, you must install the speech recognition components. I did this with WinXP and Revolution 2.x long ago. I placed focus on a field, spoke, and it typed what I said. However, for some reason, every character was typed twice. I was only playing, so I never tried to resolve. ~Roger Sent from my Android tablet On Aug 8, 2014 5:59 AM, "Ruediger Wilhelm" wrote: > I would like to build an application in > LC for Win and Android > where the user reads a question from the > screen and > enters his response by talking single > words into the microphone. > The quality of the answer has to be > evaluated > by the program. > Has somebody advice or experience in > this respect? > > Ruediger > > > ==================== > Ruediger Wilhelm > D-91301 Forchheim > ==================== > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Fri Aug 8 09:31:19 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 08 Aug 2014 15:31:19 +0200 Subject: [OT] David Lamp Message-ID: <53E4D127.6060308@economy-x-talk.com> Dear David Lamp, I have tried to contact you, but without any result so far. Perhaps the contact information you provided me with was incorrect or incomplete. Would you please be so kind to contact support at economy-x-talk.com when you read this? Please, make sure that you get an (auto-) reply within 24 hours after sending your e-mail. If you don't get a reply, try contacting us from a different e-mail address (with a different domain name and IP address). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From fraser.gordon at livecode.com Fri Aug 8 10:46:10 2014 From: fraser.gordon at livecode.com (Fraser Gordon) Date: Fri, 8 Aug 2014 15:46:10 +0100 Subject: LiveCode 7.0 DP9 References: Message-ID: <14B99C07-4E16-49DB-925A-6763B7CB786E@livecode.com> Dear List Members. We are pleased to announce the release of LiveCode 7.0 DP9. * Warning, this is a pre-release with new features which have the potential to cause issues. Please ensure you backup your stacks before testing this release.* Release Focus Bug fixes 26 in 7.0 related engine changes 28 in 6.7 related engine changes 64 bit Linux support Important Changes - We?ve update the platform component of the engine on Linux substantially. Think of it as the equivalent of the cocoa port for MacOS X. As a result, windowing related activities on Linux are subject to change. If you are testing on Linux we would encourage you to focus on windowing, window shapes, shortcuts, copy/paste and drag/drop. - LiveCode 7.0 is now based on LiveCode 6.7. It includes cocoa, the webkit browser, the new AVFoundation player on Mac. - The file format has changed for this release to accommodate Unicode. Old stacks will still work in 7.0, but stacks saved in 7.0 format will not open in previous versions of LiveCode. Therefore it is doubly critical to backup your stacks. Release contents The number of bugs fixed is so large that it no longer makes sense to include a summary in the release email. Instead, please look at the bug fix section of the release notes which can be found here: http://downloads.livecode.com/livecode/7_0_0/LiveCodeNotes-7_0_0_dp_9.pdf Getting this release LiveCode 7.0 is not yet part of the auto-update process yet. We'll add it once 7.0 once we enter the RC cycle. For the time being we're looking to our more experienced community members to help with initial testing by downloading directly at: http://downloads.livecode.com/livecode/ Feeding Back If you find an issue in this release, please report a bug at quality.runrev.com. Warm regards, The LiveCode Team From fraser.gordon at livecode.com Fri Aug 8 10:54:56 2014 From: fraser.gordon at livecode.com (Fraser Gordon) Date: Fri, 8 Aug 2014 15:54:56 +0100 Subject: RELEASE: LiveCode 6.7 DP8 Message-ID: <0719F15F-FBF5-43FD-9202-D90F31D419C1@livecode.com> Dear List Members. We are pleased to announce the release of LiveCode 6.7 DP8. Release Focus 28 bug fixes Known issues The multicore rending architecture is causing some subtle rendering glitches on retina Macs Multicore rendering disabled in Windows due to multimedia not being thread-safe Release contents The number of bugs fixed is so large that it no longer makes sense to include a summary in the release email. Instead, please look at the bug fix section of the release notes which can be found here: http://downloads.livecode.com/livecode/6_7_0/LiveCodeNotes-6_7_0_dp_8.pdf Multicore Rendering We've updated the way LiveCode renders on all platforms. It now splits your stack up into as many section as there are CPU cores. Each core renders portion of your stack which in theory improves rendering performance by the number of core available. In practice this isn't the case as there are overheads associated with this approach. The performance improvements will be felt in fairly specific circumstances at the moment as there are a number limitations in the engine we're still trying to remove. However, as this is the final feature to go into LiveCode 6.7 we felt it important to get it into testing early. We've seen a number of glitches on Retina Mac but we would appreciate your help in identifying the edge cases on other platforms. It is also possible that some instability will have been introduced. LiveCode was not written with multicore processing in mind so we have been updating the engine where necessary to be "thread-safe". If you app crashes please try and reproduce the crash and report it to us as it will lead us to the parts of the engine that need a similar update. We think we've caught the majority but once again, there may be some edge cases that your project exercises that our test system does not cover. In the next few builds as we mature the feature we'll release a few simple sample stack that exercise the cores available on your machine. Getting this release http://downloads.livecode.com/livecode/ Feeding Back Please report any issues at quality.runrev.com. Where possible, please check the list of outstanding bugs at the link above to ensure you are not duplicating a report. Having said that, our team is here to help so we?ll mark duplicate bugs as they come in. Warm regards, The LiveCode Team From ray at linkit.com Fri Aug 8 16:16:41 2014 From: ray at linkit.com (Ray) Date: Fri, 08 Aug 2014 17:16:41 -0300 Subject: Image File Size Reduction In-Reply-To: <53E2CDDC.1010504@fourthworld.com> References: <53E25540.2070002@LinkIt.Com> <53E2CDDC.1010504@fourthworld.com> Message-ID: <53E53029.7080901@LinkIt.Com> Richard, I finally got around to trying your suggestions regarding changing an image file's color depth. I'm not sure what the syntax is. Here's the exact line of code: export img myImage to file myFilePath as png I've tried inserting "as raw" or even just "raw" just about everywhere I can imagine in that command and I always come up with errors. Your other suggestions are working out really well. I'm especially having fun 'exporting with palette' Many thanks!!! On 8/6/2014 9:52 PM, Richard Gaskin wrote: > Ray wrote: > > > Does anybody know of a way to reduce an image's disk size from within > > Livecode? > > > > Specifically, I'd like to be able to: > > 1) change the file from PNG to JPEG > > import PNG; export as JPEG > > > > 2) change the color depth for PNG's to 8 bit > > "export as raw..." might help, maybe even "export with > palette..." (filter the Dictionary for "export" to see the new options) > > But AFAIK JPEG is always full color anyway, so the biggest reduction > in size is likely to come from setting the JPEGQuality global property > before exporting in that format. > > > > 3) change the dimensions > > set the rect... > > > > > Regarding the last of these I know you can set it up and take a > > snapshot but I was kind of looking for a way to do all three of > > these without a lot of fussing around. > > Any such transformations will involve some fussing around, but it's > often more fun to fuss around in LiveCode than anything else. :) > From hh at livecode.org Fri Aug 8 19:09:02 2014 From: hh at livecode.org (hh) Date: Sat, 9 Aug 2014 01:09:02 +0200 Subject: Sorry Message-ID: <46F765F3-D1D9-430F-B959-8F886C266704@livecode.org> 'phaworth' posted in the forum: > @-hh > Since you asked for judgement on your level of impertinence, I find > it to be extreme, rude, condesending and insulting. Not only in this > post but in others both here and in your mailing list posts. No cite, no quote. As we never had contact in the forum I thought about which post in the mailing list he could mean. Possibly sentence 2 of paragraph 1 of this answer to jacque? > Certainly there are some geniuses here, probably I know most (I read > this year's archives last week). But there are also some who believe > they are genius and being immune to feedback would others also make > believe this. > I'm well exercised in bluff detection, one hasn't to be genius for > that. And you never bluff, that's why you have this good reputation. I hereby assert, that I didn't mean him by second sentence of the first paragraph (also not by first sentence). And I ask everybody who feels to be meant by second sentence of this first paragraph to accept my apologies, sorry. And to be happy: This is my last post here. Hermann From igor at semperuna.com Fri Aug 8 20:02:40 2014 From: igor at semperuna.com (Igor de Oliveira Couto) Date: Sat, 9 Aug 2014 10:02:40 +1000 Subject: What is LiveCloud? Message-ID: <6A44AFDC-1504-4189-B182-75DD3EFE1D87@semperuna.com> Dear ListMembers, The last issue of RevUp has an article titled "LiveCloud Part 2". I seem to have missed part 1 - could someone post me a link? And just what is LiveCloud? Is it related to this site?: http://livecloud.com -- Igor Couto Sydney, Australia From skiplondon at gmail.com Fri Aug 8 20:07:46 2014 From: skiplondon at gmail.com (Skip Kimpel) Date: Fri, 8 Aug 2014 20:07:46 -0400 Subject: What is LiveCloud? In-Reply-To: <6A44AFDC-1504-4189-B182-75DD3EFE1D87@semperuna.com> References: <6A44AFDC-1504-4189-B182-75DD3EFE1D87@semperuna.com> Message-ID: It is a cloud based database made specifically for livecode. > On Aug 8, 2014, at 8:02 PM, Igor de Oliveira Couto wrote: > > Dear ListMembers, > > The last issue of RevUp has an article titled "LiveCloud Part 2". I seem to have missed part 1 - could someone post me a link? And just what is LiveCloud? Is it related to this site?: > > http://livecloud.com > > -- > Igor Couto > Sydney, Australia > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Fri Aug 8 20:09:09 2014 From: skiplondon at gmail.com (Skip Kimpel) Date: Fri, 8 Aug 2014 20:09:09 -0400 Subject: What is LiveCloud? In-Reply-To: <6A44AFDC-1504-4189-B182-75DD3EFE1D87@semperuna.com> References: <6A44AFDC-1504-4189-B182-75DD3EFE1D87@semperuna.com> Message-ID: Here is a recent link: http://livecloud.io/we-have-gone-beta/ > On Aug 8, 2014, at 8:02 PM, Igor de Oliveira Couto wrote: > > Dear ListMembers, > > The last issue of RevUp has an article titled "LiveCloud Part 2". I seem to have missed part 1 - could someone post me a link? And just what is LiveCloud? Is it related to this site?: > > http://livecloud.com > > -- > Igor Couto > Sydney, Australia > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andrew at ctech.me Fri Aug 8 21:44:46 2014 From: andrew at ctech.me (Andrew Kluthe) Date: Fri, 8 Aug 2014 20:44:46 -0500 Subject: What is LiveCloud? In-Reply-To: References: <6A44AFDC-1504-4189-B182-75DD3EFE1D87@semperuna.com> Message-ID: I was just coming here to ask about this too. I hadn't seen it mentioned before and as someone who's used mongodb with livecode applications in the past I am intrigued. Can someone share a little bit about the technology stack behind the scenes of livecloud? A couple of questions I have: What kind of database or storage system does livecloud use on the backend? Are livecloud calls from within livecode non-blocking (asynchronous)? (the biggest things getting in my way with working with a rest api in front of a mongodb was blocking liburl calls) What does the means of communicating with livecloud look like under the hood? (is it a web service underneath or a direct socket connection?) On Fri, Aug 8, 2014 at 7:09 PM, Skip Kimpel wrote: > Here is a recent link: > > http://livecloud.io/we-have-gone-beta/ > > > On Aug 8, 2014, at 8:02 PM, Igor de Oliveira Couto > wrote: > > > > Dear ListMembers, > > > > The last issue of RevUp has an article titled "LiveCloud Part 2". I seem > to have missed part 1 - could someone post me a link? And just what is > LiveCloud? Is it related to this site?: > > > > http://livecloud.com > > > > -- > > Igor Couto > > Sydney, Australia > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Regards, Andrew Kluthe andrew at ctech.me From cszasz at me.com Fri Aug 8 22:17:45 2014 From: cszasz at me.com (Charles Szasz) Date: Fri, 08 Aug 2014 20:17:45 -0600 Subject: Using an internal file for PDF for manual Message-ID: I have added a PDF file to my app. I want to show the PDF manual using the user's PDF application Preview on the Mac and Acrobat Reader on Windows. So far I have unable to use the Launch Document because of not knowing the path for a PDF added to the app. Does anybody know how to script to show a PDF manual from a menu? Sent from my iPad From larry at significantplanet.org Fri Aug 8 22:20:31 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Fri, 8 Aug 2014 20:20:31 -0600 Subject: Using an internal file for PDF for manual References: Message-ID: Hi Charles, I use a PDF in my app for a manual. In windows, at least, if you launch the PDF document and the user has Adobe Reader installed, then it is the default program for a PDF file and will automatically launch it. I don't know how it works on a Mac. Larry ----- Original Message ----- From: "Charles Szasz" To: Sent: Friday, August 08, 2014 8:17 PM Subject: Using an internal file for PDF for manual >I have added a PDF file to my app. I want to show the PDF manual using the >user's PDF application Preview on the Mac and Acrobat Reader on Windows. So >far I have unable to use the Launch Document because of not knowing the >path for a PDF added to the app. Does anybody know how to script to show a >PDF manual from a menu? > > Sent from my iPad > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From cszasz at me.com Fri Aug 8 23:17:31 2014 From: cszasz at me.com (Charles Szasz) Date: Fri, 08 Aug 2014 21:17:31 -0600 Subject: Using an internal file for PDF for manual Message-ID: <873E3AB0-0031-4A46-A5CF-96977F2BD905@me.com> Larry, How did you script this for windows? Sent from my iPad From larry at significantplanet.org Sat Aug 9 00:14:33 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Fri, 8 Aug 2014 22:14:33 -0600 Subject: Using an internal file for PDF for manual References: <873E3AB0-0031-4A46-A5CF-96977F2BD905@me.com> Message-ID: <7A101F21A15E47AC88127BDB7AA07C2A@userd204a4d61c> Hi Charles, I used the following: launch document "myHelp.pdf" if the result <> empty then answer the result with "OK" end if With the launch document command, the result will be empty unless an error occurred. If no error occurs, the default program will launch the document. So I added the "if" statement at the end to show the error if one occurred. I hope that helps! Larry ----- Original Message ----- From: "Charles Szasz" To: Sent: Friday, August 08, 2014 9:17 PM Subject: Re: Using an internal file for PDF for manual > Larry, > > How did you script this for windows? > > Sent from my iPad > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From cszasz at me.com Sat Aug 9 01:11:05 2014 From: cszasz at me.com (Charles Szasz) Date: Fri, 08 Aug 2014 23:11:05 -0600 Subject: Using an internal file for PDF for manual Message-ID: <7748699C-28EC-45BD-879B-D0577C30639A@me.com> Larry, I tried that script earlier (without the script for Ok button) before I posted a message for help. It did not work. In the standalone settings, I added the PDF Manual as a file to my settings. I will go back and see why it did not work. Sent from my iPad From larry at significantplanet.org Sat Aug 9 01:40:36 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Fri, 8 Aug 2014 23:40:36 -0600 Subject: Using an internal file for PDF for manual References: <7748699C-28EC-45BD-879B-D0577C30639A@me.com> Message-ID: Hi Charles, I don't know if it makes a difference, but I have the PDF file in a folder "myData" which I set as the default folder when I start up my app. So LC goes to that default folder to launch the document and uses the default Windows program to do so. Good luck! Larry ----- Original Message ----- From: "Charles Szasz" To: Sent: Friday, August 08, 2014 11:11 PM Subject: Re: Using an internal file for PDF for manual > Larry, > > I tried that script earlier (without the script for Ok button) before I > posted a message for help. It did not work. In the standalone settings, I > added the PDF Manual as a file to my settings. I will go back and see why > it did not work. > > Sent from my iPad > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From larry at significantplanet.org Sat Aug 9 02:24:24 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sat, 9 Aug 2014 00:24:24 -0600 Subject: sorting Message-ID: I have a field I want to sort. Each line has 4 words. I want to sort by the first word (ascending) and then do a 2nd sort by the 3rd word without changing the order of the first word. Example: apple box apple pie apple zoo baby blue baby rattle baby zoo etc. TIA Larry From bvg at mac.com Sat Aug 9 02:58:54 2014 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Sat, 09 Aug 2014 08:58:54 +0200 Subject: sorting In-Reply-To: References: Message-ID: sort theList by word 2 of each sort theList by word 1 of each sort order is retained in-between commands, that's why it works. On 09 Aug 2014, at 08:24, larry at significantplanet.org wrote: > I have a field I want to sort. > Each line has 4 words. > I want to sort by the first word (ascending) and then do a 2nd sort by the 3rd word without changing the order of the first word. > > Example: > > apple box > apple pie > apple zoo > baby blue > baby rattle > baby zoo > etc. > > TIA > Larry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From larry at significantplanet.org Sat Aug 9 04:14:43 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sat, 9 Aug 2014 02:14:43 -0600 Subject: sorting References: Message-ID: <389FEBF438F84402808710217FDBE00E@userd204a4d61c> Sorry, that doesn't work ----- Original Message ----- From: "Bj?rnke von Gierke" To: "How to use LiveCode" Sent: Saturday, August 09, 2014 12:58 AM Subject: Re: sorting > sort theList by word 2 of each > sort theList by word 1 of each > > sort order is retained in-between commands, that's why it works. > > On 09 Aug 2014, at 08:24, larry at significantplanet.org wrote: > >> I have a field I want to sort. >> Each line has 4 words. >> I want to sort by the first word (ascending) and then do a 2nd sort by >> the 3rd word without changing the order of the first word. >> >> Example: >> >> apple box >> apple pie >> apple zoo >> baby blue >> baby rattle >> baby zoo >> etc. >> >> TIA >> Larry >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Aug 9 04:57:44 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 09 Aug 2014 11:57:44 +0300 Subject: Sorry In-Reply-To: <46F765F3-D1D9-430F-B959-8F886C266704@livecode.org> References: <46F765F3-D1D9-430F-B959-8F886C266704@livecode.org> Message-ID: <53E5E288.3080405@gmail.com> Dear Hermann, et al, sic transit gloria mundi, The Use-List is full of prickly types [whether geniuses, would-be geniuses, people with complexes because they know they are not geniuses, morons plain-and-simple, and normal folk who got out of bed the wrong side that day]: but the whole world is like that, so roll with the punches, be forgiving, and with any luck you won't get chased round the town by an axe-wielding Livecode programmer . . . LOL Life's too short baby! Almost all of the people who write on the Use-List, "personality defects" or not, have got something good to bring to the table: and that is what we should focus on. Richmond. On 9.08.2014 02:09, hh wrote: > 'phaworth' posted in the forum: >> @-hh >> Since you asked for judgement on your level of impertinence, I find >> it to be extreme, rude, condesending and insulting. Not only in this >> post but in others both here and in your mailing list posts. >> > No cite, no quote. As we never had contact in the forum I thought about which post in the mailing list he could mean. Possibly sentence 2 of paragraph 1 of this answer to jacque? > >> Certainly there are some geniuses here, probably I know most (I read >> this year's archives last week). But there are also some who believe >> they are genius and being immune to feedback would others also make >> believe this. >> I'm well exercised in bluff detection, one hasn't to be genius for >> that. And you never bluff, that's why you have this good reputation. > I hereby assert, that I didn't mean him by second sentence of the first paragraph (also not by first sentence). > > And I ask everybody who feels to be meant by second sentence of this first paragraph to accept my apologies, sorry. And to be happy: This is my last post here. > > Hermann > From marc.vancauwenberghe at pandora.be Sat Aug 9 05:09:21 2014 From: marc.vancauwenberghe at pandora.be (Marc Van Cauwenberghe) Date: Sat, 9 Aug 2014 11:09:21 +0200 Subject: Sorry In-Reply-To: <53E5E288.3080405@gmail.com> References: <46F765F3-D1D9-430F-B959-8F886C266704@livecode.org> <53E5E288.3080405@gmail.com> Message-ID: Like. Op 9-aug.-2014, om 10:57 heeft Richmond het volgende geschreven: > Dear Hermann, et al, sic transit gloria mundi, > > The Use-List is full of prickly types [whether geniuses, would-be geniuses, people with complexes because they know they are not geniuses, morons plain-and-simple, and normal folk who got out of bed the wrong side that day]: but the whole world is like that, so roll with the punches, be forgiving, and with any luck you won't get chased round the town by an axe-wielding Livecode programmer . . . LOL > > Life's too short baby! > > Almost all of the people who write on the Use-List, "personality defects" or not, have got > something good to bring to the table: and that is what we should focus on. > > Richmond. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Sat Aug 9 05:51:22 2014 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 09 Aug 2014 10:51:22 +0100 Subject: sorting In-Reply-To: <389FEBF438F84402808710217FDBE00E@userd204a4d61c> References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c> Message-ID: <53E5EF1A.7080703@tweedly.net> Larry, can you be more explicit about how it doesn't work ? Actually, can you explain better what you want to do ? You said you want to sort by the 2nd and then the 3rd word - but gave an example that appeared to show sorting by 2nd and 1st - and not even have a 3rd word in any line. So how about a slightly less terse description, and an example showing both "before" and "after" and hopefully we can get you to where you want .... -- Alex. On 09/08/2014 09:14, larry at significantplanet.org wrote: > Sorry, that doesn't work > > ----- Original Message ----- From: "Bj?rnke von Gierke" > To: "How to use LiveCode" > Sent: Saturday, August 09, 2014 12:58 AM > Subject: Re: sorting > > >> sort theList by word 2 of each >> sort theList by word 1 of each >> >> sort order is retained in-between commands, that's why it works. >> >> On 09 Aug 2014, at 08:24, larry at significantplanet.org wrote: >> >>> I have a field I want to sort. >>> Each line has 4 words. >>> I want to sort by the first word (ascending) and then do a 2nd sort >>> by the 3rd word without changing the order of the first word. >>> >>> Example: >>> >>> apple box >>> apple pie >>> apple zoo >>> baby blue >>> baby rattle >>> baby zoo >>> etc. >>> >>> TIA >>> Larry >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From effendi at wanadoo.fr Sat Aug 9 07:21:56 2014 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Sat, 9 Aug 2014 13:21:56 +0200 Subject: Using an internal file for PDF for manual Message-ID: <0D204DF8-6779-49B5-9C4D-03149312EE32@wanadoo.fr> Hi from Beautiful Brittany, FAO Charles Szasz, I hate Adobe Reader, and don?t really go for Preview (except for its useful options). I use SKIM (unfortunately this app is Mac Only), great appleScript interface, and as user friendly as you get. I open files from a LiveCode script like this : (Care with line wraps) put "set GVFilePath to POSIX file " & quote & GVDataPath & field "MyTitle" & quote into line 1 of GVMasterScript put "tell application " & quote & "Skim" & quote into line 2 of GVMasterScript put "set myDocument to open GVFilePath" into line 3 of GVMasterScript put "tell myDocument" into line 4 of GVMasterScript if field "MyPagesC" is empty then -- Do we have any page numbers ? put 1 into GVPage ? If not, set to default - Page 1. else put char 1 to 3 of field "MyPagesC" into GVPage ? such as ?1.5? which is desired text size. end if if field "MyPageC" = 2 then put round(GVPage/2 + 1) into GVPage ? I wonder why I did this ???? if field MyScaleC is empty then put "2.0" into field MyScaleC ? Default text size for me. put field MyScaleC into LVScaleFactor put "set view settings to {scale factor:" & LVScaleFactor & ", auto scales:false}" into line 5 of GVMasterScript put "go to page " & GVPage into line 6 of GVMasterScript put "end tell" into line 7 of GVMasterScript put "activate" into line 8 of GVMasterScript put "end tell" into line 9 of GVMasterScript -- -- AppleScript is now complete. So execute it ! -- do GVMasterScript as AppleScript Note : field ?MyTitle? is the title of my pdf file (in my liveCode Stack), the file I want to open. GVMasterScript is the script I build in line and feed to appleScript. GVDataPath is a global variable containing the partial path to my LiveCode folder containing my file (end with ?/?) GVFilePath is a global variable containing my complete file path (including the file suffix). field ?MyPageC? is the page of the pdf (in my liveCode stack) I want to go directly to. field ?MyScaleC? is the scale of the pdf file (in my liveCode stack) as I want it displayed (I use scales of 0.4, 0.5, 0.7, 1.0, 1.5, or 2.0, depending on the text size I want on the screen) The appleScript will launch SKIM with the required parameters (there are more possible parameters that I don?t use). The pdf file will be displayed in the foreground, in front of your LiveCode Stack. You can find more info in Skim/appleScript (if you are patient) when you google ?appleScript for SKIM?. I hope you find this useful. Francis From larry at significantplanet.org Sat Aug 9 07:56:00 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sat, 9 Aug 2014 05:56:00 -0600 Subject: sorting References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c> <53E5EF1A.7080703@tweedly.net> Message-ID: Hello Alex, OK, in my previous email I gave some hypothetical data. In my app I actually have a field where the first word is either Advanced or Beginner The 2nd word is a number ranging from 2 to 25, showing how many items. There are some other words after those, but I'm not concerned about them. As lines are added to the field, they are in jumbled order. What I want is this on the sort: (All the Beginners in numeric order, followed by all the Advanced in numeric order) Beginner 1 Beginner 2 Beginner 3 (etc.) Advanced 1 Advanced 2 Advanced 3 (etc.) Thanks, Larry ----- Original Message ----- From: "Alex Tweedly" To: Sent: Saturday, August 09, 2014 3:51 AM Subject: Re: sorting Larry, can you be more explicit about how it doesn't work ? Actually, can you explain better what you want to do ? You said you want to sort by the 2nd and then the 3rd word - but gave an example that appeared to show sorting by 2nd and 1st - and not even have a 3rd word in any line. So how about a slightly less terse description, and an example showing both "before" and "after" and hopefully we can get you to where you want .... -- Alex. On 09/08/2014 09:14, larry at significantplanet.org wrote: > Sorry, that doesn't work > > ----- Original Message ----- From: "Bj?rnke von Gierke" > To: "How to use LiveCode" > Sent: Saturday, August 09, 2014 12:58 AM > Subject: Re: sorting > > >> sort theList by word 2 of each >> sort theList by word 1 of each >> >> sort order is retained in-between commands, that's why it works. >> >> On 09 Aug 2014, at 08:24, larry at significantplanet.org wrote: >> >>> I have a field I want to sort. >>> Each line has 4 words. >>> I want to sort by the first word (ascending) and then do a 2nd sort by >>> the 3rd word without changing the order of the first word. >>> >>> Example: >>> >>> apple box >>> apple pie >>> apple zoo >>> baby blue >>> baby rattle >>> baby zoo >>> etc. >>> >>> TIA >>> Larry >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Sat Aug 9 09:59:13 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sat, 9 Aug 2014 09:59:13 -0400 (EDT) Subject: sorting In-Reply-To: <53E5EF1A.7080703@tweedly.net> References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c> <53E5EF1A.7080703@tweedly.net> Message-ID: <8D181F13CC5F9C6-F78-E67C@webmail-vm083.sysops.aol.com> Way back from 1987, and undocumented everywhere except in the user notes in the dictionary here, is this; Multiple stable sorts may be implemented directly by concatenating sortKeys: sort container by sortKey1 & sortKey2 & sortKey3... Sortkey order determines the sorting sequence So you can: sort lines of yourList by word 1 of each & word 3 of each Craig Newman -----Original Message----- From: Alex Tweedly To: use-livecode Sent: Sat, Aug 9, 2014 5:52 am Subject: Re: sorting Larry, can you be more explicit about how it doesn't work ? Actually, can you explain better what you want to do ? You said you want to sort by the 2nd and then the 3rd word - but gave an example that appeared to show sorting by 2nd and 1st - and not even have a 3rd word in any line. So how about a slightly less terse description, and an example showing both "before" and "after" and hopefully we can get you to where you want .... -- Alex. On 09/08/2014 09:14, larry at significantplanet.org wrote: > Sorry, that doesn't work > > ----- Original Message ----- From: "Bj?rnke von Gierke" > To: "How to use LiveCode" > Sent: Saturday, August 09, 2014 12:58 AM > Subject: Re: sorting > > >> sort theList by word 2 of each >> sort theList by word 1 of each >> >> sort order is retained in-between commands, that's why it works. >> >> On 09 Aug 2014, at 08:24, larry at significantplanet.org wrote: >> >>> I have a field I want to sort. >>> Each line has 4 words. >>> I want to sort by the first word (ascending) and then do a 2nd sort >>> by the 3rd word without changing the order of the first word. >>> >>> Example: >>> >>> apple box >>> apple pie >>> apple zoo >>> baby blue >>> baby rattle >>> baby zoo >>> etc. >>> >>> TIA >>> Larry >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From cszasz at me.com Sat Aug 9 10:44:00 2014 From: cszasz at me.com (Charles Szasz) Date: Sat, 09 Aug 2014 08:44:00 -0600 Subject: Using an internal file for PDF for manual Message-ID: <3F4D5377-26C9-4A59-91D9-CF83DD599324@me.com> Francis, Thanks so much for your suggestions! I will take a look at SKIM. Sent from my iPad From dave at applicationinsight.com Sat Aug 9 10:46:56 2014 From: dave at applicationinsight.com (Dave Kilroy) Date: Sat, 9 Aug 2014 07:46:56 -0700 (PDT) Subject: Sorry In-Reply-To: <53E5E288.3080405@gmail.com> References: <46F765F3-D1D9-430F-B959-8F886C266704@livecode.org> <53E5E288.3080405@gmail.com> Message-ID: <1407595616353-4681867.post@n4.nabble.com> like #2 Richmond Mathewson-2 wrote > Dear Hermann, et al, sic transit gloria mundi, > > The Use-List is full of prickly types [whether geniuses, would-be > geniuses, people with complexes because they know they are not geniuses, > morons plain-and-simple, and normal folk who got out of bed the wrong > side that day]: but the whole world is like that, so roll with the > punches, be forgiving, and with any luck you won't get chased round the > town by an axe-wielding Livecode programmer . . . LOL > > Life's too short baby! ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sorry-tp4681846p4681867.html Sent from the Revolution - User mailing list archive at Nabble.com. From paulhibbert at mac.com Sat Aug 9 11:57:34 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Sat, 09 Aug 2014 08:57:34 -0700 Subject: sorting In-Reply-To: References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c> <53E5EF1A.7080703@tweedly.net> Message-ID: <901F7148-42A4-447A-926A-2A3544EF5D41@mac.com> Larry, If I understand right, just change the direction of the second sort to put the beginners first, this worked for my test: on mouseUp sort lines of fld "sortField" by word 2 of each sort lines of fld "sortField" descending by word 1 of each end mouseUp Paul On 2014-08-09, at 4:56 AM, larry at significantplanet.org wrote: > Hello Alex, > OK, in my previous email I gave some hypothetical data. > In my app I actually have a field where the first word is either Advanced or Beginner > The 2nd word is a number ranging from 2 to 25, showing how many items. > There are some other words after those, but I'm not concerned about them. > > As lines are added to the field, they are in jumbled order. > What I want is this on the sort: (All the Beginners in numeric order, followed by all the Advanced in numeric order) > Beginner 1 > Beginner 2 > Beginner 3 (etc.) > Advanced 1 > Advanced 2 > Advanced 3 (etc.) > > Thanks, > Larry > > > ----- Original Message ----- From: "Alex Tweedly" > To: > Sent: Saturday, August 09, 2014 3:51 AM > Subject: Re: sorting > > > Larry, > can you be more explicit about how it doesn't work ? > > Actually, can you explain better what you want to do ? You said you want > to sort by the 2nd and then the 3rd word - but gave an example that > appeared to show sorting by 2nd and 1st - and not even have a 3rd word > in any line. > > So how about a slightly less terse description, and an example showing > both "before" and "after" and hopefully we can get you to where you want > .... > > -- Alex. > > > On 09/08/2014 09:14, larry at significantplanet.org wrote: >> Sorry, that doesn't work >> >> ----- Original Message ----- From: "Bj?rnke von Gierke" >> To: "How to use LiveCode" >> Sent: Saturday, August 09, 2014 12:58 AM >> Subject: Re: sorting >> >> >>> sort theList by word 2 of each >>> sort theList by word 1 of each >>> >>> sort order is retained in-between commands, that's why it works. >>> >>> On 09 Aug 2014, at 08:24, larry at significantplanet.org wrote: >>> >>>> I have a field I want to sort. >>>> Each line has 4 words. >>>> I want to sort by the first word (ascending) and then do a 2nd sort by the 3rd word without changing the order of the first word. >>>> >>>> Example: >>>> >>>> apple box >>>> apple pie >>>> apple zoo >>>> baby blue >>>> baby rattle >>>> baby zoo >>>> etc. >>>> >>>> TIA >>>> Larry >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Aug 9 12:20:58 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 9 Aug 2014 09:20:58 -0700 Subject: Using an internal file for PDF for manual In-Reply-To: <7748699C-28EC-45BD-879B-D0577C30639A@me.com> References: <7748699C-28EC-45BD-879B-D0577C30639A@me.com> Message-ID: On Fri, Aug 8, 2014 at 10:11 PM, Charles Szasz wrote: > I tried that script earlier (without the script for Ok button) before I > posted a message for help. It did not work. I I use that for every error- check that shouldn't happen. I have a "panic" function for it, and the choices of "continue" and "break", with the latter hitting a breakpoint from an if/then so that I can single-step. e.g., if theRes is not a number then panic "something bad happened" & cr & cr & theRes end if so I find out instantly what horrible thing went wrong -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From larry at significantplanet.org Sat Aug 9 12:28:11 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sat, 9 Aug 2014 10:28:11 -0600 Subject: sorting References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c><53E5EF1A.7080703@tweedly.net> <8D181F13CC5F9C6-F78-E67C@webmail-vm083.sysops.aol.com> Message-ID: <2B3C6D89046E41F4802E14F80A177129@userd204a4d61c> Hello Craig, That doesn't work either. When I use the following line, it works: sort lines of field myList numeric by word 2 of each But then when I try to do two sorts with the following line, I get the error message below: sort lines of field myList descending by word 1 of each & numeric by word 2 of each (Error) button "Button": execution error at line 2 (Handler: can't find handler) near "by", char 74 If I leave out the second "by" I get a compile error saying I need to put it in. At this point I am believing that there are lots of theories about how to make it work, but nobody actually knows how to make it work. Thank you anyway, Larry ----- Original Message ----- From: To: Sent: Saturday, August 09, 2014 7:59 AM Subject: Re: sorting > Way back from 1987, and undocumented everywhere except in the user notes in the dictionary here, is this; > > > > Multiple stable sorts may be implemented directly by concatenating sortKeys: > > > sort container by sortKey1 & sortKey2 & sortKey3... > > > Sortkey order determines the sorting sequence > > > So you can: > > > sort lines of yourList by word 1 of each & word 3 of each > > > Craig Newman > > > > -----Original Message----- > From: Alex Tweedly > To: use-livecode > Sent: Sat, Aug 9, 2014 5:52 am > Subject: Re: sorting > > > Larry, > can you be more explicit about how it doesn't work ? > > Actually, can you explain better what you want to do ? You said you want > to sort by the 2nd and then the 3rd word - but gave an example that > appeared to show sorting by 2nd and 1st - and not even have a 3rd word > in any line. > > So how about a slightly less terse description, and an example showing > both "before" and "after" and hopefully we can get you to where you want > .... > > -- Alex. > > > On 09/08/2014 09:14, larry at significantplanet.org wrote: >> Sorry, that doesn't work >> >> ----- Original Message ----- From: "Bj?rnke von Gierke" >> To: "How to use LiveCode" >> Sent: Saturday, August 09, 2014 12:58 AM >> Subject: Re: sorting >> >> >>> sort theList by word 2 of each >>> sort theList by word 1 of each >>> >>> sort order is retained in-between commands, that's why it works. >>> >>> On 09 Aug 2014, at 08:24, larry at significantplanet.org wrote: >>> >>>> I have a field I want to sort. >>>> Each line has 4 words. >>>> I want to sort by the first word (ascending) and then do a 2nd sort >>>> by the 3rd word without changing the order of the first word. >>>> >>>> Example: >>>> >>>> apple box >>>> apple pie >>>> apple zoo >>>> baby blue >>>> baby rattle >>>> baby zoo >>>> etc. >>>> >>>> TIA >>>> Larry >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From larry at significantplanet.org Sat Aug 9 12:33:40 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sat, 9 Aug 2014 10:33:40 -0600 Subject: sorting - THANK YOU PAUL!! References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c><53E5EF1A.7080703@tweedly.net> <901F7148-42A4-447A-926A-2A3544EF5D41@mac.com> Message-ID: <0C4B40DC7E6B4DF7B3A520946E0BD211@userd204a4d61c> Hi Paul, After trying MANY suggestions and my own trial and ERRORS, you finally provided me with a solution that actually works. I very much appreciate that you actually tested it. I have the feeling that many times in this list well-meaning people post "solutions" that they have not tested and therefore often do not work. Thanks again, Larry ----- Original Message ----- From: "Paul Hibbert" To: "How to use LiveCode" Sent: Saturday, August 09, 2014 9:57 AM Subject: Re: sorting Larry, If I understand right, just change the direction of the second sort to put the beginners first, this worked for my test: on mouseUp sort lines of fld "sortField" by word 2 of each sort lines of fld "sortField" descending by word 1 of each end mouseUp Paul On 2014-08-09, at 4:56 AM, larry at significantplanet.org wrote: > Hello Alex, > OK, in my previous email I gave some hypothetical data. > In my app I actually have a field where the first word is either Advanced > or Beginner > The 2nd word is a number ranging from 2 to 25, showing how many items. > There are some other words after those, but I'm not concerned about them. > > As lines are added to the field, they are in jumbled order. > What I want is this on the sort: (All the Beginners in numeric order, > followed by all the Advanced in numeric order) > Beginner 1 > Beginner 2 > Beginner 3 (etc.) > Advanced 1 > Advanced 2 > Advanced 3 (etc.) > > Thanks, > Larry > > > ----- Original Message ----- From: "Alex Tweedly" > To: > Sent: Saturday, August 09, 2014 3:51 AM > Subject: Re: sorting > > > Larry, > can you be more explicit about how it doesn't work ? > > Actually, can you explain better what you want to do ? You said you want > to sort by the 2nd and then the 3rd word - but gave an example that > appeared to show sorting by 2nd and 1st - and not even have a 3rd word > in any line. > > So how about a slightly less terse description, and an example showing > both "before" and "after" and hopefully we can get you to where you want > .... > > -- Alex. > > > On 09/08/2014 09:14, larry at significantplanet.org wrote: >> Sorry, that doesn't work >> >> ----- Original Message ----- From: "Bj?rnke von Gierke" >> To: "How to use LiveCode" >> Sent: Saturday, August 09, 2014 12:58 AM >> Subject: Re: sorting >> >> >>> sort theList by word 2 of each >>> sort theList by word 1 of each >>> >>> sort order is retained in-between commands, that's why it works. >>> >>> On 09 Aug 2014, at 08:24, larry at significantplanet.org wrote: >>> >>>> I have a field I want to sort. >>>> Each line has 4 words. >>>> I want to sort by the first word (ascending) and then do a 2nd sort by >>>> the 3rd word without changing the order of the first word. >>>> >>>> Example: >>>> >>>> apple box >>>> apple pie >>>> apple zoo >>>> baby blue >>>> baby rattle >>>> baby zoo >>>> etc. >>>> >>>> TIA >>>> Larry >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bvg at mac.com Sat Aug 9 12:33:52 2014 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Sat, 09 Aug 2014 18:33:52 +0200 Subject: Selling a ticket for RevCon '14 In-Reply-To: References: Message-ID: <59371412-2E5E-4E97-BF13-0F74962DEDCA@mac.com> Hmm, so everyone already has their ticket? Just to be clear, this is more then a 30% price reduction compared to the price from RunRev on the website. On 08 Aug 2014, at 03:37, Bj?rnke von Gierke wrote: > Hi > > Due to Family business, I'll be unable to go to America this year. Therefore I have a superfluous Premium 4 Day Ticket to RunRevLive, which I am selling for 1700.- USD (or equivalent other currency). First come first serve, please email me directly. > > Bj?rnke > > -- > > Use an alternative Dictionary viewer: > http://bjoernke.com/bvgdocu/ > > Chat with other RunRev developers: > http://bjoernke.com/chatrev/ > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paulhibbert at mac.com Sat Aug 9 12:50:06 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Sat, 09 Aug 2014 09:50:06 -0700 Subject: sorting - THANK YOU PAUL!! In-Reply-To: <0C4B40DC7E6B4DF7B3A520946E0BD211@userd204a4d61c> References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c> <53E5EF1A.7080703@tweedly.net> <901F7148-42A4-447A-926A-2A3544EF5D41@mac.com> <0C4B40DC7E6B4DF7B3A520946E0BD211@userd204a4d61c> Message-ID: <3ECE7AD2-471A-4041-8089-D883637E4195@mac.com> You're more than welcome. I often see the problems posted here as challenges, some I have no chance with (they are way over my head), some I learn from other's answers, some I get totally wrong. Occasionally I see what I think may be a solution, but I usually have to do a test first to be sure I understand and don't make too much of a fool of myself in public - sometimes get that wrong too! Most are already answered by the time I've worked out a reply, but I still learn. Anyway, I'm always pleased to help if I can as are most of the others on this list, it's a great place to learn more about the intricacies of developing with LiveCode. Paul On 2014-08-09, at 9:33 AM, larry at significantplanet.org wrote: > Hi Paul, > After trying MANY suggestions and my own trial and ERRORS, you finally provided me with a solution that actually works. > I very much appreciate that you actually tested it. > I have the feeling that many times in this list well-meaning people post "solutions" that they have not tested and therefore often do not work. > Thanks again, > Larry > > ----- Original Message ----- From: "Paul Hibbert" > To: "How to use LiveCode" > Sent: Saturday, August 09, 2014 9:57 AM > Subject: Re: sorting > > > Larry, > > If I understand right, just change the direction of the second sort to put the beginners first, this worked for my test: > > on mouseUp > sort lines of fld "sortField" by word 2 of each > sort lines of fld "sortField" descending by word 1 of each > end mouseUp > > Paul > > On 2014-08-09, at 4:56 AM, larry at significantplanet.org wrote: > >> Hello Alex, >> OK, in my previous email I gave some hypothetical data. >> In my app I actually have a field where the first word is either Advanced or Beginner >> The 2nd word is a number ranging from 2 to 25, showing how many items. >> There are some other words after those, but I'm not concerned about them. >> >> As lines are added to the field, they are in jumbled order. >> What I want is this on the sort: (All the Beginners in numeric order, followed by all the Advanced in numeric order) >> Beginner 1 >> Beginner 2 >> Beginner 3 (etc.) >> Advanced 1 >> Advanced 2 >> Advanced 3 (etc.) >> >> Thanks, >> Larry >> >> >> ----- Original Message ----- From: "Alex Tweedly" >> To: >> Sent: Saturday, August 09, 2014 3:51 AM >> Subject: Re: sorting >> >> >> Larry, >> can you be more explicit about how it doesn't work ? >> >> Actually, can you explain better what you want to do ? You said you want >> to sort by the 2nd and then the 3rd word - but gave an example that >> appeared to show sorting by 2nd and 1st - and not even have a 3rd word >> in any line. >> >> So how about a slightly less terse description, and an example showing >> both "before" and "after" and hopefully we can get you to where you want >> .... >> >> -- Alex. >> >> >> On 09/08/2014 09:14, larry at significantplanet.org wrote: >>> Sorry, that doesn't work >>> >>> ----- Original Message ----- From: "Bj?rnke von Gierke" >>> To: "How to use LiveCode" >>> Sent: Saturday, August 09, 2014 12:58 AM >>> Subject: Re: sorting >>> >>> >>>> sort theList by word 2 of each >>>> sort theList by word 1 of each >>>> >>>> sort order is retained in-between commands, that's why it works. >>>> >>>> On 09 Aug 2014, at 08:24, larry at significantplanet.org wrote: >>>> >>>>> I have a field I want to sort. >>>>> Each line has 4 words. >>>>> I want to sort by the first word (ascending) and then do a 2nd sort by the 3rd word without changing the order of the first word. >>>>> >>>>> Example: >>>>> >>>>> apple box >>>>> apple pie >>>>> apple zoo >>>>> baby blue >>>>> baby rattle >>>>> baby zoo >>>>> etc. >>>>> >>>>> TIA >>>>> Larry >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Sat Aug 9 12:51:56 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 09 Aug 2014 12:51:56 -0400 Subject: sorting - THANK YOU PAUL!! In-Reply-To: <0C4B40DC7E6B4DF7B3A520946E0BD211@userd204a4d61c> References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c><53E5EF1A.7080703@tweedly.net> <901F7148-42A4-447A-926A-2A3544EF5D41@mac.com> <0C4B40DC7E6B4DF7B3A520946E0BD211@userd204a4d61c> Message-ID: I tried Craig?s approach, but with the correct syntax, not the condensed example he gave. I put your example list into field 1, and had this script in a button: on mouseUp put fld 1 into fld 2 sort fld 2 by word 1 of each & word 2 of each end mouseUp I then scrambled (manually) the lines of field 1. That consistently gives back the list in the sorted order you showed. Next I tried this script: on mouseUp repeat with a = 1 to 100 put item random(2) of "advanced,beginner" && random(100) into line a of fld 1 end repeat put fld 1 into fld 2 sort fld 2 by word 1 of each & word 2 of each end mouseUp Field 1 had a random list of advanced and beginner entries, with a level too, and after clicking the button field 2 showed the list as sorted. Now, it?s an alpha sort not a numeric sort, and Paul?s approach, which was the same as Bj?rnke?s, also fails in that way. So, Craig?s suggestion was good, just not with the syntax expanded. From larry at significantplanet.org Sat Aug 9 12:56:10 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sat, 9 Aug 2014 10:56:10 -0600 Subject: sorting - THANK YOU Colin!! References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c><53E5EF1A.7080703@tweedly.net><901F7148-42A4-447A-926A-2A3544EF5D41@mac.com><0C4B40DC7E6B4DF7B3A520946E0BD211@userd204a4d61c> Message-ID: Hi Colin Thanks for clarifying! Larry ----- Original Message ----- From: "Colin Holgate" To: "How to use LiveCode" Sent: Saturday, August 09, 2014 10:51 AM Subject: Re: sorting - THANK YOU PAUL!! I tried Craig?s approach, but with the correct syntax, not the condensed example he gave. I put your example list into field 1, and had this script in a button: on mouseUp put fld 1 into fld 2 sort fld 2 by word 1 of each & word 2 of each end mouseUp I then scrambled (manually) the lines of field 1. That consistently gives back the list in the sorted order you showed. Next I tried this script: on mouseUp repeat with a = 1 to 100 put item random(2) of "advanced,beginner" && random(100) into line a of fld 1 end repeat put fld 1 into fld 2 sort fld 2 by word 1 of each & word 2 of each end mouseUp Field 1 had a random list of advanced and beginner entries, with a level too, and after clicking the button field 2 showed the list as sorted. Now, it?s an alpha sort not a numeric sort, and Paul?s approach, which was the same as Bj?rnke?s, also fails in that way. So, Craig?s suggestion was good, just not with the syntax expanded. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Sat Aug 9 12:59:09 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sat, 9 Aug 2014 12:59:09 -0400 (EDT) Subject: sorting In-Reply-To: <2B3C6D89046E41F4802E14F80A177129@userd204a4d61c> References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c><53E5EF1A.7080703@tweedly.net> <8D181F13CC5F9C6-F78-E67C@webmail-vm083.sysops.aol.com> <2B3C6D89046E41F4802E14F80A177129@userd204a4d61c> Message-ID: <8D1820A5EFA070B-F78-F649@webmail-vm083.sysops.aol.com> Hi. You cannot put the "numeric" modifier in the second part of the sort. And only one "by", please. Try this: sort lines of field myList numeric descending by word 1 of each & word 2 of each -----Original Message----- From: larry To: How to use LiveCode Sent: Sat, Aug 9, 2014 12:28 pm Subject: Re: sorting Hello Craig, That doesn't work either. When I use the following line, it works: sort lines of field myList numeric by word 2 of each But then when I try to do two sorts with the following line, I get the error message below: sort lines of field myList descending by word 1 of each & numeric by word 2 of each (Error) button "Button": execution error at line 2 (Handler: can't find handler) near "by", char 74 If I leave out the second "by" I get a compile error saying I need to put it in. At this point I am believing that there are lots of theories about how to make it work, but nobody actually knows how to make it work. Thank you anyway, Larry ----- Original Message ----- From: To: Sent: Saturday, August 09, 2014 7:59 AM Subject: Re: sorting > Way back from 1987, and undocumented everywhere except in the user notes in the dictionary here, is this; > > > > Multiple stable sorts may be implemented directly by concatenating sortKeys: > > > sort container by sortKey1 & sortKey2 & sortKey3... > > > Sortkey order determines the sorting sequence > > > So you can: > > > sort lines of yourList by word 1 of each & word 3 of each > > > Craig Newman > > > > -----Original Message----- > From: Alex Tweedly > To: use-livecode > Sent: Sat, Aug 9, 2014 5:52 am > Subject: Re: sorting > > > Larry, > can you be more explicit about how it doesn't work ? > > Actually, can you explain better what you want to do ? You said you want > to sort by the 2nd and then the 3rd word - but gave an example that > appeared to show sorting by 2nd and 1st - and not even have a 3rd word > in any line. > > So how about a slightly less terse description, and an example showing > both "before" and "after" and hopefully we can get you to where you want > .... > > -- Alex. > > > On 09/08/2014 09:14, larry at significantplanet.org wrote: >> Sorry, that doesn't work >> >> ----- Original Message ----- From: "Bj?rnke von Gierke" >> To: "How to use LiveCode" >> Sent: Saturday, August 09, 2014 12:58 AM >> Subject: Re: sorting >> >> >>> sort theList by word 2 of each >>> sort theList by word 1 of each >>> >>> sort order is retained in-between commands, that's why it works. >>> >>> On 09 Aug 2014, at 08:24, larry at significantplanet.org wrote: >>> >>>> I have a field I want to sort. >>>> Each line has 4 words. >>>> I want to sort by the first word (ascending) and then do a 2nd sort >>>> by the 3rd word without changing the order of the first word. >>>> >>>> Example: >>>> >>>> apple box >>>> apple pie >>>> apple zoo >>>> baby blue >>>> baby rattle >>>> baby zoo >>>> etc. >>>> >>>> TIA >>>> Larry >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Sat Aug 9 13:03:18 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 09 Aug 2014 13:03:18 -0400 Subject: RELEASE: LiveCode 6.7 DP8 In-Reply-To: <0719F15F-FBF5-43FD-9202-D90F31D419C1@livecode.com> References: <0719F15F-FBF5-43FD-9202-D90F31D419C1@livecode.com> Message-ID: <8C34C0A7-1D20-4BD8-B75C-14D70EEACE4F@verizon.net> I hadn?t spotted the change (it was there in earlier builds), but I like the Sample Projects area at the bottom of the Welcome screen. From paulhibbert at mac.com Sat Aug 9 13:04:54 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Sat, 09 Aug 2014 10:04:54 -0700 Subject: sorting - THANK YOU PAUL!! In-Reply-To: References: <389FEBF438F84402808710217FDBE00E@userd204a4d61c> <53E5EF1A.7080703@tweedly.net> <901F7148-42A4-447A-926A-2A3544EF5D41@mac.com> <0C4B40DC7E6B4DF7B3A520946E0BD211@userd204a4d61c> Message-ID: Sorry, I did miss the "numeric" sort, it worked with a short example, but using Colin's test script, this also works: on mouseUp sort lines of fld "sortField" numeric by word 2 of each sort lines of fld "sortField" descending by word 1 of each end mouseUp Paul On 2014-08-09, at 9:51 AM, Colin Holgate wrote: > I tried Craig?s approach, but with the correct syntax, not the condensed example he gave. I put your example list into field 1, and had this script in a button: > > on mouseUp > put fld 1 into fld 2 > sort fld 2 by word 1 of each & word 2 of each > end mouseUp > > I then scrambled (manually) the lines of field 1. That consistently gives back the list in the sorted order you showed. > > Next I tried this script: > > on mouseUp > repeat with a = 1 to 100 > put item random(2) of "advanced,beginner" && random(100) into line a of fld 1 > end repeat > put fld 1 into fld 2 > sort fld 2 by word 1 of each & word 2 of each > end mouseUp > > Field 1 had a random list of advanced and beginner entries, with a level too, and after clicking the button field 2 showed the list as sorted. > > Now, it?s an alpha sort not a numeric sort, and Paul?s approach, which was the same as Bj?rnke?s, also fails in that way. > > So, Craig?s suggestion was good, just not with the syntax expanded. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Aug 9 13:43:20 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 9 Aug 2014 10:43:20 -0700 Subject: Libraries, v7, and pdf Message-ID: I have an absolute need to be able to stick pages in and out of pdf files. I don't need to change the number of pages; I'll just know that file realimage.pdf needs to replace page 3 of a pdf I create through livecode's pdf printing. I'll have 2-3 of these to insert into 30-90 pages of output. I'd *like* a solution that says the same across the various livecode platforms, and a library seems the way to go (OK, *much* better would be able to type print file realimage.pdf from 0,0 to 576,756 into 18,18,576+18,756 ), but that doesn't seem to be in the cards. So a library would seem to be the solution. Either public domain, bsd, or lgpl licensed. I've found itext, but that seems to be shooting a fly with a cannon (though I suppose I could trim 99% of its functionality out to save space . . .). My understanding is that we'll be able to wrap arbitrary libraries into version 7. Does anyone have any other suggestions as to other libraries (or another way to do this? I suppose I could have five separate scripting solutions by platform . . .) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Aug 9 13:50:01 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 9 Aug 2014 10:50:01 -0700 Subject: what is the property for the position of a scrolling field? In-Reply-To: <53D947E8.5040709@economy-x-talk.com> References: <53D947E8.5040709@economy-x-talk.com> Message-ID: On Wed, Jul 30, 2014 at 12:30 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Are you sure it is a standard scrolling field? Not a list field, for > example? If it is a list field, perhaps the last line gets selected when > the card opens. If it is a scrolling field, check the position of the text > insertion point right after the card opens. Is it at the end of the text? > Perhaps there is a script doing this. > It was indeed a scrolling list. And the bizarre behavior has stopped. The script doesn't seem to do it. > It would be best to find the real cause, but if you can't find it, you can > add a script to the card that selects before char 1 of the field or sets > the scroll of the field. > > on openCard > select before char 1 of fld x // option 1 > set the vScroll of fld x to 0 // option 2 > end openCard > vScroll is what I was looking for. (Like so many things, so obvious once I know the right word :) Thank you -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From mwieder at ahsoftware.net Sat Aug 9 13:52:04 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 9 Aug 2014 10:52:04 -0700 Subject: Sorry In-Reply-To: <53E5E288.3080405@gmail.com> References: <46F765F3-D1D9-430F-B959-8F886C266704@livecode.org> <53E5E288.3080405@gmail.com> Message-ID: <36-2080276296.20140809105204@ahsoftware.net> Richmond- +like #3 -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From m.schonewille at economy-x-talk.com Sat Aug 9 18:39:18 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 10 Aug 2014 00:39:18 +0200 Subject: ChatRev Message-ID: <53E6A316.80309@economy-x-talk.com> Hi guys, Bj?rnke just told me that a thunder storm took out his internet connection. DSL doesn't work anymore. Consequently, the ChatRev server has been disconnected. The equipment still works and Bj?rnke expects to be back on-line within a few days. If you would like to know more about ChatRev, go here: http://bjoernke.com/index.irev?target=chatrev but if you want to give it a try, please wait a few days until the connection gets fixed. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From mikedoub at gmail.com Sat Aug 9 18:51:53 2014 From: mikedoub at gmail.com (Michael Doub) Date: Sat, 9 Aug 2014 18:51:53 -0400 Subject: Libraries, v7, and pdf In-Reply-To: References: Message-ID: <7294FE62-22A9-4B0A-8B65-2D78650AFC71@gmail.com> Richard, I am looking for a similar library to merge pdf?s but have not yet found one. I did find pdftk (server version) that seems consistent across the different platforms but it is a native tool that you need to direct via a shell command. This might get you by if you can?t find a library. Free for non commercial use. Regards, Mike http://www.pdflabs.com/docs/pdftk-cli-examples/ On Aug 9, 2014, at 1:43 PM, Dr. Hawkins wrote: > I have an absolute need to be able to stick pages in and out of pdf files. > I don't need to change the number of pages; I'll just know that file > realimage.pdf needs to replace page 3 of a pdf I create through livecode's > pdf printing. I'll have 2-3 of these to insert into 30-90 pages of output. > > I'd *like* a solution that says the same across the various livecode > platforms, and a library seems the way to go (OK, *much* better would be > able to type > > print file realimage.pdf from 0,0 to 576,756 into 18,18,576+18,756 > > ), but that doesn't seem to be in the cards. > > So a library would seem to be the solution. Either public domain, bsd, or > lgpl licensed. > > I've found itext, but that seems to be shooting a fly with a cannon (though > I suppose I could trim 99% of its functionality out to save space . . .). > > My understanding is that we'll be able to wrap arbitrary libraries into > version 7. Does anyone have any other suggestions as to other libraries > (or another way to do this? I suppose I could have five separate scripting > solutions by platform . . .) > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Sat Aug 9 20:09:00 2014 From: sundown at pacifier.com (JB) Date: Sat, 9 Aug 2014 17:09:00 -0700 Subject: Standard Library Message-ID: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> Revolution Standard Library was put together by Richard Gaskin and Ken Ray and provides a lot of useful handlers. Is the code allowed to be used in a commercial program royalty free and if so what would be the proper information to list in the product showing it is being used and plus the proper credits. Has the library been updated recently and if so where can it be downloaded? John Balgenorth From sundown at pacifier.com Sat Aug 9 20:16:01 2014 From: sundown at pacifier.com (JB) Date: Sat, 9 Aug 2014 17:16:01 -0700 Subject: Standard Library In-Reply-To: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> Message-ID: <6F423541-C43B-4BB9-AC86-B9F3330FCDA6@pacifier.com> When I am asking about using the code I do not mean using all of the code I only mean using small parts of it which would be what appears it is made for. John Balgenorth On Aug 9, 2014, at 5:09 PM, JB wrote: > Revolution Standard Library was put together by > Richard Gaskin and Ken Ray and provides a lot > of useful handlers. > > Is the code allowed to be used in a commercial > program royalty free and if so what would be the > proper information to list in the product showing > it is being used and plus the proper credits. > > Has the library been updated recently and if so > where can it be downloaded? > > John Balgenorth > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Sat Aug 9 20:37:14 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 09 Aug 2014 17:37:14 -0700 Subject: Standard Library In-Reply-To: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> Message-ID: <53E6BEBA.20106@fourthworld.com> JB wrote: > Revolution Standard Library was put together by > Richard Gaskin and Ken Ray and provides a lot > of useful handlers. May I ask which ones you found useful? It might just motivate me to resume the project. > Is the code allowed to be used in a commercial > program royalty free and if so what would be the > proper information to list in the product showing > it is being used and plus the proper credits. If I recall correctly the intention was to release it under the MIT license - MIT is very permissive, and GPL-compatible; commercial work definitely allowed, as are proprietary modifications (though it would be cool if you chose to enhance anything there and shared it back so we can update the master). May I ask where you stumbled across it? If we still have that posted online we should definitely put a proper license on it. > Has the library been updated recently and if so > where can it be downloaded? We haven't updated it in a very long time. Both of us have been too busy with client projects, and to be honest it was one of those ideas that seemed simple enough when we got started, but the more we planned it out the more it became clear that to be truly useful it needed to break from its original goal as a library into more of a framework. Frameworks can be useful, but they tend to require a MUCH steeper learning curve to use, so we weren't sure how many people would be interested. For example, a lot of the stuff we were doing became dependent on a global array called gAppInfo, which made all sorts of other things much simpler to sort out (prefs subfolder names, the app name, version info, and more could be stored there for one-stop shopping for other handlers and even other interoperable tools). But that meant that you had to be sure to initialize that global at the beginning of your app's code. I like to think of a good library as a collection of discrete handlers, in which you can call anything you need but only when you need it, and you only need to learn the one you want to use. Once we start down the road of requiring users to learn all sorts of other things to use any of it at all, which worked out fine for Ken and I since for whatever odd reason we wound up adopting almost completely parallel architectural habits anyway. But for others to use, it seemed like it would get an ever smaller potential audience the deeper we went with it, so we've just been working on our own stuff since. In fact, you're the first person to bring it up in years. So maybe the idea can be resurrected.... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Sat Aug 9 21:08:42 2014 From: sundown at pacifier.com (JB) Date: Sat, 9 Aug 2014 18:08:42 -0700 Subject: Standard Library In-Reply-To: <53E6BEBA.20106@fourthworld.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: Hi Richard, Thanks for the fast reply. I was searching for a way to get file info so I could display things like the size and creation date and after using google I saw a post that you answered and you provided the handler to do it. Eventually I somehow ended up finding a download but I do not remember where. I do know that I downloade it many years ago so I already had it. As I mentioned the part I was interested in mainly was file info so I did not need to use the default folder to get the info. Concerning the framework or handlers I definitely would prefer to use handlers and then I can use what I want and not use globals. It seems to me a lot of people probably will eventually find a need for one or more of these handlers and the more made available the better off the community will be. My use will be simple at this time and will not really be a modification. I am going to be using ListMagic to put the name of a file the user will enter and I wanted to have the file listed in the same way the finder shows it. One of the things I am interested in seeing more handlers and examples is regex. It seems to be a very powerful tool with very few LiveCode examples. Another good idea would be the command line examples. I was able to get a command line to do what I wanted but this took many hours and needed s special way of writing it. Phil Davis has some examples that show how to access the manual in the terminal but those examples do not work with using the command line that I wanted which was xxd. A question about using command lines is can they be used in a commercial product and is there any possible reason a command line that is being used in LiveCode today won?t be able to be used for some reason or another in the future. If so this can cause a complete failure of a good program and is risky business to say the least. As for xxd the manual list the person who wrote it and he states anyone can use it free of charge but if you make money he would like you to share. I do not think he wants a royalty on a continuous basis but he would appreciate a little bit of money. thanks again, John Balgenorth On Aug 9, 2014, at 5:37 PM, Richard Gaskin wrote: > JB wrote: > >> Revolution Standard Library was put together by >> Richard Gaskin and Ken Ray and provides a lot >> of useful handlers. > > May I ask which ones you found useful? It might just motivate me to resume the project. > >> Is the code allowed to be used in a commercial >> program royalty free and if so what would be the >> proper information to list in the product showing >> it is being used and plus the proper credits. > > If I recall correctly the intention was to release it under the MIT license - MIT is very permissive, and GPL-compatible; commercial work definitely allowed, as are proprietary modifications (though it would be cool if you chose to enhance anything there and shared it back so we can update the master). > > May I ask where you stumbled across it? If we still have that posted online we should definitely put a proper license on it. > >> Has the library been updated recently and if so >> where can it be downloaded? > > We haven't updated it in a very long time. Both of us have been too busy with client projects, and to be honest it was one of those ideas that seemed simple enough when we got started, but the more we planned it out the more it became clear that to be truly useful it needed to break from its original goal as a library into more of a framework. Frameworks can be useful, but they tend to require a MUCH steeper learning curve to use, so we weren't sure how many people would be interested. > > For example, a lot of the stuff we were doing became dependent on a global array called gAppInfo, which made all sorts of other things much simpler to sort out (prefs subfolder names, the app name, version info, and more could be stored there for one-stop shopping for other handlers and even other interoperable tools). But that meant that you had to be sure to initialize that global at the beginning of your app's code. > > I like to think of a good library as a collection of discrete handlers, in which you can call anything you need but only when you need it, and you only need to learn the one you want to use. > > Once we start down the road of requiring users to learn all sorts of other things to use any of it at all, which worked out fine for Ken and I since for whatever odd reason we wound up adopting almost completely parallel architectural habits anyway. But for others to use, it seemed like it would get an ever smaller potential audience the deeper we went with it, so we've just been working on our own stuff since. > > In fact, you're the first person to bring it up in years. So maybe the idea can be resurrected.... > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Sat Aug 9 21:40:38 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 9 Aug 2014 18:40:38 -0700 Subject: Standard Library In-Reply-To: <53E6BEBA.20106@fourthworld.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: <58-2052162723.20140809184038@ahsoftware.net> Richard- Saturday, August 9, 2014, 5:37:14 PM, you wrote: > May I ask where you stumbled across it? If we still have that posted > online we should definitely put a proper license on it. It is indeed still online: >> Has the library been updated recently and if so >> where can it be downloaded? > We haven't updated it in a very long time. 26 April 2007, to be exact. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From lan.kc.macmail at gmail.com Sat Aug 9 23:15:49 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 10 Aug 2014 11:15:49 +0800 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: On Sun, Aug 10, 2014 at 9:08 AM, JB wrote: > One of the things I am interested in seeing more handlers > and examples is regex. It seems to be a very powerful > tool with very few LiveCode examples. The matchChunk and matchText functions are pretty straight forward to use, it's building the regex that can be difficult if you don't live with it regularly. If what you really need is examples of regex then I highly recommend this online regex builder: http://regex101.com/#pcre The thing I like about it is that you can choose the 'Flavor' of regex it uses, so unlike other online regex builders that use Javascript, you can choose the same library that Livecode uses: PCRE. So if it works on this site it should work in LC. Even better, if you click on the Community tab at the top of the page it will present you with a list of 100s and 100s of community provided examples of regex, explains what they do, and it's as simple as copy and paste into your matchChunk or matchText function to test in LC. I will warn you though of one gotcha that is easy to trip on if you're an occasional user of regex + LC. The standard matchText function looks like this: matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar) so any matches within () will be placed in your variable place holder. In regex the | character is used as OR so you might be looking for lowercase jpg file names, but you want just the name, not the extension: ([a-z]+)\.jpg will work, but not if you also have some with a jpeg extension. ([a-z]+.jpeg will work for those, so these could be combined with the | identifier: ([a-z]+)\.jpg|([a-z]+)\.jpeg Now I appreciate the regex experts will point out there is a much better way to solve this problem than using |, but the point of this is, if you use | in your regex, and place it in matchText or matchChunk, you no longer have a single placeholder, so your matchText function has to be amended accordingly: matchText(yourDataVar,"([a-z]+)\.jpg|([a-z]+)\.jpeg",myJpgFile,myJpegFile) It is easy, when copying regex off such sites listed above, or building your own, and you know you are only finding x number of data bites, to assume that that is how many capture variables you need, but if OR is used, then you can easily end up needing double or triple the number of variables. Rule of thumb, always count the number of capturing () in the regex and ensure you have the same number of allocated capturing variables. HTH From sundown at pacifier.com Sat Aug 9 23:29:02 2014 From: sundown at pacifier.com (JB) Date: Sat, 9 Aug 2014 20:29:02 -0700 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: <31C441DC-4731-4B0D-BFAF-21BB1DEC2D85@pacifier.com> Thanks for the info about regex. I bookmarked the website and will be using your advice. I am pretty new to regex and even though I?ve spent a lot of time researching it you have helped me tremendously. John Balgenorth On Aug 9, 2014, at 8:15 PM, Kay C Lan wrote: > On Sun, Aug 10, 2014 at 9:08 AM, JB wrote: >> One of the things I am interested in seeing more handlers >> and examples is regex. It seems to be a very powerful >> tool with very few LiveCode examples. > > The matchChunk and matchText functions are pretty straight forward to > use, it's building the regex that can be difficult if you don't live > with it regularly. If what you really need is examples of regex then I > highly recommend this online regex builder: > > http://regex101.com/#pcre > > The thing I like about it is that you can choose the 'Flavor' of regex > it uses, so unlike other online regex builders that use Javascript, > you can choose the same library that Livecode uses: PCRE. So if it > works on this site it should work in LC. > > Even better, if you click on the Community tab at the top of the page > it will present you with a list of 100s and 100s of community provided > examples of regex, explains what they do, and it's as simple as copy > and paste into your matchChunk or matchText function to test in LC. > > I will warn you though of one gotcha that is easy to trip on if you're > an occasional user of regex + LC. The standard matchText function > looks like this: > > matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar) > > so any matches within () will be placed in your variable place holder. > > In regex the | character is used as OR > > so you might be looking for lowercase jpg file names, but you want > just the name, not the extension: > > ([a-z]+)\.jpg will work, but not if you also have some with a jpeg extension. > > ([a-z]+.jpeg will work for those, so these could be combined with the > | identifier: > > ([a-z]+)\.jpg|([a-z]+)\.jpeg > > Now I appreciate the regex experts will point out there is a much > better way to solve this problem than using |, but the point of this > is, if you use | in your regex, and place it in matchText or > matchChunk, you no longer have a single placeholder, so your matchText > function has to be amended accordingly: > > matchText(yourDataVar,"([a-z]+)\.jpg|([a-z]+)\.jpeg",myJpgFile,myJpegFile) > > It is easy, when copying regex off such sites listed above, or > building your own, and you know you are only finding x number of data > bites, to assume that that is how many capture variables you need, but > if OR is used, then you can easily end up needing double or triple the > number of variables. > > Rule of thumb, always count the number of capturing () in the regex > and ensure you have the same number of allocated capturing variables. > > HTH > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From cszasz at me.com Sun Aug 10 00:01:19 2014 From: cszasz at me.com (Charles Szasz) Date: Sat, 09 Aug 2014 22:01:19 -0600 Subject: Convert a scrolling field to PDF Message-ID: I have a scrolling that I use for printing in my app. How do you save a scrolling field as a PDF? Or is this possible? Sent from my iPad From paulhibbert at mac.com Sun Aug 10 00:49:14 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Sat, 09 Aug 2014 21:49:14 -0700 Subject: Convert a scrolling field to PDF In-Reply-To: References: Message-ID: This should start the ball rolling? on mouseUp answer page setup as sheet if the result is "cancel" then exit mouseUp ask file "Save as PDF?" with "listPDF.pdf" as sheet if the result is "cancel" then exit mouseUp put it into tPath open printing to pdf tPath revPrintField the name of field "sortField" close printing end mouseUp Paul On 2014-08-09, at 9:01 PM, Charles Szasz wrote: > I have a scrolling that I use for printing in my app. How do you save a scrolling field as a PDF? Or is this possible? > > Sent from my iPad > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Aug 10 01:16:27 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Aug 2014 00:16:27 -0500 Subject: Marker image sizes Message-ID: <53E7002B.4040907@hyperactivesw.com> Does anyone know how the engine calculates the size of an image used to draw the markers on a polygon graphic? I have an image that is 8 pixels square but when used as a marker it appears smaller. I've fiddled with the linesize of the graphic, which does change the marker size, but instead of drawing the image larger, it starts to tile it. The graphics are smallish (under 40 pixels in any dimension.) Does the number of points make a difference? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lfredricks at proactive-intl.com Sun Aug 10 02:15:13 2014 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Sat, 9 Aug 2014 23:15:13 -0700 Subject: Two Week Special: Get a Free Database or Reports ADK with Purchase of Valentina Studio Pro Message-ID: <2C6A84F081FC4B6C9679EC661BD6D7AD@GATEWAY> Hello all, Paradigma Software is running a limited time offer - order Valentina Studio Pro and pick one Valentina ADK of your choice - either Reports or Database. Valentina Studio Pro is our all purpose database management and reports builder application and available for Windows, Mac OS X and Linux. It has loads of useful features including SQL DIFF, Data Transfer, Visual Data Modeling (for both reverse and forward engineering of databases), and more. It also has a full visual reports builder. Valentina Database ADK for LiveCode lets you embed our object-relational, columnar database in your LiveCode applications. Ill leave out the row of exclamation points on just how blazingly fast it is, or how efficient it can be by using binary links. Valentina Reports ADK for LiveCode lets you add reports generation to your applications and works with many database types including Valentina, MySQL (including MariaDB), SQLite, and PostgreSQL. Reports can be generated as html, PDF, images, and supports charts, graphs, groups, and more. Valentina ADKs are usually $199 each and come with 1 year of updates, so getting one free with Valentina Studio Pro is a huge savings! To participate, just order Valentina Studio Pro while the offer lasts (it is on the top page of the website) and add your preference of Valentina ADK to the notes of your order. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From bodine at bodinetraininggames.com Sun Aug 10 15:15:53 2014 From: bodine at bodinetraininggames.com (tbodine) Date: Sun, 10 Aug 2014 12:15:53 -0700 (PDT) Subject: Two Week Special: Get a Free Database or Reports ADK with Purchase of Valentina Studio Pro In-Reply-To: <2C6A84F081FC4B6C9679EC661BD6D7AD@GATEWAY> References: <2C6A84F081FC4B6C9679EC661BD6D7AD@GATEWAY> Message-ID: <1407698153862-4681895.post@n4.nabble.com> Hi Lynn. Just wondering what's happened to your other products, Franklin 3D and Franklin audio. The web sites come up as "Website disabled". Thanks, Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Two-Week-Special-Get-a-Free-Database-or-Reports-ADK-with-Purchase-of-Valentina-Studio-Pro-tp4681894p4681895.html Sent from the Revolution - User mailing list archive at Nabble.com. From dochawk at gmail.com Sun Aug 10 16:12:29 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 10 Aug 2014 13:12:29 -0700 Subject: Convert a scrolling field to PDF In-Reply-To: References: Message-ID: On Sat, Aug 9, 2014 at 9:49 PM, Paul Hibbert wrote: ... > > open printing to pdf tPath > revPrintField the name of field "sortField" > close printing > end mouseUp > Also, look into the options for from/to, to control the area where it lands, or deal with taller than page height, or . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From lfredricks at proactive-intl.com Sun Aug 10 16:57:00 2014 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Sun, 10 Aug 2014 13:57:00 -0700 Subject: Two Week Special: Get a Free Database or Reports ADK withPurchase of Valentina Studio Pro In-Reply-To: <1407698153862-4681895.post@n4.nabble.com> References: <2C6A84F081FC4B6C9679EC661BD6D7AD@GATEWAY> <1407698153862-4681895.post@n4.nabble.com> Message-ID: <4E1661C182A5479CA02520EC19150F54@GATEWAY> > Just wondering what's happened to your other products, > Franklin 3D and Franklin audio. The web sites come up as > "Website disabled". They will come back eventually. We are in the middle of a huge, long overdue site update for Paradigma Software's main site. The Franklin site got hacked in a big way some time ago, so when we get the new Paradigma site done we will bring back Franklin. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From tore.nilsen at me.com Sun Aug 10 17:42:10 2014 From: tore.nilsen at me.com (Tore Nilsen) Date: Sun, 10 Aug 2014 23:42:10 +0200 Subject: Problem with playing an audio clip Message-ID: I am currently having problems with playing an audio clip in a stack when using the play command. I only get white noise, no matter what file format I use, I have tried mp3, aiff and m4a, the only difference being the noise itself. The files are imported into the stack, and the same noise is reproduced when the audioClips are examined and played from the Inspector. The files are about 4 seconds in length. I use OS X Version 10.10 Build (14A314h) and Live Code Community Edition 6.6.2 Build 4012 Is this a known problem or is there something I should be aware of when preparing the files? Regards Tore Nilsen From scott at tactilemedia.com Sun Aug 10 18:18:50 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 10 Aug 2014 15:18:50 -0700 Subject: Problem with playing an audio clip In-Reply-To: References: Message-ID: The only audio formats that can be imported are WAV, AIFF, and AU. WAV needs to be a "standard" sample rate of 44k, 22k or 11k. If you want to use MP3 or something else, you need to use a player object whose fileName is set to an external file. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/10/14 2:42 PM, "Tore Nilsen" wrote: >I am currently having problems with playing an audio clip in a stack when >using the play command. >I only get white noise, no matter what file format I use, I have tried >mp3, aiff and m4a, the only difference being the noise itself. > >The files are imported into the stack, and the same noise is reproduced >when the audioClips are examined and played from the Inspector. > >The files are about 4 seconds in length. > >I use OS X Version 10.10 Build (14A314h) and Live Code Community Edition >6.6.2 Build 4012 > >Is this a known problem or is there something I should be aware of when >preparing the files? > >Regards >Tore Nilsen > > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Aug 10 18:54:58 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Aug 2014 17:54:58 -0500 Subject: Marker image sizes In-Reply-To: <53E7002B.4040907@hyperactivesw.com> References: <53E7002B.4040907@hyperactivesw.com> Message-ID: <53E7F842.1040800@hyperactivesw.com> I don't think it is possible to do what I need, but if anyone has time to tinker, I've put an example stack here: The problem seems to be that the markers are drawn based on each point's position as it would lie on a tiled copy of the original image. Markers are not drawn individually, they are "stamped" out of the tiled copy in the buffer. I don't see a solution to this. On 8/10/2014, 12:16 AM, J. Landman Gay wrote: > Does anyone know how the engine calculates the size of an image used to > draw the markers on a polygon graphic? I have an image that is 8 pixels > square but when used as a marker it appears smaller. I've fiddled with > the linesize of the graphic, which does change the marker size, but > instead of drawing the image larger, it starts to tile it. > > The graphics are smallish (under 40 pixels in any dimension.) Does the > number of points make a difference? > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Aug 10 18:59:22 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Aug 2014 17:59:22 -0500 Subject: Marker image sizes In-Reply-To: <53E7F842.1040800@hyperactivesw.com> References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> Message-ID: <53E7F94A.7080704@hyperactivesw.com> I forgot to mention, I can get something close if I make the markers about half the size of the original images, but I need them to be the same size as the originals. On 8/10/2014, 5:54 PM, J. Landman Gay wrote: > I don't think it is possible to do what I need, but if anyone has time > to tinker, I've put an example stack here: > > > > The problem seems to be that the markers are drawn based on each point's > position as it would lie on a tiled copy of the original image. Markers > are not drawn individually, they are "stamped" out of the tiled copy in > the buffer. > > I don't see a solution to this. > > > On 8/10/2014, 12:16 AM, J. Landman Gay wrote: >> Does anyone know how the engine calculates the size of an image used to >> draw the markers on a polygon graphic? I have an image that is 8 pixels >> square but when used as a marker it appears smaller. I've fiddled with >> the linesize of the graphic, which does change the marker size, but >> instead of drawing the image larger, it starts to tile it. >> >> The graphics are smallish (under 40 pixels in any dimension.) Does the >> number of points make a difference? >> > > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From iowahengst at mac.com Sun Aug 10 20:10:49 2014 From: iowahengst at mac.com (Randy Hengst) Date: Sun, 10 Aug 2014 19:10:49 -0500 Subject: Marker image sizes In-Reply-To: <53E7F94A.7080704@hyperactivesw.com> References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> <53E7F94A.7080704@hyperactivesw.com> Message-ID: <8BB9EF9E-E471-4FFD-B89F-0CE937D9E08F@mac.com> Hi Jacque, I'm not going to claim any understanding of the engine? but, I played a bit and maybe this info will be helpful. I messed with creating the image within LC6.6.2 OSX 8.5: import snapshot from grc "DemoOval" and experimented with different size graphics. I started using a 100x100 graphic? the imported image matched the size of the graphic? The image matched the size of the graphic down to 9x9? but when the graphic was set to 8x8, the resulting image was 120x120? the same 120x120 was the result when the imported graphic was 7x7, 6x6, 5x5, 4x4, 3x3, 2x2, and even 1x1. be well, randy hengst ------ On Aug 10, 2014, at 5:59 PM, "J. Landman Gay" wrote: > I forgot to mention, I can get something close if I make the markers about half the size of the original images, but I need them to be the same size as the originals. > > > On 8/10/2014, 5:54 PM, J. Landman Gay wrote: >> I don't think it is possible to do what I need, but if anyone has time >> to tinker, I've put an example stack here: >> >> >> >> The problem seems to be that the markers are drawn based on each point's >> position as it would lie on a tiled copy of the original image. Markers >> are not drawn individually, they are "stamped" out of the tiled copy in >> the buffer. >> >> I don't see a solution to this. >> >> >> On 8/10/2014, 12:16 AM, J. Landman Gay wrote: >>> Does anyone know how the engine calculates the size of an image used to >>> draw the markers on a polygon graphic? I have an image that is 8 pixels >>> square but when used as a marker it appears smaller. I've fiddled with >>> the linesize of the graphic, which does change the marker size, but >>> instead of drawing the image larger, it starts to tile it. >>> >>> The graphics are smallish (under 40 pixels in any dimension.) Does the >>> number of points make a difference? >>> >> >> > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacques.hausser at unil.ch Sun Aug 10 20:25:43 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Mon, 11 Aug 2014 02:25:43 +0200 Subject: Marker image sizes In-Reply-To: <53E7F94A.7080704@hyperactivesw.com> References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> <53E7F94A.7080704@hyperactivesw.com> Message-ID: <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> Hi Jacque, It seems that if you fill the "Markerfill" with your image,this image is transformed into a pattern, that is, repeated in every direction across the graphic and visible only in the markers (what I deduce because they don't look identical to each other, but two contiguous or overlapping markers give a continuous pattern). No problem if you use a plain color instead of your image. An the "inner glow" gives a decent result. What's boring is to set the points for a 8 x 8 circle... I offer it to you ;-) 2,0,3,0,4,0,5,0,6,1,7,2,7,3,7,4,7,5,6,6,5,7,4,7,3,7,2,7,1,6,0,5,0,4,0,3,0,2,1,1,2,0 - LC is able to read this continuous list if you past it into the marker points field of the inspector. Another possibility is to drop the graphic and use only it's list of points, and to clone your image and set the loc of each clone to the successive points... but it will give more headache if you want to change the scale. Good luck anyway Jacques Le 11 ao?t 2014 ? 00:59, J. Landman Gay a ?crit : > I forgot to mention, I can get something close if I make the markers about half the size of the original images, but I need them to be the same size as the originals. > > > On 8/10/2014, 5:54 PM, J. Landman Gay wrote: >> I don't think it is possible to do what I need, but if anyone has time >> to tinker, I've put an example stack here: >> >> >> >> The problem seems to be that the markers are drawn based on each point's >> position as it would lie on a tiled copy of the original image. Markers >> are not drawn individually, they are "stamped" out of the tiled copy in >> the buffer. >> >> I don't see a solution to this. >> >> >> On 8/10/2014, 12:16 AM, J. Landman Gay wrote: >>> Does anyone know how the engine calculates the size of an image used to >>> draw the markers on a polygon graphic? I have an image that is 8 pixels >>> square but when used as a marker it appears smaller. I've fiddled with >>> the linesize of the graphic, which does change the marker size, but >>> instead of drawing the image larger, it starts to tile it. >>> >>> The graphics are smallish (under 40 pixels in any dimension.) Does the >>> number of points make a difference? >>> >> >> > > ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From jacques.hausser at unil.ch Sun Aug 10 20:30:32 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Mon, 11 Aug 2014 02:30:32 +0200 Subject: Marker image sizes In-Reply-To: <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> <53E7F94A.7080704@hyperactivesw.com> <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> Message-ID: <2E9246B4-5B26-4754-A1AC-32F287E6437C@unil.ch> > Another possibility is to drop the graphic and use only it's list of points, and to clone your image and set the loc of each clone to the successive points... but it will give more headache if you want to change the scale. No, better to keep the graphic (without markers) and to use it's list of points as the locs of the image clones. ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From sundown at pacifier.com Sun Aug 10 21:33:37 2014 From: sundown at pacifier.com (JB) Date: Sun, 10 Aug 2014 18:33:37 -0700 Subject: Externals Message-ID: <452B1C3B-009A-4988-A5C1-5A5D44E3A481@pacifier.com> Is it possible to use SuperCard externals in LiveCode? -=>JB<=- From mwieder at ahsoftware.net Sun Aug 10 22:18:09 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 10 Aug 2014 19:18:09 -0700 Subject: Marker image sizes In-Reply-To: <53E7002B.4040907@hyperactivesw.com> References: <53E7002B.4040907@hyperactivesw.com> Message-ID: <88-1963512738.20140810191809@ahsoftware.net> Jacque- You may be fighting a losing battle here. According to the docs for markerPattern (aka hilitePattern): "The hilitePattern of a graphic, image, player, or EPS object has no effect." -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From jacque at hyperactivesw.com Sun Aug 10 22:44:22 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Aug 2014 21:44:22 -0500 Subject: Marker image sizes In-Reply-To: <88-1963512738.20140810191809@ahsoftware.net> References: <53E7002B.4040907@hyperactivesw.com> <88-1963512738.20140810191809@ahsoftware.net> Message-ID: <53E82E06.1010302@hyperactivesw.com> On 8/10/2014, 9:18 PM, Mark Wieder wrote: > Jacque- > > You may be fighting a losing battle here. According to the docs for > markerPattern (aka hilitePattern): > > "The hilitePattern of a graphic, image, player, or EPS object has no effect." > Yeah, but it's a lie. :) It has an effect, it just isn't the one I want. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Aug 10 22:51:55 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Aug 2014 21:51:55 -0500 Subject: Marker image sizes In-Reply-To: <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> <53E7F94A.7080704@hyperactivesw.com> <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> Message-ID: <53E82FCB.3030202@hyperactivesw.com> On 8/10/2014, 7:25 PM, Jacques Hausser wrote: > An the "inner glow" gives a decent result. What's boring is to set > the points for a 8 x 8 circle... I offer it to you ;-) > 2,0,3,0,4,0,5,0,6,1,7,2,7,3,7,4,7,5,6,6,5,7,4,7,3,7,2,7,1,6,0,5,0,4,0,3,0,2,1,1,2,0 Thank you, I will be able to use this. Bernd sent me a stack in email that does something similar and it works well. How did you get the points for the circle? I have one more to do that is slightly larger (12x12). > Another possibility is to drop > the graphic and use only it's list of points, and to clone your image > and set the loc of each clone to the successive points... but it will > give more headache if you want to change the scale. I'd thought of that, but using button icons, but there are too many. The card is already overloaded with objects, and I have thousands of points to plot. I reduced that to 800 graphics, each of which needs a different marker symbol at different times. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sundown at pacifier.com Sun Aug 10 23:06:36 2014 From: sundown at pacifier.com (JB) Date: Sun, 10 Aug 2014 20:06:36 -0700 Subject: externalPackages Message-ID: I built a external using the external examples and have created the stack and installed the external. Everything works and now I want to see the externalPackages of my stack. I created a button and put the following script into it. on mouseUp put the externalPackages of stack "rnahelloTest" into fld id 1004 end mouseUp What happens is it sets my field to empty. I was thinking that since I have installed the external properly and the stack is able to use it properly it would list my external. How do I use the externalPackages? John Balgenorth From sundown at pacifier.com Mon Aug 11 00:45:58 2014 From: sundown at pacifier.com (JB) Date: Sun, 10 Aug 2014 21:45:58 -0700 Subject: Getting File Type Message-ID: <52988A2B-EC0C-4FAF-ACFD-09570588378A@pacifier.com> The Standard library would not give me the file type when I tried it so here is a handler I wrote that will give the file type. on mouseUp answer files "Select the file you want the type info" put the longFilePath of line 1 of it into filePath put number of chars in filePath into n put "false" into geType put empty into theType repeat for n times if geType = "false" then put char n of filePath before theType put n - 1 into n if char n of filePath = "." then put "true" into gType if gType = "true" then exit repeat end repeat --put theType into fld id 1098 ask "File Type" with theType end mouseUp I am sure someone can write it better but it works. John Balgenorth From sundown at pacifier.com Mon Aug 11 01:00:42 2014 From: sundown at pacifier.com (JB) Date: Sun, 10 Aug 2014 22:00:42 -0700 Subject: getting File Name Message-ID: <26C68C3B-BFE6-4A4A-B626-18C9E16DFCE1@pacifier.com> Here is a handler I wrote that will return the file name. on mouseUp answer files "Select the file you want the Name of:" put the longFilePath of line 1 of it into filePath set the itemDelimiter to tab put number of chars in filePath into n repeat for n times if char n of filePath = ":" then put "/" before fileName else put char n of filePath before fileName if char n - 1 of filePath = "/" then exit repeat put n - 1 into n end repeat ask "File Name" with fileName end mouseUp John Balgenorth From scott at tactilemedia.com Mon Aug 11 02:15:35 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 10 Aug 2014 23:15:35 -0700 Subject: getting File Name In-Reply-To: <26C68C3B-BFE6-4A4A-B626-18C9E16DFCE1@pacifier.com> References: <26C68C3B-BFE6-4A4A-B626-18C9E16DFCE1@pacifier.com> Message-ID: Hi John: Does the following also do what you want? answer file "Select a file:" set itemDel to "/" ask "File Name" with last item of it Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/10/14 10:00 PM, "JB" wrote: >Here is a handler I wrote that will return the file name. > >on mouseUp > answer files "Select the file you want the Name of:" > put the longFilePath of line 1 of it into filePath > set the itemDelimiter to tab > put number of chars in filePath into n > repeat for n times > if char n of filePath = ":" then put "/" before fileName > else put char n of filePath before fileName > if char n - 1 of filePath = "/" then exit repeat > put n - 1 into n > end repeat > ask "File Name" with fileName >end mouseUp > >John Balgenorth > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Mon Aug 11 02:39:31 2014 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 10 Aug 2014 23:39:31 -0700 Subject: Selling a ticket for RevCon '14 In-Reply-To: <59371412-2E5E-4E97-BF13-0F74962DEDCA@mac.com> References: <59371412-2E5E-4E97-BF13-0F74962DEDCA@mac.com> Message-ID: On Sat, Aug 9, 2014 at 9:33 AM, Bj?rnke von Gierke wrote: > Hmm, so everyone already has their ticket? Or perhaps some folks just can't afford it. I remember Revcon 2 and 3, and it didn't cost that much. *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* From stephenREVOLUTION2 at barncard.com Mon Aug 11 02:52:19 2014 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 10 Aug 2014 23:52:19 -0700 Subject: Two Week Special: Get a Free Database or Reports ADK withPurchase of Valentina Studio Pro In-Reply-To: <4E1661C182A5479CA02520EC19150F54@GATEWAY> References: <2C6A84F081FC4B6C9679EC661BD6D7AD@GATEWAY> <1407698153862-4681895.post@n4.nabble.com> <4E1661C182A5479CA02520EC19150F54@GATEWAY> Message-ID: On Sun, Aug 10, 2014 at 1:57 PM, Lynn Fredricks < lfredricks at proactive-intl.com> wrote: > Franklin 3D and Franklin audio. The web sites come up as > > "Website disabled". > > They will come back eventually. We are in the middle of a huge, long > overdue > site update for Paradigma Software's main site. > I'd love to see some modern audio (and video) options, as I haven't seen much change in the current offerings in this area from LC. And examples of course. 96k 192k sample rates - 24 bit - waveform display (multiple tracks?) - level indicator in and out - use multiple cores *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* From sundown at pacifier.com Mon Aug 11 02:54:28 2014 From: sundown at pacifier.com (JB) Date: Sun, 10 Aug 2014 23:54:28 -0700 Subject: getting File Name In-Reply-To: References: <26C68C3B-BFE6-4A4A-B626-18C9E16DFCE1@pacifier.com> Message-ID: Hi Scott, I am using a Mac and it allows a / in the name. If a / is in the name I think that if you simply get the last item it would not give you the full name. John Balgenorth On Aug 10, 2014, at 11:15 PM, Scott Rossi wrote: > Hi John: > > Does the following also do what you want? > > > answer file "Select a file:" > set itemDel to "/" > ask "File Name" with last item of it > > > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 8/10/14 10:00 PM, "JB" wrote: > >> Here is a handler I wrote that will return the file name. >> >> on mouseUp >> answer files "Select the file you want the Name of:" >> put the longFilePath of line 1 of it into filePath >> set the itemDelimiter to tab >> put number of chars in filePath into n >> repeat for n times >> if char n of filePath = ":" then put "/" before fileName >> else put char n of filePath before fileName >> if char n - 1 of filePath = "/" then exit repeat >> put n - 1 into n >> end repeat >> ask "File Name" with fileName >> end mouseUp >> >> John Balgenorth >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacques.hausser at unil.ch Mon Aug 11 04:26:09 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Mon, 11 Aug 2014 10:26:09 +0200 Subject: Marker image sizes In-Reply-To: <53E82FCB.3030202@hyperactivesw.com> References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> <53E7F94A.7080704@hyperactivesw.com> <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> <53E82FCB.3030202@hyperactivesw.com> Message-ID: Hi Jacque, Trying to build a 12x12 round marker, I realized that the markers coordinates 0,0 are positioned on the polygon vertex... so my previous circle was not correctly centered. And, a circle of 8x8 or 12x12 never will, you have to use odd numbers of pixels to have the marker well centered ! so, a 7x7 circle: 0,-3,1,-3,2,-2,3,-1,3,0,3,1,2,2,1,3,0,3,-1,3,-2,2,-3,1,-3,0,-3,-1,-2,-2,-1,-3,0,-3 and a 11x11 circle: 0,-5,1,-5,2,-4,3,-4,4,-3,4,-2,5,-1,5,0,5,1,4,2,4,3,3,4,2,4,1,5,0,5,-1,5,-2,4,-3,4,-4,3,-4,2,-5,1,-5,0,-5,-1,-4,-2,-4,-3,-3,-4,-2,-4,-1,-5,0,-5 Jacques > On 8/10/2014, 7:25 PM, Jacques Hausser wrote: >> An the "inner glow" gives a decent result. What's boring is to set >> the points for a 8 x 8 circle... I offer it to you ;-) >> 2,0,3,0,4,0,5,0,6,1,7,2,7,3,7,4,7,5,6,6,5,7,4,7,3,7,2,7,1,6,0,5,0,4,0,3,0,2,1,1,2,0 ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From jbv at souslelogo.com Mon Aug 11 05:41:54 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 11 Aug 2014 12:41:54 +0300 Subject: Execution of a "long" script Message-ID: <5399e5122edf6d12510a46cf2ed87880.squirrel@185.8.104.234> Hi list I'm about to launch a script on LC 6.5.2 on Mac to process a large xml file, and the execution will take several hours at least. I am wondering : if I use other apps like a browser or a mailer after starting the script, or if I return to the Finder or navigate through various apps in the dock, what happens to my script ? Is it slowed down or even stalled while I use other apps, does it still run as a background task, or... ? Thanks jbv From admin at FlexibleLearning.com Mon Aug 11 06:16:01 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Mon, 11 Aug 2014 11:16:01 +0100 Subject: Execution of a "long" script Message-ID: <001801cfb54d$4080dd10$c1829730$@FlexibleLearning.com> > Hi list > I'm about to launch a script on LC 6.5.2 on Mac to process a large xml file, > and the execution will take several hours at least. > I am wondering : if I use other apps like a browser or a mailer after > starting > the script, or if I return to the Finder or navigate through various apps in > the dock, what happens to my script ? Is it slowed down or even stalled while > I use other apps, does it still run as a background task, or... ? > > Thanks > jbv The OS handles multi-tasking based on the process priority. I would therefore expect the script to run more slowly if other memory-intensive activities take place. Hugh Senior FLCo From sundown at pacifier.com Mon Aug 11 06:30:39 2014 From: sundown at pacifier.com (JB) Date: Mon, 11 Aug 2014 03:30:39 -0700 Subject: Installing Externals Message-ID: <02828F2A-F42A-4074-A941-6F9D74FD4819@pacifier.com> Trevor at Blue Mango wrote a excellent article about installing externals. In it he said Open the Externals.txt file (1), creating it if necessary. You need to add one line to this file that tells Revolution about your external. The line contains 2 items. The 1st item is the name of your external as it appears in the externalPackages property (2). In this example I'm using the EnhancedQT external so that name is EnhancedQT. The 2nd item is the name of the external file The problem I am having is with the name of the first item which is the name of the external as it appears in the externalPackages property. In the lesson that name is EnhancedQT. But the name of the second item is the file name which in this case is EnhancedQT.Bundle. So both items togethor make the single line to add which is EnhancedQT,EnhancedQT.Bundle. That is pretty easy but the problem is the first item is not always named the same as the file name. It could have been anything other than EnhancedQT. If it was always the name of the file name without the .Bundle this would solve all the problems. How do you get the name of the first item if you do not know what it is. You could try the name of the file and not include the .Bundle and in this case you would get lucky and it would work. John Balgenorth From sundown at pacifier.com Mon Aug 11 06:40:53 2014 From: sundown at pacifier.com (JB) Date: Mon, 11 Aug 2014 03:40:53 -0700 Subject: Execution of a "long" script In-Reply-To: <001801cfb54d$4080dd10$c1829730$@FlexibleLearning.com> References: <001801cfb54d$4080dd10$c1829730$@FlexibleLearning.com> Message-ID: <65916AF1-4A6F-4B3F-B01B-51AC99BC5A2D@pacifier.com> What if you are dong large scripts that tale many hours and the user decodes to do things that will slow it down. Whwn you are using Time Machine you can trust that it will keep working and not cause a crash. At least I have never had it crash. Can you trust this large script will not crash or should you inform the user the chances of a crash will increase if they use other memory intensive applications. Is there a way to prevent it? John Balgenorth On Aug 11, 2014, at 3:16 AM, FlexibleLearning.com wrote: >> Hi list >> I'm about to launch a script on LC 6.5.2 on Mac to process a large xml > file, >> and the execution will take several hours at least. >> I am wondering : if I use other apps like a browser or a mailer after >> starting >> the script, or if I return to the Finder or navigate through various apps > in >> the dock, what happens to my script ? Is it slowed down or even stalled > while >> I use other apps, does it still run as a background task, or... ? >> >> Thanks >> jbv > > The OS handles multi-tasking based on the process priority. I would > therefore expect the script to run more slowly if other memory-intensive > activities take place. > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Mon Aug 11 09:03:27 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 11 Aug 2014 16:03:27 +0300 Subject: Execution of a "long" script In-Reply-To: <65916AF1-4A6F-4B3F-B01B-51AC99BC5A2D@pacifier.com> References: <001801cfb54d$4080dd10$c1829730$@FlexibleLearning.com> <65916AF1-4A6F-4B3F-B01B-51AC99BC5A2D@pacifier.com> Message-ID: <5fcfa66d755da1d8d9208f993bde11b7.squirrel@185.8.104.234> John, The will be only one user : me. So I'll do my best to not disturb LC when the script is running, like let it run at night... jbv > > Can you trust this large script will not crash or should you inform > the user the chances of a crash will increase if they use other > memory intensive applications. Is there a way to prevent it? > > John Balgenorth > > From jbv at souslelogo.com Mon Aug 11 09:09:43 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 11 Aug 2014 16:09:43 +0300 Subject: Dumb return question Message-ID: Hi again list, On Mac and LC 6.5.2, when writing successive lines of text to a file, how can I get the return character to be the standard Unix return ? No matter what I try (return, linefeed, the numtochar of 13, the numtochar of 10) it always ends up with Classic Mac CR. So, when uploading the files to a Linux server, my LC scripts detect only 1 line in the .txt files... Thanks in advance jbv From sundown at pacifier.com Mon Aug 11 09:15:26 2014 From: sundown at pacifier.com (JB) Date: Mon, 11 Aug 2014 06:15:26 -0700 Subject: Execution of a "long" script In-Reply-To: <5fcfa66d755da1d8d9208f993bde11b7.squirrel@185.8.104.234> References: <001801cfb54d$4080dd10$c1829730$@FlexibleLearning.com> <65916AF1-4A6F-4B3F-B01B-51AC99BC5A2D@pacifier.com> <5fcfa66d755da1d8d9208f993bde11b7.squirrel@185.8.104.234> Message-ID: <57311A72-B872-469F-AE0D-2CCBEEA00DC0@pacifier.com> Why do you waste your time attacking me? You have no clue what I am even writing or if my program was going to fall in the category of using long scripts. My question for you since you will be a user is when are you going to pay? You won?t be getting a complimentary copy. John Balgenorth On Aug 11, 2014, at 6:03 AM, jbv at souslelogo.com wrote: > John, > The will be only one user : me. So I'll do my best to not disturb LC > when the script is running, like let it run at night... > jbv > >> >> Can you trust this large script will not crash or should you inform >> the user the chances of a crash will increase if they use other >> memory intensive applications. Is there a way to prevent it? >> >> John Balgenorth >> >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Mon Aug 11 10:26:47 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 11 Aug 2014 07:26:47 -0700 Subject: Dumb return question In-Reply-To: References: Message-ID: <53E8D2A7.9080809@fourthworld.com> jbv wrote: > On Mac and LC 6.5.2, when writing successive lines of text to a file, > how can I get the return character to be the standard Unix return ? > No matter what I try (return, linefeed, the numtochar of 13, the > numtochar of 10) it always ends up with Classic Mac CR. > So, when uploading the files to a Linux server, my LC scripts detect > only 1 line in the .txt files... The default read/write mode is text, in which NULLs are translated to spaces and line-endings are coerced to the convention used by the host OS (thought with OS X being Unix there's a good argument to stop using ASCII 13 and get on board with OS X's modern ASCII 10). Specifying write as binary will allow you to have the resulting file reflect only what you put into it, without modification. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From th.douez at gmail.com Mon Aug 11 10:38:39 2014 From: th.douez at gmail.com (Thierry Douez) Date: Mon, 11 Aug 2014 16:38:39 +0200 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: 2014-08-10 5:15 GMT+02:00 Kay C Lan : > It is easy, when copying regex off such sites listed above, or > building your own, and you know you are only finding x number of data > bites, to assume that that is how many capture variables you need, but > if OR is used, then you can easily end up needing double or triple the > number of variables. > > Rule of thumb, always count the number of capturing () in the regex > and ensure you have the same number of allocated capturing variables. > As one engine contributor brings the PCRE library (regex) up to date some time ago, it is easy to deal with this: Check capture group naming and branch reset. Both are helpful to avoid those kind of errors. Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From ambassador at fourthworld.com Mon Aug 11 10:49:00 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 11 Aug 2014 07:49:00 -0700 Subject: Execution of a "long" script In-Reply-To: <65916AF1-4A6F-4B3F-B01B-51AC99BC5A2D@pacifier.com> References: <65916AF1-4A6F-4B3F-B01B-51AC99BC5A2D@pacifier.com> Message-ID: <53E8D7DC.4000503@fourthworld.com> JB wrote: > Can you trust this large script will not crash or should you inform > the user the chances of a crash will increase if they use other > memory intensive applications. Is there a way to prevent it? Any time LiveCode crashes it's a bug that should be reported. Even with low-memory conditions, the app should dip into swap rather than crash. This may not always be practical depending on the nature of the task, but it's an ideal worth pursuing. The only errors that should ever occur in LC are ones related to our own scripting mistakes. Apps reflect a wide range of behaviors in low-memory conditions, and most apps contain in them somewhere some sort of bug that will cause them to crash. Undesirable, but it happens. When the issue is exposed by low-memory conditions, the issue is compounded by the likelihood that there isn't even enough memory to invoke the normal error handling, so that rather than simply stopping execution with a warning the app may simply crash instead. All that said, thanks to the community's rigorous testing and the engine team's ardent pursuit of good memory management, many of us have apps that have run for many hours or even days without a hiccup (I have one here where normal uptime is measured in weeks, usually only interrupted because I rebooted the machine for some other reason unrelated to my app). LiveCode isn't completely bug-free (if it were it might be the first in computing history), but AFAIK at this time there are no known memory leaks. The engine team tends to jump on those quickly, so when discovered they usually don't live very long. I would encourage you to pursue any sort of task with LC you like, and if you encounter issues to report them. For very long tasks it can be helpful to introduce means by which the apps surrenders time to the OS to attend to other things, either by breaking the task up into chunks and calling those chunks with "send", or by using "wait 0 with messages". This will help ensure the OS can do its job with memory shuffling and other things it needs to do to keep up with LiveCode. And FWIW, on some Mac systems I've seen surprisingly poor throttling at the OS level, in which some processes have been allowed to run to the point that it overheats the CPU. Most modern motherboards contain temperature monitors that shut the machine down before the heat can damage components (even the super-cheap mobo I got from Biostar recently for $59 has this), but one of my Mac laptops went through three motherboards as a result of overheating. A single date point like one Mac isn't enough to suggest that this is endemic or epidemic to Macs, and if it were we'd have read about it in the Apple support forums more frequently. Just something to keep in mind which may potentially affect any system, providing good motivation for periodically freeing up clock cycles to let the system at least do the things it needs to do for monitoring. After all, if a task is going to take several hours, what's a little extra time introduced by sharing the CPU? There are other things to consider as well: sometimes a long task is just a long task, but often there are means to reduce the processing time through seemingly-small refinements in the code. Using "repeat for each..." instead of "repeat with i = 1 to ..." is a common example, but there may be others which also provide an order-of-magnitude speed boost. And for really long tasks there are ways of spreading the work across multiple computers on your LAN with a sort of MapReduce. A bit of work to set up and certainly carries a lot of overhead, but for a task that takes the better part of a day it may be worth the effort to explore. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Mon Aug 11 11:06:51 2014 From: sundown at pacifier.com (JB) Date: Mon, 11 Aug 2014 08:06:51 -0700 Subject: Execution of a "long" script In-Reply-To: <53E8D7DC.4000503@fourthworld.com> References: <65916AF1-4A6F-4B3F-B01B-51AC99BC5A2D@pacifier.com> <53E8D7DC.4000503@fourthworld.com> Message-ID: <31308824-C64D-4761-8568-1505A95ED3BE@pacifier.com> Thanks Richard! I was concerned about it after the question was brought up because there is a chance someone will select a lot of files to process and I have never tested LiveCode with scripts that take a long time. I was glad the question was asked because it made me take into consideration of a possible crash from any reason and I will be sure to keep track of the work done so it can start up where it crashed and not worry about repeating the work. Once again you have provided me very good information and the comfort in knowing it has been tested for extremely long tasks. Knowing that means a lot to me. John Balgenorth On Aug 11, 2014, at 7:49 AM, Richard Gaskin wrote: > JB wrote: > > > Can you trust this large script will not crash or should you inform > > the user the chances of a crash will increase if they use other > > memory intensive applications. Is there a way to prevent it? > > Any time LiveCode crashes it's a bug that should be reported. Even with low-memory conditions, the app should dip into swap rather than crash. This may not always be practical depending on the nature of the task, but it's an ideal worth pursuing. The only errors that should ever occur in LC are ones related to our own scripting mistakes. > > Apps reflect a wide range of behaviors in low-memory conditions, and most apps contain in them somewhere some sort of bug that will cause them to crash. Undesirable, but it happens. > > When the issue is exposed by low-memory conditions, the issue is compounded by the likelihood that there isn't even enough memory to invoke the normal error handling, so that rather than simply stopping execution with a warning the app may simply crash instead. > > All that said, thanks to the community's rigorous testing and the engine team's ardent pursuit of good memory management, many of us have apps that have run for many hours or even days without a hiccup (I have one here where normal uptime is measured in weeks, usually only interrupted because I rebooted the machine for some other reason unrelated to my app). > > LiveCode isn't completely bug-free (if it were it might be the first in computing history), but AFAIK at this time there are no known memory leaks. The engine team tends to jump on those quickly, so when discovered they usually don't live very long. > > I would encourage you to pursue any sort of task with LC you like, and if you encounter issues to report them. > > For very long tasks it can be helpful to introduce means by which the apps surrenders time to the OS to attend to other things, either by breaking the task up into chunks and calling those chunks with "send", or by using "wait 0 with messages". This will help ensure the OS can do its job with memory shuffling and other things it needs to do to keep up with LiveCode. > > And FWIW, on some Mac systems I've seen surprisingly poor throttling at the OS level, in which some processes have been allowed to run to the point that it overheats the CPU. Most modern motherboards contain temperature monitors that shut the machine down before the heat can damage components (even the super-cheap mobo I got from Biostar recently for $59 has this), but one of my Mac laptops went through three motherboards as a result of overheating. A single date point like one Mac isn't enough to suggest that this is endemic or epidemic to Macs, and if it were we'd have read about it in the Apple support forums more frequently. Just something to keep in mind which may potentially affect any system, providing good motivation for periodically freeing up clock cycles to let the system at least do the things it needs to do for monitoring. > > After all, if a task is going to take several hours, what's a little extra time introduced by sharing the CPU? > > There are other things to consider as well: sometimes a long task is just a long task, but often there are means to reduce the processing time through seemingly-small refinements in the code. Using "repeat for each..." instead of "repeat with i = 1 to ..." is a common example, but there may be others which also provide an order-of-magnitude speed boost. > > And for really long tasks there are ways of spreading the work across multiple computers on your LAN with a sort of MapReduce. A bit of work to set up and certainly carries a lot of overhead, but for a task that takes the better part of a day it may be worth the effort to explore. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From kee at kagi.com Mon Aug 11 14:18:24 2014 From: kee at kagi.com (kee nethery) Date: Mon, 11 Aug 2014 11:18:24 -0700 Subject: Execution of a "long" script In-Reply-To: <31308824-C64D-4761-8568-1505A95ED3BE@pacifier.com> References: <65916AF1-4A6F-4B3F-B01B-51AC99BC5A2D@pacifier.com> <53E8D7DC.4000503@fourthworld.com> <31308824-C64D-4761-8568-1505A95ED3BE@pacifier.com> Message-ID: I have a bunch of long running scripts. I structure them so that they pause between cycles. By that I mean, if I am processing a bunch of files, I might have a field where I list all the files and then I trigger a script that processes the first unprocessed file in the list. When there are no unprocessed files, it halts because it is done. When a file is processed, I mark it in the list and then the very next thing I do is send a message in (for example) 5 seconds, to run that script again. For that 5 seconds nothing happens and presumably ?things? reset to an idle state before going after the next file. It keeps doing this until all the files are processed. I have scripts that essentially run for weeks at a time. The one feature I add into all my scripts is a safe exit from whatever it is doing. Within all my loops I have: if optionkey is down then exit repeat end if I put these all throughout my code so that if I need to halt, it does so safely. In the file example, perhaps in a beginning section I just exit out of the script. Perhaps in a section after an hour of processing, I let it finish and then don?t trigger the send message in 5 seconds to do it again. Finally, In long running scripts I find it is essential to provide a visual indication of where the script is. I try to have something in the interface change more frequently than once a minute so that I know it is still running and not lost in some loop. Plus, if it stays with some indicator for a really long period of time, I know that is where I need to add a debug statement and figure out why it is taking so long there. Kee Nethery From bodine at bodinetraininggames.com Mon Aug 11 14:18:54 2014 From: bodine at bodinetraininggames.com (tbodine) Date: Mon, 11 Aug 2014 11:18:54 -0700 (PDT) Subject: Will Apple Gatekeeper changes break our standalones? Message-ID: <1407781134231-4681928.post@n4.nabble.com> Apple sent developers this news last week: "With the release of OS X Mavericks 10.9.5, the way that OS X recognizes signed apps will change. Signatures created with OS X Mountain Lion 10.8.5 or earlier (v1 signatures) will be obsoleted and Gatekeeper will no longer recognize them. Users may receive a Gatekeeper warning and will need to exempt your app to continue using it. To ensure your apps will run without warning on updated versions of OS X, they must be signed on OS X Mavericks 10.9 or later (v2 signatures)." Wondering if this part ("Users may receive a Gatekeeper warning and will need to exempt your app to continue using it.") is a one-time exemption or will the warning appear every time a user runs that standalone? Also, from the rest of the Apple message about Gatekeeper, sounds like this has potential to disrupt other standalones due to new bundle structure requirements for codesigning... "Structure your bundle according to the signature evaluation requirements for OS X Mavericks 10.9 or later. Considerations include: - Signed code should only be placed in directories where the system expects to find signed code. - Resources should not be located in directories where the system expects to find signed code. - The --resource-rules flag and ResourceRules.plist are not supported." My concern is that resources (external images, sound files, external stacks) stored in folders within the Mac's app bundle may run into trouble with the Gatekeeper update or codesigning process. Would like to hear from those more experienced than I in dealing with Apple's changes and what this may mean to LC authors. Thanks, Tom -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Will-Apple-Gatekeeper-changes-break-our-standalones-tp4681928.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Mon Aug 11 17:13:54 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 11 Aug 2014 14:13:54 -0700 Subject: WP application Message-ID: I've put together a mini word processing stack within an LC app. All is working fine except that the ruler I display at the top of the input field to show margins, indents and tabs is currently laid out in pixels since most of the field and paragraph settings work in pixels. All the WP applications I've looked at have their ruler in inches (or centimetres) but I can't figure out a way to handle that. If the input field is 500 pixels wide, how many inches is that in a print layout? And if I have a tab stop at pixel 40, how can I figure out where to show that on the ruler in inches? Is it even possible to do that in LC? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From sundown at pacifier.com Mon Aug 11 17:17:56 2014 From: sundown at pacifier.com (JB) Date: Mon, 11 Aug 2014 14:17:56 -0700 Subject: Execution of a "long" script In-Reply-To: References: <65916AF1-4A6F-4B3F-B01B-51AC99BC5A2D@pacifier.com> <53E8D7DC.4000503@fourthworld.com> <31308824-C64D-4761-8568-1505A95ED3BE@pacifier.com> Message-ID: <77540EC2-F61C-4533-B013-DB52B46DFAC5@pacifier.com> That is some really good information. thanks, John Balgenorth On Aug 11, 2014, at 11:18 AM, kee nethery wrote: > I have a bunch of long running scripts. I structure them so that they pause between cycles. By that I mean, if I am processing a bunch of files, I might have a field where I list all the files and then I trigger a script that processes the first unprocessed file in the list. When there are no unprocessed files, it halts because it is done. > > When a file is processed, I mark it in the list and then the very next thing I do is send a message in (for example) 5 seconds, to run that script again. For that 5 seconds nothing happens and presumably ?things? reset to an idle state before going after the next file. It keeps doing this until all the files are processed. > > I have scripts that essentially run for weeks at a time. > > The one feature I add into all my scripts is a safe exit from whatever it is doing. Within all my loops I have: > > if optionkey is down then > exit repeat > end if > > I put these all throughout my code so that if I need to halt, it does so safely. In the file example, perhaps in a beginning section I just exit out of the script. Perhaps in a section after an hour of processing, I let it finish and then don?t trigger the send message in 5 seconds to do it again. > > Finally, In long running scripts I find it is essential to provide a visual indication of where the script is. I try to have something in the interface change more frequently than once a minute so that I know it is still running and not lost in some loop. Plus, if it stays with some indicator for a really long period of time, I know that is where I need to add a debug statement and figure out why it is taking so long there. > > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Mon Aug 11 19:07:57 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 11 Aug 2014 18:07:57 -0500 Subject: Marker image sizes In-Reply-To: References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> <53E7F94A.7080704@hyperactivesw.com> <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> <53E82FCB.3030202@hyperactivesw.com> Message-ID: <53E94CCD.4030502@hyperactivesw.com> On 8/11/2014, 3:26 AM, Jacques Hausser wrote: > so, a 7x7 circle: > > 0,-3,1,-3,2,-2,3,-1,3,0,3,1,2,2,1,3,0,3,-1,3,-2,2,-3,1,-3,0,-3,-1,-2,-2,-1,-3,0,-3 > > and a 11x11 circle: > > 0,-5,1,-5,2,-4,3,-4,4,-3,4,-2,5,-1,5,0,5,1,4,2,4,3,3,4,2,4,1,5,0,5,-1,5,-2,4,-3,4,-4,3,-4,2,-5,1,-5,0,-5,-1,-4,-2,-4,-3,-3,-4,-2,-4,-1,-5,0,-5 Thank you, that must have taken you a while to figure out. You're very kind. Do you ever feel like when we talk, we should call ourselves "this me"? Sometimes I think I am talking to myself. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at tweedly.net Mon Aug 11 19:36:29 2014 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 12 Aug 2014 00:36:29 +0100 Subject: WP application In-Reply-To: References: Message-ID: <53E9537D.7060105@tweedly.net> Peter, (you might find this a really unhelpful reply, but I hope not). I think you're looking at this backwards. As a user of a WP app, I don't know, think or care about pixels. What I am doing is preparing a piece of paper - whether it's A4 or letter-size or whatever - I am working towards making a "page" on a piece of paper. So (if you are working in WYSIWYG mode - as most modern WPs do most of the time) the view on the screen is simply a representation of that piece of paper (or perhaps of the printed (i.e. within the margins) subset of it). As a user, I want to say (or be defaulted to ...) something like letter size (i.e. 8-1/2" x 11") margins of 1" tab stops at 1.2" intervals etc. So, you can (easily???) translate that because the current viewport is 900 pixels wide user is viewing at nominal 100% (i.e. the whole sheet fits within the viewport width, NOT that lettters will be the same size on-screen as when printed) therefore 6-1/2 inches on-page is equivalent to 900 pixels --> 138.5 pixels per inch (900 / 6.5) --> set tab stops to multiples of 166. (and of course similar translation is needed for point sizes, etc.) -- Alex. P.S. if this turns into a library, or set of behaviours, or group with associated content field + ruler group + button bar + behaviours and handlers - then I'm first in line to purchase a copy :-) On 11/08/2014 22:13, Peter Haworth wrote: > I've put together a mini word processing stack within an LC app. All is > working fine except that the ruler I display at the top of the input field > to show margins, indents and tabs is currently laid out in pixels since > most of the field and paragraph settings work in pixels. > > All the WP applications I've looked at have their ruler in inches (or > centimetres) but I can't figure out a way to handle that. If the input > field is 500 pixels wide, how many inches is that in a print layout? And > if I have a tab stop at pixel 40, how can I figure out where to show that > on the ruler in inches? Is it even possible to do that in LC? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Mon Aug 11 19:38:17 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 11 Aug 2014 16:38:17 -0700 Subject: Marker image sizes In-Reply-To: <53E94CCD.4030502@hyperactivesw.com> References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> <53E7F94A.7080704@hyperactivesw.com> <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> <53E82FCB.3030202@hyperactivesw.com> <53E94CCD.4030502@hyperactivesw.com> Message-ID: When I talk about you behind your back, I usually say "that her", and people get the reference. :-) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/11/14 4:07 PM, "J. Landman Gay" wrote: >Do you ever feel like when we talk, we should call ourselves "this me"? From pete at lcsql.com Mon Aug 11 20:27:00 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 11 Aug 2014 17:27:00 -0700 Subject: WP application In-Reply-To: <53E9537D.7060105@tweedly.net> References: <53E9537D.7060105@tweedly.net> Message-ID: Thanks Alex, that's certainly very helpful! I had this vague feeling that I was thinking about this the wrong way and you confirmed that. I just need to decide how wide I want my "viewport" to be and the rest is the calculation you described. This is a group with buttons/ruler/content field right now and I do plan to make it available when it's done. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Aug 11, 2014 at 4:36 PM, Alex Tweedly wrote: > Peter, > > (you might find this a really unhelpful reply, but I hope not). > > I think you're looking at this backwards. As a user of a WP app, I don't > know, think or care about pixels. What I am doing is preparing a piece of > paper - whether it's A4 or letter-size or whatever - I am working towards > making a "page" on a piece of paper. > > So (if you are working in WYSIWYG mode - as most modern WPs do most of the > time) the view on the screen is simply a representation of that piece of > paper (or perhaps of the printed (i.e. within the margins) subset of it). > > As a user, I want to say (or be defaulted to ...) something like > letter size (i.e. 8-1/2" x 11") > margins of 1" > tab stops at 1.2" intervals > etc. > > So, you can (easily???) translate that because > the current viewport is 900 pixels wide > user is viewing at nominal 100% > (i.e. the whole sheet fits within the viewport width, NOT that > lettters will be the same size on-screen as when printed) > therefore 6-1/2 inches on-page is equivalent to 900 pixels > --> 138.5 pixels per inch (900 / 6.5) > --> set tab stops to multiples of 166. > > (and of course similar translation is needed for point sizes, etc.) > > -- Alex. > P.S. if this turns into a library, or set of behaviours, or group with > associated content field + ruler group + button bar + behaviours and > handlers - then I'm first in line to purchase a copy :-) > > > > > On 11/08/2014 22:13, Peter Haworth wrote: > >> I've put together a mini word processing stack within an LC app. All is >> working fine except that the ruler I display at the top of the input field >> to show margins, indents and tabs is currently laid out in pixels since >> most of the field and paragraph settings work in pixels. >> >> All the WP applications I've looked at have their ruler in inches (or >> centimetres) but I can't figure out a way to handle that. If the input >> field is 500 pixels wide, how many inches is that in a print layout? And >> if I have a tab stop at pixel 40, how can I figure out where to show that >> on the ruler in inches? Is it even possible to do that in LC? >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Mon Aug 11 21:12:08 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 11 Aug 2014 18:12:08 -0700 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: On Mon, Aug 11, 2014 at 7:38 AM, Thierry Douez wrote: > As one engine contributor brings the PCRE library (regex) up > to date some time ago, it is easy to deal with this: > > Check capture group naming and branch reset. > > Both are helpful to avoid those kind of errors. > > Thierry > Thanks for that Thierry, learned something new about regex! I've always kinda thought the return variable parm to matchText was a little strange as it relies on you knowing how many matches will be found in advance. It would be great if the returned variable could be an array keyed by the numeric match number, alike the variables you can supply to the some of the database functions. Only 1 variable required that way and you can use the keys of the array to get hold of all the matches. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From pmbrig at gmail.com Mon Aug 11 08:22:56 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Mon, 11 Aug 2014 08:22:56 -0400 Subject: Standard Library In-Reply-To: <31C441DC-4731-4B0D-BFAF-21BB1DEC2D85@pacifier.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <31C441DC-4731-4B0D-BFAF-21BB1DEC2D85@pacifier.com> Message-ID: <70FD1643-4629-44BA-AD48-B91FCE8598A4@gmail.com> I have very occasionally tried regex and can see that it is very powerful, but to me it's also extremely opaque and I've never climbed far up the rather steep learning curve. Partly this is because I've found that essentially all of the stuff I would need regex for is do-able in native LC, whose string manipulation capabilities are marvelous -- and much more intuitive for me. Plus, LC is much faster than regex when chewing through very large data sets, as long as you remember to "repeat for each?" My two cents. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig Just wondering... when someone asks you, 'A penny for your thoughts' and you put your two cents in, what happens to the other penny? On Aug 9, 2014, at 11:29 PM, JB wrote: > Thanks for the info about regex. I bookmarked > the website and will be using your advice. I am > pretty new to regex and even though I?ve spent > a lot of time researching it you have helped me > tremendously. > > John Balgenorth > > > On Aug 9, 2014, at 8:15 PM, Kay C Lan wrote: > >> On Sun, Aug 10, 2014 at 9:08 AM, JB wrote: >>> One of the things I am interested in seeing more handlers >>> and examples is regex. It seems to be a very powerful >>> tool with very few LiveCode examples. >> >> The matchChunk and matchText functions are pretty straight forward to >> use, it's building the regex that can be difficult if you don't live >> with it regularly. If what you really need is examples of regex then I >> highly recommend this online regex builder: >> >> http://regex101.com/#pcre >> >> The thing I like about it is that you can choose the 'Flavor' of regex >> it uses, so unlike other online regex builders that use Javascript, >> you can choose the same library that Livecode uses: PCRE. So if it >> works on this site it should work in LC. >> >> Even better, if you click on the Community tab at the top of the page >> it will present you with a list of 100s and 100s of community provided >> examples of regex, explains what they do, and it's as simple as copy >> and paste into your matchChunk or matchText function to test in LC. >> >> I will warn you though of one gotcha that is easy to trip on if you're >> an occasional user of regex + LC. The standard matchText function >> looks like this: >> >> matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar) >> >> so any matches within () will be placed in your variable place holder. >> >> In regex the | character is used as OR >> >> so you might be looking for lowercase jpg file names, but you want >> just the name, not the extension: >> >> ([a-z]+)\.jpg will work, but not if you also have some with a jpeg extension. >> >> ([a-z]+.jpeg will work for those, so these could be combined with the >> | identifier: >> >> ([a-z]+)\.jpg|([a-z]+)\.jpeg >> >> Now I appreciate the regex experts will point out there is a much >> better way to solve this problem than using |, but the point of this >> is, if you use | in your regex, and place it in matchText or >> matchChunk, you no longer have a single placeholder, so your matchText >> function has to be amended accordingly: >> >> matchText(yourDataVar,"([a-z]+)\.jpg|([a-z]+)\.jpeg",myJpgFile,myJpegFile) >> >> It is easy, when copying regex off such sites listed above, or >> building your own, and you know you are only finding x number of data >> bites, to assume that that is how many capture variables you need, but >> if OR is used, then you can easily end up needing double or triple the >> number of variables. >> >> Rule of thumb, always count the number of capturing () in the regex >> and ensure you have the same number of allocated capturing variables. >> >> HTH >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Mon Aug 11 22:10:25 2014 From: sundown at pacifier.com (JB) Date: Mon, 11 Aug 2014 19:10:25 -0700 Subject: Standard Library In-Reply-To: <70FD1643-4629-44BA-AD48-B91FCE8598A4@gmail.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <31C441DC-4731-4B0D-BFAF-21BB1DEC2D85@pacifier.com> <70FD1643-4629-44BA-AD48-B91FCE8598A4@gmail.com> Message-ID: <466ADAE1-36B2-4C78-A269-D08D6EE118CC@pacifier.com> That is nice to know! I was thinking I would speed up the longer text processing. You just did me a favor and save me a lot of time plus made it easier and faster by not using regex for text processing. I still appreciate the info others gave because I know I will use regex from time to time. John Balgenorth On Aug 11, 2014, at 5:22 AM, Peter M. Brigham wrote: > I have very occasionally tried regex and can see that it is very powerful, but to me it's also extremely opaque and I've never climbed far up the rather steep learning curve. Partly this is because I've found that essentially all of the stuff I would need regex for is do-able in native LC, whose string manipulation capabilities are marvelous -- and much more intuitive for me. Plus, LC is much faster than regex when chewing through very large data sets, as long as you remember to "repeat for each?" > > My two cents. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > Just wondering... when someone asks you, 'A penny for your thoughts' > and you put your two cents in, what happens to the other penny? > > > On Aug 9, 2014, at 11:29 PM, JB wrote: > >> Thanks for the info about regex. I bookmarked >> the website and will be using your advice. I am >> pretty new to regex and even though I?ve spent >> a lot of time researching it you have helped me >> tremendously. >> >> John Balgenorth >> >> >> On Aug 9, 2014, at 8:15 PM, Kay C Lan wrote: >> >>> On Sun, Aug 10, 2014 at 9:08 AM, JB wrote: >>>> One of the things I am interested in seeing more handlers >>>> and examples is regex. It seems to be a very powerful >>>> tool with very few LiveCode examples. >>> >>> The matchChunk and matchText functions are pretty straight forward to >>> use, it's building the regex that can be difficult if you don't live >>> with it regularly. If what you really need is examples of regex then I >>> highly recommend this online regex builder: >>> >>> http://regex101.com/#pcre >>> >>> The thing I like about it is that you can choose the 'Flavor' of regex >>> it uses, so unlike other online regex builders that use Javascript, >>> you can choose the same library that Livecode uses: PCRE. So if it >>> works on this site it should work in LC. >>> >>> Even better, if you click on the Community tab at the top of the page >>> it will present you with a list of 100s and 100s of community provided >>> examples of regex, explains what they do, and it's as simple as copy >>> and paste into your matchChunk or matchText function to test in LC. >>> >>> I will warn you though of one gotcha that is easy to trip on if you're >>> an occasional user of regex + LC. The standard matchText function >>> looks like this: >>> >>> matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar) >>> >>> so any matches within () will be placed in your variable place holder. >>> >>> In regex the | character is used as OR >>> >>> so you might be looking for lowercase jpg file names, but you want >>> just the name, not the extension: >>> >>> ([a-z]+)\.jpg will work, but not if you also have some with a jpeg extension. >>> >>> ([a-z]+.jpeg will work for those, so these could be combined with the >>> | identifier: >>> >>> ([a-z]+)\.jpg|([a-z]+)\.jpeg >>> >>> Now I appreciate the regex experts will point out there is a much >>> better way to solve this problem than using |, but the point of this >>> is, if you use | in your regex, and place it in matchText or >>> matchChunk, you no longer have a single placeholder, so your matchText >>> function has to be amended accordingly: >>> >>> matchText(yourDataVar,"([a-z]+)\.jpg|([a-z]+)\.jpeg",myJpgFile,myJpegFile) >>> >>> It is easy, when copying regex off such sites listed above, or >>> building your own, and you know you are only finding x number of data >>> bites, to assume that that is how many capture variables you need, but >>> if OR is used, then you can easily end up needing double or triple the >>> number of variables. >>> >>> Rule of thumb, always count the number of capturing () in the regex >>> and ensure you have the same number of allocated capturing variables. >>> >>> HTH >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alain_farmer at yahoo.com Mon Aug 11 23:03:33 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Mon, 11 Aug 2014 20:03:33 -0700 Subject: Standard Library In-Reply-To: <466ADAE1-36B2-4C78-A269-D08D6EE118CC@pacifier.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <31C441DC-4731-4B0D-BFAF-21BB1DEC2D85@pacifier.com> <70FD1643-4629-44BA-AD48-B91FCE8598A4@gmail.com> <466ADAE1-36B2-4C78-A269-D08D6EE118CC@pacifier.com> Message-ID: <1407812613.82753.YahooMailNeo@web126104.mail.ne1.yahoo.com> Regex is GREAT! I use it a LOT. Anyone need any help to grasp how it works ? On Monday, August 11, 2014 10:14:28 PM, JB wrote: That is nice to know! I was thinking I would speed up the longer text processing.? You just did me a favor and save me a lot of time plus made it easier and faster by not using regex for text processing. I still appreciate the info others gave because I know I will use regex from time to time. John Balgenorth On Aug 11, 2014, at 5:22 AM, Peter M. Brigham wrote: > I have very occasionally tried regex and can see that it is very powerful, but to me it's also extremely opaque and I've never climbed far up the rather steep learning curve. Partly this is because I've found that essentially all of the stuff I would need regex for is do-able in native LC, whose string manipulation capabilities are marvelous -- and much more intuitive for me. Plus, LC is much faster than regex when chewing through very large data sets, as long as you remember to "repeat for each?" > > My two cents. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > Just wondering... when someone asks you, 'A penny for your thoughts' > and you put your two cents in, what happens to the other penny? > > > On Aug 9, 2014, at 11:29 PM, JB wrote: > >> Thanks for the info about regex.? I bookmarked >> the website and will be using your advice.? I am >> pretty new to regex and even though I?ve spent >> a lot of time researching it you have helped me >> tremendously. >> >> John Balgenorth >> >> >> On Aug 9, 2014, at 8:15 PM, Kay C Lan wrote: >> >>> On Sun, Aug 10, 2014 at 9:08 AM, JB wrote: >>>> One of the things I am interested in seeing more handlers >>>> and examples is regex.? It seems to be a very powerful >>>> tool with very few LiveCode examples. >>> >>> The matchChunk and matchText functions are pretty straight forward to >>> use, it's building the regex that can be difficult if you don't live >>> with it regularly. If what you really need is examples of regex then I >>> highly recommend this online regex builder: >>> >>> http://regex101.com/#pcre >>> >>> The thing I like about it is that you can choose the 'Flavor' of regex >>> it uses, so unlike other online regex builders that use Javascript, >>> you can choose the same library that Livecode uses: PCRE. So if it >>> works on this site it should work in LC. >>> >>> Even better, if you click on the Community tab at the top of the page >>> it will present you with a list of 100s and 100s of community provided >>> examples of regex, explains what they do, and it's as simple as copy >>> and paste into your matchChunk or matchText function to test in LC. >>> >>> I will warn you though of one gotcha that is easy to trip on if you're >>> an occasional user of regex + LC. The standard matchText function >>> looks like this: >>> >>> matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar) >>> >>> so any matches within () will be placed in your variable place holder. >>> >>> In regex the | character is used as OR >>> >>> so you might be looking for lowercase jpg file names, but you want >>> just the name, not the extension: >>> >>> ([a-z]+)\.jpg? will work, but not if you also have some with a jpeg extension. >>> >>> ([a-z]+.jpeg will work for those, so these could be combined with the >>> | identifier: >>> >>> ([a-z]+)\.jpg|([a-z]+)\.jpeg >>> >>> Now I appreciate the regex experts will point out there is a much >>> better way to solve this problem than using |, but the point of this >>> is, if you use | in your regex, and place it in matchText or >>> matchChunk, you no longer have a single placeholder, so your matchText >>> function has to be amended accordingly: >>> >>> matchText(yourDataVar,"([a-z]+)\.jpg|([a-z]+)\.jpeg",myJpgFile,myJpegFile) >>> >>> It is easy, when copying regex off such sites listed above, or >>> building your own, and you know you are only finding x number of data >>> bites, to assume that that is how many capture variables you need, but >>> if OR is used, then you can easily end up needing double or triple the >>> number of variables. >>> >>> Rule of thumb, always count the number of capturing () in the regex >>> and ensure you have the same number of allocated capturing variables. >>> >>> HTH >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Mon Aug 11 23:12:10 2014 From: sundown at pacifier.com (JB) Date: Mon, 11 Aug 2014 20:12:10 -0700 Subject: Standard Library In-Reply-To: <1407812613.82753.YahooMailNeo@web126104.mail.ne1.yahoo.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <31C441DC-4731-4B0D-BFAF-21BB1DEC2D85@pacifier.com> <70FD1643-4629-44BA-AD48-B91FCE8598A4@gmail.com> <466ADAE1-36B2-4C78-A269-D08D6EE118CC@pacifier.com> <1407812613.82753.YahooMailNeo@web126104.mail.ne1.yahoo.com> Message-ID: <9402AE4F-3AC9-49D0-8640-9766ECB2D9AF@pacifier.com> I was interested in using a if then replace combination but it seems it might be better done in LiveCode using repeat for each. If the speed is not considerably faster with regex it is not worth the trouble. The ability to read my code like I am used to is more important than a small increase in speed. John Balgenorth On Aug 11, 2014, at 8:03 PM, Alain Farmer wrote: > Regex is GREAT! > > I use it a LOT. > Anyone need any help to grasp how it works ? > > > > On Monday, August 11, 2014 10:14:28 PM, JB wrote: > > > > That is nice to know! > > I was thinking I would speed up the > longer text processing. You just did > me a favor and save me a lot of time > plus made it easier and faster by not > using regex for text processing. > > I still appreciate the info others gave > because I know I will use regex from > time to time. > > John Balgenorth > > > On Aug 11, 2014, at 5:22 AM, Peter M. Brigham wrote: > >> I have very occasionally tried regex and can see that it is very powerful, but to me it's also extremely opaque and I've never climbed far up the rather steep learning curve. Partly this is because I've found that essentially all of the stuff I would need regex for is do-able in native LC, whose string manipulation capabilities are marvelous -- and much more intuitive for me. Plus, LC is much faster than regex when chewing through very large data sets, as long as you remember to "repeat for each?" >> >> My two cents. >> >> -- Peter >> >> Peter M. Brigham >> pmbrig at gmail.com >> http://home.comcast.net/~pmbrig >> >> Just wondering... when someone asks you, 'A penny for your thoughts' >> and you put your two cents in, what happens to the other penny? >> >> >> On Aug 9, 2014, at 11:29 PM, JB wrote: >> >>> Thanks for the info about regex. I bookmarked >>> the website and will be using your advice. I am >>> pretty new to regex and even though I?ve spent >>> a lot of time researching it you have helped me >>> tremendously. >>> >>> John Balgenorth >>> >>> >>> On Aug 9, 2014, at 8:15 PM, Kay C Lan wrote: >>> >>>> On Sun, Aug 10, 2014 at 9:08 AM, JB wrote: >>>>> One of the things I am interested in seeing more handlers >>>>> and examples is regex. It seems to be a very powerful >>>>> tool with very few LiveCode examples. >>>> >>>> The matchChunk and matchText functions are pretty straight forward to >>>> use, it's building the regex that can be difficult if you don't live >>>> with it regularly. If what you really need is examples of regex then I >>>> highly recommend this online regex builder: >>>> >>>> http://regex101.com/#pcre >>>> >>>> The thing I like about it is that you can choose the 'Flavor' of regex >>>> it uses, so unlike other online regex builders that use Javascript, >>>> you can choose the same library that Livecode uses: PCRE. So if it >>>> works on this site it should work in LC. >>>> >>>> Even better, if you click on the Community tab at the top of the page >>>> it will present you with a list of 100s and 100s of community provided >>>> examples of regex, explains what they do, and it's as simple as copy >>>> and paste into your matchChunk or matchText function to test in LC. >>>> >>>> I will warn you though of one gotcha that is easy to trip on if you're >>>> an occasional user of regex + LC. The standard matchText function >>>> looks like this: >>>> >>>> matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar) >>>> >>>> so any matches within () will be placed in your variable place holder. >>>> >>>> In regex the | character is used as OR >>>> >>>> so you might be looking for lowercase jpg file names, but you want >>>> just the name, not the extension: >>>> >>>> ([a-z]+)\.jpg will work, but not if you also have some with a jpeg extension. >>>> >>>> ([a-z]+.jpeg will work for those, so these could be combined with the >>>> | identifier: >>>> >>>> ([a-z]+)\.jpg|([a-z]+)\.jpeg >>>> >>>> Now I appreciate the regex experts will point out there is a much >>>> better way to solve this problem than using |, but the point of this >>>> is, if you use | in your regex, and place it in matchText or >>>> matchChunk, you no longer have a single placeholder, so your matchText >>>> function has to be amended accordingly: >>>> >>>> matchText(yourDataVar,"([a-z]+)\.jpg|([a-z]+)\.jpeg",myJpgFile,myJpegFile) >>>> >>>> It is easy, when copying regex off such sites listed above, or >>>> building your own, and you know you are only finding x number of data >>>> bites, to assume that that is how many capture variables you need, but >>>> if OR is used, then you can easily end up needing double or triple the >>>> number of variables. >>>> >>>> Rule of thumb, always count the number of capturing () in the regex >>>> and ensure you have the same number of allocated capturing variables. >>>> >>>> HTH >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Aug 11 23:27:47 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 11 Aug 2014 20:27:47 -0700 Subject: Standard Library In-Reply-To: <1407812613.82753.YahooMailNeo@web126104.mail.ne1.yahoo.com> References: <1407812613.82753.YahooMailNeo@web126104.mail.ne1.yahoo.com> Message-ID: <53E989B3.2020205@fourthworld.com> Alain Farmer wrote: > Regex is GREAT! > > I use it a LOT. > Anyone need any help to grasp how it works ? Funny you should ask that - there was a request recently in the forums for a RegEx tutorial: Such a tutorial would be a great addition to the Lessons at LiveCode.com. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From sundown at pacifier.com Mon Aug 11 23:28:10 2014 From: sundown at pacifier.com (JB) Date: Mon, 11 Aug 2014 20:28:10 -0700 Subject: Standard Library In-Reply-To: <53E989B3.2020205@fourthworld.com> References: <1407812613.82753.YahooMailNeo@web126104.mail.ne1.yahoo.com> <53E989B3.2020205@fourthworld.com> Message-ID: <9D2BB5E6-0A1E-49AB-BC91-D472FBCB9335@pacifier.com> It would take a tutorial and one would be worth reading. John Balgenorth On Aug 11, 2014, at 8:27 PM, Richard Gaskin wrote: > Alain Farmer wrote: > > > Regex is GREAT! > > > > I use it a LOT. > > Anyone need any help to grasp how it works ? > > Funny you should ask that - there was a request recently in the forums for a RegEx tutorial: > > > > Such a tutorial would be a great addition to the Lessons at LiveCode.com. > > -- > Richard Gaskin > LiveCode Community Manager > richard at livecode.org > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacques.hausser at unil.ch Tue Aug 12 04:33:06 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Tue, 12 Aug 2014 10:33:06 +0200 Subject: Marker image sizes In-Reply-To: <53E94CCD.4030502@hyperactivesw.com> References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> <53E7F94A.7080704@hyperactivesw.com> <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> <53E82FCB.3030202@hyperactivesw.com> <53E94CCD.4030502@hyperactivesw.com> Message-ID: <4E292371-5425-4685-BAF9-D7CBF7FBCA89@unil.ch> Le 12 ao?t 2014 ? 01:07, J. Landman Gay a ?crit : > Thank you, that must have taken you a while to figure out. You're very kind. It's not so long to do, if one has some squared paper, but Bernd's stack (he sent it to me, thanks again Bernd) is far better ! > Do you ever feel like when we talk, we should call ourselves "this me"? Sometimes I think I am talking to myself. :) Behavior buttons are a very good example of Multiple Personality Disorder... I would favor "myself" or even better "itself" over "this me". Something concerning the parent button itself. ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From john at splash21.com Tue Aug 12 04:56:24 2014 From: john at splash21.com (John Craig) Date: Tue, 12 Aug 2014 09:56:24 +0100 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: <53E9D6B8.4080605@splash21.com> Agree - matchText and matchChunk would both benefit from the ability to specify an array to fill with matches - we don't always know exactly how many will appear .. http://quality.runrev.com/show_bug.cgi?id=11391 On 12/08/2014 02:12, Peter Haworth wrote: > I've always kinda thought the return variable parm to matchText was a > little strange as it relies on you knowing how many matches will be > found in advance. It would be great if the returned variable could be > an array keyed by the numeric match number, alike the variables you > can supply to the some of the database functions. From lists at mangomultimedia.com Tue Aug 12 12:47:15 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 12 Aug 2014 12:47:15 -0400 Subject: externalPackages In-Reply-To: References: Message-ID: On Sun, Aug 10, 2014 at 11:06 PM, JB wrote: > I created a button and put the following script into it. > > on mouseUp > put the externalPackages of stack "rnahelloTest" into fld id 1004 > end mouseUp > > What happens is it sets my field to empty. > I was thinking that since I have installed > the external properly and the stack is able > to use it properly it would list my external. > The externalPackages will be empty if the external failed to load. The externals property reports the path to the external file on disk. The externalPackages will report the names of the externals that were successfully loaded. If the externals property is pointing to the property external file on disk, you can make sure the "destroyWindow" property of the stack is set to true, close the stack, and then open it again. This will attempt to reload the external. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From lists at mangomultimedia.com Tue Aug 12 12:51:13 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 12 Aug 2014 12:51:13 -0400 Subject: Installing Externals In-Reply-To: <02828F2A-F42A-4074-A941-6F9D74FD4819@pacifier.com> References: <02828F2A-F42A-4074-A941-6F9D74FD4819@pacifier.com> Message-ID: On Mon, Aug 11, 2014 at 6:30 AM, JB wrote: > > How do you get the name of the first item if you do not > know what it is. You could try the name of the file and > not include the .Bundle and in this case you would get > lucky and it would work. > The external developer should provide you with that information. If you are the external developer then it is the value defined by the following in the external source: EXTERNAL_BEGIN_DECLARATIONS("EnhancedQT") The only other option is to assign the external file to the externals property of a stack, get the engine to load the external (using technique I mentioned in other thread), and then check the externalpackages property of the stack. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From lists at mangomultimedia.com Tue Aug 12 12:54:39 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 12 Aug 2014 12:54:39 -0400 Subject: Will Apple Gatekeeper changes break our standalones? In-Reply-To: <1407781134231-4681928.post@n4.nabble.com> References: <1407781134231-4681928.post@n4.nabble.com> Message-ID: On Mon, Aug 11, 2014 at 2:18 PM, tbodine wrote: > Also, from the rest of the Apple message about Gatekeeper, sounds like this > has potential to disrupt other standalones due to new bundle structure > requirements for codesigning... > > "Structure your bundle according to the signature evaluation requirements > for OS X Mavericks 10.9 or later. Considerations include: > - Signed code should only be placed in directories where the system > expects to find signed code. > - Resources should not be located in directories where the system > expects to find signed code. > - The --resource-rules flag and ResourceRules.plist are not supported." > > My concern is that resources (external images, sound files, external > stacks) > stored in folders within the Mac's app bundle may run into trouble with the > Gatekeeper update or codesigning process. > I haven't gone through and done testing on this just yet, but I do know that you will still be able to include your images, sounds, etc. in the app bundle. What may need to happen is that you move those files to the ./Contents/Resources folder rather than in the ./Contents/MacOS folder. I'll be experimenting with this over the coming weeks as I believe I am going to have to reorganize my app bundles as well. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From pete at lcsql.com Tue Aug 12 12:56:30 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 12 Aug 2014 09:56:30 -0700 Subject: Standard Library In-Reply-To: <53E9D6B8.4080605@splash21.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <53E9D6B8.4080605@splash21.com> Message-ID: On Tue, Aug 12, 2014 at 1:56 AM, John Craig wrote: > http://quality.runrev.com/show_bug.cgi?id=11391 Thanks John, added this me to the cc list and also added a comment. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From bernd.niggemann at uni-wh.de Tue Aug 12 13:08:20 2014 From: bernd.niggemann at uni-wh.de (BNig) Date: Tue, 12 Aug 2014 10:08:20 -0700 (PDT) Subject: Marker image sizes In-Reply-To: <4E292371-5425-4685-BAF9-D7CBF7FBCA89@unil.ch> References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> <53E7F94A.7080704@hyperactivesw.com> <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> <53E82FCB.3030202@hyperactivesw.com> <53E94CCD.4030502@hyperactivesw.com> <4E292371-5425-4685-BAF9-D7CBF7FBCA89@unil.ch> Message-ID: <1407863300662-4681949.post@n4.nabble.com> Hi, since there was a stack mentioned I figured I make it available. The stack makes markerPoints for graphics in form of circle or ellipse. The stack has a minimalistic layout and the math for drawing an ellipse is taken from a stack from Jim James Hurley. http://berndniggemann.on-rev.com/markers/markerUtilityCircle.livecode There is also a stack on LiveCodeShare that allows drawing or marker shapes http://livecodeshare.runrev.com/stack/396/MakeMarker-Utility and for a nice marker made with above utility set the markerPoints of a polygon graphic to ---------------------- -4,-6 -4,-5 -4,-4 -4,-3 -4,-2 -4,-1 -4,0 -4,0 -5,0 -6,0 -2,-4 -2,-3 -2,-2 -2,-1 -2,0 -2,-4 -1,-4 0,-4 1,-4 1,-4 1,-3 1,-2 1,-1 1,0 -2,-2 -1,-2 0,-2 3,-4 4,-4 5,-4 3,-4 3,-3 3,-2 3,-1 3,0 3,0 4,0 5,0 -6,2 -5,2 -4,2 -6,2 -6,3 -6,4 -6,4 -5,4 -4,4 -4,2 -4,3 -4,4 -4,5 -4,6 -2,2 -2,3 -2,4 -2,5 -2,6 -2,6 -1,6 0,6 1,6 1,6 1,5 1,4 1,3 1,2 3,2 3,3 3,4 3,5 3,6 3,2 4,2 5,2 3,6 4,6 5,6 3,4 4,4 ------------------------------------- Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Marker-image-sizes-tp4681893p4681949.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Tue Aug 12 13:11:54 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 12 Aug 2014 10:11:54 -0700 Subject: Standard Library In-Reply-To: <70FD1643-4629-44BA-AD48-B91FCE8598A4@gmail.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <31C441DC-4731-4B0D-BFAF-21BB1DEC2D85@pacifier.com> <70FD1643-4629-44BA-AD48-B91FCE8598A4@gmail.com> Message-ID: I've taken to using regex for input data validation, for example, email addresses, SSN, telephone numbers, URL,even stripping leading/trailing spaces. There are various regex libraries online where people have contributed expressions for those purposes. I just like the fact that one line of code is all it takes versus however many repeat loop lines it takes. I've never checked out the relative speed of regex vs native LC script but for short amounts of data like that, it doesn't really matter. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Aug 11, 2014 at 5:22 AM, Peter M. Brigham wrote: > I have very occasionally tried regex and can see that it is very powerful, > but to me it's also extremely opaque and I've never climbed far up the > rather steep learning curve. Partly this is because I've found that > essentially all of the stuff I would need regex for is do-able in native > LC, whose string manipulation capabilities are marvelous -- and much more > intuitive for me. Plus, LC is much faster than regex when chewing through > very large data sets, as long as you remember to "repeat for each?" > > My two cents. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > Just wondering... when someone asks you, 'A penny for your thoughts' > and you put your two cents in, what happens to the other penny? > > > On Aug 9, 2014, at 11:29 PM, JB wrote: > > > Thanks for the info about regex. I bookmarked > > the website and will be using your advice. I am > > pretty new to regex and even though I?ve spent > > a lot of time researching it you have helped me > > tremendously. > > > > John Balgenorth > > > > > > On Aug 9, 2014, at 8:15 PM, Kay C Lan wrote: > > > >> On Sun, Aug 10, 2014 at 9:08 AM, JB wrote: > >>> One of the things I am interested in seeing more handlers > >>> and examples is regex. It seems to be a very powerful > >>> tool with very few LiveCode examples. > >> > >> The matchChunk and matchText functions are pretty straight forward to > >> use, it's building the regex that can be difficult if you don't live > >> with it regularly. If what you really need is examples of regex then I > >> highly recommend this online regex builder: > >> > >> http://regex101.com/#pcre > >> > >> The thing I like about it is that you can choose the 'Flavor' of regex > >> it uses, so unlike other online regex builders that use Javascript, > >> you can choose the same library that Livecode uses: PCRE. So if it > >> works on this site it should work in LC. > >> > >> Even better, if you click on the Community tab at the top of the page > >> it will present you with a list of 100s and 100s of community provided > >> examples of regex, explains what they do, and it's as simple as copy > >> and paste into your matchChunk or matchText function to test in LC. > >> > >> I will warn you though of one gotcha that is easy to trip on if you're > >> an occasional user of regex + LC. The standard matchText function > >> looks like this: > >> > >> matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar) > >> > >> so any matches within () will be placed in your variable place holder. > >> > >> In regex the | character is used as OR > >> > >> so you might be looking for lowercase jpg file names, but you want > >> just the name, not the extension: > >> > >> ([a-z]+)\.jpg will work, but not if you also have some with a jpeg > extension. > >> > >> ([a-z]+.jpeg will work for those, so these could be combined with the > >> | identifier: > >> > >> ([a-z]+)\.jpg|([a-z]+)\.jpeg > >> > >> Now I appreciate the regex experts will point out there is a much > >> better way to solve this problem than using |, but the point of this > >> is, if you use | in your regex, and place it in matchText or > >> matchChunk, you no longer have a single placeholder, so your matchText > >> function has to be amended accordingly: > >> > >> > matchText(yourDataVar,"([a-z]+)\.jpg|([a-z]+)\.jpeg",myJpgFile,myJpegFile) > >> > >> It is easy, when copying regex off such sites listed above, or > >> building your own, and you know you are only finding x number of data > >> bites, to assume that that is how many capture variables you need, but > >> if OR is used, then you can easily end up needing double or triple the > >> number of variables. > >> > >> Rule of thumb, always count the number of capturing () in the regex > >> and ensure you have the same number of allocated capturing variables. > >> > >> HTH > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From charles at buchwald.ca Tue Aug 12 14:51:32 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Tue, 12 Aug 2014 13:51:32 -0500 Subject: Standard Library In-Reply-To: <53E9D6B8.4080605@splash21.com> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <53E9D6B8.4080605@splash21.com> Message-ID: Yes, but just having a more complete implementation of PCRE regex would make a big difference. For example, LC's regex does not include back references. Having the ability to use (PCRE compliant) back references would, I believe, in many case, eliminate the need for that array of matches. For example.... From http://quality.runrev.com/show_bug.cgi?id=12439 > The dictionary says "LiveCode implements regular expressions compatible with the PCRE library." Without back references the LC implementation is a rather limited subset of that library. > > Example: > I would expect to be able to do this in the message box: > put replaceText("abcd","(ab)(cd)","$2$1") > and get this: > "cdab" > > Instead I have to do this: > if matchText("abcd","(ab)(cd)",var1,var2) then put var2 & var1 > > But this is a trivial example. If either my string to search or my pattern is slightly more complex, then what would be a trivial task with full PCRE compliant regex becomes comparatively complicated in LC. On 12 Aug 2014, at 3:56 AM, John Craig wrote: > Agree - matchText and matchChunk would both benefit from the ability to specify an array to fill with matches - we don't always know exactly how many will appear .. > > http://quality.runrev.com/show_bug.cgi?id=11391 > > > On 12/08/2014 02:12, Peter Haworth wrote: >> I've always kinda thought the return variable parm to matchText was a little strange as it relies on you knowing how many matches will be found in advance. It would be great if the returned variable could be an array keyed by the numeric match number, alike the variables you can supply to the some of the database functions. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From pete at lcsql.com Tue Aug 12 15:51:33 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 12 Aug 2014 12:51:33 -0700 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <53E9D6B8.4080605@splash21.com> Message-ID: Good point, that would be a nice enhancement. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Aug 12, 2014 at 11:51 AM, Charles E Buchwald wrote: > Yes, but just having a more complete implementation of PCRE regex would > make a big difference. > For example, LC's regex does not include back references. > Having the ability to use (PCRE compliant) back references would, I > believe, in many case, eliminate the need for that array of matches. > For example.... > > From http://quality.runrev.com/show_bug.cgi?id=12439 > > > The dictionary says "LiveCode implements regular expressions compatible > with the PCRE library." Without back references the LC implementation is a > rather limited subset of that library. > > > > Example: > > I would expect to be able to do this in the message box: > > put replaceText("abcd","(ab)(cd)","$2$1") > > and get this: > > "cdab" > > > > Instead I have to do this: > > if matchText("abcd","(ab)(cd)",var1,var2) then put var2 & var1 > > > > But this is a trivial example. If either my string to search or my > pattern is slightly more complex, then what would be a trivial task with > full PCRE compliant regex becomes comparatively complicated in LC. > > On 12 Aug 2014, at 3:56 AM, John Craig wrote: > > > Agree - matchText and matchChunk would both benefit from the ability to > specify an array to fill with matches - we don't always know exactly how > many will appear .. > > > > http://quality.runrev.com/show_bug.cgi?id=11391 > > > > > > On 12/08/2014 02:12, Peter Haworth wrote: > >> I've always kinda thought the return variable parm to matchText was a > little strange as it relies on you knowing how many matches will be found > in advance. It would be great if the returned variable could be an array > keyed by the numeric match number, alike the variables you can supply to > the some of the database functions. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Charles E. Buchwald > CEO/Director General > Museografica Digital > http://digital.museografica.com > > Mac OSX 10.9.4, LC 6.6.2 Commercial > > LC Developer Tools: http://buchwald.ca/developer-tools/ > > Email Notice: http://wp.me/P3aT4d-33 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Tue Aug 12 17:19:48 2014 From: sundown at pacifier.com (JB) Date: Tue, 12 Aug 2014 14:19:48 -0700 Subject: Installing Externals In-Reply-To: References: <02828F2A-F42A-4074-A941-6F9D74FD4819@pacifier.com> Message-ID: Thank you for both replies Trevor. It is some valuable information. I was wondering where the name came from because even on the external I wrote I could not figure out how the name was created. John Balgenorth On Aug 12, 2014, at 9:51 AM, Trevor DeVore wrote: > On Mon, Aug 11, 2014 at 6:30 AM, JB wrote: > >> >> How do you get the name of the first item if you do not >> know what it is. You could try the name of the file and >> not include the .Bundle and in this case you would get >> lucky and it would work. >> > > The external developer should provide you with that information. If you are > the external developer then it is the value defined by the following in > the external source: > > EXTERNAL_BEGIN_DECLARATIONS("EnhancedQT") > > The only other option is to assign the external file to the externals > property of a stack, get the engine to load the external (using technique I > mentioned in other thread), and then check the externalpackages property of > the stack. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.com - www.clarify-it.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bodine at bodinetraininggames.com Tue Aug 12 17:29:06 2014 From: bodine at bodinetraininggames.com (tbodine) Date: Tue, 12 Aug 2014 14:29:06 -0700 (PDT) Subject: Will Apple Gatekeeper changes break our standalones? In-Reply-To: References: <1407781134231-4681928.post@n4.nabble.com> Message-ID: <1407878946280-4681954.post@n4.nabble.com> Thanks, Trevor. I hate waiting until the support requests roll in, so like you I'm trying to get ahead of this. Thanks for sharing your insights. Please continue to do so! Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Will-Apple-Gatekeeper-changes-break-our-standalones-tp4681928p4681954.html Sent from the Revolution - User mailing list archive at Nabble.com. From sundown at pacifier.com Tue Aug 12 17:26:00 2014 From: sundown at pacifier.com (JB) Date: Tue, 12 Aug 2014 14:26:00 -0700 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <31C441DC-4731-4B0D-BFAF-21BB1DEC2D85@pacifier.com> <70FD1643-4629-44BA-AD48-B91FCE8598A4@gmail.com> Message-ID: I see it is powerful and has a good value. I use it for some things already but when it gets to more complex if then else replace code it is still too complicated for me. John Balgenorth On Aug 12, 2014, at 10:11 AM, Peter Haworth wrote: > I've taken to using regex for input data validation, for example, email > addresses, SSN, telephone numbers, URL,even stripping leading/trailing > spaces. There are various regex libraries online where people have > contributed expressions for those purposes. > > I just like the fact that one line of code is all it takes versus however > many repeat loop lines it takes. I've never checked out the relative speed > of regex vs native LC script but for short amounts of data like that, it > doesn't really matter. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Mon, Aug 11, 2014 at 5:22 AM, Peter M. Brigham wrote: > >> I have very occasionally tried regex and can see that it is very powerful, >> but to me it's also extremely opaque and I've never climbed far up the >> rather steep learning curve. Partly this is because I've found that >> essentially all of the stuff I would need regex for is do-able in native >> LC, whose string manipulation capabilities are marvelous -- and much more >> intuitive for me. Plus, LC is much faster than regex when chewing through >> very large data sets, as long as you remember to "repeat for each?" >> >> My two cents. >> >> -- Peter >> >> Peter M. Brigham >> pmbrig at gmail.com >> http://home.comcast.net/~pmbrig >> >> Just wondering... when someone asks you, 'A penny for your thoughts' >> and you put your two cents in, what happens to the other penny? >> >> >> On Aug 9, 2014, at 11:29 PM, JB wrote: >> >>> Thanks for the info about regex. I bookmarked >>> the website and will be using your advice. I am >>> pretty new to regex and even though I?ve spent >>> a lot of time researching it you have helped me >>> tremendously. >>> >>> John Balgenorth >>> >>> >>> On Aug 9, 2014, at 8:15 PM, Kay C Lan wrote: >>> >>>> On Sun, Aug 10, 2014 at 9:08 AM, JB wrote: >>>>> One of the things I am interested in seeing more handlers >>>>> and examples is regex. It seems to be a very powerful >>>>> tool with very few LiveCode examples. >>>> >>>> The matchChunk and matchText functions are pretty straight forward to >>>> use, it's building the regex that can be difficult if you don't live >>>> with it regularly. If what you really need is examples of regex then I >>>> highly recommend this online regex builder: >>>> >>>> http://regex101.com/#pcre >>>> >>>> The thing I like about it is that you can choose the 'Flavor' of regex >>>> it uses, so unlike other online regex builders that use Javascript, >>>> you can choose the same library that Livecode uses: PCRE. So if it >>>> works on this site it should work in LC. >>>> >>>> Even better, if you click on the Community tab at the top of the page >>>> it will present you with a list of 100s and 100s of community provided >>>> examples of regex, explains what they do, and it's as simple as copy >>>> and paste into your matchChunk or matchText function to test in LC. >>>> >>>> I will warn you though of one gotcha that is easy to trip on if you're >>>> an occasional user of regex + LC. The standard matchText function >>>> looks like this: >>>> >>>> matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar) >>>> >>>> so any matches within () will be placed in your variable place holder. >>>> >>>> In regex the | character is used as OR >>>> >>>> so you might be looking for lowercase jpg file names, but you want >>>> just the name, not the extension: >>>> >>>> ([a-z]+)\.jpg will work, but not if you also have some with a jpeg >> extension. >>>> >>>> ([a-z]+.jpeg will work for those, so these could be combined with the >>>> | identifier: >>>> >>>> ([a-z]+)\.jpg|([a-z]+)\.jpeg >>>> >>>> Now I appreciate the regex experts will point out there is a much >>>> better way to solve this problem than using |, but the point of this >>>> is, if you use | in your regex, and place it in matchText or >>>> matchChunk, you no longer have a single placeholder, so your matchText >>>> function has to be amended accordingly: >>>> >>>> >> matchText(yourDataVar,"([a-z]+)\.jpg|([a-z]+)\.jpeg",myJpgFile,myJpegFile) >>>> >>>> It is easy, when copying regex off such sites listed above, or >>>> building your own, and you know you are only finding x number of data >>>> bites, to assume that that is how many capture variables you need, but >>>> if OR is used, then you can easily end up needing double or triple the >>>> number of variables. >>>> >>>> Rule of thumb, always count the number of capturing () in the regex >>>> and ensure you have the same number of allocated capturing variables. >>>> >>>> HTH >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Tue Aug 12 19:28:17 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 12 Aug 2014 16:28:17 -0700 Subject: Trigger Mobile Page Swipe? Message-ID: Anyone know if it's possible to manually trigger a page "advance" on a mobile scroller, when the scroller has paging enabled? I'm wondering if there's some method to cause the scroller to advance to the next "page" other than setting the scroll of the scroller manually. Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From cszasz at me.com Wed Aug 6 14:19:51 2014 From: cszasz at me.com (Charles Szasz) Date: Wed, 06 Aug 2014 12:19:51 -0600 Subject: Text in an edit field disappears after opening a substack Message-ID: <859C7E2F-8748-460B-B16A-7EA45AD2B688@me.com> I am using LC 5.5.5. I have a substack (?Grade?) that is launched when the user goes from one edit field to the next field. The substack has a grade option button that inserts a grade in the second field. After the user enters text in the first field and goes to the next field, the text in the first field is cleared as the substack appears. This is my script for the second edit field that launches the substack: on openField if field "grade2" is empty then go stack "Grade" end if end openField This is the script for the substack: on preOpenCard set the label of button "grade" to "Select Grade" set the backgroundColor of this card to 202,202,202 end preOpenCard There is no script in the first field. Has anyone encounter this problem? Charles Szasz cszasz at mac.com From green.rodney at gmail.com Tue Aug 12 22:35:45 2014 From: green.rodney at gmail.com (Rodney Green) Date: Tue, 12 Aug 2014 22:35:45 -0400 Subject: Multiple versions of apps Message-ID: How feasible is it to write an app and customize it with many users data. Like a few hundred users. Are there any tools for this? Would this be a nightmare to manage? From lan.kc.macmail at gmail.com Tue Aug 12 22:40:53 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 13 Aug 2014 10:40:53 +0800 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: On Mon, Aug 11, 2014 at 10:38 PM, Thierry Douez wrote: > > Check capture group naming and branch reset. > Thanks Thierry, completely unaware of those. A quick play and I couldn't get capture group naming to work with LC but branch reset I could, so that is most useful. Still for anyone who is new to regex or a very occasional user I find http://regex101.com/#pcre very helpful as the explanation window tells you what each bit of your code will do, it hilites any unmatched parentheses and tells you exactly how many capturing groups you've created. That's what I love so much about LC and this List. LC allows you to dip your toes in the waters of regex, perl, shell scripting, SQL, XML... and this List encourages you to wade right in. From kee at kagi.com Tue Aug 12 23:00:58 2014 From: kee at kagi.com (kee nethery) Date: Tue, 12 Aug 2014 20:00:58 -0700 Subject: Multiple versions of apps In-Reply-To: References: Message-ID: <6C66C13E-25CF-46D6-93B5-7C36776D1CD8@kagi.com> On Aug 12, 2014, at 7:35 PM, Rodney Green wrote: > How feasible is it to write an app and customize it with many users data. > Like a few hundred users. Are there any tools for this? Would this be a > nightmare to manage? I don?t see anything in the dictionary that indicates you can cause a stack to be compiled into an application via a script. The closest seems to be domenu and it wouldn?t give you control of what happens after that menu is selected (assuming domenu works under ?Save As Standalone application ?". It?s an interesting question. Maybe someone else knows a way to save a stack as an application via script command. Kee Nethery From lan.kc.macmail at gmail.com Tue Aug 12 23:31:54 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 13 Aug 2014 11:31:54 +0800 Subject: Multiple versions of apps In-Reply-To: References: Message-ID: Is that one app with 100s of different possible configurations or 100s of users selecting from a handful of configurations. I believe it was the very talented Jerry Daniels from this List that once commented something along the lines that the core function of an app is the easy part; saying no to the many user requested features, enhancements, preferences and only implementing the best - that is the hard part. Basically if you go down the path of implementing every single user enhancement/option request you'll eventually end up with the nightmare of spending 99% of your time working on less than 1% of your core code. As to Kee's comment, it should be appreciated that since Community the script limit of '10 lines' has been removed so it's possible via script to set the script of any object to anything you need. How you determine what exact script you need in each object, how many objects you have, their location, propeties etc etc, well, that too can all be done by script, but I'm sure you can see that it won't be a trivial task, and depending on what your app actually does, could easily double or triple the code base you have to maintain. Jerry produced some very slick, fast and much loved apps. Where is he these days? On Wed, Aug 13, 2014 at 10:35 AM, Rodney Green wrote: > How feasible is it to write an app and customize it with many users data. > Like a few hundred users. Are there any tools for this? Would this be a > nightmare to manage? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jhj at jhj.com Wed Aug 13 00:10:20 2014 From: jhj at jhj.com (Jerry Jensen) Date: Tue, 12 Aug 2014 21:10:20 -0700 Subject: Multiple versions of apps In-Reply-To: References: Message-ID: <093B9A96-A4E8-42B8-912C-72401482FB8B@jhj.com> I think you would need to have the customizable parts in a separate data file generated for each user, that your app reads. User data separated from app logic. Its not always so easy to do. If your user data is sensitive it would need to be encrypted I suppose. A tool could be written to help generate the user data file into a form friendly to your app. .Jerry On Aug 12, 2014, at 7:35 PM, Rodney Green wrote: > How feasible is it to write an app and customize it with many users data. > Like a few hundred users. Are there any tools for this? Would this be a > nightmare to manage? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Aug 13 00:37:57 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 12 Aug 2014 23:37:57 -0500 Subject: Text in an edit field disappears after opening a substack In-Reply-To: <859C7E2F-8748-460B-B16A-7EA45AD2B688@me.com> References: <859C7E2F-8748-460B-B16A-7EA45AD2B688@me.com> Message-ID: I don't see anything in those two handlers that would cause a field's content to clear. I'd look somewhere else, maybe a card or stack script is causing it to happen. Do you have any closeField or exitField handlers that delete field content? On August 6, 2014 1:19:51 PM CDT, Charles Szasz wrote: >I am using LC 5.5.5. I have a substack (?Grade?) that is launched when >the user goes from one edit field to the next field. The substack has a >grade option button that inserts a grade in the second field. After the >user enters text in the first field and goes to the next field, the >text in the first field is cleared as the substack appears. > >This is my script for the second edit field that launches the substack: > >on openField > if field "grade2" is empty > then > go stack "Grade" > end if >end openField > >This is the script for the substack: > >on preOpenCard > set the label of button "grade" to "Select Grade" > set the backgroundColor of this card to 202,202,202 >end preOpenCard > >There is no script in the first field. > >Has anyone encounter this problem? > >Charles Szasz >cszasz at mac.com > > > > > >_______________________________________________ >use-livecode mailing list >use-livecode at 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 | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From th.douez at gmail.com Wed Aug 13 00:38:49 2014 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 13 Aug 2014 06:38:49 +0200 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <53E9D6B8.4080605@splash21.com> Message-ID: > Yes, but just having a more complete implementation of PCRE regex would make a big difference. > For example, LC's regex does not include back references. > Having the ability to use (PCRE compliant) back references would, I believe, in many case, eliminate the need for that array of matches. > For example.... >> The dictionary says "LiveCode implements regular expressions compatible with the PCRE library." Without back references the LC implementation is a rather limited subset of that library. Sorry to be a bit more precise, but actually back references *are* implemented. You can use them in the pattern matching, as: " (.)\1" I let the reader find what's for :) A regex engine needs 2 input: a text and a pattern matching and it returns true or false plus a list (generic word) of index if any captures. That's it. Everything else is *not* part of the regex engine. That said, implementing back references in the replacement text is and only is the responsability of Livecode engine! (see below) >> Example: >> I would expect to be able to do this in the message box: >> put replaceText("abcd","(ab)(cd)","$2$1") >> and get this: >> "cdab" Well, change $1 $2 by \1 and \2 and it will be less Perlish plus this syntax is already in use. What a pity you didn't manifest yourself here and at this time: http://forums.livecode.com/viewtopic.php?f=66&t=17412 I dropped all, feeling a bit lonely on this path.. >> Instead I have to do this: >> if matchText("abcd","(ab)(cd)",var1,var2) then put var2 & var1 >> >> But this is a trivial example. If either my string to search or my pattern is slightly more complex, then what would be a trivial task with full PCRE compliant regex becomes comparatively complicated in LC. Yes, speaking from experience, Perl and Regex are just "Wow" and they are fast; yes, fast! Why do you think I spent so much time developping a Perl external for Livecode some years ago. And if you don't believe a French guy, check how geneticians work with huge databases and DNA files.. Regards, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From dunbarx at aol.com Wed Aug 13 01:02:13 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 13 Aug 2014 01:02:13 -0400 (EDT) Subject: Text in an edit field disappears after opening a substack In-Reply-To: <859C7E2F-8748-460B-B16A-7EA45AD2B688@me.com> References: <859C7E2F-8748-460B-B16A-7EA45AD2B688@me.com> Message-ID: <8D184CAE11245CF-3358-1EA0B@webmail-d291.sysops.aol.com> What Jacque said. Barring any errant handler that does this evil deed, send the stack to support. They would love an actual repeatable example of such a thing. Craig -----Original Message----- From: Charles Szasz To: LiveCode List-serv Sent: Tue, Aug 12, 2014 9:21 pm Subject: Text in an edit field disappears after opening a substack I am using LC 5.5.5. I have a substack (?Grade?) that is launched when the user goes from one edit field to the next field. The substack has a grade option button that inserts a grade in the second field. After the user enters text in the first field and goes to the next field, the text in the first field is cleared as the substack appears. This is my script for the second edit field that launches the substack: on openField if field "grade2" is empty then go stack "Grade" end if end openField This is the script for the substack: on preOpenCard set the label of button "grade" to "Select Grade" set the backgroundColor of this card to 202,202,202 end preOpenCard There is no script in the first field. Has anyone encounter this problem? Charles Szasz cszasz at mac.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From th.douez at gmail.com Wed Aug 13 03:21:55 2014 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 13 Aug 2014 09:21:55 +0200 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: > Thierry Douez wrote: >> >> Check capture group naming and branch reset. >> > Thanks Thierry, completely unaware of those. A quick play and I > couldn't get capture group naming to work with LC Kay, Here is a simple one: put "<(?P[A-Z][A-Z0-9]*)\b[^>]*>.*?" into RX if matchText( anyHtmlText, RX) then put "Get it!" put "<(?P[A-Z][A-Z0-9]*)\b[^>]*>.*?" into RX if matchText( anyHtmlText, RX, aTagName) then put "Get: " & aTagName Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From charles at buchwald.ca Wed Aug 13 04:45:03 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Wed, 13 Aug 2014 03:45:03 -0500 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <53E9D6B8.4080605@splash21.com> Message-ID: <8EAF3E76-B0E6-4712-BCBE-E03BD93C804F@buchwald.ca> Hi Thierry, OK, well, cool.... But can you help me understand? Do you mean if I put this in the message box, making the replacements you suggest: put replaceText("abcd","(ab)(cd)","\2\1") I should get: cdab Because I get: \2\1 What am I missing? Cheers, - Charles On 12 Aug 2014, at 11:38 PM, Thierry Douez wrote: > Sorry to be a bit more precise, but actually back references *are* > implemented. You can use them in the pattern matching, as: > " (.)\1" > I let the reader find what's for :) > > A regex engine needs 2 input: a text and a pattern matching > and it returns true or false plus a list (generic word) > of index if any captures. That's it. Everything else is *not* part > of the regex engine. > > That said, implementing back references in the replacement text > is and only is the responsability of Livecode engine! (see below) > > >>> Example: >>> I would expect to be able to do this in the message box: >>> put replaceText("abcd","(ab)(cd)","$2$1") >>> and get this: >>> "cdab" > > Well, change $1 $2 by \1 and \2 and it will be less Perlish > plus this syntax is already in use. -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From th.douez at gmail.com Wed Aug 13 05:00:57 2014 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 13 Aug 2014 11:00:57 +0200 Subject: Standard Library In-Reply-To: <8EAF3E76-B0E6-4712-BCBE-E03BD93C804F@buchwald.ca> References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <53E9D6B8.4080605@splash21.com> <8EAF3E76-B0E6-4712-BCBE-E03BD93C804F@buchwald.ca> Message-ID: 2014-08-13 10:45 GMT+02:00 Charles E Buchwald : > Hi Thierry, > > Do you mean if I put this in the message box, making the replacements you suggest: > put replaceText("abcd","(ab)(cd)","\2\1") > > I should get: > cdab > > Because I get: > \2\1 > > What am I missing? Umm, well, I was trying to say that this is *not* implemented in Livecode, and the link to the engine contributor forum was to show that I wanted to do it a few mmonths ago... You can use back references in the *pattern matching text*, but not in the replacement text. Sounds better? Thierry From th.douez at gmail.com Wed Aug 13 06:21:04 2014 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 13 Aug 2014 12:21:04 +0200 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <53E9D6B8.4080605@splash21.com> <8EAF3E76-B0E6-4712-BCBE-E03BD93C804F@buchwald.ca> Message-ID: > You can use back references in the *pattern matching text*, > but not in the replacement text. Here is one working: put replaceText( "IILLoovveeRReeggeexx", "(.)(?!\1)", empty ) Not sure everybody will agree with the result :) Regards, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From richmondmathewson at gmail.com Wed Aug 13 06:27:50 2014 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 13 Aug 2014 13:27:50 +0300 Subject: Back to the Future. In-Reply-To: <53DDEA1E.30207@gmail.com> References: <6CBAEE32-64DA-4F32-BC07-A918F00D0347@livecode.org> <53DDEA1E.30207@gmail.com> Message-ID: <53EB3DA6.7050009@gmail.com> Well; retro fans [i.e. Me, Myself and I . . . LOL], The G3 tray-loading iMac obviously could not be bothered to wait for my annual visit and expired sometime between August last year and 4 days ago: unbeknownst to my Mum and Dad; so, after removing VRAM, RAM, HD and CD-Drive + the odd rather interesting cable or two, with due intonation of funeral mantras it was taken to the local recycling centre. Personally a bit sad: this means that I will have to reinstall Mac OS 10.3.9 or 10.4.11 on my Slot loading DV G3 iMac back in Bulgaria ["Back in Bulgaria"; the greatest song the Beatles didn't write!] as it is currently running Mac OS 9.2.2. Got in fight with the "rough types" as the dump because they didn't like me waving a yaktail fan and 108 sticks of incense . . . LOL Anyway: I'll be back in Bulgaria shortly; so expect the stream of tangentialisms to start up all over gain. Richmond. From bvg at mac.com Wed Aug 13 08:46:32 2014 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 13 Aug 2014 14:46:32 +0200 Subject: ChatRev In-Reply-To: <53E6A316.80309@economy-x-talk.com> References: <53E6A316.80309@economy-x-talk.com> Message-ID: Alright, I'm back, got a brand new router, and everything should be working again. http://bjoernke.com/index.irev?target=chatrev On 10 Aug 2014, at 00:39, Mark Schonewille wrote: > Hi guys, > > Bj?rnke just told me that a thunder storm took out his internet connection. DSL doesn't work anymore. Consequently, the ChatRev server has been disconnected. The equipment still works and Bj?rnke expects to be back on-line within a few days. > > If you would like to know more about ChatRev, go here: > http://bjoernke.com/index.irev?target=chatrev > but if you want to give it a try, please wait a few days until the connection gets fixed. -- Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ From jhurley0305 at sbcglobal.net Wed Aug 13 10:55:08 2014 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 13 Aug 2014 07:55:08 -0700 Subject: M Message-ID: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> From andrew at ctech.me Wed Aug 13 10:59:26 2014 From: andrew at ctech.me (Andrew Kluthe) Date: Wed, 13 Aug 2014 09:59:26 -0500 Subject: M In-Reply-To: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> Message-ID: N! On Wed, Aug 13, 2014 at 9:55 AM, Jim Hurley wrote: > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Regards, Andrew Kluthe andrew at ctech.me From coiin at verizon.net Wed Aug 13 11:00:34 2014 From: coiin at verizon.net (Colin Holgate) Date: Wed, 13 Aug 2014 11:00:34 -0400 Subject: M In-Reply-To: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> Message-ID: <802B7697-91D3-42ED-9A02-686D2DA72777@verizon.net> Q (I assumed we were going through Bond characters?) From mwieder at ahsoftware.net Wed Aug 13 11:18:30 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 13 Aug 2014 08:18:30 -0700 Subject: M In-Reply-To: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> Message-ID: <55-1743896428.20140813081830@ahsoftware.net> A! (I'm first in line) -- Mark Wieder ahsoftware at gmail.com From pete at lcsql.com Wed Aug 13 12:28:48 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 13 Aug 2014 09:28:48 -0700 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> <53E9D6B8.4080605@splash21.com> <8EAF3E76-B0E6-4712-BCBE-E03BD93C804F@buchwald.ca> Message-ID: On Wed, Aug 13, 2014 at 3:21 AM, Thierry Douez wrote: > put replaceText( "IILLoovveeRReeggeexx", "(.)(?!\1)", empty ) Very clever Thierry! These back references are very useful. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From dunbarx at aol.com Wed Aug 13 13:14:25 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 13 Aug 2014 13:14:25 -0400 (EDT) Subject: M In-Reply-To: <802B7697-91D3-42ED-9A02-686D2DA72777@verizon.net> References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> <802B7697-91D3-42ED-9A02-686D2DA72777@verizon.net> Message-ID: <8D185312A7253EE-1D28-3233@webmail-d294.sysops.aol.com> Blank. Scrabble. This trumps all. Craig -----Original Message----- From: Colin Holgate To: How to use LiveCode Sent: Wed, Aug 13, 2014 11:01 am Subject: Re: M Q (I assumed we were going through Bond characters?) _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bvg at mac.com Wed Aug 13 13:38:07 2014 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 13 Aug 2014 19:38:07 +0200 Subject: Selling a ticket for RevCon '14 In-Reply-To: <59371412-2E5E-4E97-BF13-0F74962DEDCA@mac.com> References: <59371412-2E5E-4E97-BF13-0F74962DEDCA@mac.com> Message-ID: <205EBBB0-FAE7-4951-A503-1CDADE544250@mac.com> I still have this ticket and am offering it for a discount of more then 30% less then on the shop. I can't believe that everyone who is thinking about going already has their ticket? On 09 Aug 2014, at 18:33, Bj?rnke von Gierke wrote: > Hmm, so everyone already has their ticket? Just to be clear, this is more then a 30% price reduction compared to the price from RunRev on the website. > > On 08 Aug 2014, at 03:37, Bj?rnke von Gierke wrote: > >> Hi >> >> Due to Family business, I'll be unable to go to America this year. Therefore I have a superfluous Premium 4 Day Ticket to RunRevLive, which I am selling for 1700.- USD (or equivalent other currency). First come first serve, please email me directly. >> >> Bj?rnke >> >> -- >> >> Use an alternative Dictionary viewer: >> http://bjoernke.com/bvgdocu/ >> >> Chat with other RunRev developers: >> http://bjoernke.com/chatrev/ >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From cszasz at me.com Wed Aug 13 14:12:41 2014 From: cszasz at me.com (Charles Szasz) Date: Wed, 13 Aug 2014 12:12:41 -0600 Subject: Text disappearing in edit field Message-ID: <8A266A32-D0A2-47B5-960B-4BC40482C6D5@me.com> I discovered last week after posting my problem with disappearing text that was preference script was causing the problem. Thanks for your email! Sent from my iPad From ambassador at fourthworld.com Wed Aug 13 14:38:37 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 13 Aug 2014 11:38:37 -0700 Subject: Multiple versions of apps In-Reply-To: References: Message-ID: <53EBB0AD.4010009@fourthworld.com> Rodney Green wrote: > How feasible is it to write an app and customize it with many users > data. > Like a few hundred users. Are there any tools for this? Would this be > a nightmare to manage? Can you describe what you're looking for in a bit more detail? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Aug 13 14:39:34 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 13 Aug 2014 11:39:34 -0700 Subject: ChatRev In-Reply-To: References: Message-ID: <53EBB0E6.7030800@fourthworld.com> Bj?rnke wrote: > Alright, I'm back, got a brand new router, and everything should be working again. > > http://bjoernke.com/index.irev?target=chatrev Congrats on the new router. I don't log into ChatRev often, but it's comforting to know that just about anytime I do there are always several people online discussing LiveCode. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Aug 13 14:43:58 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 13 Aug 2014 11:43:58 -0700 Subject: externalPackages In-Reply-To: References: Message-ID: <53EBB1EE.3070503@fourthworld.com> Trevor DeVore wrote: > If the externals property is pointing to the property external file on > disk, you can make sure the "destroyWindow" property of the stack is > set to true, close the stack, and then open it again. This will > attempt to reload the external. That's a helpful tip and I appreciate it, but it also reminds me why I sorely dislike using externals in LiveCode. Coming from a SuperCard background, I'm accustomed to a simpler world where we just import the external file and never have to think about it again - from that moment on it's as good as a library, with its handlers always available whenever the stack is running. The whole loading thang with LC is, IMNSHO, rather FUBAR when compared to any other xTalk. Of all the things that excite me about the Open Language initiative, it's the hope that I can write most of the things I used to use externals for in code that's far simpler and robust to initialize. ;) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Wed Aug 13 15:33:08 2014 From: sundown at pacifier.com (JB) Date: Wed, 13 Aug 2014 12:33:08 -0700 Subject: externalPackages In-Reply-To: <53EBB1EE.3070503@fourthworld.com> References: <53EBB1EE.3070503@fourthworld.com> Message-ID: Hi Richard, Since you come from a SuperCard background could you answer a question for me? I am a registered owner of SuperCard 4.6 and SuperEdit 4.6. The Xtend section allows you to export externals. I contacted SuperCard Support and they said I could use the SuperCard externals in other programs that use externals as long as I abide by the EULA. That is not a problem. I exported a external and tried to use it in Revolution and could not get it to work. The next thing I was going to try is to make a empty external for LiveCode naming it the same as the external I want to use and from SuperCard install it into the resource by changing the type from .bundle to .txt and then change the type back to .bundle. I have done that without making the empty external so I have not actually tried it yet. Is that the proper way to install a SuperCard external in Rev or is it not possible at all to use them in Rev? thanks, John Balgenorth On Aug 13, 2014, at 11:43 AM, Richard Gaskin wrote: > Trevor DeVore wrote: > > If the externals property is pointing to the property external file on > > disk, you can make sure the "destroyWindow" property of the stack is > > set to true, close the stack, and then open it again. This will > > attempt to reload the external. > > That's a helpful tip and I appreciate it, but it also reminds me why I sorely dislike using externals in LiveCode. > > Coming from a SuperCard background, I'm accustomed to a simpler world where we just import the external file and never have to think about it again - from that moment on it's as good as a library, with its handlers always available whenever the stack is running. > > The whole loading thang with LC is, IMNSHO, rather FUBAR when compared to any other xTalk. > > Of all the things that excite me about the Open Language initiative, it's the hope that I can write most of the things I used to use externals for in code that's far simpler and robust to initialize. ;) > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Wed Aug 13 16:02:24 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 13 Aug 2014 13:02:24 -0700 Subject: externalPackages In-Reply-To: References: Message-ID: <53EBC450.3050504@fourthworld.com> JB wrote: > Since you come from a SuperCard background could > you answer a question for me? > > I am a registered owner of SuperCard 4.6 and SuperEdit 4.6. > The Xtend section allows you to export externals. I contacted > SuperCard Support and they said I could use the SuperCard > externals in other programs that use externals as long as I > abide by the EULA. That is not a problem. > > I exported a external and tried to use it in Revolution and could > not get it to work. The next thing I was going to try is to make a > empty external for LiveCode naming it the same as the external > I want to use and from SuperCard install it into the resource by > changing the type from .bundle to .txt and then change the type > back to .bundle. I have done that without making the empty > external so I have not actually tried it yet. Is that the proper > way to install a SuperCard external in Rev or is it not possible > at all to use them in Rev? I'm very familiar with SC externals indeed: I started Fourth World in 1994 primarily as a vendor of SuperCard add-ons, with a catalog of externals written by myself and many others, including one of the current co-owners of SC, Mark Lucas. Even back in those days, not all externals could be used across the various apps that supported the HyperCard externals interface. The SuperCard Internals Toolbox, for example, included many APIs not found in HyperCard, so many of the best SC externals couldn't run in HC (or OMO, or Microphone, or any of the other apps that supported the original HC externals interface). The migration from 68x to PPC compounded the compatibility issue, as has the move from PPC to Intel. Today, even SC itself can only run a subset of all the externals ever written for it; I don't think anything I'd ever published can be run with SC today. With LC, the externals API is very different, so even if you had an Intel-compatible external and only needed to run it on Mac, it would still need to be recompiled to use the LiveCode externals APIs. Fortunately, at least for the work I do, aside from the database externals included with LC I rarely use any at all. Most of the things I'd written externals for in SC are included in LiveCode itself. Which externals from Xtend do you need? I'll bet there are LiveCode equivalents for most of them, or easily written using LiveCode itself. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From sundown at pacifier.com Wed Aug 13 16:17:56 2014 From: sundown at pacifier.com (JB) Date: Wed, 13 Aug 2014 13:17:56 -0700 Subject: externalPackages In-Reply-To: <53EBC450.3050504@fourthworld.com> References: <53EBC450.3050504@fourthworld.com> Message-ID: Thanks for the info. I don?t really need any of them I was just trying to use them if it was possible. Your information shows it is not possible and therefore I won?t waste my time on it. I am surprised that as long as LiveCode has been around there are not more externals available. If you have developed externals for LiveCode why not sell them like was done for HyperCard? That would be better than the Standard Library at least for your pocket book and might encourage others to earn a few dollars too. It would be kind of like fast food marketing. Usually when you find one fast food place others are in the general area and might even be across the street or next door. They have found that having fast food places by each other does not take business away from the first fast food place to be located there and instead it actually increases the business for all fast food places in the area. Just a thought since I have not seen anyone marketing externals for LiveCode. John Balgenorth On Aug 13, 2014, at 1:02 PM, Richard Gaskin wrote: > JB wrote: >> Since you come from a SuperCard background could >> you answer a question for me? >> >> I am a registered owner of SuperCard 4.6 and SuperEdit 4.6. >> The Xtend section allows you to export externals. I contacted >> SuperCard Support and they said I could use the SuperCard >> externals in other programs that use externals as long as I >> abide by the EULA. That is not a problem. >> >> I exported a external and tried to use it in Revolution and could >> not get it to work. The next thing I was going to try is to make a >> empty external for LiveCode naming it the same as the external >> I want to use and from SuperCard install it into the resource by >> changing the type from .bundle to .txt and then change the type >> back to .bundle. I have done that without making the empty >> external so I have not actually tried it yet. Is that the proper >> way to install a SuperCard external in Rev or is it not possible >> at all to use them in Rev? > > I'm very familiar with SC externals indeed: I started Fourth World in 1994 primarily as a vendor of SuperCard add-ons, with a catalog of externals written by myself and many others, including one of the current co-owners of SC, Mark Lucas. > > Even back in those days, not all externals could be used across the various apps that supported the HyperCard externals interface. The SuperCard Internals Toolbox, for example, included many APIs not found in HyperCard, so many of the best SC externals couldn't run in HC (or OMO, or Microphone, or any of the other apps that supported the original HC externals interface). > > The migration from 68x to PPC compounded the compatibility issue, as has the move from PPC to Intel. Today, even SC itself can only run a subset of all the externals ever written for it; I don't think anything I'd ever published can be run with SC today. > > With LC, the externals API is very different, so even if you had an Intel-compatible external and only needed to run it on Mac, it would still need to be recompiled to use the LiveCode externals APIs. > > Fortunately, at least for the work I do, aside from the database externals included with LC I rarely use any at all. Most of the things I'd written externals for in SC are included in LiveCode itself. > > Which externals from Xtend do you need? > > I'll bet there are LiveCode equivalents for most of them, or easily written using LiveCode itself. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: http://twitter.com/FourthWorldSys > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Aug 13 17:01:14 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 13 Aug 2014 16:01:14 -0500 Subject: Where are these stacks being cached? Message-ID: <53EBD21A.6050206@hyperactivesw.com> In today's episode, our hero has uploaded new copies of revised stacks to Amazon Web Services. We have verified that no older copies exist there anywhere, including on all edge servers. Back at home, a LC splash app retrieves these stacks from the server. Much of the time an older version of the stack is always retrieved. The problem is dependent on the computer. If the computer has opened that stack before, the old version is shown. On a computer that has never opened the stack before, the new version is shown. This would be normal if it were all in the same session, but the problem persists after restarting the app, restarting the computer, and even after waiting several hours, restarting the computer, and then restarting the app. Yesterday it took perhaps 8 hours before the updated stacks could be retrieved on a computer that had loaded the stack previously. There would appear to be a cache somewhere that is not updating often enough. Since it is computer specific, it must be based on MAC address, but we can't figure out where. Does the computer cache files even if they aren't web browser temp files? How about the local router? How about the cable broadband router? It seems unlikely that AWS would send a cached version, since all the requests are coming from the same local LAN and I believe AWS would only see the "outside" IP, not the MAC address. But maybe that's wrong? Anyone know where the old stacks are being stored? We want only the latest versions to load as soon as they are made available. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Wed Aug 13 17:10:33 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 13 Aug 2014 14:10:33 -0700 Subject: externalPackages In-Reply-To: References: Message-ID: <53EBD449.6070309@fourthworld.com> JB wrote: > I am surprised that as long as LiveCode has been > around there are not more externals available. If > you have developed externals for LiveCode why > not sell them like was done for HyperCard? I don't need 'em. As I wrote earlier: ...aside from the database externals included with LC I rarely use any at all. Most of the things I'd written externals for in SC are included in LiveCode itself. For example, here's a list of externals I used to sell in a collection for SuperCard called scX, with their built-in LiveCode equivalents: - AskColor LiveCode: answer color - CalendarField LiveCode: we have no one-liner for making an ASCII calendar layout, but it can be obtained in a one-line call to the shell on OS X and Linux, and with LC's weekdayNames and other features takes only a few minutes to write - but who needs an ASCII calendar? I originally wrote that because I needed one for an app and doing it in script was slow - that's very rarely a problem in LC. - Camera LiveCode: export snapshot - ClipToPICTRes LiveCode: LC supports many resource fork operations, but since that fork is marked for deprecation there's little point in using them, and being Mac-specific they offer nothing for the other 90% of the computing world. - CmdPeriod LiveCode: commandKeyDown - DragThisWindow LiveCode: mouseMove - DrawIcon LiveCode: see note on resource fork above. - GetFolder LiveCode: answer folder (much more flexible in LC) - GetIndString LiveCode: see note on resource fork above. - GetVersion LiveCode: see note on resource fork above, thought it's worth noting that I now store version info in custom properties, which can be used for the sorts of things we used to use the old Mac res fork for, but are much more flexible, more robust, and available on all platforms. - GrowThisWindow LiveCode: mouseMove - InjectPPAT LiveCode: backgroundPattern property - IntersectRect LiveCode: within - LineMatch LiveCode: lineOffset - ListFonts LiveCode: the fontnames - ListRes LiveCode: getResources - MonitorRects LiveCode: the working screenRects - MoveFile LiveCode: rename file - NewFolder LiveCode: create folder - PixelColor LiveCode: screenMouseLoc with mouseColor - PopList LiveCode: popup - RestartMac LiveCode: one-line call to shell - SetColorCursor LiveCode: all cursors can be color - ShowProgress LiveCode: built-in progress object - ShutDownMac LiveCode: one-line call to shell - SnapDragon LiveCode: built-in grid property - xFileType LiveCode: the detailed files - xPrefs LiveCode: specialFolderPath Even the externals others wrote that I published for SC are easily done in native LiveCode, from arrays to lists to statistical functions, text-to-speech, and much more - easier to work with right in the scripting language, and unlike externals can be used on multiple platforms. > Just a thought since I have not seen anyone marketing externals > for LiveCode. Check out the LiveCode Market Place: There are several dozen add-on packages there, and many more throughout the community. It's just that with LiveCode's very broad capabilities, relatively few add-ons are externals per so, with many add-ons being libraries, custom controls, and other forms. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Wed Aug 13 17:24:25 2014 From: sundown at pacifier.com (JB) Date: Wed, 13 Aug 2014 14:24:25 -0700 Subject: externalPackages In-Reply-To: <53EBD449.6070309@fourthworld.com> References: <53EBD449.6070309@fourthworld.com> Message-ID: I see your point. Changing the subject a little bit you mentioned LiveCode is going to improve things so you can actually do more external type code from within LiveCode. Are they going to be using Apples new programming language Swift at all? John Balgenorth On Aug 13, 2014, at 2:10 PM, Richard Gaskin wrote: > JB wrote: > >> I am surprised that as long as LiveCode has been >> around there are not more externals available. If >> you have developed externals for LiveCode why >> not sell them like was done for HyperCard? > > I don't need 'em. As I wrote earlier: > > ...aside from the database externals included with LC I > rarely use any at all. Most of the things I'd written > externals for in SC are included in LiveCode itself. > > For example, here's a list of externals I used to sell in a collection for SuperCard called scX, with their built-in LiveCode equivalents: > > - AskColor > LiveCode: answer color > > - CalendarField > LiveCode: we have no one-liner for making an ASCII > calendar layout, but it can be obtained in a one-line > call to the shell on OS X and Linux, and with LC's > weekdayNames and other features takes only a few minutes > to write - but who needs an ASCII calendar? I originally > wrote that because I needed one for an app and doing it in > script was slow - that's very rarely a problem in LC. > > - Camera > LiveCode: export snapshot > > - ClipToPICTRes > LiveCode: LC supports many resource fork operations, > but since that fork is marked for deprecation there's > little point in using them, and being Mac-specific they > offer nothing for the other 90% of the computing world. > > - CmdPeriod > LiveCode: commandKeyDown > > - DragThisWindow > LiveCode: mouseMove > > - DrawIcon > LiveCode: see note on resource fork above. > > - GetFolder > LiveCode: answer folder (much more flexible in LC) > > - GetIndString > LiveCode: see note on resource fork above. > > - GetVersion > LiveCode: see note on resource fork above, thought it's > worth noting that I now store version info in custom > properties, which can be used for the sorts of things > we used to use the old Mac res fork for, but are much > more flexible, more robust, and available on all platforms. > > - GrowThisWindow > LiveCode: mouseMove > > - InjectPPAT > LiveCode: backgroundPattern property > > - IntersectRect > LiveCode: within > > - LineMatch > LiveCode: lineOffset > > - ListFonts > LiveCode: the fontnames > > - ListRes > LiveCode: getResources > > - MonitorRects > LiveCode: the working screenRects > > - MoveFile > LiveCode: rename file > > - NewFolder > LiveCode: create folder > > - PixelColor > LiveCode: screenMouseLoc with mouseColor > > - PopList > LiveCode: popup > > - RestartMac > LiveCode: one-line call to shell > > - SetColorCursor > LiveCode: all cursors can be color > > - ShowProgress > LiveCode: built-in progress object > > - ShutDownMac > LiveCode: one-line call to shell > > - SnapDragon > LiveCode: built-in grid property > > - xFileType > LiveCode: the detailed files > > - xPrefs > LiveCode: specialFolderPath > > Even the externals others wrote that I published for SC are easily done in native LiveCode, from arrays to lists to statistical functions, text-to-speech, and much more - easier to work with right in the scripting language, and unlike externals can be used on multiple platforms. > > > > Just a thought since I have not seen anyone marketing externals > > for LiveCode. > > Check out the LiveCode Market Place: > > > There are several dozen add-on packages there, and many more throughout the community. > > It's just that with LiveCode's very broad capabilities, relatively few add-ons are externals per so, with many add-ons being libraries, custom controls, and other forms. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Wed Aug 13 17:43:49 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 13 Aug 2014 14:43:49 -0700 Subject: M In-Reply-To: <55-1743896428.20140813081830@ahsoftware.net> References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> <55-1743896428.20140813081830@ahsoftware.net> Message-ID: ? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From fmoyer at aol.com Wed Aug 13 17:47:33 2014 From: fmoyer at aol.com (Fred Moyer) Date: Wed, 13 Aug 2014 17:47:33 -0400 Subject: unlock screen with visual effect ... Message-ID: Hi: It?s been a long time since I?ve been on the mailing list ? great to see it?s still going strong! Some things seem not to work as they used to in the old Revolution. One of them is "unlock screen with visual dissolve.? How do you lock the screen, make a bunch of changes to the look of a card, and then unlock the screen with visual dissolve? I must be missing something really obvious. For example why doesn?t this work on mouseUp lock screen set the visible of btn ?thisButton" to not the visible of btn "thisButton" set the visible of fld "thisField" to not the visible of fld ?thisField? set the vscroll of group ?ThisGroup? to 10 + (the Vscroll of group ?ThisGroup?) unlock screen with visual effect dissolve end mouseUp (Using Mac OS 10.9) Thanks Fred Moyer From m.schonewille at economy-x-talk.com Wed Aug 13 17:56:59 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 13 Aug 2014 23:56:59 +0200 Subject: unlock screen with visual effect ... In-Reply-To: References: Message-ID: <53EBDF2B.4050207@economy-x-talk.com> Hi Fred, At some point in time, the syntax changed. The new syntax is lock screen for visual effect // do a bunch of stuff here unlock screen with visual effect dissolve Dissolve should work on any platform. Some effects only work on a specific platform. It is also possible that a combination of using an unstable version of LiveCode together with Mavericks breaks something. Make sure to use a GM release. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/13/2014 23:47, Fred Moyer wrote: > Hi: > > It?s been a long time since I?ve been on the mailing list ? great to see it?s still going strong! > > Some things seem not to work as they used to in the old Revolution. One of them is "unlock screen with visual dissolve.? How do you lock the screen, make a bunch of changes to the look of a card, and then unlock the screen with visual dissolve? I must be missing something really obvious. For example why doesn?t this work > > on mouseUp > lock screen > set the visible of btn ?thisButton" to not the visible of btn "thisButton" > set the visible of fld "thisField" to not the visible of fld ?thisField? > set the vscroll of group ?ThisGroup? to 10 + (the Vscroll of group ?ThisGroup?) > unlock screen with visual effect dissolve > end mouseUp > > (Using Mac OS 10.9) > > Thanks > Fred Moyer > From mwieder at ahsoftware.net Wed Aug 13 18:03:59 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 13 Aug 2014 22:03:59 +0000 (UTC) Subject: Where are these stacks being cached? References: <53EBD21A.6050206@hyperactivesw.com> Message-ID: Jacque- Try clearing the browser cache on those machines using . My guess is the browser has cached the old version and is helpfully saving the user from having to download again. -- Mark Wieder ahsoftware at gmail.com From shawnlivecode at gmail.com Wed Aug 13 18:07:57 2014 From: shawnlivecode at gmail.com (Shawn Blc) Date: Wed, 13 Aug 2014 17:07:57 -0500 Subject: Where are these stacks being cached? In-Reply-To: References: <53EBD21A.6050206@hyperactivesw.com> Message-ID: Tried to post on the nabble revolution list, but so far it hasn't been accepted (ok, but odd). So I'll post here. --- I'm sure you've tried the following, but if you haven't: osx mavericks -------------------- dscacheutil -flushcache sudo killall -HUP mDNSResponder or windows 7 -------------------- ipconfig /flushdns -- On Wed, Aug 13, 2014 at 5:03 PM, Mark Wieder wrote: > Jacque- > > Try clearing the browser cache on those machines using instructions, each one different>. My guess is the browser has cached the > old version and is helpfully saving the user from having to download again. > > -- > Mark Wieder > ahsoftware at gmail.com > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From shawnlivecode at gmail.com Wed Aug 13 18:12:28 2014 From: shawnlivecode at gmail.com (Shawn Blc) Date: Wed, 13 Aug 2014 17:12:28 -0500 Subject: M In-Reply-To: References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> <55-1743896428.20140813081830@ahsoftware.net> Message-ID: ? On Wed, Aug 13, 2014 at 4:43 PM, Dr. Hawkins wrote: > ? > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From coiin at verizon.net Wed Aug 13 18:17:59 2014 From: coiin at verizon.net (Colin Holgate) Date: Wed, 13 Aug 2014 18:17:59 -0400 Subject: M In-Reply-To: References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> <55-1743896428.20140813081830@ahsoftware.net> Message-ID: ? , just to be different. From ambassador at fourthworld.com Wed Aug 13 18:25:54 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 13 Aug 2014 15:25:54 -0700 Subject: externalPackages In-Reply-To: References: Message-ID: <53EBE5F2.2040204@fourthworld.com> JB wrote: > Changing the subject a little bit you mentioned > LiveCode is going to improve things so you can > actually do more external type code from within > LiveCode. Are they going to be using Apples new > programming language Swift at all? I don't think so. Swift is a very interesting language (made by the same super-genius who made the ground-breaking LLVM), but as far as I can tell Apple intends to make it available only for use on their own platforms. So for an omni-platform tool like LiveCode, Swift is a non-starter. Instead, the new language for widgets in LiveCode will be...LiveCode! :) New extensions to the LiveCode language are in development to allow us to not only make custom controls that behave more like built-in controls, but also directly talk to the OS APIs - see this video from Kevin with a sneak preview of what they're working on: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bvg at mac.com Wed Aug 13 18:46:14 2014 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Thu, 14 Aug 2014 00:46:14 +0200 Subject: externalPackages In-Reply-To: <53EBE5F2.2040204@fourthworld.com> References: <53EBE5F2.2040204@fourthworld.com> Message-ID: <7E450478-CF32-44CB-A25C-396C2BC386D0@mac.com> Richard is wrong. The goal is to be able to use any language, including anything that is available for the separate OS-es. However, there'll be a meta-LC like language, that is not quite LC, but similar-ish, which will allow to write externals too. The Idea is that it's similar enough for more people to delve in and do Externals then with the current undocumented, not available on all platforms, never-really-cared-for mess. Delivery date is "somewhen". On 14 Aug 2014, at 00:25, Richard Gaskin wrote: > JB wrote: > > > Changing the subject a little bit you mentioned > > LiveCode is going to improve things so you can > > actually do more external type code from within > > LiveCode. Are they going to be using Apples new > > programming language Swift at all? > > I don't think so. Swift is a very interesting language (made by the same super-genius who made the ground-breaking LLVM), but as far as I can tell Apple intends to make it available only for use on their own platforms. So for an omni-platform tool like LiveCode, Swift is a non-starter. > > Instead, the new language for widgets in LiveCode will be...LiveCode! :) > > New extensions to the LiveCode language are in development to allow us to not only make custom controls that behave more like built-in controls, but also directly talk to the OS APIs - see this video from Kevin with a sneak preview of what they're working on: > > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Aug 13 19:11:01 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 13 Aug 2014 18:11:01 -0500 Subject: Where are these stacks being cached? In-Reply-To: References: <53EBD21A.6050206@hyperactivesw.com> Message-ID: <53EBF085.4040807@hyperactivesw.com> On 8/13/2014, 5:03 PM, Mark Wieder wrote: > Jacque- > > Try clearing the browser cache on those machines using instructions, each one different>. My guess is the browser has cached the > old version and is helpfully saving the user from having to download again. > There are no browser objects in the stacks anywhere, but just in case, we did try that. We aren't loading anything related to web pages, so I didn't think it would apply. I was right. No go. Another thing we tried was taking the computer that had already seen the stacks and connecting it to a different network on a different broadband router (to force a change in the IP.) Same deal; old stack loaded. It's really weird. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Wed Aug 13 19:12:32 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 13 Aug 2014 16:12:32 -0700 Subject: externalPackages In-Reply-To: <7E450478-CF32-44CB-A25C-396C2BC386D0@mac.com> References: <7E450478-CF32-44CB-A25C-396C2BC386D0@mac.com> Message-ID: <53EBF0E0.70205@fourthworld.com> Bj?rnke von Gierke wrote: > Richard is wrong. The goal is to be able to use any language, > including anything that is available for the separate OS-es. Well, it certainly wouldn't be the first time I was wrong. But given that the engine is currently written in C++ and much of the code is platform-independent, can you tell us more about this real goal and how it fits in with the development of a multi-platform toolkit like LiveCode? It may be that some time down the road, perhaps not all that long from now, Apple quietly changes their SDK license to *require* Swift. After all, the readers of this list know all too well they've tried that sort of thing before. At that point developers like RunRev would have no choice but to rewrite their Cocoa calls in whatever language Apple demands. But I'm not too worried: last time Apple tried to pull something like that the results were so disastrous that they completely backpedaled within a few months. While they never apologized for the damage they caused, nor even publicly acknowledged that it was never in their interests to have attempted it, Steve's gone, his vendetta with Adobe played out, and Tim Cook is a much more cool-headed leader. I doubt we'll see those sorts of shenanigans again; I like to think Cook understands the impact it has on the company's reputation in terms of being a reliable partner, esp. at a time of declining market share. > However, there'll be a meta-LC like language, that is not quite LC, > but similar-ish, which will allow to write externals too. The Idea > is that it's similar enough for more people to delve in and do > Externals.... It's early days and my understanding is that the syntax shown in that video is only experimental. But I share your view that it could be more LC-like - all we have to do is take a good look at ToolBook, which has supported optional data types and OS calls for decades. Everything I might have written an external for in any other xTalk I wrote directly in ToolBook, all the way down to the Win APIs, with the same clean syntax throughout. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bvg at mac.com Wed Aug 13 19:23:08 2014 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Thu, 14 Aug 2014 01:23:08 +0200 Subject: externalPackages In-Reply-To: <53EBF0E0.70205@fourthworld.com> References: <7E450478-CF32-44CB-A25C-396C2BC386D0@mac.com> <53EBF0E0.70205@fourthworld.com> Message-ID: On 14 Aug 2014, at 01:12, Richard Gaskin wrote: > > Richard is wrong. The goal is to be able to use any language, > > including anything that is available for the separate OS-es. > > Well, it certainly wouldn't be the first time I was wrong. But given that the engine is currently written in C++ and much of the code is platform-independent, can you tell us more about this real goal and how it fits in with the development of a multi-platform toolkit like LiveCode? You said there'll only be the new LC-like language to do externals. Instead there'll be most available languages, due to the way the new approach is different then the current one. One of the possible languages, and of course the one that ppl need to use a bit for wrapping the interfaces, will be the additional, new LC-like language. That is only concerning the new external interface. From jacque at hyperactivesw.com Wed Aug 13 19:31:20 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 13 Aug 2014 18:31:20 -0500 Subject: Where are these stacks being cached? In-Reply-To: References: <53EBD21A.6050206@hyperactivesw.com> Message-ID: <53EBF548.3090007@hyperactivesw.com> Thanks for leaving Nabble to get this info here Shawn. I can have my client try that. We did discuss DNS issues and decided it probably wouldn't apply, because the DNS always resolves to Amazon and that doesn't change (though AWS does redirect to lots of different servers.) I'm still not sure how an old DNS lookup could download a file that doesn't exist on the server though. None of the stacks are ever saved to disk, they are always in RAM only, so they have to be coming from the internet somewhere. On 8/13/2014, 5:07 PM, Shawn Blc wrote: > Tried to post on the nabble revolution list, but so far it hasn't been > accepted (ok, but odd). So I'll post here. > > --- > I'm sure you've tried the following, but if you haven't: > > > osx mavericks > -------------------- > dscacheutil -flushcache > sudo killall -HUP mDNSResponder > > or > > windows 7 > -------------------- > ipconfig /flushdns > -- > > > > > On Wed, Aug 13, 2014 at 5:03 PM, Mark Wieder wrote: > >> Jacque- >> >> Try clearing the browser cache on those machines using > instructions, each one different>. My guess is the browser has cached the >> old version and is helpfully saving the user from having to download again. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Wed Aug 13 19:48:34 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 13 Aug 2014 16:48:34 -0700 Subject: externalPackages In-Reply-To: References: Message-ID: <53EBF952.3020803@fourthworld.com> Bj?rnke von Gierke wrote: > On 14 Aug 2014, at 01:12, Richard Gaskin wrote: > >> > Richard is wrong. The goal is to be able to use any language, >> > including anything that is available for the separate OS-es. >> >> Well, it certainly wouldn't be the first time I was wrong. But >> given that the engine is currently written in C++ and much of the >> code is platform-independent, can you tell us more about this real >> goal and how it fits in with the development of a multi-platform >> toolkit like LiveCode? > > You said there'll only be the new LC-like language to do externals. Chalk it up perhaps to my bad writing; what I tried to suggest was that externals as we know them today would for the most part no longer be needed at all. An "external" is a object code file written in another language that was compiled with that language's compiler. Currently this is the only way to directly interface LiveCode with OS APIs, which is why we put up with the cumbersome requirements for dealing with them. What I suggested was that many of the things we used to write externals for would in many cases not need to be externals at all, using a new variant of LiveCode as shown in Kevin's video. So yes, to the degree that there's still a place for externals when Open Language is in our hands, they can continue to be written in any language where LC's externals API can be used. But it would seem from the video that such cases would be very few, perhaps specialized routines requiring optimal CPU performance (where compiled C will be hard to beat), but not for things merely needing to talk to OS APIs. > Instead there'll be most available languages, due to the way the new > approach is different then the current one. One of the possible > languages, and of course the one that ppl need to use a bit for > wrapping the interfaces, will be the additional, new LC-like > language. That is only concerning the new external interface. I think we may be on the same track more than it seemed at first. I have no knowledge of the future plans for externals. I rarely use them now, and never write any new ones, so I've had almost no interest in them at all. But direct OS API access from within LiveCode - for me, that opens up a lot of interesting possibilities, the sort of thing I used to very much enjoy back when I could afford to do single-platform stuff in ToolBook. Being able to deliver code I can manage as gracefully as a LiveCode library without the strange finicky requirements of externals initialization or needing to leave LiveCode to go run some otherwise-completely-unrelated compiler will be quite exciting. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mwieder at ahsoftware.net Wed Aug 13 20:01:55 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 14 Aug 2014 00:01:55 +0000 (UTC) Subject: M References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> <802B7697-91D3-42ED-9A02-686D2DA72777@verizon.net> <8D185312A7253EE-1D28-3233@webmail-d294.sysops.aol.com> Message-ID: writes: > > Blank. > > Scrabble. This trumps all. Hold the line, folks... I think we have a winner. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Wed Aug 13 20:05:18 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 14 Aug 2014 00:05:18 +0000 (UTC) Subject: Where are these stacks being cached? References: <53EBD21A.6050206@hyperactivesw.com> <53EBF548.3090007@hyperactivesw.com> Message-ID: Jacque- > Thanks for leaving Nabble to get this info here Shawn. I can have my > client try that. We did discuss DNS issues and decided it probably > wouldn't apply, because the DNS always resolves to Amazon and that > doesn't change (though AWS does redirect to lots of different servers.) I'm not sure about that. If AWS needs to respawn the server the resolved ip address isn't guaranteed to be the same. In fact, in our experience it's always different after a reboot of the server. YMMV. -- Mark Wieder ahsoftware at gmail.com From coiin at verizon.net Wed Aug 13 20:12:04 2014 From: coiin at verizon.net (Colin Holgate) Date: Wed, 13 Aug 2014 20:12:04 -0400 Subject: M In-Reply-To: References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> <802B7697-91D3-42ED-9A02-686D2DA72777@verizon.net> <8D185312A7253EE-1D28-3233@webmail-d294.sysops.aol.com> Message-ID: <9C82651E-E39F-406C-BE93-C488CFD9EBA2@verizon.net> It's worth zero points. On Aug 13, 2014, at 8:01 PM, Mark Wieder wrote: >> >> Blank. >> >> Scrabble. This trumps all. > > Hold the line, folks... I think we have a winner. From userev at canelasoftware.com Wed Aug 13 20:32:31 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Wed, 13 Aug 2014 17:32:31 -0700 Subject: Where are these stacks being cached? In-Reply-To: <53EBD21A.6050206@hyperactivesw.com> References: <53EBD21A.6050206@hyperactivesw.com> Message-ID: <3048FFF0-71B9-417F-9C10-E6B691B3C8BA@canelasoftware.com> On Aug 13, 2014, at 2:01 PM, J. Landman Gay wrote: > Anyone know where the old stacks are being stored? We want only the latest versions to load as soon as they are made available. Is is possible the client is behind a proxy server? Sometime adding this to your url links: [linkHere] & "?x=" & the seconds into tURLtoFile Will help you force the file to skip the cached version on the proxy server and download it again from the true source. Best regards, Mark Talluto CanelaSoftware.com LiveCloud.io From smaclean at madmansoft.com Wed Aug 13 21:13:33 2014 From: smaclean at madmansoft.com (Stephen MacLean) Date: Wed, 13 Aug 2014 21:13:33 -0400 Subject: Where are these stacks being cached? In-Reply-To: <53EBD21A.6050206@hyperactivesw.com> References: <53EBD21A.6050206@hyperactivesw.com> Message-ID: <7D2BED6B-569E-4AFA-824C-E4E753478CC7@madmansoft.com> Hi Jacque, Are you using ?load URL? to call those stacks to download? It will cache the what was called and I had problems getting it to release and get fresh data, etc. hth, Steve MacLean On Aug 13, 2014, at 5:01 PM, J. Landman Gay wrote: > In today's episode, our hero has uploaded new copies of revised stacks to Amazon Web Services. We have verified that no older copies exist there anywhere, including on all edge servers. > > Back at home, a LC splash app retrieves these stacks from the server. Much of the time an older version of the stack is always retrieved. The problem is dependent on the computer. If the computer has opened that stack before, the old version is shown. On a computer that has never opened the stack before, the new version is shown. > > This would be normal if it were all in the same session, but the problem persists after restarting the app, restarting the computer, and even after waiting several hours, restarting the computer, and then restarting the app. Yesterday it took perhaps 8 hours before the updated stacks could be retrieved on a computer that had loaded the stack previously. > > There would appear to be a cache somewhere that is not updating often enough. Since it is computer specific, it must be based on MAC address, but we can't figure out where. Does the computer cache files even if they aren't web browser temp files? How about the local router? How about the cable broadband router? It seems unlikely that AWS would send a cached version, since all the requests are coming from the same local LAN and I believe AWS would only see the "outside" IP, not the MAC address. But maybe that's wrong? > > Anyone know where the old stacks are being stored? We want only the latest versions to load as soon as they are made available. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Aug 13 23:21:14 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 13 Aug 2014 22:21:14 -0500 Subject: Where are these stacks being cached? In-Reply-To: <3048FFF0-71B9-417F-9C10-E6B691B3C8BA@canelasoftware.com> References: <53EBD21A.6050206@hyperactivesw.com> <3048FFF0-71B9-417F-9C10-E6B691B3C8BA@canelasoftware.com> Message-ID: <53EC2B2A.8070507@hyperactivesw.com> Lumping some answers together: > Is is possible the client is behind a proxy server? It will be possible eventually but right now nobody is. > Sometime adding this to your url links: [linkHere] & "?x=" & the seconds > into tURLtoFile > > Will help you force the file to skip the cached version on the proxy server In this case the URL is a huge, long signed URL in AWS secure format. If I alter it at all, AWS will reject it. :( > Are you using ?load URL? to call those stacks to download? No, I'm using "go url" followed by a bunch of AWS gibberish. > If AWS needs to respawn the server the resolved ip > address isn't guaranteed to be the same. Okay, didn't know that. So tomorrow we'll try the DNS thing that's been suggested and see what happens. If that works, it's only a data point, because we can't ask the users to run terminal commands to use the app. In that case I'm not sure what to do, but I'll wait until we know that's the problem first. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Wed Aug 13 23:40:50 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 14 Aug 2014 11:40:50 +0800 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: On Wed, Aug 13, 2014 at 3:21 PM, Thierry Douez wrote: > Here is a simple one: > > put "<(?P[A-Z][A-Z0-9]*)\b[^>]*>.*?" into RX > > if matchText( anyHtmlText, RX) then put "Get it!" Unfortunately not. At first I thought it was because I was using the msg box which was reporting: Error description: matchChunk: error in pattern expression Hint: pattern error My very first play was with the msg box so I thought I better try in a real stack but got the same message so I pasted your code into my favourite online Regex Tester http://regex101.com/#pcre and it immediately reported an error with an unescaped delimiter. The / (forward slash) was hilited in red. I placed a \ (backward slash - regex delimiter) before it and all was well. Thierry, thank you so much for taking the time to get me sorted out with this, but it only reinforces my advise to any new or casual user of regex regarding the above online tester: it wont make you an expert, or remove the complexity or confusion you may have, but it will certainly help you: pinpoint your errors, learn as you go, and get you the expressions you need a whole lot faster than working with LC + regex alone. Regex is powerful stuff. LC + regex is just giving your stack extra horsepower for free. From mwieder at ahsoftware.net Wed Aug 13 23:42:23 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 13 Aug 2014 20:42:23 -0700 Subject: M In-Reply-To: <9C82651E-E39F-406C-BE93-C488CFD9EBA2@verizon.net> References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> <802B7697-91D3-42ED-9A02-686D2DA72777@verizon.net> <8D185312A7253EE-1D28-3233@webmail-d294.sysops.aol.com> <9C82651E-E39F-406C-BE93-C488CFD9EBA2@verizon.net> Message-ID: <1-1699264276.20140813204223@ahsoftware.net> Colin- Wednesday, August 13, 2014, 5:12:04 PM, you wrote: > It's worth zero points. Sure, but that's zero points anywhere. Cross-platform. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Wed Aug 13 23:45:02 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 13 Aug 2014 20:45:02 -0700 Subject: Selling a ticket for RevCon '14 In-Reply-To: <205EBBB0-FAE7-4951-A503-1CDADE544250@mac.com> References: <59371412-2E5E-4E97-BF13-0F74962DEDCA@mac.com> <205EBBB0-FAE7-4951-A503-1CDADE544250@mac.com> Message-ID: <88-1699105274.20140813204502@ahsoftware.net> Bj?rnke- Wednesday, August 13, 2014, 10:38:07 AM, you wrote: > I still have this ticket and am offering it for a discount of > more then 30% less then on the shop. I can't believe that everyone > who is thinking about going already has their ticket? Given that the conference is less than three weeks away, I think that might be a fair bet. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From lan.kc.macmail at gmail.com Wed Aug 13 23:53:08 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 14 Aug 2014 11:53:08 +0800 Subject: Back to the Future. In-Reply-To: <53EB3DA6.7050009@gmail.com> References: <6CBAEE32-64DA-4F32-BC07-A918F00D0347@livecode.org> <53DDEA1E.30207@gmail.com> <53EB3DA6.7050009@gmail.com> Message-ID: On Wed, Aug 13, 2014 at 6:27 PM, Richmond wrote: > The G3 tray-loading iMac obviously could not be bothered to wait for my > annual > visit and expired Dear Richmond, May I pass on my sincerest condolences on hearing the news of the passing of one of this Lists most famous inanimate objects; second I think only to cheese, but of course that's never going to die, just grow old and blue mouldy. I appreciate the move from tray loading to slot loading will be a little traumatic for you but you have my full support and confidence that you'll manage. Long live the Slot Loader From lan.kc.macmail at gmail.com Thu Aug 14 00:01:32 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 14 Aug 2014 12:01:32 +0800 Subject: unlock screen with visual effect ... In-Reply-To: <53EBDF2B.4050207@economy-x-talk.com> References: <53EBDF2B.4050207@economy-x-talk.com> Message-ID: On Thu, Aug 14, 2014 at 5:56 AM, Mark Schonewille wrote: > At some point in time, the syntax changed. The new syntax is > > lock screen for visual effect > // do a bunch of stuff here The Dictionary is in need of a thorough update, but thankfully this is not one of them. Mark has provided the answer and the Dictionary has two examples including one that will be a further update since you've last used LC and may be of use: lock screen for visual effect in rect (the rect of control 1) HTH From lan.kc.macmail at gmail.com Thu Aug 14 00:03:32 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 14 Aug 2014 12:03:32 +0800 Subject: M In-Reply-To: <1-1699264276.20140813204223@ahsoftware.net> References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> <802B7697-91D3-42ED-9A02-686D2DA72777@verizon.net> <8D185312A7253EE-1D28-3233@webmail-d294.sysops.aol.com> <9C82651E-E39F-406C-BE93-C488CFD9EBA2@verizon.net> <1-1699264276.20140813204223@ahsoftware.net> Message-ID: THIS PAGE INTENTIONALLY BLANK From sundown at pacifier.com Thu Aug 14 00:03:37 2014 From: sundown at pacifier.com (JB) Date: Wed, 13 Aug 2014 21:03:37 -0700 Subject: externalPackages In-Reply-To: <53EBE5F2.2040204@fourthworld.com> References: <53EBE5F2.2040204@fourthworld.com> Message-ID: <02027CF8-C329-43ED-88B7-992E42CC8E61@pacifier.com> I just watched the widget video and it sounds really great. The video like all of their videos was well done too. It sounds like Kevin wants more people developing externals and that is good. Balgenorth On Aug 13, 2014, at 3:25 PM, Richard Gaskin wrote: > JB wrote: > > > Changing the subject a little bit you mentioned > > LiveCode is going to improve things so you can > > actually do more external type code from within > > LiveCode. Are they going to be using Apples new > > programming language Swift at all? > > I don't think so. Swift is a very interesting language (made by the same super-genius who made the ground-breaking LLVM), but as far as I can tell Apple intends to make it available only for use on their own platforms. So for an omni-platform tool like LiveCode, Swift is a non-starter. > > Instead, the new language for widgets in LiveCode will be...LiveCode! :) > > New extensions to the LiveCode language are in development to allow us to not only make custom controls that behave more like built-in controls, but also directly talk to the OS APIs - see this video from Kevin with a sneak preview of what they're working on: > > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Thu Aug 14 00:05:23 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 13 Aug 2014 21:05:23 -0700 Subject: Back to the Future. In-Reply-To: References: <6CBAEE32-64DA-4F32-BC07-A918F00D0347@livecode.org> <53DDEA1E.30207@gmail.com> <53EB3DA6.7050009@gmail.com> Message-ID: <185-1697884091.20140813210523@ahsoftware.net> Kay- Wednesday, August 13, 2014, 8:53:08 PM, you wrote: > May I pass on my sincerest condolences on hearing the news of the > passing of one of this Lists most famous inanimate objects; second I > think only to cheese, but of course that's never going to die, just > grow old and blue mouldy. LOL -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From sundown at pacifier.com Thu Aug 14 00:06:43 2014 From: sundown at pacifier.com (JB) Date: Wed, 13 Aug 2014 21:06:43 -0700 Subject: externalPackages In-Reply-To: <7E450478-CF32-44CB-A25C-396C2BC386D0@mac.com> References: <53EBE5F2.2040204@fourthworld.com> <7E450478-CF32-44CB-A25C-396C2BC386D0@mac.com> Message-ID: <56E44394-551D-4C03-BCA8-367DD9CDCB8C@pacifier.com> This will be a fantastic improvement. John Balgenorth On Aug 13, 2014, at 3:46 PM, Bj?rnke von Gierke wrote: > Richard is wrong. The goal is to be able to use any language, including anything that is available for the separate OS-es. However, there'll be a meta-LC like language, that is not quite LC, but similar-ish, which will allow to write externals too. The Idea is that it's similar enough for more people to delve in and do Externals then with the current undocumented, not available on all platforms, never-really-cared-for mess. Delivery date is "somewhen". > > > On 14 Aug 2014, at 00:25, Richard Gaskin wrote: > >> JB wrote: >> >>> Changing the subject a little bit you mentioned >>> LiveCode is going to improve things so you can >>> actually do more external type code from within >>> LiveCode. Are they going to be using Apples new >>> programming language Swift at all? >> >> I don't think so. Swift is a very interesting language (made by the same super-genius who made the ground-breaking LLVM), but as far as I can tell Apple intends to make it available only for use on their own platforms. So for an omni-platform tool like LiveCode, Swift is a non-starter. >> >> Instead, the new language for widgets in LiveCode will be...LiveCode! :) >> >> New extensions to the LiveCode language are in development to allow us to not only make custom controls that behave more like built-in controls, but also directly talk to the OS APIs - see this video from Kevin with a sneak preview of what they're working on: >> >> >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Thu Aug 14 00:12:09 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 13 Aug 2014 21:12:09 -0700 Subject: unlock screen with visual effect ... In-Reply-To: References: Message-ID: <53EC3719.90802@fourthworld.com> Kay C Lan wrote: > The Dictionary is in need of a thorough update... The team's been doing pretty quick work on Dictionary entries whenever reported. If you find one that contains erroneous info, please file a report on it. Thanks - -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Thu Aug 14 00:38:50 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 13 Aug 2014 23:38:50 -0500 Subject: Back to the Future. In-Reply-To: References: <6CBAEE32-64DA-4F32-BC07-A918F00D0347@livecode.org> <53DDEA1E.30207@gmail.com> <53EB3DA6.7050009@gmail.com> Message-ID: <53EC3D5A.4080203@hyperactivesw.com> On 8/13/2014, 10:53 PM, Kay C Lan wrote: > May I pass on my sincerest condolences on hearing the news of the > passing of one of this Lists most famous inanimate objects; A grave event indeed. Rest in peace, Son of SIMM. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From th.douez at gmail.com Thu Aug 14 01:43:53 2014 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 14 Aug 2014 07:43:53 +0200 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: Kay, >> put "<(?P[A-Z][A-Z0-9]*)\b[^>]*>.*?" into RX >> >> if matchText( anyHtmlText, RX) then put "Get it!" > > Unfortunately not. Just tried it right now and it works! What system and LC version do you have? Are you sure the copy/paste didn't spoil the original regex or what else could be? You know, I certainly can do mistakes when I'm writting anything here, as I don't have always enough time to test the code I write.. Errare humanun est.. I wouldn't certainly not reject Livecode or anything else if anyone send some lines of code with a typo in it. > At first I thought it was because I was using the msg box Sorry, I never use the message box, so can't really say anything about any code used this way.. > Thierry, thank you so much for taking the time to get me sorted out > with this, but it only reinforces my advise to any new or casual user > of regex regarding the above online tester: it wont make you an > expert, or remove the complexity or confusion you may have, but it > will certainly help you: pinpoint your errors, learn as you go, and > get you the expressions you need a whole lot faster than working with > LC + regex alone. Well, the missing point is in Livecode you don't have any feedback for any bad-formed pattern matching :( > Regex is powerful stuff. LC + regex is just giving your stack extra > horsepower for free. Well said. if you feel so we could exchange our stack if you are interested to find out what's wrong from your side. Thierry From peterwawood at gmail.com Thu Aug 14 02:28:33 2014 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 14 Aug 2014 07:28:33 +0100 Subject: Where are these stacks being cached? Message-ID: Is the stack being cached by Amazon - http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html Peter "J. Landman Gay" wrote: >Thanks for leaving Nabble to get this info here Shawn. I can have my >client try that. We did discuss DNS issues and decided it probably >wouldn't apply, because the DNS always resolves to Amazon and that >doesn't change (though AWS does redirect to lots of different servers.) > >I'm still not sure how an old DNS lookup could download a file that >doesn't exist on the server though. None of the stacks are ever saved to >disk, they are always in RAM only, so they have to be coming from the >internet somewhere. > > >On 8/13/2014, 5:07 PM, Shawn Blc wrote: >> Tried to post on the nabble revolution list, but so far it hasn't been >> accepted (ok, but odd).?? So I'll post here. >> >> --- >> I'm sure you've tried the following, but if you haven't: >> >> >> osx mavericks >> -------------------- >> dscacheutil -flushcache >> sudo killall -HUP mDNSResponder >> >> or >> >> windows 7 >> -------------------- >> ipconfig /flushdns >> -- >> >> >> >> >> On Wed, Aug 13, 2014 at 5:03 PM, Mark Wieder wrote: >> >>> Jacque- >>> >>> Try clearing the browser cache on those machines using >> instructions, each one different>. My guess is the browser has cached the >>> old version and is helpfully saving the user from having to download again. >>> >>> -- >>>?? Mark Wieder >>>?? ahsoftware at gmail.com >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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???????? |???? jacque at hyperactivesw.com >HyperActive Software?????????? |???? http://www.hyperactivesw.com > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From th.douez at gmail.com Thu Aug 14 07:25:56 2014 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 14 Aug 2014 13:25:56 +0200 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: >> Here is a simple one: >> >> put "<(?P[A-Z][A-Z0-9]*)\b[^>]*>.*?" into RX >> >> if matchText( anyHtmlText, RX) then put "Get it!" > Ok, just received 2 another positives feedback that this regex is valid! even with the latest LC x.x DP x versions. So, we are 3 by now. And please, avoid coming back saying that it doesn't do this or that; that was not the idea of my first post. This line of LC+Regex was here just to explain how to use named groups, nothing more. So focus on: - (?P... - (?P=tag) If you need some experimented LC + Regex coders, please, feel free to contact me off-list. > Regex is powerful stuff. LC + regex is just giving your stack extra > horsepower for free. I like nice ending stories :) Be well, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From eric at canelasoftware.com Thu Aug 14 11:09:50 2014 From: eric at canelasoftware.com (Eric Corbett) Date: Thu, 14 Aug 2014 08:09:50 -0700 Subject: mobilePickPhoto Message-ID: <551863C8-45D7-4EFE-9C7C-FCCBAE5FE230@canelasoftware.com> I?m on 6.6.2, building for iOS 7.1 or later and running on an iPhone 4s & above. After clicking on a photo when using mobilePickPhoto, the phone takes forever to return to the application. (it?s only 5 to 10 seconds average but that?s too long, don?t you think?) Even if we do nothing with the photo after it?s placed on the current card, getting back to app is super slow. The basic script looks like this: on mouseUp local tImageAttachment, tImageID, tPhotoCount set vis of the templateImage to false lock screen if exists(img "user selected image") then delete img "user selected image" if the environment is "mobile" then put the num of imgs of this cd into tPhotoCount ? RETURNING CANCEL MIGHT BE BROKEN answer "Choose Photo from..." with "Library" and "Camera" mobilePickPhoto it end if set the name of the last image of this cd to "user selected image" ? I?ve timed every step of the process and the delay is clearly from photo select to return to app. Thanks -E From jacque at hyperactivesw.com Thu Aug 14 13:27:15 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 14 Aug 2014 12:27:15 -0500 Subject: Where are these stacks being cached? In-Reply-To: References: Message-ID: <53ECF173.7000507@hyperactivesw.com> On 8/14/2014, 1:28 AM, Peter W A Wood wrote: > Is the stack being cached by Amazon -http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html > Aha. Yes, it very well could be. I just knew an old copy had to be stashed somewhere. This may be coupled with the DNS issue too; an old URL might be pointing to a cached copy. I haven't quite worked out exactly how that would happen but it sounds right. Thank you. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kee at kagi.com Thu Aug 14 15:11:06 2014 From: kee at kagi.com (kee nethery) Date: Thu, 14 Aug 2014 12:11:06 -0700 Subject: Mac printing "Scale to fit paper size" Message-ID: <60E06C2F-1EDC-4C41-80AC-923E06FFF91F@kagi.com> I?m printing postcards onto individually cut postcards and they are a custom paper size (4.25 x 6 inches). The stack displays the postcard text in landscape mode but the postcards go into the printer in portrait orientation (smallest edge gets sucked into the printer). Normally I?d set landscape mode and fit to page size, make sure I?d selected the postcard size and print. Worked great only now it doesn?t. It seems that whatever code is printing is ignoring the landscape mode when printing to fit the paper size. If I print without the ?fit paper size? it will actually print landscape mode but it prints around 1/4th the normal size as if it has decided the postcard is actually the size of 8.5x11 paper and scales the image down accordingly. I?ve tried making the stack larger to compensate and it just prints it larger but from the same starting point on the page so most of the text ends up off the edge of the postcard. I?m using Mac OS X 10.9.4 and I?ve tried it with LiveCode 6.6.2 and Livecode 5.5.4 I did figure out a way to print through a bunch of trial and error but when I moved that recipe to another?s machine, it prints in the wrong place on the postcard. Is there someone out there with printer foo who I can hire to fix this for me? Kee Nethery From m.schonewille at economy-x-talk.com Thu Aug 14 16:03:57 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 14 Aug 2014 22:03:57 +0200 Subject: Mac printing "Scale to fit paper size" In-Reply-To: <60E06C2F-1EDC-4C41-80AC-923E06FFF91F@kagi.com> References: <60E06C2F-1EDC-4C41-80AC-923E06FFF91F@kagi.com> Message-ID: <53ED162D.2020705@economy-x-talk.com> Hi Kee, I'm in a hurry actually, so I don't have time to read everything carefully right now, but I do something like this: put 72 into myMargin put myMargin,myMargin,item 2 of the printPapersize - myMargin,item 1 of the printPapersize - 72 into myPrintRect print this card into myPrintRect This should be for landscape format. You can change the margin. Feel free to send me an e-mail if this doesn't work for you. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/14/2014 21:11, kee nethery wrote: > I?m printing postcards onto individually cut postcards and they are a custom paper size (4.25 x 6 inches). The stack displays the postcard text in landscape mode but the postcards go into the printer in portrait orientation (smallest edge gets sucked into the printer). Normally I?d set landscape mode and fit to page size, make sure I?d selected the postcard size and print. Worked great only now it doesn?t. It seems that whatever code is printing is ignoring the landscape mode when printing to fit the paper size. > > If I print without the ?fit paper size? it will actually print landscape mode but it prints around 1/4th the normal size as if it has decided the postcard is actually the size of 8.5x11 paper and scales the image down accordingly. > > I?ve tried making the stack larger to compensate and it just prints it larger but from the same starting point on the page so most of the text ends up off the edge of the postcard. > > I?m using Mac OS X 10.9.4 and I?ve tried it with LiveCode 6.6.2 and Livecode 5.5.4 > > I did figure out a way to print through a bunch of trial and error but when I moved that recipe to another?s machine, it prints in the wrong place on the postcard. > > Is there someone out there with printer foo who I can hire to fix this for me? > > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Thu Aug 14 16:21:05 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 14 Aug 2014 20:21:05 +0000 Subject: Send mail encrypted with attachments Message-ID: <905835A0-F1B4-4278-99CC-80C6DDE2B749@iotecdigital.com> Hi all. I got Sarah Reichelts SMTP library (and paid for it) and it?s very cool, but it does not seem to work with SSL encrypted connections, like Gmail for example. Has anyone done this? Might I use Livecode?s built in SSL library to retrofit her SMTP library to support SSL? Bob S From bobsneidar at iotecdigital.com Thu Aug 14 17:10:33 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 14 Aug 2014 21:10:33 +0000 Subject: Send mail encrypted with attachments In-Reply-To: <905835A0-F1B4-4278-99CC-80C6DDE2B749@iotecdigital.com> References: <905835A0-F1B4-4278-99CC-80C6DDE2B749@iotecdigital.com> Message-ID: UPDATE: I poked around in Sarah?s library and found the pertinent line that opens the socket. So instead of using: open socket to sSocketAddr with message ?sSMTPsocketConnected" I use: open secure socket to sSocketAddr with message ?sSMTPsocketConnected" the server is smtp.gmail.com:465. I get a read error. Any ideas on how to go about opening a secure SMTP connection? Bob S On Aug 14, 2014, at 13:21 , Bob Sneidar wrote: > Hi all. > > I got Sarah Reichelts SMTP library (and paid for it) and it?s very cool, but it does not seem to work with SSL encrypted connections, like Gmail for example. > > Has anyone done this? Might I use Livecode?s built in SSL library to retrofit her SMTP library to support SSL? > > Bob S > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pktemp50 at gmail.com Thu Aug 14 18:06:43 2014 From: pktemp50 at gmail.com (Paul Kocsis) Date: Thu, 14 Aug 2014 17:06:43 -0500 Subject: GPS timestamp Message-ID: I posted this in the android forums but have not gotten a response yet, so thought I'd ask here. Here's my post from the forum: Didn't know whether to post this in "Talking Livecode" or here, because although I'm asking the following with android in mind, I'm really looking for answers that apply to both android AND iOS..... My baseline question is: when I query for a detailed=true location reading, one of the items returned is "timestamp". In the documentation, there really is nothing describing what or where this "timestamp" is coming from. Is it from actual GPS packets? ...or from the cellular network if the reading came from AGPS (tower triangulation)? In reading about GPS timestamps in google's api's (IOS as well), there seems to be different timestamps one can get depending upon which Location object is queried.....and thus those "timestamps" can be and mean different things..... I'm simply trying to ascertain "what the heck timestamp am I getting from LC".... I don't know if its a LC thing, or if GPS timestamps from mobile devices in general are unreliable, but when simply logging detailed location data in a test app, I see all sorts of (seeming) anomalies with the "timestamp", and it would be ultra-helpful to have some information/documentation on the origin of what LC is returning as "timestamp"... (BTW, I *only* do a detailed=true location mobileSensorReading when I receive a locationChanged message) For example, sometimes I'll get timestamps that are several minutes to over an hour IN THE FUTURE......sometimes I'll see a timestamp that is indeed "old", but cannot be *reliably* deemed as "old" since one can receive readings WITH THE SAME "OLD" TIMESTAMP where the GPS coordinates are changing and the "accuracies" are changing/improving. If a GPS reading has "changed" (along with its calculated "accuracy"), then why would I get many GPS readings with the EXACT same timestamp? The above makes it difficult (impossible?) to discern actual "stale" readings vs "usable" readings..... Can anyone shed any light on what LC's "timestamp" actually is and/or why I'm seeing some of the timestamp anomalies that I detailed above? From kee at kagi.com Thu Aug 14 20:00:35 2014 From: kee at kagi.com (kee nethery) Date: Thu, 14 Aug 2014 17:00:35 -0700 Subject: Mac printing "Scale to fit paper size" In-Reply-To: <53ED162D.2020705@economy-x-talk.com> References: <60E06C2F-1EDC-4C41-80AC-923E06FFF91F@kagi.com> <53ED162D.2020705@economy-x-talk.com> Message-ID: <668AADE7-B19C-417D-A51A-E888C23890D6@kagi.com> Mark, Thank you very much for the suggestions. If I print to 8.5x11 paper, I can use the following code to print the postcard full page landscape mode. on mouseUp set the printPaperOrientation to "landscape" put 18 into myMargin put myMargin,myMargin,item 2 of the printPapersize - myMargin,item 1 of the printPapersize - 72 into myPrintRect print this card into myPrintRect end mouseUp If I am in the IDE and do a Print Card so that I can set the Tray to Tray 1 which has the 4.5x6 inch postcards, when it prints, it puts the card into the bottom left quadrant of the postcard. If I change the tray to autoselect, and set the Page Setup to ?postcard?, it prints centered on the bottom third of the postcard. If I manually set the print area (notice Top is a negative number) it prints onto the postcards on tray 1. print card from 10,10 to 413,287 into 0,-255,780,255 Setting a negative Top parameter seems to have done the trick. Weird. Thanks for the suggestions, it wasn?t the solution but it did get me thinking and experimenting in ways I didn?t do yesterday. Thanks, Kee On Aug 14, 2014, at 1:03 PM, Mark Schonewille wrote: > Hi Kee, > > I'm in a hurry actually, so I don't have time to read everything carefully right now, but I do something like this: > > put 72 into myMargin > put myMargin,myMargin,item 2 of the printPapersize - myMargin,item 1 of the printPapersize - 72 into myPrintRect > print this card into myPrintRect > > This should be for landscape format. You can change the margin. Feel free to send me an e-mail if this doesn't work for you. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > On 8/14/2014 21:11, kee nethery wrote: >> I?m printing postcards onto individually cut postcards and they are a custom paper size (4.25 x 6 inches). The stack displays the postcard text in landscape mode but the postcards go into the printer in portrait orientation (smallest edge gets sucked into the printer). Normally I?d set landscape mode and fit to page size, make sure I?d selected the postcard size and print. Worked great only now it doesn?t. It seems that whatever code is printing is ignoring the landscape mode when printing to fit the paper size. >> >> If I print without the ?fit paper size? it will actually print landscape mode but it prints around 1/4th the normal size as if it has decided the postcard is actually the size of 8.5x11 paper and scales the image down accordingly. >> >> I?ve tried making the stack larger to compensate and it just prints it larger but from the same starting point on the page so most of the text ends up off the edge of the postcard. >> >> I?m using Mac OS X 10.9.4 and I?ve tried it with LiveCode 6.6.2 and Livecode 5.5.4 >> >> I did figure out a way to print through a bunch of trial and error but when I moved that recipe to another?s machine, it prints in the wrong place on the postcard. >> >> Is there someone out there with printer foo who I can hire to fix this for me? >> >> Kee Nethery >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Thu Aug 14 14:51:03 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Thu, 14 Aug 2014 14:51:03 -0400 Subject: M In-Reply-To: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> References: <37B1B73D-D604-45E1-9E6C-169F639C3FBB@sbcglobal.net> Message-ID: <68D08C97-372F-4034-8103-EAE4C8E08FFD@gmail.com> On Aug 13, 2014, at 10:55 AM, Jim Hurley wrote: > I thought this meant that Jim has reached enlightenment?. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From jacque at hyperactivesw.com Thu Aug 14 22:26:47 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 14 Aug 2014 21:26:47 -0500 Subject: Marker image sizes In-Reply-To: <1407863300662-4681949.post@n4.nabble.com> References: <53E7002B.4040907@hyperactivesw.com> <53E7F842.1040800@hyperactivesw.com> <53E7F94A.7080704@hyperactivesw.com> <0DF81188-F161-458E-BD90-75B0C6051521@unil.ch> <53E82FCB.3030202@hyperactivesw.com> <53E94CCD.4030502@hyperactivesw.com> <4E292371-5425-4685-BAF9-D7CBF7FBCA89@unil.ch> <1407863300662-4681949.post@n4.nabble.com> Message-ID: <53ED6FE7.90106@hyperactivesw.com> It took me some time to get around to trying this, but I must say, this marker will be very useful to some of us. :) Thanks for making these tools available, Bernd. On 8/12/2014, 12:08 PM, BNig wrote: > and for a nice marker made with above utility set the markerPoints of a > polygon graphic to > > ---------------------- > -4,-6 > -4,-5 > -4,-4 > -4,-3 > -4,-2 > -4,-1 > -4,0 > > -4,0 > -5,0 > -6,0 > > -2,-4 > -2,-3 > -2,-2 > -2,-1 > -2,0 > > -2,-4 > -1,-4 > 0,-4 > 1,-4 > > 1,-4 > 1,-3 > 1,-2 > 1,-1 > 1,0 > > -2,-2 > -1,-2 > 0,-2 > > 3,-4 > 4,-4 > 5,-4 > > 3,-4 > 3,-3 > 3,-2 > 3,-1 > 3,0 > > 3,0 > 4,0 > 5,0 > > -6,2 > -5,2 > -4,2 > > -6,2 > -6,3 > -6,4 > > -6,4 > -5,4 > -4,4 > > -4,2 > -4,3 > -4,4 > -4,5 > -4,6 > > -2,2 > -2,3 > -2,4 > -2,5 > -2,6 > > -2,6 > -1,6 > 0,6 > 1,6 > > 1,6 > 1,5 > 1,4 > 1,3 > 1,2 > > 3,2 > 3,3 > 3,4 > 3,5 > 3,6 > > 3,2 > 4,2 > 5,2 > > 3,6 > 4,6 > 5,6 > > 3,4 > 4,4 > ------------------------------------- -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Fri Aug 15 10:05:38 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Aug 2014 07:05:38 -0700 Subject: Marker image sizes In-Reply-To: <53ED6FE7.90106@hyperactivesw.com> References: <53ED6FE7.90106@hyperactivesw.com> Message-ID: <53EE13B2.8050702@fourthworld.com> Bernd set the standard for community assistance. The level of detail he applies to all of the many code examples he shares to help people get the most out of LiveCode is an inspiration to all of us. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com J. Landman Gay wrote: > It took me some time to get around to trying this, but I must say, this > marker will be very useful to some of us. :) > > Thanks for making these tools available, Bernd. > > > On 8/12/2014, 12:08 PM, BNig wrote: >> and for a nice marker made with above utility set the markerPoints of a >> polygon graphic to >> >> ---------------------- >> -4,-6 >> -4,-5 >> -4,-4 >> -4,-3 >> -4,-2 >> -4,-1 >> -4,0 >> >> -4,0 >> -5,0 >> -6,0 >> >> -2,-4 >> -2,-3 >> -2,-2 >> -2,-1 >> -2,0 >> >> -2,-4 >> -1,-4 >> 0,-4 >> 1,-4 >> >> 1,-4 >> 1,-3 >> 1,-2 >> 1,-1 >> 1,0 >> >> -2,-2 >> -1,-2 >> 0,-2 >> >> 3,-4 >> 4,-4 >> 5,-4 >> >> 3,-4 >> 3,-3 >> 3,-2 >> 3,-1 >> 3,0 >> >> 3,0 >> 4,0 >> 5,0 >> >> -6,2 >> -5,2 >> -4,2 >> >> -6,2 >> -6,3 >> -6,4 >> >> -6,4 >> -5,4 >> -4,4 >> >> -4,2 >> -4,3 >> -4,4 >> -4,5 >> -4,6 >> >> -2,2 >> -2,3 >> -2,4 >> -2,5 >> -2,6 >> >> -2,6 >> -1,6 >> 0,6 >> 1,6 >> >> 1,6 >> 1,5 >> 1,4 >> 1,3 >> 1,2 >> >> 3,2 >> 3,3 >> 3,4 >> 3,5 >> 3,6 >> >> 3,2 >> 4,2 >> 5,2 >> >> 3,6 >> 4,6 >> 5,6 >> >> 3,4 >> 4,4 >> ------------------------------------- > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Fri Aug 15 10:13:23 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Aug 2014 07:13:23 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves Message-ID: <53EE1583.7070507@fourthworld.com> One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or "splash" screen) pattern, or completely rewrite everything to use an external text file or database or what have you. The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. Clearly something more is needed. What should that be? Putting a note in the Standalone Builder might help, but if they've gotten that far it's too late, they probably have to start rewriting things. How can we help users anticipate IN ADVANCE that no OS will allow their executable to write to itself, so they can write useful things from the very start? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ludovic.thebault at laposte.net Fri Aug 15 10:21:11 2014 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 15 Aug 2014 16:21:11 +0200 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE1583.7070507@fourthworld.com> References: <53EE1583.7070507@fourthworld.com> Message-ID: <75944AF8-B6EE-431F-8A33-AAFE8C5418C1@laposte.net> Le 15 ao?t 2014 ? 16:13, Richard Gaskin a ?crit : > One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. > > Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. > > So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or "splash" screen) pattern, or completely rewrite everything to use an external text file or database or what have you. > > The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. > > Clearly something more is needed. What should that be? > > Putting a note in the Standalone Builder might help, but if they've gotten that far it's too late, they probably have to start rewriting things. > > How can we help users anticipate IN ADVANCE that no OS will allow their executable to write to itself, so they can write useful things from the very start Hello, What about a ? test ? mode that simulate the standalone comportment ? From charles at buchwald.ca Fri Aug 15 10:45:59 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Fri, 15 Aug 2014 09:45:59 -0500 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <75944AF8-B6EE-431F-8A33-AAFE8C5418C1@laposte.net> References: <53EE1583.7070507@fourthworld.com> <75944AF8-B6EE-431F-8A33-AAFE8C5418C1@laposte.net> Message-ID: Yes, I like the idea of a "test" mode. I prefer that my experience in the development environment match the final user experience as closely as possible. I can imagine linking this test mode to what are now the View > Look and Feel > Emulated... menu items. And of course it would be great to have those Look and Feel menu items include iOS and Android... and updated from Mac OS Classic to OS X, and Windows 95 to something more current. On 15 Aug 2014, at 9:21 AM, Ludovic THEBAULT wrote: > > Le 15 ao?t 2014 ? 16:13, Richard Gaskin a ?crit : > >> One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. >> >> Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. >> >> So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or "splash" screen) pattern, or completely rewrite everything to use an external text file or database or what have you. >> >> The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. >> >> Clearly something more is needed. What should that be? >> >> Putting a note in the Standalone Builder might help, but if they've gotten that far it's too late, they probably have to start rewriting things. >> >> How can we help users anticipate IN ADVANCE that no OS will allow their executable to write to itself, so they can write useful things from the very start > > Hello, > > What about a ? test ? mode that simulate the standalone comportment ? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From bobsneidar at iotecdigital.com Fri Aug 15 10:58:11 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 15 Aug 2014 14:58:11 +0000 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <75944AF8-B6EE-431F-8A33-AAFE8C5418C1@laposte.net> References: <53EE1583.7070507@fourthworld.com> <75944AF8-B6EE-431F-8A33-AAFE8C5418C1@laposte.net> Message-ID: <42724A2A-7F79-4CBE-BC22-7C5A0AD112E4@iotecdigital.com> hmmm? it would be too much to ask that the test mode could simulate the windows environment on a Mac and vis versa. Fairly impossible I suppose to emulate Linux? Bob S On Aug 15, 2014, at 07:21 , Ludovic THEBAULT > wrote: Le 15 ao?t 2014 ? 16:13, Richard Gaskin > a ?crit : One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or "splash" screen) pattern, or completely rewrite everything to use an external text file or database or what have you. The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. Clearly something more is needed. What should that be? Putting a note in the Standalone Builder might help, but if they've gotten that far it's too late, they probably have to start rewriting things. How can we help users anticipate IN ADVANCE that no OS will allow their executable to write to itself, so they can write useful things from the very start Hello, What about a ? test ? mode that simulate the standalone comportment ? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From vclement at gmail.com Fri Aug 15 11:03:18 2014 From: vclement at gmail.com (Vaughn Clement) Date: Fri, 15 Aug 2014 08:03:18 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE1583.7070507@fourthworld.com> References: <53EE1583.7070507@fourthworld.com> Message-ID: Hi Richard Although I have not seen this occur in stacks I've created, I would like to better understand where you are going with this topic? Are you starting a new way to address specific issues with LiveCode, or suggesting changes to the IDE? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Fri, Aug 15, 2014 at 7:13 AM, Richard Gaskin wrote: > One of the most frequent frustrations new users have with LiveCode is the > moment they realize the standalone they've built can't save changes to its > stacks. > > Often this happens very late in the process, just after building the > standalone to test out the work they've been doing, and suddenly everything > that worked so well in the IDE stops working, with no readily discernible > cause. > > So they come into the forums or this list, and folks mention everything > from refactoring their work to use an anchor window (or "splash" screen) > pattern, or completely rewrite everything to use an external text file or > database or what have you. > > The LiveCode User Guide's section on building standalones includes a bold > purple callout box explaining this (p 299), but it's a testament to the > usability of LiveCode that apparently a great many people can use it > productively for many weeks without ever cracking the User Guide. > > Clearly something more is needed. What should that be? > > Putting a note in the Standalone Builder might help, but if they've gotten > that far it's too late, they probably have to start rewriting things. > > How can we help users anticipate IN ADVANCE that no OS will allow their > executable to write to itself, so they can write useful things from the > very start? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Fri Aug 15 11:09:18 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 15 Aug 2014 11:09:18 -0400 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <42724A2A-7F79-4CBE-BC22-7C5A0AD112E4@iotecdigital.com> References: <53EE1583.7070507@fourthworld.com> <75944AF8-B6EE-431F-8A33-AAFE8C5418C1@laposte.net> <42724A2A-7F79-4CBE-BC22-7C5A0AD112E4@iotecdigital.com> Message-ID: How about going the other direction and fixing the behavior? Technically, any standalone CAN edit itself, anyway, but there are all sorts of things that might be able to be done with ancillary files to store changes/updates. When the standalone is going to set something, it checks the file (like a settings file), first. This is just like what happens with the message path. Polymorphism will make the product more powerful and let people do amazing things with it. On Fri, Aug 15, 2014 at 10:58 AM, Bob Sneidar wrote: > hmmm? it would be too much to ask that the test mode could simulate the > windows environment on a Mac and vis versa. Fairly impossible I suppose to > emulate Linux? > > Bob S > > > On Aug 15, 2014, at 07:21 , Ludovic THEBAULT > wrote: > > > Le 15 ao?t 2014 ? 16:13, Richard Gaskin > a ?crit : > > One of the most frequent frustrations new users have with LiveCode is the > moment they realize the standalone they've built can't save changes to its > stacks. > > Often this happens very late in the process, just after building the > standalone to test out the work they've been doing, and suddenly everything > that worked so well in the IDE stops working, with no readily discernible > cause. > > So they come into the forums or this list, and folks mention everything > from refactoring their work to use an anchor window (or "splash" screen) > pattern, or completely rewrite everything to use an external text file or > database or what have you. > > The LiveCode User Guide's section on building standalones includes a bold > purple callout box explaining this (p 299), but it's a testament to the > usability of LiveCode that apparently a great many people can use it > productively for many weeks without ever cracking the User Guide. > > Clearly something more is needed. What should that be? > > Putting a note in the Standalone Builder might help, but if they've gotten > that far it's too late, they probably have to start rewriting things. > > How can we help users anticipate IN ADVANCE that no OS will allow their > executable to write to itself, so they can write useful things from the > very start > > Hello, > > What about a ? test ? mode that simulate the standalone comportment ? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From paulhibbert at mac.com Fri Aug 15 11:28:13 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Fri, 15 Aug 2014 08:28:13 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE1583.7070507@fourthworld.com> References: <53EE1583.7070507@fourthworld.com> Message-ID: <21308087-01BD-428C-9A11-86DE3E924E5E@mac.com> From my own point of view, I struggled trying to understand some of the basic principles of using LC (Revolution as it was then), until I finally picked apart some sample stacks such as the calculator etc., then a few things started to fall in to place. After that I looked for stacks that had a similar use or techniques to the project I wanted to build (I still do to an extent), to find ideas and learn about how LC works in ways that I maybe don't know or understand. My biggest frustration at the time was the disjointed documentation and lack of structured tutorials, many people have also made the same comments over the years. I feel the tutorials especially have improved and the documentation is improving slowly. Thinking back to when I discovered that I needed an anchor window (or "splash" screen), again I had to do more research to find out what was needed until I eventually understood the reasons and principles behind this process. Maybe this could be addressed with a good, well structured "My First Application" tutorial that ships with each new user download, or a package that's easily visible and readily available for new users to download. Currently there is just a free mobile template that tries to entice users to download the community version. I'm sure there are enough teachers and ex-teachers on this list that could maybe help with this. A well structured tutorial can help to guide the new user with the right techniques from the start. Moving forward from the anchor window (or "splash" screen), I also feel a series of basic project templates (or starting points) could be useful, not as complex as the GLX framework, but something that already has an anchor window, preferences, menu bar and a few basic (commented) scripts for printing, saving etc. Obviously these templates would be different for desktop, mobile or tablet, but starting from a template rather than a single empty stack would eventually help to guide the new user towards a better understanding of the techniques needed for each platform. Paul On 2014-08-15, at 7:13 AM, Richard Gaskin wrote: > One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. > > Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. > > So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or "splash" screen) pattern, or completely rewrite everything to use an external text file or database or what have you. > > The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. > > Clearly something more is needed. What should that be? > > Putting a note in the Standalone Builder might help, but if they've gotten that far it's too late, they probably have to start rewriting things. > > How can we help users anticipate IN ADVANCE that no OS will allow their executable to write to itself, so they can write useful things from the very start? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From vclement at gmail.com Fri Aug 15 11:48:19 2014 From: vclement at gmail.com (Vaughn Clement) Date: Fri, 15 Aug 2014 08:48:19 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <21308087-01BD-428C-9A11-86DE3E924E5E@mac.com> References: <53EE1583.7070507@fourthworld.com> <21308087-01BD-428C-9A11-86DE3E924E5E@mac.com> Message-ID: Hi Richard This is a good opening topic that can solicit comments. I have passed through the frustration about documentation already, and I find I live on the How To email to find answers. The forums seem to take forever to get answers. Considering that the How To offers a good reference platform, wouldn't make sense to build on the knowledgebase of the How to to provide for a more organized reference tool? Can the How to be improved like the forum where topics are simpler to locate using a category and keywords. I've used the current system for the How to listings and I have found it difficult to find answers based on the current search approach. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Fri, Aug 15, 2014 at 8:28 AM, Paul Hibbert wrote: > From my own point of view, I struggled trying to understand some of the > basic principles of using LC (Revolution as it was then), until I finally > picked apart some sample stacks such as the calculator etc., then a few > things started to fall in to place. > > After that I looked for stacks that had a similar use or techniques to the > project I wanted to build (I still do to an extent), to find ideas and > learn about how LC works in ways that I maybe don't know or understand. > > My biggest frustration at the time was the disjointed documentation and > lack of structured tutorials, many people have also made the same comments > over the years. I feel the tutorials especially have improved and the > documentation is improving slowly. > > Thinking back to when I discovered that I needed an anchor window (or > "splash" screen), again I had to do more research to find out what was > needed until I eventually understood the reasons and principles behind this > process. Maybe this could be addressed with a good, well structured "My > First Application" tutorial that ships with each new user download, or a > package that's easily visible and readily available for new users to > download. Currently there is just a free mobile template that tries to > entice users to download the community version. > > I'm sure there are enough teachers and ex-teachers on this list that could > maybe help with this. A well structured tutorial can help to guide the new > user with the right techniques from the start. > > Moving forward from the anchor window (or "splash" screen), I also feel a > series of basic project templates (or starting points) could be useful, not > as complex as the GLX framework, but something that already has an anchor > window, preferences, menu bar and a few basic (commented) scripts for > printing, saving etc. > > Obviously these templates would be different for desktop, mobile or > tablet, but starting from a template rather than a single empty stack would > eventually help to guide the new user towards a better understanding of the > techniques needed for each platform. > > Paul > > > On 2014-08-15, at 7:13 AM, Richard Gaskin > wrote: > > > One of the most frequent frustrations new users have with LiveCode is > the moment they realize the standalone they've built can't save changes to > its stacks. > > > > Often this happens very late in the process, just after building the > standalone to test out the work they've been doing, and suddenly everything > that worked so well in the IDE stops working, with no readily discernible > cause. > > > > So they come into the forums or this list, and folks mention everything > from refactoring their work to use an anchor window (or "splash" screen) > pattern, or completely rewrite everything to use an external text file or > database or what have you. > > > > The LiveCode User Guide's section on building standalones includes a > bold purple callout box explaining this (p 299), but it's a testament to > the usability of LiveCode that apparently a great many people can use it > productively for many weeks without ever cracking the User Guide. > > > > Clearly something more is needed. What should that be? > > > > Putting a note in the Standalone Builder might help, but if they've > gotten that far it's too late, they probably have to start rewriting things. > > > > How can we help users anticipate IN ADVANCE that no OS will allow their > executable to write to itself, so they can write useful things from the > very start? > > > > -- > > Richard Gaskin > > Fourth World Systems > > Software Design and Development for the Desktop, Mobile, and the Web > > ____________________________________________________________________ > > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From larry at significantplanet.org Fri Aug 15 11:54:39 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Fri, 15 Aug 2014 09:54:39 -0600 Subject: Helping newcomers anticipate that standalones can't save tothemselves References: <53EE1583.7070507@fourthworld.com> <21308087-01BD-428C-9A11-86DE3E924E5E@mac.com> Message-ID: Great concept from Paul. To that I would add this: I agree 100% that the LC documentation is slowly improving, but has a LONG way to go. Speaking of tutorials, what would be really helpful is a series of videos that are screen capture tutorials - someone who knows what they're doing literally walking a newbie through a specific lesson. As you all know, there is a ton of free or for purchase screen capture software out there. I am not sure the best way to organize this idea, but if this list could somehow come up with an organized list of topics, then one or more programmers on the list could create the video(s) for a particular topic and post it somewhere. Personally, I would recommend a series of videos that range from something as simple as how to drag a button onto the IDE and set its properties (even I could make that video) to something as complex as creating a plugin for the IDE. (for someone else to make!) If we had a video series such as this, I would absolutely encourage some of my (young) grandchildren to learn programming basics with LC and the videos. I really do believe that one of the great strengths of LC is that a "newbie" can actually make a simple program that actually works - and not just "Hello World." I've never taken a programming class, but because of LC (and this list helping me) I've written dozens of little programs that I personally use a lot and a couple of "bigger" more sophisticated programs. That's my opinion of what this list might want to think about. Larry ----- Original Message ----- From: "Paul Hibbert" To: "How to use LiveCode" Sent: Friday, August 15, 2014 9:28 AM Subject: Re: Helping newcomers anticipate that standalones can't save tothemselves > From my own point of view, I struggled trying to understand some of the > basic principles of using LC (Revolution as it was then), until I finally > picked apart some sample stacks such as the calculator etc., then a few > things started to fall in to place. > > After that I looked for stacks that had a similar use or techniques to the > project I wanted to build (I still do to an extent), to find ideas and > learn about how LC works in ways that I maybe don't know or understand. > > My biggest frustration at the time was the disjointed documentation and > lack of structured tutorials, many people have also made the same comments > over the years. I feel the tutorials especially have improved and the > documentation is improving slowly. > > Thinking back to when I discovered that I needed an anchor window (or > "splash" screen), again I had to do more research to find out what was > needed until I eventually understood the reasons and principles behind > this process. Maybe this could be addressed with a good, well structured > "My First Application" tutorial that ships with each new user download, or > a package that's easily visible and readily available for new users to > download. Currently there is just a free mobile template that tries to > entice users to download the community version. > > I'm sure there are enough teachers and ex-teachers on this list that could > maybe help with this. A well structured tutorial can help to guide the new > user with the right techniques from the start. > > Moving forward from the anchor window (or "splash" screen), I also feel a > series of basic project templates (or starting points) could be useful, > not as complex as the GLX framework, but something that already has an > anchor window, preferences, menu bar and a few basic (commented) scripts > for printing, saving etc. > > Obviously these templates would be different for desktop, mobile or > tablet, but starting from a template rather than a single empty stack > would eventually help to guide the new user towards a better understanding > of the techniques needed for each platform. > > Paul > > > On 2014-08-15, at 7:13 AM, Richard Gaskin > wrote: > >> One of the most frequent frustrations new users have with LiveCode is the >> moment they realize the standalone they've built can't save changes to >> its stacks. >> >> Often this happens very late in the process, just after building the >> standalone to test out the work they've been doing, and suddenly >> everything that worked so well in the IDE stops working, with no readily >> discernible cause. >> >> So they come into the forums or this list, and folks mention everything >> from refactoring their work to use an anchor window (or "splash" screen) >> pattern, or completely rewrite everything to use an external text file or >> database or what have you. >> >> The LiveCode User Guide's section on building standalones includes a bold >> purple callout box explaining this (p 299), but it's a testament to the >> usability of LiveCode that apparently a great many people can use it >> productively for many weeks without ever cracking the User Guide. >> >> Clearly something more is needed. What should that be? >> >> Putting a note in the Standalone Builder might help, but if they've >> gotten that far it's too late, they probably have to start rewriting >> things. >> >> How can we help users anticipate IN ADVANCE that no OS will allow their >> executable to write to itself, so they can write useful things from the >> very start? >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Aug 15 12:20:41 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Aug 2014 09:20:41 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: References: Message-ID: <53EE3359.2070301@fourthworld.com> Vaughn Clement wrote: > Hi Richard > > Although I have not seen this occur in stacks I've created, I would > like to better understand where you are going with this topic? Are > you starting a new way to address specific issues with LiveCode, or > suggesting changes to the IDE? That's a good question, and to be honest I'm not really sure, just exploring options. I kinda like the idea of a runtime emulator, but even if we could build such a thing that can account for the many platform-specific things it would need to be useful, we're still left with the same need: If a person is able to know that they need to run a tool to discover the implications of not being able to save to a standalone, the existing Standalone Builder provides that. The trick is being able to know that this sort of evaluation has to be done at all. Extending the documentation might be useful, but only to the degree that any new additions will be read. We could add all sorts of additional tutorials and such, but this issue is already described in a very bold callout on the User Guide page that discusses standalones (p 299). If users aren't reading the primary source of information on using LiveCode, what assurances can we have that they'll discover any other discussion of this in some separate tutorial? Mike's very inventive, and I like where he's going with this: > How about going the other direction and fixing the behavior? > > Technically, any standalone CAN edit itself, anyway, but there are > all sorts of things that might be able to be done with ancillary > files to store changes/updates. When the standalone is going to > set something, it checks the file (like a settings file), first. One of the challenges with such an approach is that people use LiveCode in a wide variety of ways, and in a few cases may rely on data being cleared when the standalone is exited. So maybe such a behavior could be limited to attempting to use a save command on a standalone, in which it automatically clones that stack? But then where would it be saved? How would it know whether it should be in the Documents folder, or Prefs, or App Support, or some other place? Taking a broader view, for most apps it's not desirable to save UI elements at all, populating the UI with data stored externally instead, so when you deploy upgrades the new UI can display older data without having to worry about the old UI. And for separate data storage there are many options, from text files to custom properties to XML to JSON to databases and more - which one is the right fit for the application at hand? Currently these are decisions we make, and once we understand that OSes don't allow executables to write to themselves we design with this in mind, and often enjoy the flexibility of having so many different options for managing persistence. In our local user group we kicked around some ideas for handling this, but it didn't take long until what we were leaning toward was a sort of framework. But as useful as frameworks can be they can also be limiting, and require learning even more to be able to do productive work since we have to learn both LiveCode and the specific ways LiveCode is used within the framework. It's an odd problem, in that it's simple enough to accommodate once the need is known, but difficult to know it's needed in advance. I used to think that this expectation that standalones might be able to save to themselves was limited to those with HyperCard experience, since AFAIK Mac Classic (by virtue of its resource fork) was the only OS in popular use that ever allowed this. And given that both HC and Mac Classic were killed off more than a decade ago, I would have expected this issue to come up ever less often since. Yet somehow even among young people, who've never used HC and in a world where they've never seen any application save to itself, find themselves with the expectation that this should be doable. Not sure how that expectation happens, or how to prevent it, but it comes up just often enough that I think it may be worth trying. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From scott at tactilemedia.com Fri Aug 15 12:41:27 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 15 Aug 2014 09:41:27 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE3359.2070301@fourthworld.com> References: <53EE3359.2070301@fourthworld.com> Message-ID: Maybe having a saving data/reading data example stack included among the default LC splash screen examples could be an additional learning avenue. The demo stack could dynamically generate a data stack in the system's Documents folder (for ease of writing/locating), as opposed to requiring the developer to manually place any files/folders. Regards, Scott Rossi Creative Director Tactile Media UX/UI Design > On Aug 15, 2014, at 9:20 AM, Richard Gaskin wrote: > > We could add all sorts of additional tutorials and such, but this issue is already described in a very bold callout on the User Guide page that discusses standalones (p 299). If users aren't reading the primary source of information on using LiveCode, what assurances can we have that they'll discover any other discussion of this in some separate tutorial? From ambassador at fourthworld.com Fri Aug 15 13:06:41 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Aug 2014 10:06:41 -0700 Subject: Helping newcomers anticipate that standalones can't save tothemselves In-Reply-To: References: Message-ID: <53EE3E21.8090203@fourthworld.com> larry wrote: > To that I would add this: I agree 100% that the LC documentation is slowly > improving, but has a LONG way to go. Agreed, and there's a series of projects underway to improve things. Feel free to propose any specific ideas you have in the Open Source -> Learning Resources -> Brainstorms forum so we can all work together to see if we can turn these into actionable items: -- Richard Gaskin LiveCode Community Manager richard at livecode.org From userev at canelasoftware.com Fri Aug 15 13:22:43 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Fri, 15 Aug 2014 10:22:43 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE1583.7070507@fourthworld.com> References: <53EE1583.7070507@fourthworld.com> Message-ID: On Aug 15, 2014, at 7:13 AM, Richard Gaskin wrote: > One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. > > Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. > > So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or "splash" screen) pattern, or completely rewrite everything to use an external text file or database or what have you. > > The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. > > Clearly something more is needed. What should that be? > > Putting a note in the Standalone Builder might help, but if they've gotten that far it's too late, they probably have to start rewriting things. > > How can we help users anticipate IN ADVANCE that no OS will allow their executable to write to itself, so they can write useful things from the very start? I would think that this could be solved with a document titled something like: ?Things you should know?? or ?Getting Started? or ?Read Me Before Starting? or something entirely different. This document should be in the ?User Guide? and the intro screen that pops up for the first few times when LC is started. It might be a useful Blog of things to know about LC when starting for the first time. It should be in a document on the website in the documentation area as well. Bonus points for checking for the following in the script editor on compile and then popping up a dialog that states ?Did you know?? or ?this code will not work as in a standalone?. Best regards, Mark Talluto CanelaSoftware.com LiveCloud.io From stephenREVOLUTION2 at barncard.com Fri Aug 15 13:31:55 2014 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 15 Aug 2014 10:31:55 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE3359.2070301@fourthworld.com> References: <53EE3359.2070301@fourthworld.com> Message-ID: On Fri, Aug 15, 2014 at 9:20 AM, Richard Gaskin wrote: > Yet somehow even among young people, who've never used HC and in a world > where they've never seen any application save to itself, find themselves > with the expectation that this should be doable. It's what people new to programming (yet are frequent users) expect in an app today, with apps like Final Cut Pro X , iTunes, iPad, most Apple OEM apps requiring no 'saving'. Thanks go to apple, although I'm sure this is the way android apps are expected to work too. These folks may not have a concept of saving anything or worse, WHERE is being saved... All these apps go out of their way to obfuscate the location of discrete files 'so we won't have to worry our pretty little head' about them. Drives me nuts. Is Windoze/MS going that direction? *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* From ambassador at fourthworld.com Fri Aug 15 13:43:19 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Aug 2014 10:43:19 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: References: Message-ID: <53EE46B7.7070407@fourthworld.com> Mark Talluto wrote: > I would think that this could be solved with a document titled > something like: ?Things you should know?? or ?Getting Started? > or ?Read Me Before Starting? or something entirely different. Along those lines, earlier this morning I took a look through the various introductory materials linked to in the Help menu and filed this request to add the warning that appears on p 299 of the User Guide to the Getting Started materials on the web which perhaps may be read more frequently, which might explain why the User Guide's effort to cover this has fallen flat: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From kee at kagi.com Fri Aug 15 13:46:28 2014 From: kee at kagi.com (kee nethery) Date: Fri, 15 Aug 2014 10:46:28 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE1583.7070507@fourthworld.com> References: <53EE1583.7070507@fourthworld.com> Message-ID: <295F2084-C660-4C23-9FEE-432BA623481A@kagi.com> I use the launcher/updater with the script/data stack model so my standalones can save changes into it?s stacks. Wonder if it would make sense to have a standard version of that launcher/updater so that newbies can just grab it and use it. Kee On Aug 15, 2014, at 7:13 AM, Richard Gaskin wrote: > One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. > > Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. > > So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or "splash" screen) pattern, or completely rewrite everything to use an external text file or database or what have you. > > The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. > > Clearly something more is needed. What should that be? > > Putting a note in the Standalone Builder might help, but if they've gotten that far it's too late, they probably have to start rewriting things. > > How can we help users anticipate IN ADVANCE that no OS will allow their executable to write to itself, so they can write useful things from the very start? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Fri Aug 15 13:46:50 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 15 Aug 2014 13:46:50 -0400 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE1583.7070507@fourthworld.com> References: <53EE1583.7070507@fourthworld.com> Message-ID: <41EE225F-8EAF-48BA-8EBF-0AFCDF5C3536@gmail.com> Would it be possible for the standalone builder to automatically create an .exe stack that opens invisibly and does only one thing: opens what the user has presented as the mainstack? Then things would work exactly the same as in the IDE and changes made to the mainstack would be saved. Some attention would have to be paid to not messing up the message path, I guess, but it seems feasible on the face of it. (Of course, lots of things seem feasible when you don't really know what you're talking about?.) -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Aug 15, 2014, at 10:13 AM, Richard Gaskin wrote: > One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. > > Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. > > So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or "splash" screen) pattern, or completely rewrite everything to use an external text file or database or what have you. > > The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. > > Clearly something more is needed. What should that be? > > Putting a note in the Standalone Builder might help, but if they've gotten that far it's too late, they probably have to start rewriting things. > > How can we help users anticipate IN ADVANCE that no OS will allow their executable to write to itself, so they can write useful things from the very start? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Fri Aug 15 13:55:06 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 15 Aug 2014 11:55:06 -0600 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <41EE225F-8EAF-48BA-8EBF-0AFCDF5C3536@gmail.com> References: <53EE1583.7070507@fourthworld.com> <41EE225F-8EAF-48BA-8EBF-0AFCDF5C3536@gmail.com> Message-ID: Late to this, but I like the Mark T thought idea. I still remember when the datagrid first came out, one specific part of the documentation was a big bold link that said something like.. "What things do I need to know to avoid needless headaches.." It included things like building a standalone/splashstack combination, and putting a fake datagrid stub substack as part of the splash so that the builder would know to included the datagrid stuff. If a list of such things could be put together and shown on first run, it might be a just the ticket. On Fri, Aug 15, 2014 at 11:46 AM, Peter M. Brigham wrote: > Would it be possible for the standalone builder to automatically create an > .exe stack that opens invisibly and does only one thing: opens what the > user has presented as the mainstack? Then things would work exactly the > same as in the IDE and changes made to the mainstack would be saved. Some > attention would have to be paid to not messing up the message path, I > guess, but it seems feasible on the face of it. (Of course, lots of things > seem feasible when you don't really know what you're talking about?.) > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > On Aug 15, 2014, at 10:13 AM, Richard Gaskin wrote: > > > One of the most frequent frustrations new users have with LiveCode is > the moment they realize the standalone they've built can't save changes to > its stacks. > > > > Often this happens very late in the process, just after building the > standalone to test out the work they've been doing, and suddenly everything > that worked so well in the IDE stops working, with no readily discernible > cause. > > > > So they come into the forums or this list, and folks mention everything > from refactoring their work to use an anchor window (or "splash" screen) > pattern, or completely rewrite everything to use an external text file or > database or what have you. > > > > The LiveCode User Guide's section on building standalones includes a > bold purple callout box explaining this (p 299), but it's a testament to > the usability of LiveCode that apparently a great many people can use it > productively for many weeks without ever cracking the User Guide. > > > > Clearly something more is needed. What should that be? > > > > Putting a note in the Standalone Builder might help, but if they've > gotten that far it's too late, they probably have to start rewriting things. > > > > How can we help users anticipate IN ADVANCE that no OS will allow their > executable to write to itself, so they can write useful things from the > very start? > > > > -- > > Richard Gaskin > > Fourth World Systems > > Software Design and Development for the Desktop, Mobile, and the Web > > ____________________________________________________________________ > > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From charles at buchwald.ca Fri Aug 15 13:58:31 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Fri, 15 Aug 2014 12:58:31 -0500 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <295F2084-C660-4C23-9FEE-432BA623481A@kagi.com> References: <53EE1583.7070507@fourthworld.com> <295F2084-C660-4C23-9FEE-432BA623481A@kagi.com> Message-ID: <18CB9005-50F2-4340-921F-4AA1A0BFB2AD@buchwald.ca> This would be awesome, Kee. I've been looking for something like that, myself. (Do you have anything you would be willing to share off list?) Not to bring up a sore subject, but something like this would be pretty easy to share and distribute... and might even be found by new users more easily... if revOnline was fixed up... and included a "basics" or "new users" and/or "templates" tag or category. - Charles On 15 Aug 2014, at 12:46 PM, kee nethery wrote: > I use the launcher/updater with the script/data stack model so my standalones can save changes into it?s stacks. Wonder if it would make sense to have a standard version of that launcher/updater so that newbies can just grab it and use it. > Kee -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From irog at mac.com Fri Aug 15 14:06:36 2014 From: irog at mac.com (Roger Guay) Date: Fri, 15 Aug 2014 11:06:36 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <295F2084-C660-4C23-9FEE-432BA623481A@kagi.com> References: <53EE1583.7070507@fourthworld.com> <295F2084-C660-4C23-9FEE-432BA623481A@kagi.com> Message-ID: I like this idea a lot! Roger On Aug 15, 2014, at 10:46 AM, kee nethery wrote: > I use the launcher/updater with the script/data stack model so my standalones can save changes into it?s stacks. Wonder if it would make sense to have a standard version of that launcher/updater so that newbies can just grab it and use it. > Kee > > > On Aug 15, 2014, at 7:13 AM, Richard Gaskin wrote: > >> One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. >> >> Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. >> >> So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or "splash" screen) pattern, or completely rewrite everything to use an external text file or database or what have you. >> >> The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. >> >> Clearly something more is needed. What should that be? >> >> Putting a note in the Standalone Builder might help, but if they've gotten that far it's too late, they probably have to start rewriting things. >> >> How can we help users anticipate IN ADVANCE that no OS will allow their executable to write to itself, so they can write useful things from the very start? >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Aug 15 14:24:39 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Aug 2014 11:24:39 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <295F2084-C660-4C23-9FEE-432BA623481A@kagi.com> References: <295F2084-C660-4C23-9FEE-432BA623481A@kagi.com> Message-ID: <53EE5067.4040704@fourthworld.com> kee nethery wrote: > I use the launcher/updater with the script/data stack model so my > standalones can save changes into it?s stacks. Wonder if it would > make sense to have a standard version of that launcher/updater so > that newbies can just grab it and use it. In a sense, that suggestion is for a type of application template, likely very much a good thing esp. when we consider how frequently folks mention that something they miss from HyperCard was its collection of prefab components. It may be worth pursuing, perhaps even as a community effort, which would allow us to have what we want right now without having to take resources away from the engine team. But if we were to go down the route, we'd probably want to deliver a collection of such templates rather than just one, so folks can better appreciate the many different ways LiveCode can be used, some of which are very important to use for some applications, while other methods are important for other apps. For example, while saving a stack file is convenient, it's only convenient for one version. If a future version of your app has an opportunity to display the data in a different UI, how do you update the UI when it's been saved in stacks made with an older version? In most languages there isn't much of an opportunity to save the UI with the data, or at least not as temptingly easy as it is in LC, so the common convention is to externalize data from its presentation, something most frameworks provide strong support for. For many apps externalizing data is only beneficial for future UI enhancements, and as useful as that is there's another set of considerations as well with LC: What do we do in circumstances where the collection of data if stored on cards may grow over time to a number of cards no longer practical in LC? Fortunately LC includes very strong database support, and at this point most of us who manage sizable collections of data use those or similar means of managing persistent data outside of our apps. But which storage method is best for the app you're working on right now? And will it be the best choice for the app you're working on tomorrow? Thinking about this with a breadth that admittedly may lend itself to oversimplification, we might think of apps as falling into three categories: - Utilities: usually a single window, no documents, and the only persistent data is prefs. A calculator is a good example. - Databases: usually a single window, though it may have secondary windows for specific views or tasks, which need prefs as well as a database file of some kind usually in a fixed location. iTunes, Address Book, and RhythmBox are good examples. - Document-centric: multiple windows in which each window is a view to data store in a separate file located in a place of the user's choosing. Word processors, spreadsheets, drawing programs, etc. So if we were to make templates, it may be helpful to make at least three. What other types might we need? And given the complexity inherent in maintaining the relationship between document files and the view of document data in a window, how might we do this simply in a way that avoids the complexity an high learning curve of a framework? And for all three types, we have both the opportunity and the risk (depending on whether you're an optimist or a pessimist ) of a much deeper issue: what's the simplest way to arrive at a generalized MVC pattern for LiveCode so we can manage the relationship between a data store and views of the data easily? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From alain_farmer at yahoo.com Fri Aug 15 14:50:39 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Fri, 15 Aug 2014 11:50:39 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <21308087-01BD-428C-9A11-86DE3E924E5E@mac.com> References: <53EE1583.7070507@fourthworld.com> <21308087-01BD-428C-9A11-86DE3E924E5E@mac.com> Message-ID: <1408128639.97721.YahooMailNeo@web126104.mail.ne1.yahoo.com> Paul Hibbert wrote: "My biggest frustration at the time was the disjointed documentation and lack of structured tutorials, many people have also made the same comments over the years. I feel the tutorials especially have improved and the documentation is improving slowly. Thinking back to when I discovered that I needed (...), again I had to do more research to find out what was needed until I eventually understood the reasons and principles behind this process. Maybe this could be addressed with a good, well structured "My First Application" tutorial that ships with each new user download, or a package that's easily visible and readily available for new users to download. Currently there is just a free mobile template that tries to entice users to download the community version. I'm sure there are enough teachers and ex-teachers on this list that could maybe help with this. A well structured tutorial can help to guide the new user with the right techniques from the start.? I share this frustration, Paul. Lack of documentation, tutorials, and ready-to-reuse stacks is crippling; especially for newbies, but also for seasoned veterans of xTalk (like myself and many oldies on this list). It's my background in HyperCard+MetaCard, aka experience, that keeps my head-above-water. After a couple of months of experimentation, I have finally mastered LC's grep, but I'm still struggling with rev's XML (and with unicode too); no time yet to dig deep into data-grids, database connectivity, http messaging (LC as web client), etc. The lack of docs, tutorials and ready-to-reuse stacks are hampering process of training the pupil I'm currently training. If Runtime wants more users, and I'm sure they do, they would do well to address this ongoing issue. For my part I would be willing to craft some training tools and materials (ex: how-to match using regex), but time is cruelly-short at this time. Keep swimming ... you'll get to the other side! :) Alain On Friday, August 15, 2014 11:28:44 AM, Paul Hibbert wrote: From my own point of view, I struggled trying to understand some of the basic principles of using LC (Revolution as it was then), until I finally picked apart some sample stacks such as the calculator etc., then a few things started to fall in to place. After that I looked for stacks that had a similar use or techniques to the project I wanted to build (I still do to an extent), to find ideas and learn about how LC works in ways that I maybe don't know or understand. My biggest frustration at the time was the disjointed documentation and lack of structured tutorials, many people have also made the same comments over the years. I feel the tutorials especially have improved and the documentation is improving slowly. Thinking back to when I discovered that I needed an anchor window (or "splash" screen), again I had to do more research to find out what was needed until I eventually understood the reasons and principles behind this process. Maybe this could be addressed with a good, well structured "My First Application" tutorial that ships with each new user download, or a package that's easily visible and readily available for new users to download. Currently there is just a free mobile template that tries to entice users to download the community version. I'm sure there are enough teachers and ex-teachers on this list that could maybe help with this. A well structured tutorial can help to guide the new user with the right techniques from the start. Moving forward from the anchor window (or "splash" screen), I also feel a series of basic project templates (or starting points) could be useful, not as complex as the GLX framework, but something that already has an anchor window, preferences, menu bar and a few basic (commented) scripts for printing, saving etc. Obviously these templates would be different for desktop, mobile or tablet, but starting from a template rather than a single empty stack would eventually help to guide the new user towards a better understanding of the techniques needed for each platform. Paul On 2014-08-15, at 7:13 AM, Richard Gaskin wrote: > One of the most frequent frustrations new users have with LiveCode is the moment they realize the standalone they've built can't save changes to its stacks. > > Often this happens very late in the process, just after building the standalone to test out the work they've been doing, and suddenly everything that worked so well in the IDE stops working, with no readily discernible cause. > > So they come into the forums or this list, and folks mention everything from refactoring their work to use an anchor window (or "splash" screen) pattern, or completely rewrite everything to use an external text file or database or what have you. > > The LiveCode User Guide's section on building standalones includes a bold purple callout box explaining this (p 299), but it's a testament to the usability of LiveCode that apparently a great many people can use it productively for many weeks without ever cracking the User Guide. > > Clearly something more is needed.? What should that be? > > Putting a note in the Standalone Builder might help, but if they've gotten that far it's too late, they probably have to start rewriting things. > > How can we help users anticipate IN ADVANCE that no OS will allow their executable to write to itself, so they can write useful things from the very start? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com? ? ? ? ? ? ? ? http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Aug 15 15:14:15 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Aug 2014 12:14:15 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <1408128639.97721.YahooMailNeo@web126104.mail.ne1.yahoo.com> References: <1408128639.97721.YahooMailNeo@web126104.mail.ne1.yahoo.com> Message-ID: <53EE5C07.2030504@fourthworld.com> Alain Farmer wrote: > Lack of documentation, tutorials, and ready-to-reuse stacks is > crippling; especially for newbies, but also for seasoned veterans > of xTalk (like myself and many oldies on this list). It would be helpful if we could all take a really good look at what we have now to see if we can arrive at specific actionable recommendations to improve them. Looking just as the items included with the IDE install, the current inventory of learning materials includes: - 378-page User Guide PDF: true, its copyright date may make it seem old, but nearly every word of it is as relevant today as when it was written. And despite many requests here and elsewhere for specific reports against it, very few instances of truly erroneous information there have ever been reported. Better still: Dan Shafer has generously offered to lead an effort to do a thorough tech edit on this for v7, which I'll be helping with. The RunRev team has posted the Word source files to GitHub to get that started. If anyone here would like to help we'll be divvying up chapters soon, so drop me a note. - 78 tutorial stacks in the Resources window: covering a wide range of topics from working with images and databases to writing client- server apps like a chat client, they're not bad and many make a good starting point for one's own projects. We could add more, and it may be helpful to review the ones we have to determine which others we might want to see added to it. - 20 prefab components in the Object Library: this library is extensible, so we could make any number of new components to share. Which ones should we make? - Many dozens of supplemental tutorials and guides: linked to in the Help menu, these topics cover things like the nuances of working with the data grid, setting up LiveCode Server, and lots more. What other tutorials might we add to those? Looking at the scope of resources, obviously they could benefit from being collated into a single collection. Ben Beaumont is working on that now, and while I don't know the full status on that in terms of feature release dates I do know it's a keen interest of theirs and they're very open to engaging to community to expand on these things. So let's get what we want. Who's in a position to help with either crafting new learning materials, or joining in the forums to brainstorm ways to make the most of the learning materials we have? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Fri Aug 15 15:16:42 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 15 Aug 2014 19:16:42 +0000 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <1408128639.97721.YahooMailNeo@web126104.mail.ne1.yahoo.com> References: <53EE1583.7070507@fourthworld.com> <21308087-01BD-428C-9A11-86DE3E924E5E@mac.com> <1408128639.97721.YahooMailNeo@web126104.mail.ne1.yahoo.com> Message-ID: Okay, so let?s remember that a Dev Environment is an order of magnitude (or more) more complex that simply running an application. It?s an application that builds applications, for crying out loud, and people who take up software development need to get used to the idea that they are going to *have to* study up on the product. Try getting into Java or C without reading the documentation. Someone said that executables can modify themselves. Erm? no they cannot. If they can, then so can malware. Modern OS?es prevent this, and the very nature of an executable (and I mean the *actual* executable, not the package that contains it) will prevent this. Since the mainstack is compiled with the runtime engine to form the executable, well, that as they say, is that. C++ executables cannot modify themselves once compiled. They can modify other support files, but not themselves directly. I don?t understand why people expect Livecode to be different. All that being said, it *would* be nice to have an emulator that I can switch to so I can see how it will run on my Mac without having to switch to my Virtual Machine and run it in Livecode there. But that is because I am lazy. It?s not that much more trouble to bite the bullet and buy the VM software. As far as the documentation, that can always be improved. Bob S From alain_farmer at yahoo.com Fri Aug 15 15:30:58 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Fri, 15 Aug 2014 12:30:58 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE3359.2070301@fourthworld.com> References: <53EE3359.2070301@fourthworld.com> Message-ID: <1408131058.78145.YahooMailNeo@web126103.mail.ne1.yahoo.com> In reply to : Taking a broader view, for most apps it's not desirable to save UI elements at all, populating the UI with data stored externally instead, so when you deploy upgrades the new UI can display older data without having to worry about the old UI.? And for separate data storage there are many options, from text files to custom properties to XML to JSON to databases and more - which one is the right fit for the application at hand? I am currently programming my stacks as single-card front-ends that read/write XML/RDF files for the data of "each card". The main reason that I am doing this, this way, is that I have over a million files to manage, which is way-too-much for LiveCode to handle as cards (one card per file). There are other benefits too: 1. separation of content and UI, 2. multiple views with custom datasets and UI; 3. open data is easy to share/migrate; 4. filesystem, OS and command-line become useful additions for my application; 5. there are thousands of tools and web-services to handle XML/RDF data, aka "Open Data". I am also interested in JSON, because this is the native format of JavaScript, Couch, and MANY other tools. It is essential for inter-operability. Btw, Couch is a relatively-new no-SQL database, much faster than any SQL, designed for massive distributed systems, specialized in replication & synchronization. Couch's API is native HTTP : HEAD, GET, POST, PUT, DELETE. Meanwhile, back at the LiveCode ranch, it would indeed be nice to be able to handle JSON, load it as an array and/or a graph. Is it the case already ? Alain On Friday, August 15, 2014 12:21:07 PM, Richard Gaskin wrote: Vaughn Clement wrote: > Hi Richard > > Although I have not seen this occur in stacks I've created, I would > like to better understand where you are going with this topic? Are > you starting a new way to address specific issues with LiveCode, or > suggesting changes to the IDE? That's a good question, and to be honest I'm not really sure, just exploring options. I kinda like the idea of a runtime emulator, but even if we could build such a thing that can account for the many platform-specific things it would need to be useful, we're still left with the same need: If a person is able to know that they need to run a tool to discover the implications of not being able to save to a standalone, the existing Standalone Builder provides that.? The trick is being able to know that this sort of evaluation has to be done at all. Extending the documentation might be useful, but only to the degree that any new additions will be read. We could add all sorts of additional tutorials and such, but this issue is already described in a very bold callout on the User Guide page that discusses standalones (p 299).? If users aren't reading the primary source of information on using LiveCode, what assurances can we have that they'll discover any other discussion of this in some separate tutorial? Mike's very inventive, and I like where he's going with this: > How about going the other direction and fixing the behavior? > > Technically, any standalone CAN edit itself, anyway, but there are > all sorts of things that might be able to be done with ancillary > files to store changes/updates.? When the standalone is going to > set something, it checks the file (like a settings file), first. One of the challenges with such an approach is that people use LiveCode in a wide variety of ways, and in a few cases may rely on data being cleared when the standalone is exited. So maybe such a behavior could be limited to attempting to use a save command on a standalone, in which it automatically clones that stack? But then where would it be saved?? How would it know whether it should be in the Documents folder, or Prefs, or App Support, or some other place? Taking a broader view, for most apps it's not desirable to save UI elements at all, populating the UI with data stored externally instead, so when you deploy upgrades the new UI can display older data without having to worry about the old UI.? And for separate data storage there are many options, from text files to custom properties to XML to JSON to databases and more - which one is the right fit for the application at hand? Currently these are decisions we make, and once we understand that OSes don't allow executables to write to themselves we design with this in mind, and often enjoy the flexibility of having so many different options for managing persistence. In our local user group we kicked around some ideas for handling this, but it didn't take long until what we were leaning toward was a sort of framework.? But as useful as frameworks can be they can also be limiting, and require learning even more to be able to do productive work since we have to learn both LiveCode and the specific ways LiveCode is used within the framework. It's an odd problem, in that it's simple enough to accommodate once the need is known, but difficult to know it's needed in advance. I used to think that this expectation that standalones might be able to save to themselves was limited to those with HyperCard experience, since AFAIK Mac Classic (by virtue of its resource fork) was the only OS in popular use that ever allowed this.? And given that both HC and Mac Classic were killed off more than a decade ago, I would have expected this issue to come up ever less often since. Yet somehow even among young people, who've never used HC and in a world where they've never seen any application save to itself, find themselves with the expectation that this should be doable. Not sure how that expectation happens, or how to prevent it, but it comes up just often enough that I think it may be worth trying. -- ? Richard Gaskin ? Fourth World Systems ? Software Design and Development for the Desktop, Mobile, and the Web ? ____________________________________________________________________ ? Ambassador at FourthWorld.com? ? ? ? ? ? ? ? http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Aug 15 15:31:49 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Aug 2014 12:31:49 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: References: Message-ID: <53EE6025.9090403@fourthworld.com> Bob Sneidar wrote: > All that being said, it *would* be nice to have an emulator that I > can switch to so I can see how it will run on my Mac without having > to switch to my Virtual Machine and run it in Livecode there. But > that is because I am lazy. It?s not that much more trouble to bite > the bullet and buy the VM software. Venturing just a tad OT here, but I feel obliged to share the good news Mark Wieder shared with me a few years ago: VirtualBox https://www.virtualbox.org/ Free as in both beer and freedom, in my experience it also outperforms Parallels rather dramatically in the time it takes to restore a session, and has pretty much all the modern features we've come to expect from such tools: - Your choice of single-window or interleaved modes - Wide range of hardware access and emulation options - Support for snapshots - Clipboard and shared folder integration - Very easy to use Thank you Mr. Wieder for turning me on that gem! -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Fri Aug 15 15:38:29 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Aug 2014 12:38:29 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <1408131058.78145.YahooMailNeo@web126103.mail.ne1.yahoo.com> References: <1408131058.78145.YahooMailNeo@web126103.mail.ne1.yahoo.com> Message-ID: <53EE61B5.2020200@fourthworld.com> Alain Farmer wrote: > I am also interested in JSON, because this is the native format > of JavaScript, Couch, and MANY other tools. It is essential for > inter-operability. Btw, Couch is a relatively-new no-SQL database, > much faster than any SQL, designed for massive distributed systems, > specialized in replication & synchronization. Couch's API is native > HTTP : HEAD, GET, POST, PUT, DELETE. Meanwhile, back at the LiveCode > ranch, it would indeed be nice to be able to handle JSON, load it as > an array and/or a graph. Is it the case already ? With CouchDB's main API being HTTP-based, do you know if there's a library for LC to make working with it even more convenient? As for JSON, there are several libraries that convert LC arrays to JSON and back again: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Fri Aug 15 15:44:54 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 15 Aug 2014 19:44:54 +0000 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE6025.9090403@fourthworld.com> References: <53EE6025.9090403@fourthworld.com> Message-ID: Thanks Richard. I tried that some time ago but it didn?t work with all apps. I suppose you are saying it will work with Livecode? I will give that a try! Bob S On Aug 15, 2014, at 12:31 , Richard Gaskin wrote: > Bob Sneidar wrote: > > > All that being said, it *would* be nice to have an emulator that I > > can switch to so I can see how it will run on my Mac without having > > to switch to my Virtual Machine and run it in Livecode there. But > > that is because I am lazy. It?s not that much more trouble to bite > > the bullet and buy the VM software. > > Venturing just a tad OT here, but I feel obliged to share the good news Mark Wieder shared with me a few years ago: VirtualBox > > https://www.virtualbox.org/ > > Free as in both beer and freedom, in my experience it also outperforms Parallels rather dramatically in the time it takes to restore a session, and has pretty much all the modern features we've come to expect from such tools: > > - Your choice of single-window or interleaved modes > > - Wide range of hardware access and emulation options > > - Support for snapshots > > - Clipboard and shared folder integration > > - Very easy to use > > Thank you Mr. Wieder for turning me on that gem! > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From vclement at gmail.com Fri Aug 15 15:54:00 2014 From: vclement at gmail.com (Vaughn Clement) Date: Fri, 15 Aug 2014 12:54:00 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE6025.9090403@fourthworld.com> References: <53EE6025.9090403@fourthworld.com> Message-ID: Hi All My first look at LC a year ago: Was it just me or do you find that many of the reference documents and media are not well written. As I have stated in the past, as a newbie I found the media incomplete and misleading in many areas. Today: Since that time I have come to understand that LiveCode is a horse of many colors and it does exist in the land of OZ. What is difficult to understand as a newbie is the vast number of things you can do with LiveCode. The scope of design approaches available and the way the design varies depending upon your expectations and ability to formulate the requirements. Looking forward: The transition period since the Kickstarter funding has been a big distraction for new users. Its hard to get started alone track the many versions and changes afoot. I am looking forward to a calmer time when you can see the results of your work and not having to deal with bugs and version issues. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Fri, Aug 15, 2014 at 12:31 PM, Richard Gaskin wrote: > Bob Sneidar wrote: > > > All that being said, it *would* be nice to have an emulator that I > > can switch to so I can see how it will run on my Mac without having > > to switch to my Virtual Machine and run it in Livecode there. But > > that is because I am lazy. It?s not that much more trouble to bite > > the bullet and buy the VM software. > > Venturing just a tad OT here, but I feel obliged to share the good news > Mark Wieder shared with me a few years ago: VirtualBox > > https://www.virtualbox.org/ > > Free as in both beer and freedom, in my experience it also outperforms > Parallels rather dramatically in the time it takes to restore a session, > and has pretty much all the modern features we've come to expect from such > tools: > > - Your choice of single-window or interleaved modes > > - Wide range of hardware access and emulation options > > - Support for snapshots > > - Clipboard and shared folder integration > > - Very easy to use > > Thank you Mr. Wieder for turning me on that gem! > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alain_farmer at yahoo.com Fri Aug 15 16:10:13 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Fri, 15 Aug 2014 13:10:13 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <53EE61B5.2020200@fourthworld.com> References: <1408131058.78145.YahooMailNeo@web126103.mail.ne1.yahoo.com> <53EE61B5.2020200@fourthworld.com> Message-ID: <1408133413.29685.YahooMailNeo@web126104.mail.ne1.yahoo.com> Thank you, Richard, for the URLs regarding JSON. Have you used any of them? Do you recommend one? As for LC-library to make working with CouchDB more convenient, it is a project of mine. I should have this all worked-out in the coming weeks. I will share it with y'all, once it's completed, polished, and documented. Meanwhile, if you discover such a lib (for CouchDB), please notify me. So much to do, so little time!? ;-) On Friday, August 15, 2014 3:38:48 PM, Richard Gaskin wrote: Alain Farmer wrote: > I am also interested in JSON, because this is the native format > of JavaScript, Couch, and MANY other tools. It is essential for > inter-operability. Btw, Couch is a relatively-new no-SQL database, > much faster than any SQL, designed for massive distributed systems, > specialized in replication & synchronization. Couch's API is native > HTTP : HEAD, GET, POST, PUT, DELETE. Meanwhile, back at the LiveCode > ranch, it would indeed be nice to be able to handle JSON, load it as > an array and/or a graph. Is it the case already ? With CouchDB's main API being HTTP-based, do you know if there's a library for LC to make working with it even more convenient? As for JSON, there are several libraries that convert LC arrays to JSON and back again: -- ? Richard Gaskin ? Fourth World Systems ? Software Design and Development for the Desktop, Mobile, and the Web ? ____________________________________________________________________ ? Ambassador at FourthWorld.com? ? ? ? ? ? ? ? http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Aug 15 16:48:30 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Aug 2014 13:48:30 -0700 Subject: Helping newcomers anticipate that standalones can't save to themselves In-Reply-To: <1408133413.29685.YahooMailNeo@web126104.mail.ne1.yahoo.com> References: <1408133413.29685.YahooMailNeo@web126104.mail.ne1.yahoo.com> Message-ID: <53EE721E.6080703@fourthworld.com> Alain Farmer wrote: > Thank you, Richard, for the URLs regarding JSON. > Have you used any of them? Do you recommend one? Unfortunately I'm useless to you there: the only service I've had to talk to that uses anything like that is for a very trivial datum in which a simple offset call does what I need. Most of my work these days is in systems in which both client and server are exclusively LiveCode, so it's hard to be both the convenience, compactness and efficiency of LC encoded arrays as a data package. In fact, after reading up on MongoDB's internals, it seems that LC arrays are very similar in many respects to BSON, just a bit more compact in some respects (no VINTs in LC, just UINT4s): http://bsonspec.org/ > As for LC-library to make working with CouchDB more convenient, it > is a project of mine. > I should have this all worked-out in the coming weeks. > I will share it with y'all, once it's completed, polished, and > documented. Looking forward to it. I enjoyed the work you did with FreeGUI, and always admired your spirit of community supportiveness. > Meanwhile, if you discover such a lib (for CouchDB), please notify me. Will do. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From nick at canelasoftware.com Fri Aug 15 18:47:02 2014 From: nick at canelasoftware.com (Nick Pulido) Date: Fri, 15 Aug 2014 15:47:02 -0700 Subject: What is LiveCloud? Message-ID: <4F1EE04B-CB12-4B39-AD50-3456D5BF0CEF@canelasoftware.com> > Dear ListMembers, > > The last issue of RevUp has an article titled "LiveCloud Part 2". I seem to have missed part 1 - could someone post me a link? And just what is LiveCloud? Is it related to this site?: > > http://livecloud.com > > -- > Igor Couto > Sydney, Australia Hey Igor, Here is some additional information about LiveCloud, let me know if you have any other questions, I am happy to reply. Part 1 - http://newsletters.livecode.com/july/issue174/newsletter2.html Part 2 - http://newsletters.livecode.com/august/issue176/newsletter2.html There is more information on the official site, http://livecloud.io/. Take Care, Nick Pulido Canela Software LiveCloud.io From igor at semperuna.com Fri Aug 15 18:55:14 2014 From: igor at semperuna.com (Igor de Oliveira Couto) Date: Sat, 16 Aug 2014 08:55:14 +1000 Subject: What is LiveCloud? In-Reply-To: <4F1EE04B-CB12-4B39-AD50-3456D5BF0CEF@canelasoftware.com> References: <4F1EE04B-CB12-4B39-AD50-3456D5BF0CEF@canelasoftware.com> Message-ID: <1562EB09-0214-4707-99A7-4F5C1BB66F74@semperuna.com> Dear Nick, Thank you for the links, and for the info. And congratulations on putting together what appears to be a very polished piece of software. From what I've read, it appears that *you* host the client's database - that is, the LiveCloud software is hosted in *your* servers, and the client merely accesses it via an api, is that correct? If so, is there an option for self-hosting the server software in my own servers? If that option is available, what are the server requirements? Many thanks in advance for any info. Kind regards, On 16 Aug 2014, at 8:47 am, Nick Pulido wrote: >> Dear ListMembers, >> >> The last issue of RevUp has an article titled "LiveCloud Part 2". I seem to have missed part 1 - could someone post me a link? And just what is LiveCloud? Is it related to this site?: >> >> http://livecloud.com >> >> -- >> Igor Couto >> Sydney, Australia > > Hey Igor, > Here is some additional information about LiveCloud, let me know if you have any other questions, I am happy to reply. > Part 1 - http://newsletters.livecode.com/july/issue174/newsletter2.html > Part 2 - http://newsletters.livecode.com/august/issue176/newsletter2.html > There is more information on the official site, http://livecloud.io/. > Take Care, > Nick Pulido > Canela Software > LiveCloud.io > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Igor Couto Sydney, Australia From nick at canelasoftware.com Fri Aug 15 19:06:22 2014 From: nick at canelasoftware.com (Nick Pulido) Date: Fri, 15 Aug 2014 16:06:22 -0700 Subject: What is LiveCloud? Message-ID: <52426C8D-92EC-4C58-B803-9812E8270E73@canelasoftware.com> > I was just coming here to ask about this too. I hadn't seen it mentioned > before and as someone who's used mongodb with livecode applications in the > past I am intrigued. Can someone share a little bit about the technology > stack behind the scenes of livecloud? > > A couple of questions I have: > > What kind of database or storage system does livecloud use on the backend? > Are livecloud calls from within livecode non-blocking (asynchronous)? (the > biggest things getting in my way with working with a rest api in front of a > mongodb was blocking liburl calls) > What does the means of communicating with livecloud look like under the > hood? (is it a web service underneath or a direct socket connection?) Hey Andrew, Here are a few tidbits about the LiveCloud stack: ? LiveCloud (LiveCode native API) ? Private REST API (Apache, PHP) ? CassiaDB (proprietary database server written in LiveCode) The LiveCloud API calls are currently blocking. LiveCloud is a web service that does not require a socket connection. Feel free to send me a message if you have any additional questions. Best, Nick Pulido Canela Software LiveCloud.io From nick at canelasoftware.com Fri Aug 15 19:22:03 2014 From: nick at canelasoftware.com (Nick Pulido) Date: Fri, 15 Aug 2014 16:22:03 -0700 Subject: What is LiveCloud? Message-ID: <2A0C2091-16A6-4C68-8972-0BF869768B49@canelasoftware.com> > Dear Nick, > > Thank you for the links, and for the info. And congratulations on putting together what appears to be a very polished piece of software. > > From what I've read, it appears that *you* host the client's database - that is, the LiveCloud software is hosted in *your* servers, and the client merely accesses it via an api, is that correct? If so, is there an option for self-hosting the server software in my own servers? If that option is available, what are the server requirements? > > Many thanks in advance for any info. > > Kind regards, Thank you for your kind words. We do in fact host the client data on our servers which are accessible via the APIs. Currently we are still in beta we plan on supporting privately hosted clouds as the service grows. Best, Nick Pulido Canela Software LiveCloud.io From alain_farmer at yahoo.com Fri Aug 15 21:35:57 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Fri, 15 Aug 2014 18:35:57 -0700 Subject: What is LiveCloud? In-Reply-To: <4F1EE04B-CB12-4B39-AD50-3456D5BF0CEF@canelasoftware.com> References: <4F1EE04B-CB12-4B39-AD50-3456D5BF0CEF@canelasoftware.com> Message-ID: <1408152957.98628.YahooMailNeo@web126105.mail.ne1.yahoo.com> I browsed their entire site. Their information [about what it is] is extremely scant. OTOH, there are currently LOTS of Cloud-hosted servers available. DigitalOcean, the one I'm using, only costs $5 per month, for the equivalent of my own server. They are a BIG operation,and therefore I am fairly confident about their ability to shoulder the load. I can install one of many OS'es, LAMP, and anything I wish; full root control, no limits. To make LiveCloud interesting, they would at-the-very-least have to offer as much power, reliability and low-cost as other cloud servers do. Plus I would expect additional LiveCode-specific features, such-as an API that can be scripted with LiveCode, Certainly I expect the database to inter-operate with LiveCode. But how much control over them in LiveCloud ? On Friday, August 15, 2014 6:47:02 PM, Nick Pulido wrote: > Dear ListMembers, > > The last issue of RevUp has an article titled "LiveCloud Part 2". I seem to have missed part 1 - could someone post me a link? And just what is LiveCloud? Is it related to this site?: > > http://livecloud.com > > -- > Igor Couto > Sydney, Australia Hey Igor, Here is some additional information about LiveCloud, let me know if you have any other questions, I am happy to reply. Part 1 - http://newsletters.livecode.com/july/issue174/newsletter2.html Part 2 - http://newsletters.livecode.com/august/issue176/newsletter2.html There is more information on the official site, http://livecloud.io/. Take Care, Nick Pulido Canela Software LiveCloud.io _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Aug 16 09:04:37 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 16 Aug 2014 16:04:37 +0300 Subject: numToChar and HTML5 ? Message-ID: <53EF56E5.1040809@gmail.com> Let's just suppose I want to deploy my Devawriter as a web-browser based "thingy" . . . Now Devawriter is currently cooked up using Livecode 4.5, and as such makes heavy use of numToChar in fact one could almost say that Devawriter IS numToChar incarnated in physical form. I am well aware that with Livecode 7 numToChar for Unicode characters gets lost and is replaced by numToCodepoint [no backwards compatibility in those parts] which means that should I want to compile a working version of my Devawriter I have to replace all my thousands of numToChar statements with numToCodepoint ones [which is really just an automated process] Now, the (post burble) question: Am I to take it as automatic that HTML5 (i.e. browser-based versions of Livecode standalones) will be hived off from Livecode 7.0.0 or later? Richmond. From roger.e.eller at sealedair.com Sat Aug 16 09:15:27 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 16 Aug 2014 09:15:27 -0400 Subject: numToChar and HTML5 ? In-Reply-To: <53EF56E5.1040809@gmail.com> References: <53EF56E5.1040809@gmail.com> Message-ID: Since html5 is a year away, I would assume later than 7.0.0, but possibly backported into the 7 series. ~Roger On Aug 16, 2014 9:05 AM, "Richmond" wrote: > Let's just suppose I want to deploy my Devawriter as a web-browser based > "thingy" . . . > > Now Devawriter is currently cooked up using Livecode 4.5, and as such > makes heavy use of > > numToChar > > in fact one could almost say that Devawriter IS numToChar incarnated in > physical form. > > I am well aware that with Livecode 7 numToChar for Unicode characters gets > lost and is replaced > by > > numToCodepoint [no backwards compatibility in those parts] > > which means that should I want to compile a working version of my > Devawriter I have to replace > all my thousands of numToChar statements with numToCodepoint ones > > [which is really just an automated process] > > Now, the (post burble) question: > > Am I to take it as automatic that HTML5 (i.e. browser-based versions of > Livecode standalones) > will be hived off from Livecode 7.0.0 or later? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sat Aug 16 09:58:07 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 16 Aug 2014 16:58:07 +0300 Subject: numToChar and HTML5 ? In-Reply-To: References: <53EF56E5.1040809@gmail.com> Message-ID: <53EF636F.4080800@gmail.com> On 16/08/14 16:15, Roger Eller wrote: > Since html5 is a year away, I would assume later than 7.0.0, but possibly > backported into the 7 series. > > I wonder if there is a roadmap for HTML5? Richmond. From ambassador at fourthworld.com Sat Aug 16 12:00:36 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 16 Aug 2014 09:00:36 -0700 Subject: numToChar and HTML5 ? In-Reply-To: <53EF636F.4080800@gmail.com> References: <53EF636F.4080800@gmail.com> Message-ID: <53EF8024.5060301@fourthworld.com> Richmond wrote: > I wonder if there is a roadmap for HTML5? Not yet, but Kevin's most recent blog post outlines their next steps for the HTML5 implementation: And the Road Map itself has been update with several interesting new details about Open Language and other aspects of the project: -- Richard Gaskin LiveCode Community Manager richard at livecode.org From userev at canelasoftware.com Sat Aug 16 12:18:30 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sat, 16 Aug 2014 09:18:30 -0700 Subject: What is LiveCloud? In-Reply-To: <1408152957.98628.YahooMailNeo@web126105.mail.ne1.yahoo.com> References: <4F1EE04B-CB12-4B39-AD50-3456D5BF0CEF@canelasoftware.com> <1408152957.98628.YahooMailNeo@web126105.mail.ne1.yahoo.com> Message-ID: <897A116E-8483-4951-840B-9D4010C5A546@canelasoftware.com> On Aug 15, 2014, at 6:35 PM, Alain Farmer wrote: > I browsed their entire site. Their information [about what it is] is extremely scant. > OTOH, there are currently LOTS of Cloud-hosted servers available. > DigitalOcean, the one I'm using, only costs $5 per month, for the equivalent of my own server. > They are a BIG operation,and therefore I am fairly confident about their ability to shoulder the load. > I can install one of many OS'es, LAMP, and anything I wish; full root control, no limits. > > To make LiveCloud interesting, they would at-the-very-least have to offer as much power, reliability and low-cost as other cloud servers do. Plus I would expect additional LiveCode-specific features, such-as an API that can be scripted with LiveCode, Certainly I expect the database to inter-operate with LiveCode. But how much control over them in LiveCloud ? Hi Alain, Thank you for taking the time to visit our website. Our goal is simple. We want to make a very easy to use database available to everyone. Databases by their nature are complex in their setup, management, and use. The problem is compounded for new developers. The native LiveCode APIs we have created cover all the CRUDL operations plus a lot of other functions we have found useful for making our products possible. The local database storage will be free for all to use. The local database will probably be sufficient for a huge number of LiveCode developers. The cloud database is free to use for everyone during our beta phase. The best I can offer those that are interested is a download link to the LiveCloud Manager: http://livecloud.io/live-code-manager-download-page/ Make a database today and see what it is about. The Canela team is available to answer all questions that come up. Best regards, Mark Talluto CanelaSoftware.com LiveCloud.io From richmondmathewson at gmail.com Sat Aug 16 14:02:26 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 16 Aug 2014 21:02:26 +0300 Subject: numToChar and HTML5 ? In-Reply-To: <53EF8024.5060301@fourthworld.com> References: <53EF636F.4080800@gmail.com> <53EF8024.5060301@fourthworld.com> Message-ID: <53EF9CB2.5000309@gmail.com> On 16/08/14 19:00, Richard Gaskin wrote: > Richmond wrote: >> I wonder if there is a roadmap for HTML5? > > Not yet, but Kevin's most recent blog post outlines their next steps > for the HTML5 implementation: > > Well; lots of jolly super words from Kevin, but nothing concrete; possibly because everything is a bit too early to be concrete. > > And the Road Map itself has been update with several interesting new > details about Open Language and other aspects of the project: > > That is much more concrete and extremely exciting. Richmond. From richmondmathewson at gmail.com Sat Aug 16 14:56:19 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 16 Aug 2014 21:56:19 +0300 Subject: The Road Map as it now is . . . . . Message-ID: <53EFA953.2090402@gmail.com> "If you ever plan to motor west, Travel my way, take the highway that is best. Get your kicks on Route sixty-six." Well, personally, I am currently getting my kicks here: http://livecode.com/community/roadmap/ Or: Took the Revvy to the Levvy, But the Levvy was dry, Singin' "Why, Why, Kevin, Why?" But, I digress . . . -------------------------------------------------------- A few questions: 1. What is an 'evaluator' ? 2. The "Full IDE Prototype" sounds sexy . . . but . . . 2.1. Can we have a pictorial mockup, Please? 2.2. If it is anything like "that picture" that appeared earlier, would there be an option to retain the current IDE [what I really mean is 'GUI'] ? 2.3. "A single windowed IDE" while being all the rage in Visual Basic and Xojo [the IDE formally known as Prince] land it may not be what Livecoders either need or want: so, how about either: 2.3.1. Several optional front-ends? or 2.3.2. A questionnaire sent to all current downloaders and/or programmers cunningly illustrated with mockup pictures so that a sounding can be taken? ----------------------------------------------------- [Sorry, Richard Gaskin, for spoiling your weekend] ----------------------------------------------------- Why I am "not very keen on "a single windowed IDE": I often find myself designing stacks that are full-screen. I cope with this by having the revMenubar and toolBar stacks on a different virtual desktop [Mac and Linux . . . Oh, while I'm on the topic; does anyone know of a way to implement multiple desktops on Windows XP, 7 and 8 ?] And, normally the Application Browser on a third desktop. I assume (????) that would not be possible with a single window IDE. I hate having to develop where the WYSIWYG stack needs to be scrolled to see all of it. ------------------------------------------------------ In 2000 I did a whole slew of development using Toolbook [Windows 1998], and apart from the fact that I intensely disliked the Windows 95/98 interface, was at least pleased to see that Toolbook did not have a single windowed IDE: especially because I was developing CALL software that had to be full screen and had no access to a larger monitor and/or screen-res than those for which I was developing. I see that Toolbook now appears to use a single windowed IDE: http://en.wikipedia.org/wiki/ToolBook#mediaviewer/File:ToolBook_115_UI.png I would hate to think that the reason why RunRev is moving towards a single windowed is, sheeplike, because everybody else does that. ------------------------------------------------------ Richmond. From richmondmathewson at gmail.com Sat Aug 16 15:13:15 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 16 Aug 2014 22:13:15 +0300 Subject: The Road Map as it now is . . . . . In-Reply-To: <53EFA953.2090402@gmail.com> References: <53EFA953.2090402@gmail.com> Message-ID: <53EFAD4B.4040904@gmail.com> AND . . . Open Language. This seems very awkward. Let us just suppose Fred Flintstone writes an extension to the Livecode language (what is it called again?) that is very clever . . . 1. Does he, somehow, infect all subsequent versions of Livecode with his extension? 2. Does he make his extension extension available as a sort of patch that other Livecode users can choose to apply or not? 3. How does this get into the Dictionary? 4. Does it remain a sort of "in" secret between Fred and his chosen sub-cult? Barney Rubble. From richmondmathewson at gmail.com Sat Aug 16 15:19:07 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 16 Aug 2014 22:19:07 +0300 Subject: [OT] Virtual Desktops for Windows Message-ID: <53EFAEAB.2000905@gmail.com> Hey; Look! Richmond answers his own questions yet again; sheer joy. I find that multiple desktops on Linux and Macintosh are extremely useful. So was happy to find that there are several add-ons to Windows so that this is possible "on the dark side" as well :) Free: http://virtuawin.sourceforge.net/ Pay: http://dexpot.de/?lang=en Microsoft's own offering: http://technet.microsoft.com/en-us/sysinternals/cc817881 Richmond. From ebeugelaar at gmail.com Sat Aug 16 21:01:49 2014 From: ebeugelaar at gmail.com (Erik Beugelaar) Date: Sun, 17 Aug 2014 03:01:49 +0200 Subject: The Road Map as it now is . . . . . In-Reply-To: <53EFAD4B.4040904@gmail.com> References: <53EFA953.2090402@gmail.com> <53EFAD4B.4040904@gmail.com> Message-ID: I would rather like to see the demonstration of Widgets/Themes on the next RunRevLive 2014 instead of the roadmap of Open Language (whatever it maybe). My first concern is the missing native (external) support to Android. To clear up this missing support (which is almost available in any other cross-platform development tool generating native apps like Appcelerator Titanium or Appache Cordova) If it will be again a demo only working on iOS, I think I will give up the hope LiveCode Will ever succeed to give support to native access on Android on short term after waiting for almost 4 years when I bought the commercial subscription of LiveCode 4.6 in September 2011. In that period iOS was a leading platform, followed by Android and BlackBerry. Now it is Android. Period. In my opinion it is one of the biggest missing Features in LiveCode at the moment even more then a HTML5 LiveCode version. I am looking with high interest to the Widgets/Themes demonstration at the RunRevLive 2014. Cheers, Erik On 16/08/14 21:13, "Richmond" wrote: >AND . . . > >Open Language. > >This seems very awkward. > >Let us just suppose Fred Flintstone writes an extension to the Livecode >language (what is it called again?) >that is very clever . . . > >1. Does he, somehow, infect all subsequent versions of Livecode with his >extension? > >2. Does he make his extension extension available as a sort of patch >that other Livecode users can >choose to apply or not? > >3. How does this get into the Dictionary? > >4. Does it remain a sort of "in" secret between Fred and his chosen >sub-cult? > >Barney Rubble. > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From marc.vancauwenberghe at pandora.be Sat Aug 16 22:42:23 2014 From: marc.vancauwenberghe at pandora.be (Marc Van Cauwenberghe) Date: Sun, 17 Aug 2014 04:42:23 +0200 Subject: The Road Map as it now is . . . . . In-Reply-To: References: <53EFA953.2090402@gmail.com> <53EFAD4B.4040904@gmail.com> Message-ID: <855048E7-9034-4817-85B0-390E52B8294E@pandora.be> I can relate to all of what you are saying Erik. Even iOS support is far from being what it should be. I hope the Widget are the solution but even there I have no high hopes. September will also be a breakong point for me. Regards, Marc Verstuurd vanaf mijn iPhone > Op 17-aug.-2014 om 03:01 heeft Erik Beugelaar het volgende geschreven: > > > I would rather like to see the demonstration of Widgets/Themes on > the next RunRevLive 2014 instead of the roadmap of Open Language (whatever > it maybe). > > My first concern is the missing native (external) support to Android. > To clear up this missing support (which is almost available in any other > cross-platform > development tool generating native apps like Appcelerator Titanium or > Appache Cordova) > > > If it will be again a demo only working on iOS, I think I will give up the > hope LiveCode > Will ever succeed to give support to native access on Android on short > term after > waiting for almost 4 years when I bought the commercial subscription of > LiveCode 4.6 in > September 2011. In that period iOS was a leading platform, followed by > Android and > BlackBerry. Now it is Android. Period. In my opinion it is one of the > biggest missing > Features in LiveCode at the moment even more then a HTML5 LiveCode > version. > > I am looking with high interest to the Widgets/Themes demonstration at > the RunRevLive 2014. > > > Cheers, > Erik > > > > > >> On 16/08/14 21:13, "Richmond" wrote: >> >> AND . . . >> >> Open Language. >> >> This seems very awkward. >> >> Let us just suppose Fred Flintstone writes an extension to the Livecode >> language (what is it called again?) >> that is very clever . . . >> >> 1. Does he, somehow, infect all subsequent versions of Livecode with his >> extension? >> >> 2. Does he make his extension extension available as a sort of patch >> that other Livecode users can >> choose to apply or not? >> >> 3. How does this get into the Dictionary? >> >> 4. Does it remain a sort of "in" secret between Fred and his chosen >> sub-cult? >> >> Barney Rubble. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sat Aug 16 23:12:29 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 16 Aug 2014 20:12:29 -0700 Subject: The Road Map as it now is . . . . . In-Reply-To: References: <53EFA953.2090402@gmail.com> <53EFAD4B.4040904@gmail.com> Message-ID: Even though I don't develop for iOS/Android (yet!), I have to agree with this. Android has a huge market share on phones and tablets compared to iOS, yet it seems that LC support for Android is lacking compared to iOS. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Aug 16, 2014 at 6:01 PM, Erik Beugelaar wrote: > > I would rather like to see the demonstration of Widgets/Themes on > the next RunRevLive 2014 instead of the roadmap of Open Language (whatever > it maybe). > > My first concern is the missing native (external) support to Android. > To clear up this missing support (which is almost available in any other > cross-platform > development tool generating native apps like Appcelerator Titanium or > Appache Cordova) > > > If it will be again a demo only working on iOS, I think I will give up the > hope LiveCode > Will ever succeed to give support to native access on Android on short > term after > waiting for almost 4 years when I bought the commercial subscription of > LiveCode 4.6 in > September 2011. In that period iOS was a leading platform, followed by > Android and > BlackBerry. Now it is Android. Period. In my opinion it is one of the > biggest missing > Features in LiveCode at the moment even more then a HTML5 LiveCode > version. > > I am looking with high interest to the Widgets/Themes demonstration at > the RunRevLive 2014. > > > Cheers, > Erik > > > > > > On 16/08/14 21:13, "Richmond" wrote: > > >AND . . . > > > >Open Language. > > > >This seems very awkward. > > > >Let us just suppose Fred Flintstone writes an extension to the Livecode > >language (what is it called again?) > >that is very clever . . . > > > >1. Does he, somehow, infect all subsequent versions of Livecode with his > >extension? > > > >2. Does he make his extension extension available as a sort of patch > >that other Livecode users can > >choose to apply or not? > > > >3. How does this get into the Dictionary? > > > >4. Does it remain a sort of "in" secret between Fred and his chosen > >sub-cult? > > > >Barney Rubble. > > > >_______________________________________________ > >use-livecode mailing list > >use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From coiin at verizon.net Sun Aug 17 11:49:07 2014 From: coiin at verizon.net (Colin Holgate) Date: Sun, 17 Aug 2014 11:49:07 -0400 Subject: The Road Map as it now is . . . . . In-Reply-To: References: <53EFA953.2090402@gmail.com> <53EFAD4B.4040904@gmail.com> Message-ID: <6A759F75-8433-4DD1-9DF0-1A9D8A01650C@verizon.net> Couple of things to think of, with regard to Android and iOS potential market: Apps that go into Google Play show a figure, which represents the number of devices that your app is compatible with. That number has gone over 6,000. With iOS, if you include all the iPod touches and iPads, as well as iPhones, it?s probably still below 25. As for the OS version people have, with iOS you can be pretty certain the user is going to have iOS 7, with a few percent who are on iOS 6 or earlier. With Android you can be even more certain that the user does NOT have KitKat. So, producing features to support Android has to be more complex. For apps I?ve done that are in three Android stores (Google Play, Amazon Appstore, and Samsung?s app store), and are also in iTunes, the iTunes figures are many times the combined total of all Android sales. So, Android?s market share of devices doesn?t translate to potential income for app developers, and the wide range of OS releases, and hardware variations, makes it a harder platform to support. As an example problem that can occur, in the app I?m finishing up now there is one section that is in portrait, and another section that is in landscape. The app opens in portrait, then changes to landscape when you go to the other section, and on almost all Android devices thing go well. On Nexus 7 though, the reported screen width and height when in landscape are the same values that were given in portrait. But the task bar is now at the bottom of landscape and not the bottom of portrait, so clearly the width of landscape and the height of portrait cannot be the same! Turns out this is a known issue for Nexus 7, and fortunately I have a work around for the issue. For a few days though it looked like the other 6,000 Android devices would not get to see the app, because we wouldn?t be allowed to submit it because of the Nexus 7 issue. None of what I?ve said means that LiveCode shouldn?t support Android better! But the difficulties and the potential gains are not as obvious as you might think. On Aug 16, 2014, at 11:12 PM, Peter Haworth wrote: > >Even though I don't develop for iOS/Android (yet!), I have to agree with > this. Android has a huge market share on phones and tablets compared to > iOS, yet it seems that LC support for Android is lacking compared to iOS. From bodine at bodinetraininggames.com Sun Aug 17 12:17:36 2014 From: bodine at bodinetraininggames.com (tbodine) Date: Sun, 17 Aug 2014 09:17:36 -0700 (PDT) Subject: [OT] Virtual Desktops for Windows In-Reply-To: <53EFAEAB.2000905@gmail.com> References: <53EFAEAB.2000905@gmail.com> Message-ID: <1408292256523-4682084.post@n4.nabble.com> Hi, I like the idea of the virtual desktops, but have a concern: If you had your LiveCode workspace in a virtual desktop (on Windows), does this cause the locations and rectangles of controls and windows to be reported with coordinates from the virtual location? Or do programs like virtuawin adjust for that when you make a virtual desktop the active one? Thanks, Tom -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Virtual-Desktops-for-Windows-tp4682079p4682084.html Sent from the Revolution - User mailing list archive at Nabble.com. From tedennis at softwaredetails.com Sun Aug 17 12:37:24 2014 From: tedennis at softwaredetails.com (Terry Dennis) Date: Sun, 17 Aug 2014 09:37:24 -0700 Subject: The Road Map as it now is . . . . . In-Reply-To: Message-ID: Allow me to support the prior commentary on weak Android support. LiveCode?s support of that platform is incomplete and frustrating. Colin?s reference to ?potential income for app developers? is valid. However, I don?t rely on LiveCode for my income. I use it to develop customized apps for non-profits, and then donate the apps to various organizations. That said, I am probably a voice in the wilderness, relative to the number of people who count LiveCode in their box of revenue generating tools. However, my opinion is still valid for my individual circumstances. I would like to see an increasing number of newly devoted LiveCode app developers. It?s difficult to attract the next generation of eager developers without a fully functional (and supported) platform that [apparently, at least from the outside] pays insufficient attention to the most popular current technology. And, to add a level of complexity to my commentary, I also want HTML5 support. Nobody said it would be easy. From dan at clearvisiontech.com Sun Aug 17 12:41:47 2014 From: dan at clearvisiontech.com (Dan Friedman) Date: Sun, 17 Aug 2014 09:41:47 -0700 Subject: revDataFromQuery and DELETE FROM In-Reply-To: References: Message-ID: <21EC1FD9-3FB2-4870-BD02-3AC3D677EF98@clearvisiontech.com> Hello, Can anyone tell me why this results in "revdberr"? put "DELETE FROM" && tTableName && "WHERE entryID=" & entryID into tSQL put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData What's interesting is that the record is being removed from the database. So it's all working server side, just that LiveCode is reporting "revdberr". Anyone have any ideas? Thanks in advance, Dan From alain_farmer at yahoo.com Sun Aug 17 13:25:10 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Sun, 17 Aug 2014 10:25:10 -0700 Subject: Bug with diacriticals in folder names Message-ID: <1408296310.47149.YahooMailNeo@web126103.mail.ne1.yahoo.com> Hello y'all, I'm using version 6.6.2 of LiveCode, running on a UNIX machine. I'm not sure if I have brought this up before, but.. there is a problem with folder names that contain diacriticals. put getCurrentFolder() & "Ac?riculture" into myFolder1 put getCurrentFolder() & "Acericulture" into myFolder2 answer (there is a folder myFolder1) & "," & (there is a folder myFolder2) -- answers false,true I don't want to rename thousands of folders; Is there a workaround ? Btw, I cannot rename them by script, because, according to LiveCode, they don't exist !!! Helllllp !?! From pete at lcsql.com Sun Aug 17 14:20:04 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 17 Aug 2014 11:20:04 -0700 Subject: revDataFromQuery and DELETE FROM In-Reply-To: <21EC1FD9-3FB2-4870-BD02-3AC3D677EF98@clearvisiontech.com> References: <21EC1FD9-3FB2-4870-BD02-3AC3D677EF98@clearvisiontech.com> Message-ID: Hi Dan, What is the text after "revdberr"? Strange that the row is being deleted but here's a couple of things that come to mind. You've probably already checked that tTableName and entryID contain valid information but one other thing to check is if the tablename includes any special characters or if entryID contains non-numeric data. In the first case, the table name would have to be enclosed in double quotes and in the second case, entryID would have to be enclosed in single quotes. I'm not sure it really matters but I always use revExecuteSQL when executing anything other than a SELECT statement. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Aug 17, 2014 at 9:41 AM, Dan Friedman wrote: > Hello, > > Can anyone tell me why this results in "revdberr"? > > put "DELETE FROM" && tTableName && "WHERE entryID=" & entryID into tSQL > put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData > > What's interesting is that the record is being removed from the database. > So it's all working server side, just that LiveCode is reporting "revdberr". > > Anyone have any ideas? > > Thanks in advance, > Dan > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Sun Aug 17 15:41:13 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 17 Aug 2014 12:41:13 -0700 Subject: Bug with diacriticals in folder names In-Reply-To: <1408296310.47149.YahooMailNeo@web126103.mail.ne1.yahoo.com> References: <1408296310.47149.YahooMailNeo@web126103.mail.ne1.yahoo.com> Message-ID: <11-1382539571.20140817124113@ahsoftware.net> Alain- Sunday, August 17, 2014, 10:25:10 AM, you wrote: > Hello y'all, > I'm using version 6.6.2 of LiveCode, running on a UNIX machine. > I'm not sure if I have brought this up before, but.. > there is a problem with folder names that contain diacriticals. > put getCurrentFolder() & "Ac?riculture" into myFolder1 > put getCurrentFolder() & "Acericulture" into myFolder2 > answer (there is a folder myFolder1) & "," & (there is a folder myFolder2) > -- answers false,true > I don't want to rename thousands of folders; Is there a workaround ? > Btw, I cannot rename them by script, because, according to LiveCode, they don't exist !!! > Helllllp !?! Probably not much help, but it's a unicode problem. The following works fine here on linux mint with LC 6.6.2 and 6.7-dp8 7.0-dp8 as well. In a button script: on mouseUp local tFolder answer folder "Find the folder" put it into tFolder answer there is a folder tFolder set the defaultfolder to tFolder get url ("file:" & tFolder & "/Acericulture") put tFolder & cr & it into field 1 end mouseUp with a target folder named "Ac?riculture" the answer statement shows true the field gets the contents of the enclosed text file (using diacriticals in file names is also successful) and aside from the fact that tFolder shows a bad transliteration of the unicode, this works as expected. However, while answer there is a folder tFolder works fine, answer there is a folder "/home/mwieder/Copy/Ac?riculture" returns false. This no doubt is due to the fact that the LC reports the folder path as "/home/mwieder/Copy/Ac??riculture" -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From richmondmathewson at gmail.com Sun Aug 17 15:54:24 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 17 Aug 2014 22:54:24 +0300 Subject: Bug with diacriticals in folder names In-Reply-To: <11-1382539571.20140817124113@ahsoftware.net> References: <1408296310.47149.YahooMailNeo@web126103.mail.ne1.yahoo.com> <11-1382539571.20140817124113@ahsoftware.net> Message-ID: <53F10870.2090801@gmail.com> On 17/08/14 22:41, Mark Wieder wrote: > Alain- > > Sunday, August 17, 2014, 10:25:10 AM, you wrote: > >> Hello y'all, >> I'm using version 6.6.2 of LiveCode, running on a UNIX machine. >> Does Livecode work on UNIX? If so why is this not more widely publicised? Richmond. From ambassador at fourthworld.com Sun Aug 17 16:53:33 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 17 Aug 2014 13:53:33 -0700 Subject: Bug with diacriticals in folder names In-Reply-To: <1408296310.47149.YahooMailNeo@web126103.mail.ne1.yahoo.com> References: <1408296310.47149.YahooMailNeo@web126103.mail.ne1.yahoo.com> Message-ID: <53F1164D.1070504@fourthworld.com> Alain Farmer wrote: > I'm using version 6.6.2 of LiveCode, running on a UNIX machine. > I'm not sure if I have brought this up before, but.. > there is a problem with folder names that contain diacriticals. > > > put getCurrentFolder() & "Ac?riculture" into myFolder1 > put getCurrentFolder() & "Acericulture" into myFolder2 > answer (there is a folder myFolder1) & "," & (there is a folder myFolder2) > -- answers false,true > > I don't want to rename thousands of folders; Is there a workaround ? > Btw, I cannot rename them by script, because, according to LiveCode, they don't exist !!! > Helllllp !?! Version 6.6.2 predates the extensive work done with implementing Unicode throughout LiveCode, which should also take into account characters in file paths not well handled by earlier versions of the engine. You should find these enhancements in v7.0, currently in DP 9 for testing, available here: Note that to accommodate the sweeping scope of changes we've all been asking for required a file format change. So to help test the new version while continuing to have the option of possibly working in older versions, safest it so make sure you have 6.x-compatible copies as backups, and/or use the Save As feature to save out to an older format. As Kevin has described in his recent blog posts, v7 is the foundation for the future of the platform, including many if not most (certainly most in terms of scope of effort) of the deep changes we all supported with the Kickstarter campaign last year. So all of us benefit from doing as much of our daily work with the v7 Developer Preview builds as we possibly can. After all, what we don't want to happen is to merely hope that the testing others do happens to will cover all the areas unique to our app, and put off using v7 until after release. We'll want to make sure v7 does exactly what we need it to do on release day, and that can happen only if we all work with it today. Please keep us posted if you find this issue remains outstanding in v7dp9, and be sure to file a bug report so it can be addressed before dp10: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Sun Aug 17 17:06:18 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 17 Aug 2014 14:06:18 -0700 Subject: Church bell app? Message-ID: I just about choked over the price: my church is gearing up to pay $6,500 for a church bell system (and that's because we *already* have the speakers from the old system). I'm scratching my head to figure out why this isn't a matter of a near trivial app on a dedicated ipod and an amplifier. THe hardest part would be turning an amplifier on . . . Does anyone know of such a thing, or an open source project for one? All it really needs to do is send a signal to turn on an amplifier and play sound on schedule, be able to choose the sounds to play on the schedules, and be able to play tunes on command (Eastern Catholic & Orthodox play the bells during the Anaphora [Consecration]). Does anyone know about the existence of such a thing, or how much one would cost to commission? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sun Aug 17 17:11:05 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 17 Aug 2014 14:11:05 -0700 Subject: revDataFromQuery and DELETE FROM In-Reply-To: References: <21EC1FD9-3FB2-4870-BD02-3AC3D677EF98@clearvisiontech.com> Message-ID: On Sun, Aug 17, 2014 at 11:20 AM, Peter Haworth wrote: > What is the text after "revdberr"? > THere is a known issue of livecode returning a bare "revdberr" (i think there's a comma; I'd have to check) on certain types of successful transactions. Its been repeatable for me; my error checks look at that as one of the successful returns . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From richmondmathewson at gmail.com Sun Aug 17 17:11:55 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 00:11:55 +0300 Subject: Church bell app? In-Reply-To: References: Message-ID: <53F11A9B.5010706@gmail.com> On 18/08/14 00:06, Dr. Hawkins wrote: > I just about choked over the price: my church is gearing up to pay $6,500 > for a church bell system (and that's because we *already* have the speakers > from the old system). > > I'm scratching my head to figure out why this isn't a matter of a near > trivial app on a dedicated ipod and an amplifier. THe hardest part would > be turning an amplifier on . . . > > Does anyone know of such a thing, or an open source project for one? > > All it really needs to do is send a signal to turn on an amplifier and play > sound on schedule, be able to choose the sounds to play on the schedules, > and be able to play tunes on command (Eastern Catholic & Orthodox play the > bells during the Anaphora [Consecration]). > > Does anyone know about the existence of such a thing, or how much one would > cost to commission? > > > That's odd; all the churches I know they have somebody who rings the bells. By that I mean 'bells' as in 'bells' not fake bells. Richmond. From alain_farmer at yahoo.com Sun Aug 17 17:21:42 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Sun, 17 Aug 2014 14:21:42 -0700 Subject: Bug with diacriticals in folder names In-Reply-To: <53F10870.2090801@gmail.com> References: <1408296310.47149.YahooMailNeo@web126103.mail.ne1.yahoo.com> <11-1382539571.20140817124113@ahsoftware.net> <53F10870.2090801@gmail.com> Message-ID: <1408310502.89723.YahooMailNeo@web126101.mail.ne1.yahoo.com> To Richmond: YES, LiveCode runs on UNIX machines. Btw, MetaCard was first developed for UNIX, then Windows, then Mac. To Richard: Thanks for the nudge to use/test version 7, but I am swamped with work right-now, I do not have time, and I cannot risk using something beta at this time. To Mark: -- with a folder named "Ac?riculture" : put getCurrentFolder() & "Ac??riculture" into myFolder answer (there is a folder myFolder) -- answers TRUE. You were right about the unicode. -- Thanks Mark On Sunday, August 17, 2014 3:54:48 PM, Richmond wrote: On 17/08/14 22:41, Mark Wieder wrote: > Alain- > > Sunday, August 17, 2014, 10:25:10 AM, you wrote: > >> Hello y'all, >> I'm using version 6.6.2 of LiveCode, running on a UNIX machine. >> Does Livecode work on UNIX? If so why is this not more widely publicised? Richmond. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sun Aug 17 17:33:48 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 17 Aug 2014 14:33:48 -0700 Subject: revDataFromQuery and DELETE FROM In-Reply-To: References: <21EC1FD9-3FB2-4870-BD02-3AC3D677EF98@clearvisiontech.com> Message-ID: I remember that but wasn't it something to do with multiple SQL statements in one call? Could be the same issue I guess. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Aug 17, 2014 at 2:11 PM, Dr. Hawkins wrote: > On Sun, Aug 17, 2014 at 11:20 AM, Peter Haworth wrote: > > > What is the text after "revdberr"? > > > > THere is a known issue of livecode returning a bare "revdberr" (i think > there's a comma; I'd have to check) on certain types of successful > transactions. Its been repeatable for me; my error checks look at that as > one of the successful returns . . . > > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Sun Aug 17 17:38:50 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 17 Aug 2014 14:38:50 -0700 Subject: Bug with diacriticals in folder names In-Reply-To: <1408310502.89723.YahooMailNeo@web126101.mail.ne1.yahoo.com> References: <1408310502.89723.YahooMailNeo@web126101.mail.ne1.yahoo.com> Message-ID: <53F120EA.2050103@fourthworld.com> Alain Farmer wrote: > To Richard: Thanks for the nudge to use/test version 7, but I am > swamped with work right-now, I do not have time, and I cannot risk > using something beta at this time. I can understand that; I mix my time between 6 and 7 myself throughout the day as project needs require. But always the optimist, we could look at that in the other direction: While there *might* be risks with using v7, not using it introduces the *certainty* of not having at least one thing you need. :) If nothing else, if you could spare a moment to test that one thing you know isn't working in older versions it'll help not only your project, but maybe many others down the road as well. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sun Aug 17 18:11:23 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 17 Aug 2014 15:11:23 -0700 Subject: The Road Map as it now is . . . . . In-Reply-To: <6A759F75-8433-4DD1-9DF0-1A9D8A01650C@verizon.net> References: <6A759F75-8433-4DD1-9DF0-1A9D8A01650C@verizon.net> Message-ID: <53F1288B.4000701@fourthworld.com> Colin Holgate wrote: > So, Android?s market share of devices doesn?t translate to potential > income for app developers, and the wide range of OS releases, and > hardware variations, makes it a harder platform to support. It's true that pretty much every survey on developer revenue from app sales favors iOS devs. But it's also true that mobile is following the same commoditization pattern we've seen with every disruptive technology before it, from steam engines to automobiles to personal computers. There's no reason to expect mobile will be any different, and the mounting evidence is already suggesting we're more or less at the point of commoditization right now: IDC's latest numbers this week put Android at 84% for Q2 unit sales, with Apple at 11%. Not that much different from what we see on the desktop, with Microsoft actually gaining in recent years back up to 91% to Apple's 7.8%. If developers weren't deploying to Android this wouldn't be happening, since of course any OS is only as useful as the range of apps it can run. When we look at the most popular apps on either platform, most of the biggest names are shipping for both, with relatively few exceptions. Roxio reports that they make more money from *sales* on iOS, but that they make roughly the same amount of money on Android through *advertising*. Having a lot of eyeballs opens up different paths to funding different models for supporting app development. Sure, just as deploying to Windows means supporting a much wider range of hardware than deploying to Mac, including Android in your deployment mix will require testing for a broader range of hardware configurations than for a vendor that offers fewer choices. But that doesn't stop the biggest names in the business from deploying to both, and with the level of abstraction a high-level tool like LiveCode brings to the table it should ideally matter even less to us. iOS is an important market, and Apple's obviously doing very well with their premium market, with solid marketing and supply chain control that lets them obtain higher profit margins from their customers than all others combined. But Android isn't going away any time soon either. It shouldn't be too much to ask for parity between the platforms in LiveCode. > None of what I?ve said means that LiveCode shouldn?t support Android > better! Exactly. Fortunately, I think the core team at RunRev understands this, and intends to provide parity ASAP. The biggest challenge seems to be that Android is essentially a VM, and LiveCode is essentially a VM as well, so it's more challenging for them to deliver the same features with the same performance. But I do believe they intend to, and are working on it. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Sun Aug 17 18:16:40 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 17 Aug 2014 15:16:40 -0700 Subject: Church bell app? In-Reply-To: <53F11A9B.5010706@gmail.com> References: <53F11A9B.5010706@gmail.com> Message-ID: On Sun, Aug 17, 2014 at 2:11 PM, Richmond wrote: > That's odd; all the churches I know they have somebody who rings the bells. > > By that I mean 'bells' as in 'bells' not fake bells. > That would certainly be preferred, but it isn't always possible. Our building wouldn't even support the structure (our onion dome would have caused problems if it hadn't been removed). We absolutely need to be ringing again from this building before we start building the new one in a year or so (or we could lose them forever). And without a full time staff, ringing at specified hours throughout the day would be kind of rough . . . From dochawk at gmail.com Sun Aug 17 18:17:36 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 17 Aug 2014 15:17:36 -0700 Subject: revDataFromQuery and DELETE FROM In-Reply-To: References: <21EC1FD9-3FB2-4870-BD02-3AC3D677EF98@clearvisiontech.com> Message-ID: On Sun, Aug 17, 2014 at 2:33 PM, Peter Haworth wrote: > I remember that but wasn't it something to do with multiple SQL statements > in one call? Could be the same issue I guess. > I want to say that it's any delete from in-memory mySQL, but my memory is fuzzy. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sun Aug 17 18:23:10 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 17 Aug 2014 15:23:10 -0700 Subject: The Road Map as it now is . . . . . In-Reply-To: <53F1288B.4000701@fourthworld.com> References: <6A759F75-8433-4DD1-9DF0-1A9D8A01650C@verizon.net> <53F1288B.4000701@fourthworld.com> Message-ID: On Sun, Aug 17, 2014 at 3:11 PM, Richard Gaskin wrote: > IDC's latest numbers this week put Android at 84% for Q2 unit sales, with > Apple at 11%. Not that much different from what we see on the desktop, > with Microsoft actually gaining in recent years back up to 91% to Apple's > 7.8%. > But on phones, that 84%/11% runs the other way on revenue. Android users just don't pay for apps; iOS do. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Sun Aug 17 18:31:25 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 17 Aug 2014 15:31:25 -0700 Subject: The Road Map as it now is . . . . . In-Reply-To: References: Message-ID: <53F12D3D.9080602@fourthworld.com> Dr. Hawkins wrote: > On Sun, Aug 17, 2014 at 3:11 PM, Richard Gaskin wrote: > >> IDC's latest numbers this week put Android at 84% for Q2 unit sales, with >> Apple at 11%. Not that much different from what we see on the desktop, >> with Microsoft actually gaining in recent years back up to 91% to Apple's >> 7.8%. > > But on phones, that 84%/11% runs the other way on revenue. Android users > just don't pay for apps; iOS do. Exactly, as I noted in that post. Later on in that post I described why most of the biggest names in the business continue to ship to both. There are many ways to make money in software, and direct revenue from per-download licenses is only one of them. Neither iOS nor Android is going away soon. Doesn't seem all that controversial to expect parity support for them in a multi-platform tool like LiveCode. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mwieder at ahsoftware.net Sun Aug 17 19:01:06 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 17 Aug 2014 16:01:06 -0700 Subject: Bug with diacriticals in folder names In-Reply-To: <53F1164D.1070504@fourthworld.com> References: <1408296310.47149.YahooMailNeo@web126103.mail.ne1.yahoo.com> <53F1164D.1070504@fourthworld.com> Message-ID: <152-1370546945.20140817160106@ahsoftware.net> Richard- Sunday, August 17, 2014, 1:53:33 PM, you wrote: > Version 6.6.2 predates the extensive work done with implementing Unicode > throughout LiveCode, which should also take into account characters in > file paths not well handled by earlier versions of the engine. ...and indeed LC 7.0-dp8 does the right thing natively with diacriticals in file/folder names without having to do any unicode transliterations. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From ambassador at fourthworld.com Sun Aug 17 19:05:45 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 17 Aug 2014 16:05:45 -0700 Subject: Bug with diacriticals in folder names In-Reply-To: <152-1370546945.20140817160106@ahsoftware.net> References: <152-1370546945.20140817160106@ahsoftware.net> Message-ID: <53F13549.1010900@fourthworld.com> Mark Wieder wrote: > ...and indeed LC 7.0-dp8 does the right thing natively with > diacriticals in file/folder names without having to do any unicode > transliterations. Thanks for confirming that, Mark. One more down. Now I can focus on figuring out why font sizes seem inappropriately large on Linux for layouts that look pretty consistent on Mac and Win (are you seeing that?).... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From coiin at verizon.net Sun Aug 17 19:07:46 2014 From: coiin at verizon.net (Colin Holgate) Date: Sun, 17 Aug 2014 19:07:46 -0400 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> Message-ID: In answer to an unrelated question I was looking at this earlier today: http://www.belkin.com/us/p/P-F7C027/ With something like that you ought to be able to remotely turn on the power to the amplifier, and play the appropriate sound from the same device that told the amplifier to turn on. And yes, it could be a LiveCode Android app, running on the cheapest Android capable of playing audio and running apps. There would need to be a network, and I?m unclear on what address you would send the signal to (to turn on the WeMo), but it feels like it would be easy to do. Craig might have some useful opinions on this. He?s done more stack controlled hardware than all other people on earth combined. From coiin at verizon.net Sun Aug 17 19:17:29 2014 From: coiin at verizon.net (Colin Holgate) Date: Sun, 17 Aug 2014 19:17:29 -0400 Subject: The Road Map as it now is . . . . . In-Reply-To: <53F1288B.4000701@fourthworld.com> References: <6A759F75-8433-4DD1-9DF0-1A9D8A01650C@verizon.net> <53F1288B.4000701@fourthworld.com> Message-ID: The point made earlier about free apps that are to run on specifically Android, is a valid, and RunRev should continue to work on Android support. In your reply I think you also indirectly argued that LiveCode should support Windows 8 devices, which is a good idea too. There?s yet another complication with devices like the Samsung Galaxy Tab 3, which can run Android apps, but in an emulated mode (it uses an Intel processor). So, LiveCode should also publish to Intel based Android devices. In the Adobe AIR world they recently started to do this, where you can specifically target Intel devices. Here?s a very good model of supporting platforms; Unity. Unbelievably, these are the platforms Unity supports; Web Player, Mac, Windows, Unix standalones iOS Android Blackberry Xbox 360 Xbox One PS3 PS Vita PS4 Playstation Mobile Windows Store Windows Phone 8 I feel sure that they support Mac App Store. They certainly support Steam. So, LiveCode, and other tools, have some way to go before they?re the best app for supporting multiple platforms! From ambassador at fourthworld.com Sun Aug 17 19:34:15 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 17 Aug 2014 16:34:15 -0700 Subject: The Road Map as it now is . . . . . In-Reply-To: References: Message-ID: <53F13BF7.8090800@fourthworld.com> Colin Holgate wrote: > The point made earlier about free apps that are to run on > specifically Android, is a valid, and RunRev should continue to > work on Android support. In your reply I think you also indirectly > argued that LiveCode should support Windows 8 devices, which is a > good idea too. Maybe I seemed cleverer than I really am, since as far as I intended I was just writing about the two OSes RunRev currently advertises support for. If we were seeing a majority of major apps deploying to Win 8/ARM and reporting making roughly equal revenue (if via different means) then we'd be fools not to want to follow them. And maybe my reading is too limited, but I'm just not seeing that. Maybe down the road (I have a lot of faith that Nadella will outperform Ballmer), but at the moment I'm not seeing as much adoption anywhere within an order of magnitude of the other two mobile OSes RunRev already supports. > There?s yet another complication with devices like the Samsung Galaxy > Tab 3, which can run Android apps, but in an emulated mode (it uses > an Intel processor). So, LiveCode should also publish to Intel based > Android devices. In the Adobe AIR world they recently started to do > this, where you can specifically target Intel devices. Given that Android is a VM, what exactly is required by Adobe to run on different CPU architectures? How does Evernote handle this, or Angry Birds, or G+, or Facebook? If all those apps are there and LiveCode isn't, you make a good case: once we get feature parity among the two OSes that comprise 96% of all mobile unit sales, LiveCode might indeed do well to add other platforms to the mix. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From coiin at verizon.net Sun Aug 17 19:41:27 2014 From: coiin at verizon.net (Colin Holgate) Date: Sun, 17 Aug 2014 19:41:27 -0400 Subject: The Road Map as it now is . . . . . In-Reply-To: <53F13BF7.8090800@fourthworld.com> References: <53F13BF7.8090800@fourthworld.com> Message-ID: <58673E27-D172-4F44-BCC1-F9E1E4924B89@verizon.net> With the Intel Android devices you have a choice of either living with the emulated performance, which is what we?ve done so far, or you have to use a tool that can publish to Intel. Those people you cite have more budget than we do, and may well have used tools that can publish to Intel. I know Adobe AIR best, and there the compiler creates native ARMv7 code. For supporting Intel devise the processors would presumably be making x86 native code. On Aug 17, 2014, at 7:34 PM, Richard Gaskin wrote: > >Given that Android is a VM, what exactly is required by Adobe to run on different CPU architectures? How does Evernote handle this, or Angry Birds, or G+, or Facebook? From ambassador at fourthworld.com Sun Aug 17 20:06:04 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 17 Aug 2014 17:06:04 -0700 Subject: The Road Map as it now is . . . . . In-Reply-To: <58673E27-D172-4F44-BCC1-F9E1E4924B89@verizon.net> References: <58673E27-D172-4F44-BCC1-F9E1E4924B89@verizon.net> Message-ID: <53F1436C.10204@fourthworld.com> Colin Holgate wrote: > With the Intel Android devices you have a choice of either living > with the emulated performance, which is what we?ve done so far, or > you have to use a tool that can publish to Intel. Those people you > cite have more budget than we do, and may well have used tools that > can publish to Intel. > > I know Adobe AIR best, and there the compiler creates native ARMv7 > code. For supporting Intel devise the processors would presumably be > making x86 native code. Once the platforms LiveCode is currently committed to supporting are more satisfyingly in parity, we'll also have more data on market share to evaluate the desirability of pursuing Win 8/ARM or Android/Intel. But the bigger question lurking on the horizon is: What happens if Intel is able to actually pull off what they're promising with their unprecedented 14nm process? Their roadmap has 10nm by 2016, 7nm by 2017, and 5nm by 2019. Imagine a chip beyond the full Core i Broadwell instruction set in a device that takes less power than the mobile phones we have today. At that point everything we know about form factors and the relationship between form factors and capabilities goes out the window. Sure, they're pushing the bounds of physics, but even 14nm is a game-changer. Heck, just imagine if an OEM used a 64-bit chip in a way that actually makes use of 64-bit addresses, shipping a device with more than 4GB RAM. It might be (and it might not) that 10 years from now we look back and see ARM as a momentary workaround for a lithography bottleneck, something we did for a few years before everyone went back to compiling for x86. Add to the mix flexible screens that are nearing productionability, and the most certain thing I could say is that the future of computing is uncertain. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Sun Aug 17 21:06:14 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 17 Aug 2014 21:06:14 -0400 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> Message-ID: you mean something like this? http://goo.gl/NhJTkp On Sun, Aug 17, 2014 at 7:07 PM, Colin Holgate wrote: > In answer to an unrelated question I was looking at this earlier today: > > http://www.belkin.com/us/p/P-F7C027/ > > With something like that you ought to be able to remotely turn on the > power to the amplifier, and play the appropriate sound from the same device > that told the amplifier to turn on. And yes, it could be a LiveCode Android > app, running on the cheapest Android capable of playing audio and running > apps. There would need to be a network, and I?m unclear on what address you > would send the signal to (to turn on the WeMo), but it feels like it would > be easy to do. > > Craig might have some useful opinions on this. He?s done more stack > controlled hardware than all other people on earth combined. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From dunbarx at aol.com Sun Aug 17 21:15:47 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 17 Aug 2014 21:15:47 -0400 (EDT) Subject: Church bell app? In-Reply-To: References: Message-ID: <8D18899139A5050-16EC-1E2FB@webmail-d230.sysops.aol.com> I have done much more than this with a gadget I now and then mention. Bonig und Kallenbach "Service USB Plus. Fun and simple. A few hundred dollars for the hardware, a few hours of joy for the software. I can kibitz if you want, but this is easy fun stuff. -----Original Message----- From: Dr. Hawkins To: How to use LiveCode Sent: Sun, Aug 17, 2014 5:06 pm Subject: Church bell app? I just about choked over the price: my church is gearing up to pay $6,500 for a church bell system (and that's because we *already* have the speakers from the old system). I'm scratching my head to figure out why this isn't a matter of a near trivial app on a dedicated ipod and an amplifier. THe hardest part would be turning an amplifier on . . . Does anyone know of such a thing, or an open source project for one? All it really needs to do is send a signal to turn on an amplifier and play sound on schedule, be able to choose the sounds to play on the schedules, and be able to play tunes on command (Eastern Catholic & Orthodox play the bells during the Anaphora [Consecration]). Does anyone know about the existence of such a thing, or how much one would cost to commission? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sun Aug 17 21:16:39 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 17 Aug 2014 21:16:39 -0400 Subject: The Road Map as it now is . . . . . In-Reply-To: <53F1436C.10204@fourthworld.com> References: <58673E27-D172-4F44-BCC1-F9E1E4924B89@verizon.net> <53F1436C.10204@fourthworld.com> Message-ID: More platforms fully supported is far better for the ethos and reputation of the platform, and it makes my life as a developer, trying to convince corporate users to let us work for them a TON easier. Yes, sir, we can develop your app for both platforms, and we think you'll like our pricing better because we don't have to completely rewrite it for each one. On Sun, Aug 17, 2014 at 8:06 PM, Richard Gaskin wrote: > Colin Holgate wrote: > > > With the Intel Android devices you have a choice of either living > > with the emulated performance, which is what we?ve done so far, or > > you have to use a tool that can publish to Intel. Those people you > > cite have more budget than we do, and may well have used tools that > > can publish to Intel. > > > > I know Adobe AIR best, and there the compiler creates native ARMv7 > > code. For supporting Intel devise the processors would presumably be > > making x86 native code. > > Once the platforms LiveCode is currently committed to supporting are more > satisfyingly in parity, we'll also have more data on market share to > evaluate the desirability of pursuing Win 8/ARM or Android/Intel. > > But the bigger question lurking on the horizon is: What happens if Intel > is able to actually pull off what they're promising with their > unprecedented 14nm process? > > Their roadmap has 10nm by 2016, 7nm by 2017, and 5nm by 2019. > > Imagine a chip beyond the full Core i Broadwell instruction set in a > device that takes less power than the mobile phones we have today. > > At that point everything we know about form factors and the relationship > between form factors and capabilities goes out the window. > > Sure, they're pushing the bounds of physics, but even 14nm is a > game-changer. > > Heck, just imagine if an OEM used a 64-bit chip in a way that actually > makes use of 64-bit addresses, shipping a device with more than 4GB RAM. > > It might be (and it might not) that 10 years from now we look back and see > ARM as a momentary workaround for a lithography bottleneck, something we > did for a few years before everyone went back to compiling for x86. > > Add to the mix flexible screens that are nearing productionability, and > the most certain thing I could say is that the future of computing is > uncertain. > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From selander at tkf.att.ne.jp Sun Aug 17 22:30:22 2014 From: selander at tkf.att.ne.jp (Tim Selander) Date: Mon, 18 Aug 2014 11:30:22 +0900 Subject: Church bell app? In-Reply-To: <8D18899139A5050-16EC-1E2FB@webmail-d230.sysops.aol.com> References: <8D18899139A5050-16EC-1E2FB@webmail-d230.sysops.aol.com> Message-ID: <98259685-763F-4D07-88DC-3C7ED7526142@tkf.att.ne.jp> The application you need is indeed rather trivial. I used hypercard to completely automate a radio station years and years ago. But if you would like an application ready to go, here is one: http://www.nch.com.au/atime/ Any old laptop will run it, and as far as turning the amp on and off, just leave it on. If there is no load on the amp, it will not draw very much power. My two yen. Tim Selander Tokyo, Japan > On 2014/08/18, at 10:15, dunbarx at aol.com wrote: > > I have done much more than this with a gadget I now and then mention. Bonig und Kallenbach "Service USB Plus. > > > Fun and simple. A few hundred dollars for the hardware, a few hours of joy for the software. > > > I can kibitz if you want, but this is easy fun stuff. > > > > -----Original Message----- > From: Dr. Hawkins > To: How to use LiveCode > Sent: Sun, Aug 17, 2014 5:06 pm > Subject: Church bell app? > > > I just about choked over the price: my church is gearing up to pay $6,500 > for a church bell system (and that's because we *already* have the speakers > from the old system). > > I'm scratching my head to figure out why this isn't a matter of a near > trivial app on a dedicated ipod and an amplifier. THe hardest part would > be turning an amplifier on . . . > > Does anyone know of such a thing, or an open source project for one? > > All it really needs to do is send a signal to turn on an amplifier and play > sound on schedule, be able to choose the sounds to play on the schedules, > and be able to play tunes on command (Eastern Catholic & Orthodox play the > bells during the Anaphora [Consecration]). > > Does anyone know about the existence of such a thing, or how much one would > cost to commission? > > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bogdanoff at me.com Sun Aug 17 22:54:06 2014 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sun, 17 Aug 2014 19:54:06 -0700 Subject: Church bell app? In-Reply-To: <53F11A9B.5010706@gmail.com> References: <53F11A9B.5010706@gmail.com> Message-ID: <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> Obviously, Richmond, if the bell is tolling, it is not tolling for thee. It seems that $6000 will pay the electrical bill for that amplifier to be left turned on for a long time. Peter UCLA On Aug 17, 2014, at 2:11 PM, Richmond wrote: > On 18/08/14 00:06, Dr. Hawkins wrote: >> I just about choked over the price: my church is gearing up to pay $6,500 >> for a church bell system (and that's because we *already* have the speakers >> from the old system). >> >> I'm scratching my head to figure out why this isn't a matter of a near >> trivial app on a dedicated ipod and an amplifier. THe hardest part would >> be turning an amplifier on . . . >> >> Does anyone know of such a thing, or an open source project for one? >> >> All it really needs to do is send a signal to turn on an amplifier and play >> sound on schedule, be able to choose the sounds to play on the schedules, >> and be able to play tunes on command (Eastern Catholic & Orthodox play the >> bells during the Anaphora [Consecration]). >> >> Does anyone know about the existence of such a thing, or how much one would >> cost to commission? >> >> >> > > That's odd; all the churches I know they have somebody who rings the bells. > > By that I mean 'bells' as in 'bells' not fake bells. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Sun Aug 17 23:33:16 2014 From: dan at clearvisiontech.com (Dan Friedman) Date: Sun, 17 Aug 2014 20:33:16 -0700 Subject: revDataFromQuery and DELETE FROM Message-ID: <79037775-ABFB-4564-9178-ADCD9D948D78@clearvisiontech.com> Pete, Thanks for the reply. The entire error string is "revdberr," (with the comma). I tried your suggestion of using revExecuteSQL instead of revDataFromQuery() and I did not get the error. So at least I have a suitable workaround. Thanks for the assist! - Dan > Hi Dan, > What is the text after "revdberr"? > > Strange that the row is being deleted but here's a couple of things that > come to mind. > > You've probably already checked that tTableName and entryID contain valid > information but one other thing to check is if the tablename includes any > special characters or if entryID contains non-numeric data. In the first > case, the table name would have to be enclosed in double quotes and in the > second case, entryID would have to be enclosed in single quotes. > > I'm not sure it really matters but I always use revExecuteSQL when > executing anything other than a SELECT statement. > > Pete >> Hello, >> >> Can anyone tell me why this results in "revdberr"? >> >> put "DELETE FROM" && tTableName && "WHERE entryID=" & entryID into tSQL >> put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData >> >> What's interesting is that the record is being removed from the database. So it's all working server side, just that LiveCode is reporting "revdberr". >> >> Anyone have any ideas? >> >> Thanks in advance, >> Dan From alain_farmer at yahoo.com Mon Aug 18 00:16:56 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Sun, 17 Aug 2014 21:16:56 -0700 Subject: Bug with diacriticals in folder names In-Reply-To: <53F13549.1010900@fourthworld.com> References: <152-1370546945.20140817160106@ahsoftware.net> <53F13549.1010900@fourthworld.com> Message-ID: <1408335416.75245.YahooMailNeo@web126106.mail.ne1.yahoo.com> Yup, thanks for confirming that, Mark. On Sunday, August 17, 2014 7:06:00 PM, Richard Gaskin wrote: Mark Wieder wrote: > ...and indeed LC 7.0-dp8 does the right thing natively with > diacriticals in file/folder names without having to do any unicode > transliterations. Thanks for confirming that, Mark. One more down.? Now I can focus on figuring out why font sizes seem inappropriately large on Linux for layouts that look pretty consistent on Mac and Win (are you seeing that?).... -- ? Richard Gaskin ? Fourth World Systems ? Software Design and Development for the Desktop, Mobile, and the Web ? ____________________________________________________________________ ? Ambassador at FourthWorld.com? ? ? ? ? ? ? ? http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Mon Aug 18 00:40:27 2014 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 18 Aug 2014 00:40:27 -0400 Subject: Church bell app? In-Reply-To: <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> Message-ID: <001801cfba9e$8ada86d0$a08f9470$@net> >It seems that $6000 will pay the electrical bill for that amplifier to be left turned on for a long time. Unless it's a class A amp. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Peter Bogdanoff Sent: Sunday, August 17, 2014 10:54 PM To: How to use LiveCode Subject: Re: Church bell app? Obviously, Richmond, if the bell is tolling, it is not tolling for thee. It seems that $6000 will pay the electrical bill for that amplifier to be left turned on for a long time. Peter UCLA On Aug 17, 2014, at 2:11 PM, Richmond wrote: > On 18/08/14 00:06, Dr. Hawkins wrote: >> I just about choked over the price: my church is gearing up to pay >> $6,500 for a church bell system (and that's because we *already* have >> the speakers from the old system). >> >> I'm scratching my head to figure out why this isn't a matter of a >> near trivial app on a dedicated ipod and an amplifier. THe hardest >> part would be turning an amplifier on . . . >> >> Does anyone know of such a thing, or an open source project for one? >> >> All it really needs to do is send a signal to turn on an amplifier >> and play sound on schedule, be able to choose the sounds to play on >> the schedules, and be able to play tunes on command (Eastern Catholic >> & Orthodox play the bells during the Anaphora [Consecration]). >> >> Does anyone know about the existence of such a thing, or how much one >> would cost to commission? >> >> >> > > That's odd; all the churches I know they have somebody who rings the bells. > > By that I mean 'bells' as in 'bells' not fake bells. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From junryl at gmail.com Mon Aug 18 02:50:17 2014 From: junryl at gmail.com (JunM) Date: Sun, 17 Aug 2014 23:50:17 -0700 (PDT) Subject: RELEASE LiveCode 6.6.2 In-Reply-To: References: Message-ID: <1408344617572-4682119.post@n4.nabble.com> I have problem adding Android SDK (latest ADT bundle) with Livecode 6.6.2. Does anyone experience this problem? How did you solve it? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/RELEASE-LiveCode-6-6-2-tp4680280p4682119.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Mon Aug 18 03:23:47 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 10:23:47 +0300 Subject: Church bell app? In-Reply-To: <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> Message-ID: <53F1AA03.8050302@gmail.com> On 18/08/14 05:54, Peter Bogdanoff wrote: > Obviously, Richmond, if the bell is tolling, it is not tolling for thee. > > It seems that $6000 will pay the electrical bill for that amplifier to be left turned on for a long time. > > Peter > UCLA > > Not at $6000 it isn't! Quasimodo. From john at splash21.com Mon Aug 18 05:43:09 2014 From: john at splash21.com (John Craig) Date: Mon, 18 Aug 2014 10:43:09 +0100 Subject: revDataFromQuery and DELETE FROM In-Reply-To: References: <21EC1FD9-3FB2-4870-BD02-3AC3D677EF98@clearvisiontech.com> Message-ID: <53F1CAAD.2090109@splash21.com> Peter's correct - use revExecuteSQL since no records are returned On 17/08/2014 19:20, Peter Haworth wrote: > Hi Dan, > What is the text after "revdberr"? > > Strange that the row is being deleted but here's a couple of things that > come to mind. > > You've probably already checked that tTableName and entryID contain valid > information but one other thing to check is if the tablename includes any > special characters or if entryID contains non-numeric data. In the first > case, the table name would have to be enclosed in double quotes and in the > second case, entryID would have to be enclosed in single quotes. > > I'm not sure it really matters but I always use revExecuteSQL when > executing anything other than a SELECT statement. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Sun, Aug 17, 2014 at 9:41 AM, Dan Friedman > wrote: > >> Hello, >> >> Can anyone tell me why this results in "revdberr"? >> >> put "DELETE FROM" && tTableName && "WHERE entryID=" & entryID into tSQL >> put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData >> >> What's interesting is that the record is being removed from the database. >> So it's all working server side, just that LiveCode is reporting "revdberr". >> >> Anyone have any ideas? >> >> Thanks in advance, >> Dan >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From admin at FlexibleLearning.com Mon Aug 18 08:11:49 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Mon, 18 Aug 2014 13:11:49 +0100 Subject: Who says LiveCode ain't English! Message-ID: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> For fun, writing a story using LiveCode syntax without a compile error... on mouseUp go to shop if shop is not open then return home get groceries, coffee and milk go back home put groceries into fridge end mouseUp How long can we make it? Hugh Senior FLCo From klaus at major-k.de Mon Aug 18 08:41:54 2014 From: klaus at major-k.de (Klaus major-k) Date: Mon, 18 Aug 2014 14:41:54 +0200 Subject: local notification question Message-ID: Hi friends, I am currently diving into "local notifications" and actually understand the mechanisms how they work when the app is open or closed. I know that I need to store all infos about the scheduled notification like their ID (from the result) etc. Now my question: The message "localnotificationreceived themessage" will only hold the "alertpayload" I supplied with "mobileCreateLocalNotification..." as its parameter. So in case I stored all infos about my scheduled notifications in a SQLite db I would need to do something like this to get all other infos associated this notification: .................... ## Pseudocode: on localnotificationreceived themessage put "SELECT * from notififcations where tPayLoad =" & themessage into tSQL ... Is that correct? Know what I mean? Thanks a lot in advance! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From klaus at major-k.de Mon Aug 18 08:43:21 2014 From: klaus at major-k.de (Klaus major-k) Date: Mon, 18 Aug 2014 14:43:21 +0200 Subject: Who says LiveCode ain't English! In-Reply-To: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> Message-ID: <0C8CB6B0-7DD6-4BD9-BE7F-DB8E2276E49D@major-k.de> Hi Hugh, Am 18.08.2014 um 14:11 schrieb FlexibleLearning.com : > For fun, writing a story using LiveCode syntax without a compile error... > > on mouseUp > go to shop > if shop is not open then return home > get groceries, coffee and milk > go back home > put groceries into fridge > end mouseUp > > How long can we make it? may depend on the size of your fridge! :-D > Hugh Senior > FLCo Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From dunbarx at aol.com Mon Aug 18 08:44:45 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 18 Aug 2014 08:44:45 -0400 (EDT) Subject: Who says LiveCode ain't English! In-Reply-To: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> Message-ID: <8D188F9529344E4-1D28-21C0F@webmail-d294.sysops.aol.com> Why not: set the fun of it to the satisfaction of it -----Original Message----- From: FlexibleLearning.com To: use-livecode Sent: Mon, Aug 18, 2014 8:12 am Subject: Who says LiveCode ain't English! For fun, writing a story using LiveCode syntax without a compile error... on mouseUp go to shop if shop is not open then return home get groceries, coffee and milk go back home put groceries into fridge end mouseUp How long can we make it? Hugh Senior FLCo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Aug 18 09:15:14 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 16:15:14 +0300 Subject: Who says LiveCode ain't English! In-Reply-To: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> Message-ID: <53F1FC62.1010102@gmail.com> On 18/08/14 15:11, FlexibleLearning.com wrote: > For fun, writing a story using LiveCode syntax without a compile error... > > on mouseUp > go to shop > if shop is not open then return home > get groceries, coffee and milk > go back home > put groceries into fridge > end mouseUp > > How long can we make it? > > Hugh Senior > FLCo > > on mouseUp go to shoppingCentre if cheeseShop is not open put "Hard Cheese!" else get cheese put it after fld "shopping bought" end if if wineShop is not open put "Drink water instead!" else get wine put "," && it after fld "shopping bought" end if if fruitShop is not open put "Scurvy tomorrow!" else get fruit put "," && it after fld "shopping bought" end if if meatShop is open put "Hey, I thought you were a vegetarian!" end if if fishShop is open put "Hey, I thought you were a vegetarian!" end if go back home answer "Are your feet up?" with "UP" and "NO" if it = "NO" then put "Put your feet up!" else put "Have a good rest!" end if end mouseUP From sundown at pacifier.com Mon Aug 18 09:57:14 2014 From: sundown at pacifier.com (JB) Date: Mon, 18 Aug 2014 06:57:14 -0700 Subject: ListMagic highlight color Message-ID: <8653D418-0D7F-4D2D-B4E5-3B5C4A7FC680@pacifier.com> I have a handler that when I double click a line it gives me the option to delete the line. I can either cancel or delete the line and update the list. The problem is it changes my blue line selection to gray and I want to have it selected blue again. How do I update the selected line color to the original line color ListMagic installed for lines? John Balgenorth From harrison at all-auctions.com Mon Aug 18 10:11:53 2014 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 18 Aug 2014 10:11:53 -0400 Subject: Church bell app? In-Reply-To: <53F1AA03.8050302@gmail.com> References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> Message-ID: <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> Hi there, The idea that the church bell needs an app is total overkill. Get a simple Radioshack or Home Depot wireless doorbell type device and hook up the output to a relay that turns on the amplifier and the bell tone. (Many times the relay is included, because that?s how it works!) Even ?The Clapper? might be a cheap solution for this at $20. Also look at the http://www.insteon.com There is no way this project should be $6,000 or more. Someone is gouging you with that pricey solution. I?ve done things like this all the time. It?s easy, and you don?t need an app for it. Just my 2 cents. Rick On Aug 18, 2014, at 3:23 AM, Richmond wrote: > On 18/08/14 05:54, Peter Bogdanoff wrote: >> Obviously, Richmond, if the bell is tolling, it is not tolling for thee. >> >> It seems that $6000 will pay the electrical bill for that amplifier to be left turned on for a long time. >> >> Peter >> UCLA >> >> > > Not at $6000 it isn't! > > Quasimodo. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bernd.niggemann at uni-wh.de Mon Aug 18 10:52:19 2014 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 18 Aug 2014 07:52:19 -0700 (PDT) Subject: Who says LiveCode ain't English! In-Reply-To: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> Message-ID: <1408373539388-4682129.post@n4.nabble.com> repeat for each item bottle in my fridge put drink into my glass repeat until my glass is empty drink beer repeat with cheers = toast to you wrap glass skol end repeat end repeat if the bottle of the fridge of me is empty then next repeat if the drunkenness of me is great then play stop end repeat Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Who-says-LiveCode-ain-t-English-tp4682122p4682129.html Sent from the Revolution - User mailing list archive at Nabble.com. From dunbarx at aol.com Mon Aug 18 10:52:54 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 18 Aug 2014 10:52:54 -0400 (EDT) Subject: Church bell app? In-Reply-To: <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> Message-ID: <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> The idea was to be able to start the bell at specific times, perhaps for specific intervals. Certainly an off the shelf electronic timer could do that job. Not as much fun though. In a project I did a couple of years ago in the middle east, an event had to be executed for the five prayer times each day. Or rather a process had to be stopped for those times. These varied at different times of the year, since dawn did not seem to be a constant. Try that with a simple timer. Overkill for the sheer fun of it is a matter of style. Perhaps the OP will give more specifics as to the requirements, to see if an old laptop and LC with an interface gadget or a $50 timer is appropriate. Craig Newman -----Original Message----- From: Rick Harrison To: How to use LiveCode Sent: Mon, Aug 18, 2014 10:12 am Subject: Re: Church bell app? Hi there, The idea that the church bell needs an app is total overkill. Get a simple Radioshack or Home Depot wireless doorbell type device and hook up the output to a relay that turns on the amplifier and the bell tone. (Many times the relay is included, because that?s how it works!) Even ?The Clapper? might be a cheap solution for this at $20. Also look at the http://www.insteon.com There is no way this project should be $6,000 or more. Someone is gouging you with that pricey solution. I?ve done things like this all the time. It?s easy, and you don?t need an app for it. Just my 2 cents. Rick On Aug 18, 2014, at 3:23 AM, Richmond wrote: > On 18/08/14 05:54, Peter Bogdanoff wrote: >> Obviously, Richmond, if the bell is tolling, it is not tolling for thee. >> >> It seems that $6000 will pay the electrical bill for that amplifier to be left turned on for a long time. >> >> Peter >> UCLA >> >> > > Not at $6000 it isn't! > > Quasimodo. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Mon Aug 18 10:58:28 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 18 Aug 2014 10:58:28 -0400 (EDT) Subject: Who says LiveCode ain't English! In-Reply-To: <1408373539388-4682129.post@n4.nabble.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> <1408373539388-4682129.post@n4.nabble.com> Message-ID: <8D1890C0096E74D-1D28-23157@webmail-d294.sysops.aol.com> Now, Bernd, however such a thing makes me smile, it will not compile, as you well know. Are you sure you were not testing this physically, as opposed to in LC, when you wrote it? Craig repeat for each item bottle in my fridge put drink into my glass repeat until my glass is empty drink beer repeat with cheers = toast to you wrap glass skol end repeat end repeat if the bottle of the fridge of me is empty then next repeat if the drunkenness of me is great then play stop end repeat -----Original Message----- From: BNig To: use-revolution Sent: Mon, Aug 18, 2014 10:53 am Subject: Re: Who says LiveCode ain't English! repeat for each item bottle in my fridge put drink into my glass repeat until my glass is empty drink beer repeat with cheers = toast to you wrap glass skol end repeat end repeat if the bottle of the fridge of me is empty then next repeat if the drunkenness of me is great then play stop end repeat Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Who-says-LiveCode-ain-t-English-tp4682122p4682129.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Mon Aug 18 10:58:13 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 18 Aug 2014 10:58:13 -0400 Subject: Church bell app? In-Reply-To: <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> Message-ID: Steampunking is always great. For church bells, part of the problem will be getting the tone, cadence, etc. the way you want it. That was what I was trying to point out with the goal horns app - that you might be able to reproduce the sound of the sort of bells, chimes, etc. that you want. If you go to a garden store, think about all the different windchimes that are sold and how different they are between brands, sizes, materials, coatings, etc. Some manufacturers take great care in tuning their chimes just so, trying to get a certain decay and harmony. The same can be said of bells. On Mon, Aug 18, 2014 at 10:52 AM, wrote: > The idea was to be able to start the bell at specific times, perhaps for > specific intervals. Certainly an off the shelf electronic timer could do > that job. > > > Not as much fun though. In a project I did a couple of years ago in the > middle east, an event had to be executed for the five prayer times each > day. Or rather a process had to be stopped for those times. These varied at > different times of the year, since dawn did not seem to be a constant. Try > that with a simple timer. > > > Overkill for the sheer fun of it is a matter of style. Perhaps the OP will > give more specifics as to the requirements, to see if an old laptop and LC > with an interface gadget or a $50 timer is appropriate. > > > Craig Newman > > > > > > > > -----Original Message----- > From: Rick Harrison > To: How to use LiveCode > Sent: Mon, Aug 18, 2014 10:12 am > Subject: Re: Church bell app? > > > Hi there, > > The idea that the church bell needs an app is total overkill. > > Get a simple Radioshack or Home Depot wireless doorbell > type device and hook up the output to a relay that turns on > the amplifier and the bell tone. (Many times the relay is included, > because that?s how it works!) Even ?The Clapper? might be > a cheap solution for this at $20. > > Also look at the http://www.insteon.com > > There is no way this project should be $6,000 or more. > Someone is gouging you with that pricey solution. > > I?ve done things like this all the time. It?s easy, and you > don?t need an app for it. > > Just my 2 cents. > > Rick > > > On Aug 18, 2014, at 3:23 AM, Richmond wrote: > > > On 18/08/14 05:54, Peter Bogdanoff wrote: > >> Obviously, Richmond, if the bell is tolling, it is not tolling for thee. > >> > >> It seems that $6000 will pay the electrical bill for that amplifier to > be > left turned on for a long time. > >> > >> Peter > >> UCLA > >> > >> > > > > Not at $6000 it isn't! > > > > Quasimodo. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From anmldr at bellsouth.net Mon Aug 18 10:58:52 2014 From: anmldr at bellsouth.net (Linda Miller, DVM) Date: Mon, 18 Aug 2014 09:58:52 -0500 Subject: Displaying HTML pages Message-ID: <7F14AFDC-9659-4C85-9AC4-A83B654893F3@bellsouth.net> I have several ebooks that are composed using HTML/CSS and maybe some JavaScript. I know that I can use HTMLtext to display the pages. For example, on mouseUp put url "http://www.mobgui.com" into temp set the htmlText of field "test" to temp end mouseUp But, this displays only black text on white background without any images or other formatting. As LiveCode exists today (before the HTML5 version is completed), is there a way to display HTML/CSS pages with images from a file that is imported into the app? By imported, I mean files that are a part of the app that can be used when there is no Internet connection. Also, the hyperlinks do not seem to work when the mobgui.com page is being displayed. Will hyperlinks work in LiveCode today? Thanks, Linda From bernd.niggemann at uni-wh.de Mon Aug 18 11:07:06 2014 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 18 Aug 2014 08:07:06 -0700 (PDT) Subject: Who says LiveCode ain't English! In-Reply-To: <8D1890C0096E74D-1D28-23157@webmail-d294.sysops.aol.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> <1408373539388-4682129.post@n4.nabble.com> <8D1890C0096E74D-1D28-23157@webmail-d294.sysops.aol.com> Message-ID: <1408374426212-4682134.post@n4.nabble.com> Hi Craig, >> Now, Bernd, however such a thing makes me smile, it will not compile, as >> you well know I took it straight from the script editor after a compile, did you try to compile it? After all that was the deal. below the complete script that compiled in 6.6.2 --- on mouseUp go to shop if shop is not open then return home get groceries, coffee and milk, butter and beer go back home put groceries into fridge repeat for each item bottle in my fridge put drink into my glass repeat until my glass is empty drink beer repeat with cheers = toast to you wrap glass skol end repeat end repeat if the bottle of the fridge of me is empty then next repeat if the drunkenness of me is great then play stop end repeat end mouseUp ----- -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Who-says-LiveCode-ain-t-English-tp4682122p4682134.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Mon Aug 18 11:09:11 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 18 Aug 2014 17:09:11 +0200 Subject: Displaying HTML pages In-Reply-To: <7F14AFDC-9659-4C85-9AC4-A83B654893F3@bellsouth.net> References: <7F14AFDC-9659-4C85-9AC4-A83B654893F3@bellsouth.net> Message-ID: <53F21717.9060601@economy-x-talk.com> Hi Linda, Actually, if a website is composed of simple HTML 4, the pictures should show up in the field. Perhaps they are hidden by lines with very small lineheights. Try setting the fixedLineHeight to false. Does that help? You could use the revBrowser external to display websites in their own window inside a LiveCode stack. Just search for revBrowser in the LiveCode dictionary and start reading to find out how to implement this. Hyperlinks in fields don't work by themselves. You could handle clicks on linkes with a linkedClick handler, e.g. on linkClicked theLink launch URL theLink end linkClicked -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/18/2014 16:58, Linda Miller, DVM wrote: > I have several ebooks that are composed using HTML/CSS and maybe some JavaScript. I know that I can use HTMLtext to display the pages. > > For example, > on mouseUp > put url "http://www.mobgui.com" into temp > set the htmlText of field "test" to temp > end mouseUp > > But, this displays only black text on white background without any images or other formatting. As LiveCode exists today (before the HTML5 version is completed), is there a way to display HTML/CSS pages with images from a file that is imported into the app? By imported, I mean files that are a part of the app that can be used when there is no Internet connection. > > Also, the hyperlinks do not seem to work when the mobgui.com page is being displayed. Will hyperlinks work in LiveCode today? > > Thanks, > Linda > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Mon Aug 18 11:46:38 2014 From: sundown at pacifier.com (JB) Date: Mon, 18 Aug 2014 08:46:38 -0700 Subject: ListMagic highlight color In-Reply-To: <8653D418-0D7F-4D2D-B4E5-3B5C4A7FC680@pacifier.com> References: <8653D418-0D7F-4D2D-B4E5-3B5C4A7FC680@pacifier.com> Message-ID: The problem comes from using the answer dialog within the script. After using it the field will not select the proper color on the lines. A simple fix is to not use the answer dialog from within the list magic field. John Balgenorth On Aug 18, 2014, at 6:57 AM, JB wrote: > I have a handler that when I double click a line > it gives me the option to delete the line. I can > either cancel or delete the line and update the > list. > > The problem is it changes my blue line selection > to gray and I want to have it selected blue again. > How do I update the selected line color to the > original line color ListMagic installed for lines? > > John Balgenorth > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Mon Aug 18 12:03:06 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 18 Aug 2014 12:03:06 -0400 (EDT) Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> Message-ID: <8D1891507BD362D-1D28-2389C@webmail-d294.sysops.aol.com> So then LC may be the solution, since it can play any sort of sound. That it can also play those sounds when you want it to is just lagniappe. Craig -----Original Message----- From: Mike Kerner To: How to use LiveCode Sent: Mon, Aug 18, 2014 10:59 am Subject: Re: Church bell app? Steampunking is always great. For church bells, part of the problem will be getting the tone, cadence, etc. the way you want it. That was what I was trying to point out with the goal horns app - that you might be able to reproduce the sound of the sort of bells, chimes, etc. that you want. If you go to a garden store, think about all the different windchimes that are sold and how different they are between brands, sizes, materials, coatings, etc. Some manufacturers take great care in tuning their chimes just so, trying to get a certain decay and harmony. The same can be said of bells. On Mon, Aug 18, 2014 at 10:52 AM, wrote: > The idea was to be able to start the bell at specific times, perhaps for > specific intervals. Certainly an off the shelf electronic timer could do > that job. > > > Not as much fun though. In a project I did a couple of years ago in the > middle east, an event had to be executed for the five prayer times each > day. Or rather a process had to be stopped for those times. These varied at > different times of the year, since dawn did not seem to be a constant. Try > that with a simple timer. > > > Overkill for the sheer fun of it is a matter of style. Perhaps the OP will > give more specifics as to the requirements, to see if an old laptop and LC > with an interface gadget or a $50 timer is appropriate. > > > Craig Newman > > > > > > > > -----Original Message----- > From: Rick Harrison > To: How to use LiveCode > Sent: Mon, Aug 18, 2014 10:12 am > Subject: Re: Church bell app? > > > Hi there, > > The idea that the church bell needs an app is total overkill. > > Get a simple Radioshack or Home Depot wireless doorbell > type device and hook up the output to a relay that turns on > the amplifier and the bell tone. (Many times the relay is included, > because that?s how it works!) Even ?The Clapper? might be > a cheap solution for this at $20. > > Also look at the http://www.insteon.com > > There is no way this project should be $6,000 or more. > Someone is gouging you with that pricey solution. > > I?ve done things like this all the time. It?s easy, and you > don?t need an app for it. > > Just my 2 cents. > > Rick > > > On Aug 18, 2014, at 3:23 AM, Richmond wrote: > > > On 18/08/14 05:54, Peter Bogdanoff wrote: > >> Obviously, Richmond, if the bell is tolling, it is not tolling for thee. > >> > >> It seems that $6000 will pay the electrical bill for that amplifier to > be > left turned on for a long time. > >> > >> Peter > >> UCLA > >> > >> > > > > Not at $6000 it isn't! > > > > Quasimodo. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Mon Aug 18 12:04:28 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 18 Aug 2014 12:04:28 -0400 (EDT) Subject: Who says LiveCode ain't English! In-Reply-To: <1408374426212-4682134.post@n4.nabble.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> <1408373539388-4682129.post@n4.nabble.com> <8D1890C0096E74D-1D28-23157@webmail-d294.sysops.aol.com> <1408374426212-4682134.post@n4.nabble.com> Message-ID: <8D1891538F72377-1D28-238B8@webmail-d294.sysops.aol.com> Bernd. That was not the handler I got. It was; repeat for each item bottle in my fridge put drink into my glass repeat until my glass is empty drink beer repeat with cheers = toast to you wrap glass skol end repeat end repeat if the bottle of the fridge of me is empty then next repeat if the drunkenness of me is great then play stop end repeat -----Original Message----- From: BNig To: use-revolution Sent: Mon, Aug 18, 2014 11:07 am Subject: Re: Who says LiveCode ain't English! Hi Craig, >> Now, Bernd, however such a thing makes me smile, it will not compile, as >> you well know I took it straight from the script editor after a compile, did you try to compile it? After all that was the deal. below the complete script that compiled in 6.6.2 --- on mouseUp go to shop if shop is not open then return home get groceries, coffee and milk, butter and beer go back home put groceries into fridge repeat for each item bottle in my fridge put drink into my glass repeat until my glass is empty drink beer repeat with cheers = toast to you wrap glass skol end repeat end repeat if the bottle of the fridge of me is empty then next repeat if the drunkenness of me is great then play stop end repeat end mouseUp ----- -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Who-says-LiveCode-ain-t-English-tp4682122p4682134.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bernd.niggemann at uni-wh.de Mon Aug 18 12:12:41 2014 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 18 Aug 2014 09:12:41 -0700 (PDT) Subject: Who says LiveCode ain't English! In-Reply-To: <8D1891538F72377-1D28-238B8@webmail-d294.sysops.aol.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> <1408373539388-4682129.post@n4.nabble.com> <8D1890C0096E74D-1D28-23157@webmail-d294.sysops.aol.com> <1408374426212-4682134.post@n4.nabble.com> <8D1891538F72377-1D28-238B8@webmail-d294.sysops.aol.com> Message-ID: <1408378361879-4682139.post@n4.nabble.com> Craig, sorry, it was just a piece of code to add to Hugh's initial handler, he asked "how long can we make it" anyways I was surprised it compiled at all. Kind regards -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Who-says-LiveCode-ain-t-English-tp4682122p4682139.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Mon Aug 18 12:16:10 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 18 Aug 2014 11:16:10 -0500 Subject: Church bell app? In-Reply-To: <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> Message-ID: It also isn't clear whether the bell should be just a single tone or if it needs to play music. The cost of the original proposed system implies there is more to it than just a single bell. On August 18, 2014 9:52:54 AM CDT, dunbarx at aol.com wrote: >The idea was to be able to start the bell at specific times, perhaps >for specific intervals. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Mon Aug 18 12:52:15 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 18 Aug 2014 09:52:15 -0700 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> Message-ID: The big sound system companies have departments that specialize in selling to churches, it's big business. Most of the church systems I've seen are huge overkill so the $6000 price tag doesn't surprise me at all. More often than not, nobody at the church has a clue as to how to use them, except to switch them on and off. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Aug 18, 2014 at 9:16 AM, J. Landman Gay wrote: > It also isn't clear whether the bell should be just a single tone or if it > needs to play music. The cost of the original proposed system implies > there is more to it than just a single bell. > > On August 18, 2014 9:52:54 AM CDT, dunbarx at aol.com wrote: > >The idea was to be able to start the bell at specific times, perhaps > >for specific intervals. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Mon Aug 18 12:54:32 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 18 Aug 2014 09:54:32 -0700 Subject: Who says LiveCode ain't English! In-Reply-To: <8D1891538F72377-1D28-238B8@webmail-d294.sysops.aol.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> <1408373539388-4682129.post@n4.nabble.com> <8D1890C0096E74D-1D28-23157@webmail-d294.sysops.aol.com> <1408374426212-4682134.post@n4.nabble.com> <8D1891538F72377-1D28-238B8@webmail-d294.sysops.aol.com> Message-ID: On Mon, Aug 18, 2014 at 9:04 AM, wrote: > if the drunkenness of me is great then play stop I might suggest the following instead of the above if this me is drunk or SpeechIsImpaired() then play stop Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From ben at runrev.com Mon Aug 18 13:00:52 2014 From: ben at runrev.com (Benjamin Beaumont) Date: Mon, 18 Aug 2014 18:00:52 +0100 Subject: RELEASE: LiveCode 6.7 DP9 Message-ID: Dear List Members. We are pleased to announce the release of LiveCode 6.7 DP9. *Release Focus* 29 bug fixes *Known issues* Multicore rendering disabled in Windows due to multimedia not being thread-safe 16 outstanding reports against 6.7: http://bit.ly/XvgSSw *Release contents* The number of bugs fixed is so large that it no longer makes sense to include a summary in the release email. Instead, please look at the bug fix section of the release notes which can be found here: http://downloads.livecode.com/livecode/6_7_0/LiveCodeNotes-6_7_0_dp_9.pdf *Multicore Rendering* We've updated the way LiveCode renders on all platforms. It now splits your stack up into as many section as there are CPU cores. Each core renders portion of your stack which in theory improves rendering performance by the number of core available. In practice this isn't the case as there are overheads associated with this approach. The performance improvements will be felt in fairly specific circumstances at the moment as there are a number limitations in the engine we're still trying to remove. However, as this is the final feature to go into LiveCode 6.7 we felt it important to get it into testing early. We've seen a number of glitches on Retina Mac but we would appreciate your help in identifying the edge cases on other platforms. It is also possible that some instability will have been introduced. LiveCode was not written with multicore processing in mind so we have been updating the engine where necessary to be "thread-safe". If you app crashes please try and reproduce the crash and report it to us as it will lead us to the parts of the engine that need a similar update. We think we've caught the majority but once again, there may be some edge cases that your project exercises that our test system does not cover. In the next few builds as we mature the feature we'll release a few simple sample stack that exercise the cores available on your machine. *Getting this release* http://downloads.livecode.com/livecode/ *Feeding Back* Please report any issues at quality.runrev.com. Where possible, please check the list of outstanding bugs at the link above to ensure you are not duplicating a report. Having said that, our team is here to help so we?ll mark duplicate bugs as they come in. Warm regards, The LiveCode Team From richmondmathewson at gmail.com Mon Aug 18 13:21:43 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 20:21:43 +0300 Subject: RELEASE: LiveCode 6.7 DP9 In-Reply-To: References: Message-ID: <53F23627.9010108@gmail.com> Why, Oh Why? Tell me why! Do all Livecode versions open with the revTools stack in the centre of the screen? Richmond. From scott at tactilemedia.com Mon Aug 18 13:26:20 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 18 Aug 2014 10:26:20 -0700 Subject: Displaying HTML pages In-Reply-To: <7F14AFDC-9659-4C85-9AC4-A83B654893F3@bellsouth.net> References: <7F14AFDC-9659-4C85-9AC4-A83B654893F3@bellsouth.net> Message-ID: If your eBooks are heavily formatted and you need to keep the formatting intact, htmlText won't be a good solution because the formatting won't come across. One option could be to write your eBook files to a local folder (Documents, for example) and load them in the browser control. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/18/14 7:58 AM, "Linda Miller, DVM" wrote: >I have several ebooks that are composed using HTML/CSS and maybe some >JavaScript. I know that I can use HTMLtext to display the pages. > >For example, >on mouseUp > put url "http://www.mobgui.com" into temp > set the htmlText of field "test" to temp >end mouseUp > >But, this displays only black text on white background without any images >or other formatting. As LiveCode exists today (before the HTML5 version >is completed), is there a way to display HTML/CSS pages with images from >a file that is imported into the app? By imported, I mean files that are >a part of the app that can be used when there is no Internet connection. > >Also, the hyperlinks do not seem to work when the mobgui.com page is >being displayed. Will hyperlinks work in LiveCode today? > >Thanks, >Linda > > > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From walter.h.brown at gmail.com Mon Aug 18 13:29:02 2014 From: walter.h.brown at gmail.com (Walt Brown) Date: Mon, 18 Aug 2014 13:29:02 -0400 Subject: Who says LiveCode ain't English! In-Reply-To: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> Message-ID: *if* the hunger of me is great *then* *ask* omelet with cheese, ham and potatoes *else* *if* the hunger of me is small *then* *get* pretzel box On Mon, Aug 18, 2014 at 8:11 AM, FlexibleLearning.com < admin at flexiblelearning.com> wrote: > For fun, writing a story using LiveCode syntax without a compile error... > > on mouseUp > go to shop > if shop is not open then return home > get groceries, coffee and milk > go back home > put groceries into fridge > end mouseUp > > How long can we make it? > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Mon Aug 18 13:32:52 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 20:32:52 +0300 Subject: autoload a plugin? Message-ID: <53F238C4.3080608@gmail.com> Let us suppose that I have just authored a wee stack to allow Livecoders who are fed up with having to fool around dragging the revTools stack out of the centre of the desktop. Now I am going to put that wee stack in the plugins folder. Now, when I start up Livecode I want that stack to be loaded and visible at the same time as the revMenubar and the revTools stack. ???? Richmond. From richmondmathewson at gmail.com Mon Aug 18 13:57:34 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 20:57:34 +0300 Subject: autoload a plugin? In-Reply-To: <53F238C4.3080608@gmail.com> References: <53F238C4.3080608@gmail.com> Message-ID: <53F23E8E.7030108@gmail.com> On 18/08/14 20:32, Richmond wrote: > Let us suppose that I have just authored a wee stack to allow Livecoders > who are fed up with having to fool around dragging the revTools stack out > of the centre of the desktop. > > Now I am going to put that wee stack in the plugins folder. > > Now, when I start up Livecode I want that stack to be loaded and visible > at the same time as the revMenubar and the revTools stack. > > ???? > > Richmond. Joy: http://www.troz.net/rev/index.irev?category=Plugin#stacks From richmondmathewson at gmail.com Mon Aug 18 13:58:35 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 20:58:35 +0300 Subject: The Road Map as it now is . . . . . In-Reply-To: <53EFAD4B.4040904@gmail.com> References: <53EFA953.2090402@gmail.com> <53EFAD4B.4040904@gmail.com> Message-ID: <53F23ECB.9090908@gmail.com> On 16/08/14 22:13, Richmond wrote: > AND . . . > > Open Language. > > This seems very awkward. > > Let us just suppose Fred Flintstone writes an extension to the > Livecode language (what is it called again?) > that is very clever . . . > > 1. Does he, somehow, infect all subsequent versions of Livecode with > his extension? > > 2. Does he make his extension extension available as a sort of patch > that other Livecode users can > choose to apply or not? > > 3. How does this get into the Dictionary? > > 4. Does it remain a sort of "in" secret between Fred and his chosen > sub-cult? > > Barney Rubble. What chance an answer to this? Richmond. From alain_farmer at yahoo.com Mon Aug 18 14:02:02 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Mon, 18 Aug 2014 11:02:02 -0700 Subject: Bug with diacriticals in folder names In-Reply-To: <1408335416.75245.YahooMailNeo@web126106.mail.ne1.yahoo.com> References: <152-1370546945.20140817160106@ahsoftware.net> <53F13549.1010900@fourthworld.com> <1408335416.75245.YahooMailNeo@web126106.mail.ne1.yahoo.com> Message-ID: <1408384922.81712.YahooMailNeo@web126101.mail.ne1.yahoo.com> Hey! I found an easy workaround to the problem of diacriticals in folder names. I got the list of paths by recursively getting all of the folders, including the diacritical ones I had trouble with. The folders function lists these folders, but "there is a folder" reported that diacritical ones did not exist. In LiveCode 6.6.2 [script editor], LC reports that there is no such folder when the path contains diacritical(s). But when I store the paths into a file, encoded as UTF8, then read the file, ALL of the folders with diacriticals EXIST!Thank you, Mark, for pointing out that it is a unicode issue. Then I got lucky as I persevered. How gratifying! :-)) On Monday, August 18, 2014 12:16:57 AM, Alain Farmer wrote: Yup, thanks for confirming that, Mark. On Sunday, August 17, 2014 7:06:00 PM, Richard Gaskin wrote: Mark Wieder wrote: > ...and indeed LC 7.0-dp8 does the right thing natively with > diacriticals in file/folder names without having to do any unicode > transliterations. Thanks for confirming that, Mark. One more down.? Now I can focus on figuring out why font sizes seem inappropriately large on Linux for layouts that look pretty consistent on Mac and Win (are you seeing that?).... -- ? Richard Gaskin ? Fourth World Systems ? Software Design and Development for the Desktop, Mobile, and the Web ? ____________________________________________________________________ ? Ambassador at FourthWorld.com? ? ? ? ? ? ? ? http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From charles at buchwald.ca Mon Aug 18 14:16:01 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Mon, 18 Aug 2014 13:16:01 -0500 Subject: autoload a plugin? In-Reply-To: <53F238C4.3080608@gmail.com> References: <53F238C4.3080608@gmail.com> Message-ID: <40B980F8-9EE3-4EEC-BC2D-0FE9097FE5FE@buchwald.ca> Hi Richmond, I'd like to add this in to my (free) lcMover plugin. If you'll share your "wee stack" I could add it in and put your name in the credits... FYI, it already has a function to reposition any IDE windows that have been placed off screen. For example if you happened to be working on 2 monitors the last time you were in LC, and now you are on one monitor, and the dictionary or script editor are off screen... - Charles On 18 Aug 2014, at 12:32 PM, Richmond wrote: > Let us suppose that I have just authored a wee stack to allow Livecoders > who are fed up with having to fool around dragging the revTools stack out > of the centre of the desktop. > > Now I am going to put that wee stack in the plugins folder. > > Now, when I start up Livecode I want that stack to be loaded and visible > at the same time as the revMenubar and the revTools stack. > > ???? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From dunbarx at aol.com Mon Aug 18 14:17:58 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 18 Aug 2014 14:17:58 -0400 (EDT) Subject: RELEASE: LiveCode 6.7 DP9 In-Reply-To: <53F23627.9010108@gmail.com> References: <53F23627.9010108@gmail.com> Message-ID: <8D18927DF7BA923-1D28-24BA5@webmail-d294.sysops.aol.com> Richmond. My revTools stack opens in the last place I left it. For me, that is always in the topLeft of the screen. Never think about it. I would be miffed as well if it opened in the center each new session. Is that what you are seeing? Craig -----Original Message----- From: Richmond To: How to use LiveCode Sent: Mon, Aug 18, 2014 1:22 pm Subject: Re: RELEASE: LiveCode 6.7 DP9 Why, Oh Why? Tell me why! Do all Livecode versions open with the revTools stack in the centre of the screen? Richmond. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From charles at buchwald.ca Mon Aug 18 14:18:03 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Mon, 18 Aug 2014 13:18:03 -0500 Subject: The Road Map as it now is . . . . . In-Reply-To: <53F23ECB.9090908@gmail.com> References: <53EFA953.2090402@gmail.com> <53EFAD4B.4040904@gmail.com> <53F23ECB.9090908@gmail.com> Message-ID: I was under the impression that the Open Language initiative is to follow the usual open source model, and have some kind of gatekeeper who includes new, useful, user-contributed additions to the latest release. I could be wrong about that, though. - Charles On 18 Aug 2014, at 12:58 PM, Richmond wrote: > On 16/08/14 22:13, Richmond wrote: >> AND . . . >> >> Open Language. >> >> This seems very awkward. >> >> Let us just suppose Fred Flintstone writes an extension to the Livecode language (what is it called again?) >> that is very clever . . . >> >> 1. Does he, somehow, infect all subsequent versions of Livecode with his extension? >> >> 2. Does he make his extension extension available as a sort of patch that other Livecode users can >> choose to apply or not? >> >> 3. How does this get into the Dictionary? >> >> 4. Does it remain a sort of "in" secret between Fred and his chosen sub-cult? >> >> Barney Rubble. > > What chance an answer to this? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Aug 18 14:18:31 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 21:18:31 +0300 Subject: How does one put 'rev' at the start of the name of a stack? Message-ID: <53F24377.50109@gmail.com> This: "Using rev in the first three characters of a stack name is reserved for use by the Revolution development environment and advanced users creating Plug-ins. If you use these characters, your stack may not behave as expected." certainly does NOT help. I am pretending for a short period of time that I am an advanced user, and am currently an effed-off user (whether advanced or not) insofar as after that merry message I am prevented from putting 'rev' in front of the name of my would-be plug-in. Richmond. Oh, and while I'm here: What is "the Revolution development environment"? I thought I was the one who went Back to the Future and not "the Livecode development environment." Mumblings . . . From richmondmathewson at gmail.com Mon Aug 18 14:20:37 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 21:20:37 +0300 Subject: The Road Map as it now is . . . . . In-Reply-To: References: <53EFA953.2090402@gmail.com> <53EFAD4B.4040904@gmail.com> <53F23ECB.9090908@gmail.com> Message-ID: <53F243F5.3040803@gmail.com> On 18/08/14 21:18, Charles E Buchwald wrote: > I was under the impression that the Open Language initiative is to follow the usual open source model, and have some kind of gatekeeper who includes new, useful, user-contributed additions to the latest release. I could be wrong about that, though. > - Charles Um; Juvenal asked the inevitable question at least 2000 years ago: "/*Quis custodiet ipsos custodes?" */ > > On 18 Aug 2014, at 12:58 PM, Richmond wrote: > >> On 16/08/14 22:13, Richmond wrote: >>> AND . . . >>> >>> Open Language. >>> >>> This seems very awkward. >>> >>> Let us just suppose Fred Flintstone writes an extension to the Livecode language (what is it called again?) >>> that is very clever . . . >>> >>> 1. Does he, somehow, infect all subsequent versions of Livecode with his extension? >>> >>> 2. Does he make his extension extension available as a sort of patch that other Livecode users can >>> choose to apply or not? >>> >>> 3. How does this get into the Dictionary? >>> >>> 4. Does it remain a sort of "in" secret between Fred and his chosen sub-cult? >>> >>> Barney Rubble. >> What chance an answer to this? >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Aug 18 14:22:21 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 21:22:21 +0300 Subject: RELEASE: LiveCode 6.7 DP9 In-Reply-To: <8D18927DF7BA923-1D28-24BA5@webmail-d294.sysops.aol.com> References: <53F23627.9010108@gmail.com> <8D18927DF7BA923-1D28-24BA5@webmail-d294.sysops.aol.com> Message-ID: <53F2445D.10804@gmail.com> On 18/08/14 21:17, dunbarx at aol.com wrote: > Richmond. > > > My revTools stack opens in the last place I left it. For me, that is always in the topLeft of the screen. Never think about it. I would be miffed as well if it opened in the center each new session. > > > Is that what you are seeing? Of course it is; otherwise I would not be banging on about it :) Richmond. > > Craig > > From richmondmathewson at gmail.com Mon Aug 18 14:26:59 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 21:26:59 +0300 Subject: How does one put 'rev' at the start of the name of a stack? In-Reply-To: <53F24377.50109@gmail.com> References: <53F24377.50109@gmail.com> Message-ID: <53F24573.5070706@gmail.com> On 18/08/14 21:18, Richmond wrote: > This: > > "Using rev in the first three characters of a stack name > is reserved for use by the Revolution development > environment and advanced users creating Plug-ins. If > you use these characters, your stack may not behave > as expected." > > certainly does NOT help. > > I am pretending for a short period of time that I am > an advanced user, and am currently an effed-off user > (whether advanced or not) insofar as after that merry > message I am prevented from putting 'rev' in front of > the name of my would-be plug-in. > I am a bit slow on the uptake: I typed this into my Message Box: set the name of stack "ToolSpace" to "revToolSpace" Hit RETURN, and LO; the Heavens opened . . . Well, they didn't really, but I was able to put 'rev' at the start of the stack name which, quite frankly, felt heavenly for a few short seconds :) Richmond. From paul at researchware.com Mon Aug 18 14:38:12 2014 From: paul at researchware.com (Paul Dupuis) Date: Mon, 18 Aug 2014 14:38:12 -0400 Subject: The Road Map as it now is . . . . . In-Reply-To: <53F23ECB.9090908@gmail.com> References: <53EFA953.2090402@gmail.com> <53EFAD4B.4040904@gmail.com> <53F23ECB.9090908@gmail.com> Message-ID: <53F24814.8080002@researchware.com> On 8/18/2014 1:58 PM, Richmond wrote: > On 16/08/14 22:13, Richmond wrote: >> AND . . . >> >> Open Language. >> >> This seems very awkward. >> >> Let us just suppose Fred Flintstone writes an extension to the >> Livecode language (what is it called again?) >> that is very clever . . . >> >> 1. Does he, somehow, infect all subsequent versions of Livecode with >> his extension? No, not unless RunRev makes arrangements to incorporate Fred's extension into subsequent releases of LiveCode. >> >> 2. Does he make his extension extension available as a sort of patch >> that other Livecode users can >> choose to apply or not? Yes, just like Add-Ons in the RunRev store or 3rd party extensions for LiveCode. Open Language will allow a add-on/stack library/external/whatever developer for LiveCode to have their widget use similar natural language syntax that (most) of LiveCode uses. >> >> 3. How does this get into the Dictionary? If I recall past public messaging on Open Language from RunRev correctly, when you add-on/extension/whatever contains an open language syntax defintion, their intent is to dynamically add it to the dictionary when the add-on/extension/whatever is loaded. >> >> 4. Does it remain a sort of "in" secret between Fred and his chosen >> sub-cult? It is only Fred's secret if he (a) wants it to be or (b) fails to communicate his add-on/extension's availability or (c) Fred tells everyone and no one sees, reads, or remembers his posts. Just as with any 3rd party add-on, library, or extension to LiveCode. >> >> Barney Rubble. > > What chance an answer to this? 100% > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mkoob at rogers.com Mon Aug 18 14:38:39 2014 From: mkoob at rogers.com (Martin Koob) Date: Mon, 18 Aug 2014 11:38:39 -0700 (PDT) Subject: Who says LiveCode ain't English! In-Reply-To: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> Message-ID: <1408387119924-4682159.post@n4.nabble.com> Why is the mouse up? Is it the mouse that did the shopping? Does 'end' mean the up mouse went down for a nap after a long shopping trip? Martin -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Who-says-LiveCode-ain-t-English-tp4682122p4682159.html Sent from the Revolution - User mailing list archive at Nabble.com. From th.douez at gmail.com Mon Aug 18 14:49:02 2014 From: th.douez at gmail.com (Thierry Douez) Date: Mon, 18 Aug 2014 20:49:02 +0200 Subject: open file tFile for text ? Message-ID: Hi, Dictionary -> write to file There is a sample script which generates an error: So, what does mean: open file tFile for text ? Thierry From m.schonewille at economy-x-talk.com Mon Aug 18 15:00:13 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 18 Aug 2014 21:00:13 +0200 Subject: open file tFile for text ? In-Reply-To: References: Message-ID: <53F24D3D.5050708@economy-x-talk.com> Hi Thierry, If you use the binary or text clause, you also need to use one of the parameters update, read, write or append, for example open file myFile for text write open file myFile for binary append -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/18/2014 20:49, Thierry Douez wrote: > Hi, > > Dictionary -> write to file > > There is a sample script which generates an error: > > So, what does mean: > > open file tFile for text ? > > Thierry > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Mon Aug 18 15:03:23 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 22:03:23 +0300 Subject: User sets plug-ins folder and then gets angry. Message-ID: <53F24DFB.5070005@gmail.com> I opened the Preference of Livecode and set the path for my Plug-ins folder via "Files & Memory" to: /home/richmond/RunRev_plugINs Then I Quit Livecode and put 2 plugins into that folder: on restarting Livecode they did NOT show up in the /Development/Plugins Menu . . . Where did I go wrong? Richmond. From richmondmathewson at gmail.com Mon Aug 18 15:06:57 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 18 Aug 2014 22:06:57 +0300 Subject: [OT] Virtual Desktops for Windows In-Reply-To: <1408292256523-4682084.post@n4.nabble.com> References: <53EFAEAB.2000905@gmail.com> <1408292256523-4682084.post@n4.nabble.com> Message-ID: <53F24ED1.6070906@gmail.com> On 17/08/14 19:17, tbodine wrote: > Hi, > > I like the idea of the virtual desktops, but have a concern: > > If you had your LiveCode workspace in a virtual desktop (on Windows), does > this cause the locations and rectangles of controls and windows to be > reported with coordinates from the virtual location? Or do programs like > virtuawin adjust for that when you make a virtual desktop the active one? > > Thanks, > Tom > > Download them and try them out :) Richmond. From sritcp at gmail.com Mon Aug 18 16:22:49 2014 From: sritcp at gmail.com (Sri) Date: Mon, 18 Aug 2014 13:22:49 -0700 (PDT) Subject: Who says LiveCode ain't English! In-Reply-To: <1408373539388-4682129.post@n4.nabble.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> <1408373539388-4682129.post@n4.nabble.com> Message-ID: <1408393369345-4682164.post@n4.nabble.com> Add to Bernd's code: if morning contains headache then call doctor else order beer end if -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Who-says-LiveCode-ain-t-English-tp4682122p4682164.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Mon Aug 18 16:25:48 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 18 Aug 2014 13:25:48 -0700 Subject: User sets plug-ins folder and then gets angry. In-Reply-To: <53F24DFB.5070005@gmail.com> References: <53F24DFB.5070005@gmail.com> Message-ID: Hi Richmond, The folder you name is the one that contains the plugins folder, not the plugins folder itself so in your case /home/richmond. But that's also where your preferences are stored so you could have left it to what it was set to before you changed it. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Aug 18, 2014 at 12:03 PM, Richmond wrote: > I opened the Preference of Livecode and set the path > for my Plug-ins folder via "Files & Memory" to: > > /home/richmond/RunRev_plugINs > > Then I Quit Livecode and put 2 plugins into that folder: > > on restarting Livecode they did NOT show up in the > > /Development/Plugins Menu . . . > > Where did I go wrong? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Mon Aug 18 16:48:31 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 18 Aug 2014 20:48:31 +0000 (UTC) Subject: autoload a plugin? References: <53F238C4.3080608@gmail.com> Message-ID: Richmond writes: > Now, when I start up Livecode I want that stack to be loaded and visible > at the same time as the revMenubar and the revTools stack. Open Plugin Settings from the Development | Plugins menu Select from the list Select "Open plugin when" : "LiveCode starts up -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Mon Aug 18 17:28:08 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 18 Aug 2014 16:28:08 -0500 Subject: User sets plug-ins folder and then gets angry. In-Reply-To: <53F24DFB.5070005@gmail.com> References: <53F24DFB.5070005@gmail.com> Message-ID: <53F26FE8.6060905@hyperactivesw.com> On 8/18/2014, 2:03 PM, Richmond wrote: > I opened the Preference of Livecode and set the path > for my Plug-ins folder via "Files & Memory" to: > > /home/richmond/RunRev_plugINs > > Then I Quit Livecode and put 2 plugins into that folder: > > on restarting Livecode they did NOT show up in the > > /Development/Plugins Menu . . . > > Where did I go wrong? You're making this too hard. Any plugin that starts with "rev" is intended to be part of the IDE, so typically you wouldn't name your plugins that way unless you want much of the IDE to ignore it. However, I have several that start with "rev" and they do show up in the menu list, so either you didn't set your plugin to be shown in the plugins menu or the path is wrong, or both. The path should be to an enclosing folder, that contains a Plugins folder. Something like this: /home/richmond/LiveCode/ And inside that folder should be another folder named (exactly) "Plugins", which is where your plugins go. If your goal is to load and run the plugin at startup automatically, then all you need to do (regardless of the stack name) is: 1. Open the plugins settings from the bottom of the plugins menu. 2. Find your stack in the popdown button (it needs to be in the right folder already.) 3. In "Open plugins when:" select "LiveCode starts up" 4. If you want it included in the plugins menu, tick "Include in Plugins menu" 5. Select the mode in which to open the stack. You may want it invisible, depending on how you plan to use it. Then if you want something to happen when it opens, include a "preOpenStack" handler in the plugin that does the stuff you want to happen. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Mon Aug 18 17:32:59 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 18 Aug 2014 14:32:59 -0700 Subject: Who says LiveCode ain't English! In-Reply-To: <1408393369345-4682164.post@n4.nabble.com> References: <003801cfbadd$96ac3280$c4049780$@FlexibleLearning.com> <1408373539388-4682129.post@n4.nabble.com> <1408393369345-4682164.post@n4.nabble.com> Message-ID: if NoBeerIsLeft then dispatch ErrandBoy to LiquorStore with BeerOrder end if Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Aug 18, 2014 at 1:22 PM, Sri wrote: > Add to Bernd's code: > > if morning contains headache then > call doctor > else > order beer > end if > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Who-says-LiveCode-ain-t-English-tp4682122p4682164.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Mon Aug 18 17:57:07 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 18 Aug 2014 21:57:07 +0000 Subject: revDataFromQuery and DELETE FROM In-Reply-To: <53F1CAAD.2090109@splash21.com> References: <21EC1FD9-3FB2-4870-BD02-3AC3D677EF98@clearvisiontech.com> <53F1CAAD.2090109@splash21.com> Message-ID: Or use sqlYoga! ;-) Bob S On Aug 18, 2014, at 02:43 , John Craig wrote: > Peter's correct - use revExecuteSQL since no records are returned > > > On 17/08/2014 19:20, Peter Haworth wrote: >> Hi Dan, >> What is the text after "revdberr"? >> >> Strange that the row is being deleted but here's a couple of things that >> come to mind. >> >> You've probably already checked that tTableName and entryID contain valid >> information but one other thing to check is if the tablename includes any >> special characters or if entryID contains non-numeric data. In the first >> case, the table name would have to be enclosed in double quotes and in the >> second case, entryID would have to be enclosed in single quotes. >> >> I'm not sure it really matters but I always use revExecuteSQL when >> executing anything other than a SELECT statement. >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> >> On Sun, Aug 17, 2014 at 9:41 AM, Dan Friedman >> wrote: >> >>> Hello, >>> >>> Can anyone tell me why this results in "revdberr"? >>> >>> put "DELETE FROM" && tTableName && "WHERE entryID=" & entryID into tSQL >>> put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData >>> >>> What's interesting is that the record is being removed from the database. >>> So it's all working server side, just that LiveCode is reporting "revdberr". >>> >>> Anyone have any ideas? >>> >>> Thanks in advance, >>> Dan >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 18 18:00:03 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 18 Aug 2014 22:00:03 +0000 Subject: Bug with diacriticals in folder names In-Reply-To: <1408384922.81712.YahooMailNeo@web126101.mail.ne1.yahoo.com> References: <152-1370546945.20140817160106@ahsoftware.net> <53F13549.1010900@fourthworld.com> <1408335416.75245.YahooMailNeo@web126106.mail.ne1.yahoo.com> <1408384922.81712.YahooMailNeo@web126101.mail.ne1.yahoo.com> Message-ID: <3EE113AF-BDD5-4B64-B520-FC4426815B4C@iotecdigital.com> Sure! It?s called the, ?Apple OS?. ;-) Not sure about the graphical stuff tho?. Also, not sure how you would go about installing it. Bob S On Aug 18, 2014, at 11:02 , Alain Farmer wrote: > Hey! I found an easy workaround to the problem of diacriticals in folder names. > I got the list of paths by recursively getting all of the folders, including the diacritical ones I had trouble with. > The folders function lists these folders, but "there is a folder" reported that diacritical ones did not exist. > In LiveCode 6.6.2 [script editor], LC reports that there is no such folder when the path contains diacritical(s). > But when I store the paths into a file, encoded as UTF8, then read the file, ALL of the folders with diacriticals EXIST!Thank you, Mark, for pointing out that it is a unicode issue. > Then I got lucky as I persevered. > How gratifying! :-)) > > > > On Monday, August 18, 2014 12:16:57 AM, Alain Farmer wrote: > > > > Yup, thanks for confirming that, Mark. > > > On Sunday, August 17, 2014 7:06:00 PM, Richard Gaskin wrote: > > > > Mark Wieder wrote: >> ...and indeed LC 7.0-dp8 does the right thing natively with >> diacriticals in file/folder names without having to do any unicode >> > transliterations. > > Thanks for confirming that, Mark. > > One more down. Now I can focus on figuring out why font sizes seem > inappropriately large on Linux for layouts that look pretty consistent > on Mac and Win (are you seeing that?).... > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From th.douez at gmail.com Mon Aug 18 23:16:05 2014 From: th.douez at gmail.com (Thierry Douez) Date: Tue, 19 Aug 2014 05:16:05 +0200 Subject: open file tFile for text ? In-Reply-To: <53F24D3D.5050708@economy-x-talk.com> References: <53F24D3D.5050708@economy-x-talk.com> Message-ID: Thanks Mark, So you agree with me there is a wrong statement in the dictionary: "write to file" Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage > If you use the binary or text clause, you also need to use one of the > parameters update, read, write or append, for example > > open file myFile for text write > open file myFile for binary append > > Mark Schonewille > >> >> Dictionary -> write to file >> >> There is a sample script which generates an error: >> >> So, what does mean: >> >> open file tFile for text ? >> >> From skip at magicgate.com Tue Aug 19 00:15:46 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Tue, 19 Aug 2014 00:15:46 -0400 Subject: [OT] Transparent Demo Screen Message-ID: Is there any software out there to create the "semi-transparent" demo screen that you see sometimes when an app launches for the first time. Yes, I could spend the time doing it in Photoshop but I was thinking there might be something purpose driven out there already. There seems to be some commonalty between the ones I have seen with curved arrows and "handwritten" text. Know of anything? Your insight is always appreciated! SKIP From m.schonewille at economy-x-talk.com Tue Aug 19 04:35:17 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 19 Aug 2014 10:35:17 +0200 Subject: open file tFile for text ? In-Reply-To: References: <53F24D3D.5050708@economy-x-talk.com> Message-ID: <53F30C45.5080502@economy-x-talk.com> Hi Thierry, I see no mistake here. Where do you see a problem exactly? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/19/2014 05:16, Thierry Douez wrote: > Thanks Mark, > > So you agree with me there is a wrong statement > in the dictionary: "write to file" > > Thierry From th.douez at gmail.com Tue Aug 19 04:43:53 2014 From: th.douez at gmail.com (Thierry Douez) Date: Tue, 19 Aug 2014 10:43:53 +0200 Subject: open file tFile for text ? In-Reply-To: <53F30C45.5080502@economy-x-talk.com> References: <53F24D3D.5050708@economy-x-talk.com> <53F30C45.5080502@economy-x-talk.com> Message-ID: > > I see no mistake here. Where do you see a problem exactly? > ( copy/paste few lines only) Here: mouseUp local tFile put specialFolderPath("desktop") & "/test.txt" into tFile open file tFile for text write "one 222" to file tFile -- Writes to the start of the file >> Thanks Mark, >> >> So you agree with me there is a wrong statement >> in the dictionary: "write to file" >> From m.schonewille at economy-x-talk.com Tue Aug 19 05:00:12 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 19 Aug 2014 11:00:12 +0200 Subject: open file tFile for text ? In-Reply-To: References: <53F24D3D.5050708@economy-x-talk.com> <53F30C45.5080502@economy-x-talk.com> Message-ID: <53F3121C.9080605@economy-x-talk.com> Where exactly, Thierry? If you don't tell me exactly where you have found this, I won't find it myself. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/19/2014 10:43, Thierry Douez wrote: >> >> I see no mistake here. Where do you see a problem exactly? >> > > ( copy/paste few lines only) > Here: > > mouseUp > local tFile > put specialFolderPath("desktop") & "/test.txt" into tFile > open file tFile for text > > write "one 222" to file tFile -- Writes to the start of the file > From th.douez at gmail.com Tue Aug 19 05:15:30 2014 From: th.douez at gmail.com (Thierry Douez) Date: Tue, 19 Aug 2014 11:15:30 +0200 Subject: open file tFile for text ? In-Reply-To: <53F3121C.9080605@economy-x-talk.com> References: <53F24D3D.5050708@economy-x-talk.com> <53F30C45.5080502@economy-x-talk.com> <53F3121C.9080605@economy-x-talk.com> Message-ID: 2014-08-19 11:00 GMT+02:00 Mark Schonewille : > Where exactly, Thierry? Come on, see my 1st post. Check the code sample in "write to file" in the Dictionary. Best, Thierry >> ( copy/paste few lines only) >> Here: >> >> mouseUp >> local tFile >> put specialFolderPath("desktop") & "/test.txt" into tFile >> open file tFile for text >> >> write "one 222" to file tFile -- Writes to the start of the file >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Aug 19 05:22:30 2014 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 19 Aug 2014 12:22:30 +0300 Subject: autoload a plugin? In-Reply-To: References: <53F238C4.3080608@gmail.com> Message-ID: <53F31756.7010105@gmail.com> On 18/08/14 23:48, Mark Wieder wrote: > Richmond writes: > >> Now, when I start up Livecode I want that stack to be loaded and visible >> at the same time as the revMenubar and the revTools stack. > Open Plugin Settings from the Development | Plugins menu > Select from the list > Select "Open plugin when" : "LiveCode starts up > I am aware of that. BUT what I would like to do is have a plug-in so that when somebody else downloads it and puts it into their plug-ins folder it will automatically open whenever Livecode is strated up. Richmond. From richmondmathewson at gmail.com Tue Aug 19 05:27:34 2014 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 19 Aug 2014 12:27:34 +0300 Subject: [OT] Transparent Demo Screen In-Reply-To: References: Message-ID: <53F31886.3080601@gmail.com> On 19/08/14 07:15, Magicgate Software - Skip Kimpel wrote: > Is there any software out there to create the "semi-transparent" demo > screen that you see sometimes when an app launches for the first time. > Yes, I could spend the time doing it in Photoshop but I was thinking there > might be something purpose driven out there already. > > There seems to be some commonalty between the ones I have seen with curved > arrows and "handwritten" text. > > Know of anything? > > Your insight is always appreciated! > > SKIP > _______________________________________________ > Well . . . I always make a semi-transparent PNG image using GIMP. This is very easy indeed: 1. Open GIMP. 2. Open a new image at about 2 pixels each way bigger than your stack, and make sure you select "Transparent background" in 'advanced options. 3. New Layer, Fill with colour of choice, set transparency to 50%. 4. Export as PNG. 5. Import into Livecode; muck around with textFields overlaying the PNG, and/or other pictorial elements. 6. Group the lot and import snapshot. 7. Delete original PNG and other components. Richmond. From richmondmathewson at gmail.com Tue Aug 19 05:59:55 2014 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 19 Aug 2014 12:59:55 +0300 Subject: Timetable for San Diego Message-ID: <53F3201B.1090502@gmail.com> Some extremely generous person who wishes to remain anonymous has given me all sorts of RunRev goodies, including a licence to "attend" the San Diego conference by simulcast. Apart from the fact that I feel very odd as I have no way to thank that person directly, and that I have worked hard for years to be thoroughly obnoxious and alienate myself from the Livecode Community (Must have got that badly wrong, somehow), I would like to know how to "do it" [No; not 'that' you filthy type!] As in arrange things so that I can watch everything: (It would be churlish in the extreme to miss anything after that wonderful gift.) 1. Bulgaria is 10 hours "in front" of San Diego, so: 1.1 If the conference starts everyday at 9 a.m. that will be 7 p.m. here in Bulgaria. 1.2. I have shuffled my teaching programme for that week so I can be home by 4 p.m. everyday. 2. Presumably (???) as the conference is being broadcast as a simulcast for which one has to pay, there is no way in which to download the simulcasts for delayed viewing? 3. Is there a provisional programme (err; program) of sessions up yet? 4. If the Edinburgh conference I attended 5/6 years ago is anything to go on, there will be at least 2 simultaneous events at any one time: is there a way to chose which one to watch, or will that decision be taken by RunRev? -------------------------------- I would suppose that some of these questions must be applicable to quite a lot of people who are going to be "time shifted" from San Diego. Richmond. From m.schonewille at economy-x-talk.com Tue Aug 19 06:23:18 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 19 Aug 2014 12:23:18 +0200 Subject: open file tFile for text ? In-Reply-To: References: <53F24D3D.5050708@economy-x-talk.com> <53F30C45.5080502@economy-x-talk.com> <53F3121C.9080605@economy-x-talk.com> Message-ID: <53F32596.2010907@economy-x-talk.com> Thierry, Apparently, this is new. Older versions of LiveCode don't have this (or that part of the text doesn't render). Also, I was looking at the open file command at first. So, it really helped that you pointed exactly at the right part of the right entry. Yes, I would say that the example in the dictionary is wrong. It should be open file tFile for text write or open file tFile for binary write but it is sufficient to use open file tFile for write or open file tFile -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/19/2014 11:15, Thierry Douez wrote: > 2014-08-19 11:00 GMT+02:00 Mark Schonewille : >> Where exactly, Thierry? > > Come on, see my 1st post. > > Check the code sample in "write to file" in the Dictionary. > > Best, > > Thierry From skiplondon at gmail.com Tue Aug 19 06:29:17 2014 From: skiplondon at gmail.com (Skip Kimpel) Date: Tue, 19 Aug 2014 06:29:17 -0400 Subject: Timetable for San Diego In-Reply-To: <53F3201B.1090502@gmail.com> References: <53F3201B.1090502@gmail.com> Message-ID: Richmond, The only thing I can chime in on is the schedule, which can be found here: http://runrevlive.com/index.php?option=com_content&view=article&id=33&Itemid=108 Hopefully others can answer the rest of your questions. SKIP > On Aug 19, 2014, at 5:59 AM, Richmond wrote: > > Some extremely generous person who wishes to remain anonymous has > given me all sorts of RunRev goodies, including a licence to "attend" the > San Diego conference by simulcast. > > Apart from the fact that I feel very odd as I have no way to thank that > person directly, and that I have worked hard for years to be thoroughly > obnoxious and alienate myself from the Livecode Community (Must have > got that badly wrong, somehow), I would like to know how to > > "do it" > > [No; not 'that' you filthy type!] > > As in arrange things so that I can watch everything: > > (It would be churlish in the extreme to miss anything after that > wonderful gift.) > > 1. Bulgaria is 10 hours "in front" of San Diego, so: > > 1.1 If the conference starts everyday at 9 a.m. that will be 7 p.m. here in Bulgaria. > > 1.2. I have shuffled my teaching programme for that week so I can be home by 4 p.m. > everyday. > > 2. Presumably (???) as the conference is being broadcast as a simulcast for > which one has to pay, there is no way in which to download the simulcasts for > delayed viewing? > > 3. Is there a provisional programme (err; program) of sessions up yet? > > 4. If the Edinburgh conference I attended 5/6 years ago is anything to go on, > there will be at least 2 simultaneous events at any one time: is there a way to chose which > one to watch, or will that decision be taken by RunRev? > > -------------------------------- > > I would suppose that some of these questions must be applicable to quite a lot of people > who are going to be "time shifted" from San Diego. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Aug 19 06:45:23 2014 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 19 Aug 2014 13:45:23 +0300 Subject: Timetable for San Diego In-Reply-To: References: <53F3201B.1090502@gmail.com> Message-ID: <53F32AC3.5090602@gmail.com> On 19/08/14 13:29, Skip Kimpel wrote: > Richmond, > > The only thing I can chime in on is the schedule, which can be found here: > http://runrevlive.com/index.php?option=com_content&view=article&id=33&Itemid=108 > > Hopefully others can answer the rest of your questions. > > SKIP > > That's a very great help. Thank you very much. Richmond. From camm29 at tesco.net Tue Aug 19 08:14:36 2014 From: camm29 at tesco.net (Camm) Date: Tue, 19 Aug 2014 12:14:36 +0000 (UTC) Subject: Script will not Run unless mouse is moved within Stack In-Reply-To: <899398859.1368734.1408450343663.JavaMail.root@md01.topaz.synacor.com> Message-ID: <320744710.1368763.1408450476981.JavaMail.root@md01.topaz.synacor.com> Hello , Not sure if I have missed something ? On OpenStack put "DOG" INTO FLD "Fa1" wait 5 seconds put "CAT" INTO FLD "Fa2" wait 5 seconds put "FISH" INTO FLD "Fa3" end Openstack put CAT and FISH will not work until the mouse if moved inside the mainstack ? Best Regards Camm From dunbarx at aol.com Tue Aug 19 08:32:28 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 19 Aug 2014 08:32:28 -0400 (EDT) Subject: Script will not Run unless mouse is moved within Stack In-Reply-To: <320744710.1368763.1408450476981.JavaMail.root@md01.topaz.synacor.com> References: <320744710.1368763.1408450476981.JavaMail.root@md01.topaz.synacor.com> Message-ID: <8D189C0C5EABC8D-2358-FBC@webmail-va018.sysops.aol.com> Nothing wrong at all. Works fine for me, as it ought to. Craig Newman -----Original Message----- From: Camm To: use-livecode Sent: Tue, Aug 19, 2014 8:15 am Subject: Script will not Run unless mouse is moved within Stack Hello , Not sure if I have missed something ? On OpenStack put "DOG" INTO FLD "Fa1" wait 5 seconds put "CAT" INTO FLD "Fa2" wait 5 seconds put "FISH" INTO FLD "Fa3" end Openstack put CAT and FISH will not work until the mouse if moved inside the mainstack ? Best Regards Camm _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From camm29 at tesco.net Tue Aug 19 08:37:29 2014 From: camm29 at tesco.net (Camm) Date: Tue, 19 Aug 2014 12:37:29 +0000 (UTC) Subject: Script will not Run unless mouse is moved within Stack In-Reply-To: <8D189C0C5EABC8D-2358-FBC@webmail-va018.sysops.aol.com> Message-ID: <911891661.1369085.1408451849973.JavaMail.root@md01.topaz.synacor.com> Okay , thanks. Even with mouse position outside of stack ? Regards Camm ----- Original Message ----- From: dunbarx at aol.com To: use-livecode at lists.runrev.com Sent: Tuesday, 19 August, 2014 1:32:28 PM Subject: Re: Script will not Run unless mouse is moved within Stack Nothing wrong at all. Works fine for me, as it ought to. Craig Newman -----Original Message----- From: Camm To: use-livecode Sent: Tue, Aug 19, 2014 8:15 am Subject: Script will not Run unless mouse is moved within Stack Hello , Not sure if I have missed something ? On OpenStack put "DOG" INTO FLD "Fa1" wait 5 seconds put "CAT" INTO FLD "Fa2" wait 5 seconds put "FISH" INTO FLD "Fa3" end Openstack put CAT and FISH will not work until the mouse if moved inside the mainstack ? Best Regards Camm _______________________________________________ use-livecode mailing list use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Tue Aug 19 08:56:22 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 19 Aug 2014 14:56:22 +0200 Subject: Script will not Run unless mouse is moved within Stack In-Reply-To: <320744710.1368763.1408450476981.JavaMail.root@md01.topaz.synacor.com> References: <320744710.1368763.1408450476981.JavaMail.root@md01.topaz.synacor.com> Message-ID: <53F34976.3040006@economy-x-talk.com> Hi Camm, Which version of LiveCode do you use and which operating system (including version number)? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/19/2014 14:14, Camm wrote: > Hello , > > > Not sure if I have missed something ? > > > > On OpenStack > > > put "DOG" INTO FLD "Fa1" > wait 5 seconds > put "CAT" INTO FLD "Fa2" > wait 5 seconds > put "FISH" INTO FLD "Fa3" > > > end Openstack > > > put CAT and FISH will not work until the mouse if moved inside the mainstack ? > > > Best Regards > Camm From dochawk at gmail.com Tue Aug 19 09:13:27 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 19 Aug 2014 06:13:27 -0700 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> Message-ID: On Mon, Aug 18, 2014 at 9:16 AM, J. Landman Gay wrote: > It also isn't clear whether the bell should be just a single tone or if it > needs to play music. The cost of the original proposed system implies > there is more to it than just a single bell. > It plays from a selection of pre-recorded music (and I think it can add more). I think our old dead one (can't even get parts for it anymore) had little physical chimes, but it's past yet another repair. The very simple solutions won't work; it needs to, for example, go off every day at 6. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Tue Aug 19 10:56:24 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 19 Aug 2014 09:56:24 -0500 Subject: autoload a plugin? In-Reply-To: <53F31756.7010105@gmail.com> References: <53F238C4.3080608@gmail.com> <53F31756.7010105@gmail.com> Message-ID: The plugin settings are saved as custom properties of the stack. On August 19, 2014 4:22:30 AM CDT, Richmond wrote: > >BUT what I would like to do is have a plug-in so >that when somebody else downloads it and puts it >into their plug-ins folder it will automatically open >whenever Livecode is strated up. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From harrison at all-auctions.com Tue Aug 19 11:12:49 2014 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 19 Aug 2014 11:12:49 -0400 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> Message-ID: <60B001B7-A4C1-4F33-8183-8D0047080D4B@all-auctions.com> How about a simple timer from Radioshack? You can set it to go on at 6:00pm and go off again one or two minutes later, or whenever you want. I wouldn?t give up on simple solutions so easily if I were you. Just my 2 cents. Rick On Aug 19, 2014, at 9:13 AM, Dr. Hawkins wrote: > On Mon, Aug 18, 2014 at 9:16 AM, J. Landman Gay > wrote: > >> It also isn't clear whether the bell should be just a single tone or if it >> needs to play music. The cost of the original proposed system implies >> there is more to it than just a single bell. >> > > It plays from a selection of pre-recorded music (and I think it can add > more). > > I think our old dead one (can't even get parts for it anymore) had little > physical chimes, but it's past yet another repair. > > The very simple solutions won't work; it needs to, for example, go off > every day at 6. > > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Tue Aug 19 11:54:00 2014 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 19 Aug 2014 11:54:00 -0400 Subject: Script will not Run unless mouse is moved within Stack In-Reply-To: <320744710.1368763.1408450476981.JavaMail.root@md01.topaz.synacor.com> References: <899398859.1368734.1408450343663.JavaMail.root@md01.topaz.synacor.com> <320744710.1368763.1408450476981.JavaMail.root@md01.topaz.synacor.com> Message-ID: <003301cfbbc5$cb2191c0$6164b540$@net> Are you running Windows? I have the same problem. Reported as bug 12361. See==> http://quality.runrev.com/show_bug.cgi?id=12361 Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Camm Sent: Tuesday, August 19, 2014 8:15 AM To: use-livecode at lists.runrev.com Subject: Script will not Run unless mouse is moved within Stack Hello , Not sure if I have missed something ? On OpenStack put "DOG" INTO FLD "Fa1" wait 5 seconds put "CAT" INTO FLD "Fa2" wait 5 seconds put "FISH" INTO FLD "Fa3" end Openstack put CAT and FISH will not work until the mouse if moved inside the mainstack ? Best Regards Camm _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Tue Aug 19 13:02:48 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 19 Aug 2014 19:02:48 +0200 Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 Message-ID: <005201cfbbcf$67da2e10$378e8a30$@de> Hello, When opening one of my stacks in LC 6.5.2 IDE it performs its tasks in 1-2 sec. When opening the same stack in 6.6.2 it takes between 30 - 90 secs. The program checks a local file and some PHPs with MySQL calls on my server. I tested both IDE versions with the same stack multiple times with the same result, to exclude server issues. Before digging hours or days into the depth of my old stack I wanted to ask, if there are any known issues between these LC versions or hints where to look first? Thanks for any hint Tiemo From pete at lcsql.com Tue Aug 19 13:08:21 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 19 Aug 2014 10:08:21 -0700 Subject: autoload a plugin? In-Reply-To: <53F31756.7010105@gmail.com> References: <53F238C4.3080608@gmail.com> <53F31756.7010105@gmail.com> Message-ID: Hi Richmond, The plugin settings are stored in a custom property set of the main stack named cRevLoadInfo. In that set, there's a property named "load" - set that to "startup" to have it load at startup. There's also "inMenu" (true or false to determine if it appears in the plugins menu,), and "mode" ( indicates the stack mode, modeless, palette, etc). You will need to switch on the Preference setting "Livecode UI settings appear in list" on the General tab to get access to this property set. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Aug 19, 2014 at 2:22 AM, Richmond wrote: > On 18/08/14 23:48, Mark Wieder wrote: > >> Richmond writes: >> >> Now, when I start up Livecode I want that stack to be loaded and visible >>> at the same time as the revMenubar and the revTools stack. >>> >> Open Plugin Settings from the Development | Plugins menu >> Select from the list >> Select "Open plugin when" : "LiveCode starts up >> >> > I am aware of that. > > BUT what I would like to do is have a plug-in so > that when somebody else downloads it and puts it > into their plug-ins folder it will automatically open > whenever Livecode is strated up. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Tue Aug 19 13:09:41 2014 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 19 Aug 2014 20:09:41 +0300 Subject: autoload a plugin? In-Reply-To: References: <53F238C4.3080608@gmail.com> <53F31756.7010105@gmail.com> Message-ID: <53F384D5.3080104@gmail.com> On 19/08/14 20:08, Peter Haworth wrote: > Hi Richmond, > The plugin settings are stored in a custom property set of the main stack > named cRevLoadInfo. In that set, there's a property named "load" - set > that to "startup" to have it load at startup. There's also "inMenu" (true > or false to determine if it appears in the plugins menu,), and "mode" ( > indicates the stack mode, modeless, palette, etc). > > You will need to switch on the Preference setting "Livecode UI settings > appear in list" on the General tab to get access to this property set. > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > Thanks; that is very useful. Richmond. From rdimola at evergreeninfo.net Tue Aug 19 13:26:09 2014 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 19 Aug 2014 13:26:09 -0400 Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 In-Reply-To: <005201cfbbcf$67da2e10$378e8a30$@de> References: <005201cfbbcf$67da2e10$378e8a30$@de> Message-ID: <004101cfbbd2$aaa28e60$ffe7ab20$@net> Same here on one app. I'm trying to nail it down. Haven't found the culprit yet. I've requested a one-on-one at RR14 to address this. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Tiemo Hollmann TB Sent: Tuesday, August 19, 2014 1:03 PM To: 'How to use LiveCode' Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 Hello, When opening one of my stacks in LC 6.5.2 IDE it performs its tasks in 1-2 sec. When opening the same stack in 6.6.2 it takes between 30 - 90 secs. The program checks a local file and some PHPs with MySQL calls on my server. I tested both IDE versions with the same stack multiple times with the same result, to exclude server issues. Before digging hours or days into the depth of my old stack I wanted to ask, if there are any known issues between these LC versions or hints where to look first? Thanks for any hint Tiemo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Aug 19 13:26:14 2014 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 19 Aug 2014 20:26:14 +0300 Subject: Blow her away with your gigantic weapon. Message-ID: <53F388B6.90006@gmail.com> It is 'odd' how the coded messages I keep getting in my Spam box inspire me to post on the Livecode Use-List. Well I certainly intend to. Currently developing an interface to input text in Anglo-Saxon, Gothic, Old High German and Runes to blow my wife away, as this is exactly what she needs for her book on the development of Modern English from the viewpoint of Cognitive Linguistics. Now the question comes as to whether I should develop it in Livecode 7 with a view of going straight to HTML5 when it is delivered or sticking with a pre-7 version using the sort of code I am used to. I wonder how many people have started using the new Unicode syntax for their gigantic weapons? Richmond. From dochawk at gmail.com Tue Aug 19 13:41:52 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 19 Aug 2014 10:41:52 -0700 Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 In-Reply-To: <005201cfbbcf$67da2e10$378e8a30$@de> References: <005201cfbbcf$67da2e10$378e8a30$@de> Message-ID: On Tue, Aug 19, 2014 at 10:02 AM, Tiemo Hollmann TB wrote: > When opening one of my stacks in LC 6.5.2 IDE it performs its tasks in 1-2 > sec. When opening the same stack in 6.6.2 it takes between 30 - 90 secs. > Have you timed it in LC 5 yet? The slowdown on some things was staggering (and part of why I still use 5) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From Camm29 at tesco.net Tue Aug 19 14:10:06 2014 From: Camm29 at tesco.net (Camm) Date: Tue, 19 Aug 2014 19:10:06 +0100 Subject: Script will not Run unless mouse is moved within Stack In-Reply-To: <003301cfbbc5$cb2191c0$6164b540$@net> References: <899398859.1368734.1408450343663.JavaMail.root@md01.topaz.synacor.com> <320744710.1368763.1408450476981.JavaMail.root@md01.topaz.synacor.com> <003301cfbbc5$cb2191c0$6164b540$@net> Message-ID: <004c01cfbbd8$ce384d00$6aa8e700$@tesco.net> Ralph , Yes Windows......... I will add to bug report. Regards Camm -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Ralph DiMola Sent: 19 August 2014 16:54 To: 'How to use LiveCode' Subject: RE: Script will not Run unless mouse is moved within Stack Are you running Windows? I have the same problem. Reported as bug 12361. See==> http://quality.runrev.com/show_bug.cgi?id=12361 Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Camm Sent: Tuesday, August 19, 2014 8:15 AM To: use-livecode at lists.runrev.com Subject: Script will not Run unless mouse is moved within Stack Hello , Not sure if I have missed something ? On OpenStack put "DOG" INTO FLD "Fa1" wait 5 seconds put "CAT" INTO FLD "Fa2" wait 5 seconds put "FISH" INTO FLD "Fa3" end Openstack put CAT and FISH will not work until the mouse if moved inside the mainstack ? Best Regards Camm _______________________________________________ use-livecode mailing list use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4745 / Virus Database: 4007/8053 - Release Date: 08/17/14 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4745 / Virus Database: 4007/8053 - Release Date: 08/17/14 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4745 / Virus Database: 4007/8053 - Release Date: 08/17/14 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4745 / Virus Database: 4007/8053 - Release Date: 08/17/14 From richmondmathewson at gmail.com Tue Aug 19 14:22:50 2014 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 19 Aug 2014 21:22:50 +0300 Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 In-Reply-To: References: <005201cfbbcf$67da2e10$378e8a30$@de> Message-ID: <53F395FA.5070800@gmail.com> On 19/08/14 20:41, Dr. Hawkins wrote: > On Tue, Aug 19, 2014 at 10:02 AM, Tiemo Hollmann TB > wrote: > >> When opening one of my stacks in LC 6.5.2 IDE it performs its tasks in 1-2 >> sec. When opening the same stack in 6.6.2 it takes between 30 - 90 secs. >> > Have you timed it in LC 5 yet? The slowdown on some things was staggering > (and part of why I still use 5) > > You might like to go here: https://www.facebook.com/groups/runrev/ and download my "Speeder" and "Speeder_too" stacks to do a serious comparison :) Richmond. From livfoss at mac.com Tue Aug 19 16:44:19 2014 From: livfoss at mac.com (Graham Samuel) Date: Tue, 19 Aug 2014 22:44:19 +0200 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <53DF1EB4.3040409@fourthworld.com> References: <53DF1EB4.3040409@fourthworld.com> Message-ID: This is long, so skip it if you're in a hurry... Long ago, in use-list terms, when I was up to my neck in visitors (in one country) and a new baby (in another), I read Richard's post below and it made me think how little I understand LC arrays. Now the visitors have gone and the baby has put on a whole pound (he was four weeks premature) and I have a little time to ask for help in understanding LC arrays. My array knowledge is very very ancient, and the languages (largely forgotten) where I was able to use them were childishly simple. Basically an array, say AA, had elements, AA[1], AA[2] etc with no gaps. In some languages AA[0] would have been the first element. Elements could contain numbers or in some cases other types of object, particularly character strings (these were typed languages). By 'no gaps' I mean that all the elements from the first to last necessarily existed: AA[n] might be empty, but it would not (could not) cease to exist for that reason or any other. So in these languages the size of an array was simply the number of the last element to be created. Different languages allowed different operations on arrays as a whole, but these were very limited if they existed at all. In LC, I think (but I am fuzzy, which is why I'm writing this), the 'keys', i.e. the designators of each element, like 1, 2 etc in my old system, can be any character string, including of course the cardinal numbers as above, or the ordinal numbers for that matter, or something completely arbitrary like say the names of stations on the London Tube map. This must mean that, it seems to me, that there is no longer any implied order: I mean AA["Oxford Circus"] is neither before nor after AA["Victoria"]. I suppose that if some sense of order is required, then one simply has to choose inherently ordered keys, like letters of the alphabet, cardinal numbers etc. Can someone confirm this? I do understand that in LC, array elements can be completely deleted, rather than just rendered empty. I'm glad the engine does the garbage collection rather than the humble programmer. The other thing I think I understand is that an array element (the contents of AA["Victoria"]) can be anything, from empty to an entire stack, and taking in other arrays, which gives the possibility of multi-dimensional arrays, doesn't it? Again I am fuzzy: suppose we have a superset called, I dunno, 'Metros of the world', or 'MoW' for short. So an element of this can be MoW["London Tube"["Oxford Circus"]] can it? Or is that meaningless, and one has to write MoW["London Tube] ["Oxford Circus"] which seems counterintuitive to me, since it doesn't look nested: Is that in fact multidimensional, and is it legal? Again I am confused, despite having read Page 147-149 of the LC User Guide. A further issue to me is the operations that are allowed on entire arrays in LC - I note the existence of 'split' and 'combine'. Is that it? What happens when you combine a multidimensional array? Can anyone point me at a really clear exposition of LC arrays, preferably with diagrams? It's easier IMHO to think of this stuff in pictures... Here's hoping, as I have a feeling I'm going to need arrays in my next project. Otherwise I might try to write a little essay about it myself, but it would mean a lot of trial and error, I imagine. TIA Graham On 4 Aug 2014, at 07:48, Richard Gaskin wrote: > Mike Kerner wrote: > >> The problem we have with arrays is that they don't let us really use >> indirection, i.e. pointers/handles. It's a lot easier to write generic >> handlers for a screen full of controls with pointers/handles. "DO" is ok, >> but it's the same problem we've always had with "DO", namely it's slow. >> It's very, very flexible, but it's slow. > > Your post suggests an interesting angle: > > Before xTalk had associative arrays, I used to work really hard to be able to have arbitrary numbers of name-value pairs in structures that were gracefully usable. Then when arrays came along so many things became easy which had been difficult and slow before. > > So with the sorts of things you'd like to do with pointers, what might we imagine that would be to arrays what arrays are to "do" in terms of efficient paradigm shift for certain ranges of problems? > > Maybe there is indeed a very different way of working waiting to be discovered and put to use. > > Maybe it could become achievable within the time frame of Open Language.... > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for Desktop, Mobile, and Web > ____________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Tue Aug 19 19:58:30 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 19 Aug 2014 16:58:30 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: <53DF1EB4.3040409@fourthworld.com> Message-ID: Hi Graham, See below for what I can contribute to this Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Aug 19, 2014 at 1:44 PM, Graham Samuel > > > > In LC, I think (but I am fuzzy, which is why I'm writing this), the > 'keys', i.e. the designators of each element, like 1, 2 etc in my old > system, can be any character string, including of course the cardinal > numbers as above, or the ordinal numbers for that matter, or something > completely arbitrary like say the names of stations on the London Tube map. > This must mean that, it seems to me, that there is no longer any implied > order: I mean AA["Oxford Circus"] is neither before nor after > AA["Victoria"]. I suppose that if some sense of order is required, then one > simply has to choose inherently ordered keys, like letters of the alphabet, > cardinal numbers etc. Can someone confirm this? > Correct. If you want to get the elements of an array in order, then: put the keys of AA into tKeys sort tKeys -- possibly with numeric if they keys are numeric repeat for each line rKey in tKeys do stuff next repeat I guess if you knew the keys were numeric you could: repeat with x=1 to the number of lines in the keys of AA do stuff end repeat > > > The other thing I think I understand is that an array element (the > contents of AA["Victoria"]) can be anything, from empty to an entire stack, > and taking in other arrays, which gives the possibility of > multi-dimensional arrays, doesn't it? Again I am fuzzy: suppose we have a > superset called, I dunno, 'Metros of the world', or 'MoW' for short. So an > element of this can be > > MoW["London Tube"["Oxford Circus"]] > > can it? Or is that meaningless, and one has to write > > MoW["London Tube] ["Oxford Circus"] > The second of your examples is how you have to do it in LC. And of course, the "Oxford Circus" key could have its own subkeys too. Basically each array key can either have a value stored in it or can have subkeys attached to it, but not both. For example MoW["London Tube"]["Oxford Circus"] could have a value of "Central" or you could have MoW["London Tube"]["Oxford Circus"]["Line"] key with the value "Central" but not both. You can put an array into another array but it's really the same as putting the keys/values of that array into the target array individually. For example, lets say you have ArrayA[1] with a value of "ABC" and ArrayB[1] with a value of "DEF" and ArrayB[2] with a value of "GHI", if you put arrayB into ArrayA[2] you'll end up with ArrayA[1] = "ABC" ArrayA[2][1]= "DEF" ArrayA[2][2]="GHI" > > A further issue to me is the operations that are allowed on entire arrays > in LC - I note the existence of 'split' and 'combine'. Is that it? What > happens when you combine a multidimensional array? > combine and split only work on single dimensional arrays and some forms of them can only be used on numerically keyed arrays. Sure would be nice to have a "recursive" keyword or something like that. There's also the matrixMultiply command. It only works on numerically-keyed, single dimension arrays. Not sure why there isn't a matrixAdd/Subtract/Divide/etc but there's no mention of them in the dictionary. And then there's the extents property which returns the lowest and highest keys of a numerically-keyed array. The dictionary also lists a transpose command but I honestly can;t figure out what use it is and since it causes a runtime error when I've tried to play with I haven't bothered to check it out. Hope that helps From dunbarx at aol.com Tue Aug 19 20:33:58 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 19 Aug 2014 20:33:58 -0400 (EDT) Subject: Script will not Run unless mouse is moved within Stack In-Reply-To: <004c01cfbbd8$ce384d00$6aa8e700$@tesco.net> References: <899398859.1368734.1408450343663.JavaMail.root@md01.topaz.synacor.com> <320744710.1368763.1408450476981.JavaMail.root@md01.topaz.synacor.com> <003301cfbbc5$cb2191c0$6164b540$@net> <004c01cfbbd8$ce384d00$6aa8e700$@tesco.net> Message-ID: <8D18A25909A1A8A-2358-66B9@webmail-va018.sysops.aol.com> OK. Works on a Mac, does not matter where the cursor is when the handler runs. Craig -----Original Message----- From: Camm To: 'How to use LiveCode' Sent: Tue, Aug 19, 2014 2:10 pm Subject: RE: Script will not Run unless mouse is moved within Stack Ralph , Yes Windows......... I will add to bug report. Regards Camm -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Ralph DiMola Sent: 19 August 2014 16:54 To: 'How to use LiveCode' Subject: RE: Script will not Run unless mouse is moved within Stack Are you running Windows? I have the same problem. Reported as bug 12361. See==> http://quality.runrev.com/show_bug.cgi?id=12361 Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Camm Sent: Tuesday, August 19, 2014 8:15 AM To: use-livecode at lists.runrev.com Subject: Script will not Run unless mouse is moved within Stack Hello , Not sure if I have missed something ? On OpenStack put "DOG" INTO FLD "Fa1" wait 5 seconds put "CAT" INTO FLD "Fa2" wait 5 seconds put "FISH" INTO FLD "Fa3" end Openstack put CAT and FISH will not work until the mouse if moved inside the mainstack ? Best Regards Camm _______________________________________________ use-livecode mailing list use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4745 / Virus Database: 4007/8053 - Release Date: 08/17/14 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4745 / Virus Database: 4007/8053 - Release Date: 08/17/14 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4745 / Virus Database: 4007/8053 - Release Date: 08/17/14 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4745 / Virus Database: 4007/8053 - Release Date: 08/17/14 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Tue Aug 19 20:35:52 2014 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 20 Aug 2014 01:35:52 +0100 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: <53DF1EB4.3040409@fourthworld.com> Message-ID: <53F3ED68.6040208@tweedly.net> On 20/08/2014 00:58, Peter Haworth wrote: > There's also the matrixMultiply command. It only works on > numerically-keyed, single dimension arrays. Not sure why there isn't a > matrixAdd/Subtract/Divide/etc but there's no mention of them in the > dictionary. But you get them (I think) just with "add", etc. Dictionary says (with me trimming out the unnecessary parts) > > add {number | array} to arrayContainer > > Example: > add qty * price to last line of myOrder > > Description: > Use the add command to add a number to a container or a portion of a > container, or to add two arrays containing numbers. > > Parameters: > The number is an expression that evaluates to a number. > The container is a field, button, or variable, or the message box. > The arrayContainer is an array variable each of whose elements is a > number. > > Comments: > If a number is added to an arrayContainer, the number is added to each > element. If an array is added to an arrayContainer, both arrays must > have the same number of elements and the same dimension, and each > element in the array is added to the corresponding element of the > arrayContainer. > > If the container or an element of the arrayContainer is empty, the add > command treats its contents as zero. > If container is a field or button, the format of the sum is determined > by the numberFormat property. > > The dictionary also lists a transpose command but I honestly can;t > figure out what use it is and since it causes a runtime error when > I've tried to play with I haven't bothered to check it out. Haven't used it, or even played with it - but the thing to note is that it was included since v1.1, when we didn't have true multi-dm arrays, so it expects pseudo- 2D array, where the keys are in the form [number,number], and every element must exist - i.e. you'd be hard pressed to find a useful use for it today. We really should have a transpose (and come to think of it a matrixMultiply, etc.) command that work on modern 2-D arrays, i.e. A[1][2], etc. rather than A[1,2] -- Alex. From pete at lcsql.com Tue Aug 19 21:48:22 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 19 Aug 2014 18:48:22 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <53F3ED68.6040208@tweedly.net> References: <53DF1EB4.3040409@fourthworld.com> <53F3ED68.6040208@tweedly.net> Message-ID: On Tue, Aug 19, 2014 at 5:35 PM, Alex Tweedly wrote: > But you get them (I think) just with "add", etc. Yes, thanks Alex, I missed that. It seems that multiply also works that way so I guess the matrixMultiply command must be like the transpose command - works on the old style arrays only. I wonder why they don't mark those commands a deprecated? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From pderocco at ix.netcom.com Wed Aug 20 01:47:07 2014 From: pderocco at ix.netcom.com (Paul D. DeRocco) Date: Tue, 19 Aug 2014 22:47:07 -0700 Subject: Two quick questions: Message-ID: 1) What's the simplest way to test if running under the LC IDE versus as a standalone? 2) For a Mac standalone, how do I get the full path of the .app file, which is actually a directory? I'm trying to get the standalone to find a custom external .bundle which is actually contained inside the .app file. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com From bogdanoff at me.com Wed Aug 20 02:02:37 2014 From: bogdanoff at me.com (Peter Bogdanoff) Date: Tue, 19 Aug 2014 23:02:37 -0700 Subject: Two quick questions: In-Reply-To: References: Message-ID: <30163CF1-4B8A-49C8-81EC-04A7BC5216C2@me.com> For #1: if the environment is "development" then On Aug 19, 2014, at 10:47 PM, Paul D. DeRocco wrote: > 1) What's the simplest way to test if running under the LC IDE versus as a > standalone? > > 2) For a Mac standalone, how do I get the full path of the .app file, > which is actually a directory? I'm trying to get the standalone to find a > custom external .bundle which is actually contained inside the .app file. > > -- > > Ciao, Paul D. DeRocco > Paul mailto:pderocco at ix.netcom.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Wed Aug 20 02:42:36 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 20 Aug 2014 08:42:36 +0200 Subject: AW: Massiv performance difference between LC 6.5.2 and 6.6.2 In-Reply-To: <004101cfbbd2$aaa28e60$ffe7ab20$@net> References: <005201cfbbcf$67da2e10$378e8a30$@de> <004101cfbbd2$aaa28e60$ffe7ab20$@net> Message-ID: <001501cfbc41$eecb22e0$cc6168a0$@de> Hi Ralph, please let me know, when you've found the issue. Meanwhile I will also try to nail it down. Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Ralph DiMola > Gesendet: Dienstag, 19. August 2014 19:26 > An: 'How to use LiveCode' > Betreff: RE: Massiv performance difference between LC 6.5.2 and 6.6.2 > > Same here on one app. I'm trying to nail it down. Haven't found the culprit > yet. I've requested a one-on-one at RR14 to address this. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of > Tiemo Hollmann TB > Sent: Tuesday, August 19, 2014 1:03 PM > To: 'How to use LiveCode' > Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 > > Hello, > > When opening one of my stacks in LC 6.5.2 IDE it performs its tasks in 1-2 > sec. When opening the same stack in 6.6.2 it takes between 30 - 90 secs. > > The program checks a local file and some PHPs with MySQL calls on my server. > I tested both IDE versions with the same stack multiple times with the same > result, to exclude server issues. > > Before digging hours or days into the depth of my old stack I wanted to ask, > if there are any known issues between these LC versions or hints where to look > first? > > > > Thanks for any hint > > Tiemo > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Wed Aug 20 02:57:57 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 20 Aug 2014 08:57:57 +0200 Subject: AW: Massiv performance difference between LC 6.5.2 and 6.6.2 In-Reply-To: References: <005201cfbbcf$67da2e10$378e8a30$@de> Message-ID: <001601cfbc44$137ab2c0$3a701840$@de> Hi Richard, I have made some more tests this morning after a fresh restart of my computer and no other tasks running, Version 5.5.4: 3 sec Version 6.1: 2 sec Version 6.5.2: 3 sec Version 6.6.2: 290-460 sec So there is no real difference for me up to version 6.5.2. The huge delay of 290-460 sec in version 6.6.2 almost looks like the program waits for any timeout or so, before going on. I will report, if I find the issue. Btw. its on a windows 7 machine Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Dr. Hawkins > Gesendet: Dienstag, 19. August 2014 19:42 > An: How to use LiveCode > Betreff: Re: Massiv performance difference between LC 6.5.2 and 6.6.2 > > On Tue, Aug 19, 2014 at 10:02 AM, Tiemo Hollmann TB > wrote: > > > When opening one of my stacks in LC 6.5.2 IDE it performs its tasks in > > 1-2 sec. When opening the same stack in 6.6.2 it takes between 30 - 90 secs. > > > > Have you timed it in LC 5 yet? The slowdown on some things was staggering > (and part of why I still use 5) > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacques.hausser at unil.ch Wed Aug 20 04:02:00 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Wed, 20 Aug 2014 10:02:00 +0200 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: <53DF1EB4.3040409@fourthworld.com> <53F3ED68.6040208@tweedly.net> Message-ID: Le 20 ao?t 2014 ? 03:48, Peter Haworth a ?crit : > Yes, thanks Alex, I missed that. It seems that multiply also works that > way so I guess the matrixMultiply command must be like the transpose > command - works on the old style arrays only. I wonder why they don't mark > those commands a deprecated? I agree these commands should be revised and adapted to the new syntax. They were very useful in their time, e.g. in matrix calculus - I used them a lot for multivariate statistical analyses several years ago. But now Constantina Spanoude provides her "Matrix ReCoded" library (http://newsletters.livecode.com/october/issue158/newsletter2.php) which seems quite powerful (I didn't test it but I will as soon as I have time for it). Free advertisement ;) ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From henshaw at me.com Wed Aug 20 04:44:46 2014 From: henshaw at me.com (Andrew Henshaw) Date: Wed, 20 Aug 2014 09:44:46 +0100 Subject: Black input boxes in Linux (Ubuntu) In-Reply-To: References: <53DF1EB4.3040409@fourthworld.com> <53F3ED68.6040208@tweedly.net> Message-ID: Ive got a user who is running Ubuntu and all the input boxes have a black background so he cannot see what he is entering or selecting. Ive tried an install of the same version of Ubuntu here and its working fine for me. Any ideas what may be causing this and how to work around it? From livfoss at mac.com Wed Aug 20 04:59:12 2014 From: livfoss at mac.com (Graham Samuel) Date: Wed, 20 Aug 2014 10:59:12 +0200 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: <53DF1EB4.3040409@fourthworld.com> <53F3ED68.6040208@tweedly.net> Message-ID: Thanks to thanks to Peter Haworth, Alex Tweedly and Jacques Hausser for helping me understand why i'm confused! I have tried to start a conversation on the improve list about Jacques' suggestion. Graham On 20 Aug 2014, at 10:02, Jacques Hausser wrote: > > Le 20 ao?t 2014 ? 03:48, Peter Haworth a ?crit : > >> Yes, thanks Alex, I missed that. It seems that multiply also works that >> way so I guess the matrixMultiply command must be like the transpose >> command - works on the old style arrays only. I wonder why they don't mark >> those commands a deprecated? > > I agree these commands should be revised and adapted to the new syntax. They were very useful in their time, e.g. in matrix calculus - I used them a lot for multivariate statistical analyses several years ago. But now Constantina Spanoude provides her "Matrix ReCoded" library (http://newsletters.livecode.com/october/issue158/newsletter2.php) which seems quite powerful (I didn't test it but I will as soon as I have time for it). Free advertisement ;) > > ****************************************** > Prof. Jacques Hausser > Department of Ecology and Evolution > Biophore / Sorge > University of Lausanne > CH 1015 Lausanne > please use my private address: > 6 route de Burtigny > CH-1269 Bassins > tel: ++ 41 22 366 19 40 > mobile: ++ 41 79 757 05 24 > E-Mail: jacques.hausser at unil.ch > ******************************************* > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devinasay at gmail.com Wed Aug 20 04:51:21 2014 From: devinasay at gmail.com (Devin Asay) Date: Wed, 20 Aug 2014 02:51:21 -0600 Subject: Two quick questions: In-Reply-To: References: Message-ID: <55947F4F-21D8-4A98-BB0C-B578007290B8@byu.edu> On Aug 19, 2014, at 11:47 PM, Paul D. DeRocco wrote: > 1) What's the simplest way to test if running under the LC IDE versus as a > standalone? > > 2) For a Mac standalone, how do I get the full path of the .app file, > which is actually a directory? I'm trying to get the standalone to find a > custom external .bundle which is actually contained inside the .app file. Paul, Re #2: In a Mac standalone the defaultFolder property will return the path to the .app file. If you want the path to the executable inside the bundle, use the filename of the stack and chop off the last item. I often include a function like this: function parentFolder get the filename of this stack set the item delimiter to slash return item 1 to -1 of it end parentFolder That works in the traditional Mac OS X environment; once we have to start using sandboxed apps we may be able to get that info using specialFolderPath(?engine?), as you can now on iOS. HTH Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com From m.schonewille at economy-x-talk.com Wed Aug 20 05:00:52 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 20 Aug 2014 11:00:52 +0200 Subject: Black input boxes in Linux (Ubuntu) In-Reply-To: References: <53DF1EB4.3040409@fourthworld.com> <53F3ED68.6040208@tweedly.net> Message-ID: <53F463C4.9020405@economy-x-talk.com> Hi Andrew, If I'm not mistaken, this happens with fields that have their backColor set to empty. Set the backColor of the fields to 255,255,255 and it should be fine (or use 254,254,254 for instance). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/20/2014 10:44, Andrew Henshaw wrote: > Ive got a user who is running Ubuntu and all the input boxes have a black background so he cannot see what he is entering or selecting. > > Ive tried an install of the same version of Ubuntu here and its working fine for me. > > Any ideas what may be causing this and how to work around it? From richmondmathewson at gmail.com Wed Aug 20 05:13:39 2014 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 20 Aug 2014 12:13:39 +0300 Subject: Black input boxes in Linux (Ubuntu) In-Reply-To: <53F463C4.9020405@economy-x-talk.com> References: <53DF1EB4.3040409@fourthworld.com> <53F3ED68.6040208@tweedly.net> <53F463C4.9020405@economy-x-talk.com> Message-ID: <53F466C3.4050304@gmail.com> On 20/08/14 12:00, Mark Schonewille wrote: > Hi Andrew, > > If I'm not mistaken, this happens with fields that have their > backColor set to empty. Set the backColor of the fields to 255,255,255 > and it should be fine (or use 254,254,254 for instance). > > -- > Best regards, > > Mark Schonewille > I have never seen that. I run about 8 computers running a wide variety of Ubuntu versions. Richmond. From devinasay at gmail.com Wed Aug 20 05:33:57 2014 From: devinasay at gmail.com (Devin Asay) Date: Wed, 20 Aug 2014 03:33:57 -0600 Subject: Two quick questions: In-Reply-To: <55947F4F-21D8-4A98-BB0C-B578007290B8@byu.edu> References: <55947F4F-21D8-4A98-BB0C-B578007290B8@byu.edu> Message-ID: On Aug 20, 2014, at 2:51 AM, Devin Asay wrote: > > On Aug 19, 2014, at 11:47 PM, Paul D. DeRocco wrote: > >> 1) What's the simplest way to test if running under the LC IDE versus as a >> standalone? >> >> 2) For a Mac standalone, how do I get the full path of the .app file, >> which is actually a directory? I'm trying to get the standalone to find a >> custom external .bundle which is actually contained inside the .app file. > > Paul, > > Re #2: > > In a Mac standalone the defaultFolder property will return the path to the .app file. If you want the path to the executable inside the bundle, use the filename of the stack and chop off the last item. I often include a function like this: > > function parentFolder > get the filename of this stack > set the item delimiter to slash > return item 1 to -1 of it > end parentFolder Of course that should be return item 1 to -2 of it From ben at runrev.com Wed Aug 20 05:56:12 2014 From: ben at runrev.com (Benjamin Beaumont) Date: Wed, 20 Aug 2014 10:56:12 +0100 Subject: RELEASE: LiveCode 7.0 DP10 Message-ID: Dear List Members. We are pleased to announce the release of LiveCode 7.0 DP10. * Warning, this is a pre-release with new features which have the potential to cause issues. Please ensure you backup your stacks before testing this release.* *Release Focus* 17 bug fixes *Important Changes* - We?ve update the platform component of the engine on Linux substantially. Think of it as the equivalent of the cocoa port for MacOS X. As a result, windowing related activities on Linux are subject to change. If you are testing on Linux we would encourage you to focus on windowing, window shapes, shortcuts, copy/paste and drag/drop. - LiveCode 7.0 is now based on LiveCode 6.7. It includes cocoa, the webkit browser, the new AVFoundation player on Mac. - The file format has changed for this release to accommodate Unicode. Old stacks will still work in 7.0, but stacks saved in 7.0 format will not open in previous versions of LiveCode. Therefore it is doubly critical to backup your stacks. *Known issues* - LiveCode 7 64-bit Linux installer does not run for "All Users". To install for all users use the command line install or install for "you only". *Release contents* The number of bugs fixed is so large that it no longer makes sense to include a summary in the release email. Instead, please look at the bug fix section of the release notes which can be found here: http://downloads.livecode.com/livecode/7_0_0/LiveCodeNotes-7_0_0_dp_10.pdf *Getting this release* LiveCode 7.0 is not yet part of the auto-update process yet. We'll add it once 7.0 once we enter the RC cycle. For the time being we're looking to our more experienced community members to help with initial testing by downloading directly at: http://downloads.livecode.com/livecode/ *Feeding Back* If you find an issue in this release, please report a bug at quality.runrev.com. Warm regards, The LiveCode Team From richmondmathewson at gmail.com Wed Aug 20 07:34:37 2014 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 20 Aug 2014 14:34:37 +0300 Subject: Adventures with a G5 iMac Message-ID: <53F487CD.2000809@gmail.com> So: yesterday, I installed a 1.5 TB SATA Hard Disk into the machine and partitioned it into 6 bits. I installed Mac OS 10.5.8 onto one partition. Today I am installing Mac OS 10.4.11 onto another partition . . . ---------------------------------- The installer (as previously mentioned) for LC 6.6.2 does not work on 10.5.8, nor does it work on 10.4.11 (which somebody said would work, but is not documented). ___________________________ I will install Mac OS 10.3.9 onto another partition. I will clone a Mac OS 9.2.1 system onto another partition using Firewire Target mode across from my G3 iMac. A G5 iMac cannot boot Mac OS 9: but it can run Mac OS 9 in both 10.3.9 and 10.4.11. ----------------------------------- Obviously (!!!!!!!!!) the installer for 6.6.2 was NOT tested on a physical PPC machine. Richmond. From henshaw at me.com Wed Aug 20 08:05:55 2014 From: henshaw at me.com (Andrew Henshaw) Date: Wed, 20 Aug 2014 13:05:55 +0100 Subject: Black input boxes in Linux (Ubuntu) In-Reply-To: <53F463C4.9020405@economy-x-talk.com> References: <53DF1EB4.3040409@fourthworld.com> <53F3ED68.6040208@tweedly.net> <53F463C4.9020405@economy-x-talk.com> Message-ID: <5251569B-D8CF-4B08-868E-6F502F45A4D9@me.com> Thanks Mark, Do you know of any way to replicate the issue as I cannot seem to do it. Ive tried a few builds of Ubuntu so I think it may be relevant to the graphics card. Ideally if i can repllicate it, I can go through the project and make sure ive not missed any fields. Thanks Andy On 20 Aug 2014, at 10:00, Mark Schonewille wrote: > Hi Andrew, > > If I'm not mistaken, this happens with fields that have their backColor set to empty. Set the backColor of the fields to 255,255,255 and it should be fine (or use 254,254,254 for instance). > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > On 8/20/2014 10:44, Andrew Henshaw wrote: >> Ive got a user who is running Ubuntu and all the input boxes have a black background so he cannot see what he is entering or selecting. >> >> Ive tried an install of the same version of Ubuntu here and its working fine for me. >> >> Any ideas what may be causing this and how to work around it? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From fmoyer at aol.com Wed Aug 20 08:42:08 2014 From: fmoyer at aol.com (Fred Moyer) Date: Wed, 20 Aug 2014 08:42:08 -0400 Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 In-Reply-To: References: Message-ID: <3A4BB7E4-0997-4B57-B83E-3FD921EB64CF@aol.com> Is your problem possibly related to the problem that I?m having with 6.6.2? When I press cmd-O, it takes forever for the open window to show up. It?s been suggested that this delay might be related to the fact that I have LiveCode listed in System Preferences: Security & Privacy: Accessibility. (I?m using Mac.) The delay only happens once. The 2nd time it is normal. Fred On Aug 20, 2014, at 2:02 AM, use-livecode-request at lists.runrev.com wrote: > Message: 13 > Date: Tue, 19 Aug 2014 19:02:48 +0200 > From: "Tiemo Hollmann TB" > To: "'How to use LiveCode'" > Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 > Message-ID: <005201cfbbcf$67da2e10$378e8a30$@de> > Content-Type: text/plain; charset="us-ascii" > > Hello, > > When opening one of my stacks in LC 6.5.2 IDE it performs its tasks in 1-2 > sec. When opening the same stack in 6.6.2 it takes between 30 - 90 secs. > > The program checks a local file and some PHPs with MySQL calls on my server. > I tested both IDE versions with the same stack multiple times with the same > result, to exclude server issues. > > Before digging hours or days into the depth of my old stack I wanted to ask, > if there are any known issues between these LC versions or hints where to > look first? > > > > Thanks for any hint > > Tiemo > > From ambassador at fourthworld.com Wed Aug 20 09:57:15 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 20 Aug 2014 06:57:15 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: Message-ID: <53F4A93B.1020709@fourthworld.com> Peter Haworth wrote: > On Tue, Aug 19, 2014 at 5:35 PM, Alex Tweedly wrote: > >> But you get them (I think) just with "add", etc. > > Yes, thanks Alex, I missed that. It seems that multiply also works > that way so I guess the matrixMultiply command must be like the > transpose command - works on the old style arrays only. I wonder > why they don't mark those commands a deprecated? Because they still work and are supported for the foreseeable future. It may be convenient to extend the behavior of matrixMultiply to wok on multidimensional arrays, but given that the current behavior is in use it would be wise to continue supporting it. Matrices are not necessarily arrays; the reason there's a matrixMultiply but not matrixAdd, matrixSubtract, etc. is because matrix multiplication is commonly used as part of a larger sequence of analytics operations across a data set, not just as a convenience for doing arithmetic on individual values that just happen to be grouped together in a single variable. Many years ago nearly Jeanne Devoto exhausted herself trying to explain to my math-challenged self why matrixMultiply was useful while other seemingly-similar arithmetic operations much less so, but ultimately gave up and merely pointed me to this Wikipedia page - it offers a much better explanation of how matrix multiplication is used than I could offer: In short, if someone wants to submit an enhancement request for either matrixMultiply to work on multiple dimensions when present, or an arrayMultiply if that's what's being sought, that could be very useful as long as any such extensions to the language continue to support existing code relying on current behavior. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Aug 20 10:24:27 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 20 Aug 2014 07:24:27 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: Message-ID: <53F4AF9B.8010505@fourthworld.com> Across many programming languages we see two primary types of arrays: indexed and associative. Both are useful, each with their own strengths and weaknesses. Neither is broken, and nether is a complete superset of the other. All arrays offer a single variable as a collection of pointers to values, in which each value can be obtained much more efficiently than can be done with lists. We could think of arrays as name-value pairs, in which the name is the key and the value can be nearly anything, including strings, binary data, or even another array. When an array element's value is itself an array, the common notation for this is to use another set of brackets to address the sub-array's elements, e.g.: put MyArray[1][2] You can also conveniently extract the subarray if you want to work on it outside of its containing array: put MyArray[1] into tAnotherArray put tAnotherArray[2] Indexed arrays use numeric values as their keys, while associative arrays use strings. One feature indexed arrays offer is that their keys reflect a certain ordinal relationship which adjusts itself on the fly to accommodate deletions. That is, if you have an array with three elements numbered 1,2, and 3, and you delete element 2, what was element 3 is now in the #2 slot. But because associative arrays allow nearly any string to be the key, we can have keys comprised solely of numerals to achieve most useful results from indexed arrays, and a whole lot more. Both associative and indexed arrays can include things like: get MyArray[1] get MyArray[2] get MyArray[3] ...but only associative arrays can use strings like: get myArray["bob"] get myArray["mary"] get myArray["steve"] While associative arrays are not truly a superset of indexed arrays, they support such a broader range of applicable use cases that they made a good choice for a first implementation of arrays in LiveCode (or back then, "MetaCard"). However, given an indexed array's unique ability to adjust its keys during delete operations, it could be useful to add something like indexedArray as a new data type. The trick then becomes, "How do we declare when we want an indexed array?" Currently we just put values into variable slots within brackets, and the engine sets up the hash and pointers and all the rest so we don't ever need to explicitly declare that we want an associative array. So if we were to propose that LiveCode add indexed arrays, the first thing we'll want to do is come up with the syntax for specifying those when those are what we want, ideally allowing all other usage to continue using associative arrays as they have all these years. Suggestions on what that syntax should look like? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Wed Aug 20 10:37:44 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 20 Aug 2014 14:37:44 +0000 Subject: Two quick questions: In-Reply-To: References: Message-ID: <3B144AF7-6A4E-452E-8A30-E81B98EA4294@iotecdigital.com> I don?t have a standalone to test with at the moment but try the full name of the stack. Bob S On Aug 19, 2014, at 22:47 , Paul D. DeRocco wrote: > 1) What's the simplest way to test if running under the LC IDE versus as a > standalone? > > 2) For a Mac standalone, how do I get the full path of the .app file, > which is actually a directory? I'm trying to get the standalone to find a > custom external .bundle which is actually contained inside the .app file. > > -- > > Ciao, Paul D. DeRocco > Paul mailto:pderocco at ix.netcom.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 20 10:38:07 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 20 Aug 2014 14:38:07 +0000 Subject: Two quick questions: In-Reply-To: References: Message-ID: <8DEFE6F0-DDF0-4E33-A4FA-704AEBF0A60C@iotecdigital.com> Sorry I meant long name. Bob S On Aug 19, 2014, at 22:47 , Paul D. DeRocco wrote: > 1) What's the simplest way to test if running under the LC IDE versus as a > standalone? > > 2) For a Mac standalone, how do I get the full path of the .app file, > which is actually a directory? I'm trying to get the standalone to find a > custom external .bundle which is actually contained inside the .app file. > > -- > > Ciao, Paul D. DeRocco > Paul mailto:pderocco at ix.netcom.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Aug 20 10:41:06 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 20 Aug 2014 07:41:06 -0700 Subject: Black input boxes in Linux (Ubuntu) In-Reply-To: <5251569B-D8CF-4B08-868E-6F502F45A4D9@me.com> References: <5251569B-D8CF-4B08-868E-6F502F45A4D9@me.com> Message-ID: <53F4B382.3050603@fourthworld.com> Andrew Henshaw wrote: > Do you know of any way to replicate the issue as I cannot seem to do > it. Ive tried a few builds of Ubuntu so I think it may be relevant > to the graphics card. > > Ideally if i can repllicate it, I can go through the project and > make sure ive not missed any fields. I work on Ubuntu 14.04 daily, and Lubuntu 14.04 almost weekly, and haven't yet seen this, but I'll keep an eye out for it. It may be an interaction with the driver - does your use have a dedicated graphics card? Both of my current Linux GUI boxes use dedicated graphics. If we're able to come up with a reproducible recipe please make sure a bug report is filed against it. RunRev's Fraser Gordon has been doing a stellar job of rewriting significant portions of LC's interace with Linux GUI components for v7 (dp 10 was just released - worth checking out), so this is an excellent time to pin down any such details. In fact, Fraser's been knocking off Linux bug reports nearly as fast as I can type them - thanks, Fraser! -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Wed Aug 20 10:45:04 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 20 Aug 2014 14:45:04 +0000 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <53F4AF9B.8010505@fourthworld.com> References: <53F4AF9B.8010505@fourthworld.com> Message-ID: How about using {} instead of []? Bob S On Aug 20, 2014, at 07:24 , Richard Gaskin > wrote: So if we were to propose that LiveCode add indexed arrays, the first thing we'll want to do is come up with the syntax for specifying those when those are what we want, ideally allowing all other usage to continue using associative arrays as they have all these years. Suggestions on what that syntax should look like? From MikeKerner at roadrunner.com Wed Aug 20 11:18:40 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 20 Aug 2014 11:18:40 -0400 Subject: Blow her away with your gigantic weapon. In-Reply-To: <53F388B6.90006@gmail.com> References: <53F388B6.90006@gmail.com> Message-ID: that was a little too creepy. On Tue, Aug 19, 2014 at 1:26 PM, Richmond wrote: > It is 'odd' how the coded messages I keep getting in my Spam box inspire > me to > post on the Livecode Use-List. > > Well I certainly intend to. > > Currently developing an interface to input text in Anglo-Saxon, Gothic, > Old High German > and Runes to blow my wife away, as this is exactly what she needs for her > book on > the development of Modern English from the viewpoint of Cognitive > Linguistics. > > Now the question comes as to whether I should develop it in Livecode 7 > with a view of > going straight to HTML5 when it is delivered or sticking with a pre-7 > version using the sort > of code I am used to. > > I wonder how many people have started using the new Unicode syntax for > their > gigantic weapons? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From jbv at souslelogo.com Wed Aug 20 11:23:53 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 20 Aug 2014 18:23:53 +0300 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: <53F4AF9B.8010505@fourthworld.com> Message-ID: <3688a94f5245909b9874935896adf58e.squirrel@185.8.104.234> I was thinking : set the indexedarray of myArray to true set the indexedarray of myArray to false but then what happens when you switch that property from true to false for the same array within a handler ? Same question for "{}" notation : what happens when the same handler contains these 2 successive lines : add 1 to myArray{10} add 1 to myArray[10] Best jbv > How about using {} instead of []? > > Bob S > > > On Aug 20, 2014, at 07:24 , Richard Gaskin > > wrote: > > So if we were to propose that LiveCode add indexed arrays, the first thing > we'll want to do is come up with the syntax for specifying those when > those are what we want, ideally allowing all other usage to continue using > associative arrays as they have all these years. > > Suggestions on what that syntax should look like? > From m.schonewille at economy-x-talk.com Wed Aug 20 11:28:21 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 20 Aug 2014 17:28:21 +0200 Subject: Black input boxes in Linux (Ubuntu) In-Reply-To: <5251569B-D8CF-4B08-868E-6F502F45A4D9@me.com> References: <53DF1EB4.3040409@fourthworld.com> <53F3ED68.6040208@tweedly.net> <53F463C4.9020405@economy-x-talk.com> <5251569B-D8CF-4B08-868E-6F502F45A4D9@me.com> Message-ID: <53F4BE95.80800@economy-x-talk.com> Hi Andrew, Which version of LiveCode is the user using? Is it possible that the user saw this in a standalone that was created with version 5.x or earlier? Knowing the Ubuntu version number would also help. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/20/2014 14:05, Andrew Henshaw wrote: > Thanks Mark, > > Do you know of any way to replicate the issue as I cannot seem to do it. Ive tried a few builds of Ubuntu so I think it may be relevant to the graphics card. > > Ideally if i can repllicate it, I can go through the project and make sure ive not missed any fields. > > Thanks > > Andy From prothero at earthednet.org Wed Aug 20 12:05:16 2014 From: prothero at earthednet.org (Earthednet-wp) Date: Wed, 20 Aug 2014 09:05:16 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <53F4AF9B.8010505@fourthworld.com> References: <53F4AF9B.8010505@fourthworld.com> Message-ID: <5BD7C5FA-4F79-4F4B-9952-22BEABD392D0@earthednet.org> Richard, I'm still pretty new to livecode, so my first exposure to LC arrays left me a bit skeptical. I am an experienced Director programmer and had gotten very fluent with lingo "property lists", which is the closest analogy to the LC array. In Lingo (Director's main language), there are statements like x=getaProp(stuff) and setAProp(stuff), and several others to access, set, sort, and manipulate this entity. After using lc's arrays, I grew to appreciate their compact, much more intuitive, syntax. "Put myValue into myArray["whatever"]" is much easier to remember than "setAProp" and a heck of a lot more intuitive. I did like Director's dot notation, tho. Regarding truly indexed arrays, they would be most useful, it seems to me, if there is a speed advantage for matrix operations, where a numerical indexed array might be faster to access than one based on string keys. Functionally, the behavior of indexed arrays, where deleting an entry would adjust references to higher numbered entries might be an advantage if one was trying to convert matrix manipulation libraries from other languages, to LC. Building these matrix functions into a LC app, using LC code, is not difficult and there are numerous sources for routines in various languages. To me, matrix operations seem pretty specialized, outside of lc's area of strength. These routines could also be implemented as xtras, for the special applications that need them and require highest speed. Building them into the engine doesn't seem a high priority. I feel that there are many more high priority needs for LC than building matrix operations into the engine, which can be easily implemented as functions in LC talk. My humble opinion. Regards, Bill William Prothero http://es.earthednet.org > On Aug 20, 2014, at 7:24 AM, Richard Gaskin wrote: > > Across many programming languages we see two primary types of arrays: indexed and associative. > > Both are useful, each with their own strengths and weaknesses. Neither is broken, and nether is a complete superset of the other. > > All arrays offer a single variable as a collection of pointers to values, in which each value can be obtained much more efficiently than can be done with lists. > > We could think of arrays as name-value pairs, in which the name is the key and the value can be nearly anything, including strings, binary data, or even another array. > > When an array element's value is itself an array, the common notation for this is to use another set of brackets to address the sub-array's elements, e.g.: > > put MyArray[1][2] > > You can also conveniently extract the subarray if you want to work on it outside of its containing array: > > put MyArray[1] into tAnotherArray > put tAnotherArray[2] > > Indexed arrays use numeric values as their keys, while associative arrays use strings. > > One feature indexed arrays offer is that their keys reflect a certain ordinal relationship which adjusts itself on the fly to accommodate deletions. That is, if you have an array with three elements numbered 1,2, and 3, and you delete element 2, what was element 3 is now in the #2 slot. > > But because associative arrays allow nearly any string to be the key, we can have keys comprised solely of numerals to achieve most useful results from indexed arrays, and a whole lot more. > > Both associative and indexed arrays can include things like: > > get MyArray[1] > get MyArray[2] > get MyArray[3] > > ...but only associative arrays can use strings like: > > get myArray["bob"] > get myArray["mary"] > get myArray["steve"] > > While associative arrays are not truly a superset of indexed arrays, they support such a broader range of applicable use cases that they made a good choice for a first implementation of arrays in LiveCode (or back then, "MetaCard"). > > However, given an indexed array's unique ability to adjust its keys during delete operations, it could be useful to add something like indexedArray as a new data type. > > The trick then becomes, "How do we declare when we want an indexed array?" > > Currently we just put values into variable slots within brackets, and the engine sets up the hash and pointers and all the rest so we don't ever need to explicitly declare that we want an associative array. > > So if we were to propose that LiveCode add indexed arrays, the first thing we'll want to do is come up with the syntax for specifying those when those are what we want, ideally allowing all other usage to continue using associative arrays as they have all these years. > > Suggestions on what that syntax should look like? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From henshaw at me.com Wed Aug 20 12:15:52 2014 From: henshaw at me.com (Andrew Henshaw) Date: Wed, 20 Aug 2014 17:15:52 +0100 Subject: Black input boxes in Linux (Ubuntu) In-Reply-To: <53F4BE95.80800@economy-x-talk.com> References: <53DF1EB4.3040409@fourthworld.com> <53F3ED68.6040208@tweedly.net> <53F463C4.9020405@economy-x-talk.com> <5251569B-D8CF-4B08-868E-6F502F45A4D9@me.com> <53F4BE95.80800@economy-x-talk.com> Message-ID: <3D9829FF-2EB8-4910-B497-AB7BB4A50CAC@me.com> Its compiled with Livecode 6.6.2, and he has Ubuntu 14 apparently. Ive tested it here on the latest Ubuntu and Mint distributions and it works fine for me so Im guessing its something specific to the setup. On 20 Aug 2014, at 16:28, Mark Schonewille wrote: > Hi Andrew, > > Which version of LiveCode is the user using? Is it possible that the user saw this in a standalone that was created with version 5.x or earlier? Knowing the Ubuntu version number would also help. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > On 8/20/2014 14:05, Andrew Henshaw wrote: >> Thanks Mark, >> >> Do you know of any way to replicate the issue as I cannot seem to do it. Ive tried a few builds of Ubuntu so I think it may be relevant to the graphics card. >> >> Ideally if i can repllicate it, I can go through the project and make sure ive not missed any fields. >> >> Thanks >> >> Andy > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Aug 20 12:22:04 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 20 Aug 2014 09:22:04 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <53F4A93B.1020709@fourthworld.com> References: <53F4A93B.1020709@fourthworld.com> Message-ID: On Wed, Aug 20, 2014 at 6:57 AM, Richard Gaskin wrote: > > transpose command - works on the old style arrays only. I wonder > > why they don't mark those commands a deprecated? > > Because they still work and are supported for the foreseeable future. Hi Richard, I may be misunderstanding but does that imply it's still possible to create "old style" arrays in Livecode? As a relative newcomer to LC, I've only ever known about the current form of arrays and wouldn't know how to set about creating one of the original arrays. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From pete at lcsql.com Wed Aug 20 12:33:03 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 20 Aug 2014 09:33:03 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <3688a94f5245909b9874935896adf58e.squirrel@185.8.104.234> References: <53F4AF9B.8010505@fourthworld.com> <3688a94f5245909b9874935896adf58e.squirrel@185.8.104.234> Message-ID: I wouldn't be in favor of using {}. Problem is that LC currently accepts those characters as delimiters for the keys of an array. I don't use them on purpose but every now and again I notice I typed one by mistake. Seems like a backwards compatibility problem. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Aug 20, 2014 at 8:23 AM, wrote: > I was thinking : > set the indexedarray of myArray to true > set the indexedarray of myArray to false > > but then what happens when you switch that property from true > to false for the same array within a handler ? > > Same question for "{}" notation : what happens when the same > handler contains these 2 successive lines : > add 1 to myArray{10} > add 1 to myArray[10] > > Best > jbv > > > How about using {} instead of []? > > > > Bob S > > > > > > On Aug 20, 2014, at 07:24 , Richard Gaskin > > > wrote: > > > > So if we were to propose that LiveCode add indexed arrays, the first > thing > > we'll want to do is come up with the syntax for specifying those when > > those are what we want, ideally allowing all other usage to continue > using > > associative arrays as they have all these years. > > > > Suggestions on what that syntax should look like? > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Wed Aug 20 12:50:00 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 20 Aug 2014 09:50:00 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: Message-ID: <53F4D1B8.5070303@fourthworld.com> Peter Haworth wrote: > I may be misunderstanding but does that imply it's still possible to > create "old style" arrays in Livecode? As a relative newcomer to LC, > I've only ever known about the current form of arrays and wouldn't > know how to set about creating one of the original arrays. An array is just a collection of key-value pairs, and with associative arrays each key is a string. All that's changed in recent years is that -- in addition to any text or binary data as we've always had -- you can now use an array as the value for an element, effectively nesting them. But for keys at any level, a string is a string, whether it's: get tArray["Bob"] ...or: get tArray["1"] ...or: get tArray[1] ...or: get tArray["1,2"] ...or: put 1 into tFirstPart put 2 into tSecondPart get tArray[ tFirstPart, tSecondPart] If you need to work on an array that's stored as the value in another array, you'll want to use: put tArray[1] into tAnotherArray get tAnotherArray[2] ...or shorter, you can access the second-level array without extracting it first by using a second set of brackets: get tArray[1][2] But with many uses, such as matrix multiplication, you'll probably never need to be able to treat the second dimension as an extractable subset, more interested in the collection as a whole. So when working on one collection you can use: get tArray[1,2] We could illustrate each like this: One-dimensional tArray keys: 1,1 1,2 1,3 2,1 2,2 2,3 Two-dimensional tArray keys: 1 tArray[1] keys: 1 2 3 2 tArray[2] keys: 1 2 3 Multidimensional arrays are very useful when the second (and any subsequent dimensions) may be needed to be worked on as collections in themselves. But when only working on one collection as a whole, it probably doesn't matter much whether you organize your collection as a one-dimensional array in which parts of the key string provide a sort of row-and-column designation, or make a two-dimensional array. One advantage of the former is that it allows you to use the existing matrixMultiply. :) There may also be a modest performance gain from using a single-dimensional array when practical, because each dimension has to run the key through a hash function to determine the memory location of its associated value. That said, the hashes used for most associative aren't nearly as complex as cryptographic hashes, so I doubt the performance difference would matter much. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Wed Aug 20 12:55:22 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 20 Aug 2014 09:55:22 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: <53F4AF9B.8010505@fourthworld.com> <3688a94f5245909b9874935896adf58e.squirrel@185.8.104.234> Message-ID: Forgot to say that I'm not sure I see the need for indexed arrays. Then again, I'm also not sure I understand the difference. If it's just that deleting a key shuffles all the other keys up, it's pretty trivial to do that in a script as is inserting a new key and shuffling the other keys down. I have standard handlers that do that in a few lines. It seems that folks are somewhat confused about how to use one type of array so adding another would probably just increase that confusion, but if there are other benefits other than the key shuffling I guess it might be worthwhile. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Aug 20, 2014 at 9:33 AM, Peter Haworth wrote: > I wouldn't be in favor of using {}. Problem is that LC currently accepts > those characters as delimiters for the keys of an array. I don't use them > on purpose but every now and again I notice I typed one by mistake. Seems > like a backwards compatibility problem. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Wed, Aug 20, 2014 at 8:23 AM, wrote: > >> I was thinking : >> set the indexedarray of myArray to true >> set the indexedarray of myArray to false >> >> but then what happens when you switch that property from true >> to false for the same array within a handler ? >> >> Same question for "{}" notation : what happens when the same >> handler contains these 2 successive lines : >> add 1 to myArray{10} >> add 1 to myArray[10] >> >> Best >> jbv >> >> > How about using {} instead of []? >> > >> > Bob S >> > >> > >> > On Aug 20, 2014, at 07:24 , Richard Gaskin >> > > wrote: >> > >> > So if we were to propose that LiveCode add indexed arrays, the first >> thing >> > we'll want to do is come up with the syntax for specifying those when >> > those are what we want, ideally allowing all other usage to continue >> using >> > associative arrays as they have all these years. >> > >> > Suggestions on what that syntax should look like? >> > >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From jacques.hausser at unil.ch Wed Aug 20 12:56:54 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Wed, 20 Aug 2014 18:56:54 +0200 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <5BD7C5FA-4F79-4F4B-9952-22BEABD392D0@earthednet.org> References: <53F4AF9B.8010505@fourthworld.com> <5BD7C5FA-4F79-4F4B-9952-22BEABD392D0@earthednet.org> Message-ID: <1F75AB37-5561-409D-B3A7-383260A1B502@unil.ch> Bill and Richard, I fully agree with Bill about the ease of implementing the necessary matrix operations functions in LC language - I did it, actually, for what I needed, like computing eigenvalues and eigenvectors. It's not even so slow if your matrices are not enormous ! And just today, I got a message from bugzilla-daemon telling that at Runrev they have worked out (avaiting build) the possibility to pass subarrays by reference - very useful ! So we already have a very good tool for occasional matrix operations. What I suggested is ONLY to deprecate (not suppress, just deprecate) the two part keys in bidimentional arrays like myMatrix[i,j] and to allow matrixMultiply and transpose to work with matrices built with [i][j] notation. Seems to me it would be more coherent. As for big matrices crunching, well, meteorologists working with Cray machines probably don't use LiveCode... (perhaps they should, to get more convincing forecasts). Jacques From ambassador at fourthworld.com Wed Aug 20 13:32:44 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 20 Aug 2014 10:32:44 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <1F75AB37-5561-409D-B3A7-383260A1B502@unil.ch> References: <1F75AB37-5561-409D-B3A7-383260A1B502@unil.ch> Message-ID: <53F4DBBC.8040504@fourthworld.com> Jacques Hausser wrote: > I fully agree with Bill about the ease of implementing the necessary > matrix operations functions in LC language - I did it, actually, for > what I needed, like computing eigenvalues and eigenvectors. It's not > even so slow if your matrices are not enormous ! That's pretty exciting. Is that code available, and if so under what license? I have a need for eigenvectors on the horizon. > As for big matrices crunching, well, meteorologists working with Cray > machines probably don't use LiveCode... (perhaps they should, to get > more convincing forecasts). Cast my vote with "Should". :) I used to feel LC may not be suited for many large-scale tasks, but looking back I think that's just an inferiority complex we can overcome. Today's Big Data scene is chock full o' scripting languages, and there's no reason LiveCode can't attain its rightful place among them. Here's just one of many data science blogs talking up the value of JavaScript in Node.js: In the Python world, their libraries and tools for parallel data processing include the Disco distributed MapReduce system, and others: Heck, most of the books in O'Reilly's Data Science Starter Kit rely on scripting languages, often Python: Python's great, but in terms of applicable use-cases it's roughly on par with LiveCode on the desktop, much as PHP covers pretty much the same range of territory as LiveCode Server. I'd like to think that as the LiveCode community grows, we'll see ever more tools and libraries of our own for this sort of work. Run on commodity clusters, just like all the others, there's no end to what we can accomplish with LiveCode. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Wed Aug 20 14:27:59 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 20 Aug 2014 11:27:59 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <53F4D1B8.5070303@fourthworld.com> References: <53F4D1B8.5070303@fourthworld.com> Message-ID: On Wed, Aug 20, 2014 at 9:50 AM, Richard Gaskin wrote: > get tArray[1,2] Thanks for the explanation Richard. So the only difference is that they are one dimensional but the keys can kind of express multiple dimensions by being numeric and separated by commas? Are the keys limited to the two dimensions in your example? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From ambassador at fourthworld.com Wed Aug 20 14:55:39 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 20 Aug 2014 11:55:39 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: Message-ID: <53F4EF2B.5020906@fourthworld.com> Peter Haworth wrote: > On Wed, Aug 20, 2014 at 9:50 AM, Richard Gaskin wrote: > >> get tArray[1,2] > > Thanks for the explanation Richard. So the only difference is that they are > one dimensional but the keys can kind of express multiple dimensions by > being numeric and separated by commas? Are the keys limited to the two > dimensions in your example? Well, technically it's just one-dimensional, a string that happens to have a comma in it. MatrixMultiply requires that format, in which the string is comprised of two integers separated by a comma. But for any other purpose you can use any string you like. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From prothero at earthednet.org Wed Aug 20 15:08:42 2014 From: prothero at earthednet.org (William Prothero) Date: Wed, 20 Aug 2014 12:08:42 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <53F4DBBC.8040504@fourthworld.com> References: <1F75AB37-5561-409D-B3A7-383260A1B502@unil.ch> <53F4DBBC.8040504@fourthworld.com> Message-ID: <7DF621E7-5615-4D74-BBE2-648060728657@earthednet.org> Richard: Google ?calculate eigenvectors?. There are many references and the code is pretty standard math, no licensing. It?s taught in most linear algebra classes at the college level. Bill William A. Prothero http://earthednet.org/ From dochawk at gmail.com Wed Aug 20 18:09:10 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 20 Aug 2014 15:09:10 -0700 Subject: revDataFromQuery and DELETE FROM In-Reply-To: <79037775-ABFB-4564-9178-ADCD9D948D78@clearvisiontech.com> References: <79037775-ABFB-4564-9178-ADCD9D948D78@clearvisiontech.com> Message-ID: On Sun, Aug 17, 2014 at 8:33 PM, Dan Friedman wrote: > Thanks for the reply. The entire error string is "revdberr," (with the > comma). I tried your suggestion of using revExecuteSQL instead of > revDataFromQuery() and I did not get the error. So at least I have a > suitable workaround. Thanks for the assist! > I try to always check my results and trigger a "panic" that shows the returned error when a query fails. For this one, I just take an exact match of "revdberr," as a success code. So if theRes <> "revdberr" then panic "bad delete in someFunction" & cr & cr & theRes end if If you're *not* checking your return codes, you're asking for pain . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From rdimola at evergreeninfo.net Wed Aug 20 18:16:32 2014 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 20 Aug 2014 18:16:32 -0400 Subject: revDataFromQuery and DELETE FROM In-Reply-To: References: <79037775-ABFB-4564-9178-ADCD9D948D78@clearvisiontech.com> Message-ID: <006701cfbcc4$65da7020$318f5060$@net> Using the revExecuteSQL returns the number of deleted/inserted/updated rows in the result. Then the test is: If the result is not a number then --Error code here End if Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dr. Hawkins Sent: Wednesday, August 20, 2014 6:09 PM To: How to use LiveCode Subject: Re: revDataFromQuery and DELETE FROM On Sun, Aug 17, 2014 at 8:33 PM, Dan Friedman wrote: > Thanks for the reply. The entire error string is "revdberr," (with the > comma). I tried your suggestion of using revExecuteSQL instead of > revDataFromQuery() and I did not get the error. So at least I have a > suitable workaround. Thanks for the assist! > I try to always check my results and trigger a "panic" that shows the returned error when a query fails. For this one, I just take an exact match of "revdberr," as a success code. So if theRes <> "revdberr" then panic "bad delete in someFunction" & cr & cr & theRes end if If you're *not* checking your return codes, you're asking for pain . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacques.hausser at unil.ch Wed Aug 20 18:35:58 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Thu, 21 Aug 2014 00:35:58 +0200 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <53F4DBBC.8040504@fourthworld.com> References: <1F75AB37-5561-409D-B3A7-383260A1B502@unil.ch> <53F4DBBC.8040504@fourthworld.com> Message-ID: <2DF34DCD-6791-4510-ABE1-232052EDAAED@unil.ch> Le 20 ao?t 2014 ? 19:32, Richard Gaskin a ?crit : > Jacques Hausser wrote: > > > I fully agree with Bill about the ease of implementing the necessary > > matrix operations functions in LC language - I did it, actually, for > > what I needed, like computing eigenvalues and eigenvectors. It's not > > even so slow if your matrices are not enormous ! > > That's pretty exciting. Is that code available, and if so under what license? I have a need for eigenvectors on the horizon. Errr... not exactly available. The original code was lost (with plenty of other precious things) when I retired in 2008: I asked for a backup DVD which later (too late) turned out to be defective. Such things would happen... and I didn't need it anymore, anyway. However, I started to rebuilt it from scratch in 2010, but without the stimulation of a real need, I gave up and never tested it. Plenty of other things to do ! I'll send you this absolutely untested, scarcely documented and rather skeletal code (no error checking) off line; feel free to use it or to trash it ! Jacques From pete at lcsql.com Wed Aug 20 20:11:13 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 20 Aug 2014 17:11:13 -0700 Subject: revDataFromQuery and DELETE FROM In-Reply-To: References: <79037775-ABFB-4564-9178-ADCD9D948D78@clearvisiontech.com> Message-ID: Yes, but there is no "panic" here it's a false error seemingly caused by using revDataFromQuery for something other than a SELECT statement. I know it shouldn't do that and that you have a bug at the QCC about it but bottom line is, using revDataFromQuery or revQueryDatabase to execute anything other than a SELECT statement is asking for trouble. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Aug 20, 2014 at 3:09 PM, Dr. Hawkins wrote: > On Sun, Aug 17, 2014 at 8:33 PM, Dan Friedman > wrote: > > > Thanks for the reply. The entire error string is "revdberr," (with the > > comma). I tried your suggestion of using revExecuteSQL instead of > > revDataFromQuery() and I did not get the error. So at least I have a > > suitable workaround. Thanks for the assist! > > > > I try to always check my results and trigger a "panic" that shows the > returned error when a query fails. > > For this one, I just take an exact match of "revdberr," as a success code. > So > > if theRes <> "revdberr" then > panic "bad delete in someFunction" & cr & cr & theRes > end if > > If you're *not* checking your return codes, you're asking for pain . . . > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Wed Aug 20 20:16:14 2014 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 20 Aug 2014 20:16:14 -0400 Subject: revDataFromQuery and DELETE FROM In-Reply-To: References: <79037775-ABFB-4564-9178-ADCD9D948D78@clearvisiontech.com> Message-ID: <006d01cfbcd5$1f0a7a30$5d1f6e90$@net> +1 Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Peter Haworth Sent: Wednesday, August 20, 2014 8:11 PM To: How to use LiveCode Subject: Re: revDataFromQuery and DELETE FROM Yes, but there is no "panic" here it's a false error seemingly caused by using revDataFromQuery for something other than a SELECT statement. I know it shouldn't do that and that you have a bug at the QCC about it but bottom line is, using revDataFromQuery or revQueryDatabase to execute anything other than a SELECT statement is asking for trouble. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Aug 20, 2014 at 3:09 PM, Dr. Hawkins wrote: > On Sun, Aug 17, 2014 at 8:33 PM, Dan Friedman > > wrote: > > > Thanks for the reply. The entire error string is "revdberr," (with the > > comma). I tried your suggestion of using revExecuteSQL instead of > > revDataFromQuery() and I did not get the error. So at least I have a > > suitable workaround. Thanks for the assist! > > > > I try to always check my results and trigger a "panic" that shows the > returned error when a query fails. > > For this one, I just take an exact match of "revdberr," as a success code. > So > > if theRes <> "revdberr" then > panic "bad delete in someFunction" & cr & cr & theRes end if > > If you're *not* checking your return codes, you're asking for pain . . . > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From revolution at duncansoftware.on-rev.com Wed Aug 20 21:08:31 2014 From: revolution at duncansoftware.on-rev.com (revolution at duncansoftware.on-rev.com) Date: Wed, 20 Aug 2014 21:08:31 -0400 Subject: Why doesn't menupick work Message-ID: <719DB0E4-6B27-4751-8EE2-D033B9F23CC6@duncansoftware.on-rev.com> Why doesn't this code work? on menuPick pItemName go card pItemName end menuPick where the comboBox has a list of card names. From paulhibbert at mac.com Wed Aug 20 21:44:42 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Wed, 20 Aug 2014 18:44:42 -0700 Subject: Why doesn't menupick work In-Reply-To: <719DB0E4-6B27-4751-8EE2-D033B9F23CC6@duncansoftware.on-rev.com> References: <719DB0E4-6B27-4751-8EE2-D033B9F23CC6@duncansoftware.on-rev.com> Message-ID: Works fine for me in LC 5.5.5, LC 6.6.2 & LC 7.0(dp10) on Mac OS X 10.8.5 and in LC 6.6.2 on Windows 7. Do you see any kind of error? Paul On 2014-08-20, at 6:08 PM, revolution at duncansoftware.on-rev.com wrote: > Why doesn't this code work? > > on menuPick pItemName > go card pItemName > end menuPick > > where the comboBox has a list of card names. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Aug 20 22:17:09 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 20 Aug 2014 21:17:09 -0500 Subject: Why doesn't menupick work In-Reply-To: <719DB0E4-6B27-4751-8EE2-D033B9F23CC6@duncansoftware.on-rev.com> References: <719DB0E4-6B27-4751-8EE2-D033B9F23CC6@duncansoftware.on-rev.com> Message-ID: <53F556A5.9070807@hyperactivesw.com> On 8/20/2014, 8:08 PM, revolution at duncansoftware.on-rev.com wrote: > Why doesn't this code work? > > on menuPick pItemName > go card pItemName > end menuPick > > where the comboBox has a list of card names. Set a breakpoint at the "go" line and when it pauses, see what's in pItemName and whether there's a card with that name. You can also temporarily add "answer the result" after the "go" statement; maybe there's a silent error happening. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Thu Aug 21 02:51:22 2014 From: brahma at hindu.org (Brahmanathswami) Date: Wed, 20 Aug 2014 20:51:22 -1000 Subject: Motion Graphic in LiveCode Message-ID: <53F596EA.1070007@hindu.org> If one wanted to do some very short, but high quality motion graphics in LifeCode, what are the options? I assume that all we have is the ability to play small video clips in a player object. But then Quicktime is required -- or have we gone beyond Quicktime now... I'm not sure where media playback stands in the current releases. Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From brahma at hindu.org Thu Aug 21 02:56:52 2014 From: brahma at hindu.org (Brahmanathswami) Date: Wed, 20 Aug 2014 20:56:52 -1000 Subject: Back to Stacks! New Text Properties Message-ID: <53F59834.2080605@hindu.org> After several years of being lost in the web world and LiveCode on the server (script only universe) I'm finally going to get back into building stacks. But I'm way behind... Is there a comprehensive doc on all the new text properties? like listStyle? These are not exposed in the IDE tools (sadly) Has anyone created a plug-in that has all the new text props? -- Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From brahma at hindu.org Thu Aug 21 02:59:11 2014 From: brahma at hindu.org (Brahmanathswami) Date: Wed, 20 Aug 2014 20:59:11 -1000 Subject: Why doesn't menupick work In-Reply-To: <53F556A5.9070807@hyperactivesw.com> References: <719DB0E4-6B27-4751-8EE2-D033B9F23CC6@duncansoftware.on-rev.com> <53F556A5.9070807@hyperactivesw.com> Message-ID: <53F598BF.4090509@hindu.org> I had a very obscure bug some time back where the style of the button was causing the pull down not to work... some GUI property of the button made if fail....try the same thing in a different button.. J. Landman Gay wrote: > > On 8/20/2014, 8:08 PM, revolution at duncansoftware.on-rev.com wrote: >> >> Why doesn't this code work? >> >> on menuPick pItemName >> go card pItemName >> end menuPick >> >> where the comboBox has a list of card names. > > > Set a breakpoint at the "go" line and when it pauses, see what's in > pItemName and whether there's a card with that name. You can also > temporarily add "answer the result" after the "go" statement; maybe > there's a silent error happening. From brahma at hindu.org Thu Aug 21 03:26:48 2014 From: brahma at hindu.org (Brahmanathswami) Date: Wed, 20 Aug 2014 21:26:48 -1000 Subject: Sparkles at the end of a pencil point Message-ID: <53F59F38.30306@hindu.org> I was looking at some apps for Kids with a lady who may assist with creating functional specifications for edutainment apps. A lot of the do all kinds of "swirly stuff" with amazing colors. I haven't the faintest idea how to being to doing something like this in LiveCode and even if you create that kind of graphic effect that would actually run at a decent speed. i would settle for starters for "sparkly stuff" coming off the end of a pencil point that kid might use to draw... or her own finger on a tablet app. Is this kind of runtime motion effect even doable? If so, does anyone have any code they can share? I can see having a bunch of stars pop out on a specific even like dropping a puzzle piece into the correct location, but what I'm talking about is happening as the user draws on the iPad...the tip of the drawing tool would leave a glow effect-trail as it moved along. Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From toolbook at kestner.de Thu Aug 21 04:04:18 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 21 Aug 2014 10:04:18 +0200 Subject: AW: Massiv performance difference between LC 6.5.2 and 6.6.2 In-Reply-To: <3A4BB7E4-0997-4B57-B83E-3FD921EB64CF@aol.com> References: <3A4BB7E4-0997-4B57-B83E-3FD921EB64CF@aol.com> Message-ID: <005301cfbd16$82be8d50$883ba7f0$@de> Hello Fred, no, I'm on Windows 7 and my issue seems to be related to a windows shell operation, changing a file flag. But not yet verified. Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Fred Moyer > Gesendet: Mittwoch, 20. August 2014 14:42 > An: use-livecode at lists.runrev.com > Betreff: Re: Massiv performance difference between LC 6.5.2 and 6.6.2 > > Is your problem possibly related to the problem that I?m having with 6.6.2? > When I press cmd-O, it takes forever for the open window to show up. It?s been > suggested that this delay might be related to the fact that I have LiveCode > listed in System Preferences: Security & Privacy: Accessibility. (I?m using > Mac.) The delay only happens once. The 2nd time it is normal. > > Fred > > On Aug 20, 2014, at 2:02 AM, use-livecode-request at lists.runrev.com wrote: > > > Message: 13 > > Date: Tue, 19 Aug 2014 19:02:48 +0200 > > From: "Tiemo Hollmann TB" > > To: "'How to use LiveCode'" > > Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 > > Message-ID: <005201cfbbcf$67da2e10$378e8a30$@de> > > Content-Type: text/plain; charset="us-ascii" > > > > Hello, > > > > When opening one of my stacks in LC 6.5.2 IDE it performs its tasks in > > 1-2 sec. When opening the same stack in 6.6.2 it takes between 30 - 90 secs. > > > > The program checks a local file and some PHPs with MySQL calls on my server. > > I tested both IDE versions with the same stack multiple times with the > > same result, to exclude server issues. > > > > Before digging hours or days into the depth of my old stack I wanted > > to ask, if there are any known issues between these LC versions or > > hints where to look first? > > > > > > > > Thanks for any hint > > > > Tiemo > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Aug 21 04:34:50 2014 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 21 Aug 2014 11:34:50 +0300 Subject: PPC G5 In-Reply-To: References: Message-ID: <53F5AF2A.7030803@gmail.com> On 21/08/14 02:47, Gregg Flora wrote: > Hi Richmond, > > I have been following your adventures with a G5 computer on the Livecode forum and in fact you got me interested enough that I picked up a G5 system myself. Dummy me I didn?t even think about what OS their was and ended up with 10.4. > > The only version of Livecode that I was able to install on the 10.4 box was 4.6.4 which runs fine. > > I do have an old Mac mini PPC squirreled away that has 10.5 installed and I will check it later and see what version of Livecode is running on that. I have a licensed version [4.5] which runs perfectly well on the G5, and in fact that is the version I use for all my commercial development. I will be working with the G5 iMac until the New Year on a programme to deal with old Germanic languages [Anglo-Saxon, OHG, Gothic, Lower Franconian, and so on] as well as continued development of my Devawriter [Sanskrit] and Pismo [Old Slavic] as it has a socking great built-in monitor and provides all that I need. I am running TenFourFox as my web-browser and TenFourBird as my e-mail client, and my dear old Appleworks for any word-processing and/or spread sheets I may need. http://www.floodgap.com/software/tenfourfox/ http://en.sourceforge.jp/projects/tenfourbird/ I am just about to get distracted by WineBottler: http://winebottler.kronenberg.org/downloads If you have a load of old Mac OS 9 software that you paid much fine gold for a while back, a G5 running 10.4.11 can run them via the Classic mode. I had a spot of difficulty getting this going as the machine would not behave itself when I tried to install Mac OS 9.2.1 from my original install disc: so I had to jack my G3 iMac [which is currently a dedicated Mac OS 9 machine, to the G5 via a Firewire cable in target mode, and copy the Mac OS 9 system folder and so on across to a dedicated partition on the G5. The G5 is now set up as dual-boot: 10.4.11 & 10.5.8. I am posting this to the Use-List as well as a G5 is a d*mn fine machine which can be used extremely constructively, and if people have G5s lying around not being used they really need to consider that that is one of the ways of keeping Grannies, Granddads, and other inconvenient and penurious relatives happy and occupied. By-the-way: one of my sons was playing Warcraft and Age of Empires very successfully on the G5 over the holidays. http://macpowerpc.com/ Best, Richmond. From richmondmathewson at gmail.com Thu Aug 21 04:44:45 2014 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 21 Aug 2014 11:44:45 +0300 Subject: Sparkles at the end of a pencil point In-Reply-To: <53F59F38.30306@hindu.org> References: <53F59F38.30306@hindu.org> Message-ID: <53F5B17D.1080900@gmail.com> On 21/08/14 10:26, Brahmanathswami wrote: > I was looking at some apps for Kids with a lady who may assist with > creating functional specifications for edutainment apps. > > A lot of the do all kinds of "swirly stuff" with amazing colors. I > haven't the faintest idea how to being to doing something like this in > LiveCode and even if you create that kind of graphic effect that would > actually run at a decent speed. > > i would settle for starters for "sparkly stuff" coming off the end of > a pencil point that kid might use to draw... or her own finger on a > tablet app. > > Is this kind of runtime motion effect even doable? > > If so, does anyone have any code they can share? I can see having a > bunch of stars pop out on a specific even like dropping a puzzle piece > into the correct location, but what I'm talking about is happening as > the user draws on the iPad...the tip of the drawing tool would leave a > glow effect-trail as it moved along. I would suppose one of the very simple ways (?????) to do this sort of thing would be to have one's puzzle pieces saved as either PNG or GIF images with rather large transparent borders. Each of your puzzle pieces could overlay an animated GIF which would consist of all the frames to produce the "airy-fairies": the two images would then be grouped. So it would be the group [consisting of the puzzle piece and an underlying companion GIF] that would be dropped on the target. The group would contain code so that when it was dropped on the target the animated GIF would play once or twice and then stop. ------------------------------------------- Two problems here: 1. Controlling when the animated GIF plays [the first and last frame would have to be completely transparent]: But, as far as I recall, this has been documented either on the Use-List or in the Forums. 2. Making the animated GIF images to "do" the sparkles. -------------------------------------------- If I can get my mitts on a sparkly animated GIF [not much enthusiasm about trying to make one] I will give this a go, as it sound both fun and potentially useful in my own Elementary school endeavours. Richmond. > > > Swasti Astu, Be Well! > Brahmanathaswami From richmondmathewson at gmail.com Thu Aug 21 06:12:20 2014 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 21 Aug 2014 13:12:20 +0300 Subject: Sparkles at the end of a pencil point In-Reply-To: <53F59F38.30306@hindu.org> References: <53F59F38.30306@hindu.org> Message-ID: <53F5C604.2090203@gmail.com> http://andregarzia.on-rev.com/richmond/ITCHY/sparks.livecode.zip The code is in the group "GreenDOG". Enjoy! Richmond. From revolution at duncansoftware.on-rev.com Thu Aug 21 07:02:30 2014 From: revolution at duncansoftware.on-rev.com (revolution at duncansoftware.on-rev.com) Date: Thu, 21 Aug 2014 07:02:30 -0400 Subject: Why doesn't menupick work Message-ID: <528BB9D8-1E15-4C27-8EC5-EF2830A20899@duncansoftware.on-rev.com> On 8/20/2014, 8:08 PM, revolution at duncansoftware.on-rev.com wrote: > Why doesn't this code work? > > on menuPick pItemName > go card pItemName > end menuPick > > where the comboBox has a list of card names. >>Set a breakpoint at the "go" line and when it pauses, see what's in >>pItemName and whether there's a card with that name. You can also >>temporarily add "answer the result" after the "go" statement; maybe >>there's a silent error happening. Thanks for everyone's suggestions but... I tried setting a breakpoint and pItemName contains the name of a card. However when I tried "answer the result" the response is "No such card". When I use the message box "Put the name of card 1" it reports card " 1 External Dorsal ~" which seems to be saying that "card" is part of the name. I tried various methods of adding card to the pItemName such as put "card" && quote & pItemName & quote into pitemName go pItemName or go card card pItemName but these also failed and reported "No such card." The spaces and tilde in the card name is not the problem. There are 75+ cards and many do not have extra spaces and tildes. If I just type into the message box go card " 1 External Dorsal ~" it goes to the card. MacBook Pro OSX 10.6.8 and any version of Livecode that I have tried 6.0 6.52 6.60. From devinasay at gmail.com Thu Aug 21 07:40:06 2014 From: devinasay at gmail.com (Devin Asay) Date: Thu, 21 Aug 2014 05:40:06 -0600 Subject: Why doesn't menupick work In-Reply-To: <528BB9D8-1E15-4C27-8EC5-EF2830A20899@duncansoftware.on-rev.com> References: <528BB9D8-1E15-4C27-8EC5-EF2830A20899@duncansoftware.on-rev.com> Message-ID: On Aug 21, 2014, at 5:02 AM, revolution at duncansoftware.on-rev.com wrote: > On 8/20/2014, 8:08 PM, revolution at duncansoftware.on-rev.com wrote: >> Why doesn't this code work? >> >> on menuPick pItemName >> go card pItemName >> end menuPick >> >> where the comboBox has a list of card names. > >>> Set a breakpoint at the "go" line and when it pauses, see what's in >>> pItemName and whether there's a card with that name. You can also >>> temporarily add "answer the result" after the "go" statement; maybe >>> there's a silent error happening. > > Thanks for everyone's suggestions but... > I tried setting a breakpoint and pItemName contains the name of a card. > However when I tried "answer the result" the response is > "No such card". > When I use the message box "Put the name of card 1" it reports > card " 1 External Dorsal ~" > which seems to be saying that "card" is part of the name. > I tried various methods of adding card to the pItemName such as > put "card" && quote & pItemName & quote into pitemName > > go pItemName > > or > > go card card pItemName > > but these also failed and reported "No such card." > > The spaces and tilde in the card name is not the problem. > There are 75+ cards and many do not have extra spaces and tildes. > > If I just type into the message box > go card " 1 External Dorsal ~" it goes to the card. Two things to check: 1. In your last code example there is a space at the beginning of the card name. Is that accurate? Is the space actually in the name of the card, and if so, is the space included in the list of names in the combo box? 2. Use 'the short name' property to get just the name of the card (or whatever object you?re referring to), without getting the object type information. HTH Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com From m.schonewille at economy-x-talk.com Thu Aug 21 07:54:08 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 21 Aug 2014 13:54:08 +0200 Subject: Why doesn't menupick work In-Reply-To: <528BB9D8-1E15-4C27-8EC5-EF2830A20899@duncansoftware.on-rev.com> References: <528BB9D8-1E15-4C27-8EC5-EF2830A20899@duncansoftware.on-rev.com> Message-ID: <53F5DDE0.7090203@economy-x-talk.com> Hi, "card" is part of the name, but not of the short name. A correct card reference is card "The short name" This would be the complete name of the card and you can use it directly in a script: go card "The short name" put (there is a card "The short name") There are a few things I would not do: 1) starting card names with numbers 2) starting card names with spaces 3) including any special characters such as "/" or "#" or non-printable characters in card names 4) starting the short name of a card with "card" References such as go card "1" go cd "1 " go card "card 1 bla" would be either incorrect or a source of confusion. Depending on which version you're using, the combobox might be returning unicode. I don't really expect his, but it is easy to check, using the lenght function: on menuPick theItem put len(theItem) end menuPick and see if the number is what you expect. Did you make the list of cards in the combobox manually? Perhaps you can use this syntax: put the cardNames of this stack into btn "Your Combobox" -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/21/2014 13:02, revolution at duncansoftware.on-rev.com wrote: > On 8/20/2014, 8:08 PM, revolution at duncansoftware.on-rev.com wrote: >> Why doesn't this code work? >> >> on menuPick pItemName >> go card pItemName >> end menuPick >> >> where the comboBox has a list of card names. > >>> Set a breakpoint at the "go" line and when it pauses, see what's in >>> pItemName and whether there's a card with that name. You can also >>> temporarily add "answer the result" after the "go" statement; maybe >>> there's a silent error happening. > > Thanks for everyone's suggestions but... > I tried setting a breakpoint and pItemName contains the name of a card. > However when I tried "answer the result" the response is > "No such card". > When I use the message box "Put the name of card 1" it reports > card " 1 External Dorsal ~" > which seems to be saying that "card" is part of the name. > I tried various methods of adding card to the pItemName such as > put "card" && quote & pItemName & quote into pitemName > > go pItemName > > or > > go card card pItemName > > but these also failed and reported "No such card." > > The spaces and tilde in the card name is not the problem. > There are 75+ cards and many do not have extra spaces and tildes. > > If I just type into the message box > go card " 1 External Dorsal ~" it goes to the card. > > MacBook Pro OSX 10.6.8 and any version of Livecode that I have tried 6.0 6.52 6.60. From richmondmathewson at gmail.com Thu Aug 21 08:01:15 2014 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 21 Aug 2014 15:01:15 +0300 Subject: Sparkles at the end of a pencil point In-Reply-To: <53F5C604.2090203@gmail.com> References: <53F59F38.30306@hindu.org> <53F5C604.2090203@gmail.com> Message-ID: <53F5DF8B.9060506@gmail.com> On 21/08/14 13:12, Richmond wrote: > http://andregarzia.on-rev.com/richmond/ITCHY/sparks.livecode.zip > > The code is in the group "GreenDOG". > > Enjoy! > > Richmond. Just uploaded an updated version of this: the 'dog' on the left uses the animated GIF I downloaded from the internet, the 'dog' on the right uses an animated GIF I have just made myself. Richmond. From capellan2000 at gmail.com Thu Aug 21 10:33:45 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 21 Aug 2014 07:33:45 -0700 (PDT) Subject: Sparkles at the end of a pencil point In-Reply-To: <53F59F38.30306@hindu.org> References: <53F59F38.30306@hindu.org> Message-ID: <1408631625141-4682262.post@n4.nabble.com> Hi, Could you use a button for the sparkle effect? Scott Rossi or Colin Holgate surely have an specific and definitive answer :D Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sparkles-at-the-end-of-a-pencil-point-tp4682253p4682262.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Thu Aug 21 10:34:45 2014 From: pete at lcsql.com (Peter Haworth) Date: Thu, 21 Aug 2014 07:34:45 -0700 Subject: Back to Stacks! New Text Properties In-Reply-To: <53F59834.2080605@hindu.org> References: <53F59834.2080605@hindu.org> Message-ID: They're documented in the release notes for 5.5.4. I'm working on a mum word processing stack that implements them all but not quite ready for prime time yet. Pete lcSQL Software On Aug 20, 2014 11:56 PM, "Brahmanathswami" wrote: > After several years of being lost in the web world and LiveCode on the > server (script only universe) > > I'm finally going to get back into building stacks. > > But I'm way behind... > > Is there a comprehensive doc on all the new text properties? like > listStyle? > > These are not exposed in the IDE tools (sadly) > > Has anyone created a plug-in that has all the new text props? > -- > Swasti Astu, Be Well! > Brahmanathaswami > > Kauai's Hindu Monastery > www.HimalayanAcademy.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mkoob at rogers.com Thu Aug 21 10:45:51 2014 From: mkoob at rogers.com (Martin Koob) Date: Thu, 21 Aug 2014 07:45:51 -0700 (PDT) Subject: Motion Graphic in LiveCode In-Reply-To: <53F596EA.1070007@hindu.org> References: <53F596EA.1070007@hindu.org> Message-ID: <1408632351237-4682264.post@n4.nabble.com> One of the Kickstarter goals was " Upgraded Player control using latest native video libraries on all platforms (Mac, Windows, Linux, iOS and Android). " The first step in implementing that goal is happening in LiveCode 6.7.0 and 7.0 here is a new player object for the Mac Platform which is based on AVFoundation. This means it will basically play .mov, .mp4 and .m4v movies which use the .h264 codec. The player is not using the AVkit controller since that is only available for Mavericks and beyond so RunRev is rolling their own. There has been lots of work by the team in ensuring the features available in the old controller are present in the new controller. There are some differences and some enhancements however. if you search the quality for LiveCode 6.7.0 DPs you can see reports of enhancements or comments about what differences their will be. Most of the reports related to the player have their description prefaced with [[Player]]. Most of the [[Player]] bugs reported have been fixed but there are still some outstanding that have been confirmed and are in various stages of being fixed. My understanding is that this new player controller will be the basis for the native controllers on other platforms so getting it right at this stage is important. If you haven't tried it out yet you should do it while it is still in the DP stage. I have been testing in my use cases which cover most of the features of the current player but there are some features that I don't currently use like chapters and I am sure a couple others that would be good for someone who uses that to do some testing on it. Martin Koob -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Motion-Graphic-in-LiveCode-tp4682250p4682264.html Sent from the Revolution - User mailing list archive at Nabble.com. From neil at livecode.com Thu Aug 21 10:51:48 2014 From: neil at livecode.com (Neil Roger) Date: Thu, 21 Aug 2014 15:51:48 +0100 Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 In-Reply-To: <3A4BB7E4-0997-4B57-B83E-3FD921EB64CF@aol.com> References: <3A4BB7E4-0997-4B57-B83E-3FD921EB64CF@aol.com> Message-ID: <53F60784.1060904@livecode.com> Hi Fred, I too have been expericning this issue for the past month and its been driving me crazy :) (sometimes taking 15 seconds for a save/open dialog to appear but after this, it appears almost instantly). I had a quick look at my "Accessibility" --->"Allow the below apps to control your computer" and LiveCode was checked in this section. Un-checking LiveCode from here and then restarting LiveCode seems to have resolved the issue. Give this a go and keep us posted on how you get on. Thanks for letting us know about this. Kind Regards, Neil Roger -- LiveCode Support Team ~ http://www.livecode.com ? On 20/08/2014 13:42, Fred Moyer wrote: > Is your problem possibly related to the problem that I?m having with 6.6.2? When I press cmd-O, it takes forever for the open window to show up. It?s been suggested that this delay might be related to the fact that I have LiveCode listed in System Preferences: Security & Privacy: Accessibility. (I?m using Mac.) The delay only happens once. The 2nd time it is normal. > > Fred > > On Aug 20, 2014, at 2:02 AM, use-livecode-request at lists.runrev.com wrote: > >> Message: 13 >> Date: Tue, 19 Aug 2014 19:02:48 +0200 >> From: "Tiemo Hollmann TB" >> To: "'How to use LiveCode'" >> Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 >> Message-ID: <005201cfbbcf$67da2e10$378e8a30$@de> >> Content-Type: text/plain; charset="us-ascii" >> >> Hello, >> >> When opening one of my stacks in LC 6.5.2 IDE it performs its tasks in 1-2 >> sec. When opening the same stack in 6.6.2 it takes between 30 - 90 secs. >> >> The program checks a local file and some PHPs with MySQL calls on my server. >> I tested both IDE versions with the same stack multiple times with the same >> result, to exclude server issues. >> >> Before digging hours or days into the depth of my old stack I wanted to ask, >> if there are any known issues between these LC versions or hints where to >> look first? >> >> >> >> Thanks for any hint >> >> Tiemo >> >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Thu Aug 21 10:47:47 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 21 Aug 2014 07:47:47 -0700 (PDT) Subject: Motion Graphic in LiveCode In-Reply-To: <53F596EA.1070007@hindu.org> References: <53F596EA.1070007@hindu.org> Message-ID: <1408632467884-4682265.post@n4.nabble.com> Hi, Besides frame by frame animation, using bitmaps or vector graphics, consider employing this kind of animation used in games: http://en.wikipedia.org/wiki/Skeletal_animation In this website (and it's forums) you could find some outstanding examples of every creative and expressive possibilities of this technique. http://esotericsoftware.com/ Notice, there is no native Livecode libraries to create and render these kind of animations, but using custom properties of groups as animation frames this should be feasible. Again, Scott Rossi and Colin Holgate have the answer that you are looking for. :D By the way, I am working in such kind of skeletal based animation using Livecode but pending work have stopped me from advancing faster in this area. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Motion-Graphic-in-LiveCode-tp4682250p4682265.html Sent from the Revolution - User mailing list archive at Nabble.com. From mkoob at rogers.com Thu Aug 21 10:49:12 2014 From: mkoob at rogers.com (Martin Koob) Date: Thu, 21 Aug 2014 07:49:12 -0700 (PDT) Subject: Motion Graphic in LiveCode In-Reply-To: <1408632351237-4682264.post@n4.nabble.com> References: <53F596EA.1070007@hindu.org> <1408632351237-4682264.post@n4.nabble.com> Message-ID: <1408632552773-4682267.post@n4.nabble.com> Forgot to say. I have been testing exclusively in 6.7.0 to this point as I want to release my app using 6.7.0 when it goes GM. I am planning to do testing in LC 7.0 as well but it would be good if people can test out the player object in both on the Mac to see how it is working in various configurations. Martin Koob -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Motion-Graphic-in-LiveCode-tp4682250p4682267.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Thu Aug 21 11:25:06 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 21 Aug 2014 17:25:06 +0200 Subject: [ANN] Installer Maker 1.8.7b04 Message-ID: <53F60F52.6090405@economy-x-talk.com> Hi everyone, A new beta version of Installer Maker has been released. Installer Maker 1.8.7b04 is not available on Economy-x-Talk's homepage yet but can only be downloaded from the following link: http://qery.us/c5e Installer Maker 1.8.7 is going to contain many bug fixes, enhancements and new features: - Installers created with a trial copy on Windows should now start correctly (only on the same computer as on which they were created) - The documentation (on the Help screen) should still show up, even if the httpHeaders were set incorrectly by another script - install locations have been extended by a large number of Windows-specific directories - the destination "startup disk" appeared incorrectly a possibility to create an installer with empty files has been added - the uninstaller is now installed in the executable's folder on Windows, while previously it would end up in a separate folder occasionally - file paths are now included in profile files if a path in a profile file is not found, you'll be asked if you want to repair all paths - MetaCard/Revolution/LiveCode stacks can be opened and run before or after uninstallation (note: no externals can be used in these stacks) - on Windows, the Uninstaller can now execute LiveCode scripts that have been added on the Scripts pane; thise feature will be added for Mac OS X soon - a small problem that inadvertantly disabled the radio buttons on the Scripts pane has been fixed Currently, Installer Maker 1.8.7 is available as a plug-in only. A standalone version will be made available shortly. Please, let me know if you find any problems in this beta version of Installer Maker. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From bernd.niggemann at uni-wh.de Thu Aug 21 11:55:32 2014 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 21 Aug 2014 08:55:32 -0700 (PDT) Subject: Back to Stacks! New Text Properties In-Reply-To: <53F59834.2080605@hindu.org> References: <53F59834.2080605@hindu.org> Message-ID: <1408636532206-4682269.post@n4.nabble.com> Hi Brahmanathaswami, I while ago I uploaded a stack Ben Beaumont made available around the release of 5.5 that shows the new text handling http://forums.livecode.com/viewtopic.php?f=7&t=11686&hilit=beaumont#p55064 Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Back-to-Stacks-New-Text-Properties-tp4682251p4682269.html Sent from the Revolution - User mailing list archive at Nabble.com. From charles at buchwald.ca Thu Aug 21 12:07:23 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Thu, 21 Aug 2014 11:07:23 -0500 Subject: Back to Stacks! New Text Properties In-Reply-To: <1408636532206-4682269.post@n4.nabble.com> References: <53F59834.2080605@hindu.org> <1408636532206-4682269.post@n4.nabble.com> Message-ID: <5AFB017C-0162-4643-AFCE-FA11DF66A7DB@buchwald.ca> Hey, thanks, Bernd. I was looking for documentation a couple of days ago, but this is even better. On 21 Aug 2014, at 10:55 AM, BNig wrote: > Hi Brahmanathaswami, > > I while ago I uploaded a stack Ben Beaumont made available around the > release of 5.5 that shows the new text handling > > http://forums.livecode.com/viewtopic.php?f=7&t=11686&hilit=beaumont#p55064 > > Kind regards > Bernd > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Back-to-Stacks-New-Text-Properties-tp4682251p4682269.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From henshaw at me.com Thu Aug 21 12:25:30 2014 From: henshaw at me.com (Andrew Henshaw) Date: Thu, 21 Aug 2014 17:25:30 +0100 Subject: Linux (Ubuntu mainly) Installer In-Reply-To: <53EE13B2.8050702@fourthworld.com> References: <53ED6FE7.90106@hyperactivesw.com> <53EE13B2.8050702@fourthworld.com> Message-ID: <7CB4E07A-233A-41AA-AC63-FD3F18E15E61@me.com> Does anyone have any suggestions for packaging an app for Linux release. Im a total Linux newbie, I have it on a couple of machines and my app runs fine but I wouldn?t have a clue where to look for the best installer, or how to package it up so it can use the software manager. Does anyone here deploy their app to the public running Linux, and if you don?t mind sharing how do you do it? From richmondmathewson at gmail.com Thu Aug 21 12:25:59 2014 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 21 Aug 2014 19:25:59 +0300 Subject: Sparkles at the end of a pencil point In-Reply-To: <53F5DF8B.9060506@gmail.com> References: <53F59F38.30306@hindu.org> <53F5C604.2090203@gmail.com> <53F5DF8B.9060506@gmail.com> Message-ID: <53F61D97.2010205@gmail.com> On 21/08/14 15:01, Richmond wrote: > On 21/08/14 13:12, Richmond wrote: >> http://andregarzia.on-rev.com/richmond/ITCHY/sparks.livecode.zip >> >> The code is in the group "GreenDOG". >> >> Enjoy! >> >> Richmond. > > Just uploaded an updated version of this: > > the 'dog' on the left uses the animated GIF I downloaded from the > internet, > > the 'dog' on the right uses an animated GIF I have just made myself. > > Richmond. This is FREE and cross-platform (currently using on my G5 iMac): http://www.onyxbits.de/giftedmotion From richmondmathewson at gmail.com Thu Aug 21 12:27:59 2014 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 21 Aug 2014 19:27:59 +0300 Subject: Linux (Ubuntu mainly) Installer In-Reply-To: <7CB4E07A-233A-41AA-AC63-FD3F18E15E61@me.com> References: <53ED6FE7.90106@hyperactivesw.com> <53EE13B2.8050702@fourthworld.com> <7CB4E07A-233A-41AA-AC63-FD3F18E15E61@me.com> Message-ID: <53F61E0F.3020201@gmail.com> On 21/08/14 19:25, Andrew Henshaw wrote: > Does anyone have any suggestions for packaging an app for Linux release. > > Im a total Linux newbie, I have it on a couple of machines and my app runs fine but I wouldn?t have a clue where to look for the best installer, or how to package it up so it can use the software manager. > > Does anyone here deploy their app to the public running Linux, and if you don?t mind sharing how do you do it? > > > Well, I'm a lazy toad: I just let them download the Linux standalone. They probably have to set the executable bit :( Try for yourself: http://andregarzia.on-rev.com/richmond/PISMO/Linux.zip Richmond. From pete at lcsql.com Thu Aug 21 13:54:28 2014 From: pete at lcsql.com (Peter Haworth) Date: Thu, 21 Aug 2014 10:54:28 -0700 Subject: Back to Stacks! New Text Properties In-Reply-To: <5AFB017C-0162-4643-AFCE-FA11DF66A7DB@buchwald.ca> References: <53F59834.2080605@hindu.org> <1408636532206-4682269.post@n4.nabble.com> <5AFB017C-0162-4643-AFCE-FA11DF66A7DB@buchwald.ca> Message-ID: Very useful stack. One thing that's missing is that you can now define tabstops for a paragraph as well as for a field, although I'm guessing that's part of the simple table example. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Aug 21, 2014 at 9:07 AM, Charles E Buchwald wrote: > Hey, thanks, Bernd. I was looking for documentation a couple of days ago, > but this is even better. > > On 21 Aug 2014, at 10:55 AM, BNig wrote: > > > Hi Brahmanathaswami, > > > > I while ago I uploaded a stack Ben Beaumont made available around the > > release of 5.5 that shows the new text handling > > > > > http://forums.livecode.com/viewtopic.php?f=7&t=11686&hilit=beaumont#p55064 > > > > Kind regards > > Bernd > > > > > > > > -- > > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Back-to-Stacks-New-Text-Properties-tp4682251p4682269.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Charles E. Buchwald > CEO/Director General > Museografica Digital > http://digital.museografica.com > > Mac OSX 10.9.4, LC 6.6.2 Commercial > > LC Developer Tools: http://buchwald.ca/developer-tools/ > > Email Notice: http://wp.me/P3aT4d-33 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From capellan2000 at gmail.com Thu Aug 21 14:14:05 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 21 Aug 2014 11:14:05 -0700 (PDT) Subject: Blow her away with your gigantic weapon. In-Reply-To: <53F388B6.90006@gmail.com> References: <53F388B6.90006@gmail.com> Message-ID: <1408644845127-4682275.post@n4.nabble.com> Richmond Mathewson-2 wrote > [snip] > Now the question comes as to whether I should develop it in Livecode 7 > with a view of going straight to HTML5 when it is delivered or > sticking with a pre-7 version using the sort of code I am used to. Use Version 7, of course. and post about all bugs that you find. :D Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Blow-her-away-with-your-gigantic-weapon-tp4682195p4682275.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Thu Aug 21 14:24:47 2014 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 21 Aug 2014 21:24:47 +0300 Subject: Blow her away with your gigantic weapon. In-Reply-To: <1408644845127-4682275.post@n4.nabble.com> References: <53F388B6.90006@gmail.com> <1408644845127-4682275.post@n4.nabble.com> Message-ID: <53F6396F.3060500@gmail.com> On 21/08/14 21:14, Alejandro Tejada wrote: > Richmond Mathewson-2 wrote >> [snip] >> Now the question comes as to whether I should develop it in Livecode 7 >> with a view of going straight to HTML5 when it is delivered or >> sticking with a pre-7 version using the sort of code I am used to. > Use Version 7, of course. > and post about all bugs > that you find. :D > > Al > > At which point we may all be blown away. Richmond. From B.Cornaz at gmx.net Thu Aug 21 16:16:39 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Thu, 21 Aug 2014 22:16:39 +0200 Subject: speed Message-ID: <9D17C327-F6F8-44B2-9DD9-3B341D08B0CB@gmx.net> A while ago I did a test for speed with 'repeat for'. It turned out that with items it worked the fasted. Chars were slower and words even more so. Now I redid the test with 'LineOffset'. To my surprise: with chars was considerably faster. A long list with lines like 'aabcbcax' (chars) OR "a,a,b,c,b,ca,x," (items) and finding a specific line gave the following time results in ticks (depending on how deep down the wanted line was in the list ) : items chars 57 42 4530 2871 2908 2087 24 15 I did the lineOffset for 1 specific string and repeated the lineOffset 100000 times. The variation with the chars was about 1.35 to 1.6 times as fast as the variation with items. Can anybody confirm this from experience and maybe explain why the LineOffset works faster with strings of chars, while the repeat for works faster with items? I would also appreciate any other insights in how to speed up routines, as I am working a a program with Evolutionary Algorithms and I need to do hundred of thousands of calculations in each run, so speed is quite important. Cheers, Beat From ambassador at fourthworld.com Thu Aug 21 16:25:31 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 21 Aug 2014 13:25:31 -0700 Subject: speed In-Reply-To: <9D17C327-F6F8-44B2-9DD9-3B341D08B0CB@gmx.net> References: <9D17C327-F6F8-44B2-9DD9-3B341D08B0CB@gmx.net> Message-ID: <53F655BB.4050107@fourthworld.com> It'll be hard to give specific guidance without seeing your current code you tested with, and a representative data sample. There are many ways to parse text in LC, and some are better with certain types of data than others. Total line length, number of items in each line, average length of each item, etc. can each effect outcomes somewhat differently using different methods. If you have an opportunity to bundle up some data and a sample stack with your test code, I'm sure at least a couple of us may find time to see what can be suggested for it. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Beat Cornaz wrote: > A while ago I did a test for speed with 'repeat for'. It turned out > that with items it worked the fasted. Chars were slower and words > even more so. > > Now I redid the test with 'LineOffset'. To my surprise: with chars > was considerably faster. > > A long list with lines like 'aabcbcax' (chars) OR "a,a,b,c,b,ca,x," > (items) and finding a specific line gave the following time results > in ticks (depending on how deep down the wanted line was in the list > ) : > > items chars > 57 42 > 4530 2871 > 2908 2087 > 24 15 > > I did the lineOffset for 1 specific string and repeated the > lineOffset 100000 times. The variation with the chars was about 1.35 > to 1.6 times as fast as the variation with items. > Can anybody confirm this from experience and maybe explain why the > LineOffset works faster with strings of chars, while the repeat for > works faster with items? > > I would also appreciate any other insights in how to speed up > routines, as I am working a a program with Evolutionary Algorithms > and I need to do hundred of thousands of calculations in each run, > so speed is quite important. From capellan2000 at gmail.com Thu Aug 21 16:39:24 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 21 Aug 2014 13:39:24 -0700 (PDT) Subject: Blow her away with your gigantic weapon. In-Reply-To: <53F6396F.3060500@gmail.com> References: <53F388B6.90006@gmail.com> <1408644845127-4682275.post@n4.nabble.com> <53F6396F.3060500@gmail.com> Message-ID: <1408653564213-4682279.post@n4.nabble.com> Richmond Mathewson-2 wrote > At which point we may all be blown away. That is fundamental part of bug hunting. Catch them All... :D Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Blow-her-away-with-your-gigantic-weapon-tp4682195p4682279.html Sent from the Revolution - User mailing list archive at Nabble.com. From scott at elementarysoftware.com Thu Aug 21 20:01:57 2014 From: scott at elementarysoftware.com (Scott Morrow) Date: Thu, 21 Aug 2014 17:01:57 -0700 Subject: iOS option button with cancel like mobilePick Message-ID: <8390C195-5F3E-4EF7-B360-7243D73447EF@elementarysoftware.com> To create a pickwheel in iOS that supports unicode I am using (rather than mobilePick) a button with the style of ?menu? and menuMode set to ?option?. This works well but I was wondering if there was any way to include the standard ?Cancel? button feature with this method like can be done using mobilePick. (LC version 6.6.2) ? Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com office 1-800-615-0867 ------------------------------------------------------ From mwieder at ahsoftware.net Fri Aug 22 00:55:02 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 21 Aug 2014 21:55:02 -0700 Subject: Linux (Ubuntu mainly) Installer In-Reply-To: <53F61E0F.3020201@gmail.com> References: <53ED6FE7.90106@hyperactivesw.com> <53EE13B2.8050702@fourthworld.com> <7CB4E07A-233A-41AA-AC63-FD3F18E15E61@me.com> <53F61E0F.3020201@gmail.com> Message-ID: <120-1003717925.20140821215502@ahsoftware.net> Richmond- Thursday, August 21, 2014, 9:27:59 AM, you wrote: > I just let them download the Linux standalone. > They probably have to set the executable bit :( If you're packaging into a zip file, the executable bit should survive intact. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From lan.kc.macmail at gmail.com Fri Aug 22 03:06:18 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 22 Aug 2014 15:06:18 +0800 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: On Thu, Aug 14, 2014 at 1:43 PM, Thierry Douez wrote: > >>> put "<(?P[A-Z][A-Z0-9]*)\b[^>]*>.*?" into RX > Just tried it right now and it works! > > What system and LC version do you have? OS X 10.9.4 LC 6.6.2GM As I said, the problem was: ... - (?P=tag) to work. Sorry for the slow reply, just in the world of thinband (basically no-band) for the last week or so ;-( From th.douez at gmail.com Fri Aug 22 04:32:30 2014 From: th.douez at gmail.com (Thierry Douez) Date: Fri, 22 Aug 2014 10:32:30 +0200 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: Kay, > As I said, the problem was: needed to be: a \ backslash delimiting the / forward slash. Really? Mind you trying this simple one which works here and without any backslash! on mouseUp put "rtyrtyyrtyryt dfdfddfdfdfdf qwewqwqe" into T put "<(?P[A-Z])[^>]*>(.*?)" into RX if matchText( T, RX, theTag, theText) then put "Found: tag: " & theTag & ", theText: " & theText else put "not found" end if end mouseUp Could you show me in the regular expression docs why do we have to escape a slash? I would be very much interested to have a small stack with the code and the datas as I'm collecting snippets for a day to make some HowTos.. Kind regards, Thierry From m.schonewille at economy-x-talk.com Fri Aug 22 04:36:30 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 22 Aug 2014 10:36:30 +0200 Subject: Why doesn't menupick work In-Reply-To: <53F5DDE0.7090203@economy-x-talk.com> References: <528BB9D8-1E15-4C27-8EC5-EF2830A20899@duncansoftware.on-rev.com> <53F5DDE0.7090203@economy-x-talk.com> Message-ID: <53F7010E.9070204@economy-x-talk.com> Probably, calling a control "The short name" is also a bad idea ;-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/21/2014 13:54, Mark Schonewille wrote: > Hi, > > "card" is part of the name, but not of the short name. A correct card > reference is > > card "The short name" > > This would be the complete name of the card and you can use it directly > in a script: > > go card "The short name" > put (there is a card "The short name") > From lan.kc.macmail at gmail.com Fri Aug 22 04:58:06 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 22 Aug 2014 16:58:06 +0800 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> Message-ID: On Tue, Aug 19, 2014 at 9:13 PM, Dr. Hawkins wrote: > > It plays from a selection of pre-recorded music (and I think it can add > more). > > The very simple solutions won't work; it needs to, for example, go off > every day at 6. > Used early model MacMini via eBay - $50-$100 Used AKAI LPK25 Midi Controller Interface Keyboard via eBay = $30 Garageband - Free. Start it up, select a 'Keyboard' project, from there you can select 'Mallets' which include both Aurora and Church Bells. Have some talented person play away to their hearts content - should be able to record several thousand hours of continuous music on an average old Mac HD. Save best renditions from Garageband to mp3 Start iCal (if your unlucky and have a new Mac it might have Calendar installed in which case UPGRADE it by installing an earlier version of OS X like Snow Leopard that comes with the much more useful iCal) and create an Event 'Ring Church Bells' at 6:15 and have it repeat every day*. Set it's alarm to 15** mins before and have it "Open file" selecting the church bell mp3 file of your choice***. If possible plug the headphone jack straight into the amp Aux inputs - need a 3.5mm to RCA adapter cable. A couple of dollars at RadioShack. If this isn't possible, a 1st generation Airport Express with AirPlay (eBay <$40) will allow you to wirelessly stream the music from the Mac to the Amplifier. If power consumption is a problem a basic home timer could be set to turn the amp on from 5:45 to 6:15. * Obviously you are not limited to a once a day event. You can create alarms for every hour, 1/2 hour, or whatever. ** You will need to set the Mac to start and autostart iTunes each day at 5:55 and make sure the Mac is not set to go to sleep inside 15min of inactivity, otherwise, if iTunes isn't already running there will be a noticeable delay waiting for iTunes to start or the computer to wake up. *** You could create 7 different events, one for each day, repeated weekly, and choose a different mp3 file for each day of the week. You could create special alarms for specific holidays and seasons and play specific files appropriate for those events. Discounting the time spent in bidding wars on eBay, it should take about an hour to set up. From richmondmathewson at gmail.com Fri Aug 22 05:16:54 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 22 Aug 2014 12:16:54 +0300 Subject: Sparkles at the end of a pencil point In-Reply-To: <53F59F38.30306@hindu.org> References: <53F59F38.30306@hindu.org> Message-ID: <53F70A86.7010804@gmail.com> Crayons that sparkle at their points as they are moved: http://forums.livecode.com/viewtopic.php?f=25&t=21381&p=109480#p109480 Richmond. From sundown at pacifier.com Fri Aug 22 06:46:47 2014 From: sundown at pacifier.com (JB) Date: Fri, 22 Aug 2014 03:46:47 -0700 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> Message-ID: <907E8B2A-2954-449D-ABDC-4D7A1DF26AFD@pacifier.com> A good Heavy Duty 15 amp home timer. Intermatic-DT620-Indoor-Digital-Plug-In Don?t use the manual switch with a heavy load. It seems to shorten the life. John Balgenorth On Aug 22, 2014, at 1:58 AM, Kay C Lan wrote: > On Tue, Aug 19, 2014 at 9:13 PM, Dr. Hawkins wrote: >> >> It plays from a selection of pre-recorded music (and I think it can add >> more). >> >> The very simple solutions won't work; it needs to, for example, go off >> every day at 6. >> > Used early model MacMini via eBay - $50-$100 > > Used AKAI LPK25 Midi Controller Interface Keyboard via eBay = $30 > > Garageband - Free. > > Start it up, select a 'Keyboard' project, from there you can select > 'Mallets' which include both Aurora and Church Bells. > > Have some talented person play away to their hearts content - should > be able to record several thousand hours of continuous music on an > average old Mac HD. > > Save best renditions from Garageband to mp3 > > Start iCal (if your unlucky and have a new Mac it might have Calendar > installed in which case UPGRADE it by installing an earlier version of > OS X like Snow Leopard that comes with the much more useful iCal) and > create an Event 'Ring Church Bells' at 6:15 and have it repeat every > day*. Set it's alarm to 15** mins before and have it "Open file" > selecting the church bell mp3 file of your choice***. > > If possible plug the headphone jack straight into the amp Aux inputs - > need a 3.5mm to RCA adapter cable. A couple of dollars at RadioShack. > If this isn't possible, a 1st generation Airport Express with AirPlay > (eBay <$40) will allow you to wirelessly stream the music from the Mac > to the Amplifier. > > If power consumption is a problem a basic home timer could be set to > turn the amp on from 5:45 to 6:15. > > * Obviously you are not limited to a once a day event. You can create > alarms for every hour, 1/2 hour, or whatever. > > ** You will need to set the Mac to start and autostart iTunes each day > at 5:55 and make sure the Mac is not set to go to sleep inside 15min > of inactivity, otherwise, if iTunes isn't already running there will > be a noticeable delay waiting for iTunes to start or the computer to > wake up. > > *** You could create 7 different events, one for each day, repeated > weekly, and choose a different mp3 file for each day of the week. You > could create special alarms for specific holidays and seasons and play > specific files appropriate for those events. > > Discounting the time spent in bidding wars on eBay, it should take > about an hour to set up. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From fmoyer at aol.com Fri Aug 22 08:40:28 2014 From: fmoyer at aol.com (Fred Moyer) Date: Fri, 22 Aug 2014 08:40:28 -0400 Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 In-Reply-To: References: Message-ID: <5D26828F-163F-4FB3-BD7F-70073F9346F2@aol.com> Thanks Neil: The problem is that I need LiveCode to control Mail.app. I?m needing to import emails into my business stacks. We can?t do each one manually. It would take forever. I find that LiveCode must be in that Accessibility list and checked in order to do this. Fred On Aug 22, 2014, at 6:00 AM, use-livecode-request at lists.runrev.com wrote: > Date: Thu, 21 Aug 2014 15:51:48 +0100 > From: Neil Roger > To: How to use LiveCode > Subject: Re: Massiv performance difference between LC 6.5.2 and 6.6.2 > Message-ID: <53F60784.1060904 at livecode.com> > Content-Type: text/plain; charset=windows-1252; format=flowed > > Hi Fred, > > I too have been expericning this issue for the past month and its been > driving me crazy :) (sometimes taking 15 seconds for a save/open dialog > to appear but after this, it appears almost instantly). > > I had a quick look at my "Accessibility" --->"Allow the below apps to > control your computer" and LiveCode was checked in this section. > Un-checking LiveCode from here and then restarting LiveCode seems to > have resolved the issue. > > Give this a go and keep us posted on how you get on. > > Thanks for letting us know about this. > > Kind Regards, > > Neil Roger > -- > LiveCode Support Team ~ http://www.livecode.com > ? > > > > On 20/08/2014 13:42, Fred Moyer wrote: >> Is your problem possibly related to the problem that I?m having with 6.6.2? When I press cmd-O, it takes forever for the open window to show up. It?s been suggested that this delay might be related to the fact that I have LiveCode listed in System Preferences: Security & Privacy: Accessibility. (I?m using Mac.) The delay only happens once. The 2nd time it is normal. >> >> Fred >> >> On Aug 20, 2014, at 2:02 AM, use-livecode-request at lists.runrev.com wrote: >> >>> Message: 13 >>> Date: Tue, 19 Aug 2014 19:02:48 +0200 >>> From: "Tiemo Hollmann TB" >>> To: "'How to use LiveCode'" >>> Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 >>> Message-ID: <005201cfbbcf$67da2e10$378e8a30$@de> >>> Content-Type: text/plain; charset="us-ascii" >>> >>> Hello, >>> >>> When opening one of my stacks in LC 6.5.2 IDE it performs its tasks in 1-2 >>> sec. When opening the same stack in 6.6.2 it takes between 30 - 90 secs. >>> >>> The program checks a local file and some PHPs with MySQL calls on my server. >>> I tested both IDE versions with the same stack multiple times with the same >>> result, to exclude server issues. >>> >>> Before digging hours or days into the depth of my old stack I wanted to ask, >>> if there are any known issues between these LC versions or hints where to >>> look first? >>> >>> >>> >>> Thanks for any hint >>> >>> Tiemo >>> >>> > From revolution at duncansoftware.on-rev.com Fri Aug 22 08:54:20 2014 From: revolution at duncansoftware.on-rev.com (revolution at duncansoftware.on-rev.com) Date: Fri, 22 Aug 2014 08:54:20 -0400 Subject: Why doesn't menupick work Message-ID: <047C62EF-64B8-4019-9F25-3888998AEC02@duncansoftware.on-rev.com> Thanks everyone for your ideas. They got me looking again at the combobox list of cardnames. This button was generated & populated through a script. At the end of each line is a crlf which on the Mac leaves an unprintable char at the end of the line. So the spaces and tildes were not the problem but the extra char at the end of the line was causing a mismatch between pItemName and the card name. Changing the button generator to cr at the end of the line solved the problem. From ambassador at fourthworld.com Fri Aug 22 09:59:00 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 22 Aug 2014 06:59:00 -0700 Subject: Why doesn't menupick work In-Reply-To: <047C62EF-64B8-4019-9F25-3888998AEC02@duncansoftware.on-rev.com> References: <047C62EF-64B8-4019-9F25-3888998AEC02@duncansoftware.on-rev.com> Message-ID: <53F74CA4.7020003@fourthworld.com> revolution wrote: > Thanks everyone for your ideas. They got me looking again at the > combobox list of cardnames. This button was generated & populated > through a script. At the end of each line is a crlf which on the > Mac leaves an unprintable char at the end of the line. So the > spaces and tildes were not the problem but the extra char at the > end of the line was causing a mismatch between pItemName and the > card name. Changing the button generator to cr at the end of the > line solved the problem. I'm glad to hear you got that working, but I'm concerned about how the CRLFs were introduced to begin with. Internally, all of LC's text routines use the Unix line ending by default, and generally the only time you can get things like CRLFs is when reading text files made on Windows using binary mode - an unusual intersection of things that doesn't often happen. Can you tell us more about how the list is created, maybe posting the script that obtains that list? If you've encountered a bug it would be good for us to file a report on it, and if not I'll bet we can refine the code for greater simplicity and performance. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mwieder at ahsoftware.net Fri Aug 22 12:02:28 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 22 Aug 2014 09:02:28 -0700 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: <70-963672432.20140822090228@ahsoftware.net> Thierry- Friday, August 22, 2014, 1:32:30 AM, you wrote: > Could you show me in the regular expression docs why > do we have to escape a slash? > I would be very much interested to > have a small stack with the code and the datas > as I'm collecting snippets for a day to make some HowTos.. I will also verify that all your regex examples work properly. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From bodine at bodinetraininggames.com Fri Aug 22 12:58:02 2014 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 22 Aug 2014 09:58:02 -0700 (PDT) Subject: Motion Graphic in LiveCode In-Reply-To: <1408632467884-4682265.post@n4.nabble.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> Message-ID: <1408726682866-4682292.post@n4.nabble.com> Alejandro Tejada wrote > using custom properties of groups as animation frames > this should be feasible. Hi, Cool concept. Would you describe that in more detail? For instance, would you be storing a series of complete images in the custom properties and play them like a flip book animation? Or would you group the individual pieces of artwork and use the custom properties to control their placement and timing to make an animation? Thanks, Tom -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Motion-Graphic-in-LiveCode-tp4682250p4682292.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Fri Aug 22 14:43:22 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 22 Aug 2014 21:43:22 +0300 Subject: Mucking around with the title bar Message-ID: <53F78F4A.3010106@gmail.com> This is fun: on preOpenCard set the title of stack "myStack" to the short name of this card end preOpenCard This means that your stack will have some sort of meaningful name in the top bar of the stack window [always assuming you have called you cards names] rather than "XXX(2)". Richmond. From stephenREVOLUTION2 at barncard.com Fri Aug 22 15:46:15 2014 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 22 Aug 2014 12:46:15 -0700 Subject: Church bell app? In-Reply-To: <907E8B2A-2954-449D-ABDC-4D7A1DF26AFD@pacifier.com> References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> <907E8B2A-2954-449D-ABDC-4D7A1DF26AFD@pacifier.com> Message-ID: I think the extreme cheap-out solutions would be a disservice to the client, especially with regard to reliability. *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* On Fri, Aug 22, 2014 at 3:46 AM, JB wrote: > A good Heavy Duty 15 amp home timer. > > Intermatic-DT620-Indoor-Digital-Plug-In > > Don?t use the manual switch with a heavy > load. It seems to shorten the life. > > John Balgenorth > > > On Aug 22, 2014, at 1:58 AM, Kay C Lan wrote: > > > On Tue, Aug 19, 2014 at 9:13 PM, Dr. Hawkins wrote: > >> > >> It plays from a selection of pre-recorded music (and I think it can add > >> more). > >> > >> The very simple solutions won't work; it needs to, for example, go off > >> every day at 6. > >> > > Used early model MacMini via eBay - $50-$100 > > > > Used AKAI LPK25 Midi Controller Interface Keyboard via eBay = $30 > > > > Garageband - Free. > > > > Start it up, select a 'Keyboard' project, from there you can select > > 'Mallets' which include both Aurora and Church Bells. > > > > Have some talented person play away to their hearts content - should > > be able to record several thousand hours of continuous music on an > > average old Mac HD. > > > > Save best renditions from Garageband to mp3 > > > > Start iCal (if your unlucky and have a new Mac it might have Calendar > > installed in which case UPGRADE it by installing an earlier version of > > OS X like Snow Leopard that comes with the much more useful iCal) and > > create an Event 'Ring Church Bells' at 6:15 and have it repeat every > > day*. Set it's alarm to 15** mins before and have it "Open file" > > selecting the church bell mp3 file of your choice***. > > > > If possible plug the headphone jack straight into the amp Aux inputs - > > need a 3.5mm to RCA adapter cable. A couple of dollars at RadioShack. > > If this isn't possible, a 1st generation Airport Express with AirPlay > > (eBay <$40) will allow you to wirelessly stream the music from the Mac > > to the Amplifier. > > > > If power consumption is a problem a basic home timer could be set to > > turn the amp on from 5:45 to 6:15. > > > > * Obviously you are not limited to a once a day event. You can create > > alarms for every hour, 1/2 hour, or whatever. > > > > ** You will need to set the Mac to start and autostart iTunes each day > > at 5:55 and make sure the Mac is not set to go to sleep inside 15min > > of inactivity, otherwise, if iTunes isn't already running there will > > be a noticeable delay waiting for iTunes to start or the computer to > > wake up. > > > > *** You could create 7 different events, one for each day, repeated > > weekly, and choose a different mp3 file for each day of the week. You > > could create special alarms for specific holidays and seasons and play > > specific files appropriate for those events. > > > > Discounting the time spent in bidding wars on eBay, it should take > > about an hour to set up. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From B.Cornaz at gmx.net Fri Aug 22 16:17:44 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Fri, 22 Aug 2014 22:17:44 +0200 Subject: Speed Message-ID: Thanks Richard, So it depends on a number of factors, which makes it a bit harder. I had hoped for some general rules, like always use repeat for if possible or words are generally slower that items. But I understand, it depends on more things. I have some hundred fitness functions, which need to be recalculated many times. But I think the problem of making Permutations might be illuminating for me, as this one takes quite long to run (with 10 or more elements to Permutate). So a good example would be how to make all possible permutations of say 10 different elements (0-9). This gives 3628800 different permutations. The resulting permutations will be in lines I guess, but what would be the best way to do this. Using lines, items, chars or any other way as Input? So the start would be f.i. a list with 10 lines with the ten elements, one in each line - That is what I am using now. OR items "0,1,2,3,4,5,6,7,8,9" or chars "0123456789" or another way to represent 10 elements to make it possible to run the script in minutes, not hours. the code I have now for this is follows - lines as input (one line per element) : function BC4_PermMech_Lines ToPermutate -- ** ToPermutate : all the elements to permutate, one per line put the number of lines of ToPermutate into NumInput put empty into TempPerms5 -- *** First calc the upper half. put line 1 of ToPermutate & comma & line 2 of ToPermutate & comma into TempPerms1 put line 3 to -1 of ToPermutate into tInput3 put 3 into Index repeat for each line newElement in tInput3 set the cursor to busy repeat for each line tLine in TempPerms1 repeat with y = Index down to 1 -- repeat with y = x down to 1 put tLine into Temp put newElement & comma before item y of temp put Temp & cr after TempPerms5 end repeat end repeat delete char -1 of TempPerms5 -- ** last cr put TempPerms5 into TempPerms1 put empty into TempPerms5 add 1 to Index end repeat -- *** Now the second half -- *** First calc the upper half. Later copy and inverse all (alternative idea) put line 2 of ToPermutate & comma & line 1 of ToPermutate & comma into TempPerms2 put 3 into Index repeat for each line newElement in tInput3 set the cursor to busy repeat for each line tLine in TempPerms2 repeat with y = Index down to 1 put tLine into Temp put newElement & comma before item y of temp put Temp & cr after TempPerms5 end repeat end repeat delete char -1 of TempPerms5 -- last cr put TempPerms5 into TempPerms2 put empty into TempPerms5 add 1 to Index end repeat put cr & TempPerms2 after TempPerms1 choose browse tool Return TempPerms1 end BC4_PermMech_Lines ----- Another example I am struggling with is to delete exact duplicate lines in a long, long list. Do I best use chars, items or words in the lines of the list? As example can be thought the deletion of duplicate permutations if you start with 10 elements, but there are duplicate elements in the start, e.g. 0011123456 . This would give 'only' 302400 permutations, so there are 60480 duplicate perms to be deleted. There might be an algorithm, which makes the correct permutations right away (in the case of duplicate elements), without first making all the general permutations and then deleting the duplicates. That would be really great and I'd love to hear it if someone knows an algorithm for those permutations !!!! But even so, I am also interested in de fastest way to delete duplicate lines anyway for other parts of my program. At the moment I use : -- function BC2_RemoveDuplicate_Lines pData repeat for each line rLine in pData add 1 to TestArray[rLine] end repeat return the keys of TestArray end BC2_RemoveDuplicate_Lines -- I hope someone knows a faster way :-) Thanks a lot, Beat From capellan2000 at gmail.com Fri Aug 22 18:25:07 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 22 Aug 2014 15:25:07 -0700 (PDT) Subject: Motion Graphic in LiveCode In-Reply-To: <1408726682866-4682292.post@n4.nabble.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> Message-ID: <1408746307616-4682296.post@n4.nabble.com> Hi Tom, These stacks show different ways to animate a sequence of images or vector graphics: http://www.tactilemedia.com/site_files/downloads/tutti3d.rev.zip Scott Rossi shows how to use custom properties to animate a vector graphic. This could be expanded in the way described by Scott in the substack "About Tutti3d" or you could apply this concept of setting properties in a loop as you describe in your message: "group the individual pieces of artwork and use the custom properties to control their placement and timing to make an animation" The correct order of operations to animate these skeletal based animation is: Starting from the original unmodified artwork (vector or bitmap) 1)Scale (set the rect of IMG/GRC to ....) 2) Rotate (set the angle... for images / revrotatepoly for vector graphics or use your own custom handlers for rotation. Notice that many of us have published handlers to rotate vectors and images, (Jim Hurley, Scott Rossi, Malte Brill, Chipp Walters, Bernd Niggemann, Hermann, myself and many more developers) 3)Translate - placement or moving the artwork to its position using "set the loc of IMG/GRC to ..." In this stack: http://www.tactilemedia.com/site_files/downloads/breeze.rev.zip Scott Rossi shows how to use a sequence of images to animate a flag. In this stack: http://andregarzia.on-rev.com/alejandro/stacks/Vector_Animation_Wouter.zip Abraham Wouter shows how to animate a group of graphics using the same technique employed in videogames and webpages Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Motion-Graphic-in-LiveCode-tp4682250p4682296.html Sent from the Revolution - User mailing list archive at Nabble.com. From brahma at hindu.org Fri Aug 22 18:34:35 2014 From: brahma at hindu.org (Brahmanathswami) Date: Fri, 22 Aug 2014 12:34:35 -1000 Subject: Motion Graphic in LiveCode In-Reply-To: <1408746307616-4682296.post@n4.nabble.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> Message-ID: <53F7C57B.1040302@hindu.org> Alejandro Tejada wrote: > These stacks show different ways to animate > a sequence of images or vector graphics: > > http://www.tactilemedia.com/site_files/downloads/tutti3d.rev.zip > > Scott Rossi shows how to use custom properties > to animate a vector graphic. So anything more sophisticated, I assume must be done as a movie to render in LiveCode. OTOH, Scotts demos in tutti3D are pretty high end looking! Smoother than I would have expected and only 65 lines of code in the main _control script! Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From richmondmathewson at gmail.com Fri Aug 22 18:39:04 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 01:39:04 +0300 Subject: Motion Graphic in LiveCode In-Reply-To: <53F7C57B.1040302@hindu.org> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> Message-ID: <53F7C688.4080504@gmail.com> On 23/08/14 01:34, Brahmanathswami wrote: > Alejandro Tejada wrote: >> These stacks show different ways to animate >> a sequence of images or vector graphics: >> >> http://www.tactilemedia.com/site_files/downloads/tutti3d.rev.zip >> >> Scott Rossi shows how to use custom properties >> to animate a vector graphic. > So anything more sophisticated, I assume must be done as a movie to > render in LiveCode. You could always convert a movie file to an animated GIF: which might allow you more fine control of it. Richmond. > > OTOH, Scotts demos in tutti3D are pretty high end looking! > > Smoother than I would have expected and only 65 lines of code in the > main _control script! > > > > Swasti Astu, Be Well! > Brahmanathaswami > > Kauai's Hindu Monastery > www.HimalayanAcademy.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Aug 22 19:31:46 2014 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 23 Aug 2014 00:31:46 +0100 Subject: Speed In-Reply-To: References: Message-ID: <53F7D2E2.9070201@tweedly.net> On 22/08/2014 21:17, Beat Cornaz wrote: > At the moment I use : > > -- > function BC2_RemoveDuplicate_Lines pData > > repeat for each line rLine in pData > add 1 to TestArray[rLine] > end repeat > > return the keys of TestArray > end BC2_RemoveDuplicate_Lines > -- > > > I hope someone knows a faster way :-) > > I'll read the rest of the email carefully and (hopefully) have more comments later. But for now, I'll try this one part. I don't know a way to do this much faster. You'd get a small (perhaps very small) improvement by replacing the central line by put 1 into TestArray[rLine] but (without testing it), I suspect it will be a small change. However, if you can change your input lines slightly, you can do something that should be better. If these are permutations that you are generating, then as you generate each one, you might be able to add an extra character onto each line (let's say, a colon ":"). Then your data would look like 123: 125: 152: 231: etc. With this input, you could do split pData by CR and ":" combine pData by CR and ":" and all your duplicates have disappeared. It might be even faster to do split pData by CR and ":" put the keys of pData into pData and that would remove those extra ":"s for you at the same time. -- Alex. From charles at buchwald.ca Fri Aug 22 19:46:16 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Fri, 22 Aug 2014 18:46:16 -0500 Subject: Sunset, sunrise, twilight calculations in LC? Message-ID: Hi List People, Does anyone know of an LC version of sunrise/sunset and twilight calculations? I found a couple of web based APIs, but I'd like it to work offline. I found this: http://en.wikipedia.org/wiki/Sunrise_equation ... but it's going to take me a while to translate that into LC, which is why I'm asking. - Charles -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From mwieder at ahsoftware.net Fri Aug 22 19:58:56 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 22 Aug 2014 16:58:56 -0700 Subject: Speed In-Reply-To: <53F7D2E2.9070201@tweedly.net> References: <53F7D2E2.9070201@tweedly.net> Message-ID: <146-935084643.20140822165856@ahsoftware.net> Beat- Friday, August 22, 2014, 4:31:46 PM, you wrote: > It might be even faster to do > split pData by CR and ":" > put the keys of pData into pData > and that would remove those extra ":"s for you at the same time. Alex beat me to it. That combination should be much faster. In addition, you're losing much of the speed of the "repeat for each" loops by embedding a "repeat with" loop at the deepest level (and in addition you're making an unneccsary extra copy of tLine each time through the slowest loop): repeat for each line tLine in TempPerms1 repeat with y = Index down to 1 put tLine into Temp put newElement & comma before item y of temp put Temp & cr after TempPerms5 end repeat end repeat Something like this should be faster (do this for both upper and lower halves): repeat for each line tLine in TempPerms1 repeat for each item tItem in tLine put tItem & comma after TempPerms5 end repeat put cr into char -1 of TempPerms5 end repeat -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From charles at buchwald.ca Fri Aug 22 20:04:54 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Fri, 22 Aug 2014 19:04:54 -0500 Subject: Window manager plugin? Message-ID: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> Hi List Folks, I've been thinking about making a plugin that manages window positions or window layouts. If you are familiar with Adobe applications like Illustrator, Photoshop or InDesign, then you may have an idea of what I mean. Or perhaps you have used system-level utilities like Moom, Divvy, Shiftit, GridMove or WindowTidy. The idea is that you can save the position of one or more of your windows, including IDE palettes and so on, as a named set. Then you can switch back to those positions when you select that set again. So, for example, one might have a window layout for working on iPhone apps and another for tablet apps... or one for a dual monitor setup vs. a single monitor setup... or for working on server scripts... or all of the above. I switch back and forth between my laptop on its own, and my laptop open and next to a second monitor, so this would be really useful. Firstly: does anyone know of an existing LC plugin like this? And of course: is anyone else interested in a plugin like this? Cheers, - Charles -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From capellan2000 at gmail.com Fri Aug 22 20:06:32 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 22 Aug 2014 17:06:32 -0700 (PDT) Subject: Motion Graphic in LiveCode In-Reply-To: <53F7C57B.1040302@hindu.org> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> Message-ID: <1408752392164-4682303.post@n4.nabble.com> Brahmanathswami wrote > So anything more sophisticated, I assume must be done as a movie to > render in LiveCode. Could you find on youtube an example of sophisticate and post the link on this mail list? Notice that for this platform there was a dll for playing interactive 3d animation: Franklin3d, a port of Irrlicht 3D Engine for LiveCode and Real Basic... Franklin3D demo worked fine on Windows, but I do not have experience using it in other platforms. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Motion-Graphic-in-LiveCode-tp4682250p4682303.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Fri Aug 22 20:14:26 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 23 Aug 2014 02:14:26 +0200 Subject: Window manager plugin? In-Reply-To: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> Message-ID: <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> Hi Charles, I made a plug-in (donationware) which makes sure that windows open inside a visible screen rect and not off-screen. I could extend it and make it remember window positions. -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com Download Color Converter at http://www.color-converter.com Op 23-aug-2014, om 2:04 heeft Charles E Buchwald het volgende geschreven: > Hi List Folks, > > I've been thinking about making a plugin that manages window > positions or window layouts. If you are familiar with Adobe > applications like Illustrator, Photoshop or InDesign, then you may > have an idea of what I mean. Or perhaps you have used system-level > utilities like Moom, Divvy, Shiftit, GridMove or WindowTidy. > > The idea is that you can save the position of one or more of your > windows, including IDE palettes and so on, as a named set. Then you > can switch back to those positions when you select that set again. > > So, for example, one might have a window layout for working on > iPhone apps and another for tablet apps... or one for a dual > monitor setup vs. a single monitor setup... or for working on > server scripts... or all of the above. I switch back and forth > between my laptop on its own, and my laptop open and next to a > second monitor, so this would be really useful. > > Firstly: does anyone know of an existing LC plugin like this? > > And of course: is anyone else interested in a plugin like this? > > Cheers, > - Charles From dunbarx at aol.com Fri Aug 22 20:19:39 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 22 Aug 2014 20:19:39 -0400 (EDT) Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: References: Message-ID: <8D18C7F0FA9EAA2-1E54-17968@webmail-m225.sysops.aol.com> Hi, Assuming a single geographic location, can't you download a table of these times, and simply look them up based on their dates? Nautical twilight, sunset, etc., are all available. May as well throw in the phases of the moon, Calculating them is possible, but unless you are doing that just for the thrill, well.... Craig Newman -----Original Message----- From: Charles E Buchwald To: How to use LiveCode Sent: Fri, Aug 22, 2014 7:46 pm Subject: Sunset, sunrise, twilight calculations in LC? Hi List People, Does anyone know of an LC version of sunrise/sunset and twilight calculations? I found a couple of web based APIs, but I'd like it to work offline. I found this: http://en.wikipedia.org/wiki/Sunrise_equation ... but it's going to take me a while to translate that into LC, which is why I'm asking. - Charles -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Fri Aug 22 20:50:15 2014 From: sundown at pacifier.com (JB) Date: Fri, 22 Aug 2014 17:50:15 -0700 Subject: Window manager plugin? In-Reply-To: <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> Message-ID: <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> Hi Mark, Will that let you position the ask and answer dialogs? John Balgenorth On Aug 22, 2014, at 5:14 PM, Mark Schonewille wrote: > Hi Charles, > > I made a plug-in (donationware) which makes sure that windows open inside a visible screen rect and not off-screen. I could extend it and make it remember window positions. > > -- > > Economy-x-Talk > Consultancy and Software Engineering > http://economy-x-talk.com > > Download Color Converter at http://www.color-converter.com > > Op 23-aug-2014, om 2:04 heeft Charles E Buchwald het volgende geschreven: > >> Hi List Folks, >> >> I've been thinking about making a plugin that manages window positions or window layouts. If you are familiar with Adobe applications like Illustrator, Photoshop or InDesign, then you may have an idea of what I mean. Or perhaps you have used system-level utilities like Moom, Divvy, Shiftit, GridMove or WindowTidy. >> >> The idea is that you can save the position of one or more of your windows, including IDE palettes and so on, as a named set. Then you can switch back to those positions when you select that set again. >> >> So, for example, one might have a window layout for working on iPhone apps and another for tablet apps... or one for a dual monitor setup vs. a single monitor setup... or for working on server scripts... or all of the above. I switch back and forth between my laptop on its own, and my laptop open and next to a second monitor, so this would be really useful. >> >> Firstly: does anyone know of an existing LC plugin like this? >> >> And of course: is anyone else interested in a plugin like this? >> >> Cheers, >> - Charles > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Sat Aug 23 02:36:11 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 23 Aug 2014 14:36:11 +0800 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: On Fri, Aug 22, 2014 at 4:32 PM, Thierry Douez wrote: > >> As I said, the problem was: > needed to be: a \ backslash delimiting the / forward slash. > > Really? > > Mind you trying this simple one which works here > and without any backslash! > Typical (for me anyway) that worked fine so I thought I'd throw together a test stack and compare the two and NOW your original grep worked fine. So I thought maybe it was the message box as as I said, that's what I originally used to test your grep. But this time around it worked fine. So I'm left here scratching my head wondering what was different. Originally I tried a few and nothing worked until I inserted the backslash. > > Could you show me in the regular expression docs why > do we have to escape a slash? > So I looked into this and there is NO requirement to use \ to delimit the / char in PCRE grep. On further investigation it appears to be a limitation of the online grep tester which uses the / char to enclose the grep string so the server knows what you want to test. So again, thank you for openning my eyes to group naming and branch reset, as to the rest I appologise for leading you up a garden path which I have no idea how I stumbled up :-( From lan.kc.macmail at gmail.com Sat Aug 23 04:28:47 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 23 Aug 2014 16:28:47 +0800 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: References: Message-ID: Nope, but this will help you calculate the Julian Date Number, which you'll need: put the date into tDate convert tDate from date to dateItems if ((item 2 of tDate = 1) or (item 2 of tDate = 2)) then put 1 into tDay else put 0 into tDay end if put item 1 of tDate + 4800 - tDay into tYear put item 2 of tDate + (12 * tDay) - 3 into tMonth put item 3 of tDate + \ ((153 * tMonth + 2) div 5) + \ (365 * tYear) + \ (tYear div 4) - \ (tYear div 100) + \ (tYear div 400) - \ 32045 into tJDN On Sat, Aug 23, 2014 at 7:46 AM, Charles E Buchwald wrote: > Hi List People, > Does anyone know of an LC version of sunrise/sunset and twilight calculations? > I found a couple of web based APIs, but I'd like it to work offline. > I found this: http://en.wikipedia.org/wiki/Sunrise_equation ... but it's going to take me a while to translate that into LC, which is why I'm asking. > - Charles > > -- > Charles E. Buchwald > CEO/Director General > Museografica Digital > http://digital.museografica.com > > Mac OSX 10.9.4, LC 6.6.2 Commercial > > LC Developer Tools: http://buchwald.ca/developer-tools/ > > Email Notice: http://wp.me/P3aT4d-33 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dick.kriesel at mail.com Sat Aug 23 04:31:23 2014 From: dick.kriesel at mail.com (Dick Kriesel) Date: Sat, 23 Aug 2014 01:31:23 -0700 Subject: Speed In-Reply-To: References: Message-ID: On Aug 22, 2014, at 1:17 PM, Beat Cornaz wrote: > So a good example would be how to make all possible permutations of say 10 different elements (0-9). This gives 3628800 different permutations. > The resulting permutations will be in lines I guess, but what would be the best way to do this. Using lines, items, chars or any other way as Input? > > So the start would be f.i. a list with 10 lines with the ten elements, one in each line - That is what I am using now. > OR items "0,1,2,3,4,5,6,7,8,9" or chars "0123456789" or another way to represent 10 elements to make it possible to run the script in minutes, not hours. Hi, Beat. The Wikipedia entry for "permutation" says the fastest algorithm for generating permutations is Heap's algorithm. The entry for "Heap's algorithm" says the following is its pseudocode: procedure generate(N : integer, data : array of any): if N = 1 then output(data) else for c := 1; c <= N; c += 1 do generate(N - 1, data) swap(data[if N is odd then 1 else c], data[N]) So, here's a way in LiveCode to derive the 3,628,800 permutations of 10 things taken 10 at a time. On my 2012 iMac, it takes under two minutes. How's that, Beat? -- Dick on mouseUp test end mouseUp command test local tArray, tMilliseconds, tCountForPermutation put 1 into tArray[ 1 ] put 2 into tArray[ 2 ] repeat with n = 3 to 10 put n into tArray[ n ] put empty into tCountForPermutation put the milliseconds into tMilliseconds permute n, tArray, tCountForPermutation putLine n & " things produce " & ( number of elements in tCountForPermutation ) & " of " \ & factorial( n ) & " permutations in " & ( the milliseconds - tMilliseconds ) & " milliseconds" end repeat end test command permute n, @rArray, @rCountForPermutation if n > 1 then repeat with c = 1 to n permute n-1, rArray, rCountForPermutation if n mod 2 is 1 then swap rArray, 1, n else swap rArray, c, n end if insertPermutation rArray, rCountForPermutation end repeat end if end permute command swap @rArray, pKey1, pKey2 local t put rArray[ pKey1 ] into t put rArray[ pKey2 ] into rArray[ pKey1 ] put t into rArray[ pKey2 ] end swap command insertPermutation @pArray, @rCountForPermutation local tPermutation repeat with i = 1 to the number of elements in pArray put pArray[ i ] & space after tPermutation end repeat add 1 to rCountForPermutation[ char 1 to -2 of tPermutation ] end insertPermutation function factorial n if n = 1 then return 1 else return n * factorial( n-1 ) end if end factorial From dick.kriesel at mail.com Sat Aug 23 04:39:45 2014 From: dick.kriesel at mail.com (Dick Kriesel) Date: Sat, 23 Aug 2014 01:39:45 -0700 Subject: Speed In-Reply-To: References: Message-ID: <9023CD43-60C3-46B0-86F5-D7B1613DBD71@mail.com> On Aug 23, 2014, at 1:31 AM, Dick Kriesel wrote: > putLine n & " things produce " & ( number of elements in tCountForPermutation ) & " of " \ oops. please replace "putLine" with "put" From richmondmathewson at gmail.com Sat Aug 23 05:43:41 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 12:43:41 +0300 Subject: Schmidt-Cornelius Peninsular Message-ID: <53F8624D.5010908@gmail.com> http://livecode.com/blog/2014/08/22/koch-island-fractal-basics-with-livecode/ This is a lot of fun. But, oddly enough, on about the 6th or 7th click on the Iterate button the graphic is deleted! Richmond. From wow at together.net Sat Aug 23 05:54:16 2014 From: wow at together.net (Richard Miller) Date: Sat, 23 Aug 2014 05:54:16 -0400 Subject: Android video capture In-Reply-To: <53F7C57B.1040302@hindu.org> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> Message-ID: <53F864C8.8030602@together.net> Wondering if anyone knows of any creative way to capture video on an Android device through a LC app. Thanks, Richard Miller From marc.vancauwenberghe at pandora.be Sat Aug 23 06:44:42 2014 From: marc.vancauwenberghe at pandora.be (Marc Van Cauwenberghe) Date: Sat, 23 Aug 2014 12:44:42 +0200 Subject: RunRevLive 2014 Conference Mobile App by livecloud.io Message-ID: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> Anyone tried to install the app yet? Does not seem to be available. Marc From m.schonewille at economy-x-talk.com Sat Aug 23 07:07:40 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 23 Aug 2014 13:07:40 +0200 Subject: Window manager plugin? In-Reply-To: <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> Message-ID: Hi John, No, but that should be easy. There are several ways to do this. For example, create an invisible stack, set its location to the location where you want the answer dialog. Set the defaultStack to this stack and execute the ask or answer command. There may be more elegant ways. set the topleft of the templateStack to 0,32 set the vis of the templateStack to false create stack "place holder" set the defaultStack to it answer "bla" put it into myAnswer delete stack Place Holder" This should work on windows and probably also on Mac, but on Mac I almost always use ask/answer as sheet. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 23 aug. 2014 om 02:50 heeft JB het volgende geschreven: > Hi Mark, > > Will that let you position the ask and answer dialogs? > > John Balgenorth > > > On Aug 22, 2014, at 5:14 PM, Mark Schonewille wrote: > >> Hi Charles, >> >> I made a plug-in (donationware) which makes sure that windows open inside a visible screen rect and not off-screen. I could extend it and make it remember window positions. >> >> -- >> >> Economy-x-Talk >> Consultancy and Software Engineering >> http://economy-x-talk.com >> >> Download Color Converter at http://www.color-converter.com >> >> Op 23-aug-2014, om 2:04 heeft Charles E Buchwald het volgende geschreven: >> >>> Hi List Folks, >>> >>> I've been thinking about making a plugin that manages window positions or window layouts. If you are familiar with Adobe applications like Illustrator, Photoshop or InDesign, then you may have an idea of what I mean. Or perhaps you have used system-level utilities like Moom, Divvy, Shiftit, GridMove or WindowTidy. >>> >>> The idea is that you can save the position of one or more of your windows, including IDE palettes and so on, as a named set. Then you can switch back to those positions when you select that set again. >>> >>> So, for example, one might have a window layout for working on iPhone apps and another for tablet apps... or one for a dual monitor setup vs. a single monitor setup... or for working on server scripts... or all of the above. I switch back and forth between my laptop on its own, and my laptop open and next to a second monitor, so this would be really useful. >>> >>> Firstly: does anyone know of an existing LC plugin like this? >>> >>> And of course: is anyone else interested in a plugin like this? >>> >>> Cheers, >>> - Charles >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Aug 23 08:06:19 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 15:06:19 +0300 Subject: Mucking around with animated GIF images. Message-ID: <53F883BB.7010900@gmail.com> Well, I had fun anyway :) http://forums.livecode.com/viewtopic.php?f=25&t=21381&p=109524#p109524 But I have the advantage of running Bryce 4 on my G5 iMac in Classic mode! And . . . I had almost completely forgotten about PICT and TIFF image formats . . . Richmond. From lan.kc.macmail at gmail.com Sat Aug 23 08:10:22 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 23 Aug 2014 20:10:22 +0800 Subject: Speed In-Reply-To: References: Message-ID: I obtained a 10% speed increase by changing this: repeat with n = 3 to 10 to this: put "3,4,5,6,7,8,9,10" into nList repeat for each item n in nList From admin at FlexibleLearning.com Sat Aug 23 08:13:16 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Sat, 23 Aug 2014 13:13:16 +0100 Subject: Sunset, sunrise, twilight calculations in LC? Message-ID: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> Yes. I have done this. It is not a trivial exercise. It requires a lot of complex solar geometry calculations as well as Julian calcs. Go to http://www.esrl.noaa.gov/gmd/grad/solcalc, pick the "Solar Calculator", extract the javascript in the web page, then translate it to LC for use in your own work. You may be some time... I was! :) Hugh Senior FLCo > Hi List People, > Does anyone know of an LC version of sunrise/sunset and twilight > calculations? > I found a couple of web based APIs, but I'd like it to work offline. > I found this: http://en.wikipedia.org/wiki/Sunrise_equation ... but it's going > to take me a while to translate that into LC, which is why I'm asking. > - Charles > > -- > Charles E. Buchwald > CEO/Director General > Museografica Digital > http://digital.museografica.com > > Mac OSX 10.9.4, LC 6.6.2 Commercial > > LC Developer Tools: http://buchwald.ca/developer-tools/ > > Email Notice: http://wp.me/P3aT4d-33 From richmondmathewson at gmail.com Sat Aug 23 08:17:45 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 15:17:45 +0300 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> Message-ID: <53F88669.8030906@gmail.com> On 23/08/14 15:13, FlexibleLearning.com wrote: > Yes. I have done this. It is not a trivial exercise. It requires a lot of > complex solar geometry calculations as well as Julian calcs. > > Go to http://www.esrl.noaa.gov/gmd/grad/solcalc, pick the "Solar > Calculator", extract the javascript in the web page, then translate it to LC > for use in your own work. > > You may be some time... I was! :) > > Hugh Senior > FLCo > > Julian Calendar? http://en.wikipedia.org/wiki/Sunrise_equation Richmond. From prothero at earthednet.org Sat Aug 23 10:44:35 2014 From: prothero at earthednet.org (Earthednet-wp) Date: Sat, 23 Aug 2014 07:44:35 -0700 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F88669.8030906@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> Message-ID: <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> I found this link. It might be easier to convert this code to LC. http://williams.best.vwh.net/sunrise_sunset_algorithm.htm Bill William Prothero http://es.earthednet.org > On Aug 23, 2014, at 5:17 AM, Richmond wrote: > >> On 23/08/14 15:13, FlexibleLearning.com wrote: >> Yes. I have done this. It is not a trivial exercise. It requires a lot of >> complex solar geometry calculations as well as Julian calcs. >> >> Go to http://www.esrl.noaa.gov/gmd/grad/solcalc, pick the "Solar >> Calculator", extract the javascript in the web page, then translate it to LC >> for use in your own work. >> >> You may be some time... I was! :) >> >> Hugh Senior >> FLCo > > Julian Calendar? > > http://en.wikipedia.org/wiki/Sunrise_equation > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Aug 23 11:09:28 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 18:09:28 +0300 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> Message-ID: <53F8AEA8.6050607@gmail.com> On 23/08/14 17:44, Earthednet-wp wrote: > I found this link. It might be easier to convert this code to LC. > http://williams.best.vwh.net/sunrise_sunset_algorithm.htm > Bill > > William Prothero > http://es.earthednet.org > > That looks very good indeed: but I don't understand what 'floor' means. Richmond. From capellan2000 at gmail.com Sat Aug 23 11:31:10 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 23 Aug 2014 08:31:10 -0700 (PDT) Subject: Mucking around with animated GIF images. In-Reply-To: <53F883BB.7010900@gmail.com> References: <53F883BB.7010900@gmail.com> Message-ID: <1408807870294-4682321.post@n4.nabble.com> Really Nice! :D If I had to do this effect, only will cutout the floating mountain and use the sky and sea as static background. Many Thanks for including in your Forum post a download link to Bryce Personal Learning Edition: http://www.freedownloadsplace.com/Bryce-Download-40177.htm Back in 2010 you posted about Microsoft Expression 3.3 A free download from Microsoft website: For Windows: http://download.microsoft.com/download/a/5/d/a5d625a5-2e3d-4e9c-8608-6de48d7b569f/CreatureHouseExpression3_3.exe For Macintosh: http://www.microsoft.com/en-us/download/details.aspx?id=31249 Still I have to test this free version of Expression Web: http://www.microsoft.com/en-us/download/details.aspx?id=36179 By the way, each LiveCode developer could improve vastly their use and application of graphics and images inside this platform learning from the Masters of Extreme Graphics Optimization: Game Developers https://software.intel.com/en-us/articles/achieving-performance-an-approach-to-optimizing-a-game-engine Does RunRev had invited an experienced game developer to demonstrate in the conference about the most optimal use of graphics in games developed with Livecode? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Mucking-around-with-animated-GIF-images-tp4682315p4682321.html Sent from the Revolution - User mailing list archive at Nabble.com. From scott at tactilemedia.com Sat Aug 23 11:54:36 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 23 Aug 2014 08:54:36 -0700 Subject: Window manager plugin? In-Reply-To: References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> Message-ID: >> >> Will that let you position the ask and answer dialogs? >> >> John Balgenorth >> >> Here's one way to position ask/answer dialogs on desktop: [ in your stack script ] on suspendStack if "ask dialog" is among the lines of the openStacks then set the loc of stack "ask dialog" to the loc of me end if end suspendStack on suspendStack if "answer dialog" is among the lines of the openStacks then set the loc of stack "answer dialog" to the loc of me end if end suspendStack ( can replace "loc of me" with any desired screenLoc ) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From richmondmathewson at gmail.com Sat Aug 23 12:11:25 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 19:11:25 +0300 Subject: Mucking around with animated GIF images. In-Reply-To: <1408807870294-4682321.post@n4.nabble.com> References: <53F883BB.7010900@gmail.com> <1408807870294-4682321.post@n4.nabble.com> Message-ID: <53F8BD2D.2080708@gmail.com> On 23/08/14 18:31, Alejandro Tejada wrote: > Really Nice! :D > > If I had to do this effect, only will cutout the floating mountain and > use the sky and sea as static background. > > Many Thanks for including in your Forum post > a download link to Bryce Personal Learning Edition: > http://www.freedownloadsplace.com/Bryce-Download-40177.htm > > Back in 2010 you posted about Microsoft Expression 3.3 > A free download from Microsoft website: > For Windows: > http://download.microsoft.com/download/a/5/d/a5d625a5-2e3d-4e9c-8608-6de48d7b569f/CreatureHouseExpression3_3.exe > For Macintosh: http://www.microsoft.com/en-us/download/details.aspx?id=31249 > > Still I have to test this free version of Expression Web: > http://www.microsoft.com/en-us/download/details.aspx?id=36179 > > By the way, each LiveCode developer could improve vastly > their use and application of graphics and images inside this platform > learning from the Masters of Extreme Graphics Optimization: > > Game Developers > https://software.intel.com/en-us/articles/achieving-performance-an-approach-to-optimizing-a-game-engine > > Does RunRev had invited an experienced game developer to demonstrate > in the conference about the most optimal use of graphics in games > developed with Livecode? > > Al > > As I have NO money to spend on software I am always on the look out for Free software, and always think it is a good idea to pass on any links to what I find. I have just seen this: http://www.microsoft.com/en-us/download/details.aspx?id=36179 Richmond. From prothero at earthednet.org Sat Aug 23 12:13:24 2014 From: prothero at earthednet.org (Earthednet-wp) Date: Sat, 23 Aug 2014 09:13:24 -0700 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8AEA8.6050607@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> Message-ID: <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> Richmond, Floor of a number is the largest integer that is less than or equal to the number. For positive numbers, it would be trunc(myNumber) but for negative numbers, floor(-4.34) would have to evaluate to -5. Probably trunc(myNum-1) would almost do it, but I'm not in LC to check all cases, e.g. floor(-4.0) should be -4. Bill William Prothero http://es.earthednet.org > On Aug 23, 2014, at 8:09 AM, Richmond wrote: > >> On 23/08/14 17:44, Earthednet-wp wrote: >> I found this link. It might be easier to convert this code to LC. >> http://williams.best.vwh.net/sunrise_sunset_algorithm.htm >> Bill >> >> William Prothero >> http://es.earthednet.org >> >> > > That looks very good indeed: but I don't understand what 'floor' means. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Aug 23 12:20:57 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 19:20:57 +0300 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> Message-ID: <53F8BF69.6010505@gmail.com> On 23/08/14 19:13, Earthednet-wp wrote: > Richmond, > Floor of a number is the largest integer that is less than or equal to the number. For positive numbers, it would be trunc(myNumber) but for negative numbers, floor(-4.34) would have to evaluate to -5. Probably trunc(myNum-1) would almost do it, but I'm not in LC to check all cases, e.g. floor(-4.0) should be -4. > Bill > > William Prothero > http://es.earthednet.org > >> On Aug 23, 2014, at 8:09 AM, Richmond wrote: >> >>> On 23/08/14 17:44, Earthednet-wp wrote: >>> I found this link. It might be easier to convert this code to LC. >>> http://williams.best.vwh.net/sunrise_sunset_algorithm.htm >>> Bill >>> >>> William Prothero >>> http://es.earthednet.org >>> >>> >> That looks very good indeed: but I don't understand what 'floor' means. >> >> Richmond. >> >> That "floored me" :) Thanks for the heads up! I just wrote this in the Message Box: put trunc(-9.8) and got '-9' Richmond. From sundown at pacifier.com Sat Aug 23 12:25:39 2014 From: sundown at pacifier.com (JB) Date: Sat, 23 Aug 2014 09:25:39 -0700 Subject: Window manager plugin? In-Reply-To: References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> Message-ID: <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> Hi Scott, I put the script in my stack script and it continued to show the answer dialog in the center of the screen. So I replaced llc with ?112,110? and nothing changed. Then I added "put the openStacks" into the mouseUp handler where the answer dialog is called from. If it is at the very beginning of the handler it puts the open stacks in the message box. But if it is before or after the answer script nothing is put in the message box. John Balgenorth On Aug 23, 2014, at 8:54 AM, Scott Rossi wrote: > >>> >>> Will that let you position the ask and answer dialogs? >>> >>> John Balgenorth >>> >>> > > > > Here's one way to position ask/answer dialogs on desktop: > > [ in your stack script ] > > on suspendStack > if "ask dialog" is among the lines of the openStacks then > set the loc of stack "ask dialog" to the loc of me > end if > end suspendStack > > > on suspendStack > if "answer dialog" is among the lines of the openStacks then > set the loc of stack "answer dialog" to the loc of me > end if > end suspendStack > > > > ( can replace "loc of me" with any desired screenLoc ) > > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Sat Aug 23 12:42:17 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 23 Aug 2014 09:42:17 -0700 Subject: Standard Library In-Reply-To: References: <8AFBA1B1-B215-4FA1-90C7-289ED0E4639A@pacifier.com> <53E6BEBA.20106@fourthworld.com> Message-ID: <126-874885543.20140823094217@ahsoftware.net> Kay- Friday, August 22, 2014, 11:36:11 PM, you wrote: > So I looked into this and there is NO requirement to use \ to delimit > the / char in PCRE grep. On further investigation it appears to be a > limitation of the online grep tester which uses the / char to enclose > the grep string so the server knows what you want to test. Use of the forward slash char (/) is fairly common to delineate strings, at least in linux/perl circles. Normally any char can be used so long as it doesn't appear in the strings to be tested or replaced, but it's very common to see something like echo day | sed s/day/night/ -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From ambassador at fourthworld.com Sat Aug 23 12:59:39 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 23 Aug 2014 09:59:39 -0700 Subject: Window manager plugin? In-Reply-To: References: Message-ID: <53F8C87B.1000902@fourthworld.com> Scott Rossi wrote: > Here's one way to position ask/answer dialogs on desktop: > > [ in your stack script ] > > on suspendStack > if "ask dialog" is among the lines of the openStacks then > set the loc of stack "ask dialog" to the loc of me > end if > end suspendStack > > > on suspendStack > if "answer dialog" is among the lines of the openStacks then > set the loc of stack "answer dialog" to the loc of me > end if > end suspendStack > > ( can replace "loc of me" with any desired screenLoc ) On Windows and Linux centering to the topstack is already the default behavior. On OS X, if an alert applies application-wide the HIG suggest the standard alert location (horizontally centered, 2/5 of the way down from the top vertically). When you need an answer dialog to apply to a single window, you can get both enhanced behavior and window-specific location using the "as sheet" modifier: answer "Something" as sheet Not only will this use OS X's recommended sheet appearance, but on all platforms the alert box will be modal only to the stack over which is appears, allowing the user to continue to interact with other windows. That said, from time to time we're asked to do things outside of the HIG recommendations, and there's a request for being able to set the loc of the ask and answer dialogs in the RQCC: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From userev at canelasoftware.com Sat Aug 23 13:04:25 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sat, 23 Aug 2014 10:04:25 -0700 Subject: RunRevLive 2014 Conference Mobile App by livecloud.io In-Reply-To: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> Message-ID: <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> On Aug 23, 2014, at 3:44 AM, Marc Van Cauwenberghe wrote: > Anyone tried to install the app yet? > Does not seem to be available. Hi Marc, The Android version is available now via our website (device needs to be in developer mode). http://livecloud.io/runrevlive-14-conference-app/ We have submitted the app to Apple for review. It is up to them now. If you want it early, I would be more than happy to email you a *tester* copy of the executable that can be installed via xCode/iTunes. I would just need your UDID. Please send it to support at canelasoftware.com in the following format. fName,lName,deviceModel,UDID This offer applies to everyone else as well. Best regards, Mark Talluto CanelaSoftware.com LiveCloud.io From scott at tactilemedia.com Sat Aug 23 13:07:06 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 23 Aug 2014 10:07:06 -0700 Subject: Window manager plugin? In-Reply-To: <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> Message-ID: I should have clarified that I listed two scripts: one for answer, one for ask. But the script is working here for all versions of LC, Mac and Win, including v7. Not sure what to tell you. Did you try the script in a new, empty stack? Something like this would be better to be all-inclusive: on suspendStack put the openStacks into theList if "answer dialog" is among the lines of theList then set the loc of stack "answer dialog" to loc of me if "ask dialog" is among the lines of theList then set the loc of stack "ask dialog" to loc of me end suspendStack Historically, there has been no "approved" way to position the dialogs that I know of. This method was suggested a long time ago (can't recall by who) but it works for me. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/23/14 9:25 AM, "JB" wrote: >Hi Scott, > >I put the script in my stack script and it continued to >show the answer dialog in the center of the screen. >So I replaced llc with ?112,110? and nothing changed. > >Then I added "put the openStacks" into the mouseUp >handler where the answer dialog is called from. If it >is at the very beginning of the handler it puts the open >stacks in the message box. But if it is before or after >the answer script nothing is put in the message >box. > >John Balgenorth > > >On Aug 23, 2014, at 8:54 AM, Scott Rossi wrote: > >> >>>> >>>> Will that let you position the ask and answer dialogs? >>>> >>>> John Balgenorth >>>> >>>> >> >> >> >> Here's one way to position ask/answer dialogs on desktop: >> >> [ in your stack script ] >> >> on suspendStack >> if "ask dialog" is among the lines of the openStacks then >> set the loc of stack "ask dialog" to the loc of me >> end if >> end suspendStack >> >> >> on suspendStack >> if "answer dialog" is among the lines of the openStacks then >> set the loc of stack "answer dialog" to the loc of me >> end if >> end suspendStack >> >> >> >> ( can replace "loc of me" with any desired screenLoc ) >> >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sat Aug 23 13:13:27 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 23 Aug 2014 10:13:27 -0700 Subject: Speed In-Reply-To: References: Message-ID: <53F8CBB7.5030608@fourthworld.com> Beat Cornaz wrote: > I have some hundred fitness functions, which need to be recalculated > many times. But I think the problem of making Permutations might be > illuminating for me, as this one takes quite long to run (with 10 or > more elements to Permutate). > > So a good example would be how to make all possible permutations of > say 10 different elements (0-9). This gives 3628800 different > permutations. How will these permutations be used? More specifically, unless they all need to be acted on at once, would it be useful to consider a function that only generates one or a series as needed, keeping track of where it left off so it can generate the next batch next time it's called? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From livfoss at mac.com Sat Aug 23 13:14:53 2014 From: livfoss at mac.com (Graham Samuel) Date: Sat, 23 Aug 2014 19:14:53 +0200 Subject: OpenField mystery Message-ID: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> I have a palette with a lot of objects on it. There are some fields and some buttons. I have just realised that when I click on one of the buttons, before executing the 'mouseUp' handler for the button, the engine fires an 'openField' for one of the fields. I can't see what I have done to cause this, but it's causing chaos! Happens in the IDE and the corresponding standalone. This appears contrary to the LC Dictionary, which says > Sent to an unlocked field when you click or select text in that field. I suppose (as usual) it's something I've done, but I can't see what. The cursor is not showing in the field. Has anyone any suggestion as to why this is happening? TIA Graham From sundown at pacifier.com Sat Aug 23 13:21:45 2014 From: sundown at pacifier.com (JB) Date: Sat, 23 Aug 2014 10:21:45 -0700 Subject: Window manager plugin? In-Reply-To: <53F8C87B.1000902@fourthworld.com> References: <53F8C87B.1000902@fourthworld.com> Message-ID: Thanks for the info, Richard. John Balgenorth On Aug 23, 2014, at 9:59 AM, Richard Gaskin wrote: > Scott Rossi wrote: > >> Here's one way to position ask/answer dialogs on desktop: >> >> [ in your stack script ] >> >> on suspendStack >> if "ask dialog" is among the lines of the openStacks then >> set the loc of stack "ask dialog" to the loc of me >> end if >> end suspendStack >> >> >> on suspendStack >> if "answer dialog" is among the lines of the openStacks then >> set the loc of stack "answer dialog" to the loc of me >> end if >> end suspendStack >> >> ( can replace "loc of me" with any desired screenLoc ) > > On Windows and Linux centering to the topstack is already the default behavior. > > On OS X, if an alert applies application-wide the HIG suggest the standard alert location (horizontally centered, 2/5 of the way down from the top vertically). > > When you need an answer dialog to apply to a single window, you can get both enhanced behavior and window-specific location using the "as sheet" modifier: > > answer "Something" as sheet > > Not only will this use OS X's recommended sheet appearance, but on all platforms the alert box will be modal only to the stack over which is appears, allowing the user to continue to interact with other windows. > > That said, from time to time we're asked to do things outside of the HIG recommendations, and there's a request for being able to set the loc of the ask and answer dialogs in the RQCC: > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Sat Aug 23 13:24:10 2014 From: sundown at pacifier.com (JB) Date: Sat, 23 Aug 2014 10:24:10 -0700 Subject: Window manager plugin? In-Reply-To: References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> Message-ID: <4596C011-F77D-44EA-A55C-0B47064FC105@pacifier.com> Thanks Scott. I cannot believe how dumb I am somedays. The problem was I pasted the code as it was in my openStack handler and after looking at it I see they both call the same thing. Your latest version fixed it. thank again. John Balgenorth On Aug 23, 2014, at 10:07 AM, Scott Rossi wrote: > I should have clarified that I listed two scripts: one for answer, one for > ask. But the script is working here for all versions of LC, Mac and Win, > including v7. Not sure what to tell you. Did you try the script in a > new, empty stack? > > Something like this would be better to be all-inclusive: > > on suspendStack > put the openStacks into theList > if "answer dialog" is among the lines of theList then set the loc of > stack "answer dialog" to loc of me > if "ask dialog" is among the lines of theList then set the loc of stack > "ask dialog" to loc of me > end suspendStack > > > Historically, there has been no "approved" way to position the dialogs > that I know of. This method was suggested a long time ago (can't recall > by who) but it works for me. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 8/23/14 9:25 AM, "JB" wrote: > >> Hi Scott, >> >> I put the script in my stack script and it continued to >> show the answer dialog in the center of the screen. >> So I replaced llc with ?112,110? and nothing changed. >> >> Then I added "put the openStacks" into the mouseUp >> handler where the answer dialog is called from. If it >> is at the very beginning of the handler it puts the open >> stacks in the message box. But if it is before or after >> the answer script nothing is put in the message >> box. >> >> John Balgenorth >> >> >> On Aug 23, 2014, at 8:54 AM, Scott Rossi wrote: >> >>> >>>>> >>>>> Will that let you position the ask and answer dialogs? >>>>> >>>>> John Balgenorth >>>>> >>>>> >>> >>> >>> >>> Here's one way to position ask/answer dialogs on desktop: >>> >>> [ in your stack script ] >>> >>> on suspendStack >>> if "ask dialog" is among the lines of the openStacks then >>> set the loc of stack "ask dialog" to the loc of me >>> end if >>> end suspendStack >>> >>> >>> on suspendStack >>> if "answer dialog" is among the lines of the openStacks then >>> set the loc of stack "answer dialog" to the loc of me >>> end if >>> end suspendStack >>> >>> >>> >>> ( can replace "loc of me" with any desired screenLoc ) >>> >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From coiin at verizon.net Sat Aug 23 13:31:22 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 23 Aug 2014 13:31:22 -0400 Subject: RunRevLive 2014 Conference Mobile App by livecloud.io In-Reply-To: <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> Message-ID: <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> Is it a LiveCode app? If it is, would you want to send the stack to people who have iPhone developer accounts, rather than take up one of your UDID slots? On Aug 23, 2014, at 1:04 PM, Mark Talluto wrote: > I would just need your UDID. Please send it to support at canelasoftware.com in the following format. > > fName,lName,deviceModel,UDID > > This offer applies to everyone else as well. From jacque at hyperactivesw.com Sat Aug 23 13:44:38 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 23 Aug 2014 12:44:38 -0500 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8BF69.6010505@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> Message-ID: <53F8D306.50808@hyperactivesw.com> On 8/23/2014, 11:20 AM, Richmond wrote: > That "floored me" :) Thanks for the heads up! > > I just wrote this in the Message Box: > > put trunc(-9.8) > > and got '-9' The correct answer for "floor" would be -10. It's the largest integer that is less than the test number. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From charles at buchwald.ca Sat Aug 23 14:04:44 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Sat, 23 Aug 2014 13:04:44 -0500 Subject: OpenField mystery In-Reply-To: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> Message-ID: <488A4FAB-4F3F-4B0F-9C5E-D2F6E02FE687@buchwald.ca> Graham, I'm just speculating... Is one of your fields receiving keyboard focus when the palette receives focus? Do you get the same "openField" for each button press in the palette, or just the first one upon returning to the palette? - Charles On 23 Aug 2014, at 12:14 PM, Graham Samuel wrote: > I have a palette with a lot of objects on it. There are some fields and some buttons. I have just realised that when I click on one of the buttons, before executing the 'mouseUp' handler for the button, the engine fires an 'openField' for one of the fields. I can't see what I have done to cause this, but it's causing chaos! Happens in the IDE and the corresponding standalone. This appears contrary to the LC Dictionary, which says > >> Sent to an unlocked field when you click or select text in that field. > > I suppose (as usual) it's something I've done, but I can't see what. The cursor is not showing in the field. > > Has anyone any suggestion as to why this is happening? > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From richmondmathewson at gmail.com Sat Aug 23 14:05:17 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 21:05:17 +0300 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8D306.50808@hyperactivesw.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> Message-ID: <53F8D7DD.2070305@gmail.com> On 23/08/14 20:44, J. Landman Gay wrote: > On 8/23/2014, 11:20 AM, Richmond wrote: >> That "floored me" :) Thanks for the heads up! >> >> I just wrote this in the Message Box: >> >> put trunc(-9.8) >> >> and got '-9' > > The correct answer for "floor" would be -10. It's the largest integer > that is less than the test number. > put round(-9.8_ give us 10 Yo! Richmond. From jacque at hyperactivesw.com Sat Aug 23 14:06:17 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 23 Aug 2014 13:06:17 -0500 Subject: Window manager plugin? In-Reply-To: References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> Message-ID: <53F8D819.90509@hyperactivesw.com> On 8/23/2014, 12:07 PM, Scott Rossi wrote: > I should have clarified that I listed two scripts: one for answer, one for > ask. But the script is working here for all versions of LC, Mac and Win, > including v7. Not sure what to tell you. Did you try the script in a > new, empty stack? > > Something like this would be better to be all-inclusive: > > on suspendStack > put the openStacks into theList > if "answer dialog" is among the lines of theList then set the loc of > stack "answer dialog" to loc of me > if "ask dialog" is among the lines of theList then set the loc of stack > "ask dialog" to loc of me > end suspendStack I needed this once, and tried this suggestion but I couldn't get it to work either. I'm not sure why. I settled on this hack: on answerWithLoc pString,pBtn1,pBtn2 set the vis of stack "answer dialog" to false answer pString with pBtn1 and pBtn2 set the loc of stack "answer dialog" to the loc of this stack set the vis of stack "answer dialog" to true end answerWithLoc -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From charles at buchwald.ca Sat Aug 23 14:13:53 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Sat, 23 Aug 2014 13:13:53 -0500 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8D7DD.2070305@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> Message-ID: <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> So I'm thinking... function Floor pValue if pValue < 0 then return trunc(pValue) - 1 else return trunc(pValue) end Floor On 23 Aug 2014, at 1:05 PM, Richmond wrote: > On 23/08/14 20:44, J. Landman Gay wrote: >> On 8/23/2014, 11:20 AM, Richmond wrote: >>> That "floored me" :) Thanks for the heads up! >>> >>> I just wrote this in the Message Box: >>> >>> put trunc(-9.8) >>> >>> and got '-9' >> >> The correct answer for "floor" would be -10. It's the largest integer that is less than the test number. >> > > put round(-9.8_ > > give us 10 > > Yo! > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From scott at tactilemedia.com Sat Aug 23 14:17:38 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 23 Aug 2014 11:17:38 -0700 Subject: Window manager plugin? In-Reply-To: <53F8D819.90509@hyperactivesw.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> <53F8D819.90509@hyperactivesw.com> Message-ID: If you haven't already, try the script in an empty stack -- should work as expected. I doubt my systems have any special mojo going on (usually I get curses, plagues, and the occasional hex). Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/23/14 11:06 AM, "J. Landman Gay" wrote: >On 8/23/2014, 12:07 PM, Scott Rossi wrote: >> I should have clarified that I listed two scripts: one for answer, one >>for >> ask. But the script is working here for all versions of LC, Mac and >>Win, >> including v7. Not sure what to tell you. Did you try the script in a >> new, empty stack? >> >> Something like this would be better to be all-inclusive: >> >> on suspendStack >> put the openStacks into theList >> if "answer dialog" is among the lines of theList then set the loc of >> stack "answer dialog" to loc of me >> if "ask dialog" is among the lines of theList then set the loc of >>stack >> "ask dialog" to loc of me >> end suspendStack > >I needed this once, and tried this suggestion but I couldn't get it to >work either. I'm not sure why. I settled on this hack: > >on answerWithLoc pString,pBtn1,pBtn2 > set the vis of stack "answer dialog" to false > answer pString with pBtn1 and pBtn2 > set the loc of stack "answer dialog" to the loc of this stack > set the vis of stack "answer dialog" to true >end answerWithLoc > >-- >Jacqueline Landman Gay | jacque at hyperactivesw.com >HyperActive Software | http://www.hyperactivesw.com > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Sat Aug 23 14:19:00 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 23 Aug 2014 14:19:00 -0400 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8D7DD.2070305@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> Message-ID: You must be running LiveCode version -7. It shows -10 for me. On Aug 23, 2014, at 2:05 PM, Richmond wrote: > put round(-9.8_ > > give us 10 > > Yo! > > Richmond. From charles at buchwald.ca Sat Aug 23 14:21:44 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Sat, 23 Aug 2014 13:21:44 -0500 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: References: Message-ID: <6519A6E2-83CF-460C-9B7C-4A9AF10486B8@buchwald.ca> Kay, Thanks. I have been using Sarah Reichelt's Date & Time Library, which contains these functions by Mark Wieder. I actually didn't realize they were under copyright, but I see that now. It says something nice about LC that this code is 10 years old and still valid and valuable. - Charles -- dateTimeToJulian(pYear, pMonth, pDate, [pHour], [pMins], [pSecs]) -- -- dateTimeToJulian() -- dateTimeToJulian(2004,3,22) -- dateTimeToJulian(2004,3,22,12,2) -- dateTimeToJulian(2004,3,22,12,5,45) -- -- This function returns the date and time in Julian date format. -- If no date is specified, it will use the current date. -- If supplied, the date must be in date items format: year, month, day, hour, minutes, seconds -- This is because the internal date conversions may not work for early dates. -- The time parameters are optional and seconds need not be specified. -- -- Julian dates (abbreviated JD) are simply a continuous count of days and fractions -- since noon Universal Time on January 1, 4713 BCE (on the Julian calendar). -- Almost 2.5 million days have transpired since this date. -- Julian dates are widely used as time variables within astronomical software. -- Typically, a 64-bit floating point (double precision) variable can represent -- an epoch expressed as a Julian date to about 1 millisecond precision. -- Note that the time scale that is the basis for Julian dates is Universal Time, -- and that 0h UT corresponds to a Julian date fraction of 0.5. -- -- It is assumed that 7-day weeks have formed an uninterrupted sequence since ancient times. -- Thus, the day of the week can be obtained from the remainder of the division of -- the Julian date by 7. -- -- This function is copyright 2004 Mark Wieder and Ah, Software -- function dateTimeToJulian pYear, pMonth, pDate, pHour, pMins, pSecs if the paramcount < 3 then put the seconds into tNow convert tNow to dateItems put item 1 of tNow into pYear put item 2 of tNow into pMonth put item 3 of tNow into pDate put item 4 of tNow into pHour put item 5 of tNow into pMins put item 6 of tNow into pSecs end if if pHour is empty then put 0 into pHour if pMins is empty then put 0 into pMins if pSecs is empty then put 0 into pSecs -- calculate date part of Julian number put 100 * pYear + pMonth - 190002.5 into extra put 367 * pYear into julianDate subtract trunc(7.0 * (pYear + trunc((pMonth + 9) / 12)) / 4) from julianDate add trunc(275 * pMonth / 9 ) to julianDate add pDate to julianDate -- now add the time as a fractional day add (pHour + (pMins + pSecs / 60) / 60) / 24 to julianDate add 1721013.5 to julianDate subtract .5 * extra / abs(extra) from julianDate -- compensate for the fact the UTC starts at noon add .5 to julianDate return julianDate end dateTimeToJulian -- JulianToDateTime(pJulian) -- -- JulianToDateTime(2453086.5) -- JulianToDateTime(2453087.001389) -- JulianToDateTime(2453087.003993) -- -- This function returns the date in short English date format. -- If the supplied Julian time includes a time component, -- it returns the time in either long or short 24 hour format, -- depending on whether the seconds are zero or not. -- See dateTimeToJulian for more notes about Julian dates. -- -- This function is copyright 2004 Mark Wieder and Ah, Software -- function JulianToDateTime pJulian put trunc(pJulian + .5) into jd0 if (jd0 < 2299161) then put jd0 + 1524 into c else put trunc((jd0 - 1867216.25) / 36524.25) into b put jd0 + (b - trunc(b/4)) + 1525 into c end if put trunc((c - 122.1)/365.25) into d put 365 * d + trunc(d/4) into e put trunc((c-e) / 30.6001) into f put trunc(c - e + .5) - trunc(30.6001 * f) into tDate put f - 1 - 12 * trunc(f/14) into tMonth put d - 4715 - trunc((7 + tMonth) /10) into tYear put 24 * (pJulian + .5 - jd0) into tempHour put trunc(tempHour * 60 + .5) / 60 into tHour put trunc(tHour) into tHour put (60 * (tempHour - tHour)) into tempMin put trunc(tempMin) into tMin put round(60 * (tempMin - tMin)) into tSec if tHour < 10 then put "0" before tHour if tMin < 10 then put "0" before tMin if tSec < 10 then put "0" before tSec if tHour = 0 and tMin = 0 and tSec = 0 then put tMonth & "/" & trunc(tDate) & "/" & tYear into tResult else if tSec = 0 then put tMonth & "/" & trunc(tDate) & "/" & tYear && tHour & ":" & tMin into tResult else put tMonth & "/" & trunc(tDate) & "/" & tYear && tHour & ":" & tMin & ":" & tSec into tResult end if return tResult end JulianToDateTime() On 23 Aug 2014, at 3:28 AM, Kay C Lan wrote: > Nope, but this will help you calculate the Julian Date Number, which > you'll need: > > put the date into tDate > convert tDate from date to dateItems > if ((item 2 of tDate = 1) or (item 2 of tDate = 2)) then > put 1 into tDay > else > put 0 into tDay > end if > put item 1 of tDate + 4800 - tDay into tYear > put item 2 of tDate + (12 * tDay) - 3 into tMonth > put item 3 of tDate + \ > ((153 * tMonth + 2) div 5) + \ > (365 * tYear) + \ > (tYear div 4) - \ > (tYear div 100) + \ > (tYear div 400) - \ > 32045 into tJDN > > On Sat, Aug 23, 2014 at 7:46 AM, Charles E Buchwald wrote: >> Hi List People, >> Does anyone know of an LC version of sunrise/sunset and twilight calculations? >> [snip...] -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From sundown at pacifier.com Sat Aug 23 14:21:25 2014 From: sundown at pacifier.com (JB) Date: Sat, 23 Aug 2014 11:21:25 -0700 Subject: Window manager plugin? In-Reply-To: <53F8D819.90509@hyperactivesw.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> <53F8D819.90509@hyperactivesw.com> Message-ID: <81CD812B-FB6C-4231-9E3B-4A68F0CDEFD4@pacifier.com> Thanks, Jacque. It is nice to have some more code examples. I was able to get it to work okay but if I use answer warning the warning icon does not show. Is there a way to get it to show up with this code? John Balgenorth On Aug 23, 2014, at 11:06 AM, J. Landman Gay wrote: > On 8/23/2014, 12:07 PM, Scott Rossi wrote: >> I should have clarified that I listed two scripts: one for answer, one for >> ask. But the script is working here for all versions of LC, Mac and Win, >> including v7. Not sure what to tell you. Did you try the script in a >> new, empty stack? >> >> Something like this would be better to be all-inclusive: >> >> on suspendStack >> put the openStacks into theList >> if "answer dialog" is among the lines of theList then set the loc of >> stack "answer dialog" to loc of me >> if "ask dialog" is among the lines of theList then set the loc of stack >> "ask dialog" to loc of me >> end suspendStack > > I needed this once, and tried this suggestion but I couldn't get it to work either. I'm not sure why. I settled on this hack: > > on answerWithLoc pString,pBtn1,pBtn2 > set the vis of stack "answer dialog" to false > answer pString with pBtn1 and pBtn2 > set the loc of stack "answer dialog" to the loc of this stack > set the vis of stack "answer dialog" to true > end answerWithLoc > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sat Aug 23 14:28:57 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 21:28:57 +0300 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> Message-ID: <53F8DD69.8080302@gmail.com> On 23/08/14 21:13, Charles E Buchwald wrote: > So I'm thinking... > > function Floor pValue > if pValue < 0 then return trunc(pValue) - 1 > else return trunc(pValue) > end Floor > > Quite unnecessary when 'round' does the trick without any homegrown functions. Richmond. From richmondmathewson at gmail.com Sat Aug 23 14:29:35 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 21:29:35 +0300 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> Message-ID: <53F8DD8F.2000407@gmail.com> On 23/08/14 21:19, Colin Holgate wrote: > You must be running LiveCode version -7. It shows -10 for me. > > > On Aug 23, 2014, at 2:05 PM, Richmond wrote: > >> put round(-9.8_ >> >> give us 10 >> >> Yo! >> >> Richmond. > No: I was running 2 pints of beer :) Richmond. From userev at canelasoftware.com Sat Aug 23 14:30:56 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sat, 23 Aug 2014 11:30:56 -0700 Subject: RunRevLive 2014 Conference Mobile App by livecloud.io In-Reply-To: <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> Message-ID: <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> On Aug 23, 2014, at 10:31 AM, Colin Holgate wrote: > Is it a LiveCode app? If it is, would you want to send the stack to people who have iPhone developer accounts, rather than take up one of your UDID slots? Hi Colin, I would love to release the code to this app, but we have plans to commercialize it. Best regards, Mark Talluto CanelaSoftware.com LiveCloud.io From coiin at verizon.net Sat Aug 23 14:47:57 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 23 Aug 2014 14:47:57 -0400 Subject: RunRevLive 2014 Conference Mobile App by livecloud.io In-Reply-To: <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> Message-ID: I installed it onto my Kindle Fire HDX. You do notice that the transitions and scrolling in the app are sluggish? Might make for a fun session, making your app run smoothly. > >I would love to release the code to this app, but we have plans to commercialize it. > From jacque at hyperactivesw.com Sat Aug 23 14:50:55 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 23 Aug 2014 13:50:55 -0500 Subject: Window manager plugin? In-Reply-To: References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> <53F8D819.90509@hyperactivesw.com> Message-ID: <53F8E28F.3020705@hyperactivesw.com> I believe you. I needed it for The Big Project, which already has a suspendStack handler, and I was trying to integrate your part. There's a backscript too with a few thousand lines of code that traps most system messages. I never bothered to figure out why it didn't work, I just plugged in my custom handler because it doesn't rely on any system messages. Your way is cleaner but I needed a hack. On 8/23/2014, 1:17 PM, Scott Rossi wrote: > If you haven't already, try the script in an empty stack -- should work as > expected. I doubt my systems have any special mojo going on (usually I > get curses, plagues, and the occasional hex). > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 8/23/14 11:06 AM, "J. Landman Gay" wrote: > >> On 8/23/2014, 12:07 PM, Scott Rossi wrote: >>> I should have clarified that I listed two scripts: one for answer, one >>> for >>> ask. But the script is working here for all versions of LC, Mac and >>> Win, >>> including v7. Not sure what to tell you. Did you try the script in a >>> new, empty stack? >>> >>> Something like this would be better to be all-inclusive: >>> >>> on suspendStack >>> put the openStacks into theList >>> if "answer dialog" is among the lines of theList then set the loc of >>> stack "answer dialog" to loc of me >>> if "ask dialog" is among the lines of theList then set the loc of >>> stack >>> "ask dialog" to loc of me >>> end suspendStack >> >> I needed this once, and tried this suggestion but I couldn't get it to >> work either. I'm not sure why. I settled on this hack: >> >> on answerWithLoc pString,pBtn1,pBtn2 >> set the vis of stack "answer dialog" to false >> answer pString with pBtn1 and pBtn2 >> set the loc of stack "answer dialog" to the loc of this stack >> set the vis of stack "answer dialog" to true >> end answerWithLoc >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dochawk at gmail.com Sat Aug 23 14:59:31 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 23 Aug 2014 11:59:31 -0700 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> <907E8B2A-2954-449D-ABDC-4D7A1DF26AFD@pacifier.com> Message-ID: On Fri, Aug 22, 2014 at 12:46 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > I think the extreme cheap-out solutions would be a disservice to the > client, especially with regard to reliability. > It's not a client; it's my own parish :) Anyway, I agree: we want something to do once and be done. Once we record the bells, would an iOS device (ipod touch, iphone, ipad) be able to do the same thing? Leave it permanently plugged to power and the adaptors? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Sat Aug 23 15:03:49 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 23 Aug 2014 14:03:49 -0500 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8DD69.8080302@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> Message-ID: <53F8E595.7040606@hyperactivesw.com> On 8/23/2014, 1:28 PM, Richmond wrote: > On 23/08/14 21:13, Charles E Buchwald wrote: >> So I'm thinking... >> >> function Floor pValue >> if pValue < 0 then return trunc(pValue) - 1 >> else return trunc(pValue) >> end Floor > > Quite unnecessary when 'round' does the trick without > any homegrown functions. Nope. The floor of -2.2 is -3. The round is -2. Charles' function works except for negative integers. I think it needs to check for that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Sat Aug 23 15:05:34 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 23 Aug 2014 12:05:34 -0700 Subject: Window manager plugin? In-Reply-To: <53F8E28F.3020705@hyperactivesw.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> <53F8D819.90509@hyperactivesw.com> <53F8E28F.3020705@hyperactivesw.com> Message-ID: Ooo. I smell a t-shirt to be made: "Your way is clean, but I need a hack." Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/23/14 11:50 AM, "J. Landman Gay" wrote: >I believe you. I needed it for The Big Project, which already has a >suspendStack handler, and I was trying to integrate your part. There's a >backscript too with a few thousand lines of code that traps most system >messages. I never bothered to figure out why it didn't work, I just >plugged in my custom handler because it doesn't rely on any system >messages. > >Your way is cleaner but I needed a hack. > >On 8/23/2014, 1:17 PM, Scott Rossi wrote: >> If you haven't already, try the script in an empty stack -- should work >>as >> expected. I doubt my systems have any special mojo going on (usually I >> get curses, plagues, and the occasional hex). >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 8/23/14 11:06 AM, "J. Landman Gay" wrote: >> >>> On 8/23/2014, 12:07 PM, Scott Rossi wrote: >>>> I should have clarified that I listed two scripts: one for answer, one >>>> for >>>> ask. But the script is working here for all versions of LC, Mac and >>>> Win, >>>> including v7. Not sure what to tell you. Did you try the script in a >>>> new, empty stack? >>>> >>>> Something like this would be better to be all-inclusive: >>>> >>>> on suspendStack >>>> put the openStacks into theList >>>> if "answer dialog" is among the lines of theList then set the >>>>loc of >>>> stack "answer dialog" to loc of me >>>> if "ask dialog" is among the lines of theList then set the loc of >>>> stack >>>> "ask dialog" to loc of me >>>> end suspendStack >>> >>> I needed this once, and tried this suggestion but I couldn't get it to >>> work either. I'm not sure why. I settled on this hack: >>> >>> on answerWithLoc pString,pBtn1,pBtn2 >>> set the vis of stack "answer dialog" to false >>> answer pString with pBtn1 and pBtn2 >>> set the loc of stack "answer dialog" to the loc of this stack >>> set the vis of stack "answer dialog" to true >>> end answerWithLoc >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> From richmondmathewson at gmail.com Sat Aug 23 15:13:49 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 22:13:49 +0300 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8E595.7040606@hyperactivesw.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> Message-ID: <53F8E7ED.90700@gmail.com> On 23/08/14 22:03, J. Landman Gay wrote: > On 8/23/2014, 1:28 PM, Richmond wrote: >> On 23/08/14 21:13, Charles E Buchwald wrote: >>> So I'm thinking... >>> >>> function Floor pValue >>> if pValue < 0 then return trunc(pValue) - 1 >>> else return trunc(pValue) >>> end Floor >> >> Quite unnecessary when 'round' does the trick without >> any homegrown functions. > > > Nope. The floor of -2.2 is -3. The round is -2. > > Charles' function works except for negative integers. I think it needs > to check for that. > Well, presumably one way to do this would be to check if the number is positive or negative, and then, if it is negative multiply it by -1, round it, and then multiply it by -1 again. I just set up a stack with 2 fields; "NUMB" and "RN" and a button "FLOOR" containing this script: on mouseUp put fld "numb" into NUMB if NUMB = 0 then ---nix else if NUMB < 0 then put (NUMB * (-1)) into NUMB put round(NUMB) into RN1 put (RN1 *(-1)) into RN2 put RN2 into fld "RN" else put round(NUMB) into fld "RN" end if end if end mouseUp Magic. Richmond. From coiin at verizon.net Sat Aug 23 15:23:58 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 23 Aug 2014 15:23:58 -0400 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8E7ED.90700@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> <53F8E7ED.90700@gmail.com> Message-ID: <4D6A5B1C-ABB5-4704-A03D-627C87D8046F@verizon.net> You could do it in one line: put trunc(-14.2+1000000000)-1000000000 where the 1000000000 part is a number bigger than anything you?re going to encounter in your app. From richmondmathewson at gmail.com Sat Aug 23 15:24:24 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 23 Aug 2014 22:24:24 +0300 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8E7ED.90700@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> <53F8E7ED.90700@gmail.com> Message-ID: <53F8EA68.2070602@gmail.com> Go, get it Happy People :) http://forums.livecode.com/viewtopic.php?f=5&t=21404 Richmond. From jacque at hyperactivesw.com Sat Aug 23 15:31:24 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 23 Aug 2014 14:31:24 -0500 Subject: OpenField mystery In-Reply-To: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> Message-ID: <53F8EC0C.5000103@hyperactivesw.com> On 8/23/2014, 12:14 PM, Graham Samuel wrote: > I have a palette with a lot of objects on it. There are some fields > and some buttons. I have just realised that when I click on one of > the buttons, before executing the 'mouseUp' handler for the button, > the engine fires an 'openField' for one of the fields. I can't see > what I have done to cause this, but it's causing chaos! Happens in > the IDE and the corresponding standalone. You may have hit the common problem where the engine selects the text of the first field that has traversalOn set to true when the stack gains focus. It's annoying as hell. The fix is to turn off traversalOn and then after opening/resuming, turn it back on again. If you do that, you have to turn it off for all editable fields, because the engine will just select the next one instead if you don't. Easier would be to try a resumeStack handler that calls another handler to "focus on nothing" in half a second or so, after the engine is done interfering. I wish there was a way to turn off this default behavior because there are as many times you don't want it as when you do. Windows/Linux users can get around it pretty easily by making sure a button is the lowest layered object on the card; on those systems, buttons can be traversed and it isn't a big deal if the button has an outline. That doesn't work on Macs, where buttons don't use that property and the engine skips right to a field. And just to cover all bases, another really ugly way around it is to make an editable field at layer 1 and place it offscreen where you can't see that it's selected. That can interfere with the tabbing order though, because the user can't see where the cursor went when it gets to that field. I usually do the "focus on nothing" business, but if you do use an offscreen field you don't need to change any scripts. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Aug 23 15:39:01 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 23 Aug 2014 14:39:01 -0500 Subject: Window manager plugin? In-Reply-To: <81CD812B-FB6C-4231-9E3B-4A68F0CDEFD4@pacifier.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> <53F8D819.90509@hyperactivesw.com> <81CD812B-FB6C-4231-9E3B-4A68F0CDEFD4@pacifier.com> Message-ID: <53F8EDD5.2080100@hyperactivesw.com> If I change the "answer" line to this it works: answer warning pString with pBtn1 and pBtn2 If you want a more flexible handler that answers with regular, warning, or info icons, then you'd need to pass that in a parameter and branch the handler depending on the type. I wasn't able to get it to compile with this: answer pType pString with pBtn1 and pBtn2 so you'd need to do: on answerWithLoc pType,pString,pBtn1,pBtn2 set the vis of stack "answer dialog" to false switch pType case "warning" answer warning pString with pBtn1 and pBtn2 break case "info" answer info pString with pBtn1 and pBtn2 break default answer pString with pBtn1 and pBtn2 end switch set the loc of stack "answer dialog" to the loc of this stack set the vis of stack "answer dialog" to true end answerWithLoc On 8/23/2014, 1:21 PM, JB wrote: > Thanks, Jacque. > > It is nice to have some more code examples. I was > able to get it to work okay but if I use answer warning > the warning icon does not show. Is there a way to > get it to show up with this code? > > John Balgenorth > > > On Aug 23, 2014, at 11:06 AM, J. Landman Gay wrote: > >> On 8/23/2014, 12:07 PM, Scott Rossi wrote: >>> I should have clarified that I listed two scripts: one for answer, one for >>> ask. But the script is working here for all versions of LC, Mac and Win, >>> including v7. Not sure what to tell you. Did you try the script in a >>> new, empty stack? >>> >>> Something like this would be better to be all-inclusive: >>> >>> on suspendStack >>> put the openStacks into theList >>> if "answer dialog" is among the lines of theList then set the loc of >>> stack "answer dialog" to loc of me >>> if "ask dialog" is among the lines of theList then set the loc of stack >>> "ask dialog" to loc of me >>> end suspendStack >> >> I needed this once, and tried this suggestion but I couldn't get it to work either. I'm not sure why. I settled on this hack: >> >> on answerWithLoc pString,pBtn1,pBtn2 >> set the vis of stack "answer dialog" to false >> answer pString with pBtn1 and pBtn2 >> set the loc of stack "answer dialog" to the loc of this stack >> set the vis of stack "answer dialog" to true >> end answerWithLoc >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From prothero at earthednet.org Sat Aug 23 15:46:14 2014 From: prothero at earthednet.org (William Prothero) Date: Sat, 23 Aug 2014 12:46:14 -0700 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8EA68.2070602@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> <53F8E7ED.90700@gmail.com> <53F8EA68.2070602@gmail.com> Message-ID: <38928A55-29DC-41DB-A525-7ACDB24B4E9E@earthednet.org> Folks: Try this: You have to be sure that if myNum is a perfect negative integer, floor(myNum) = myInteger while floor(-some non-integer) = trunc(myNum - 1) Colin?s version works too. on mouseUp put 1.55 into tNum put 1 into tCor put "case: "&tNum&" Correct value: "&tCor&", Calc Value: "&floor(tNum)&cr into tResult put 0 into tNum put 0 into tCor put "case: "&tNum&" Correct value: "&tCor&", Calc Value: "&floor(tNum)&cr after tResult put -1.55 into tNum put -2 into tCor put "case: "&tNum&" Correct value: "&tCor&", Calc Value: "&floor(tNum)&cr after tResult put -1.25 into tNum put -2 into tCor put "case: "&tNum&" Correct value: "&tCor&", Calc Value: "&floor(tNum)&cr after tResult put -1 into tNum put -1 into tCor put "case: "&tNum&" Correct value: "&tCor&", Calc Value: "&floor(tNum)&cr after tResult put tResult into fld "myOutput" end mouseUp function floor mNum if tNum < 0 then if trunc(tNum) = tNum then return tNum else return trunc(tNum - 1) end if else return trunc(mNum) end if end floor Cheers, Bill On Aug 23, 2014, at 12:24 PM, Richmond wrote: > Go, get it Happy People :) > > http://forums.livecode.com/viewtopic.php?f=5&t=21404 > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From userev at canelasoftware.com Sat Aug 23 15:52:21 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sat, 23 Aug 2014 12:52:21 -0700 Subject: RunRevLive 2014 Conference Mobile App by livecloud.io In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> Message-ID: <5AEDB473-3B4A-4FCB-AE88-EFE9A60F4815@canelasoftware.com> On Aug 23, 2014, at 11:47 AM, Colin Holgate wrote: > I installed it onto my Kindle Fire HDX. You do notice that the transitions and scrolling in the app are sluggish? Might make for a fun session, making your app run smoothly. Yes. We have spoken with RunRev devs about Android performance. They revealed some really interesting plans to address graphics performance on Android. If you are attending the conference, lets get together and see what you can do. That would be fun. iOS performance, on the other hand, is very good. Both have acceleratedRendering turned on. Best regards, Mark Talluto CanelaSoftware.com LiveCloud.io From admin at FlexibleLearning.com Sat Aug 23 15:52:46 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Sat, 23 Aug 2014 20:52:46 +0100 Subject: Solar Clock (was Re: Sunset, sunrise, twilight calculations in LC?) Message-ID: <00c801cfbf0b$cfbded70$6f39c850$@FlexibleLearning.com> > I found this link. It might be easier to convert this code to LC. > http://williams.best.vwh.net/sunrise_sunset_algorithm.htm > Bill > > William Prothero > http://es.earthednet.org These algorithms have now been superceded by the NOAA algorithms http://www.esrl.noaa.gov/gmd/grad/solcalc. There are links to Solar Calculation Resources at the bottom of the page. Having already ported NOAA to LiveCode, I have uploaded some more information on the stack and a screenshot here... www.FlexibleLearning.com/solarclock If interested in purchase, let me know. It took a lot of work! Alternatively, do the conversion yourself using the data sheets and web pages available. Hugh Senior FLCo From livfoss at mac.com Sat Aug 23 16:02:06 2014 From: livfoss at mac.com (Graham Samuel) Date: Sat, 23 Aug 2014 22:02:06 +0200 Subject: OpenField mystery In-Reply-To: <53F8EC0C.5000103@hyperactivesw.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> Message-ID: <366076EC-2749-49B5-A2ED-758A6C832929@mac.com> Jacque to the rescue as ever! Thanks, you have nailed it. It's not just annoying, it's a bug - since an error or omission in the documentation is a bug too, as far as I am concerned: I have not seen a description of this very odd behaviour in the Dictionary or elsewhere (of course I could have missed it). I came across this because of another annoying thing. My user is allowed to write stuff into a succession of fields, and then click on a button to get something done. The 'something' depends on whether any of the fields have been modified or not. It is quite possible for him (her) not to close the last revised field, but simply to go straight to clicking the button. This means that I can't rely on a 'closeField' message being generated even when a field is modified! Because of this anomaly I tried to detect field revision by looking at 'openField' messages instead, and just got into another fine mess. Maybe a correctly placed 'focus on nothing' will do it (should close the field where the cursor was last showing) - I will look into it. Still, it is extraordinary how many unintended consequences can arise from a tiny bit of code! Thanks again - it is good to know someone who knows. Graham On 23 Aug 2014, at 21:31, J. Landman Gay wrote: > On 8/23/2014, 12:14 PM, Graham Samuel wrote: >> I have a palette with a lot of objects on it. There are some fields >> and some buttons. I have just realised that when I click on one of >> the buttons, before executing the 'mouseUp' handler for the button, >> the engine fires an 'openField' for one of the fields. I can't see >> what I have done to cause this, but it's causing chaos! Happens in >> the IDE and the corresponding standalone. > > You may have hit the common problem where the engine selects the text of the first field that has traversalOn set to true when the stack gains focus. It's annoying as hell. The fix is to turn off traversalOn and then after opening/resuming, turn it back on again. If you do that, you have to turn it off for all editable fields, because the engine will just select the next one instead if you don't. > > Easier would be to try a resumeStack handler that calls another handler to "focus on nothing" in half a second or so, after the engine is done interfering. > > I wish there was a way to turn off this default behavior because there are as many times you don't want it as when you do. Windows/Linux users can get around it pretty easily by making sure a button is the lowest layered object on the card; on those systems, buttons can be traversed and it isn't a big deal if the button has an outline. That doesn't work on Macs, where buttons don't use that property and the engine skips right to a field. > > And just to cover all bases, another really ugly way around it is to make an editable field at layer 1 and place it offscreen where you can't see that it's selected. That can interfere with the tabbing order though, because the user can't see where the cursor went when it gets to that field. I usually do the "focus on nothing" business, but if you do use an offscreen field you don't need to change any scripts. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Sat Aug 23 16:18:53 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 23 Aug 2014 16:18:53 -0400 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <38928A55-29DC-41DB-A525-7ACDB24B4E9E@earthednet.org> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> <53F8E7ED.90700@gmail.com> <53F8EA68.2070602@gmail.com> <38928A55-29DC-41DB-A525-7ACDB24B4E9E@earthednet.org> Message-ID: <3A75B08E-1D73-4750-B201-5668306EF2C2@verizon.net> Many languages equate booleans to 0 or 1. If LiveCode worked that way you could say: put trunk(n-(n<0)) From sundown at pacifier.com Sat Aug 23 16:17:25 2014 From: sundown at pacifier.com (JB) Date: Sat, 23 Aug 2014 13:17:25 -0700 Subject: Window manager plugin? In-Reply-To: <53F8EDD5.2080100@hyperactivesw.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <5909AAF4-6DC0-4DE8-9C20-55E17DDB8B15@pacifier.com> <53F8D819.90509@hyperactivesw.com> <81CD812B-FB6C-4231-9E3B-4A68F0CDEFD4@pacifier.com> <53F8EDD5.2080100@hyperactivesw.com> Message-ID: <641A8B57-1171-4D7A-9905-731ED04AB8C0@pacifier.com> That works good! Very nice, thank you. John Balgenorth On Aug 23, 2014, at 12:39 PM, J. Landman Gay wrote: > If I change the "answer" line to this it works: > > answer warning pString with pBtn1 and pBtn2 > > If you want a more flexible handler that answers with regular, warning, or info icons, then you'd need to pass that in a parameter and branch the handler depending on the type. I wasn't able to get it to compile with this: > > answer pType pString with pBtn1 and pBtn2 > > so you'd need to do: > > on answerWithLoc pType,pString,pBtn1,pBtn2 > set the vis of stack "answer dialog" to false > switch pType > case "warning" > answer warning pString with pBtn1 and pBtn2 > break > case "info" > answer info pString with pBtn1 and pBtn2 > break > default > answer pString with pBtn1 and pBtn2 > end switch > set the loc of stack "answer dialog" to the loc of this stack > set the vis of stack "answer dialog" to true > end answerWithLoc > > > On 8/23/2014, 1:21 PM, JB wrote: >> Thanks, Jacque. >> >> It is nice to have some more code examples. I was >> able to get it to work okay but if I use answer warning >> the warning icon does not show. Is there a way to >> get it to show up with this code? >> >> John Balgenorth >> >> >> On Aug 23, 2014, at 11:06 AM, J. Landman Gay wrote: >> >>> On 8/23/2014, 12:07 PM, Scott Rossi wrote: >>>> I should have clarified that I listed two scripts: one for answer, one for >>>> ask. But the script is working here for all versions of LC, Mac and Win, >>>> including v7. Not sure what to tell you. Did you try the script in a >>>> new, empty stack? >>>> >>>> Something like this would be better to be all-inclusive: >>>> >>>> on suspendStack >>>> put the openStacks into theList >>>> if "answer dialog" is among the lines of theList then set the loc of >>>> stack "answer dialog" to loc of me >>>> if "ask dialog" is among the lines of theList then set the loc of stack >>>> "ask dialog" to loc of me >>>> end suspendStack >>> >>> I needed this once, and tried this suggestion but I couldn't get it to work either. I'm not sure why. I settled on this hack: >>> >>> on answerWithLoc pString,pBtn1,pBtn2 >>> set the vis of stack "answer dialog" to false >>> answer pString with pBtn1 and pBtn2 >>> set the loc of stack "answer dialog" to the loc of this stack >>> set the vis of stack "answer dialog" to true >>> end answerWithLoc >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From charles at buchwald.ca Sat Aug 23 16:22:04 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Sat, 23 Aug 2014 15:22:04 -0500 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8E595.7040606@hyperactivesw.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> Message-ID: Jacquie, I tested my script before I posted it, and it works for negative integers. Colin, just for fun, I've consolidated mine to one line. Richmond, maybe you'd like to add "ceiling" to your sample stack? function Floor pValue if pValue < 0 then return trunc(pValue) - 1 else return trunc(pValue) end Floor I know this is trivial, but here's a ceiling function, just to kind of fill out the thread: function Ceiling pValue if pValue < 0 then return trunc(pValue) else return trunc(pValue) + 1 end Ceiling P.S. I suppose this is the kind of situation where the Open Language thing would be very nice. If the bunch of us have created a new, valuable and effective, if esoteric, function, then it would be nice to include it somewhere so that it doesn't have to be recreated every few months... Or maybe it should be en enhancement request? I guess I'm not clear on that. On 23 Aug 2014, at 2:03 PM, J. Landman Gay wrote: > Charles' function works except for negative integers. I think it needs to check for that. -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From mwieder at ahsoftware.net Sat Aug 23 16:25:17 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 23 Aug 2014 13:25:17 -0700 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> Message-ID: <104-861505341.20140823132517@ahsoftware.net> All- The script implementations are fine, but it was way too easy to add these to the engine, so I just submitted a pull request for floor() and ceil(). -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From charles at buchwald.ca Sat Aug 23 16:29:10 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Sat, 23 Aug 2014 15:29:10 -0500 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <104-861505341.20140823132517@ahsoftware.net> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <104-861505341.20140823132517@ahsoftware.net> Message-ID: <827CB91D-AEDB-4B53-95B8-DCC7D74ED427@buchwald.ca> Awesome, Mark. Even better than a feature request! On 23 Aug 2014, at 3:25 PM, Mark Wieder wrote: > All- > > The script implementations are fine, but it was way too easy to add > these to the engine, so I just submitted a pull request for floor() > and ceil(). > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From mwieder at ahsoftware.net Sat Aug 23 16:27:55 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 23 Aug 2014 13:27:55 -0700 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <6519A6E2-83CF-460C-9B7C-4A9AF10486B8@buchwald.ca> References: <6519A6E2-83CF-460C-9B7C-4A9AF10486B8@buchwald.ca> Message-ID: <111-861346949.20140823132755@ahsoftware.net> Charles- Saturday, August 23, 2014, 11:21:44 AM, you wrote: > Thanks. I have been using Sarah Reichelt's Date & Time Library, > which contains these functions by Mark Wieder. I actually didn't > realize they were under copyright, but I see that now. I didn't either. Or more probably I'd forgotten about a discussion with Sarah about copyrights. Please ignore that ten-year-old copyright notice and feel free to do what you want with any of my functions in that library. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From pmbrig at gmail.com Sat Aug 23 17:10:03 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 23 Aug 2014 17:10:03 -0400 Subject: OpenField mystery In-Reply-To: <53F8EC0C.5000103@hyperactivesw.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> Message-ID: On Aug 23, 2014, at 3:31 PM, J. Landman Gay wrote: > On 8/23/2014, 12:14 PM, Graham Samuel wrote: >> I have a palette with a lot of objects on it. There are some fields >> and some buttons. I have just realised that when I click on one of >> the buttons, before executing the 'mouseUp' handler for the button, >> the engine fires an 'openField' for one of the fields. I can't see >> what I have done to cause this, but it's causing chaos! Happens in >> the IDE and the corresponding standalone. > > You may have hit the common problem where the engine selects the text of the first field that has traversalOn set to true when the stack gains focus. It's annoying as hell. The fix is to turn off traversalOn and then after opening/resuming, turn it back on again. If you do that, you have to turn it off for all editable fields, because the engine will just select the next one instead if you don't. > > Easier would be to try a resumeStack handler that calls another handler to "focus on nothing" in half a second or so, after the engine is done interfering. > > I wish there was a way to turn off this default behavior because there are as many times you don't want it as when you do. Windows/Linux users can get around it pretty easily by making sure a button is the lowest layered object on the card; on those systems, buttons can be traversed and it isn't a big deal if the button has an outline. That doesn't work on Macs, where buttons don't use that property and the engine skips right to a field. > > And just to cover all bases, another really ugly way around it is to make an editable field at layer 1 and place it offscreen where you can't see that it's selected. That can interfere with the tabbing order though, because the user can't see where the cursor went when it gets to that field. I usually do the "focus on nothing" business, but if you do use an offscreen field you don't need to change any scripts. I have long been annoyed at the default placement of the insertion point in the first field when the card is opened (I believe it's not just when the stack gains focus). My solution is to group all the fields and set the traversalon of the group to false. This doesn't interfere with the editability of any individual field, but it solves the problem of this annoyance. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pmbrig at gmail.com Sat Aug 23 17:11:37 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 23 Aug 2014 17:11:37 -0400 Subject: OpenField mystery In-Reply-To: <366076EC-2749-49B5-A2ED-758A6C832929@mac.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> <366076EC-2749-49B5-A2ED-758A6C832929@mac.com> Message-ID: <21160BC3-65B6-4D95-B57F-D54BE58CBFD1@gmail.com> On Aug 23, 2014, at 4:02 PM, Graham Samuel wrote: > My user is allowed to write stuff into a succession of fields, and then click on a button to get something done. The 'something' depends on whether any of the fields have been modified or not. It is quite possible for him (her) not to close the last revised field, but simply to go straight to clicking the button. This means that I can't rely on a 'closeField' message being generated even when a field is modified! Because of this anomaly I tried to detect field revision by looking at 'openField' messages instead, and just got into another fine mess. Maybe a correctly placed 'focus on nothing' will do it (should close the field where the cursor was last showing) - I will look into it. put select empty as the first line in your mouseup handler. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From jacque at hyperactivesw.com Sat Aug 23 17:14:04 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 23 Aug 2014 16:14:04 -0500 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <104-861505341.20140823132517@ahsoftware.net> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <104-861505341.20140823132517@ahsoftware.net> Message-ID: <53F9041C.1060903@hyperactivesw.com> On 8/23/2014, 3:25 PM, Mark Wieder wrote: > The script implementations are fine, but it was way too easy to add > these to the engine, so I just submitted a pull request for floor() > and ceil(). Good on you. :) I've sometimes wondered why those two weren't in the engine, they're common in other languages. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Aug 23 17:22:14 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 23 Aug 2014 16:22:14 -0500 Subject: OpenField mystery In-Reply-To: <366076EC-2749-49B5-A2ED-758A6C832929@mac.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> <366076EC-2749-49B5-A2ED-758A6C832929@mac.com> Message-ID: <53F90606.9060708@hyperactivesw.com> On 8/23/2014, 3:02 PM, Graham Samuel wrote: > It is quite possible for him (her) not to close the last revised > field, but simply to go straight to clicking the button. This means > that I can't rely on a 'closeField' message being generated even when > a field is modified! Hm, that's an old bug that I thought got fixed. I remember a while back noticing that a closefield was sent. If it's broken again, consider putting in a bug report on it. If I remember right, I used to do this in the button: if the selectedfield <> "" then send "closefield" to the selectedfield but it was a long time ago. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revolution at duncansoftware.on-rev.com Sat Aug 23 17:47:33 2014 From: revolution at duncansoftware.on-rev.com (revolution at duncansoftware.on-rev.com) Date: Sat, 23 Aug 2014 17:47:33 -0400 Subject: Why doesn't menupick work Message-ID: <8E7C5683-EA25-41FB-B9A1-F4F3D006E530@duncansoftware.on-rev.com> The crlf was created from my code. The bug is not with Livecode. The bug is staring at my monitor. From jacque at hyperactivesw.com Sat Aug 23 18:24:33 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 23 Aug 2014 17:24:33 -0500 Subject: OpenField mystery In-Reply-To: References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> Message-ID: <53F914A1.5000408@hyperactivesw.com> On 8/23/2014, 4:10 PM, Peter M. Brigham wrote: > I have long been annoyed at the default placement of the insertion > point in the first field when the card is opened (I believe it's not > just when the stack gains focus). My solution is to group all the > fields and set the traversalon of the group to false. This doesn't > interfere with the editability of any individual field, but it solves > the problem of this annoyance. What a good idea. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From stephenREVOLUTION2 at barncard.com Sat Aug 23 18:51:44 2014 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 23 Aug 2014 15:51:44 -0700 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> <907E8B2A-2954-449D-ABDC-4D7A1DF26AFD@pacifier.com> Message-ID: On Sat, Aug 23, 2014 at 11:59 AM, Dr. Hawkins wrote: > Once we record the bells, would an iOS device (ipod touch, iphone, ipad) be > able to do the same thing? Leave it permanently plugged to power and the > adaptors? > so tempting to steal or lose. Interface is more difficult. *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* From mwieder at ahsoftware.net Sat Aug 23 19:29:34 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 23 Aug 2014 16:29:34 -0700 Subject: Why doesn't menupick work In-Reply-To: <8E7C5683-EA25-41FB-B9A1-F4F3D006E530@duncansoftware.on-rev.com> References: <8E7C5683-EA25-41FB-B9A1-F4F3D006E530@duncansoftware.on-rev.com> Message-ID: <132-850448451.20140823162934@ahsoftware.net> > The crlf was created from my code. The bug is not with Livecode. > The bug is staring at my monitor. LOL -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From dochawk at gmail.com Sat Aug 23 19:39:42 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 23 Aug 2014 16:39:42 -0700 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> <907E8B2A-2954-449D-ABDC-4D7A1DF26AFD@pacifier.com> Message-ID: On Sat, Aug 23, 2014 at 3:51 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > so tempting to steal or lose. Interface is more difficult. > My initial reaction is that if someone is breaking into a byzantine church, electronics will be *way* low on their priority list. The icons alone will be worth far more than the building . . . But I suppose an ipod would be a target of opportunity & temptation. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From sundown at pacifier.com Sat Aug 23 20:01:04 2014 From: sundown at pacifier.com (JB) Date: Sat, 23 Aug 2014 17:01:04 -0700 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> <907E8B2A-2954-449D-ABDC-4D7A1DF26AFD@pacifier.com> Message-ID: <83D08B16-8C8F-4276-937F-CD047E8514F2@pacifier.com> America and society have changed drastically in the last 10 years. People are organized and many times they steal from you are damage something you own simply because they want to destroy you. Aa a group they are like a bunch of termites. They each do their part no matter lhow small it is because they know that even if they each steal or somehow cost you a dollar if a hundred of them do it to you a month you have lost one hundred dollars. They don?t stop at a hundred dollars and just all keep attacking you in many different ways. John Balgenorth On Aug 23, 2014, at 4:39 PM, Dr. Hawkins wrote: > On Sat, Aug 23, 2014 at 3:51 PM, stephen barncard < > stephenREVOLUTION2 at barncard.com> wrote: > >> so tempting to steal or lose. Interface is more difficult. >> > > My initial reaction is that if someone is breaking into a byzantine church, > electronics will be *way* low on their priority list. The icons alone will > be worth far more than the building . . . > > But I suppose an ipod would be a target of opportunity & temptation. > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Sat Aug 23 23:14:42 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 24 Aug 2014 11:14:42 +0800 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> <907E8B2A-2954-449D-ABDC-4D7A1DF26AFD@pacifier.com> Message-ID: On Sun, Aug 24, 2014 at 2:59 AM, Dr. Hawkins wrote: > > Anyway, I agree: we want something to do once and be done. > > Once we record the bells, would an iOS device (ipod touch, iphone, ipad) be > able to do the same thing? Leave it permanently plugged to power and the > adaptors? iOS devices all come with the Clock app. When you select Alarm, and create an Alarm you get to choose the sound, above the top of the list of inbuilt sounds is 'Choose a Song' which will let you pick something from your iTunes library. Again you can set up multiple repeating alarms (or one off) alarms and have each of them play a different song. WHAT I DO NOT KNOW in this case is when left unattended, will it play the song all the way to the end, will it enter snooze mode, if no one does anything will it start again 5 min later? With iCal on a Mac it can be set to play the music file and that was it, no snooze, nothing. But the thing is, it's so easy to test. Go to Radio Shack, grab a 3.5mm to RCA adapter cable ( a couple of bucks) and plug your iPhone into your home stereo (if you don't want to test it on the church system) and give it a test run. The youth in our church plug their iPod/iPhones into our PA system all the time for dances, so really the only thing you'll be testing is can you get it to play a song at a specific time, the whole song, and not have some snooze feature that keeps bugging you that you haven't responded to the original alarm. As for theft, in our church audio visual cabinet are 3 Satellite receivers, a mixer, an equalizer, several power amplifiers, an input selector, a dvd recorder/player, a media player (SD card, HD, Internet) and probably some other bits and pieces I can't think of right now as I'm not standing in front of it. The cabinet, and room that it sits in is normally locked and is only opened when someone signs out the keys so they can plug their iPod into the Aux cable (I bought the adapter cable and plugged it in years ago, so the 3.5mm end is just sitting there, they plug their iPod in and change the input selector to Aux, fiddle with the volume on their iPod and the Master Volume of the PA system until they get it just right). If there happened to be another iDevice already in there, then it would be mounted on one of those security cables they use at the Apple Store making it just as easy to take as any other device in the cabinet. Given the price differential, I'd certainly give it a test drive. Also, the beauty of such a system would be when ever you decided you wanted to change the songs, add some different ones, create some special alarms, etc etc, you can guarantee that some teenager in the congregation could do it all blind folded. With the system that is proposed, I guarantee that once set up (probably all by the company themselves) that should there be any changes required someone is going to have to find the manual, read the manual, spend hours trying to get the system to do what the manual says should happen, and then in frustration call the manufacturer and pay for someone to come out and make the changes. And as for longevity and cost to maintain, I reckon I could ask our congregation on a yearly basis if anyone had an old iDevice they could donate to replace the broken 'bell ringer' and I'd get a positive response; but of course it wont need replacing every year. Actually my biggest concern would be fire. Lithium batteries in modern devices are all ticking time bombs, and the older they get the faster they tick. If it were me I'd crack the case open, remove the battery and just have it plugged in permanently. The other fire problem you have is that you'd still not want to have the entire system powered up 24/7, you still need some way of turning all the amps On 5--10 min before you need them and turned Off 5-10min after you've finished. If you used an old Mac, a product like this would be useful: http://www.pwrusb.com/powerUSB-digitaI0.html Many modern audio components have a 12V trigger input that allows you to control if remotely; typically change between Standby and On modes. Those devices that don't have such a feature can be turned Off and On using the regular power sockets on PowerUSB. So with an old MacMini permanently plugged in with a USB connection to a PowerUSB power strip you could schedule it to turn On 10 min before your alarm was needed, doing so could turn On 2 devices via the 12V trigger outlet of the PowerUSB and 4 devices plugged into the normal A/C outlets of the PowerUSB. iCal could play the bells at the appropriate time, 10 min after it's all over, the MacMini could be scheduled to turn Off at which point the PowerUSB would also turn Off the 4 A/C outlets and turn the two 12 V trigger devices to Standby Mode. If you just went with an iDevice, the other product: http://www.pwrusb.com/powerUSB-smart.html would be helpful but it doesn't have the additional 12 V trigger outlets so you could only control 4 devices - although that's not quite true depending on the equipment. My own pre-amp has on the back a switched A/C outlet and a 12V trigger Out, so when I turn it On it automatically turns On an Equalizer plugged into the Switched A/C outlet, and the Power Amp which has it's 12V trigger In connected to the Pre Amps 12V trigger Out. From gcanyon at gmail.com Sat Aug 23 23:21:16 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 23 Aug 2014 22:21:16 -0500 Subject: Speed In-Reply-To: <53F8CBB7.5030608@fourthworld.com> References: <53F8CBB7.5030608@fourthworld.com> Message-ID: This has several restrictions, but it generates all permutations of 10 items in about 6 seconds on my recent macbook. It uses two functions, one to generate a permuted list of single digits, and the other to replace in the actual items to be permuted. The restrictions are: 1. The general permutations function P only works with up to 10 items. It wouldn't be too hard to extend beyond that, but it would sully the very nice (IMHO) use of single digits to store the permutations. 2. The items to be permuted cannot contain the digits 0-9. This could also be worked around by using different characters for the permutation routine, but making it bombproof would be harder than that. gc function P N -- returns all the permutations of the digits from 0-N -- only works to N = 9!!! if N = 0 then return 0 & cr put P(N - 1) into T repeat with i = 0 to N - 1 put T into T2 replace i with N in T2 replace cr with i & cr in T2 put T2 after R end repeat replace cr with N & cr in T return R & T end P function PLines L -- returns comma-delimited lines containing -- all the permutations of the lines in L -- The lines in L cannot contain any digits from 0 to -- the number of lines - 1 put the number of lines of L into N put P(N - 1) into R repeat with i = 1 to N replace i - 1 with (line i of L) & comma in R end repeat replace comma & cr with cr in R return R end PLines From stephenREVOLUTION2 at barncard.com Sun Aug 24 03:07:16 2014 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 24 Aug 2014 00:07:16 -0700 Subject: Church bell app? In-Reply-To: References: <53F11A9B.5010706@gmail.com> <2B8B0363-CA2E-46BA-B9C4-B0F50FD3EC6B@me.com> <53F1AA03.8050302@gmail.com> <0CE311BE-8F14-45EE-809A-9CB97AD14D4D@all-auctions.com> <8D1890B39EE466D-1D28-230BE@webmail-d294.sysops.aol.com> <907E8B2A-2954-449D-ABDC-4D7A1DF26AFD@pacifier.com> Message-ID: On Sat, Aug 23, 2014 at 8:14 PM, Kay C Lan wrote: > they tick. If it were me I'd crack the case open, remove the battery > and just have it plugged in permanently. The other fire problem you > there goes battery backup. You'll need a UPS then. *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* From sundown at pacifier.com Sun Aug 24 10:12:04 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 07:12:04 -0700 Subject: delete end chars Message-ID: If I have a certain amount of characters and I want to check the end of another line of characters to see if they are there and if so then delete them what is the fastest way to do delete the characters at the end of the specified line? From dunbarx at aol.com Sun Aug 24 11:09:30 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 24 Aug 2014 11:09:30 -0400 (EDT) Subject: delete end chars In-Reply-To: References: Message-ID: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Hi. Are you saying that if you have "ABCD" and somewhere else you have: "AXFRZC" that you want to delete the "C" from the first string? Whatever you want, the chunking and text control within LC is more than adequate to do the job, and will be fun do execute as well. But is this what you meant? Craig Newman -----Original Message----- From: JB To: How to use LiveCode Sent: Sun, Aug 24, 2014 10:16 am Subject: delete end chars If I have a certain amount of characters and I want to check the end of another line of characters to see if they are there and if so then delete them what is the fastest way to do delete the characters at the end of the specified line? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sun Aug 24 11:14:44 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 24 Aug 2014 18:14:44 +0300 Subject: delete end chars In-Reply-To: References: Message-ID: <53FA0164.4090501@gmail.com> On 24/08/14 17:12, JB wrote: > If I have a certain amount of characters > and I want to check the end of another > line of characters to see if they are there > and if so then delete them what is the > fastest way to do delete the characters > at the end of the specified line? > > delete last char of XYZ [where 'XYZ" is a string] delete last char of fld "XYZ" Richmond. From sundown at pacifier.com Sun Aug 24 11:12:53 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 08:12:53 -0700 Subject: delete end chars In-Reply-To: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: Hi, Thanks for the reply. I am saying if I have ?ABC? in one string and the other string has ?KCFAJFCABC? then I want to delete the ?ABC? from the end of the second string leaving ?KCFAJFC?. John Balgenorth On Aug 24, 2014, at 8:09 AM, dunbarx at aol.com wrote: > Hi. > > > Are you saying that if you have "ABCD" and somewhere else you have: "AXFRZC" that you want to delete the "C" from the first string? > > > Whatever you want, the chunking and text control within LC is more than adequate to do the job, and will be fun do execute as well. But is this what you meant? > > > Craig Newman > > > > -----Original Message----- > From: JB > To: How to use LiveCode > Sent: Sun, Aug 24, 2014 10:16 am > Subject: delete end chars > > > If I have a certain amount of characters > and I want to check the end of another > line of characters to see if they are there > and if so then delete them what is the > fastest way to do delete the characters > at the end of the specified line? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From coiin at verizon.net Sun Aug 24 11:21:37 2014 From: coiin at verizon.net (Colin Holgate) Date: Sun, 24 Aug 2014 11:21:37 -0400 Subject: delete end chars In-Reply-To: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: <7F22E46F-DB10-4D9B-BBDD-8DCC931D65BC@verizon.net> This seems to work (where you have field one with the letters to check, and field 2 is the letters that might end with those check letters): on mouseUp put fld 1 into f1 put fld 2 into f2 put offset(f1,f2) into offamount if offamount = the number of chars in f2 - the number of chars in f1 + 1 then put char 1 to offamount - 1 of f2 into fld 2 end if end mouseUp From sundown at pacifier.com Sun Aug 24 11:19:53 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 08:19:53 -0700 Subject: delete end chars In-Reply-To: <53FA0164.4090501@gmail.com> References: <53FA0164.4090501@gmail.com> Message-ID: <8BBEDD93-BE6F-4239-B47A-77CC87F59DE9@pacifier.com> Hi Richmond, Wouldn?t that just delete the last char? I need to check for all characters in the first string to see if they all exist in the same order of the last chars of the second string. I know I could use a repeat to see if the characters all exist and then if they do I could use a repeat that many times to delete the last character. I was thinking there might be a faster or at least smaller way to write the code. Would a regex be better and if so how do you write the regex properly? John Balgenorth On Aug 24, 2014, at 8:14 AM, Richmond wrote: > On 24/08/14 17:12, JB wrote: >> If I have a certain amount of characters >> and I want to check the end of another >> line of characters to see if they are there >> and if so then delete them what is the >> fastest way to do delete the characters >> at the end of the specified line? >> >> > > delete last char of XYZ [where 'XYZ" is a string] > > delete last char of fld "XYZ" > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Sun Aug 24 11:29:47 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 08:29:47 -0700 Subject: delete end chars In-Reply-To: <7F22E46F-DB10-4D9B-BBDD-8DCC931D65BC@verizon.net> References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> <7F22E46F-DB10-4D9B-BBDD-8DCC931D65BC@verizon.net> Message-ID: <0C442A71-78B4-4011-B393-22CEA0B9180D@pacifier.com> That works good! thank you, John Balgenorth On Aug 24, 2014, at 8:21 AM, Colin Holgate wrote: > on mouseUp > put fld 1 into f1 > put fld 2 into f2 > put offset(f1,f2) into offamount > if offamount = the number of chars in f2 - the number of chars in f1 + 1 then > put char 1 to offamount - 1 of f2 into fld 2 > end if > end mouseUp From pmbrig at gmail.com Sun Aug 24 11:38:35 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sun, 24 Aug 2014 11:38:35 -0400 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: function zapAtEndOfLine tStr, tContainer put cr after tContainer replace tStr & cr with cr in tContainer return char 1 to -2 of tContainer end zapAtEndOfLine -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Aug 24, 2014, at 11:12 AM, JB wrote: > Hi, > > Thanks for the reply. > > I am saying if I have ?ABC? in one string and the other string > has ?KCFAJFCABC? then I want to delete the ?ABC? from > the end of the second string leaving ?KCFAJFC?. > > John Balgenorth > > > On Aug 24, 2014, at 8:09 AM, dunbarx at aol.com wrote: > >> Hi. >> >> >> Are you saying that if you have "ABCD" and somewhere else you have: "AXFRZC" that you want to delete the "C" from the first string? >> >> >> Whatever you want, the chunking and text control within LC is more than adequate to do the job, and will be fun do execute as well. But is this what you meant? >> >> >> Craig Newman >> >> >> >> -----Original Message----- >> From: JB >> To: How to use LiveCode >> Sent: Sun, Aug 24, 2014 10:16 am >> Subject: delete end chars >> >> >> If I have a certain amount of characters >> and I want to check the end of another >> line of characters to see if they are there >> and if so then delete them what is the >> fastest way to do delete the characters >> at the end of the specified line? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sun Aug 24 11:46:48 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 24 Aug 2014 18:46:48 +0300 Subject: delete end chars In-Reply-To: <8BBEDD93-BE6F-4239-B47A-77CC87F59DE9@pacifier.com> References: <53FA0164.4090501@gmail.com> <8BBEDD93-BE6F-4239-B47A-77CC87F59DE9@pacifier.com> Message-ID: <53FA08E8.3060806@gmail.com> On 24/08/14 18:19, JB wrote: > Hi Richmond, > > Wouldn?t that just delete the last char? I need to > check for all characters in the first string to see if > they all exist in the same order of the last chars > of the second string. I know I could use a repeat > to see if the characters all exist and then if they > do I could use a repeat that many times to delete > the last character. I was thinking there might be > a faster or at least smaller way to write the code. > Would a regex be better and if so how do you > write the regex properly? > > John Balgenorth > > If you have a string that is like this: ZZXYQPSPTABC and you want to delete any occurrences of A, B, or C you could do this sort of thing: Well; to make things easier for myself (i.e. so I had visual confirmation of things) I made a stack with a fld "TEXXT" and a Button "DO IT BABY". I put "ZZXYQPSPTABC" into fld "TEXXT" I put this script in button "DO IT BABY": on mouseUp put fld "TEXXT" into TEXXT put the number of chars in TEXXT into CHNMB repeat CHNMB times if the last char of TEXXT is "A" then delete the last char of TEXXT end if if the last char of TEXXT is "B" then delete the last char of TEXXT end if if the last char of TEXXT is "C" then delete the last char of TEXXT end if put TEXXT into fld "TEXXT" end repeat end mouseUp try it. Richmond. From coiin at verizon.net Sun Aug 24 11:48:34 2014 From: coiin at verizon.net (Colin Holgate) Date: Sun, 24 Aug 2014 11:48:34 -0400 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: <60E25512-AA6E-4A31-8AED-3FADC5C4F1D0@verizon.net> What if the field happen to already end with a cr? On Aug 24, 2014, at 11:38 AM, Peter M. Brigham wrote: > function zapAtEndOfLine tStr, tContainer > put cr after tContainer > replace tStr & cr with cr in tContainer > return char 1 to -2 of tContainer > end zapAtEndOfLine From sundown at pacifier.com Sun Aug 24 11:45:34 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 08:45:34 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: That works really good too! thank you, John Balgenorth On Aug 24, 2014, at 8:38 AM, Peter M. Brigham wrote: > function zapAtEndOfLine tStr, tContainer > put cr after tContainer > replace tStr & cr with cr in tContainer > return char 1 to -2 of tContainer > end zapAtEndOfLine > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > On Aug 24, 2014, at 11:12 AM, JB wrote: > >> Hi, >> >> Thanks for the reply. >> >> I am saying if I have ?ABC? in one string and the other string >> has ?KCFAJFCABC? then I want to delete the ?ABC? from >> the end of the second string leaving ?KCFAJFC?. >> >> John Balgenorth >> >> >> On Aug 24, 2014, at 8:09 AM, dunbarx at aol.com wrote: >> >>> Hi. >>> >>> >>> Are you saying that if you have "ABCD" and somewhere else you have: "AXFRZC" that you want to delete the "C" from the first string? >>> >>> >>> Whatever you want, the chunking and text control within LC is more than adequate to do the job, and will be fun do execute as well. But is this what you meant? >>> >>> >>> Craig Newman >>> >>> >>> >>> -----Original Message----- >>> From: JB >>> To: How to use LiveCode >>> Sent: Sun, Aug 24, 2014 10:16 am >>> Subject: delete end chars >>> >>> >>> If I have a certain amount of characters >>> and I want to check the end of another >>> line of characters to see if they are there >>> and if so then delete them what is the >>> fastest way to do delete the characters >>> at the end of the specified line? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sun Aug 24 11:49:45 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 24 Aug 2014 18:49:45 +0300 Subject: delete end chars In-Reply-To: <60E25512-AA6E-4A31-8AED-3FADC5C4F1D0@verizon.net> References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> <60E25512-AA6E-4A31-8AED-3FADC5C4F1D0@verizon.net> Message-ID: <53FA0999.4060205@gmail.com> On 24/08/14 18:48, Colin Holgate wrote: > What if the field happen to already end with a cr? > > > On Aug 24, 2014, at 11:38 AM, Peter M. Brigham wrote: > >> function zapAtEndOfLine tStr, tContainer >> put cr after tContainer >> replace tStr & cr with cr in tContainer >> return char 1 to -2 of tContainer >> end zapAtEndOfLine > Use my "cruder" method :) Richmond. From sundown at pacifier.com Sun Aug 24 11:54:58 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 08:54:58 -0700 Subject: delete end chars In-Reply-To: <53FA08E8.3060806@gmail.com> References: <53FA0164.4090501@gmail.com> <8BBEDD93-BE6F-4239-B47A-77CC87F59DE9@pacifier.com> <53FA08E8.3060806@gmail.com> Message-ID: Hi Richmond, That seems to leave me with the string I want to delete. Even so thank you for the code. John Balgenorth On Aug 24, 2014, at 8:46 AM, Richmond wrote: > on mouseUp > put fld "TEXXT" into TEXXT > put the number of chars in TEXXT into CHNMB > repeat CHNMB times > if the last char of TEXXT is "A" then > delete the last char of TEXXT > end if > if the last char of TEXXT is "B" then > delete the last char of TEXXT > end if > if the last char of TEXXT is "C" then > delete the last char of TEXXT > end if > put TEXXT into fld "TEXXT" > end repeat > end mouseUp From richmondmathewson at gmail.com Sun Aug 24 12:01:20 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 24 Aug 2014 19:01:20 +0300 Subject: delete end chars In-Reply-To: References: <53FA0164.4090501@gmail.com> <8BBEDD93-BE6F-4239-B47A-77CC87F59DE9@pacifier.com> <53FA08E8.3060806@gmail.com> Message-ID: <53FA0C50.9060606@gmail.com> On 24/08/14 18:54, JB wrote: > Hi Richmond, > > That seems to leave me with the string I want to delete. > Even so thank you for the code. > > John Balgenorth > > > On Aug 24, 2014, at 8:46 AM, Richmond wrote: > >> on mouseUp >> put fld "TEXXT" into TEXXT >> put the number of chars in TEXXT into CHNMB >> repeat CHNMB times >> if the last char of TEXXT is "A" then >> delete the last char of TEXXT >> end if >> if the last char of TEXXT is "B" then >> delete the last char of TEXXT >> end if >> if the last char of TEXXT is "C" then >> delete the last char of TEXXT >> end if >> put TEXXT into fld "TEXXT" >> end repeat >> end mouseUp > I thought you wanted to 'snip' specific letters off the end of a chain of letter. Iff that is what you wanted, that script will do that. Richmond. From coiin at verizon.net Sun Aug 24 12:04:51 2014 From: coiin at verizon.net (Colin Holgate) Date: Sun, 24 Aug 2014 12:04:51 -0400 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: Another problem with this approach is that there may be other cases where the letters are in the string, and have a cr after them. All of the cases would be removed, not just the last one. On Aug 24, 2014, at 11:38 AM, Peter M. Brigham wrote: > function zapAtEndOfLine tStr, tContainer > put cr after tContainer > replace tStr & cr with cr in tContainer > return char 1 to -2 of tContainer > end zapAtEndOfLine From sundown at pacifier.com Sun Aug 24 12:01:30 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 09:01:30 -0700 Subject: delete end chars In-Reply-To: <53FA0C50.9060606@gmail.com> References: <53FA0164.4090501@gmail.com> <8BBEDD93-BE6F-4239-B47A-77CC87F59DE9@pacifier.com> <53FA08E8.3060806@gmail.com> <53FA0C50.9060606@gmail.com> Message-ID: Thank you very much! John Balgenorth On Aug 24, 2014, at 9:01 AM, Richmond wrote: > On 24/08/14 18:54, JB wrote: >> Hi Richmond, >> >> That seems to leave me with the string I want to delete. >> Even so thank you for the code. >> >> John Balgenorth >> >> >> On Aug 24, 2014, at 8:46 AM, Richmond wrote: >> >>> on mouseUp >>> put fld "TEXXT" into TEXXT >>> put the number of chars in TEXXT into CHNMB >>> repeat CHNMB times >>> if the last char of TEXXT is "A" then >>> delete the last char of TEXXT >>> end if >>> if the last char of TEXXT is "B" then >>> delete the last char of TEXXT >>> end if >>> if the last char of TEXXT is "C" then >>> delete the last char of TEXXT >>> end if >>> put TEXXT into fld "TEXXT" >>> end repeat >>> end mouseUp >> > > I thought you wanted to 'snip' specific letters off the end of a chain of letter. > > Iff that is what you wanted, that script will do that. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From B.Cornaz at gmx.net Sun Aug 24 12:09:14 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Sun, 24 Aug 2014 18:09:14 +0200 Subject: Speed Message-ID: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> All right, the permutations. Thanks for the responses. My findings so far : Mark wrote : -- In addition, you're losing much of the speed of the "repeat for each" loops by embedding a "repeat with" loop at the deepest level (and in addition you're making an unneccsary extra copy of tLine each time through the slowest loop): repeat for each line tLine in TempPerms1 repeat with y = Index down to 1 put tLine into Temp put newElement & comma before item y of temp put Temp & cr after TempPerms5 end repeat end repeat Something like this should be faster (do this for both upper and lower halves): repeat for each line tLine in TempPerms1 repeat for each item tItem in tLine put tItem & comma after TempPerms5 end repeat put cr into char -1 of TempPerms5 end repeat -- Mark, I cannot get your improvement to work. I think there is something missing or maybe I am overseeing something. The inner loop in your script is equivalent to : put tLine into TempPerms5. The total result from the inner & outer loop is the same as : put TempPerms1 into TempPerms1 As a total result of the complete script I always get (no matter what the input is) : 1,2 cr 2,1 In my script, I need to ' put tLine into Temp' in every time I pass the inner loop, to renew Temp with tLine. Otherwise I change tLine all the time in the inner loop. In every round in the outer loop, I step the new element (e.g. 3) through all possible positions in tLine (e.g. tLine = 1,2 > 1,2,3 1,3,2 3,1,2 ) . Then I go on and do the same with the next element (4 in this case) for each newly formed line (1,2,3 etc). ---- Dick wrote : The Wikipedia entry for "permutation" says the fastest algorithm for generating permutations is Heap's algorithm. Quite interesting. I still have to understand what's happening completely, but I implemented you LC translation of the Heap algo. And it runs on my system a bit over 2 minutes (165732 millisecs) for 10 elements. To my surprise, my old algo does it in 7515 millisecs. I could improve on that by using chars instead of items (7465 millisecs). Another improvement I could make was by only calculating the upper half of the permutations (all the ones that start with 1,2,) and then copy them and swap the 1's and 2's. This gave as result only 5597 millisecs for 10 elements. I am a bit at a loss, as I would be surprised if my way would be like 25 times faster than the fastest known algorithm. Did I make a mistake in implementing Dicks code (although Dick also reports 2 minutes to do the job, as my way does it in 5.6 secs). What is happening here. I even suspect, that I can improve more on my improved way (by only calculating half of the perms and swapping the 1's and 2's. I might apply that principle more (like only calculating 1/4 of the perms and do some swapping, or even better). I will look into that later. --- Kay wrote : I obtained a 10% speed increase by changing this: repeat with n = 3 to 10 to this: put "3,4,5,6,7,8,9,10" into nList repeat for each item n in nList I haven't been able to try this, but it is very interesting in general. That even such short lists produce such a difference in speed in repeat with or repeat for. I thought that only counted for longer lists. very enlightening though. Thanks. --- Geoff : looks promising. It is in the ballpark where my alto seems to be. I will get back to you letter when I have had a good look and test at your script. New idea : I was hinting at a way of producing permutations in the case that there are duplicate elements in the input. F.i. 1,1,2,3 only gives 12 permutations instead of 24 for 1,2,3,4 as input. Before I calculated all the possible permutations and deleted the duplicates afterwards. I found that if I move the removing of duplicates to an early stage (as early as possible), the speedup is enormous. Thanks for all the input, Beat From pete at lcsql.com Sun Aug 24 12:28:38 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 24 Aug 2014 09:28:38 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: if tString1 ends with tString2 then delete char (the length of tString1 - the length of tString2 +1 ) to -1 of tString1 end if Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Aug 24, 2014 at 8:12 AM, JB wrote: > Hi, > > Thanks for the reply. > > I am saying if I have ?ABC? in one string and the other string > has ?KCFAJFCABC? then I want to delete the ?ABC? from > the end of the second string leaving ?KCFAJFC?. > > John Balgenorth > > > On Aug 24, 2014, at 8:09 AM, dunbarx at aol.com wrote: > > > Hi. > > > > > > Are you saying that if you have "ABCD" and somewhere else you have: > "AXFRZC" that you want to delete the "C" from the first string? > > > > > > Whatever you want, the chunking and text control within LC is more than > adequate to do the job, and will be fun do execute as well. But is this > what you meant? > > > > > > Craig Newman > > > > > > > > -----Original Message----- > > From: JB > > To: How to use LiveCode > > Sent: Sun, Aug 24, 2014 10:16 am > > Subject: delete end chars > > > > > > If I have a certain amount of characters > > and I want to check the end of another > > line of characters to see if they are there > > and if so then delete them what is the > > fastest way to do delete the characters > > at the end of the specified line? > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Sun Aug 24 12:42:07 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 24 Aug 2014 09:42:07 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: Pete beat me to the punch. if text of fld 1 ends with text of fld 2 then \ delete char -(length(fld 2)) to -1 of fld 1 Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/24/14 9:28 AM, "Peter Haworth" wrote: >if tString1 ends with tString2 then > delete char (the length of tString1 - the length of tString2 +1 ) to -1 >of tString1 >end if > >Pete >lcSQL Software >Home of lcStackBrowser and >SQLiteAdmin > > >On Sun, Aug 24, 2014 at 8:12 AM, JB wrote: > >> Hi, >> >> Thanks for the reply. >> >> I am saying if I have ?ABC? in one string and the other string >> has ?KCFAJFCABC? then I want to delete the ?ABC? from >> the end of the second string leaving ?KCFAJFC?. >> >> John Balgenorth >> >> >> On Aug 24, 2014, at 8:09 AM, dunbarx at aol.com wrote: >> >> > Hi. >> > >> > >> > Are you saying that if you have "ABCD" and somewhere else you have: >> "AXFRZC" that you want to delete the "C" from the first string? >> > >> > >> > Whatever you want, the chunking and text control within LC is more >>than >> adequate to do the job, and will be fun do execute as well. But is this >> what you meant? >> > >> > >> > Craig Newman >> > >> > >> > >> > -----Original Message----- >> > From: JB >> > To: How to use LiveCode >> > Sent: Sun, Aug 24, 2014 10:16 am >> > Subject: delete end chars >> > >> > >> > If I have a certain amount of characters >> > and I want to check the end of another >> > line of characters to see if they are there >> > and if so then delete them what is the >> > fastest way to do delete the characters >> > at the end of the specified line? >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at 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 at 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 at 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 at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Sun Aug 24 12:45:39 2014 From: livfoss at mac.com (Graham Samuel) Date: Sun, 24 Aug 2014 18:45:39 +0200 Subject: OpenField mystery In-Reply-To: <53F90606.9060708@hyperactivesw.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> <366076EC-2749-49B5-A2ED-758A6C832929@mac.com> <53F90606.9060708@hyperactivesw.com> Message-ID: I think the bug is still there: I just created a stack with one button and one field. I can edit the field and then immediately click the button, but the 'closeField' doesn't fire unless I make it do so explicitly, for example with a 'returnInField' handler, or if the whole stack loses focus and then gets it back. So I plan to report it. Thanks for the confirmation that it is indeed a bug. Graham On 23 Aug 2014, at 23:22, J. Landman Gay wrote: > On 8/23/2014, 3:02 PM, Graham Samuel wrote: >> It is quite possible for him (her) not to close the last revised >> field, but simply to go straight to clicking the button. This means >> that I can't rely on a 'closeField' message being generated even when >> a field is modified! > > Hm, that's an old bug that I thought got fixed. I remember a while back noticing that a closefield was sent. If it's broken again, consider putting in a bug report on it. > > If I remember right, I used to do this in the button: > > if the selectedfield <> "" then send "closefield" to the selectedfield > > but it was a long time ago. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Sun Aug 24 12:42:30 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 09:42:30 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: Thank you for the reply and code. I can?t seem to get it to work right. The only thing I could make it do is if ABC is string1 and ABC us string2 it will delete string2 but if chars are before the ABC in string2 nothing is deleted. Even so it is good code and I might need to use it sometime. John Balgenorth On Aug 24, 2014, at 9:28 AM, Peter Haworth wrote: > if tString1 ends with tString2 then > delete char (the length of tString1 - the length of tString2 +1 ) to -1 > of tString1 > end if > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Sun, Aug 24, 2014 at 8:12 AM, JB wrote: > >> Hi, >> >> Thanks for the reply. >> >> I am saying if I have ?ABC? in one string and the other string >> has ?KCFAJFCABC? then I want to delete the ?ABC? from >> the end of the second string leaving ?KCFAJFC?. >> >> John Balgenorth >> >> >> On Aug 24, 2014, at 8:09 AM, dunbarx at aol.com wrote: >> >>> Hi. >>> >>> >>> Are you saying that if you have "ABCD" and somewhere else you have: >> "AXFRZC" that you want to delete the "C" from the first string? >>> >>> >>> Whatever you want, the chunking and text control within LC is more than >> adequate to do the job, and will be fun do execute as well. But is this >> what you meant? >>> >>> >>> Craig Newman >>> >>> >>> >>> -----Original Message----- >>> From: JB >>> To: How to use LiveCode >>> Sent: Sun, Aug 24, 2014 10:16 am >>> Subject: delete end chars >>> >>> >>> If I have a certain amount of characters >>> and I want to check the end of another >>> line of characters to see if they are there >>> and if so then delete them what is the >>> fastest way to do delete the characters >>> at the end of the specified line? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Sun Aug 24 12:48:49 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 09:48:49 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: <0C0CC29A-0578-44BF-96E4-8B0BF21C0FB8@pacifier.com> I got that one to work. Thank you. John Balgenorth On Aug 24, 2014, at 9:42 AM, Scott Rossi wrote: > Pete beat me to the punch. > > if text of fld 1 ends with text of fld 2 then \ > delete char -(length(fld 2)) to -1 of fld 1 > > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 8/24/14 9:28 AM, "Peter Haworth" wrote: > >> if tString1 ends with tString2 then >> delete char (the length of tString1 - the length of tString2 +1 ) to -1 >> of tString1 >> end if >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> >> On Sun, Aug 24, 2014 at 8:12 AM, JB wrote: >> >>> Hi, >>> >>> Thanks for the reply. >>> >>> I am saying if I have ?ABC? in one string and the other string >>> has ?KCFAJFCABC? then I want to delete the ?ABC? from >>> the end of the second string leaving ?KCFAJFC?. >>> >>> John Balgenorth >>> >>> >>> On Aug 24, 2014, at 8:09 AM, dunbarx at aol.com wrote: >>> >>>> Hi. >>>> >>>> >>>> Are you saying that if you have "ABCD" and somewhere else you have: >>> "AXFRZC" that you want to delete the "C" from the first string? >>>> >>>> >>>> Whatever you want, the chunking and text control within LC is more >>> than >>> adequate to do the job, and will be fun do execute as well. But is this >>> what you meant? >>>> >>>> >>>> Craig Newman >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: JB >>>> To: How to use LiveCode >>>> Sent: Sun, Aug 24, 2014 10:16 am >>>> Subject: delete end chars >>>> >>>> >>>> If I have a certain amount of characters >>>> and I want to check the end of another >>>> line of characters to see if they are there >>>> and if so then delete them what is the >>>> fastest way to do delete the characters >>>> at the end of the specified line? >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From livfoss at mac.com Sun Aug 24 13:00:47 2014 From: livfoss at mac.com (Graham Samuel) Date: Sun, 24 Aug 2014 19:00:47 +0200 Subject: OpenField mystery In-Reply-To: <53F914A1.5000408@hyperactivesw.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> <53F914A1.5000408@hyperactivesw.com> Message-ID: I concur. I would never have thought of it. It works very well for me. Thanks Peter Graham On 24 Aug 2014, at 00:24, J. Landman Gay wrote: > On 8/23/2014, 4:10 PM, Peter M. Brigham wrote: >> I have long been annoyed at the default placement of the insertion >> point in the first field when the card is opened (I believe it's not >> just when the stack gains focus). My solution is to group all the >> fields and set the traversalon of the group to false. This doesn't >> interfere with the editability of any individual field, but it solves >> the problem of this annoyance. > > What a good idea. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sun Aug 24 13:19:04 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 24 Aug 2014 10:19:04 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: Couple of other ways using regex. get matchText(tString1,"(.*)" & tString2 & "$",tString1) Or if matchChunk(tString1,"(.*)" & tString2 & "$",tString1,tStart,tEnd) then delete char tStart to tEnd of tString1 end if Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Aug 24, 2014 at 9:28 AM, Peter Haworth wrote: > if tString1 ends with tString2 then > delete char (the length of tString1 - the length of tString2 +1 ) to -1 > of tString1 > end if > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Sun, Aug 24, 2014 at 8:12 AM, JB wrote: > >> Hi, >> >> Thanks for the reply. >> >> I am saying if I have ?ABC? in one string and the other string >> has ?KCFAJFCABC? then I want to delete the ?ABC? from >> the end of the second string leaving ?KCFAJFC?. >> >> John Balgenorth >> >> >> On Aug 24, 2014, at 8:09 AM, dunbarx at aol.com wrote: >> >> > Hi. >> > >> > >> > Are you saying that if you have "ABCD" and somewhere else you have: >> "AXFRZC" that you want to delete the "C" from the first string? >> > >> > >> > Whatever you want, the chunking and text control within LC is more than >> adequate to do the job, and will be fun do execute as well. But is this >> what you meant? >> > >> > >> > Craig Newman >> > >> > >> > >> > -----Original Message----- >> > From: JB >> > To: How to use LiveCode >> > Sent: Sun, Aug 24, 2014 10:16 am >> > Subject: delete end chars >> > >> > >> > If I have a certain amount of characters >> > and I want to check the end of another >> > line of characters to see if they are there >> > and if so then delete them what is the >> > fastest way to do delete the characters >> > at the end of the specified line? >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From sundown at pacifier.com Sun Aug 24 13:35:42 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 10:35:42 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> Message-ID: <6C0B8BC7-311F-41BF-8F7F-8C16C4DAB608@pacifier.com> Thank you very much! I was able to get the first one to work but for some reason and it could be me I could not get the second one to work. thanks again John Balgenorth On Aug 24, 2014, at 10:19 AM, Peter Haworth wrote: > Couple of other ways using regex. > > get matchText(tString1,"(.*)" & tString2 & "$",tString1) > > Or > > if matchChunk(tString1,"(.*)" & tString2 & "$",tString1,tStart,tEnd) then > delete char tStart to tEnd of tString1 > end if > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Sun, Aug 24, 2014 at 9:28 AM, Peter Haworth wrote: > >> if tString1 ends with tString2 then >> delete char (the length of tString1 - the length of tString2 +1 ) to -1 >> of tString1 >> end if >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> >> On Sun, Aug 24, 2014 at 8:12 AM, JB wrote: >> >>> Hi, >>> >>> Thanks for the reply. >>> >>> I am saying if I have ?ABC? in one string and the other string >>> has ?KCFAJFCABC? then I want to delete the ?ABC? from >>> the end of the second string leaving ?KCFAJFC?. >>> >>> John Balgenorth >>> >>> >>> On Aug 24, 2014, at 8:09 AM, dunbarx at aol.com wrote: >>> >>>> Hi. >>>> >>>> >>>> Are you saying that if you have "ABCD" and somewhere else you have: >>> "AXFRZC" that you want to delete the "C" from the first string? >>>> >>>> >>>> Whatever you want, the chunking and text control within LC is more than >>> adequate to do the job, and will be fun do execute as well. But is this >>> what you meant? >>>> >>>> >>>> Craig Newman >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: JB >>>> To: How to use LiveCode >>>> Sent: Sun, Aug 24, 2014 10:16 am >>>> Subject: delete end chars >>>> >>>> >>>> If I have a certain amount of characters >>>> and I want to check the end of another >>>> line of characters to see if they are there >>>> and if so then delete them what is the >>>> fastest way to do delete the characters >>>> at the end of the specified line? >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Sun Aug 24 13:52:15 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 24 Aug 2014 10:52:15 -0700 (PDT) Subject: Android LiveCode stack player Message-ID: <1408902735262-4682406.post@n4.nabble.com> Hi All, Android platform allows to open a stack from Livecode apps compiled for Android (unlike iOS). Does anyone have created an Android Stack Player, similar to Ken Ray's StackRunner? http://www.sonsothunder.com/devres/livecode/downloads.htm Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Android-LiveCode-stack-player-tp4682406.html Sent from the Revolution - User mailing list archive at Nabble.com. From jhurley0305 at sbcglobal.net Sun Aug 24 14:01:01 2014 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Sun, 24 Aug 2014 11:01:01 -0700 Subject: Speed In-Reply-To: References: Message-ID: <4A5C986E-E0D7-4253-BA06-CD1F4FCD7209@sbcglobal.net> There are significant differences in speed between 5.5 and 6.6. Not so much in deriving the permutations as in displaying the results in a field. To see this run this in the message box: go url "https://dl.dropboxusercontent.com/u/47044230/PermutationSpeed3.rev? (Does this only work in LC 6 and up?) To see the difference in earlier vs of RR you will have to open it in 6.0 and then save it as legacy. The difference is significant. It takes about 3 sec to run and display the permutations (using Geoff?s code) and display them in a field in 5.0, but about 30 sec in 6.0 Almost all of that difference is in the display. It takes only about 1 sec to put the permutations into a variable. Jim > Mesxxxsage: 12 > Date: Sat, 23 Aug 2014 22:21:16 -0500 > From: Geoff Canyon > To: How to use LiveCode > Subject: Re: Speed > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > This has several restrictions, but it generates all permutations of 10 > items in about 6 seconds on my recent macbook. It uses two functions, one > to generate a permuted list of single digits, and the other to replace in > the actual items to be permuted. > > The restrictions are: > > 1. The general permutations function P only works with up to 10 items. It > wouldn't be too hard to extend beyond that, but it would sully the very > nice (IMHO) use of single digits to store the permutations. > 2. The items to be permuted cannot contain the digits 0-9. This could also > be worked around by using different characters for the permutation routine, > but making it bombproof would be harder than that. > > gc > > > function P N > -- returns all the permutations of the digits from 0-N > -- only works to N = 9!!! > if N = 0 then return 0 & cr > put P(N - 1) into T > repeat with i = 0 to N - 1 > put T into T2 > replace i with N in T2 > replace cr with i & cr in T2 > put T2 after R > end repeat > replace cr with N & cr in T > return R & T > end P > > function PLines L > -- returns comma-delimited lines containing > -- all the permutations of the lines in L > -- The lines in L cannot contain any digits from 0 to > -- the number of lines - 1 > put the number of lines of L into N > put P(N - 1) into R > repeat with i = 1 to N > replace i - 1 with (line i of L) & comma in R > end repeat > replace comma & cr with cr in R > return R > end PLines > From jhurley0305 at sbcglobal.net Sun Aug 24 14:02:35 2014 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Sun, 24 Aug 2014 11:02:35 -0700 Subject: Speed In-Reply-To: References: Message-ID: <3021340C-1F1B-4CFD-8366-03A662E64D47@sbcglobal.net> Sorry about that last post. Forgot to delete all message above Geoff?s. Jim From pete at lcsql.com Sun Aug 24 14:03:33 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 24 Aug 2014 11:03:33 -0700 Subject: OpenField mystery In-Reply-To: References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> <366076EC-2749-49B5-A2ED-758A6C832929@mac.com> <53F90606.9060708@hyperactivesw.com> Message-ID: That's been an issue on Macs forever. If you're in a field and then click a button, the field doesn't lose focus so no closeField is sent. I believe the way to get round it is to "focus on nothing" in the mouseUp code of the button (or the mouseDown). Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Aug 24, 2014 at 9:45 AM, Graham Samuel wrote: > I think the bug is still there: I just created a stack with one button and > one field. I can edit the field and then immediately click the button, but > the 'closeField' doesn't fire unless I make it do so explicitly, for > example with a 'returnInField' handler, or if the whole stack loses focus > and then gets it back. > > So I plan to report it. > > Thanks for the confirmation that it is indeed a bug. > > Graham > > On 23 Aug 2014, at 23:22, J. Landman Gay wrote: > > > On 8/23/2014, 3:02 PM, Graham Samuel wrote: > >> It is quite possible for him (her) not to close the last revised > >> field, but simply to go straight to clicking the button. This means > >> that I can't rely on a 'closeField' message being generated even when > >> a field is modified! > > > > Hm, that's an old bug that I thought got fixed. I remember a while back > noticing that a closefield was sent. If it's broken again, consider putting > in a bug report on it. > > > > If I remember right, I used to do this in the button: > > > > if the selectedfield <> "" then send "closefield" to the selectedfield > > > > but it was a long time ago. > > > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Sun Aug 24 15:07:32 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 24 Aug 2014 12:07:32 -0700 Subject: Android LiveCode stack player In-Reply-To: <1408902735262-4682406.post@n4.nabble.com> References: <1408902735262-4682406.post@n4.nabble.com> Message-ID: If I understand what you're after (loading a remote stack?), maybe this will give you some ideas: This isn't limited to DropBox obviously -- you can set up your launcher to load stacks from any URL. And you can load stacks saved as local documents. With published apps on iOS, there's always the question of what Apple will permit. Technically, they say no loading external code, but launching web pages with javascript and other web technologies is fine. Hopefully we'll have a clearer way around this once the HTML5 stuff is in place. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/24/14 10:52 AM, "Alejandro Tejada" wrote: >Hi All, > >Android platform allows to open a stack from >Livecode apps compiled for Android (unlike iOS). > >Does anyone have created an >Android Stack Player, similar to >Ken Ray's StackRunner? > >http://www.sonsothunder.com/devres/livecode/downloads.htm > >Thanks in advance! > >Al > > > >-- >View this message in context: >http://runtime-revolution.278305.n4.nabble.com/Android-LiveCode-stack-play >er-tp4682406.html >Sent from the Revolution - User mailing list archive at Nabble.com. > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sun Aug 24 15:35:04 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 24 Aug 2014 12:35:04 -0700 Subject: delete end chars In-Reply-To: <6C0B8BC7-311F-41BF-8F7F-8C16C4DAB608@pacifier.com> References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> <6C0B8BC7-311F-41BF-8F7F-8C16C4DAB608@pacifier.com> Message-ID: On Sun, Aug 24, 2014 at 10:35 AM, JB wrote: > (tString1,"(.*)" & tString2 & "$",tString1,tStart,tEnd) My apologies, should have tested it first! It should be: if matchChunk(tString1,".*(" & tString2 & ")$",tStart,tEnd) then delete char tStart to tEnd of tString1 end if Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From sundown at pacifier.com Sun Aug 24 16:43:25 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 13:43:25 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> <6C0B8BC7-311F-41BF-8F7F-8C16C4DAB608@pacifier.com> Message-ID: <07438373-CB13-4875-8FDD-9C2379632AB5@pacifier.com> I still can?t get it to work for some reason. And the first regex one ends up leaving me the letters that I wanted to delete instead of leaving the other part. After getting the others to work in a new stack I tried them in the script I needed it for and the only one that would work is the one Colin Holgate wrote. It seems the ones that used ?the text? int the script might need to refer to a field and not a variable so I re wrote the script to use a field and it still did not work. I think it might be due to the place in the script I needed it is nested deep\ in some repeat commands. Once again thank you and everyone else for the help. John Balgenorth On Aug 24, 2014, at 12:35 PM, Peter Haworth wrote: > On Sun, Aug 24, 2014 at 10:35 AM, JB wrote: > >> (tString1,"(.*)" & tString2 & "$",tString1,tStart,tEnd) > > > My apologies, should have tested it first! It should be: > > if matchChunk(tString1,".*(" & tString2 & ")$",tStart,tEnd) then > delete char tStart to tEnd of tString1 > end if > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From capellan2000 at gmail.com Sun Aug 24 17:02:35 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 24 Aug 2014 14:02:35 -0700 (PDT) Subject: Android LiveCode stack player In-Reply-To: References: <1408902735262-4682406.post@n4.nabble.com> Message-ID: <1408914155209-4682413.post@n4.nabble.com> Great! I want to open local stacks from Android Internal Storage, microSDHC card or (if LiveCode could read from usb devices on Android) a USB Pendrive (Fat32 or NTFS). I will test this as soon I reinstall android development kit... :( Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Android-LiveCode-stack-player-tp4682406p4682413.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Sun Aug 24 18:07:05 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 24 Aug 2014 15:07:05 -0700 Subject: delete end chars In-Reply-To: <07438373-CB13-4875-8FDD-9C2379632AB5@pacifier.com> References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> <6C0B8BC7-311F-41BF-8F7F-8C16C4DAB608@pacifier.com> <07438373-CB13-4875-8FDD-9C2379632AB5@pacifier.com> Message-ID: On Sun, Aug 24, 2014 at 1:43 PM, JB wrote: > I still can?t get it to work for some reason. And the > first regex one ends up leaving me the letters that > I wanted to delete instead of leaving the other part. > Strange. They both work fine here. Maybe the variables are the wrong way round? tString1 is the one containing the string to be searched and tString2 is the string to be searched for ("ABC" in your example) Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From m.schonewille at economy-x-talk.com Sun Aug 24 18:11:15 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 25 Aug 2014 00:11:15 +0200 Subject: [ANN] LiveCode meeting in the Netherlands Message-ID: <53FA6303.3050506@economy-x-talk.com> Dear everyone, On 20th September 2014, there will be a LiveCode meeting in the Netherlands. The exact location will be announced shortly. Participants, please contact me as soon as possible. I need to know how many people will participate to determine where to host the meeting. Contact me by e-mail, tomorrow or Tuesday. We expect people from two or three different countries and hope to organise a really international meeting. If you can't make it to RunRevLive, this might be a great opportunity to meet fellow LiveCode users. Two months ago, we had a meeting in Zurich, Switzerland. You can read about it and view a few pictures at http://qery.us/cdv or http://blog.economy-x-talk.com I will make another announcement within a few days. If you have questions, contact me by e-mail, send me a message on Twitter or use Facebook (see below). Kind regards, Mark -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From sundown at pacifier.com Sun Aug 24 18:30:03 2014 From: sundown at pacifier.com (JB) Date: Sun, 24 Aug 2014 15:30:03 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> <6C0B8BC7-311F-41BF-8F7F-8C16C4DAB608@pacifier.com> <07438373-CB13-4875-8FDD-9C2379632AB5@pacifier.com> Message-ID: <35960BB3-8923-4D53-BBF5-6EB7AD847044@pacifier.com> You are right. Thank you! What happened is the variables were all listed right in my code for the searching and replacing and then I put the wrong variable into the field I wanted to change. thanks again. John Balgenorth On Aug 24, 2014, at 3:07 PM, Peter Haworth wrote: > On Sun, Aug 24, 2014 at 1:43 PM, JB wrote: > >> I still can?t get it to work for some reason. And the >> first regex one ends up leaving me the letters that >> I wanted to delete instead of leaving the other part. >> > > Strange. They both work fine here. Maybe the variables are the wrong way > round? tString1 is the one containing the string to be searched and > tString2 is the string to be searched for ("ABC" in your example) > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mikedoub at gmail.com Sun Aug 24 19:52:43 2014 From: mikedoub at gmail.com (Michael Doub) Date: Sun, 24 Aug 2014 19:52:43 -0400 Subject: Population puzzle Message-ID: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> I know that some of the folks on this list enjoy puzzles. A friend sent me this one this afternoon and I thought it would be interesting to see the different approaches folks come up with and how fast it can be solved. enjoy? The 2010 Census puts populations of 26 largest US metro areas at 18897109, 12828837, 9461105, 6371773, 5965343,5946800, 5582170, 5564635, 5268860, 4552402, 4335391, 4296250, 4224851, 4192887, 3439809, 3279833, 3095313,2812896, 2783243, 2710489, 2543482, 2356285, 2226009, 2149127, 2142508, and 2134411. Can you find a subset of these areas where a total of exactly 100,000,000 people live, assuming the census estimates are exactly right? From mwieder at ahsoftware.net Sun Aug 24 21:12:22 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 24 Aug 2014 18:12:22 -0700 Subject: Population puzzle In-Reply-To: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> Message-ID: <186-757882539.20140824181222@ahsoftware.net> Michael- Sunday, August 24, 2014, 4:52:43 PM, you wrote: > I know that some of the folks on this list enjoy puzzles. A > friend sent me this one this afternoon and I thought it would be > interesting to see the different approaches folks come up with and > how fast it can be solved. enjoy > The 2010 Census puts populations of 26 largest US metro areas at > 18897109, 12828837, 9461105, 6371773, 5965343,5946800, 5582170, > 5564635, 5268860, 4552402, 4335391, 4296250, 4224851, 4192887, > 3439809, 3279833, 3095313,2812896, 2783243, 2710489, 2543482, > 2356285, 2226009, 2149127, 2142508, and 2134411. > Can you find a subset of these areas where a total of exactly > 100,000,000 people live, assuming the census estimates are exactly > right? This was in the mongodb certification, if I remember correctly, and the python code was fun to write. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From lan.kc.macmail at gmail.com Sun Aug 24 23:09:41 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 25 Aug 2014 11:09:41 +0800 Subject: delete end chars In-Reply-To: <35960BB3-8923-4D53-BBF5-6EB7AD847044@pacifier.com> References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> <6C0B8BC7-311F-41BF-8F7F-8C16C4DAB608@pacifier.com> <07438373-CB13-4875-8FDD-9C2379632AB5@pacifier.com> <35960BB3-8923-4D53-BBF5-6EB7AD847044@pacifier.com> Message-ID: Not bringing much to the table other than to say that if you are looking into large amounts of data, and need to do this millions of time, and therefore speed is of interest, Peter's grep solution is ever so slightly faster than Colin's. There isn't much in it and both scale well. If you'd like to test, create a new stack, one button and in the btn copy the below script which is one mouseUp handler and one Function fRandomInRange. The script will ask you how long you want your test string to be and how many times to you want to repeat the search. The default values of a string 100 chars long searched a million times (repeated 4 times) takes just over a second so don't be worried about starting with the default values. The search is repeated 4 times, 1st it does Colin's search, then it does Peter's search and just in case there is some kind of advantage/disadvantage regarding being first, I do Peter's search again and end off with Colin's. When run the message box should end up with something like this: For a random string of 100 chars long. Searched 1000000 times. Colin's 1st run: 362 ms Peter's 1st run: 349 ms Output Identical Peter's 2nd run: 351 ms Output Identical Colin's 2nd run: 356 ms Output Identical BE MINDFUL OF LINE WRAPS on mouseUp ask "How many characters do you want in your random string" with 100 titled "Enter a Number" put it - 3 into tAnswer put "For a random string of " & tAnswer + 3 & " chars long." & cr into msg repeat tAnswer times --generates a number between 32 & 90 and turns it into an ASCII char put numToChar(fRandomInRange(32,90)) after tData end repeat --so we know that the data contains the string to be found put "ABC" after tData put "ABC" into tFind ask "How many times do you want to repeat the search" with 1000000 titled "Enter a Number" put it into tAnswer put "Searched " & tAnswer & " times." & cr after msg put the millisec into tStart --Colin's 1st repeat tAnswer times put offset(tFind,tSearch) into tOffset if (tOffset = the number of chars in tSearch - the number of chars in tFine + 1) then put char 1 to tOffset - 1 of tSearch into tFound put tFound into tColin1st end if end repeat put the millisec into tEnd put "Colin's 1st run: " & tEnd - tStart & " ms" & cr after msg put the millisec into tStart --Peter's 1st run repeat tAnswer times if (matchText(tSearch,"(.*)" & tFind & "$",tFound)) then put tFound into tPeter1st end if end repeat put the millisec into tEnd put "Peter's 1st run: " & tEnd - tStart & " ms" & cr after msg if (tColin1st = tPeter1st) then put "Output Identical" & cr after msg else put "ERROR!" & cr after msg end if put the millisec into tStart --Peter's Again repeat tAnswer times if (matchText(tSearch,"(.*)" & tFind & "$",tFound)) then put tFound into tPeter2nd end if end repeat put the millisec into tEnd put "Peter's 2nd run: " & tEnd - tStart & " ms" & cr after msg if (tPeter2nd = tPeter1st) then put "Output Identical" & cr after msg else put "ERROR!" & cr after msg end if put the millisec into tStart --Colin's 2nd run repeat tAnswer times put offset(tFind,tSearch) into tOffset if (tOffset = the number of chars in tSearch - the number of chars in tFine + 1) then put char 1 to tOffset - 1 of tSearch into tFound put tFound into tColin2nd end if end repeat put the millisec into tEnd put "Colin's 2nd run: " & tEnd - tStart & " ms" & cr after msg if (tPeter2nd = tColin2nd) then put "Output Identical" after msg else put "ERROR!" after msg end if end mouseUp FUNCTION fRandomInRange pLower, pUpper return random(pUpper - pLower + 1) + pLower -1 end fRandomInRange From terry.judd at unimelb.edu.au Mon Aug 25 01:04:30 2014 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 25 Aug 2014 05:04:30 +0000 Subject: Population puzzle In-Reply-To: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> Message-ID: OK - I?ll take the bait although elegant algorithms definitely aren?t my forte. As a result this is probably a very half-baked and inefficient solution to the problem but it seems to work and doesn?t have to resort to recursion (which I can never get my head around) to generate the starting combinations. Instead I just repeatedly randomise the order of the items and sum them in that order until I get the required value. Anyway, here goes (watch out for wrapped lines) Terry... on runIt put the seconds into tTimer put 100000000 into theTotal put "18897109,12828837,9461105,6371773,5965343,5946800,5582170,5564635,5268860, 4552402,4335391,4296250,4224851,4192887,3439809,3279833,3095313,2812896,278 3243,2710489,2543482,2356285,2226009,2149127,2142508,2134411" into tCityPops put empty into tKeys put 0 into tN repeat for each item tPop in tCityPops add 1 to tN put tPop into tPops[tN] put tN & comma after tKeys end repeat delete last char of tKeys put 0 into nIterations repeat forever add 1 to nIterations # randomise the order of the keys put randomiseItems(tKeys) into tX put 0 into tTotal repeat for each item tKey in tX add tPops[tKey] to tTotal if tTotal = theTotal then # we have a winner put itemOffset(tKey,tX) into nItem put item 1 to nItem of tX into tY sort items of tY ascending numeric answer ("Items = "&tY &cr& "nIterations = "&nIterations &cr& "Elapsed time = "&(the seconds - tTimer)&" secs") exit to top else if tTotal > theTotal then exit repeat end if end if end repeat end repeat end runIt function randomiseItems theItems put empty into tItems repeat forever put the number of items in theItems into nItems if nItems = 0 then exit repeat put random(nItems) into nItem put item nItem of theItems & comma after tItems delete item nItem of theItems end repeat delete last char of tItems return tItems end randomiseItems On 25/08/2014 9:52 am, "Michael Doub" wrote: >I know that some of the folks on this list enjoy puzzles. A friend sent >me this one this afternoon and I thought it would be interesting to see >the different approaches folks come up with and how fast it can be >solved. enjoy? > >The 2010 Census puts populations of 26 largest US metro areas at >18897109, 12828837, 9461105, 6371773, 5965343,5946800, 5582170, 5564635, >5268860, 4552402, 4335391, 4296250, 4224851, 4192887, 3439809, 3279833, >3095313,2812896, 2783243, 2710489, 2543482, 2356285, 2226009, 2149127, >2142508, and 2134411. > >Can you find a subset of these areas where a total of exactly 100,000,000 >people live, assuming the census estimates are exactly right? >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Mon Aug 25 01:38:48 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 24 Aug 2014 22:38:48 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> <6C0B8BC7-311F-41BF-8F7F-8C16C4DAB608@pacifier.com> <07438373-CB13-4875-8FDD-9C2379632AB5@pacifier.com> <35960BB3-8923-4D53-BBF5-6EB7AD847044@pacifier.com> Message-ID: On Sun, Aug 24, 2014 at 8:09 PM, Kay C Lan wrote: > Not bringing much to the table other than to say that if you are > looking into large amounts of data, and need to do this millions of > time, and therefore speed is of interest, Peter's grep solution is > ever so slightly faster than Colin's. There isn't much in it and both > scale well. If you'd like to test, create a new stack, one button and > in the btn copy the below script which is one mouseUp handler and one > Function fRandomInRange. > Thanks for checking this out Kay. As you said, there's no practical difference between the two solutions but it's good to know that regex is pretty fast (at least in this case) since it tends to get a bad rap when it comes to performance. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From scott at tactilemedia.com Mon Aug 25 02:27:04 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 24 Aug 2014 23:27:04 -0700 Subject: Population puzzle In-Reply-To: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> Message-ID: If I understand the challenge, the goal is to find some combination of the numbers that adds up to 100000000. If this isn't right, ignore the following. If the above is true, then here's a brute force randomized solution that arrives at the answer by chance, has no mathematical logic, and will likely require multiple executions to get the answer. [ in a button script ] on mouseUp repeat 1000000 put 0 into theTotal put empty into theList put theNumbers() into theSet put number of items of theSet into theCount repeat put random(number of items of theSet) into itemNumber put item itemNumber of theSet into theNumber delete item itemNumber of theSet put theNumber & cr after theList add theNumber to theTotal if theTotal > 100000000 then exit repeat if theTotal = 100000000 then put "Solution:" & cr & theList exit mouseUp end if end repeat -- end repeat put "Solution not found" && seconds() end mouseUp function theNumbers return 18897109,12828837,9461105,6371773,5965343,5946800,5582170,5564635,5268860,4 552402,4335391,4296250,4224851,4192887,3439809,3279833,3095313,2812896,2783 243,2710489,2543482,2356285,2226009,2149127,2142508,2134411 end theNumbers Stupid, yes, but hey, it (eventually) works. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/24/14 4:52 PM, "Michael Doub" wrote: >I know that some of the folks on this list enjoy puzzles. A friend sent >me this one this afternoon and I thought it would be interesting to see >the different approaches folks come up with and how fast it can be >solved. enjoy? > >The 2010 Census puts populations of 26 largest US metro areas at >18897109, 12828837, 9461105, 6371773, 5965343,5946800, 5582170, 5564635, >5268860, 4552402, 4335391, 4296250, 4224851, 4192887, 3439809, 3279833, >3095313,2812896, 2783243, 2710489, 2543482, 2356285, 2226009, 2149127, >2142508, and 2134411. > >Can you find a subset of these areas where a total of exactly 100,000,000 >people live, assuming the census estimates are exactly right? >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Mon Aug 25 02:38:36 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 25 Aug 2014 14:38:36 +0800 Subject: Population puzzle In-Reply-To: References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> Message-ID: OK, well I think I can do a little better than that. I can consistently get an answer in a sec, which I guess you could beat if you happen to be lucky with your first selection of random cities. I do also appreciate that Terry's code is slowed a little by counting the iterations which mine doesn't. I approached the problem from the opposite end. Find out which cities add up to 29,161,818 which is the difference between the total population of the 26 cities - 100,000,000. I figured that it would have to involve a much smaller number of cities and therefore need fewer iterations. I imagine Terry & Scott, your approach would on average be faster if you followed the same logic. Copy and paste the following in a button script: WATCH FOR LINE WRAPS local lPop,lStart on mouseUp put the millisec into lStart put "18897109, 12828837, 9461105, 6371773, 5965343,5946800, 5582170, 5564635, 5268860, 4552402, 4335391, 4296250, 4224851, 4192887, 3439809, 3279833, 3095313,2812896, 2783243, 2710489, 2543482, 2356285, 2226009, 2149127, 2142508, 2134411" into lPop put sum(lPop) - 100000000 into tError repeat for each item tA in lPop put itemOffset(tA,lPop) + 1 into tOffset put item tOffset to -1 of lPop into tPopB hMoreCities tA,tPopB,tError end repeat end mouseUp on hMoreCities pA,pPopC,pError --breakpoint repeat for each item tC in pPopC switch case (sum(pA) + tC < pError) if ( the number of items of pPopC > 1) then put itemOffset(tC,pPopC) + 1 into tOffset put item tOffset to -1 of pPopC into tPopD hMoreCities pA & "," & tC,tPopD,pError else next repeat end if break case (sum(pA) + tC > pError) next repeat break case (sum(pA) + tC = pError) --we have an answer hAnswer pA & "," & tC break end switch end repeat end hMoreCities on hAnswer tExclude -- we have the wrong cities so we need to remove these from the -- list of all cities repeat for each item tA in tExclude replace tA with "" in lPop end repeat --just to cross check if (sum(lPop) = 100000000) then put lPop into msg else put "I Failed" into msg end if put the millisec into tEnd put cr & "Total time " & tEnd - lStart & " ms." after msg exit to top end hAnswer From scott at tactilemedia.com Mon Aug 25 03:27:58 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 25 Aug 2014 00:27:58 -0700 Subject: Population puzzle In-Reply-To: References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> Message-ID: I imagine my approach would be faster if it followed ANY logic. :-) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/24/14 11:38 PM, "Kay C Lan" wrote: >I imagine Terry & Scott, your approach would on average be faster if >you followed the same logic. From lan.kc.macmail at gmail.com Mon Aug 25 05:10:22 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 25 Aug 2014 17:10:22 +0800 Subject: Population puzzle In-Reply-To: References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> Message-ID: LOL :-) On Mon, Aug 25, 2014 at 3:27 PM, Scott Rossi wrote: > I imagine my approach would be faster if it followed ANY logic. :-) > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 8/24/14 11:38 PM, "Kay C Lan" wrote: > >>I imagine Terry & Scott, your approach would on average be faster if >>you followed the same logic. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Mon Aug 25 05:41:46 2014 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 25 Aug 2014 09:41:46 +0000 Subject: Population puzzle In-Reply-To: References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> Message-ID: Ditto for me, and mine was messier than Scott?s as well. Still it kept me occupied while I was eating my lunch :) Terry... On 25/08/2014 5:27 pm, "Scott Rossi" wrote: >I imagine my approach would be faster if it followed ANY logic. :-) > >Regards, > >Scott Rossi >Creative Director >Tactile Media, UX/UI Design > > > > >On 8/24/14 11:38 PM, "Kay C Lan" wrote: > >>I imagine Terry & Scott, your approach would on average be faster if >>you followed the same logic. > > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Mon Aug 25 06:10:56 2014 From: sundown at pacifier.com (JB) Date: Mon, 25 Aug 2014 03:10:56 -0700 Subject: delete end chars In-Reply-To: References: <8D18DC48A27F279-1E54-1D80F@webmail-m225.sysops.aol.com> <6C0B8BC7-311F-41BF-8F7F-8C16C4DAB608@pacifier.com> <07438373-CB13-4875-8FDD-9C2379632AB5@pacifier.com> <35960BB3-8923-4D53-BBF5-6EB7AD847044@pacifier.com> Message-ID: <71F942C2-CA6E-4C93-AD47-F1C710898CA1@pacifier.com> You brought a lot to the table. Test code is nice ti have and I thank you for it. I was thinking Peter?s would be faster and I wanted to use it. I got it working in a new stack with the code the others wrote and saved it all. They akk work in the new stack but don?t work properly in the stack that need it for. The script has a few repeats in it and where I need it is about as deep as you can get. I have found when you get real deep in repeats certain things don; work. Like if you compound your script into a single line which is good if it is deep in a repeat the engine can?t understand the complex script. thanks again! John Balgenorth On Aug 24, 2014, at 8:09 PM, Kay C Lan wrote: > Not bringing much to the table other than to say that if you are > looking into large amounts of data, and need to do this millions of > time, and therefore speed is of interest, Peter's grep solution is > ever so slightly faster than Colin's. There isn't much in it and both > scale well. If you'd like to test, create a new stack, one button and > in the btn copy the below script which is one mouseUp handler and one > Function fRandomInRange. > > The script will ask you how long you want your test string to be and > how many times to you want to repeat the search. The default values of > a string 100 chars long searched a million times (repeated 4 times) > takes just over a second so don't be worried about starting with the > default values. The search is repeated 4 times, 1st it does Colin's > search, then it does Peter's search and just in case there is some > kind of advantage/disadvantage regarding being first, I do Peter's > search again and end off with Colin's. > > When run the message box should end up with something like this: > > For a random string of 100 chars long. > Searched 1000000 times. > Colin's 1st run: 362 ms > Peter's 1st run: 349 ms > Output Identical > Peter's 2nd run: 351 ms > Output Identical > Colin's 2nd run: 356 ms > Output Identical > > BE MINDFUL OF LINE WRAPS > > on mouseUp > ask "How many characters do you want in your random string" with > 100 titled "Enter a Number" > put it - 3 into tAnswer > put "For a random string of " & tAnswer + 3 & " chars long." & cr into msg > repeat tAnswer times > --generates a number between 32 & 90 and turns it into an ASCII char > put numToChar(fRandomInRange(32,90)) after tData > end repeat > --so we know that the data contains the string to be found > put "ABC" after tData > put "ABC" into tFind > ask "How many times do you want to repeat the search" with 1000000 > titled "Enter a Number" > put it into tAnswer > put "Searched " & tAnswer & " times." & cr after msg > put the millisec into tStart > --Colin's 1st > repeat tAnswer times > put offset(tFind,tSearch) into tOffset > if (tOffset = the number of chars in tSearch - the number of > chars in tFine + 1) then > put char 1 to tOffset - 1 of tSearch into tFound > put tFound into tColin1st > end if > end repeat > put the millisec into tEnd > put "Colin's 1st run: " & tEnd - tStart & " ms" & cr after msg > put the millisec into tStart > --Peter's 1st run > repeat tAnswer times > if (matchText(tSearch,"(.*)" & tFind & "$",tFound)) then > put tFound into tPeter1st > end if > end repeat > put the millisec into tEnd > put "Peter's 1st run: " & tEnd - tStart & " ms" & cr after msg > if (tColin1st = tPeter1st) then > put "Output Identical" & cr after msg > else > put "ERROR!" & cr after msg > end if > put the millisec into tStart > --Peter's Again > repeat tAnswer times > if (matchText(tSearch,"(.*)" & tFind & "$",tFound)) then > put tFound into tPeter2nd > end if > end repeat > put the millisec into tEnd > put "Peter's 2nd run: " & tEnd - tStart & " ms" & cr after msg > if (tPeter2nd = tPeter1st) then > put "Output Identical" & cr after msg > else > put "ERROR!" & cr after msg > end if > put the millisec into tStart > --Colin's 2nd run > repeat tAnswer times > put offset(tFind,tSearch) into tOffset > if (tOffset = the number of chars in tSearch - the number of > chars in tFine + 1) then > put char 1 to tOffset - 1 of tSearch into tFound > put tFound into tColin2nd > end if > end repeat > put the millisec into tEnd > put "Colin's 2nd run: " & tEnd - tStart & " ms" & cr after msg > if (tPeter2nd = tColin2nd) then > put "Output Identical" after msg > else > put "ERROR!" after msg > end if > end mouseUp > > > > FUNCTION fRandomInRange pLower, pUpper > return random(pUpper - pLower + 1) + pLower -1 > end fRandomInRange > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Mon Aug 25 06:30:31 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 25 Aug 2014 13:30:31 +0300 Subject: Sending bulk emails In-Reply-To: References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> Message-ID: <0e3e3ac04a47f843082869172dbb9f3c.squirrel@185.8.104.234> Hi list, Here's my problem : one of our apps is used by different clients of ours for various tasks, one of them being sending bulk emails weekly to their own customers. The number of recipients for each emailing can vary between 800 to 2500. So far we used a php script on our server; this script receives a notification from each client's app, selects all customers with emails according to specific parameters, and then sends the email with the specific domain name of each client as sender. Everything works fine, except that more and more often emails end up in the recipients' spam box. It actually depends on the ISP but it gets more & more frequent. I tried different variations of the email header content, from various advices I found on various forums but it doesn't help... So I was wondering how you guys would handle the problem. I guess the solution is using a 3rd party web based service. Is there any such service that you would recommand ? Thanks in advance for any tips and help. jbv From livfoss at mac.com Mon Aug 25 06:46:17 2014 From: livfoss at mac.com (Graham Samuel) Date: Mon, 25 Aug 2014 12:46:17 +0200 Subject: OpenField mystery In-Reply-To: <53F90606.9060708@hyperactivesw.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> <366076EC-2749-49B5-A2ED-758A6C832929@mac.com> <53F90606.9060708@hyperactivesw.com> Message-ID: <35B09658-0587-42B1-AA6F-B6BD7AF37E25@mac.com> For those interested, I have reported the bug below and (separately) the fact that 'openField' can be triggered in surprising circumstances (the subject of my original post under this heading) - which people here have reported as being an ancient quirk of LiveCode, Runtime Revolution and maybe even MetaCard. Interestingly, RunRev have now accepted BOTH these as bugs (13274 and 13271). Graham On 23 Aug 2014, at 23:22, J. Landman Gay wrote: > On 8/23/2014, 3:02 PM, Graham Samuel wrote: >> It is quite possible for him (her) not to close the last revised >> field, but simply to go straight to clicking the button. This means >> that I can't rely on a 'closeField' message being generated even when >> a field is modified! > > Hm, that's an old bug that I thought got fixed. I remember a while back noticing that a closefield was sent. If it's broken again, consider putting in a bug report on it. > > If I remember right, I used to do this in the button: > > if the selectedfield <> "" then send "closefield" to the selectedfield > > but it was a long time ago. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Mon Aug 25 07:01:16 2014 From: skiplondon at gmail.com (Skip Kimpel) Date: Mon, 25 Aug 2014 07:01:16 -0400 Subject: Sending bulk emails In-Reply-To: <0e3e3ac04a47f843082869172dbb9f3c.squirrel@185.8.104.234> References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> <0e3e3ac04a47f843082869172dbb9f3c.squirrel@185.8.104.234> Message-ID: I would suggest something like Constant Contact. The problem you are currently experiencing will continue to grow as your IP address (and possible address block) gets placed on blacklisted servers. One way to check on this is to go to http://whatismyipaddress.com/blacklist-check SKIP > On Aug 25, 2014, at 6:30 AM, jbv at souslelogo.com wrote: > > Hi list, > Here's my problem : one of our apps is used by different > clients of ours for various tasks, one of them being sending > bulk emails weekly to their own customers. > The number of recipients for each emailing can vary between > 800 to 2500. > So far we used a php script on our server; this script receives > a notification from each client's app, selects all customers with > emails according to specific parameters, and then sends the > email with the specific domain name of each client as sender. > Everything works fine, except that more and more often emails > end up in the recipients' spam box. It actually depends on the > ISP but it gets more & more frequent. > I tried different variations of the email header content, from > various advices I found on various forums but it doesn't help... > > So I was wondering how you guys would handle the problem. > I guess the solution is using a 3rd party web based service. > Is there any such service that you would recommand ? > > Thanks in advance for any tips and help. > jbv > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jbv at souslelogo.com Mon Aug 25 07:17:50 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 25 Aug 2014 14:17:50 +0300 Subject: Sending bulk emails In-Reply-To: References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> <0e3e3ac04a47f843082869172dbb9f3c.squirrel@185.8.104.234> Message-ID: <3e743b52f599a38cf4d6daabb0175ca8.squirrel@185.8.104.234> Thanks for the reply. I have already checked the IP and the domain names, and none seems to be blacklisted. IMHO the problem is on the ISP side : somehow they check the header of the emails for some inconsistencies between the server ip and the sender's domain... Or if too many email addresses of the same ISP get the same email from the same sender, they mark the email as spam... But I'm not a specialist... jbv > I would suggest something like Constant Contact. The problem you are > currently experiencing will continue to grow as your IP address (and > possible address block) gets placed on blacklisted servers. One way to > check on this is to go to http://whatismyipaddress.com/blacklist-check > > SKIP > From B.Cornaz at gmx.net Mon Aug 25 07:21:42 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Mon, 25 Aug 2014 13:21:42 +0200 Subject: Speed Message-ID: <33814C16-57F8-4129-AA49-9CC0FAAAB3EE@gmx.net> James wrote : There are significant differences in speed between 5.5 and 6.6. Not so much in deriving the permutations as in displaying the results in a field. I guess that's true. The values in millisecs that I have posted are taken without putting the result into a field. Just the plain calculation of the permutations. But I think it quite a pity (to put it mildly) that LC 6.xx is so much slower thank 5.5. Cheers, Beat From smaclean at madmansoft.com Mon Aug 25 07:43:08 2014 From: smaclean at madmansoft.com (Stephen MacLean) Date: Mon, 25 Aug 2014 07:43:08 -0400 Subject: Sending bulk emails In-Reply-To: <3e743b52f599a38cf4d6daabb0175ca8.squirrel@185.8.104.234> References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> <0e3e3ac04a47f843082869172dbb9f3c.squirrel@185.8.104.234> <3e743b52f599a38cf4d6daabb0175ca8.squirrel@185.8.104.234> Message-ID: If the server doesn?t have a valid Reverse DNS lookup for it, then a lot of email systems will reject it. For most, but not all, it doesn?t matter that the server name = the domain name you are sending from, as long as the RDNS is valid. RDNS is usually assigned by your ISP, since they typically own the IP block. RDNS looks like 74.125.226.7 -> lga15s42-in-f7.1e100.net (that?s for one of google?s front ends for google.com) A good way to check your servers IP reputation is to use http://postmaster.aol.com and enter your server?s IP. If it?s got a bad or neutral rep there, it most likely has it elsewhere. It also has some tests you can run on/from your server to help troubleshoot issues. hth, Steve MacLean On Aug 25, 2014, at 7:17 AM, jbv at souslelogo.com wrote: > Thanks for the reply. > I have already checked the IP and the domain names, and none seems to > be blacklisted. IMHO the problem is on the ISP side : somehow they check > the header of the emails for some inconsistencies between the server ip > and the sender's domain... Or if too many email addresses of the same > ISP get the same email from the same sender, they mark the email as spam... > But I'm not a specialist... > > jbv > >> I would suggest something like Constant Contact. The problem you are >> currently experiencing will continue to grow as your IP address (and >> possible address block) gets placed on blacklisted servers. One way to >> check on this is to go to http://whatismyipaddress.com/blacklist-check >> >> SKIP >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hello at simonsmith.co Mon Aug 25 07:45:26 2014 From: hello at simonsmith.co (Simon Smith) Date: Mon, 25 Aug 2014 13:45:26 +0200 Subject: Sending bulk emails In-Reply-To: <3e743b52f599a38cf4d6daabb0175ca8.squirrel@185.8.104.234> References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> <0e3e3ac04a47f843082869172dbb9f3c.squirrel@185.8.104.234> <3e743b52f599a38cf4d6daabb0175ca8.squirrel@185.8.104.234> Message-ID: Its best not to send bulk email via a web server. Mail servers will start marking emails as spam as soon as the see a number of incoming messages from a single location. Depending on what you are sending there are a number of newsletter or transactional mail providers - mail chimp / mandrill.com, critsend.com, mailgun.com - there a number you can use (just check google). Your best bet is take a look at a couple of them and see what offers the best pricing and intergration methods. Also sending the email as though its coming from the clients domain is probably going to increase the chances it is seen as spam. Increasingly more and more mail providers are also checking spf records etc and if these are not setup correctly, your chances of being seen as spam are increased. Best to send from a single email address and ensure everything is setup correctly and to ask clients to whitelist that address. Simon On Mon, Aug 25, 2014 at 1:17 PM, wrote: > Thanks for the reply. > I have already checked the IP and the domain names, and none seems to > be blacklisted. IMHO the problem is on the ISP side : somehow they check > the header of the emails for some inconsistencies between the server ip > and the sender's domain... Or if too many email addresses of the same > ISP get the same email from the same sender, they mark the email as spam... > But I'm not a specialist... > > jbv > > > I would suggest something like Constant Contact. The problem you are > > currently experiencing will continue to grow as your IP address (and > > possible address block) gets placed on blacklisted servers. One way to > > check on this is to go to http://whatismyipaddress.com/blacklist-check > > > > SKIP > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Mon Aug 25 07:59:41 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 25 Aug 2014 14:59:41 +0300 Subject: Sending bulk emails In-Reply-To: References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> <0e3e3ac04a47f843082869172dbb9f3c.squirrel@185.8.104.234> <3e743b52f599a38cf4d6daabb0175ca8.squirrel@185.8.104.234> Message-ID: Simon Thanks for the reply. It confirms what I thought : using a 3rd party service might be the solution. Nevertheless I have checked a few things : the ip and domain names aren't blacklisted and the ip has a valid Reverse DNS lookup. The strange thing is that when my client sends the same email from the same address to the same recipients individually from the same server but via a webmail, it isn't rejected as spam by the recipient ISP... Anyway, I noticed a few times that members of this very list use mandrill.com; I'll check their integration methods. jbv > Its best not to send bulk email via a web server. Mail servers will start > marking emails as spam as soon as the see a number of incoming messages > from a single location. Depending on what you are sending there are a > number of newsletter or transactional mail providers - mail chimp / > mandrill.com, critsend.com, mailgun.com - there a number you can use (just > check google). Your best bet is take a look at a couple of them and see > what offers the best pricing and intergration methods. > > Also sending the email as though its coming from the clients domain is > probably going to increase the chances it is seen as spam. Increasingly > more and more mail providers are also checking spf records etc and if > these > are not setup correctly, your chances of being seen as spam are increased. > > Best to send from a single email address and ensure everything is setup > correctly and to ask clients to whitelist that address. > > Simon > > > On Mon, Aug 25, 2014 at 1:17 PM, wrote: > >> Thanks for the reply. >> I have already checked the IP and the domain names, and none seems to >> be blacklisted. IMHO the problem is on the ISP side : somehow they check >> the header of the emails for some inconsistencies between the server ip >> and the sender's domain... Or if too many email addresses of the same >> ISP get the same email from the same sender, they mark the email as >> spam... >> But I'm not a specialist... >> >> jbv >> >> > I would suggest something like Constant Contact. The problem you are >> > currently experiencing will continue to grow as your IP address (and >> > possible address block) gets placed on blacklisted servers. One way >> to >> > check on this is to go to http://whatismyipaddress.com/blacklist-check >> > >> > SKIP >> > >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Mon Aug 25 08:01:16 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 25 Aug 2014 07:01:16 -0500 Subject: Speed In-Reply-To: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> Message-ID: On Sun, Aug 24, 2014 at 11:09 AM, Beat Cornaz wrote: > I am a bit at a loss, as I would be surprised if my way would be like 25 > times faster than the fastest known algorithm. Did I make a mistake in > implementing Dicks code (although > Dick also reports 2 minutes to do the job, as my way does it in 5.6 secs). > What is happening here. > I even suspect, that I can improve more on my improved way (by only > calculating half of the perms and swapping the 1's and 2's. I might apply > that principle more (like only calculating 1/4 of the perms and do some > swapping, or even better). I will look into that later. > The fastest algorithm doesn't take into account the difference between LiveCode's native C speed based on a single command vs. the much slower execution of a substantial amount of transcript/livecode/. For example, a sorting algorithm written in LC would be *much* slower than the sort command, even if it used a more efficient algorithm. My permutations code (and perhaps yours) makes extensive use of the replace command specifically because it's a single command that for our purposes here gets a lot done. That's key in speeding things up. gc From gcanyon at gmail.com Mon Aug 25 08:02:55 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 25 Aug 2014 07:02:55 -0500 Subject: Speed In-Reply-To: <33814C16-57F8-4129-AA49-9CC0FAAAB3EE@gmx.net> References: <33814C16-57F8-4129-AA49-9CC0FAAAB3EE@gmx.net> Message-ID: On Mon, Aug 25, 2014 at 6:21 AM, Beat Cornaz wrote: > But I think it quite a pity (to put it mildly) that LC 6.xx is so much > slower thank 5.5. Could it be the unicode implementation? Agreed, that would be unfortunate. It would be nice to have a text setting for fields. From toolbook at kestner.de Mon Aug 25 08:31:40 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 25 Aug 2014 14:31:40 +0200 Subject: change windows file attribute "hidden" Message-ID: <003801cfc060$85cb4b80$9161e280$@de> Hi, before I dig into the windows docs, I want to ask, if anybody has a code snippet on hand for the windows shell command to change the file attribute "hidden"? Thank you Tiemo From wow at together.net Mon Aug 25 09:45:58 2014 From: wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 09:45:58 -0400 Subject: iPhone kiosk In-Reply-To: References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> Message-ID: <53FB3E16.9010502@together.net> Hoping someone here knows the answer to this. I realize it's an unusual situation. I am setting up a jail-broken iPhone with a LC app. This phone will be set to boot directly into the LC app. The phone will only ever be used for this one purpose. Think of it as an iPhone kiosk. Users will not be able to access any functions on the phone outside of the app. Once I have completed all the development work on the first phone, I want to clone this phone to other iPhones so that each is an exact copy. Is that possible? Can I create an iTunes backup of the first phone and then use that backup to "restore" it to new iPhones? Second question is in regards to distributing and updating the app. The app itself is not to be sold through the App Store. My business model is based on distributing these iPhones (with the app pre-installed). Again, the phone will never be used for any purpose outside of my app. The phone will not be used to make calls, but it does need to access the internet. Most importantly, my app needs to be kept updated. Is there some way to automatically update the app (even through a jail-broken means)? I imagine larger corporations have exclusive apps that are not distributed publicly and are kept updated. How does that work? Thanks, Richard Miller From coiin at verizon.net Mon Aug 25 10:13:31 2014 From: coiin at verizon.net (Colin Holgate) Date: Mon, 25 Aug 2014 10:13:31 -0400 Subject: iPhone kiosk In-Reply-To: <53FB3E16.9010502@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> Message-ID: Don?t know the answer to most of your questions, but wouldn?t an iPod Touch be cheaper? From ambassador at fourthworld.com Mon Aug 25 10:23:51 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 25 Aug 2014 07:23:51 -0700 Subject: Speed In-Reply-To: References: Message-ID: <53FB46F7.6000505@fourthworld.com> Geoff Canyon wrote: > On Mon, Aug 25, 2014 at 6:21 AM, Beat Cornaz wrote: > >> But I think it quite a pity (to put it mildly) that LC 6.xx is so much >> slower thank 5.5. > > > Could it be the unicode implementation? Agreed, that would be unfortunate. > It would be nice to have a text setting for fields. Not likely, as the "just works" Unicode implementation is only in v7. Has anyone filed a bug report against this? The speed difference is enough that it if fixed may help offset performance degradation as a part of the Unicode implementation. And since it predates the Unicode rollout, I'd wager it can indeed be fixed back to something closer to the v5.5.3 levels. And if not, would at least be nice to know why. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Mon Aug 25 11:01:15 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 25 Aug 2014 08:01:15 -0700 Subject: Should closeField get called when a group is deleted? Message-ID: If a group is deleted but the cursor is in one of it's fields, should closeField be sent? I have fields that set a stack property to id the source of their data on enterField, and delete it on closeField. It seems to me that if the behavior is as above, that the program can conclude that the saved id was of that of the active field, if it exists, and that no field was active if it does not exist. Or am I missing something? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From charles at buchwald.ca Mon Aug 25 11:04:01 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Mon, 25 Aug 2014 10:04:01 -0500 Subject: iPhone kiosk In-Reply-To: <53FB3E16.9010502@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> Message-ID: <708083D4-22E0-4472-B660-9B3E99F79FCB@buchwald.ca> Hi Richard, I've used iBackupbot for backups and restores when working with a few different iOS devices. http://www.icopybot.com/itunes-backup-manager.htm It's not very refined, but it's useful. You can use it to help with making clones by restoring as you suggest. I think we all struggle with keeping apps up to date. If you are not using the App Store for updates, how about using the "splash stack" technique, and checking for updates on startup, like you might with a desktop app? If you have net access, you should be able to check for updates, download and replace the primary stack. I guess you'll want to keep any user data or preferences separate and stored in an appropriate place, as usual. Cheers, - Charles On 25 Aug 2014, at 8:45 AM, Richard Miller wrote: > Hoping someone here knows the answer to this. I realize it's an unusual situation. > > I am setting up a jail-broken iPhone with a LC app. This phone will be set to boot directly into the LC app. The phone will only ever be used for this one purpose. Think of it as an iPhone kiosk. Users will not be able to access any functions on the phone outside of the app. > > Once I have completed all the development work on the first phone, I want to clone this phone to other iPhones so that each is an exact copy. Is that possible? Can I create an iTunes backup of the first phone and then use that backup to "restore" it to new iPhones? > > Second question is in regards to distributing and updating the app. > > The app itself is not to be sold through the App Store. My business model is based on distributing these iPhones (with the app pre-installed). Again, the phone will never be used for any purpose outside of my app. The phone will not be used to make calls, but it does need to access the internet. Most importantly, my app needs to be kept updated. Is there some way to automatically update the app (even through a jail-broken means)? I imagine larger corporations have exclusive apps that are not distributed publicly and are kept updated. How does that work? > > Thanks, > Richard Miller > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From palcibiades-first at yahoo.co.uk Mon Aug 25 12:16:30 2014 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 25 Aug 2014 09:16:30 -0700 (PDT) Subject: iPhone kiosk In-Reply-To: <53FB3E16.9010502@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> Message-ID: <1408983390305-4682444.post@n4.nabble.com> Its not answering the question, but.... You could get a much cheaper android phone, make the first one how you want it, and then clone using cyanogenmod backup and resotre using a flash card. Very simple process. The problem with iphone might be that someone else will think of it if your app takes off and undercut dramatically. Don't know about upgrades in Android. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Re-Speed-tp4682397p4682444.html Sent from the Revolution - User mailing list archive at Nabble.com. From wow at together.net Mon Aug 25 12:21:59 2014 From: wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 12:21:59 -0400 Subject: iPhone kiosk In-Reply-To: <708083D4-22E0-4472-B660-9B3E99F79FCB@buchwald.ca> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <708083D4-22E0-4472-B660-9B3E99F79FCB@buchwald.ca> Message-ID: <53FB62A7.4030805@together.net> Hi Charles, About the update process, I didn't know one could use this approach with an iPhone. You are presumably talking about initially installing a small startup app (which doesn't change), which upon startup, either goes to a stack for the bulk of the apps functionality, or updates that stack first if a remote update has been posted. I have used this approach many times with a desktop app, but didn't know it could be used with an iOS device. Have you used this approach yourself? Thanks for the info on iBackupbot. Richard On 8/25/14, 11:04 AM, Charles E Buchwald wrote: > Hi Richard, > > I've used iBackupbot for backups and restores when working with a few different iOS devices. http://www.icopybot.com/itunes-backup-manager.htm It's not very refined, but it's useful. You can use it to help with making clones by restoring as you suggest. > > I think we all struggle with keeping apps up to date. If you are not using the App Store for updates, how about using the "splash stack" technique, and checking for updates on startup, like you might with a desktop app? If you have net access, you should be able to check for updates, download and replace the primary stack. I guess you'll want to keep any user data or preferences separate and stored in an appropriate place, as usual. > > Cheers, > - Charles > > On 25 Aug 2014, at 8:45 AM, Richard Miller wrote: > >> Hoping someone here knows the answer to this. I realize it's an unusual situation. >> >> I am setting up a jail-broken iPhone with a LC app. This phone will be set to boot directly into the LC app. The phone will only ever be used for this one purpose. Think of it as an iPhone kiosk. Users will not be able to access any functions on the phone outside of the app. >> >> Once I have completed all the development work on the first phone, I want to clone this phone to other iPhones so that each is an exact copy. Is that possible? Can I create an iTunes backup of the first phone and then use that backup to "restore" it to new iPhones? >> >> Second question is in regards to distributing and updating the app. >> >> The app itself is not to be sold through the App Store. My business model is based on distributing these iPhones (with the app pre-installed). Again, the phone will never be used for any purpose outside of my app. The phone will not be used to make calls, but it does need to access the internet. Most importantly, my app needs to be kept updated. Is there some way to automatically update the app (even through a jail-broken means)? I imagine larger corporations have exclusive apps that are not distributed publicly and are kept updated. How does that work? >> >> Thanks, >> Richard Miller >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > -- > Charles E. Buchwald > CEO/Director General > Museografica Digital > http://digital.museografica.com > > Mac OSX 10.9.4, LC 6.6.2 Commercial > > LC Developer Tools: http://buchwald.ca/developer-tools/ > > Email Notice: http://wp.me/P3aT4d-33 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From wow at together.net Mon Aug 25 12:22:28 2014 From: wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 12:22:28 -0400 Subject: iPhone kiosk In-Reply-To: References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> Message-ID: <53FB62C4.4070301@together.net> Need the iPhone 5s camera. On 8/25/14, 10:13 AM, Colin Holgate wrote: > Don?t know the answer to most of your questions, but wouldn?t an iPod Touch be cheaper? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From wow at together.net Mon Aug 25 12:23:47 2014 From: wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 12:23:47 -0400 Subject: iPhone kiosk In-Reply-To: <1408983390305-4682444.post@n4.nabble.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408983390305-4682444.post@n4.nabble.com> Message-ID: <53FB6313.1000308@together.net> The Android problem is the almost total lack of LC functionality for video recording and playback. On 8/25/14, 12:16 PM, Peter Alcibiades wrote: > Its not answering the question, but.... > > You could get a much cheaper android phone, make the first one how you want > it, and then clone using cyanogenmod backup and resotre using a flash card. > Very simple process. The problem with iphone might be that someone else will > think of it if your app takes off and undercut dramatically. > > Don't know about upgrades in Android. > > Al > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Re-Speed-tp4682397p4682444.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From charles at buchwald.ca Mon Aug 25 12:29:48 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Mon, 25 Aug 2014 11:29:48 -0500 Subject: iPhone kiosk In-Reply-To: <53FB62A7.4030805@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <708083D4-22E0-4472-B660-9B3E99F79FCB@buchwald.ca> <53FB62A7.4030805@together.net> Message-ID: <9B0D2AFF-07EE-4AC3-815E-A57B81B9B43B@buchwald.ca> Hi Richard, I haven't used this in a production app (one submitted to the App Store), because as I understand it it violates the rules. But you mentioned a jailbroken device, so I don't see any technical reason why it wouldn't work. Have you considered the App Store scheme they have for corporate distribution? I assume that it would give you an automated way to make updates, but I don't know the details. It might be easier then jailbreaking your devices. I'll be working on a system soon that could use iPads in a way similar to what you are suggesting, and I'll have a similar need to make updates, so I'm curious to see how this thread pans out. Cheers, - Charles On 25 Aug 2014, at 11:21 AM, Richard Miller wrote: > Hi Charles, > > About the update process, I didn't know one could use this approach with an iPhone. You are presumably talking about initially installing a small startup app (which doesn't change), which upon startup, either goes to a stack for the bulk of the apps functionality, or updates that stack first if a remote update has been posted. I have used this approach many times with a desktop app, but didn't know it could be used with an iOS device. Have you used this approach yourself? > > Thanks for the info on iBackupbot. > > Richard > > > > > On 8/25/14, 11:04 AM, Charles E Buchwald wrote: >> Hi Richard, >> >> I've used iBackupbot for backups and restores when working with a few different iOS devices. http://www.icopybot.com/itunes-backup-manager.htm It's not very refined, but it's useful. You can use it to help with making clones by restoring as you suggest. >> >> I think we all struggle with keeping apps up to date. If you are not using the App Store for updates, how about using the "splash stack" technique, and checking for updates on startup, like you might with a desktop app? If you have net access, you should be able to check for updates, download and replace the primary stack. I guess you'll want to keep any user data or preferences separate and stored in an appropriate place, as usual. >> >> Cheers, >> - Charles >> >> On 25 Aug 2014, at 8:45 AM, Richard Miller wrote: >> >>> Hoping someone here knows the answer to this. I realize it's an unusual situation. >>> >>> I am setting up a jail-broken iPhone with a LC app. This phone will be set to boot directly into the LC app. The phone will only ever be used for this one purpose. Think of it as an iPhone kiosk. Users will not be able to access any functions on the phone outside of the app. >>> >>> Once I have completed all the development work on the first phone, I want to clone this phone to other iPhones so that each is an exact copy. Is that possible? Can I create an iTunes backup of the first phone and then use that backup to "restore" it to new iPhones? >>> >>> Second question is in regards to distributing and updating the app. >>> >>> The app itself is not to be sold through the App Store. My business model is based on distributing these iPhones (with the app pre-installed). Again, the phone will never be used for any purpose outside of my app. The phone will not be used to make calls, but it does need to access the internet. Most importantly, my app needs to be kept updated. Is there some way to automatically update the app (even through a jail-broken means)? I imagine larger corporations have exclusive apps that are not distributed publicly and are kept updated. How does that work? >>> >>> Thanks, >>> Richard Miller >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> -- >> Charles E. Buchwald >> CEO/Director General >> Museografica Digital >> http://digital.museografica.com >> >> Mac OSX 10.9.4, LC 6.6.2 Commercial >> >> LC Developer Tools: http://buchwald.ca/developer-tools/ >> >> Email Notice: http://wp.me/P3aT4d-33 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital Amsterdam 110, Condesa CP 06100 M?xico DF office: +52 (55) 5615 7411 direct: +52 (55) 8421 6097 http://digital.museografica.com charles at digital.museografica.com Consultant (Design & IT) Charles Buchwald & Friends Vancouver, BC Canada Portland, WA, USA +01 (971) 533 7706 http://buchwald.ca charles at buchwald.ca Skype: charles_buchwald Connect on LinkedIn Follow me on Twitter Connect on Facebook Connect on Google+ Member of the 02 Global Network for Sustainable Design Email Notice: http://wp.me/P3aT4d-33 From wow at together.net Mon Aug 25 12:36:39 2014 From: wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 12:36:39 -0400 Subject: iPhone kiosk In-Reply-To: <9B0D2AFF-07EE-4AC3-815E-A57B81B9B43B@buchwald.ca> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <708083D4-22E0-4472-B660-9B3E99F79FCB@buchwald.ca> <53FB62A7.4030805@together.net> <9B0D2AFF-07EE-4AC3-815E-A57B81B9B43B@buchwald.ca> Message-ID: <53FB6617.8070206@together.net> I'd like to know more about the corporate distribution option as well. Anyone here have experience with that? My app requires jailbreaking to connect to a custom hardware device. On 8/25/14, 12:29 PM, Charles E Buchwald wrote: > Hi Richard, > I haven't used this in a production app (one submitted to the App Store), because as I understand it it violates the rules. But you mentioned a jailbroken device, so I don't see any technical reason why it wouldn't work. > Have you considered the App Store scheme they have for corporate distribution? I assume that it would give you an automated way to make updates, but I don't know the details. It might be easier then jailbreaking your devices. > I'll be working on a system soon that could use iPads in a way similar to what you are suggesting, and I'll have a similar need to make updates, so I'm curious to see how this thread pans out. > Cheers, > - Charles > > On 25 Aug 2014, at 11:21 AM, Richard Miller wrote: > >> Hi Charles, >> >> About the update process, I didn't know one could use this approach with an iPhone. You are presumably talking about initially installing a small startup app (which doesn't change), which upon startup, either goes to a stack for the bulk of the apps functionality, or updates that stack first if a remote update has been posted. I have used this approach many times with a desktop app, but didn't know it could be used with an iOS device. Have you used this approach yourself? >> >> Thanks for the info on iBackupbot. >> >> Richard >> >> >> >> >> On 8/25/14, 11:04 AM, Charles E Buchwald wrote: >>> Hi Richard, >>> >>> I've used iBackupbot for backups and restores when working with a few different iOS devices. http://www.icopybot.com/itunes-backup-manager.htm It's not very refined, but it's useful. You can use it to help with making clones by restoring as you suggest. >>> >>> I think we all struggle with keeping apps up to date. If you are not using the App Store for updates, how about using the "splash stack" technique, and checking for updates on startup, like you might with a desktop app? If you have net access, you should be able to check for updates, download and replace the primary stack. I guess you'll want to keep any user data or preferences separate and stored in an appropriate place, as usual. >>> >>> Cheers, >>> - Charles >>> >>> On 25 Aug 2014, at 8:45 AM, Richard Miller wrote: >>> >>>> Hoping someone here knows the answer to this. I realize it's an unusual situation. >>>> >>>> I am setting up a jail-broken iPhone with a LC app. This phone will be set to boot directly into the LC app. The phone will only ever be used for this one purpose. Think of it as an iPhone kiosk. Users will not be able to access any functions on the phone outside of the app. >>>> >>>> Once I have completed all the development work on the first phone, I want to clone this phone to other iPhones so that each is an exact copy. Is that possible? Can I create an iTunes backup of the first phone and then use that backup to "restore" it to new iPhones? >>>> >>>> Second question is in regards to distributing and updating the app. >>>> >>>> The app itself is not to be sold through the App Store. My business model is based on distributing these iPhones (with the app pre-installed). Again, the phone will never be used for any purpose outside of my app. The phone will not be used to make calls, but it does need to access the internet. Most importantly, my app needs to be kept updated. Is there some way to automatically update the app (even through a jail-broken means)? I imagine larger corporations have exclusive apps that are not distributed publicly and are kept updated. How does that work? >>>> >>>> Thanks, >>>> Richard Miller >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> -- >>> Charles E. Buchwald >>> CEO/Director General >>> Museografica Digital >>> http://digital.museografica.com >>> >>> Mac OSX 10.9.4, LC 6.6.2 Commercial >>> >>> LC Developer Tools: http://buchwald.ca/developer-tools/ >>> >>> Email Notice: http://wp.me/P3aT4d-33 >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > -- > Charles E. Buchwald > > CEO/Director General > Museografica Digital > Amsterdam 110, Condesa > CP 06100 M?xico DF > office: +52 (55) 5615 7411 > direct: +52 (55) 8421 6097 > http://digital.museografica.com > charles at digital.museografica.com > > Consultant (Design & IT) > Charles Buchwald & Friends > Vancouver, BC Canada > Portland, WA, USA > +01 (971) 533 7706 > http://buchwald.ca > charles at buchwald.ca > > Skype: charles_buchwald > Connect on LinkedIn > Follow me on Twitter > Connect on Facebook > Connect on Google+ > Member of the 02 Global Network for Sustainable Design > > Email Notice: http://wp.me/P3aT4d-33 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From harrison at all-auctions.com Mon Aug 25 12:55:09 2014 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 25 Aug 2014 12:55:09 -0400 Subject: iPhone kiosk In-Reply-To: <53FB62C4.4070301@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> Message-ID: <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> Hi Richard, The iPod Touch 5th Generation and earlier down to I believe 3rd generation all have cameras and video capability. Why would I as a user want a one trick pony for all of that money for a new device when a simple app that would run under iOS would be sufficient? (Especially if I already own said iDevice.) You are also asking people to trust ?Jailbroken? technology with your app along with the possible security holes as well. I think you may be shooting yourself in the marketing foot with the route you are trying to go. It is certainly a more expensive route from a developmental standpoint too. Just my 2 cents. I hope it helps. Rick On Aug 25, 2014, at 12:22 PM, Richard Miller wrote: > Need the iPhone 5s camera. From coiin at verizon.net Mon Aug 25 13:03:45 2014 From: coiin at verizon.net (Colin Holgate) Date: Mon, 25 Aug 2014 13:03:45 -0400 Subject: iPhone kiosk In-Reply-To: <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> Message-ID: My guess is that he?s making use of the 120 fps camera. The iPod Touch 5th gen does do 60 fps, which is twice the rate of the older devices, but I think it only has a front camera. On Aug 25, 2014, at 12:55 PM, Rick Harrison wrote: > >The iPod Touch 5th Generation and earlier down to I believe 3rd generation > all have cameras and video capability. From harrison at all-auctions.com Mon Aug 25 13:19:44 2014 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 25 Aug 2014 13:19:44 -0400 Subject: iPhone kiosk In-Reply-To: References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> Message-ID: Hi Colin, I have an iPod Touch 5th Generation and it has both front and back facing cameras. According to Wikipedia: The new iSight camera has 5 megapixels and is capable of 1080p video recording with an illuminated sensor and a LED flash. The front facing camera was also upgraded to 1.3 megapixels capable of 1080p video compared to the VGA 0.3 megapixels front camera on the fourth generation.[15] Thanks, Rick On Aug 25, 2014, at 1:03 PM, Colin Holgate wrote: > My guess is that he?s making use of the 120 fps camera. The iPod Touch 5th gen does do 60 fps, which is twice the rate of the older devices, but I think it only has a front camera. > > > On Aug 25, 2014, at 12:55 PM, Rick Harrison wrote: > >>> The iPod Touch 5th Generation and earlier down to I believe 3rd generation >> all have cameras and video capability. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From wow at together.net Mon Aug 25 13:19:34 2014 From: wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 13:19:34 -0400 Subject: iPhone kiosk In-Reply-To: <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> Message-ID: <53FB7026.3050206@together.net> This is used in a kiosk. The user never sees the phone and doesn't even know the kiosk is powered by it. I need the 120 fps only available in the 5s. On 8/25/14, 12:55 PM, Rick Harrison wrote: > Hi Richard, > > The iPod Touch 5th Generation and earlier down to I believe 3rd generation > all have cameras and video capability. > > Why would I as a user want a one trick pony for all of that money > for a new device when a simple app that would run under iOS would > be sufficient? (Especially if I already own said iDevice.) You are also > asking people to trust ?Jailbroken? technology with your app along with > the possible security holes as well. > > I think you may be shooting yourself in the marketing foot with the route > you are trying to go. It is certainly a more expensive route from a > developmental standpoint too. > > Just my 2 cents. I hope it helps. > > Rick > > > > > On Aug 25, 2014, at 12:22 PM, Richard Miller wrote: > >> Need the iPhone 5s camera. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From harrison at all-auctions.com Mon Aug 25 14:02:20 2014 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 25 Aug 2014 14:02:20 -0400 Subject: iPhone kiosk In-Reply-To: <53FB7026.3050206@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> <53FB7026.3050206@together.net> Message-ID: <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> Hi Richard, http://www.apple.com/iphone-5s/specs/ I only see 30fps recording and 60fps for playback for this device. (iPhone 5s.) Where are you getting 120fps technical information for this? Here?s the 5th Generation iPod Touch specs too. http://www.apple.com/ipod-touch/specs.html So as I understand things now, you are hoping to use a contract free iPhone 5s strictly for the video camera and video display capabilities so that you can make it the center of some other hardware type device (perhaps a sports helmet camera or something similar.) Base price just for the iPhone $649. (Before any markup by you.) You will also be trying to conceal the fact that the iPhone is the centerpiece technology for the device. Someone on the internet will probably do a take apart of your device and when they publish the fact that the iPhone is the center piece of the device, Apple, Inc. will probably set it?s legal department loose on you and tell you to at least seize and desist your operations or the manufacture of your device. (They will spout some licensing issue no doubt.) (Please understand I?m trying to play Devil?s Advocate here to save you the potential legal hassles in advance.) It would probably be cheaper for you to just build your device from scratch as a prototype and then take it to a manufacturer to actually put the device together. (You avoid all the trouble with Apple, Inc. that way.) I hope this is somewhat helpful to you. Rick On Aug 25, 2014, at 1:19 PM, Richard Miller wrote: > This is used in a kiosk. The user never sees the phone and doesn't even know the kiosk is powered by it. > > I need the 120 fps only available in the 5s. > > > > On 8/25/14, 12:55 PM, Rick Harrison wrote: >> Hi Richard, >> >> The iPod Touch 5th Generation and earlier down to I believe 3rd generation >> all have cameras and video capability. >> >> Why would I as a user want a one trick pony for all of that money >> for a new device when a simple app that would run under iOS would >> be sufficient? (Especially if I already own said iDevice.) You are also >> asking people to trust ?Jailbroken? technology with your app along with >> the possible security holes as well. >> >> I think you may be shooting yourself in the marketing foot with the route >> you are trying to go. It is certainly a more expensive route from a >> developmental standpoint too. >> >> Just my 2 cents. I hope it helps. >> >> Rick >> >> >> >> >> On Aug 25, 2014, at 12:22 PM, Richard Miller wrote: >> >>> Need the iPhone 5s camera. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Mon Aug 25 14:10:09 2014 From: coiin at verizon.net (Colin Holgate) Date: Mon, 25 Aug 2014 14:10:09 -0400 Subject: iPhone kiosk In-Reply-To: <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> <53FB7026.3050206@together.net> <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> Message-ID: Read the Slow Motion entry on this page: https://www.apple.com/iphone-5s/camera/ On Aug 25, 2014, at 2:02 PM, Rick Harrison wrote: > http://www.apple.com/iphone-5s/specs/ > > I only see 30fps recording and 60fps for playback for this device. (iPhone 5s.) > Where are you getting 120fps technical information for this? From wow at together.net Mon Aug 25 14:16:07 2014 From: wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 14:16:07 -0400 Subject: iPhone kiosk In-Reply-To: <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> <53FB7026.3050206@together.net> <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> Message-ID: <53FB7D67.4010608@together.net> Hi Rick, https://www.apple.com/iphone-5s/camera/ I own it and use the 120 fps slo-mo feature regularly. This is not a contract-free arrangement. It's a conventional purchase of an iPhone from Verizon with monthly payments. There's no attempt to conceal the phone. Why would Apple care what we do with the phone? We're not advertising any aspect of the business as an "Apple-driven product'. No problem with you playing Devil's advocate :) I appreciate it. Our business model is not price-sensitive. It is quality-sensitive. Richard On 8/25/14, 2:02 PM, Rick Harrison wrote: > Hi Richard, > > http://www.apple.com/iphone-5s/specs/ > > I only see 30fps recording and 60fps for playback for this device. (iPhone 5s.) > Where are you getting 120fps technical information for this? > > > Here?s the 5th Generation iPod Touch specs too. > > http://www.apple.com/ipod-touch/specs.html > > > So as I understand things now, you are hoping to > use a contract free iPhone 5s strictly for the video > camera and video display capabilities so that you > can make it the center of some other hardware > type device (perhaps a sports helmet camera or > something similar.) Base price just for the iPhone > $649. (Before any markup by you.) You will also > be trying to conceal the fact that the iPhone is the > centerpiece technology for the device. > > Someone on the internet will probably do a take apart > of your device and when they publish the fact that > the iPhone is the center piece of the device, Apple, Inc. > will probably set it?s legal department loose on you > and tell you to at least seize and desist your > operations or the manufacture of your device. > (They will spout some licensing issue no doubt.) > > (Please understand I?m trying to play Devil?s Advocate > here to save you the potential legal hassles in advance.) > > It would probably be cheaper for you to just build your > device from scratch as a prototype and then take it > to a manufacturer to actually put the device together. > (You avoid all the trouble with Apple, Inc. that way.) > > I hope this is somewhat helpful to you. > > Rick > > > > > > > > > On Aug 25, 2014, at 1:19 PM, Richard Miller wrote: > >> This is used in a kiosk. The user never sees the phone and doesn't even know the kiosk is powered by it. >> >> I need the 120 fps only available in the 5s. >> >> >> >> On 8/25/14, 12:55 PM, Rick Harrison wrote: >>> Hi Richard, >>> >>> The iPod Touch 5th Generation and earlier down to I believe 3rd generation >>> all have cameras and video capability. >>> >>> Why would I as a user want a one trick pony for all of that money >>> for a new device when a simple app that would run under iOS would >>> be sufficient? (Especially if I already own said iDevice.) You are also >>> asking people to trust ?Jailbroken? technology with your app along with >>> the possible security holes as well. >>> >>> I think you may be shooting yourself in the marketing foot with the route >>> you are trying to go. It is certainly a more expensive route from a >>> developmental standpoint too. >>> >>> Just my 2 cents. I hope it helps. >>> >>> Rick >>> >>> >>> >>> >>> On Aug 25, 2014, at 12:22 PM, Richard Miller wrote: >>> >>>> Need the iPhone 5s camera. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Mon Aug 25 14:21:38 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 25 Aug 2014 13:21:38 -0500 Subject: OpenField mystery In-Reply-To: <35B09658-0587-42B1-AA6F-B6BD7AF37E25@mac.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> <366076EC-2749-49B5-A2ED-758A6C832929@mac.com> <53F90606.9060708@hyperactivesw.com> <35B09658-0587-42B1-AA6F-B6BD7AF37E25@mac.com> Message-ID: <53FB7EB2.70600@hyperactivesw.com> On 8/25/2014, 5:46 AM, Graham Samuel wrote: > For those interested, I have reported the bug below and (separately) > the fact that 'openField' can be triggered in surprising > circumstances (the subject of my original post under this heading) - > which people here have reported as being an ancient quirk of > LiveCode, Runtime Revolution and maybe even MetaCard. Interestingly, > RunRev have now accepted BOTH these as bugs (13274 and 13271). Thanks for doing that. The automatic selection dates back to MetaCard 1.0. I complained about it and was told to just put in an offscreen field at layer 1, so I gave up and accepted it as "just one of those things." It will be nice not to have to deal with that any more. Any developer who wants auto-select can easily add it in an opencard handler, but getting rid of an unwanted one requires a convoluted fix. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mikedoub at gmail.com Mon Aug 25 14:54:36 2014 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 25 Aug 2014 14:54:36 -0400 Subject: Population puzzle In-Reply-To: References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> Message-ID: Well, I have been trying to come up with a logical approach since I posted the puzzle and I still don?t have a solution. You all may not have a logic based approach, but at least you got a solution. Right now the straight forward approach with some randomness thrown in looks pretty good to me! -= Mike On Aug 25, 2014, at 5:41 AM, Terry Judd wrote: > Ditto for me, and mine was messier than Scott?s as well. Still it kept me > occupied while I was eating my lunch :) > > Terry... > > On 25/08/2014 5:27 pm, "Scott Rossi" wrote: > >> I imagine my approach would be faster if it followed ANY logic. :-) >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 8/24/14 11:38 PM, "Kay C Lan" wrote: >> >>> I imagine Terry & Scott, your approach would on average be faster if >>> you followed the same logic. >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Mon Aug 25 15:10:22 2014 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 25 Aug 2014 15:10:22 -0400 Subject: iPhone kiosk In-Reply-To: <53FB7D67.4010608@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> <53FB7026.3050206@together.net> <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> <53FB7D67.4010608@together.net> Message-ID: <9B1764C5-CECF-41A0-8E1C-F5787C486525@all-auctions.com> Hi Richard, So, the person you sell your device to will have to sign up for the Verizon/AT&T phone contract which will reveal the fact that there is indeed an Apple iPhone involved in the product? (Isn?t the 2 year contract about $2,000 total?) If the product is not concealing the iPhone, then again, why would I as a user want such a high end price wise one trick pony iPhone device? Is the playback of the Slo-Mo at 30fps then since it is billed as being at 1/4 speed playback? Not having said device in my possession this is a somewhat interesting feature. (I?m curious as to why Apple doesn?t allow normal video recording at 120fps as an option.) Thanks, Rick On Aug 25, 2014, at 2:16 PM, Richard Miller wrote: > Hi Rick, > > https://www.apple.com/iphone-5s/camera/ > > I own it and use the 120 fps slo-mo feature regularly. > > This is not a contract-free arrangement. It's a conventional purchase of an iPhone from Verizon with monthly payments. > > There's no attempt to conceal the phone. > > Why would Apple care what we do with the phone? We're not advertising any aspect of the business as an "Apple-driven product'. > > No problem with you playing Devil's advocate :) I appreciate it. > > Our business model is not price-sensitive. It is quality-sensitive. > > Richard > > > > > On 8/25/14, 2:02 PM, Rick Harrison wrote: >> Hi Richard, >> >> http://www.apple.com/iphone-5s/specs/ >> >> I only see 30fps recording and 60fps for playback for this device. (iPhone 5s.) >> Where are you getting 120fps technical information for this? >> >> >> Here?s the 5th Generation iPod Touch specs too. >> >> http://www.apple.com/ipod-touch/specs.html >> >> >> So as I understand things now, you are hoping to >> use a contract free iPhone 5s strictly for the video >> camera and video display capabilities so that you >> can make it the center of some other hardware >> type device (perhaps a sports helmet camera or >> something similar.) Base price just for the iPhone >> $649. (Before any markup by you.) You will also >> be trying to conceal the fact that the iPhone is the >> centerpiece technology for the device. >> >> Someone on the internet will probably do a take apart >> of your device and when they publish the fact that >> the iPhone is the center piece of the device, Apple, Inc. >> will probably set it?s legal department loose on you >> and tell you to at least seize and desist your >> operations or the manufacture of your device. >> (They will spout some licensing issue no doubt.) >> >> (Please understand I?m trying to play Devil?s Advocate >> here to save you the potential legal hassles in advance.) >> >> It would probably be cheaper for you to just build your >> device from scratch as a prototype and then take it >> to a manufacturer to actually put the device together. >> (You avoid all the trouble with Apple, Inc. that way.) >> >> I hope this is somewhat helpful to you. >> >> Rick >> >> >> >> >> >> >> >> >> On Aug 25, 2014, at 1:19 PM, Richard Miller wrote: >> >>> This is used in a kiosk. The user never sees the phone and doesn't even know the kiosk is powered by it. >>> >>> I need the 120 fps only available in the 5s. >>> >>> >>> >>> On 8/25/14, 12:55 PM, Rick Harrison wrote: >>>> Hi Richard, >>>> >>>> The iPod Touch 5th Generation and earlier down to I believe 3rd generation >>>> all have cameras and video capability. >>>> >>>> Why would I as a user want a one trick pony for all of that money >>>> for a new device when a simple app that would run under iOS would >>>> be sufficient? (Especially if I already own said iDevice.) You are also >>>> asking people to trust ?Jailbroken? technology with your app along with >>>> the possible security holes as well. >>>> >>>> I think you may be shooting yourself in the marketing foot with the route >>>> you are trying to go. It is certainly a more expensive route from a >>>> developmental standpoint too. >>>> >>>> Just my 2 cents. I hope it helps. >>>> >>>> Rick >>>> >>>> >>>> >>>> >>>> On Aug 25, 2014, at 12:22 PM, Richard Miller wrote: >>>> >>>>> Need the iPhone 5s camera. >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From Wow at together.net Mon Aug 25 15:30:51 2014 From: Wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 15:30:51 -0400 Subject: iPhone kiosk In-Reply-To: <9B1764C5-CECF-41A0-8E1C-F5787C486525@all-auctions.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> <53FB7026.3050206@together.net> <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> <53FB7D67.4010608@together.net> <9B1764C5-CECF-41A0-8E1C-F5787C486525@all-auctions.com> Message-ID: <1D5D4FE4-8C55-4FF5-9057-B55F7E5E610D@together.net> The slo-mo mode of the phone works really well. If you want to see regular playback of a video, you can record at 30 fps. There is no point in recording at 120 fps to see regular playback, as it will look identical to a recording made at 30 fps. The only reason to record at 120 fps is to see slow motion playback. A $1000 annual cost for our device is a small fraction of what it earns the owner of the device. Richard Sent from my iPhone > On Aug 25, 2014, at 3:10 PM, Rick Harrison wrote: > > Hi Richard, > > So, the person you sell your device to will have to > sign up for the Verizon/AT&T phone contract which > will reveal the fact that there is indeed an Apple iPhone > involved in the product? (Isn?t the 2 year contract about $2,000 total?) > > If the product is not concealing the iPhone, then again, why would I > as a user want such a high end price wise one trick pony iPhone device? > > Is the playback of the Slo-Mo at 30fps then since it is billed as being at 1/4 speed playback? > Not having said device in my possession this is a somewhat interesting feature. > (I?m curious as to why Apple doesn?t allow normal video recording at 120fps as an option.) > > Thanks, > > Rick > > >> On Aug 25, 2014, at 2:16 PM, Richard Miller wrote: >> >> Hi Rick, >> >> https://www.apple.com/iphone-5s/camera/ >> >> I own it and use the 120 fps slo-mo feature regularly. >> >> This is not a contract-free arrangement. It's a conventional purchase of an iPhone from Verizon with monthly payments. >> >> There's no attempt to conceal the phone. >> >> Why would Apple care what we do with the phone? We're not advertising any aspect of the business as an "Apple-driven product'. >> >> No problem with you playing Devil's advocate :) I appreciate it. >> >> Our business model is not price-sensitive. It is quality-sensitive. >> >> Richard >> >> >> >> >>> On 8/25/14, 2:02 PM, Rick Harrison wrote: >>> Hi Richard, >>> >>> http://www.apple.com/iphone-5s/specs/ >>> >>> I only see 30fps recording and 60fps for playback for this device. (iPhone 5s.) >>> Where are you getting 120fps technical information for this? >>> >>> >>> Here?s the 5th Generation iPod Touch specs too. >>> >>> http://www.apple.com/ipod-touch/specs.html >>> >>> >>> So as I understand things now, you are hoping to >>> use a contract free iPhone 5s strictly for the video >>> camera and video display capabilities so that you >>> can make it the center of some other hardware >>> type device (perhaps a sports helmet camera or >>> something similar.) Base price just for the iPhone >>> $649. (Before any markup by you.) You will also >>> be trying to conceal the fact that the iPhone is the >>> centerpiece technology for the device. >>> >>> Someone on the internet will probably do a take apart >>> of your device and when they publish the fact that >>> the iPhone is the center piece of the device, Apple, Inc. >>> will probably set it?s legal department loose on you >>> and tell you to at least seize and desist your >>> operations or the manufacture of your device. >>> (They will spout some licensing issue no doubt.) >>> >>> (Please understand I?m trying to play Devil?s Advocate >>> here to save you the potential legal hassles in advance.) >>> >>> It would probably be cheaper for you to just build your >>> device from scratch as a prototype and then take it >>> to a manufacturer to actually put the device together. >>> (You avoid all the trouble with Apple, Inc. that way.) >>> >>> I hope this is somewhat helpful to you. >>> >>> Rick >>> >>> >>> >>> >>> >>> >>> >>> >>>> On Aug 25, 2014, at 1:19 PM, Richard Miller wrote: >>>> >>>> This is used in a kiosk. The user never sees the phone and doesn't even know the kiosk is powered by it. >>>> >>>> I need the 120 fps only available in the 5s. >>>> >>>> >>>> >>>>> On 8/25/14, 12:55 PM, Rick Harrison wrote: >>>>> Hi Richard, >>>>> >>>>> The iPod Touch 5th Generation and earlier down to I believe 3rd generation >>>>> all have cameras and video capability. >>>>> >>>>> Why would I as a user want a one trick pony for all of that money >>>>> for a new device when a simple app that would run under iOS would >>>>> be sufficient? (Especially if I already own said iDevice.) You are also >>>>> asking people to trust ?Jailbroken? technology with your app along with >>>>> the possible security holes as well. >>>>> >>>>> I think you may be shooting yourself in the marketing foot with the route >>>>> you are trying to go. It is certainly a more expensive route from a >>>>> developmental standpoint too. >>>>> >>>>> Just my 2 cents. I hope it helps. >>>>> >>>>> Rick >>>>> >>>>> >>>>> >>>>> >>>>>> On Aug 25, 2014, at 12:22 PM, Richard Miller wrote: >>>>>> >>>>>> Need the iPhone 5s camera. >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at sorcery-ltd.co.uk Mon Aug 25 15:31:38 2014 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Mon, 25 Aug 2014 12:31:38 -0700 Subject: iPhone kiosk In-Reply-To: <53FB3E16.9010502@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> Message-ID: <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> Jailbreaking is a pain - do you really need it? I ask because iOS has a kiosk mode - look up "Guided Access". If you have to jailbreak you always get new devices with the latest firmware and then have to wait for someone to create a new jailbreak. If you retain control/ownership of the devices then you can use an enterprise developer account for production and manage updates with a Mobile Device/Application Management solution - MDM can also trigger "single app mode" (not sure how this is different from Guided Access) remotely. There are third party solutions and Apple provides a basic free one (called Profile Manager) that ships as part of OS X Server (which you can have a copy of for free with an iOS developer account). Updating apps by simply downloading a new stackfile is entirely doable in an iOS device - as stated by others, it's just against the app store rules. That doesn't let you update LiveCode itself though, in case you ever need that. I think the key consideration around updates is how the app will get updated if it is always running. For that I think you probably need a MDM solution so you can release the device from single app mode, update it and put it back into single app mode. Of course the devil is in the details but I recommend looking into all of the legitimate solutions before going down the jailbreak route. -- Mark Wilcox mark at sorcery-ltd.co.uk On Mon, Aug 25, 2014, at 06:45 AM, Richard Miller wrote: > Hoping someone here knows the answer to this. I realize it's an unusual > situation. > > I am setting up a jail-broken iPhone with a LC app. This phone will be > set to boot directly into the LC app. The phone will only ever be used > for this one purpose. Think of it as an iPhone kiosk. Users will not be > able to access any functions on the phone outside of the app. > > Once I have completed all the development work on the first phone, I > want to clone this phone to other iPhones so that each is an exact copy. > Is that possible? Can I create an iTunes backup of the first phone and > then use that backup to "restore" it to new iPhones? > > Second question is in regards to distributing and updating the app. > > The app itself is not to be sold through the App Store. My business > model is based on distributing these iPhones (with the app > pre-installed). Again, the phone will never be used for any purpose > outside of my app. The phone will not be used to make calls, but it does > need to access the internet. Most importantly, my app needs to be kept > updated. Is there some way to automatically update the app (even through > a jail-broken means)? I imagine larger corporations have exclusive apps > that are not distributed publicly and are kept updated. How does that > work? > > Thanks, > Richard Miller > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Mon Aug 25 15:49:06 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 25 Aug 2014 21:49:06 +0200 Subject: Window manager plugin? In-Reply-To: References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> Message-ID: <53FB9332.4020803@economy-x-talk.com> John, Here's my complete solution: on mouseUp put item 1 of the screenLoc & comma & round(item 2 of the screenLoc / 3) into myLoc askAt "Hello","Write something",myLoc if it is not empty then answerAt "You wrote:" && the result,myLoc,"Yep","Nope" end if put the result end mouseUp on answerAt theMessage,theLoc put "answer information" && quote & theMessage & quote && "with" & space into myScript if the paramCount is 2 then put quote & "OK" & quote after myScript else put quote & param(3) & quote after myScript repeat with x = 4 to the paramCount put space & "or" && quote & param(x) & quote after myScript end repeat end if set the loc of the templateStack to theLoc set the vis of the templateStack to false create stack "Place Holder" set the defaultStack to "Place Holder" do myScript delete stack "Place Holder" return it end answerAt on askAt theMessage,theDefault,theLoc put "ask question" && quote & theMessage & quote && "with" && quote & theDefault & quote into myScript set the loc of the templateStack to theLoc set the vis of the templateStack to false create stack "Place Holder" set the defaultStack to "Place Holder" do myScript delete stack "Place Holder" return it end askAt The advantage of this approach is that it only depends on the ask and answer stacks and still works if the lockMessages has been set to true. It would need some adjustments if you want to use unicode or HTML. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/23/2014 13:07, Mark Schonewille wrote: > Hi John, > > No, but that should be easy. There are several ways to do this. For example, create an invisible stack, set its location to the location where you want the answer dialog. Set the defaultStack to this stack and execute the ask or answer command. There may be more elegant ways. > > set the topleft of the templateStack to 0,32 > set the vis of the templateStack to false > create stack "place holder" > set the defaultStack to it > answer "bla" > put it into myAnswer > delete stack Place Holder" > > This should work on windows and probably also on Mac, but on Mac I almost always use ask/answer as sheet. > > -- > Kind regards, > > Mark Schonewille > Economy-x-Talk > Http://economy-x-talk.com > > Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com > > > Op 23 aug. 2014 om 02:50 heeft JB het volgende geschreven: > >> Hi Mark, >> >> Will that let you position the ask and answer dialogs? >> >> John Balgenorth >> >> From B.Cornaz at gmx.net Mon Aug 25 15:51:22 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Mon, 25 Aug 2014 21:51:22 +0200 Subject: Speed Message-ID: <40E60F39-1C7F-4256-A139-5AA7E0F4F55F@gmx.net> > But I think it quite a pity (to put it mildly) that LC 6.xx is so much > slower thank 5.5. Geoff wrote : Could it be the unicode implementation? Agreed, that would be unfortunate. It would be nice to have a text setting for fields. I talked about this just a couple of hours ago with my brother Claudi. he suspected also the unicode implementation. Nice idea to have a text setting for fields. Cheers, Beat From wow at together.net Mon Aug 25 15:55:28 2014 From: wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 15:55:28 -0400 Subject: iPhone kiosk In-Reply-To: <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> Message-ID: <53FB94B0.8090508@together.net> Jailbreaking is a pain, but I see no way around it. We use a custom hardware add-on that can only communicate to the iPhone if it is jailbroken. As far as jailbreaking new devices is concerned, the idea is to maintain a cloned image of an earlier jailbroken device and then restore that image to all new iPhones... overwriting any new OS upgrades it may have shipped with. We're not concerned about having access to typical new iOS upgrades. If a new OS comes out that has a significant new feature in it for us, we'd have to wait to use that feature until a jailbreak was available. But that wait doesn't effect our ongoing business. Richard On 8/25/14, 3:31 PM, Mark Wilcox wrote: > Jailbreaking is a pain - do you really need it? I ask because iOS has a > kiosk mode - look up "Guided Access". If you have to jailbreak you > always get new devices with the latest firmware and then have to wait > for someone to create a new jailbreak. > > If you retain control/ownership of the devices then you can use an > enterprise developer account for production and manage updates with a > Mobile Device/Application Management solution - MDM can also trigger > "single app mode" (not sure how this is different from Guided Access) > remotely. There are third party solutions and Apple provides a basic > free one (called Profile Manager) that ships as part of OS X Server > (which you can have a copy of for free with an iOS developer account). > > Updating apps by simply downloading a new stackfile is entirely doable > in an iOS device - as stated by others, it's just against the app store > rules. That doesn't let you update LiveCode itself though, in case you > ever need that. > > I think the key consideration around updates is how the app will get > updated if it is always running. For that I think you probably need a > MDM solution so you can release the device from single app mode, update > it and put it back into single app mode. > > Of course the devil is in the details but I recommend looking into all > of the legitimate solutions before going down the jailbreak route. > From B.Cornaz at gmx.net Mon Aug 25 15:56:47 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Mon, 25 Aug 2014 21:56:47 +0200 Subject: Speed Message-ID: <4B39C549-523F-48DA-8722-8CAA9FF05917@gmx.net> Geoff Canyon wrote: > On Mon, Aug 25, 2014 at 6:21 AM, Beat Cornaz wrote: > >> But I think it quite a pity (to put it mildly) that LC 6.xx is so much >> slower thank 5.5. > > > Could it be the unicode implementation? Agreed, that would be unfortunate. > It would be nice to have a text setting for fields. Richard wrote : Not likely, as the "just works" Unicode implementation is only in v7. Has anyone filed a bug report against this? The speed difference is enough that it if fixed may help offset performance degradation as a part of the Unicode implementation. And since it predates the Unicode rollout, I'd wager it can indeed be fixed back to something closer to the v5.5.3 levels. And if not, would at least be nice to know why. -- I hadn't read your post before answering. So unicode should not be it. I hope it can be fixed. I cannot file a bug report myself at the moment, as I am experiencing very strange time issues with My LC 6.6.2 version (just opening a menu from the main menu sometimes takes like 8 seconds). So I need to sort that out before coming with a serious bug report. All the best, Beat From harrison at all-auctions.com Mon Aug 25 16:05:56 2014 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 25 Aug 2014 16:05:56 -0400 Subject: iPhone kiosk In-Reply-To: <1D5D4FE4-8C55-4FF5-9057-B55F7E5E610D@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> <53FB7026.3050206@together.net> <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> <53FB7D67.4010608@together.net> <9B1764C5-CECF-41A0-8E1C-F5787C486525@all-auctions.com> <1D5D4FE4-8C55-4FF5-9057-B55F7E5E610D@together.net> Message-ID: Hi Richard, Yes, I understand the 120fps thing but some marketing people were touting 120fps as being the best for totally unnoticeable flicker especially for 3D type application viewing etc. It?s overkill for the human eye under most circumstances. Since your buyers will know that it is an iPhone with a one trick app that you are providing, it really doesn?t make any sense to have the device jailbroken. Give them all of the functionality of the device and just tell them which app to run. You avoid all of the pitfalls of jailbreaking the phones and for updating the app. (No point to not allowing users to use the other functions of the iPhone that they paid good money for.) Without knowing more about your project to understand why you believe that your device is going to earn the owner lots of extra cash, I really can?t give anymore suggestions. Hope the discussion was helpful to you guys in some way. Good luck! Rick On Aug 25, 2014, at 3:30 PM, Richard Miller wrote: > The slo-mo mode of the phone works really well. If you want to see regular playback of a video, you can record at 30 fps. There is no point in recording at 120 fps to see regular playback, as it will look identical to a recording made at 30 fps. The only reason to record at 120 fps is to see slow motion playback. > > A $1000 annual cost for our device is a small fraction of what it earns the owner of the device. > > Richard > > > > Sent from my iPhone > >> On Aug 25, 2014, at 3:10 PM, Rick Harrison wrote: >> >> Hi Richard, >> >> So, the person you sell your device to will have to >> sign up for the Verizon/AT&T phone contract which >> will reveal the fact that there is indeed an Apple iPhone >> involved in the product? (Isn?t the 2 year contract about $2,000 total?) >> >> If the product is not concealing the iPhone, then again, why would I >> as a user want such a high end price wise one trick pony iPhone device? >> >> Is the playback of the Slo-Mo at 30fps then since it is billed as being at 1/4 speed playback? >> Not having said device in my possession this is a somewhat interesting feature. >> (I?m curious as to why Apple doesn?t allow normal video recording at 120fps as an option.) >> >> Thanks, >> >> Rick >> >> >>> On Aug 25, 2014, at 2:16 PM, Richard Miller wrote: >>> >>> Hi Rick, >>> >>> https://www.apple.com/iphone-5s/camera/ >>> >>> I own it and use the 120 fps slo-mo feature regularly. >>> >>> This is not a contract-free arrangement. It's a conventional purchase of an iPhone from Verizon with monthly payments. >>> >>> There's no attempt to conceal the phone. >>> >>> Why would Apple care what we do with the phone? We're not advertising any aspect of the business as an "Apple-driven product'. >>> >>> No problem with you playing Devil's advocate :) I appreciate it. >>> >>> Our business model is not price-sensitive. It is quality-sensitive. >>> >>> Richard >>> >>> >>> >>> >>>> On 8/25/14, 2:02 PM, Rick Harrison wrote: >>>> Hi Richard, >>>> >>>> http://www.apple.com/iphone-5s/specs/ >>>> >>>> I only see 30fps recording and 60fps for playback for this device. (iPhone 5s.) >>>> Where are you getting 120fps technical information for this? >>>> >>>> >>>> Here?s the 5th Generation iPod Touch specs too. >>>> >>>> http://www.apple.com/ipod-touch/specs.html >>>> >>>> >>>> So as I understand things now, you are hoping to >>>> use a contract free iPhone 5s strictly for the video >>>> camera and video display capabilities so that you >>>> can make it the center of some other hardware >>>> type device (perhaps a sports helmet camera or >>>> something similar.) Base price just for the iPhone >>>> $649. (Before any markup by you.) You will also >>>> be trying to conceal the fact that the iPhone is the >>>> centerpiece technology for the device. >>>> >>>> Someone on the internet will probably do a take apart >>>> of your device and when they publish the fact that >>>> the iPhone is the center piece of the device, Apple, Inc. >>>> will probably set it?s legal department loose on you >>>> and tell you to at least seize and desist your >>>> operations or the manufacture of your device. >>>> (They will spout some licensing issue no doubt.) >>>> >>>> (Please understand I?m trying to play Devil?s Advocate >>>> here to save you the potential legal hassles in advance.) >>>> >>>> It would probably be cheaper for you to just build your >>>> device from scratch as a prototype and then take it >>>> to a manufacturer to actually put the device together. >>>> (You avoid all the trouble with Apple, Inc. that way.) >>>> >>>> I hope this is somewhat helpful to you. >>>> >>>> Rick >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>> On Aug 25, 2014, at 1:19 PM, Richard Miller wrote: >>>>> >>>>> This is used in a kiosk. The user never sees the phone and doesn't even know the kiosk is powered by it. >>>>> >>>>> I need the 120 fps only available in the 5s. >>>>> >>>>> >>>>> >>>>>> On 8/25/14, 12:55 PM, Rick Harrison wrote: >>>>>> Hi Richard, >>>>>> >>>>>> The iPod Touch 5th Generation and earlier down to I believe 3rd generation >>>>>> all have cameras and video capability. >>>>>> >>>>>> Why would I as a user want a one trick pony for all of that money >>>>>> for a new device when a simple app that would run under iOS would >>>>>> be sufficient? (Especially if I already own said iDevice.) You are also >>>>>> asking people to trust ?Jailbroken? technology with your app along with >>>>>> the possible security holes as well. >>>>>> >>>>>> I think you may be shooting yourself in the marketing foot with the route >>>>>> you are trying to go. It is certainly a more expensive route from a >>>>>> developmental standpoint too. >>>>>> >>>>>> Just my 2 cents. I hope it helps. >>>>>> >>>>>> Rick >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> On Aug 25, 2014, at 12:22 PM, Richard Miller wrote: >>>>>>> >>>>>>> Need the iPhone 5s camera. >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From B.Cornaz at gmx.net Mon Aug 25 16:14:15 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Mon, 25 Aug 2014 22:14:15 +0200 Subject: Speed Message-ID: <9F5583B5-3FBD-4788-BD87-278FFA266C17@gmx.net> Now for the permutations. Geoff, great. Your script is by far the fastest. Almost 10 times faster than my own script which comes second. I could improve a little bit even on your script with the suggestion of Kay. -- Kay wrote : I obtained a 10% speed increase by changing this: repeat with n = 3 to 10 to this: put "3,4,5,6,7,8,9,10" into nList repeat for each item n in nList -- Geoff, you mentioned that I would not be to hard to expand the script beyond 10 elements. I been trying, but no dice yet. Any pointers? I also tried to implement a fast way to permutate elements which contain duplicates (like 00112) This would give only 30 distinct permutations i.s.o. 120. Of course, I could run the script and replace all the 1s with 0s, all the 2's with 1's, etc. and then delete the duplicates. But if I could delete duplicates much earlier on, it would be much faster. I think I know where to delete the duplicates in the script, but cannot get yet your script running by inputting a list like "0,0,1,1,2" ( or 00112 ) and use the trick Kay suggested. It works if I rework N to a list like "01234". I will sleep over it :-) Thanks a lot Geoff, Beat From charles at buchwald.ca Mon Aug 25 16:33:28 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Mon, 25 Aug 2014 15:33:28 -0500 Subject: iPhone kiosk In-Reply-To: <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> Message-ID: Thanks, Mark. I'd heard about MDM, but this points me in the right direction for more. I don't have Richard's needs for the custom hardware add-on, so this sounds like it will work for my project. I'll post here as I find out more. Cheers, - Charles On 25 Aug 2014, at 2:31 PM, Mark Wilcox wrote: > Jailbreaking is a pain - do you really need it? I ask because iOS has a > kiosk mode - look up "Guided Access". If you have to jailbreak you > always get new devices with the latest firmware and then have to wait > for someone to create a new jailbreak. > > If you retain control/ownership of the devices then you can use an > enterprise developer account for production and manage updates with a > Mobile Device/Application Management solution - MDM can also trigger > "single app mode" (not sure how this is different from Guided Access) > remotely. There are third party solutions and Apple provides a basic > free one (called Profile Manager) that ships as part of OS X Server > (which you can have a copy of for free with an iOS developer account). > > Updating apps by simply downloading a new stackfile is entirely doable > in an iOS device - as stated by others, it's just against the app store > rules. That doesn't let you update LiveCode itself though, in case you > ever need that. > > I think the key consideration around updates is how the app will get > updated if it is always running. For that I think you probably need a > MDM solution so you can release the device from single app mode, update > it and put it back into single app mode. > > Of course the devil is in the details but I recommend looking into all > of the legitimate solutions before going down the jailbreak route. > > -- > Mark Wilcox > mark at sorcery-ltd.co.uk > > On Mon, Aug 25, 2014, at 06:45 AM, Richard Miller wrote: >> Hoping someone here knows the answer to this. I realize it's an unusual >> situation. >> >> I am setting up a jail-broken iPhone with a LC app. This phone will be >> set to boot directly into the LC app. The phone will only ever be used >> for this one purpose. Think of it as an iPhone kiosk. Users will not be >> able to access any functions on the phone outside of the app. >> >> Once I have completed all the development work on the first phone, I >> want to clone this phone to other iPhones so that each is an exact copy. >> Is that possible? Can I create an iTunes backup of the first phone and >> then use that backup to "restore" it to new iPhones? >> >> Second question is in regards to distributing and updating the app. >> >> The app itself is not to be sold through the App Store. My business >> model is based on distributing these iPhones (with the app >> pre-installed). Again, the phone will never be used for any purpose >> outside of my app. The phone will not be used to make calls, but it does >> need to access the internet. Most importantly, my app needs to be kept >> updated. Is there some way to automatically update the app (even through >> a jail-broken means)? I imagine larger corporations have exclusive apps >> that are not distributed publicly and are kept updated. How does that >> work? >> >> Thanks, >> Richard Miller >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From wow at together.net Mon Aug 25 16:33:47 2014 From: wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 16:33:47 -0400 Subject: iPhone kiosk In-Reply-To: References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> <53FB7026.3050206@together.net> <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> <53FB7D67.4010608@together.net> <9B1764C5-CECF-41A0-8E1C-F5787C486525@all-auctions.com> <1D5D4FE4-8C55-4FF5-9057-B55F7E5E610D@together.net> Message-ID: <53FB9DAB.9000606@together.net> 120 fps is vital if you are analyzing any high-speed movement one frame at a time. It has nothing to do with flicker. If I sell you an ATM machine for your store, do you care one bit what kind of hardware is in it? Do you care that the PC in it can surf the net or do graphics work? You just want a machine that does its stated task, costs you $50/month, and makes a lot more than that through customer use. On 8/25/14, 4:05 PM, Rick Harrison wrote: > Hi Richard, > > Yes, I understand the 120fps thing but some marketing people were > touting 120fps as being the best for totally unnoticeable flicker especially > for 3D type application viewing etc. It?s overkill for the human eye > under most circumstances. > > Since your buyers will know that it is an iPhone with a one trick app > that you are providing, it really doesn?t make any sense to have the > device jailbroken. Give them all of the functionality of the device and > just tell them which app to run. You avoid all of the pitfalls of jailbreaking > the phones and for updating the app. (No point to not allowing users > to use the other functions of the iPhone that they paid good money for.) > > Without knowing more about your project to understand why you believe > that your device is going to earn the owner lots of extra cash, I really > can?t give anymore suggestions. > > Hope the discussion was helpful to you guys in some way. > > Good luck! > > Rick > > > On Aug 25, 2014, at 3:30 PM, Richard Miller wrote: > >> The slo-mo mode of the phone works really well. If you want to see regular playback of a video, you can record at 30 fps. There is no point in recording at 120 fps to see regular playback, as it will look identical to a recording made at 30 fps. The only reason to record at 120 fps is to see slow motion playback. >> >> A $1000 annual cost for our device is a small fraction of what it earns the owner of the device. >> >> Richard >> >> >> >> Sent from my iPhone >> >>> On Aug 25, 2014, at 3:10 PM, Rick Harrison wrote: >>> >>> Hi Richard, >>> >>> So, the person you sell your device to will have to >>> sign up for the Verizon/AT&T phone contract which >>> will reveal the fact that there is indeed an Apple iPhone >>> involved in the product? (Isn?t the 2 year contract about $2,000 total?) >>> >>> If the product is not concealing the iPhone, then again, why would I >>> as a user want such a high end price wise one trick pony iPhone device? >>> >>> Is the playback of the Slo-Mo at 30fps then since it is billed as being at 1/4 speed playback? >>> Not having said device in my possession this is a somewhat interesting feature. >>> (I?m curious as to why Apple doesn?t allow normal video recording at 120fps as an option.) >>> >>> Thanks, >>> >>> Rick >>> From rdimola at evergreeninfo.net Mon Aug 25 16:39:17 2014 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 25 Aug 2014 16:39:17 -0400 Subject: iPhone kiosk In-Reply-To: References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> <53FB7026.3050206@together.net> <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> <53FB7D67.4010608@together.net> <9B1764C5-CECF-41A0-8E1C-F5787C486525@all-auctions.com> <1D5D4FE4-8C55-4FF5-9057-B55F7E5E610D@together.net> Message-ID: <003601cfc0a4$a490b430$edb21c90$@net> 35mm film is shot at 24 FPS with each frame shown twice when projected for an effective frame rate of 48 fps. No flickering was due to the 48 fps frame rate and temporal anti-aliasing of the 24 fps source. High frame rates are not always cost/data effective. NTSC also did temporal anti-aliasing with 30fps displayed as 60 interlaced fields per second. There are always tricks to fool the eye and keep the presentation cost effective. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Rick Harrison Sent: Monday, August 25, 2014 4:06 PM To: How to use LiveCode Subject: Re: iPhone kiosk Hi Richard, Yes, I understand the 120fps thing but some marketing people were touting 120fps as being the best for totally unnoticeable flicker especially for 3D type application viewing etc. It's overkill for the human eye under most circumstances. Since your buyers will know that it is an iPhone with a one trick app that you are providing, it really doesn't make any sense to have the device jailbroken. Give them all of the functionality of the device and just tell them which app to run. You avoid all of the pitfalls of jailbreaking the phones and for updating the app. (No point to not allowing users to use the other functions of the iPhone that they paid good money for.) Without knowing more about your project to understand why you believe that your device is going to earn the owner lots of extra cash, I really can't give anymore suggestions. Hope the discussion was helpful to you guys in some way. Good luck! Rick On Aug 25, 2014, at 3:30 PM, Richard Miller wrote: > The slo-mo mode of the phone works really well. If you want to see regular playback of a video, you can record at 30 fps. There is no point in recording at 120 fps to see regular playback, as it will look identical to a recording made at 30 fps. The only reason to record at 120 fps is to see slow motion playback. > > A $1000 annual cost for our device is a small fraction of what it earns the owner of the device. > > Richard > > > > Sent from my iPhone > >> On Aug 25, 2014, at 3:10 PM, Rick Harrison wrote: >> >> Hi Richard, >> >> So, the person you sell your device to will have to sign up for the >> Verizon/AT&T phone contract which will reveal the fact that there is >> indeed an Apple iPhone involved in the product? (Isn't the 2 year >> contract about $2,000 total?) >> >> If the product is not concealing the iPhone, then again, why would I >> as a user want such a high end price wise one trick pony iPhone device? >> >> Is the playback of the Slo-Mo at 30fps then since it is billed as being at 1/4 speed playback? >> Not having said device in my possession this is a somewhat interesting feature. >> (I'm curious as to why Apple doesn't allow normal video recording at >> 120fps as an option.) >> >> Thanks, >> >> Rick >> >> >>> On Aug 25, 2014, at 2:16 PM, Richard Miller wrote: >>> >>> Hi Rick, >>> >>> https://www.apple.com/iphone-5s/camera/ >>> >>> I own it and use the 120 fps slo-mo feature regularly. >>> >>> This is not a contract-free arrangement. It's a conventional purchase of an iPhone from Verizon with monthly payments. >>> >>> There's no attempt to conceal the phone. >>> >>> Why would Apple care what we do with the phone? We're not advertising any aspect of the business as an "Apple-driven product'. >>> >>> No problem with you playing Devil's advocate :) I appreciate it. >>> >>> Our business model is not price-sensitive. It is quality-sensitive. >>> >>> Richard >>> >>> >>> >>> >>>> On 8/25/14, 2:02 PM, Rick Harrison wrote: >>>> Hi Richard, >>>> >>>> http://www.apple.com/iphone-5s/specs/ >>>> >>>> I only see 30fps recording and 60fps for playback for this device. >>>> (iPhone 5s.) Where are you getting 120fps technical information for this? >>>> >>>> >>>> Here's the 5th Generation iPod Touch specs too. >>>> >>>> http://www.apple.com/ipod-touch/specs.html >>>> >>>> >>>> So as I understand things now, you are hoping to use a contract >>>> free iPhone 5s strictly for the video camera and video display >>>> capabilities so that you can make it the center of some other >>>> hardware type device (perhaps a sports helmet camera or something >>>> similar.) Base price just for the iPhone $649. (Before any markup >>>> by you.) You will also be trying to conceal the fact that the >>>> iPhone is the centerpiece technology for the device. >>>> >>>> Someone on the internet will probably do a take apart of your >>>> device and when they publish the fact that the iPhone is the center >>>> piece of the device, Apple, Inc. >>>> will probably set it's legal department loose on you and tell you >>>> to at least seize and desist your operations or the manufacture of >>>> your device. >>>> (They will spout some licensing issue no doubt.) >>>> >>>> (Please understand I'm trying to play Devil's Advocate here to save >>>> you the potential legal hassles in advance.) >>>> >>>> It would probably be cheaper for you to just build your device from >>>> scratch as a prototype and then take it to a manufacturer to >>>> actually put the device together. >>>> (You avoid all the trouble with Apple, Inc. that way.) >>>> >>>> I hope this is somewhat helpful to you. >>>> >>>> Rick >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>> On Aug 25, 2014, at 1:19 PM, Richard Miller wrote: >>>>> >>>>> This is used in a kiosk. The user never sees the phone and doesn't even know the kiosk is powered by it. >>>>> >>>>> I need the 120 fps only available in the 5s. >>>>> >>>>> >>>>> >>>>>> On 8/25/14, 12:55 PM, Rick Harrison wrote: >>>>>> Hi Richard, >>>>>> >>>>>> The iPod Touch 5th Generation and earlier down to I believe 3rd >>>>>> generation all have cameras and video capability. >>>>>> >>>>>> Why would I as a user want a one trick pony for all of that money >>>>>> for a new device when a simple app that would run under iOS would >>>>>> be sufficient? (Especially if I already own said iDevice.) You >>>>>> are also asking people to trust "Jailbroken" technology with your >>>>>> app along with the possible security holes as well. >>>>>> >>>>>> I think you may be shooting yourself in the marketing foot with >>>>>> the route you are trying to go. It is certainly a more expensive >>>>>> route from a developmental standpoint too. >>>>>> >>>>>> Just my 2 cents. I hope it helps. >>>>>> >>>>>> Rick >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> On Aug 25, 2014, at 12:22 PM, Richard Miller wrote: >>>>>>> >>>>>>> Need the iPhone 5s camera. >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Mon Aug 25 16:41:40 2014 From: coiin at verizon.net (Colin Holgate) Date: Mon, 25 Aug 2014 16:41:40 -0400 Subject: iPhone kiosk In-Reply-To: <53FB9DAB.9000606@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <53FB62C4.4070301@together.net> <7A796B1B-761D-4FD1-921B-F9BF555ADA23@all-auctions.com> <53FB7026.3050206@together.net> <1CE503A5-AAE9-43D8-9B29-167ECAD47AF6@all-auctions.com> <53FB7D67.4010608@together.net> <9B1764C5-CECF-41A0-8E1C-F5787C486525@all-auctions.com> <1D5D4FE4-8C55-4FF5-9057-B55F7E5E610D@together.net> <53FB9DAB.9000606@together.net> Message-ID: <90D246B7-3740-416F-8FFD-949F07BF4315@verizon.net> Sounds like a golf shop. On Aug 25, 2014, at 4:33 PM, Richard Miller wrote: > If I sell you an ATM machine for your store, do you care one bit what kind of hardware is in it? Do you care that the PC in it can surf the net or do graphics work? You just want a machine that does its stated task, costs you $50/month, and makes a lot more than that through customer use. From sundown at pacifier.com Mon Aug 25 17:05:07 2014 From: sundown at pacifier.com (JB) Date: Mon, 25 Aug 2014 14:05:07 -0700 Subject: Open App/file Message-ID: <22140080-4032-488B-87D5-5BFE3041E241@pacifier.com> Is there a way to send a double click to a file or application if I have the file path? Or any other code that would allow me to open a file or application? I do not mean I want a binary read/write I just want the file or app to open like it does when I click on it in the finder. John Balgenorth From coiin at verizon.net Mon Aug 25 17:13:02 2014 From: coiin at verizon.net (Colin Holgate) Date: Mon, 25 Aug 2014 17:13:02 -0400 Subject: Open App/file In-Reply-To: <22140080-4032-488B-87D5-5BFE3041E241@pacifier.com> References: <22140080-4032-488B-87D5-5BFE3041E241@pacifier.com> Message-ID: <69457997-4FBC-48EA-9D3E-95B1FB9D588C@verizon.net> launch [document path] with [application path] should work, shouldn?t it? Read the Dictionary entry for other variations. From mark at sorcery-ltd.co.uk Mon Aug 25 17:26:58 2014 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Mon, 25 Aug 2014 14:26:58 -0700 Subject: iPhone kiosk In-Reply-To: <53FB94B0.8090508@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> <53FB94B0.8090508@together.net> Message-ID: <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> I'm no jailbreaking expert but as I understood it, the issue is not that you can't get new versions of iOS quickly but that you can't install older firmware to a device unless you have already jailbroken it. You can't overwrite legitimate firmware with anything but newer legitimate firmware because the firmware itself includes version and signature checking. What's so special about this custom hardware that the device needs to be jailbroken? Why can't it go down the MFi route? -- Mark Wilcox mark at sorcery-ltd.co.uk On Mon, Aug 25, 2014, at 12:55 PM, Richard Miller wrote: > Jailbreaking is a pain, but I see no way around it. We use a custom > hardware add-on that can only communicate to the iPhone if it is > jailbroken. > > As far as jailbreaking new devices is concerned, the idea is to maintain > a cloned image of an earlier jailbroken device and then restore that > image to all new iPhones... overwriting any new OS upgrades it may have > shipped with. > > We're not concerned about having access to typical new iOS upgrades. If > a new OS comes out that has a significant new feature in it for us, we'd > have to wait to use that feature until a jailbreak was available. But > that wait doesn't effect our ongoing business. > > Richard > > From sundown at pacifier.com Mon Aug 25 17:34:51 2014 From: sundown at pacifier.com (JB) Date: Mon, 25 Aug 2014 14:34:51 -0700 Subject: Open App/file In-Reply-To: <69457997-4FBC-48EA-9D3E-95B1FB9D588C@verizon.net> References: <22140080-4032-488B-87D5-5BFE3041E241@pacifier.com> <69457997-4FBC-48EA-9D3E-95B1FB9D588C@verizon.net> Message-ID: Thank you! I was looking in the dictionary for open and couldn?t find it. This will do the job. Thanks. John Balgenorth On Aug 25, 2014, at 2:13 PM, Colin Holgate wrote: > launch [document path] with [application path] should work, shouldn?t it? > > Read the Dictionary entry for other variations. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From wow at together.net Mon Aug 25 17:49:43 2014 From: wow at together.net (Richard Miller) Date: Mon, 25 Aug 2014 17:49:43 -0400 Subject: iPhone kiosk In-Reply-To: <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> <53FB94B0.8090508@together.net> <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> Message-ID: <53FBAF77.7040007@together.net> The hardware device controls an iPhone remotely through bluetooth... not a process Apple supports. This isn't a game controller. It is complete control of the phone. On 8/25/14, 5:26 PM, Mark Wilcox wrote: > I'm no jailbreaking expert but as I understood it, the issue is not that > you can't get new versions of iOS quickly but that you can't install > older firmware to a device unless you have already jailbroken it. You > can't overwrite legitimate firmware with anything but newer legitimate > firmware because the firmware itself includes version and signature > checking. > > What's so special about this custom hardware that the device needs to be > jailbroken? Why can't it go down the MFi route? > From gcanyon at gmail.com Mon Aug 25 18:32:41 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 25 Aug 2014 17:32:41 -0500 Subject: Speed In-Reply-To: <9F5583B5-3FBD-4788-BD87-278FFA266C17@gmx.net> References: <9F5583B5-3FBD-4788-BD87-278FFA266C17@gmx.net> Message-ID: This routine will permute to any depth that memory/time allows. It has the added benefit of using characters starting from any ASCII value you like, allowing you to work around what you want to eventually permute using the PLines routine. It also has the speed benefit you get from using items rather than numbers, which I think is because it avoids casting numbers to strings (as much). I'll think about the permutations with duplicates aspect. function P2 N,B -- N is the depth to permute -- B is the ASCII value to start from -- so P2(1,49) returns 21 cr 12 -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr 657 cr 567 if N = 0 then return numToChar(B) & cr put P2(N - 1,B) into T add B to N repeat with i = B to N - 1 put T into T2 replace numToChar(i) with numToChar(N) in T2 replace cr with numToChar(i) & cr in T2 put T2 after R end repeat replace cr with numToChar(N) & cr in T return R & T end P2 On Mon, Aug 25, 2014 at 3:14 PM, Beat Cornaz wrote: > Now for the permutations. > > Geoff, great. Your script is by far the fastest. Almost 10 times faster > than my own script which comes second. > I could improve a little bit even on your script with the suggestion of > Kay. > > -- > Kay wrote : > > I obtained a 10% speed increase by changing this: > > repeat with n = 3 to 10 > > to this: > > put "3,4,5,6,7,8,9,10" into nList > repeat for each item n in nList > -- > > Geoff, you mentioned that I would not be to hard to expand the script > beyond 10 elements. I been trying, but no dice yet. Any pointers? > > I also tried to implement a fast way to permutate elements which contain > duplicates (like 00112) > This would give only 30 distinct permutations i.s.o. 120. Of course, I > could run the script and replace all the 1s with 0s, all the 2's with 1's, > etc. and then delete the duplicates. > But if I could delete duplicates much earlier on, it would be much faster. > I think I know where to delete the duplicates in the script, but cannot > get yet your script running by inputting a list like "0,0,1,1,2" ( or 00112 > ) and use the trick Kay suggested. > It works if I rework N to a list like "01234". I will sleep over it :-) > > Thanks a lot Geoff, > > Beat > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From drdada at gmail.com Mon Aug 25 20:42:38 2014 From: drdada at gmail.com (Jonathan Cooper) Date: Tue, 26 Aug 2014 10:42:38 +1000 Subject: Sending bulk emails In-Reply-To: References: Message-ID: When I worked at the Art Gallery of New South Wales (Sydney, Australia), I researched a number of bulk email providers and concluded that the best one was Campaign Monitor (https://www.campaignmonitor.com/). And we were VERY happy with them. They have an excellent tool for reducing both the spam rate and the bounce rate. The interface is very easy to use and it's very fast. There's also a feature which is probably more cool than useful: real-time map view. After you click "send" (although you can also set it to send at a specified date/time in the future) you can view a world map that shows when each recipient opens his or her email with (approximate) location and name. It was fairly pricey for us (the subscriber list for the AGNSW's main e-newsletter numbers in the hundreds of thousands) but it was well worth it. No, I don't get any commission. ;-) Regards, Jonathan Cooper (02) 4365 4809 ? 0403 358 941 www.doctordada.com On 26/08/2014, at 3:19 AM, use-livecode-request at lists.runrev.com wrote: > Hi list, > Here's my problem : one of our apps is used by different > clients of ours for various tasks, one of them being sending > bulk emails weekly to their own customers. > The number of recipients for each emailing can vary between > 800 to 2500. > So far we used a php script on our server; this script receives > a notification from each client's app, selects all customers with > emails according to specific parameters, and then sends the > email with the specific domain name of each client as sender. > Everything works fine, except that more and more often emails > end up in the recipients' spam box. It actually depends on the > ISP but it gets more & more frequent. > I tried different variations of the email header content, from > various advices I found on various forums but it doesn't help... > > So I was wondering how you guys would handle the problem. > I guess the solution is using a 3rd party web based service. > Is there any such service that you would recommand ? > > Thanks in advance for any tips and help. > jbv From mark at sorcery-ltd.co.uk Tue Aug 26 04:42:39 2014 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Tue, 26 Aug 2014 01:42:39 -0700 Subject: iPhone kiosk In-Reply-To: <53FBAF77.7040007@together.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> <53FB94B0.8090508@together.net> <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> <53FBAF77.7040007@together.net> Message-ID: <1409042559.2687943.156795141.39B1F275@webmail.messagingengine.com> Obviously I don't know the details but if you're going to run in a single app mode, then complete control of the phone while your app is running is possible without a jailbreak - it's just control whilst in Springboard and other people's apps you need to jailbreak for. -- Mark Wilcox mark at sorcery-ltd.co.uk On Mon, Aug 25, 2014, at 02:49 PM, Richard Miller wrote: > The hardware device controls an iPhone remotely through bluetooth... not > a process Apple supports. This isn't a game controller. It is complete > control of the phone. > > > On 8/25/14, 5:26 PM, Mark Wilcox wrote: > > I'm no jailbreaking expert but as I understood it, the issue is not that > > you can't get new versions of iOS quickly but that you can't install > > older firmware to a device unless you have already jailbroken it. You > > can't overwrite legitimate firmware with anything but newer legitimate > > firmware because the firmware itself includes version and signature > > checking. > > > > What's so special about this custom hardware that the device needs to be > > jailbroken? Why can't it go down the MFi route? > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacques.hausser at unil.ch Tue Aug 26 05:53:09 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Tue, 26 Aug 2014 11:53:09 +0200 Subject: colorized scripts In-Reply-To: <1409042559.2687943.156795141.39B1F275@webmail.messagingengine.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> <53FB94B0.8090508@together.net> <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> <53FBAF77.7040007@together.net> <1409042559.2687943.156795141.39B1F275@webmail.messagingengine.com> Message-ID: <07FF60C3-47C9-466D-A528-D6B8B900DDCC@unil.ch> I want a button to automatically put the script of any control in a field, showing the script editor's colors... I'm probably completely dumb, but I didn't find the trick. Thanks for every hint! Jacques From pmbrig at gmail.com Tue Aug 26 07:33:13 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 26 Aug 2014 07:33:13 -0400 Subject: Window manager plugin? In-Reply-To: <53FB9332.4020803@economy-x-talk.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <53FB9332.4020803@economy-x-talk.com> Message-ID: <33BB530D-D57A-4AFE-A3F1-2F7907072DA0@gmail.com> Nice. Don't forget to reset the templatestack. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Aug 25, 2014, at 3:49 PM, Mark Schonewille wrote: > John, > > Here's my complete solution: > > on mouseUp > put item 1 of the screenLoc & comma & round(item 2 of the screenLoc / 3) into myLoc > askAt "Hello","Write something",myLoc > if it is not empty then > answerAt "You wrote:" && the result,myLoc,"Yep","Nope" > end if > put the result > end mouseUp > > on answerAt theMessage,theLoc > put "answer information" && quote & theMessage & quote && "with" & space into myScript > if the paramCount is 2 then > put quote & "OK" & quote after myScript > else > put quote & param(3) & quote after myScript > repeat with x = 4 to the paramCount > put space & "or" && quote & param(x) & quote after myScript > end repeat > end if > set the loc of the templateStack to theLoc > set the vis of the templateStack to false > create stack "Place Holder" > set the defaultStack to "Place Holder" > do myScript > delete stack "Place Holder" > return it > end answerAt > > on askAt theMessage,theDefault,theLoc > put "ask question" && quote & theMessage & quote && "with" && quote & theDefault & quote into myScript > set the loc of the templateStack to theLoc > set the vis of the templateStack to false > create stack "Place Holder" > set the defaultStack to "Place Holder" > do myScript > delete stack "Place Holder" > return it > end askAt > > The advantage of this approach is that it only depends on the ask and answer stacks and still works if the lockMessages has been set to true. It would need some adjustments if you want to use unicode or HTML. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > On 8/23/2014 13:07, Mark Schonewille wrote: >> Hi John, >> >> No, but that should be easy. There are several ways to do this. For example, create an invisible stack, set its location to the location where you want the answer dialog. Set the defaultStack to this stack and execute the ask or answer command. There may be more elegant ways. >> >> set the topleft of the templateStack to 0,32 >> set the vis of the templateStack to false >> create stack "place holder" >> set the defaultStack to it >> answer "bla" >> put it into myAnswer >> delete stack Place Holder" >> >> This should work on windows and probably also on Mac, but on Mac I almost always use ask/answer as sheet. >> >> -- >> Kind regards, >> >> Mark Schonewille >> Economy-x-Talk >> Http://economy-x-talk.com >> >> Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com >> >> >> Op 23 aug. 2014 om 02:50 heeft JB het volgende geschreven: >> >>> Hi Mark, >>> >>> Will that let you position the ask and answer dialogs? >>> >>> John Balgenorth >>> >>> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Tue Aug 26 07:53:19 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 26 Aug 2014 07:53:19 -0400 Subject: colorized scripts In-Reply-To: <07FF60C3-47C9-466D-A528-D6B8B900DDCC@unil.ch> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> <53FB94B0.8090508@together.net> <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> <53FBAF77.7040007@together.net> <1409042559.2687943.156795141.39B1F275@webmail.messagingengine.com> <07FF60C3-47C9-466D-A528-D6B8B900DDCC@unil.ch> Message-ID: <8AA58CE0-0A97-44A9-9F50-D93750043487@gmail.com> Mark Weider came up with this trick, which I use in my library stack (a set of utility handlers, click on the name of a handler and the script is displayed in a field, properly colorized). put thisScript into fld "script" -- now colorize script -- thanks to Mark Wieder, of the useRev listserv put the number of lines of field "script" into tNum send "sePrefInit" to stack "revNewScriptEditor" send "revSEColorize thisScript,default" to stack "revNewScriptEditor" _internal script colorize line 1 to tNum of field "script" -- how he figured this out, I don't know -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Aug 26, 2014, at 5:53 AM, Jacques Hausser wrote: > I want a button to automatically put the script of any control in a field, showing the script editor's colors... I'm probably completely dumb, but I didn't find the trick. > Thanks for every hint! > > Jacques > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Tue Aug 26 08:01:42 2014 From: sundown at pacifier.com (JB) Date: Tue, 26 Aug 2014 05:01:42 -0700 Subject: Window manager plugin? In-Reply-To: <53FB9332.4020803@economy-x-talk.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <53FB9332.4020803@economy-x-talk.com> Message-ID: Thank you very much, Mark!! That is really nice! John Balgenorth On Aug 25, 2014, at 12:49 PM, Mark Schonewille wrote: > John, > > Here's my complete solution: > > on mouseUp > put item 1 of the screenLoc & comma & round(item 2 of the screenLoc / 3) into myLoc > askAt "Hello","Write something",myLoc > if it is not empty then > answerAt "You wrote:" && the result,myLoc,"Yep","Nope" > end if > put the result > end mouseUp > > on answerAt theMessage,theLoc > put "answer information" && quote & theMessage & quote && "with" & space into myScript > if the paramCount is 2 then > put quote & "OK" & quote after myScript > else > put quote & param(3) & quote after myScript > repeat with x = 4 to the paramCount > put space & "or" && quote & param(x) & quote after myScript > end repeat > end if > set the loc of the templateStack to theLoc > set the vis of the templateStack to false > create stack "Place Holder" > set the defaultStack to "Place Holder" > do myScript > delete stack "Place Holder" > return it > end answerAt > > on askAt theMessage,theDefault,theLoc > put "ask question" && quote & theMessage & quote && "with" && quote & theDefault & quote into myScript > set the loc of the templateStack to theLoc > set the vis of the templateStack to false > create stack "Place Holder" > set the defaultStack to "Place Holder" > do myScript > delete stack "Place Holder" > return it > end askAt > > The advantage of this approach is that it only depends on the ask and answer stacks and still works if the lockMessages has been set to true. It would need some adjustments if you want to use unicode or HTML. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > On 8/23/2014 13:07, Mark Schonewille wrote: >> Hi John, >> >> No, but that should be easy. There are several ways to do this. For example, create an invisible stack, set its location to the location where you want the answer dialog. Set the defaultStack to this stack and execute the ask or answer command. There may be more elegant ways. >> >> set the topleft of the templateStack to 0,32 >> set the vis of the templateStack to false >> create stack "place holder" >> set the defaultStack to it >> answer "bla" >> put it into myAnswer >> delete stack Place Holder" >> >> This should work on windows and probably also on Mac, but on Mac I almost always use ask/answer as sheet. >> >> -- >> Kind regards, >> >> Mark Schonewille >> Economy-x-Talk >> Http://economy-x-talk.com >> >> Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com >> >> >> Op 23 aug. 2014 om 02:50 heeft JB het volgende geschreven: >> >>> Hi Mark, >>> >>> Will that let you position the ask and answer dialogs? >>> >>> John Balgenorth >>> >>> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sims at ezpzapps.com Tue Aug 26 08:12:10 2014 From: sims at ezpzapps.com (Jim sims) Date: Tue, 26 Aug 2014 13:12:10 +0100 Subject: iOS and effective working screenRect Message-ID: When I add the following to my iOS app I get the same results (0,0,640,704) for each. Not helpful. How do i get the loc or top of the keyboard (in 3.5, 4.0, and iPad sizes) so i can properly move fields out of the way of the keyboard? on keyboardActivated answer "keyboard activated" & cr & the effective working screenRect end keyboardActivated on keyboardDeactivated answer "keyboard deactivated" & cr & the effective working screenRect end keyboardDeactivated From m.schonewille at economy-x-talk.com Tue Aug 26 09:08:36 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 26 Aug 2014 15:08:36 +0200 Subject: Window manager plugin? In-Reply-To: <33BB530D-D57A-4AFE-A3F1-2F7907072DA0@gmail.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <53FB9332.4020803@economy-x-talk.com> <33BB530D-D57A-4AFE-A3F1-2F7907072DA0@gmail.com> Message-ID: <53FC86D4.4090003@economy-x-talk.com> Hi Peter, You're right. I thought of it, but forgot to add it. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/26/2014 13:33, Peter M. Brigham wrote: > Nice. Don't forget to reset the templatestack. > > -- Peter From jacques.hausser at unil.ch Tue Aug 26 09:19:24 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Tue, 26 Aug 2014 15:19:24 +0200 Subject: colorized scripts In-Reply-To: <8AA58CE0-0A97-44A9-9F50-D93750043487@gmail.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> <53FB94B0.8090508@together.net> <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> <53FBAF77.7040007@together.net> <1409042559.2687943.156795141.39B1F275@webmail.messagingengine.com> <07FF60C3-47C9-466D-A528-D6B8B900DDCC@unil.ch> <8AA58CE0-0A97-44A9-9F50-D93750043487@gmail.com> Message-ID: <3A81805A-F590-4E13-A721-83E80A8E39EA@unil.ch> Thanks, Peter, As I'm checking version 7.10 DP, your solution is not working... I rummaged into the "revNewScriptEditor" stack and found that "revSEColorize" doesn't exist anymore (or it's hidden somewhere else). But it's even simpler! here the script of my button: on mouseUp put the script of button "TestButton" into fld "FScript" _internal script colorize char 1 to (the number of chars of field "FScript") of field "FScript" end mouseUp ... works perfectly ! (although I strictly don't know what an "_internal script" is). I guess it is not usable on a standalone. Jacques Le 26 ao?t 2014 ? 13:53, Peter M. Brigham a ?crit : > Mark Weider came up with this trick, which I use in my library stack (a set of utility handlers, click on the name of a handler and the script is displayed in a field, properly colorized). > > put thisScript into fld "script" > -- now colorize script > -- thanks to Mark Wieder, of the useRev listserv > put the number of lines of field "script" into tNum > send "sePrefInit" to stack "revNewScriptEditor" > send "revSEColorize thisScript,default" to stack "revNewScriptEditor" > _internal script colorize line 1 to tNum of field "script" > -- how he figured this out, I don't know > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > On Aug 26, 2014, at 5:53 AM, Jacques Hausser wrote: > >> I want a button to automatically put the script of any control in a field, showing the script editor's colors... I'm probably completely dumb, but I didn't find the trick. >> Thanks for every hint! >> >> Jacques >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From B.Cornaz at gmx.net Tue Aug 26 09:42:37 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Tue, 26 Aug 2014 15:42:37 +0200 Subject: Speed Message-ID: <96425449-6832-4F7B-8EBA-6433D1147A81@gmx.net> Works like a charm, Geoff. Great way of tackling the thing, very original. function P2 N,B -- N is the depth to permute -- B is the ASCII value to start from -- so P2(1,49) returns 21 cr 12 -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr 657 cr 567 if N = 0 then return numToChar(B) & cr put P2(N - 1,B) into T add B to N repeat with i = B to N - 1 put T into T2 replace numToChar(i) with numToChar(N) in T2 replace cr with numToChar(i) & cr in T2 put T2 after R end repeat replace cr with numToChar(N) & cr in T return R & T end P2 If I input B =97 I get the permutations in abcd etc. which I often use, so really great If I input B= 48 I get the permutations in numbers 01234 etc. which I also often use. Beyond 9 I can easily make items and replace the ascii chars with 10, 11 etc. The DUPLICATES : I've been working on it to try to include this functionality into your script, but no dice yet. It is not really obvious at first sight. I'll continue to work on it though. If you or anyone has a bright idea, I'd love to hear it. I must say that I am really charmed by this solution of Geoff, it's something I'd never would have thought of. Hats off ! Cheers, Beat From pmbrig at gmail.com Tue Aug 26 10:10:35 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 26 Aug 2014 10:10:35 -0400 Subject: colorized scripts In-Reply-To: <3A81805A-F590-4E13-A721-83E80A8E39EA@unil.ch> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> <53FB94B0.8090508@together.net> <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> <53FBAF77.7040007@together.net> <1409042559.2687943.156795141.39B1F275@webmail.messagingengine.com> <07FF60C3-47C9-466D-A528-D6B8B900DDCC@unil.ch> <8AA58CE0-0A97-44A9-9F50-D93750043487@gmail.com> <3A81805A-F590-4E13-A721-83E80A8E39EA@unil.ch> Message-ID: On Aug 26, 2014, at 9:19 AM, Jacques Hausser wrote: > As I'm checking version 7.10 DP, your solution is not working... I rummaged into the "revNewScriptEditor" stack and found that "revSEColorize" doesn't exist anymore (or it's hidden somewhere else). > But it's even simpler! here the script of my button: > > on mouseUp > put the script of button "TestButton" into fld "FScript" > _internal script colorize char 1 to (the number of chars of field "FScript") of field "FScript" > end mouseUp > > ... works perfectly ! (although I strictly don't know what an "_internal script" is). I guess it is not usable on a standalone. Hmm. Turns out that your simplified script works fine for me in LC 5.5.1 too -- the "sePrefInit" and "revSEColorize" commands seem to be unnecessary anyway. Interestingly, if I try to do this: _internal script colorize char 1 to -1 of field "FScript" it gives an error. Apparently whatever handles an "_internal" script can't handle anything but the original old chunk expressions. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pmbrig at gmail.com Tue Aug 26 10:19:32 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 26 Aug 2014 10:19:32 -0400 Subject: Speed In-Reply-To: <96425449-6832-4F7B-8EBA-6433D1147A81@gmx.net> References: <96425449-6832-4F7B-8EBA-6433D1147A81@gmx.net> Message-ID: <439DA61F-9E9F-4AD9-B883-78E18FF36D77@gmail.com> On Aug 26, 2014, at 9:42 AM, Beat Cornaz wrote: > Works like a charm, Geoff. Great way of tackling the thing, very original. > > function P2 N,B > -- N is the depth to permute > -- B is the ASCII value to start from > -- so P2(1,49) returns 21 cr 12 > -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr 657 cr 567 > if N = 0 then return numToChar(B) & cr > put P2(N - 1,B) into T > add B to N > repeat with i = B to N - 1 > put T into T2 > replace numToChar(i) with numToChar(N) in T2 > replace cr with numToChar(i) & cr in T2 > put T2 after R > end repeat > replace cr with numToChar(N) & cr in T > return R & T > end P2 > > If I input B =97 I get the permutations in abcd etc. which I often use, so really great > If I input B= 48 I get the permutations in numbers 01234 etc. which I also often use. > Beyond 9 I can easily make items and replace the ascii chars with 10, 11 etc. > > The DUPLICATES : > I've been working on it to try to include this functionality into your script, but no dice yet. It is not really obvious at first sight. > I'll continue to work on it though. If you or anyone has a bright idea, I'd love to hear it. I don't know but it seems that the way to do this would be to work on permuting the character positions rather than the characters themselves. Perhaps using an array, charAtLoc[n], applying Geoff's algorithm to 1 though n, then replacing each number with charAtLoc[n] afterwards. I suspect it would be lots slower, though. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From johnpatten at me.com Tue Aug 26 12:43:13 2014 From: johnpatten at me.com (JOHN PATTEN) Date: Tue, 26 Aug 2014 09:43:13 -0700 Subject: Sending Terminal Command (Python) Using LiveCode? Message-ID: <4B48C6D8-A08A-40C8-83EE-30CC1082EB35@me.com> Hi All, I manage a lot of accounts in our Google Apps for Education deployment. I have used LiveCode to automate a lot of the csv creation for this process. I use a Terminal application (GAM) created in Python to do some of this too. I would like to be able to call the GAM Python scripts via LiveCode. A typical GAM python terminal command would be something like: python gam.py create user jdoe at student.email.k12.ca.us firstname John lastname Doe password 111111 change password off Could I call this Python script directly from LiveCode? Something like: on mouseUp shell(python gam.py create user jdoe at student.sylvan.k12.ca.us firstname John lastname Doe password 111111 change password off end mouseUp This seems too easy. I?m guessing I would have to point Livecode to the proper directory (path) to the Python app. etc. Is calling python scripts possible through LiveCode? ?in need of an example :) Thank you! John Patten SUSD From jacque at hyperactivesw.com Tue Aug 26 13:55:11 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 26 Aug 2014 12:55:11 -0500 Subject: Window manager plugin? In-Reply-To: References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <53FB9332.4020803@economy-x-talk.com> Message-ID: <53FCC9FF.7040900@hyperactivesw.com> On 8/26/2014, 7:01 AM, JB wrote: > Thank you very much, Mark!! > > That is really nice! Unfortunately, I couldn't get Mark's answer and ask handlers to work on Mac. On Windows the default position is at the location of the default stack, which is why it works there. On Mac, it looks like you'll need to hide the window and move it after it is displayed, or use Scott Rossi's suspendStack solution. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pmbrig at gmail.com Tue Aug 26 13:57:54 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 26 Aug 2014 13:57:54 -0400 Subject: Speed In-Reply-To: <96425449-6832-4F7B-8EBA-6433D1147A81@gmx.net> References: <96425449-6832-4F7B-8EBA-6433D1147A81@gmx.net> Message-ID: A followup on how to handle duplicate characters in the permuting algorithm. The following seems to work, not sure how it will scale. tString can contain any characters -- duplicates, digits, spaces, whatever. function permute tString -- returns all the permutations in the string tString put (the length of tString) into N repeat with c = 1 to N put char c of tString into charAtLoc[c] end repeat subtract 1 from N put P2(N,49) into permList repeat with c = 1 to N+1 replace c with charAtLoc[c] in permList end repeat return permList end permute function P2 N,B -- N is the depth to permute -- B is the ASCII value to start from -- so P2(1,49) returns 21 cr 12 -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr 657 cr 567 if N = 0 then return numToChar(B) & cr put P2(N - 1,B) into T add B to N repeat with i = B to N - 1 put T into T2 replace numToChar(i) with numToChar(N) in T2 replace cr with numToChar(i) & cr in T2 put T2 after R end repeat replace cr with numToChar(N) & cr in T return R & T end P2 -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pmbrig at gmail.com Tue Aug 26 14:14:41 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 26 Aug 2014 14:14:41 -0400 Subject: permuting a string (was Re: Speed) In-Reply-To: <96425449-6832-4F7B-8EBA-6433D1147A81@gmx.net> References: <96425449-6832-4F7B-8EBA-6433D1147A81@gmx.net> Message-ID: A tune-up on the earlier solution to listing permutations of a string. Obviously, no need to load an array with the values of the characters, just use "char c of tString". Also, if tString contains duplicate letters then there will be duplicate entries in the output, so those should be stripped before returning the result of the function. Here's the streamlined script: function permute tString put (the length of tString) into N if N > 9 then answer "Can only permute up to 9 characters." exit permute end if subtract 1 from N put P2(N,49) into permList repeat with c = 1 to N+1 replace c with char c of tString in permList end repeat noDupes permList return permList end permute function P2 N,B -- N is the depth to permute -- B is the ASCII value to start from -- so P2(1,49) returns 21 cr 12 -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr 657 cr 567 if N = 0 then return numToChar(B) & cr put P2(N - 1,B) into T add B to N repeat with i = B to N - 1 put T into T2 replace numToChar(i) with numToChar(N) in T2 replace cr with numToChar(i) & cr in T2 put T2 after R end repeat replace cr with numToChar(N) & cr in T return R & T end P2 on noDupes @tList,tDelim -- thanks to Peter Hayworth of the use-LC mailing list -- NOTE: tList is referenced, so the original list will be changed. -- strips duplicate (and empty) lines/items from a list -- if tDelim = empty then looks first for the presence of cr in tList, -- if found, defaults to cr as the delimiter -- if no cr found, looks for the presence of comma in tList, -- if found, defaults to comma as the delimiter -- if neither found, exits without changing tList -- (user should have specified another delim) -- use it as follows, eg: -- assuming theList starts as a comma-delimited list, call: -- noDupes theList,comma or just noDupes theList -- following which theList will contain the original list -- stripped of empty and duplicate items -- note: the order of the list will likely be changed, may require re-sorting -- note: the split command is inherently case-sensitive -- (irrespective of the value of the caseSensitive property), -- so "Chuck" and "chuck" will not be considered duplicates -- if you need case insensitive, use the noDupes() function instead if tDelim = empty then if cr is in tList then put cr into tDelim else if comma is in tList then put comma into tDelim else answer "noDupes: no delimiter specified" as sheet exit noDupes end if end if replace tDelim with cr in tList filter tList without empty split tList by cr and cr put the keys of tList into tList replace cr with tDelim in tList end noDupes -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pmbrig at gmail.com Tue Aug 26 14:17:48 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 26 Aug 2014 14:17:48 -0400 Subject: Population puzzle In-Reply-To: References: <23AF2370-8161-458A-91C6-22153C15F895@gmail.com> Message-ID: <9CBF31A0-1289-41A8-A874-F02E4630159C@gmail.com> I haven't tried to actually write script for this, but it occurs to me that you could first find all the sets of numbers whose last digits add up to a multiple of 10 (or whose last 2 digits add up to a multiple of 100, etc), then iterate through a much smaller group of sets to test for their total sum. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Aug 25, 2014, at 2:54 PM, Michael Doub wrote: > Well, I have been trying to come up with a logical approach since I posted the puzzle and I still don?t have a solution. You all may not have a logic based approach, but at least you got a solution. Right now the straight forward approach with some randomness thrown in looks pretty good to me! > > -= Mike > > > On Aug 25, 2014, at 5:41 AM, Terry Judd wrote: > >> Ditto for me, and mine was messier than Scott?s as well. Still it kept me >> occupied while I was eating my lunch :) >> >> Terry... >> >> On 25/08/2014 5:27 pm, "Scott Rossi" wrote: >> >>> I imagine my approach would be faster if it followed ANY logic. :-) >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> On 8/24/14 11:38 PM, "Kay C Lan" wrote: >>> >>>> I imagine Terry & Scott, your approach would on average be faster if >>>> you followed the same logic. From cszasz at me.com Tue Aug 26 14:30:12 2014 From: cszasz at me.com (Charles Szasz) Date: Tue, 26 Aug 2014 12:30:12 -0600 Subject: Open App/file Message-ID: Colin, What is the path when a PDF document is with your app? Sent from my iPad From coiin at verizon.net Tue Aug 26 14:49:26 2014 From: coiin at verizon.net (Colin Holgate) Date: Tue, 26 Aug 2014 14:49:26 -0400 Subject: Open App/file In-Reply-To: References: Message-ID: <5CD0B127-A117-42FD-B1FC-751D90ABEAB4@verizon.net> Look in the dictionary for specialFolderPath. On Aug 26, 2014, at 2:30 PM, Charles Szasz wrote: > Colin, > > What is the path when a PDF document is with your app? > > Sent from my iPad > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Tue Aug 26 14:50:50 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 26 Aug 2014 20:50:50 +0200 Subject: Window manager plugin? In-Reply-To: <53FCC9FF.7040900@hyperactivesw.com> References: <32951A52-88EF-44D6-9B7A-670C48821547@buchwald.ca> <0C0C13AA-9DE4-4D09-9D46-1DDAE6063AE5@economy-x-talk.com> <641296A9-4B24-4B52-A4CF-B986FCF10EA6@pacifier.com> <53FB9332.4020803@economy-x-talk.com> <53FCC9FF.7040900@hyperactivesw.com> Message-ID: <53FCD70A.7090106@economy-x-talk.com> Jacque, It is true that it doesn't work on Mac, but I never needed something like this on Mac. I made this specifically for Windows. On Mac I use "as sheet" most of the time. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/26/2014 19:55, J. Landman Gay wrote: > On 8/26/2014, 7:01 AM, JB wrote: >> Thank you very much, Mark!! >> >> That is really nice! > > Unfortunately, I couldn't get Mark's answer and ask handlers to work on > Mac. On Windows the default position is at the location of the default > stack, which is why it works there. On Mac, it looks like you'll need to > hide the window and move it after it is displayed, or use Scott Rossi's > suspendStack solution. > From CFORD at mailbox.sc.edu Tue Aug 26 16:58:53 2014 From: CFORD at mailbox.sc.edu (FORD JR., CURT) Date: Tue, 26 Aug 2014 20:58:53 +0000 Subject: mp3 files not playing on Windows Message-ID: <4AC93F8FE7AA27449837C912ED6305211BDED9C8@CAE145EMBP04.ds.sc.edu> A client's customer (using Windows) had ordered two modules of a series. Both come with their own set of mp3 files in a folder named "media." The two modules use the same code for figuring path names and playing sounds. We've had no problems in either module with other customers, but this one reports that sounds play properly in one of the modules, but not the other. He has QuickTime installed, and we've ruled out non-standard characters in the path to the sound files. What seems strange is that the sounds play in one module, but not another. I suggested he move the problematic module to the same location as the one that works as expected, but it doesn't seem to have helped. Anybody have any ideas of what else to check? Thanks! Curt From m.schonewille at economy-x-talk.com Tue Aug 26 17:05:33 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 26 Aug 2014 23:05:33 +0200 Subject: mp3 files not playing on Windows In-Reply-To: <4AC93F8FE7AA27449837C912ED6305211BDED9C8@CAE145EMBP04.ds.sc.edu> References: <4AC93F8FE7AA27449837C912ED6305211BDED9C8@CAE145EMBP04.ds.sc.edu> Message-ID: <53FCF69D.60108@economy-x-talk.com> Hi Curt, The first thing I would check is the sound encoding of every file. Are the failing MP3 files encoded differently from the working MP3 files? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/26/2014 22:58, FORD JR., CURT wrote: > A client's customer (using Windows) had ordered two modules of a series. Both come with their own set of mp3 files in a folder named "media." The two modules use the same code for figuring path names and playing sounds. We've had no problems in either module with other customers, but this one reports that sounds play properly in one of the modules, but not the other. > > He has QuickTime installed, and we've ruled out non-standard characters in the path to the sound files. What seems strange is that the sounds play in one module, but not another. I suggested he move the problematic module to the same location as the one that works as expected, but it doesn't seem to have helped. > > Anybody have any ideas of what else to check? > > Thanks! > > Curt > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From cford at mailbox.sc.edu Tue Aug 26 17:26:49 2014 From: cford at mailbox.sc.edu (Curt Ford) Date: Tue, 26 Aug 2014 17:26:49 -0400 Subject: mp3 files not playing on Windows Message-ID: <7F758634-649E-47A0-B929-4E698A395E4C@mailbox.sc.edu> Hi Mark, Thanks - they are both 16bit; the one that works is 22.1 kHz, bitrate 56 kbps, the ones that don't work are 44.1 kHz, 128 kbps. But we've delivered many other modules with files at 44.1/128 with no issues. Could that cause a problem on this one computer, or is there something else in the encoding that would be worth looking at? thanks! Curt From ambassador at fourthworld.com Tue Aug 26 17:40:17 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 26 Aug 2014 14:40:17 -0700 Subject: ._! Message-ID: <53FCFEC1.5070600@fourthworld.com> When copying files from a Mac to a volume formatted with NTFS or other Windows-compatible format, for each Mac file it also creates a second file with the same name but with "._" prepended to it. E.g., this: MyFile1.txt MyFile2.txt ...becomes: ._MyFile1.txt ._MyFile2.txt MyFile1.txt MyFile2.txt This is course annoying, and worse, for many people I run into it's also confusing as well. Strangely, the otherwise-usability-conscious Apple has provided no Preferences setting in the Finder for this sad behavior. Anyone here know if there's some command-line option we can set to tell the Mac to stop doing that? I used to write scripts to remove them after the fact, but it would be much simpler/saner to just turn that off altogether. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacques.hausser at unil.ch Tue Aug 26 17:43:38 2014 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Tue, 26 Aug 2014 23:43:38 +0200 Subject: colorized scripts In-Reply-To: References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> <53FB94B0.8090508@together.net> <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> <53FBAF77.7040007@together.net> <1409042559.2687943.156795141.39B1F275@webmail.messagingengine.com> <07FF60C3-47C9-466D-A528-D6B8B900DDCC@unil.ch> <8AA58CE0-0A97-44A9-9F50-D93750043487@gmail.com> <3A81805A-F590-4E13-A721-83E80A8E39EA@unil.ch> Message-ID: <9396C8FF-849C-4AB0-A031-8D720297D0F9@unil.ch> Le 26 ao?t 2014 ? 16:10, Peter M. Brigham a ?crit : > On Aug 26, 2014, at 9:19 AM, Jacques Hausser wrote: > >> As I'm checking version 7.10 DP, your solution is not working... I rummaged into the "revNewScriptEditor" stack and found that "revSEColorize" doesn't exist anymore (or it's hidden somewhere else). >> But it's even simpler! here the script of my button: >> >> on mouseUp >> put the script of button "TestButton" into fld "FScript" >> _internal script colorize char 1 to (the number of chars of field "FScript") of field "FScript" >> end mouseUp >> >> ... works perfectly ! (although I strictly don't know what an "_internal script" is). I guess it is not usable on a standalone. > > Hmm. Turns out that your simplified script works fine for me in LC 5.5.1 too -- the "sePrefInit" and "revSEColorize" commands seem to be unnecessary anyway. Interestingly, if I try to do this: > _internal script colorize char 1 to -1 of field "FScript" > it gives an error. Apparently whatever handles an "_internal" script can't handle anything but the original old chunk expressions. Yes - and it is another syntax allowing to colorize some lines only (perhaps useful in the frame of the script editor): _internal script colorize line na to nb of field "FScript". To colorize the whole script : _internal script colorize line nfirst to nlast of field "FScript" and if you want to colorize one line only, it musst be: _internal script colorize line na to na of field "FScript" (_internal script colorize line na of field "FScript" gives an error.) An example of what I call fossil scripts: they could easily be modified to comply whith the usual syntax, but as they work and are "_internal" anyway... Still thank you to put my nose into Ui stacks ! Jacques From prothero at earthednet.org Tue Aug 26 18:24:14 2014 From: prothero at earthednet.org (William Prothero) Date: Tue, 26 Aug 2014 15:24:14 -0700 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> Message-ID: <5E186B1C-821D-4FA4-892B-5096A8C5EB67@earthednet.org> Charles: Your function misses a special case. If the negative number is an integer, you wouldn?t want to subtract 1 from trunc(theNegativeNumber). Best, Bill On Aug 23, 2014, at 1:22 PM, Charles E Buchwald wrote: > Jacquie, I tested my script before I posted it, and it works for negative integers. > Colin, just for fun, I've consolidated mine to one line. > Richmond, maybe you'd like to add "ceiling" to your sample stack? > > function Floor pValue > if pValue < 0 then return trunc(pValue) - 1 else return trunc(pValue) > end Floor > > I know this is trivial, but here's a ceiling function, just to kind of fill out the thread: > > function Ceiling pValue > if pValue < 0 then return trunc(pValue) else return trunc(pValue) + 1 > end Ceiling > > P.S. I suppose this is the kind of situation where the Open Language thing would be very nice. If the bunch of us have created a new, valuable and effective, if esoteric, function, then it would be nice to include it somewhere so that it doesn't have to be recreated every few months... Or maybe it should be en enhancement request? I guess I'm not clear on that. > > > On 23 Aug 2014, at 2:03 PM, J. Landman Gay wrote: > >> Charles' function works except for negative integers. I think it needs to check for that. > > -- > Charles E. Buchwald > CEO/Director General > Museografica Digital > http://digital.museografica.com > > Mac OSX 10.9.4, LC 6.6.2 Commercial > > LC Developer Tools: http://buchwald.ca/developer-tools/ > > Email Notice: http://wp.me/P3aT4d-33 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Tue Aug 26 19:01:43 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 26 Aug 2014 23:01:43 +0000 (UTC) Subject: =?utf-8?b?Ll8h?= References: <53FCFEC1.5070600@fourthworld.com> Message-ID: Richard Gaskin writes: > When copying files from a Mac to a volume formatted with NTFS or other > Windows-compatible format, for each Mac file it also creates a second > file with the same name but with "._" prepended to it. Those are Finder information files. The OSX Finder would cease to work without them. I'm sure at some point someone thought this was a good idea. > I used to write scripts to remove them after the fact, but it would be > much simpler/saner to just turn that off altogether. Removing them by script afterwards is the way to go. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Tue Aug 26 19:30:00 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 26 Aug 2014 16:30:00 -0700 Subject: ._! In-Reply-To: References: Message-ID: <53FD1878.70201@fourthworld.com> Mark Wieder wrote: > Richard Gaskin writes: > >> When copying files from a Mac to a volume formatted with NTFS or other >> Windows-compatible format, for each Mac file it also creates a second >> file with the same name but with "._" prepended to it. > > Those are Finder information files. The OSX Finder would cease to work > without them. I'm sure at some point someone thought this was a good idea. Thanks, but I'm familiar with them. I just want to avoid them. >> I used to write scripts to remove them after the fact, but it would be >> much simpler/saner to just turn that off altogether. > > Removing them by script afterwards is the way to go. Yes, that's what I used to do, but it seems kinda silly to have to remember to run a script each time I want to unmout a volume. Worse, a lot of my clients and friends have issues with this as well - should they all install some sort of tool and remember to run the tool before unmounting a simple USB disk? Searching around the web, it seems Apple's answer is "Yes"; I haven't yet been able to find even a system config addressable through the command line for this, and certainly not something in Finder prefs where it should rightly be. I hope I'm mistaken, but haven't yet found any way to turn this off.... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From paulhibbert at mac.com Tue Aug 26 19:43:57 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Tue, 26 Aug 2014 16:43:57 -0700 Subject: ._! In-Reply-To: <53FCFEC1.5070600@fourthworld.com> References: <53FCFEC1.5070600@fourthworld.com> Message-ID: <014B77B3-8D53-493B-99D0-319B915DA53E@mac.com> Richard, It seems turning off the '._*' file creation could cause problems with the Apple Finder and some MS Office apps. After a quick search I found an old entry on Mac OS X Hints (MacWorld forum) that states "using the 'mv' and 'cp' commands (in Terminal) will move or copy files without the ._ files.", so maybe you could use a shell command to do the copying. I just tried a quick test and although I'm not seeing any '._*' files, I noticed that using the 'cp' command doesn't copy the '.DS_Store' file so it may be worth a try to see if avoids copying the '._*' files too. Article link:- http://hints.macworld.com/article.php?story=20020217094739452 Paul On 2014-08-26, at 2:40 PM, Richard Gaskin wrote: > When copying files from a Mac to a volume formatted with NTFS or other Windows-compatible format, for each Mac file it also creates a second file with the same name but with "._" prepended to it. > > E.g., this: > > MyFile1.txt > MyFile2.txt > > ...becomes: > > ._MyFile1.txt > ._MyFile2.txt > MyFile1.txt > MyFile2.txt > > This is course annoying, and worse, for many people I run into it's also confusing as well. > > Strangely, the otherwise-usability-conscious Apple has provided no Preferences setting in the Finder for this sad behavior. > > Anyone here know if there's some command-line option we can set to tell the Mac to stop doing that? > > I used to write scripts to remove them after the fact, but it would be much simpler/saner to just turn that off altogether. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rjb at robelko.com Tue Aug 26 19:38:10 2014 From: rjb at robelko.com (Robert Brenstein) Date: Wed, 27 Aug 2014 01:38:10 +0200 Subject: =?utf-8?b?Ll8h?= In-Reply-To: References: <53FCFEC1.5070600@fourthworld.com> Message-ID: On 26.08.2014 at 23:01 Uhr +0000 Mark Wieder apparently wrote: > >> I used to write scripts to remove them after the fact, but it would be >> much simpler/saner to just turn that off altogether. > >Removing them by script afterwards is the way to go. > There is a way to tell Finder not to copy them to external volumes but I seem to have misplaced the details of achieving that. RObert From feed at smpcsupport.com Tue Aug 26 19:52:06 2014 From: feed at smpcsupport.com (RunRevPlanet) Date: Wed, 27 Aug 2014 09:52:06 +1000 Subject: [ANN] The LiveCode Lab Message-ID: <1409097126.53fd1da6b3d5e@www.server101.com> Hi, For those who aren't in either of the LiveCode groups on Facebook or don't visit the Forums, here is the announcement about "The LiveCode Lab". Are you interested in: * Starting an adventure in server-side coding today, without having to setup your own server. * Designing and creating web apps using the LiveCode language. * Experimenting and learning about server-side coding. * Making lean web apps without a framework that hides how they work. * Creating one page utilities, or complex multi-user programs. * Contributing to a LiveCode open source community while improving your skills and sharing the results of your experiments. * Editing, testing and running LiveCode handlers on any device with a web browser. A couple of links that explains more: http://thelivecodelab.com/faq.tlcl https://dl.dropboxusercontent.com/u/87533352/DownloadBranch/What-On-Earth-Is-The-LiveCode-Lab.pdf Cheers, -- Scott McDonald "Components, Controls, Tools and Resources for LiveCode" www.runrevplanet.com From ambassador at fourthworld.com Tue Aug 26 19:58:39 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 26 Aug 2014 16:58:39 -0700 Subject: ._! In-Reply-To: <014B77B3-8D53-493B-99D0-319B915DA53E@mac.com> References: <014B77B3-8D53-493B-99D0-319B915DA53E@mac.com> Message-ID: <53FD1F2F.2060700@fourthworld.com> Robert Brenstein wrote: > There is a way to tell Finder not to copy them to external volumes > but I seem to have misplaced the details of achieving that. So far I've only been able to turn up a command to stop the ._DStore files, but not the others. Paul Hibbert wrote: > It seems turning off the '._*' file creation could cause problems > with the Apple Finder and some MS Office apps. If an app depends on Mac-specific metadata or the resource fork that would be the case. But the res fork has been flagged for deprecation for more than a decade, so any dev relying on it can expect issues. For anything else, the Mac works fine with files put onto such drives from other OSes, so any risk would seem very minimal. Even so, I'm okay with the default being what it is. It just seems reasonable that there be an option for the Finder to play nice with the other 90% of the world when copying to foreign-format drives. > After a quick search I found an old entry on Mac OS X Hints (MacWorld > forum) that states "using the 'mv' and 'cp' commands Thanks. I replaced Time Machine with some rsync scripts not long ago, which also copies only what I tell it to without creating extra files. But this isn't for me, but for everyone I work with. I love rsync, but it's not the sort of thing I'd recommend to all my friends. :) If there was a setting for this, even if it was only accessible through the command line, I'd happily make a free tool to help people set it. But I just can't find such an option.... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From userev at canelasoftware.com Tue Aug 26 20:08:05 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Tue, 26 Aug 2014 17:08:05 -0700 Subject: RunRevLive 2014 Conference Mobile App by livecloud.io In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> Message-ID: <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> On Aug 23, 2014, at 11:47 AM, Colin Holgate wrote: > I installed it onto my Kindle Fire HDX. You do notice that the transitions and scrolling in the app are sluggish? Might make for a fun session, making your app run smoothly. Quick note that we have updated the RunRevLive 2014 since its release date. The app now uses native fields for comments, animation engine for swiping between features, and optimized the UI for speed where possible. Android still runs slow. But, it is better than before. We have also released the app to Google Play. Should show up in a couple hours. Stil no word from Apple on the iOS version. We want to turn around and update the iOS version once it is released to get all the new stuff in there. Till then, I will push the iOS update through TestFlight. Best regards, Mark Talluto livecloud.io canelasoftware.com From capellan2000 at gmail.com Tue Aug 26 21:05:38 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 26 Aug 2014 18:05:38 -0700 (PDT) Subject: [ANN] The LiveCode Lab In-Reply-To: <1409097126.53fd1da6b3d5e@www.server101.com> References: <1409097126.53fd1da6b3d5e@www.server101.com> Message-ID: <1409101538727-4682511.post@n4.nabble.com> Excellent! :D I just register in. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-The-LiveCode-Lab-tp4682508p4682511.html Sent from the Revolution - User mailing list archive at Nabble.com. From cszasz at me.com Tue Aug 26 21:10:19 2014 From: cszasz at me.com (Charles Szasz) Date: Tue, 26 Aug 2014 19:10:19 -0600 Subject: Open App/file Message-ID: Colin, Thanks! I will check it out. I have a PDF manual in the same folder as my app and I want to include the manual as a menu item that could open by either Acrobat Reader on Windows oryx Preview on OS X. Sent from my iPad From ambassador at fourthworld.com Tue Aug 26 22:09:02 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 26 Aug 2014 19:09:02 -0700 Subject: Should "dispatch" be extended for timers? Message-ID: <53FD3DBE.4020403@fourthworld.com> I love "dispatch", and the more I use it the more I find "send" murky. With "dispatch" params seem more natural to me: dispatch "somecommand" to tSomeObj with tArg2, tArg2 But with "send" it's less clear how params are handled - here's an example from the forums today: send clearVideo LayerAlpha, baseLayer, LayerGraphic, \ LayerAudio to me in 700 milliseconds Seems like a good guess as to how it should be used, but of course the compiler complains. So given that "dispatch" is also faster, why not use it for everything, extending it with "in" to allow timers: dispatch "somecommand" to tSomeObj with tArg2, tArg2 in 2 secs Is there some reason I've overlooked as to why "send" allows timers but "dispatch" doesn't? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From scott at tactilemedia.com Tue Aug 26 22:22:25 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 26 Aug 2014 19:22:25 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: <53FD3DBE.4020403@fourthworld.com> References: <53FD3DBE.4020403@fourthworld.com> Message-ID: Sounds like a good idea. If dispatch is already fast, a timer would just allow you to slow it down. BTW, I believe using quotes should make your message "send"-able. send "clearVideo LayerAlpha, baseLayer, LayerGraphic, LayerAudio" to me in 700 milliseconds Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/26/14 7:09 PM, "Richard Gaskin" wrote: >I love "dispatch", and the more I use it the more I find "send" murky. > >With "dispatch" params seem more natural to me: > > dispatch "somecommand" to tSomeObj with tArg2, tArg2 > >But with "send" it's less clear how params are handled - here's an >example from the forums today: > > send clearVideo LayerAlpha, baseLayer, LayerGraphic, \ > LayerAudio to me in 700 milliseconds > >Seems like a good guess as to how it should be used, but of course the >compiler complains. > >So given that "dispatch" is also faster, why not use it for everything, >extending it with "in" to allow timers: > > dispatch "somecommand" to tSomeObj with tArg2, tArg2 in 2 secs > >Is there some reason I've overlooked as to why "send" allows timers but >"dispatch" doesn't? > >-- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Tue Aug 26 22:24:41 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 26 Aug 2014 19:24:41 -0700 Subject: Sending Terminal Command (Python) Using LiveCode? In-Reply-To: <4B48C6D8-A08A-40C8-83EE-30CC1082EB35@me.com> References: <4B48C6D8-A08A-40C8-83EE-30CC1082EB35@me.com> Message-ID: <9-580746859.20140826192441@ahsoftware.net> John- Tuesday, August 26, 2014, 9:43:13 AM, you wrote: > Is calling python scripts possible through LiveCode? in need of an example :) answer folder "find the right folder" set the defaulfolder to it put shell("python test.py someargument") works for me. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From pete at lcsql.com Tue Aug 26 22:47:10 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 26 Aug 2014 19:47:10 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: <53FD3DBE.4020403@fourthworld.com> References: <53FD3DBE.4020403@fourthworld.com> Message-ID: Sounds like a great idea to me. I seem to remember that one of dispatch/send is blocking and the other isn't. Could that be a possible reason for the lack of "in" with dispatch? Pete lcSQL Software On Aug 26, 2014 7:09 PM, "Richard Gaskin" wrote: > I love "dispatch", and the more I use it the more I find "send" murky. > > With "dispatch" params seem more natural to me: > > dispatch "somecommand" to tSomeObj with tArg2, tArg2 > > But with "send" it's less clear how params are handled - here's an example > from the forums today: > > send clearVideo LayerAlpha, baseLayer, LayerGraphic, \ > LayerAudio to me in 700 milliseconds > > Seems like a good guess as to how it should be used, but of course the > compiler complains. > > So given that "dispatch" is also faster, why not use it for everything, > extending it with "in" to allow timers: > > dispatch "somecommand" to tSomeObj with tArg2, tArg2 in 2 secs > > Is there some reason I've overlooked as to why "send" allows timers but > "dispatch" doesn't? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Tue Aug 26 22:57:50 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 26 Aug 2014 19:57:50 -0700 Subject: colorized scripts In-Reply-To: <8AA58CE0-0A97-44A9-9F50-D93750043487@gmail.com> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> <53FB94B0.8090508@together.net> <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> <53FBAF77.7040007@together.net> <1409042559.2687943.156795141.39B1F275@webmail.messagingengine.com> <07FF60C3-47C9-466D-A528-D6B8B900DDCC@unil.ch> <8AA58CE0-0A97-44A9-9F50-D93750043487@gmail.com> Message-ID: <89-578757067.20140826195750@ahsoftware.net> Peter- Tuesday, August 26, 2014, 4:53:19 AM, you wrote: > Mark Weider came up with this trick, which I use in my library > stack (a set of utility handlers, click on the name of a handler and > the script is displayed in a field, properly colorized). > put thisScript into fld "script" > -- now colorize script > -- thanks to Mark Wieder, of the useRev listserv > put the number of lines of field "script" into tNum > send "sePrefInit" to stack "revNewScriptEditor" > send "revSEColorize thisScript,default" to stack "revNewScriptEditor" > _internal script colorize line 1 to tNum of field "script" > -- how he figured this out, I don't know I have no recollection of coming up with this, but if I did it, it was a result of a spelunking expedition into the script editor code. And as a side-effect of that, it may well be outdated by now. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From gcanyon at gmail.com Tue Aug 26 23:08:09 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 26 Aug 2014 23:08:09 -0400 Subject: Speed In-Reply-To: References: <96425449-6832-4F7B-8EBA-6433D1147A81@gmx.net> Message-ID: On Tue, Aug 26, 2014 at 1:57 PM, Peter M. Brigham wrote: > A followup on how to handle duplicate characters in the permuting > algorithm. The following seems to work, not sure how it will scale. tString > can contain any characters -- duplicates, digits, spaces, whatever. > I don't think this removes/avoids the duplicates that result from duplicate characters. For example, permute("abb") returns: bba bba bab abb bab abb When it should return: bba bab abb I haven't come up with any algorithm myself to do this other than to generate the first list, set the indices of an array to the results, then get the keys of the array. It would be fairly simple to do in the initial P2 routine, but wouldn't scale at all the way it should. For example, finding all 11 character permutations of "abbbbbbbbbb" should take a small fraction of a second, but would actually take close to ten seconds. From jacque at hyperactivesw.com Tue Aug 26 23:45:36 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 26 Aug 2014 22:45:36 -0500 Subject: RunRevLive 2014 Conference Mobile App by livecloud.io In-Reply-To: <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> Message-ID: <53FD5460.7010602@hyperactivesw.com> On 8/26/2014, 7:08 PM, Mark Talluto wrote: > Quick note that we have updated the RunRevLive 2014 since its release date. I was just your first Android download. I had to uninstall the one I grabbed off your site before I could download the one from the Play Store (apparently the app build number didn't change, since there was no Update option.) Now it asks me to sign in, and then tells me my user name has already been taken. Can you reset your server so I can re-log? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Aug 27 00:05:08 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 26 Aug 2014 23:05:08 -0500 Subject: colorized scripts In-Reply-To: <89-578757067.20140826195750@ahsoftware.net> References: <7B364BD2-6FE1-4110-80AE-7E4A5976D350@gmx.net> <53FB3E16.9010502@together.net> <1408995098.2500417.156589405.2BD6F807@webmail.messagingengine.com> <53FB94B0.8090508@together.net> <1409002018.2529744.156636949.2390036B@webmail.messagingengine.com> <53FBAF77.7040007@together.net> <1409042559.2687943.156795141.39B1F275@webmail.messagingengine.com> <07FF60C3-47C9-466D-A528-D6B8B900DDCC@unil.ch> <8AA58CE0-0A97-44A9-9F50-D93750043487@gmail.com> <89-578757067.20140826195750@ahsoftware.net> Message-ID: <53FD58F4.8030202@hyperactivesw.com> On 8/26/2014, 9:57 PM, Mark Wieder wrote: > Peter- > > Tuesday, August 26, 2014, 4:53:19 AM, you wrote: > >> Mark Weider came up with this trick, which I use in my library >> stack (a set of utility handlers, click on the name of a handler and >> the script is displayed in a field, properly colorized). > >> put thisScript into fld "script" >> -- now colorize script >> -- thanks to Mark Wieder, of the useRev listserv >> put the number of lines of field "script" into tNum >> send "sePrefInit" to stack "revNewScriptEditor" >> send "revSEColorize thisScript,default" to stack "revNewScriptEditor" >> _internal script colorize line 1 to tNum of field "script" >> -- how he figured this out, I don't know > > I have no recollection of coming up with this, but if I did it, it was > a result of a spelunking expedition into the script editor code. And > as a side-effect of that, it may well be outdated by now. > I believe the revSE-whatver handlers are remnants of when the script editor did the colorization by script, before the engine took it over. If it throws errors in newer versions of LC, that would be why. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dunbarx at aol.com Wed Aug 27 00:18:05 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 27 Aug 2014 00:18:05 -0400 (EDT) Subject: Should "dispatch" be extended for timers? In-Reply-To: <53FD3DBE.4020403@fourthworld.com> References: <53FD3DBE.4020403@fourthworld.com> Message-ID: <8D18FC5088E05C8-2278-34928@webmail-vd021.sysops.aol.com> Hi. "Send' can, er, send parameters as well as a command. In a button script: on mouseUp send "putArg" && random(99) && random(99) && "XYZ" to me in 5 end mouseUp on putArg var put var end putArg You get pairs of random numbers and the text as well. All parameters come across as a batch. Or you can separate in the usual way: on mouseUp send "putArg" && random(99) & "," & any char of "ABCD" to me in 5 end mouseUp on putArg var,var2 put var2 --or the first one or both end putArg Craig -----Original Message----- From: Richard Gaskin To: How to use LiveCode Sent: Tue, Aug 26, 2014 10:09 pm Subject: Should "dispatch" be extended for timers? I love "dispatch", and the more I use it the more I find "send" murky. With "dispatch" params seem more natural to me: dispatch "somecommand" to tSomeObj with tArg2, tArg2 But with "send" it's less clear how params are handled - here's an example from the forums today: send clearVideo LayerAlpha, baseLayer, LayerGraphic, \ LayerAudio to me in 700 milliseconds Seems like a good guess as to how it should be used, but of course the compiler complains. So given that "dispatch" is also faster, why not use it for everything, extending it with "in" to allow timers: dispatch "somecommand" to tSomeObj with tArg2, tArg2 in 2 secs Is there some reason I've overlooked as to why "send" allows timers but "dispatch" doesn't? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From userev at canelasoftware.com Wed Aug 27 00:49:09 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Tue, 26 Aug 2014 21:49:09 -0700 Subject: RunRevLive 2014 Conference Mobile App by livecloud.io In-Reply-To: <53FD5460.7010602@hyperactivesw.com> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> Message-ID: Hi Jacque. You can use your account on as many devices as you like. I bet you accidentally misspelled your email or username. That would be the only way to generate that error. The security is the email authentication. Please let me know if that helps. Sorry about the version number. We will have to remember to increment it on the next update. -Mark > On Aug 26, 2014, at 8:45 PM, "J. Landman Gay" wrote: > >> On 8/26/2014, 7:08 PM, Mark Talluto wrote: >> Quick note that we have updated the RunRevLive 2014 since its release date. > > I was just your first Android download. I had to uninstall the one I grabbed off your site before I could download the one from the Play Store (apparently the app build number didn't change, since there was no Update option.) > > Now it asks me to sign in, and then tells me my user name has already been taken. Can you reset your server so I can re-log? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pderocco at ix.netcom.com Wed Aug 27 01:04:21 2014 From: pderocco at ix.netcom.com (Paul D. DeRocco) Date: Tue, 26 Aug 2014 22:04:21 -0700 Subject: Asynchronous externals interface Message-ID: A couple years ago, I asked about the possibility of a mechanism for an external to send a message asynchronously from another thread. My suggestion at the time was to provide a simple signal mechanism, which could dispatch a message previously supplied by a "send" command: http://lists.runrev.com/pipermail/use-livecode/2012-August/176675.html It was said at the time that there was a more generalized asynchronous external interface in the iOS SDK, which would hopefully find its way into LiveCode on other platforms. So has anything happened with this? -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com From t.heaford at btinternet.com Wed Aug 27 03:10:11 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Wed, 27 Aug 2014 08:10:11 +0100 Subject: Size of window between close/startup Message-ID: This is a stack on a Mac (Mavericks) LC Community 6.7 dp 9. I have zoomed my stack and it is the window size excluding the mac menubar height. When checking the size in the proper inspector it is 1680 x 1002. I close the stack and LC asks me if I want to save the stack, I save it. I then reopen the stack and the window size has now changed to 1660 x 962. Is this a bug or the expected behaviour? Thanks Terry From rolf.kocherhans at id.uzh.ch Wed Aug 27 03:27:53 2014 From: rolf.kocherhans at id.uzh.ch (Rolf Kocherhans) Date: Wed, 27 Aug 2014 09:27:53 +0200 Subject: Sending Terminal Command (Python) Using LiveCode? In-Reply-To: References: Message-ID: <8A096381-642C-46BC-9DEE-6F2E4A0F869F@id.uzh.ch> Hello John Yes this is possible, I do this all the time ! The way I use it: Create a stack with a field, put the whole python script (can have multiple lines) into the field. Replace place holders (replace %NAME% with Peter etc.) in the field, and then put field into a variable and execute it with the shell command ! This works very well, if you need more info, contact me off list. Cheers Rolf Am 27.08.2014 um 01:48 schrieb use-livecode-request at lists.runrev.com: > Hi All, > > I manage a lot of accounts in our Google Apps for Education deployment. I have used LiveCode to automate a lot of the csv creation for this process. > > I use a Terminal application (GAM) created in Python to do some of this too. > > I would like to be able to call the GAM Python scripts via LiveCode. A typical GAM python terminal command would be something like: > > python gam.py create user jdoe at student.email.k12.ca.us firstname John lastname Doe password 111111 change password off > > Could I call this Python script directly from LiveCode? > > Something like: > > on mouseUp > shell(python gam.py create user jdoe at student.sylvan.k12.ca.us firstname John lastname Doe password 111111 change password off > end mouseUp > > This seems too easy. I?m guessing I would have to point Livecode to the proper directory (path) to the Python app. etc. > > Is calling python scripts possible through LiveCode? ?in need of an example :) > > Thank you! > John Patten > SUSD From th.douez at gmail.com Wed Aug 27 05:18:11 2014 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 27 Aug 2014 11:18:11 +0200 Subject: Sending Terminal Command (Python) Using LiveCode? In-Reply-To: <8A096381-642C-46BC-9DEE-6F2E4A0F869F@id.uzh.ch> References: <8A096381-642C-46BC-9DEE-6F2E4A0F869F@id.uzh.ch> Message-ID: 2014-08-27 9:27 GMT+02:00 Rolf Kocherhans : > Hello John > > Yes this is possible, I do this all the time ! I do this very often too, with Perl or shells. Instead of using the replace, I've choosen the merge road; find it more flexible and readable when you have to deal with a long list of commands. Even build all the custom properties containing the template commands automatically from the API documentation of the external tool with the help of LC + regex. HTH, Thierry > > The way I use it: > Create a stack with a field, put the whole python script > (can have multiple lines) into the field. > Replace place holders (replace %NAME% with Peter etc.) in the field, > and then put field into a variable and execute it with the shell command ! > >> I would like to be able to call the GAM Python scripts via LiveCode. A typical GAM python terminal command would be something like: >> >> python gam.py create user jdoe at student.email.k12.ca.us firstname John lastname Doe password 111111 change password off >> >> Could I call this Python script directly from LiveCode? ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From jbv at souslelogo.com Wed Aug 27 07:25:28 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 27 Aug 2014 14:25:28 +0300 Subject: unlock screen doesn't unlock screen In-Reply-To: References: <53FCFEC1.5070600@fourthworld.com> Message-ID: <1f294640687e9fa6183dff0661aceea7.squirrel@185.8.104.234> Hi list I have the following loop : lock screen repeat 20000 times -- do a lot of things unlock screen put myVar into fld myVar lock screen end repeat The purpose is to lock the screen so that the heavy data processing inside the loop isn't slowed down, but also to display the content of myVar at each iteration of the loop. But the content of the fld doesn't refresh while the loop runs, only when the loop is over... I used to do that with HC, MC and earlier versions of Rev and it used to work... I'm on OSX 10.5.5 and LC 6.5.2 Any idea ? Thanks jbv From bvg at mac.com Wed Aug 27 07:34:54 2014 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 27 Aug 2014 13:34:54 +0200 Subject: unlock screen doesn't unlock screen In-Reply-To: <1f294640687e9fa6183dff0661aceea7.squirrel@185.8.104.234> References: <53FCFEC1.5070600@fourthworld.com> <1f294640687e9fa6183dff0661aceea7.squirrel@185.8.104.234> Message-ID: <04F0A336-D89A-49CD-8F65-ECCC7032D03C@mac.com> while the screen is locked, in the repeat loop: wait 0 seconds with messages Annoying, and weird, I know. But it's been like that since a few versions now, so this "feature" probably will most likely stay like that. On 27 Aug 2014, at 13:25, jbv at souslelogo.com wrote: > Hi list > > I have the following loop : > > lock screen > repeat 20000 times > -- do a lot of things > unlock screen > put myVar into fld myVar > lock screen > end repeat > > The purpose is to lock the screen so that the heavy data > processing inside the loop isn't slowed down, but also to > display the content of myVar at each iteration of the loop. > But the content of the fld doesn't refresh while the loop runs, > only when the loop is over... I used to do that with HC, MC > and earlier versions of Rev and it used to work... > I'm on OSX 10.5.5 and LC 6.5.2 > Any idea ? > > Thanks > jbv > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jbv at souslelogo.com Wed Aug 27 07:34:38 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 27 Aug 2014 14:34:38 +0300 Subject: unlock screen doesn't unlock screen In-Reply-To: <1f294640687e9fa6183dff0661aceea7.squirrel@185.8.104.234> References: <53FCFEC1.5070600@fourthworld.com> <1f294640687e9fa6183dff0661aceea7.squirrel@185.8.104.234> Message-ID: <5645ad9b51703cd22d4257f93e23794d.squirrel@185.8.104.234> actually the loop is like this (my mistake) : lock screen repeat 20000 times -- do a lot of things unlock screen put myVar into fld "myVar" lock screen end repeat but the problem remains. jbv From m.schonewille at economy-x-talk.com Wed Aug 27 07:36:06 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 27 Aug 2014 13:36:06 +0200 Subject: unlock screen doesn't unlock screen In-Reply-To: <1f294640687e9fa6183dff0661aceea7.squirrel@185.8.104.234> References: <53FCFEC1.5070600@fourthworld.com> <1f294640687e9fa6183dff0661aceea7.squirrel@185.8.104.234> Message-ID: <53FDC2A6.2050102@economy-x-talk.com> Hi jbv, Data processing doesn't slow down because of screen redraws. If a repeat loop like yours needs a lot of CPU time, it will take this and less time will be left for screen updates. The lock screen and unlock screen commands themselves also take some time. There's a good chance that a smart rewrite of your repeat loop without lock and unlock commands will be much faster than a version with these commands. This should work: lock screen repeat 20000 times -- do a lot of things that -- don't affect field contents -- ... -- now we're at the end of the loop put myVar into fld myVar -- give the GUI time to update wait 0 millisecs with messages end repeat The problem isn't that the screen doesn't unlock, but the problem is that your repeat loop doesn't give the engine any time to update the GUI. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/27/2014 13:25, jbv at souslelogo.com wrote: > Hi list > > I have the following loop : > > lock screen > repeat 20000 times > -- do a lot of things > unlock screen > put myVar into fld myVar > lock screen > end repeat > > The purpose is to lock the screen so that the heavy data > processing inside the loop isn't slowed down, but also to > display the content of myVar at each iteration of the loop. > But the content of the fld doesn't refresh while the loop runs, > only when the loop is over... I used to do that with HC, MC > and earlier versions of Rev and it used to work... > I'm on OSX 10.5.5 and LC 6.5.2 > Any idea ? > > Thanks > jbv > From jbv at souslelogo.com Wed Aug 27 07:45:35 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 27 Aug 2014 14:45:35 +0300 Subject: unlock screen doesn't unlock screen In-Reply-To: <53FDC2A6.2050102@economy-x-talk.com> References: <53FCFEC1.5070600@fourthworld.com> <1f294640687e9fa6183dff0661aceea7.squirrel@185.8.104.234> <53FDC2A6.2050102@economy-x-talk.com> Message-ID: <532c5e91de0bbcefc892d2e03df7b4d6.squirrel@185.8.104.234> Thanks Bj?rnke and Mark. It does work now. I shall perhaps reconsider my old school approach of several coding details like that one... In the old days, locking the screen did speed up scripts that needed lots of CPU times anyway... jbv From B.Cornaz at gmx.net Wed Aug 27 09:33:22 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Wed, 27 Aug 2014 15:33:22 +0200 Subject: permuting a string (was Re: Speed) Message-ID: <4AB58C7A-D697-4B2C-9CFB-ED33266A686B@gmx.net> Thanks Peter, your script works, but is in the same speed region as my original script, with the added disadvantage that it can't go beyond 9 chars. As for the duplicate elements : I did the same before - make all the possible permutations and then delete the duplicate ones. But as Geoff rightly points out and I had discovered as well, that doesn't scale well. If we manage to delete duplicates in an earlier stage, many permutations down the line need not to be made, which can make it much faster. I do the deletions of duplicates in my script now as early as possible, which all of a sudden makes it faster than Geoff's script if I have many duplicates in the Input. My script 10 input elements no duplicates - 4407 millisecs Geoff's script idem - 474 millisecs My script 10 input elements duplicates (0001112223) - 56 milli Geoff's script idem with deletion of duplicates at end - 534 milli (the normal script + the time for the deletions at the end) So, getting rid of the duplicates inside the script is quite important. I still don't see yet how I can do that in Geoff's script (I will look into that again, as soon as I can find a little time). If we can get that to work, I think we'll have a winner :-) my script : function BC4_PermMech4_Duplicates_Lines ToPermutate set cursor to busy put empty into TempPerms5 put the number of lines of ToPermutate into NumElements -- *** First calc the upper half. put line 1 of ToPermutate & comma & line 2 of ToPermutate & comma into TempPerms1 put line 3 to -1 of ToPermutate into tInput3 put 3 into Index repeat for each line newElement in tInput3 set the cursor to busy repeat for each line tLine in TempPerms1 repeat with y = Index down to 1 put tLine into Temp put newElement & comma before item y of temp put Temp & cr after TempPerms5 end repeat end repeat put BC2_RemoveDuplicate_LooseOrder_Lines (TempPerms5) into TempPerms1 -- #### HERE IS THE DELETION HANDLER put empty into TempPerms5 add 1 to Index end repeat -- *** Now the second half -- *** Copy first half as second half and replace in the second half put TempPerms1 into TempPerms2 replace 1 with "z" in TempPerms2 replace 2 with 1 in TempPerms2 replace "z" with 2 in TempPerms2 put TempPerms2 after TempPerms1 delete char -1 of TempPerms1 choose browse tool Return TempPerms1 end BC4_PermMech4_Duplicates_Lines --- function BC2_RemoveDuplicate_LooseOrder_Lines pData put ":" & cr into DD replace cr with DD in pData split pData by cr and ":" Return the keys of pData end BC2_RemoveDuplicate_LooseOrder_Lines -------- From ambassador at fourthworld.com Wed Aug 27 10:17:31 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 27 Aug 2014 07:17:31 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: <8D18FC5088E05C8-2278-34928@webmail-vd021.sysops.aol.com> References: <8D18FC5088E05C8-2278-34928@webmail-vd021.sysops.aol.com> Message-ID: <53FDE87B.6050703@fourthworld.com> Peter Haworth wrote: > Sounds like a great idea to me. I seem to remember that one of > dispatch/send is blocking and the other isn't. Could that be a > possible reason for the lack of "in" with dispatch? Both are blocking when called immediately; "send" can become on-blocking by specifying a later time to send the message. dunbarx wrote: > "Send' can, er, send parameters as well as a command. In a button > script: > > on mouseUp > send "putArg" && random(99) && random(99) && "XYZ" to me in 5 > end mouseUp > > on putArg var > put var > end putArg > > You get pairs of random numbers and the text as well. All parameters > come across as a batch. > > Or you can separate in the usual way: > on mouseUp > send "putArg" && random(99) & "," & any char of "ABCD" to me in 5 > end mouseUp > > on putArg var,var2 > put var2 --or the first one or both > end putArg Yes, both "send" and "dispatch" allow passing arguments, but as we saw with yesterday's forum post it seems unintuitive to have to put quotes around things that aren't strings, making "dispatch" feel more natural. Of course in a certain Zen sort of way even variable names are technically strings on some level, but having to quote them to pass them with "send" is something I see a lot of newcomers guess wrong. FWIW I submitted a request to have "dispatch" extended with "in" for timers: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Aug 27 10:30:48 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 27 Aug 2014 07:30:48 -0700 Subject: unlock screen doesn't unlock screen In-Reply-To: <04F0A336-D89A-49CD-8F65-ECCC7032D03C@mac.com> References: <04F0A336-D89A-49CD-8F65-ECCC7032D03C@mac.com> Message-ID: <53FDEB98.9030200@fourthworld.com> Bj?rnke von Gierke wrote: > while the screen is locked, in the repeat loop: > > wait 0 seconds with messages > > Annoying, and weird, I know. But it's been like that since a few > versions now, so this "feature" probably will most likely stay > like that. Apparently it annoyed Mark Waddingham too, who considered it a bug and was pleased to see it addressed with the Cocoa integration for v6.7 forward: There's a related issue with recent versions of LC on Windows (possibly a side-effect of some other fixes needed to accommodated redraw issues on Win), though that's been reported and will hopefully be addressed soon too. With Fraser Gordon's excellent work on the Linux engine, this is not an issue there at all. So at the moment this issue is only visible on Windows, and that'll likely be fixed before v6.7 goes final, at last taking care of a long-standing annoyance that's confused countless scripters ever since the engine was ported from Classic to Carbon. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dunbarx at aol.com Wed Aug 27 10:46:20 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 27 Aug 2014 10:46:20 -0400 (EDT) Subject: Should "dispatch" be extended for timers? In-Reply-To: <53FDE87B.6050703@fourthworld.com> References: <8D18FC5088E05C8-2278-34928@webmail-vd021.sysops.aol.com> <53FDE87B.6050703@fourthworld.com> Message-ID: <8D1901CCC59AAC7-1C40-31501@webmail-d284.sysops.aol.com> Richard. When you say "send" is blocking, in what way? Is this really any different that calling any handler? For example: on mouseUp doSomething end mouseUp on MouseUp send "doSomething" to this card end mouseUp Can you explain the difference? Craig -----Original Message----- From: Richard Gaskin To: use-livecode Sent: Wed, Aug 27, 2014 10:18 am Subject: Re: Should "dispatch" be extended for timers? Peter Haworth wrote: > Sounds like a great idea to me. I seem to remember that one of > dispatch/send is blocking and the other isn't. Could that be a > possible reason for the lack of "in" with dispatch? Both are blocking when called immediately; "send" can become on-blocking by specifying a later time to send the message. dunbarx wrote: > "Send' can, er, send parameters as well as a command. In a button > script: > > on mouseUp > send "putArg" && random(99) && random(99) && "XYZ" to me in 5 > end mouseUp > > on putArg var > put var > end putArg > > You get pairs of random numbers and the text as well. All parameters > come across as a batch. > > Or you can separate in the usual way: > on mouseUp > send "putArg" && random(99) & "," & any char of "ABCD" to me in 5 > end mouseUp > > on putArg var,var2 > put var2 --or the first one or both > end putArg Yes, both "send" and "dispatch" allow passing arguments, but as we saw with yesterday's forum post it seems unintuitive to have to put quotes around things that aren't strings, making "dispatch" feel more natural. Of course in a certain Zen sort of way even variable names are technically strings on some level, but having to quote them to pass them with "send" is something I see a lot of newcomers guess wrong. FWIW I submitted a request to have "dispatch" extended with "in" for timers: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 27 10:54:04 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 14:54:04 +0000 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <3688a94f5245909b9874935896adf58e.squirrel@185.8.104.234> References: <53F4AF9B.8010505@fourthworld.com> <3688a94f5245909b9874935896adf58e.squirrel@185.8.104.234> Message-ID: The second command generates an error, just like adding one + 1. But that brings up an interesting point: Can an indexed array contain associative arrays and vis versa? Nice little pickle. And how do you tell, or is it important necessarily to tell? Bob S On Aug 20, 2014, at 08:23 , jbv at souslelogo.com wrote: > I was thinking : > set the indexedarray of myArray to true > set the indexedarray of myArray to false > > but then what happens when you switch that property from true > to false for the same array within a handler ? > > Same question for "{}" notation : what happens when the same > handler contains these 2 successive lines : > add 1 to myArray{10} > add 1 to myArray[10] > > Best > jbv > >> How about using {} instead of []? >> >> Bob S >> >> >> On Aug 20, 2014, at 07:24 , Richard Gaskin >> > wrote: >> >> So if we were to propose that LiveCode add indexed arrays, the first thing >> we'll want to do is come up with the syntax for specifying those when >> those are what we want, ideally allowing all other usage to continue using >> associative arrays as they have all these years. >> >> Suggestions on what that syntax should look like? >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 27 10:58:31 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 14:58:31 +0000 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <5BD7C5FA-4F79-4F4B-9952-22BEABD392D0@earthednet.org> References: <53F4AF9B.8010505@fourthworld.com> <5BD7C5FA-4F79-4F4B-9952-22BEABD392D0@earthednet.org> Message-ID: <11135CD1-785C-437E-ADF4-7914850F6D45@iotecdigital.com> Come to think of it, Trevor Devore seems to have found a way for numerically indexed arrays to have their keys in order in sqlYoga. Also, when you get the dgData of a data grid, the array is ?numerically indexed? by which I mean the keys of the array are numbers, and they are in numerical order. My experience is that the keys of an array are typically randomly ordered but he seems to have found a way to order them. Bob S On Aug 20, 2014, at 09:05 , Earthednet-wp > wrote: I feel that there are many more high priority needs for LC than building matrix operations into the engine, which can be easily implemented as functions in LC talk. My humble opinion. Regards, Bill From bobsneidar at iotecdigital.com Wed Aug 27 10:59:15 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 14:59:15 +0000 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: References: <53F4AF9B.8010505@fourthworld.com> <3688a94f5245909b9874935896adf58e.squirrel@185.8.104.234> Message-ID: Didn?t know that thanks Pete. Bob S On Aug 20, 2014, at 09:33 , Peter Haworth wrote: > I wouldn't be in favor of using {}. Problem is that LC currently accepts > those characters as delimiters for the keys of an array. I don't use them > on purpose but every now and again I notice I typed one by mistake. Seems > like a backwards compatibility problem. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Wed, Aug 20, 2014 at 8:23 AM, wrote: > >> I was thinking : >> set the indexedarray of myArray to true >> set the indexedarray of myArray to false >> >> but then what happens when you switch that property from true >> to false for the same array within a handler ? >> >> Same question for "{}" notation : what happens when the same >> handler contains these 2 successive lines : >> add 1 to myArray{10} >> add 1 to myArray[10] >> >> Best >> jbv >> >>> How about using {} instead of []? >>> >>> Bob S >>> >>> >>> On Aug 20, 2014, at 07:24 , Richard Gaskin >>> > wrote: >>> >>> So if we were to propose that LiveCode add indexed arrays, the first >> thing >>> we'll want to do is come up with the syntax for specifying those when >>> those are what we want, ideally allowing all other usage to continue >> using >>> associative arrays as they have all these years. >>> >>> Suggestions on what that syntax should look like? >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 27 11:02:51 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 15:02:51 +0000 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <1F75AB37-5561-409D-B3A7-383260A1B502@unil.ch> References: <53F4AF9B.8010505@fourthworld.com> <5BD7C5FA-4F79-4F4B-9952-22BEABD392D0@earthednet.org> <1F75AB37-5561-409D-B3A7-383260A1B502@unil.ch> Message-ID: Good luck getting RunRev to deprecate anything. One of their huge selling points has always been backwards compatibility. Bob S On Aug 20, 2014, at 09:56 , Jacques Hausser > wrote: What I suggested is ONLY to deprecate (not suppress, just deprecate) the two part keys in bidimentional arrays like myMatrix[i,j] and to allow matrixMultiply and transpose to work with matrices built with [i][j] notation. Seems to me it would be more coherent. From alex at tweedly.net Wed Aug 27 11:11:34 2014 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 27 Aug 2014 16:11:34 +0100 Subject: permuting a string (was Re: Speed) In-Reply-To: <4AB58C7A-D697-4B2C-9CFB-ED33266A686B@gmx.net> References: <4AB58C7A-D697-4B2C-9CFB-ED33266A686B@gmx.net> Message-ID: <53FDF526.5000101@tweedly.net> On 27/08/2014 14:33, Beat Cornaz wrote: > > So, getting rid of the duplicates inside the script is quite important. I still don't see yet how I can do that in Geoff's script (I will look into that again, as soon as I can find a little time). If we can get that to work, I think we'll have a winner :-) > > OK, I confess I haven't been following this thread properly. I tried to go read it all in Nabble, and failed - so my understanding is, erm, incomplete :-) But I think the problem is to create all permutations of a set of input chars, and deal with duplicates. So here (below) is my version (or rather, my two versions ...) pSimple() is the simple, obvious recursive function. It works, doesn't handle duplicates (so that would need to be done as a post-process, as discussed earlier) - and it's pretty slow; takes 43729 msecs for 10 characters, exactly the same time with duplicates permut() is the optimized version - optimize simepl cases of 1 or 2 chars, eliminate duplicates as we go. It works, in the no-duplicate case ("abcdefghij") it takes 23057 msecs in the mildly duplicate case ("abcdabcdab") it takes 193 msecs and in the heavily duplicate case ("abbbbbbbbb") it takes < 1 msec To make it faster, it *should* be serialized, so that it isn't actually recursive; that should be quite easy (but will make the code much less easy to read or understand, so I haven't done it yet). If you think it's worth pursuing, let me know and I'll have a go at unrolling the recursiveness. -- Alex. function pSimple pMute if the number of chars in pMute = 1 then return pMute put empty into t3 repeat with i = 1 to the number of chars in pMute put char i of pMute into c put pMute into temp delete char i of temp put pSimple(temp) into t2 repeat for each line L in t2 put c & L & CR after t3 end repeat end repeat return t3 end pSimple function permut pMute if the number of chars in pMute = 1 then return pMute if the number of chars in pMute = 2 then return pMute & CR & char 2 of pMute & char 1 of pMute end if put empty into t3 put empty into tDone repeat with i = 1 to the number of chars in pMute put char i of pMute into c if c is among the chars of tDone then next repeat put c after tDone put pMute into temp delete char i of temp switch the the number of chars in temp case 1 put temp into t2 break case 2 put temp & CR & char 2 of temp & char 1 of temp into t2 break default put permut(temp) into t2 end switch repeat for each line L in t2 put c & L & CR after t3 end repeat end repeat return t3 end permut From bobsneidar at iotecdigital.com Wed Aug 27 11:16:59 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 15:16:59 +0000 Subject: Should "dispatch" be extended for timers? In-Reply-To: <8D1901CCC59AAC7-1C40-31501@webmail-d284.sysops.aol.com> References: <8D18FC5088E05C8-2278-34928@webmail-vd021.sysops.aol.com> <53FDE87B.6050703@fourthworld.com> <8D1901CCC59AAC7-1C40-31501@webmail-d284.sysops.aol.com> Message-ID: <1DF55CFD-DE49-4AC7-9668-9C432B7E8B1D@iotecdigital.com> You cannot dispatch in time. But you can send in time. If you: send doSomething to me in 0 seconds do someotherthingsfirst then someotherthingsfirst will run and anything else that comes after it. doSomething will run the next idle message. Bob S On Aug 27, 2014, at 07:46 , dunbarx at aol.com wrote: > Richard. > > > When you say "send" is blocking, in what way? Is this really any different that calling any handler? For example: > > > on mouseUp > doSomething > end mouseUp > > > on MouseUp > send "doSomething" to this card > end mouseUp > > > Can you explain the difference? > > > Craig > > > > -----Original Message----- > From: Richard Gaskin > To: use-livecode > Sent: Wed, Aug 27, 2014 10:18 am > Subject: Re: Should "dispatch" be extended for timers? > > > Peter Haworth wrote: > >> Sounds like a great idea to me. I seem to remember that one of >> dispatch/send is blocking and the other isn't. Could that be a >> possible reason for the lack of "in" with dispatch? > > Both are blocking when called immediately; "send" can become on-blocking > by specifying a later time to send the message. > > > dunbarx wrote: > >> "Send' can, er, send parameters as well as a command. In a button >> script: >> >> on mouseUp >> send "putArg" && random(99) && random(99) && "XYZ" to me in 5 >> end mouseUp >> >> on putArg var >> put var >> end putArg >> >> You get pairs of random numbers and the text as well. All parameters >> come across as a batch. >> >> Or you can separate in the usual way: >> on mouseUp >> send "putArg" && random(99) & "," & any char of "ABCD" to me in 5 >> end mouseUp >> >> on putArg var,var2 >> put var2 --or the first one or both >> end putArg > > Yes, both "send" and "dispatch" allow passing arguments, but as we saw > with yesterday's forum post it seems unintuitive to have to put quotes > around things that aren't strings, making "dispatch" feel more natural. > > Of course in a certain Zen sort of way even variable names are > technically strings on some level, but having to quote them to pass them > with "send" is something I see a lot of newcomers guess wrong. > > FWIW I submitted a request to have "dispatch" extended with "in" for timers: > > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 27 11:18:29 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 15:18:29 +0000 Subject: revDataFromQuery and DELETE FROM In-Reply-To: References: <79037775-ABFB-4564-9178-ADCD9D948D78@clearvisiontech.com> Message-ID: I just put all calls to database functions inside a try/catch construct. Bob S On Aug 20, 2014, at 15:09 , Dr. Hawkins wrote: > On Sun, Aug 17, 2014 at 8:33 PM, Dan Friedman > wrote: > >> Thanks for the reply. The entire error string is "revdberr," (with the >> comma). I tried your suggestion of using revExecuteSQL instead of >> revDataFromQuery() and I did not get the error. So at least I have a >> suitable workaround. Thanks for the assist! >> > > I try to always check my results and trigger a "panic" that shows the > returned error when a query fails. > > For this one, I just take an exact match of "revdberr," as a success code. > So > > if theRes <> "revdberr" then > panic "bad delete in someFunction" & cr & cr & theRes > end if > > If you're *not* checking your return codes, you're asking for pain . . . > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 27 11:20:59 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 15:20:59 +0000 Subject: revDataFromQuery and DELETE FROM In-Reply-To: <006701cfbcc4$65da7020$318f5060$@net> References: <79037775-ABFB-4564-9178-ADCD9D948D78@clearvisiontech.com> <006701cfbcc4$65da7020$318f5060$@net> Message-ID: Works so long as you are certain the affected rows will never be 0. Bob S On Aug 20, 2014, at 15:16 , Ralph DiMola > wrote: Using the revExecuteSQL returns the number of deleted/inserted/updated rows in the result. Then the test is: If the result is not a number then --Error code here End if Ralph DiMola From johnpatten at me.com Wed Aug 27 11:27:27 2014 From: johnpatten at me.com (JOHN PATTEN) Date: Wed, 27 Aug 2014 08:27:27 -0700 Subject: Sending Terminal Command (Python) Using LiveCode? In-Reply-To: References: <8A096381-642C-46BC-9DEE-6F2E4A0F869F@id.uzh.ch> Message-ID: <18961184-D0BA-4AEF-8B07-215918962807@me.com> Awesome! I?m trying to get this working but I think I?m having a problem with providing the path to the Python App. I keep getting the error: python: can?t open file ?Macintosh HD/Users/jpatten/gam?:[Errno 2] No Such file or directory. Here?s what I have in my button script: on mouseUp put cd fld 1 into tScript put shell(tScript) into tPython answer tPython end mouseUp and in my field I have the following: python ?Macintosh HD?/Users/jpatten/gam gam.py info domain This python command just returns info about the Google Apps domain?. What am I missing? Thank you! On Aug 27, 2014, at 2:18 AM, Thierry Douez wrote: > 2014-08-27 9:27 GMT+02:00 Rolf Kocherhans : > >> Hello John >> >> Yes this is possible, I do this all the time ! > > I do this very often too, with Perl or shells. > > Instead of using the replace, I've choosen the merge road; > find it more flexible and readable when you have to deal with a long list > of commands. > > Even build all the custom properties containing the template commands > automatically from the API documentation of the external tool with the help > of LC + regex. > > HTH, > > Thierry > >> >> The way I use it: >> Create a stack with a field, put the whole python script >> (can have multiple lines) into the field. >> Replace place holders (replace %NAME% with Peter etc.) in the field, >> and then put field into a variable and execute it with the shell command ! >> >>> I would like to be able to call the GAM Python scripts via LiveCode. A typical GAM python terminal command would be something like: >>> >>> python gam.py create user jdoe at student.email.k12.ca.us firstname John lastname Doe password 111111 change password off >>> >>> Could I call this Python script directly from LiveCode? > > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.com > Maker of sunnYperl - sunnYmidi - sunnYmage > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 27 11:28:45 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 15:28:45 +0000 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: References: Message-ID: <7FFE5731-61B0-4B80-8D56-6AAB0CBE4702@iotecdigital.com> Hey thanks for that Kay. I have a date conversion function that includes formats like sqlDate which the LC covert command does not support. This will be a nice addition. Bob S On Aug 23, 2014, at 01:28 , Kay C Lan > wrote: Nope, but this will help you calculate the Julian Date Number, which you'll need: put the date into tDate convert tDate from date to dateItems if ((item 2 of tDate = 1) or (item 2 of tDate = 2)) then put 1 into tDay else put 0 into tDay end if put item 1 of tDate + 4800 - tDay into tYear put item 2 of tDate + (12 * tDay) - 3 into tMonth put item 3 of tDate + \ ((153 * tMonth + 2) div 5) + \ (365 * tYear) + \ (tYear div 4) - \ (tYear div 100) + \ (tYear div 400) - \ 32045 into tJDN From bobsneidar at iotecdigital.com Wed Aug 27 11:37:10 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 15:37:10 +0000 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <111-861346949.20140823132755@ahsoftware.net> References: <6519A6E2-83CF-460C-9B7C-4A9AF10486B8@buchwald.ca> <111-861346949.20140823132755@ahsoftware.net> Message-ID: Not to throw a wrench in the works, but wasn?t there some discussion in the past about different versions of Julian dates? Which one is the more widely accepted? I suppose the question could be formed, which one does Microsoft use for Excel? :-) Bob S On Aug 23, 2014, at 13:27 , Mark Wieder > wrote: Charles- Saturday, August 23, 2014, 11:21:44 AM, you wrote: Thanks. I have been using Sarah Reichelt's Date & Time Library, which contains these functions by Mark Wieder. I actually didn't realize they were under copyright, but I see that now. I didn't either. Or more probably I'd forgotten about a discussion with Sarah about copyrights. Please ignore that ten-year-old copyright notice and feel free to do what you want with any of my functions in that library. -- -Mark Wieder From bobsneidar at iotecdigital.com Wed Aug 27 11:41:27 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 15:41:27 +0000 Subject: Why doesn't menupick work In-Reply-To: <8E7C5683-EA25-41FB-B9A1-F4F3D006E530@duncansoftware.on-rev.com> References: <8E7C5683-EA25-41FB-B9A1-F4F3D006E530@duncansoftware.on-rev.com> Message-ID: <0EBA6D9C-E0FE-4D20-896E-541133E21D46@iotecdigital.com> I see bugs sometimes, but usually it is after drinking too much skunk beer. Bob S On Aug 23, 2014, at 14:47 , revolution at duncansoftware.on-rev.com wrote: The crlf was created from my code. The bug is not with Livecode. The bug is staring at my monitor. From bobsneidar at iotecdigital.com Wed Aug 27 11:46:58 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 15:46:58 +0000 Subject: [ANN] LiveCode meeting in the Netherlands In-Reply-To: <53FA6303.3050506@economy-x-talk.com> References: <53FA6303.3050506@economy-x-talk.com> Message-ID: <0B5E2928-337B-4744-90E1-2EA19202D8A0@iotecdigital.com> I?ll be there in spirit. 1/4 norwegian. ;-) Bob S On Aug 24, 2014, at 15:11 , Mark Schonewille > wrote: Dear everyone, On 20th September 2014, there will be a LiveCode meeting in the Netherlands. The exact location will be announced shortly. From bobsneidar at iotecdigital.com Wed Aug 27 11:51:51 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 15:51:51 +0000 Subject: OpenField mystery In-Reply-To: <53F90606.9060708@hyperactivesw.com> References: <08127764-05BD-4233-A25F-FEED8EA62910@mac.com> <53F8EC0C.5000103@hyperactivesw.com> <366076EC-2749-49B5-A2ED-758A6C832929@mac.com> <53F90606.9060708@hyperactivesw.com> Message-ID: <9D9F11A6-2795-436E-8838-DAB80E61AFB5@iotecdigital.com> I?ve seen this too Jacque in the current app I am working on. If I am in a field and I click the ?Save? button closeField does not get sent to that field. I will use your solution to get around it. Bob S On Aug 23, 2014, at 14:22 , J. Landman Gay wrote: > On 8/23/2014, 3:02 PM, Graham Samuel wrote: >> It is quite possible for him (her) not to close the last revised >> field, but simply to go straight to clicking the button. This means >> that I can't rely on a 'closeField' message being generated even when >> a field is modified! > > Hm, that's an old bug that I thought got fixed. I remember a while back noticing that a closefield was sent. If it's broken again, consider putting in a bug report on it. > > If I remember right, I used to do this in the button: > > if the selectedfield <> "" then send "closefield" to the selectedfield > > but it was a long time ago. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 27 11:57:57 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 15:57:57 +0000 Subject: Open App/file In-Reply-To: <69457997-4FBC-48EA-9D3E-95B1FB9D588C@verizon.net> References: <22140080-4032-488B-87D5-5BFE3041E241@pacifier.com> <69457997-4FBC-48EA-9D3E-95B1FB9D588C@verizon.net> Message-ID: <65D669C1-70F9-4A5F-B7AD-4C805FE1F694@iotecdigital.com> check first that the application and document exist first tho?. Bob S On Aug 25, 2014, at 14:13 , Colin Holgate wrote: > launch [document path] with [application path] should work, shouldn?t it? > > Read the Dictionary entry for other variations. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Aug 27 11:59:55 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 27 Aug 2014 08:59:55 -0700 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <11135CD1-785C-437E-ADF4-7914850F6D45@iotecdigital.com> References: <11135CD1-785C-437E-ADF4-7914850F6D45@iotecdigital.com> Message-ID: <53FE007B.2050404@fourthworld.com> Bob Sneidar wrote: > Come to think of it, Trevor Devore seems to have found a way for > numerically indexed arrays to have their keys in order in sqlYoga. > Also, when you get the dgData of a data grid, the array is > ?numerically indexed? by which I mean the keys of the array are > numbers, and they are in numerical order. My experience is that the > keys of an array are typically randomly ordered but he seems to have > found a way to order them. All keys in associative arrays are strings, and currently LC only supports associative arrays. The string may consist of numerals only, but it's still a string. It would seem that Trevor rebuilds the array on deletes. It would be interesting to hear more about how he does this if he reads this message and has time to reply. Or one of us could dive into the DG code and find it. Either way, I suspect it's iterating over the collection. > Good luck getting RunRev to deprecate anything. One of their huge > selling points has always been backwards compatibility. That should be a selling point for any language; there's no value in deprecating things willy-nilly just to see if your audience is on their toes. :) Like any other language maintainer not wishing to annoy, RunRev deprecates a token or token usage only when there's value in doing so. For example, "character" as a chunk type used to be synonymous with "byte", but they changed this long before introducing Unicode because they anticipated a future in which the two may be very different things, requiring a new token with "byte" and deprecating the old use of "character" as always meaning one byte (in a Unicode world is may be any number of bytes, commonly two in LC's UTF-16). Similarly, "word" has changed its meaning, so that it no longer includes multi-word quoted strings (which was a strange decision from the HyperCard team faithfully carried over into MC). In v7 dp10 forward, the new token for the old behavior is "segment" - see page 10 of the Release Notes: Other tokens have been deprecated completely, as in no longer supported at all. For example, "answer programs" was specific to Mac OS 9 and earlier, no longer supported by either its maker or RunRev, so that command no longer works. RunRev doesn't deprecate often, and thankfully never takes such a decision lightly. But when there's value in doing so, they will. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Wed Aug 27 12:05:14 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 16:05:14 +0000 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> Message-ID: <5D0D0E80-5262-4261-8A33-17564451E972@iotecdigital.com> floor = roundDown? Bob On Aug 23, 2014, at 09:13 , Earthednet-wp wrote: > Richmond, > Floor of a number is the largest integer that is less than or equal to the number. For positive numbers, it would be trunc(myNumber) but for negative numbers, floor(-4.34) would have to evaluate to -5. Probably trunc(myNum-1) would almost do it, but I'm not in LC to check all cases, e.g. floor(-4.0) should be -4. > Bill > > William Prothero > http://es.earthednet.org > >> On Aug 23, 2014, at 8:09 AM, Richmond wrote: >> >>> On 23/08/14 17:44, Earthednet-wp wrote: >>> I found this link. It might be easier to convert this code to LC. >>> http://williams.best.vwh.net/sunrise_sunset_algorithm.htm >>> Bill >>> >>> William Prothero >>> http://es.earthednet.org >>> >>> >> >> That looks very good indeed: but I don't understand what 'floor' means. >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 27 12:07:04 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 16:07:04 +0000 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8DD8F.2000407@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <53F8DD8F.2000407@gmail.com> Message-ID: <1D47B659-1587-4089-90AE-09A9E6F8DB5E@iotecdigital.com> Yer a bit low. I?d add a pint. Bob On Aug 23, 2014, at 11:29 , Richmond > wrote: No: I was running 2 pints of beer :) Richmond. From bobsneidar at iotecdigital.com Wed Aug 27 12:08:08 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 16:08:08 +0000 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <53F8E7ED.90700@gmail.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> <53F8E7ED.90700@gmail.com> Message-ID: <80B0D697-448A-4B24-AE73-20998F1EDA12@iotecdigital.com> Just what I was thinking. Bob S On Aug 23, 2014, at 12:13 , Richmond > wrote: Well, presumably one way to do this would be to check if the number is positive or negative, and then, if it is negative multiply it by -1, round it, and then multiply it by -1 again. From bobsneidar at iotecdigital.com Wed Aug 27 12:09:59 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 16:09:59 +0000 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <5E186B1C-821D-4FA4-892B-5096A8C5EB67@earthednet.org> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> <5E186B1C-821D-4FA4-892B-5096A8C5EB67@earthednet.org> Message-ID: <8AA0C8C9-7954-4C4D-A595-0553858B4927@iotecdigital.com> I?ve always thought that LC should include a roundUp and roundDown version of round(). Bob S From bobsneidar at iotecdigital.com Wed Aug 27 12:11:54 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 16:11:54 +0000 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> Message-ID: <789879BB-F6CE-46FE-B3B7-E53E31D4E01E@iotecdigital.com> Nicely done! I love this list!! Bob S On Aug 23, 2014, at 13:22 , Charles E Buchwald > wrote: function Floor pValue if pValue < 0 then return trunc(pValue) - 1 else return trunc(pValue) end Floor I know this is trivial, but here's a ceiling function, just to kind of fill out the thread: function Ceiling pValue if pValue < 0 then return trunc(pValue) else return trunc(pValue) + 1 end Ceiling From bobsneidar at iotecdigital.com Wed Aug 27 12:21:01 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 16:21:01 +0000 Subject: ._! In-Reply-To: References: <53FCFEC1.5070600@fourthworld.com> Message-ID: As an interesting side affect, and a treatise on why it?s never a good idea to do things this way, if I put Toshiba copier firmware on a USB drive using OS X, these hidden files end up also on the USB drive. Failing to remove these hidden files in Windows before attempting to apply the firmware update will COMPLETELY BORK THE COPIER REQUIRING THE NVRAM TO BE REBURNED!!!!! This requires a special tool that is not cheap. Good thing I backed up the copier first because it results in the copier reverting to factory defaults. This is a real crappy way to save file info. I like the old resource/data fork method Apple used to use. Not sure why they got rid of that. Bob S On Aug 26, 2014, at 16:01 , Mark Wieder wrote: > Richard Gaskin writes: > >> When copying files from a Mac to a volume formatted with NTFS or other >> Windows-compatible format, for each Mac file it also creates a second >> file with the same name but with "._" prepended to it. > > Those are Finder information files. The OSX Finder would cease to work > without them. I'm sure at some point someone thought this was a good idea. > >> I used to write scripts to remove them after the fact, but it would be >> much simpler/saner to just turn that off altogether. > > Removing them by script afterwards is the way to go. > > -- > Mark Wieder > ahsoftware at gmail.com From bobsneidar at iotecdigital.com Wed Aug 27 12:24:22 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 27 Aug 2014 16:24:22 +0000 Subject: ._! In-Reply-To: <014B77B3-8D53-493B-99D0-319B915DA53E@mac.com> References: <53FCFEC1.5070600@fourthworld.com> <014B77B3-8D53-493B-99D0-319B915DA53E@mac.com> Message-ID: Nice! I?m going to try to create a script to do this in Livecode. I have a forms generator app I use everyday for work to manage the forms I need to do copier installs. It would be nice to have a button I can click that can unzip the current firmware for the copier and put it on the USB drive! Bob S On Aug 26, 2014, at 16:43 , Paul Hibbert > wrote: After a quick search I found an old entry on Mac OS X Hints (MacWorld forum) that states "using the 'mv' and 'cp' commands (in Terminal) will move or copy files without the ._ files.", so maybe you could use a shell command to do the copying. From pete at lcsql.com Wed Aug 27 12:30:02 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 27 Aug 2014 09:30:02 -0700 Subject: Strange mailing list email. Message-ID: I received an email last night that my membership in this list had been suspended due to "excessive bounces" and the last bounce received from me was yesterday. I'm pretty sure from various things in the email that it was a genuine email and not some phishing attempt. I'm not sure exactly what this means since all my posts seem to have turned up on the list just fine and as far as I can tell I'm seeing everyone else's posts. And I have not received any emails indicating that my emails have bounced. There was a link in the email to re-enable my membership which I did but has anyone else had these messages? I also emailed Heather about it but haven't heard back yet. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From m.schonewille at economy-x-talk.com Wed Aug 27 12:41:09 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 27 Aug 2014 18:41:09 +0200 Subject: Strange mailing list email. In-Reply-To: References: Message-ID: <53FE0A25.9000806@economy-x-talk.com> Pter, You said you're not seeing my e-mails, so probably you don't read this. It looks like you have an overzealous spam filter in place. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/27/2014 18:30, Peter Haworth wrote: > I received an email last night that my membership in this list had been > suspended due to "excessive bounces" and the last bounce received from me > was yesterday. I'm pretty sure from various things in the email that it > was a genuine email and not some phishing attempt. > > I'm not sure exactly what this means since all my posts seem to have turned > up on the list just fine and as far as I can tell I'm seeing everyone > else's posts. And I have not received any emails indicating that my emails > have bounced. > > There was a link in the email to re-enable my membership which I did but > has anyone else had these messages? I also emailed Heather about it but > haven't heard back yet. > > Pete From jacque at hyperactivesw.com Wed Aug 27 13:03:19 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 27 Aug 2014 12:03:19 -0500 Subject: Size of window between close/startup In-Reply-To: References: Message-ID: <53FE0F57.3070801@hyperactivesw.com> On 8/27/2014, 2:10 AM, Terence Heaford wrote: > This is a stack on a Mac (Mavericks) > LC Community 6.7 dp 9. > > I have zoomed my stack and it is the window size excluding the mac menubar height. > > When checking the size in the proper inspector it is 1680 x 1002. > > I close the stack and LC asks me if I want to save the stack, I save it. > > I then reopen the stack and the window size has now changed to 1660 x 962. > > Is this a bug or the expected behaviour? The IDE truncates the window size to fit inside the area not occupied by the IDE palettes. This is controlled by the windowBoundingRect property. You can change it temporarily by launching LiveCode and putting this into the message box: set the windowboundingrect to the screenrect Then open your stack and it should be the size you expect. The next time you launch LiveCode, the windowBoundingRect will be reset, so it's a per-session solution. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From prothero at earthednet.org Wed Aug 27 13:10:55 2014 From: prothero at earthednet.org (Earthednet-wp) Date: Wed, 27 Aug 2014 10:10:55 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: <1DF55CFD-DE49-4AC7-9668-9C432B7E8B1D@iotecdigital.com> References: <8D18FC5088E05C8-2278-34928@webmail-vd021.sysops.aol.com> <53FDE87B.6050703@fourthworld.com> <8D1901CCC59AAC7-1C40-31501@webmail-d284.sysops.aol.com> <1DF55CFD-DE49-4AC7-9668-9C432B7E8B1D@iotecdigital.com> Message-ID: I've wondered what, specifically, "blocking" means. Does it mean that there are no idle messages sent? What is being blocked? Bill William Prothero http://es.earthednet.org > On Aug 27, 2014, at 8:16 AM, Bob Sneidar wrote: > > You cannot dispatch in time. But you can send in time. If you: > > send doSomething to me in 0 seconds > do someotherthingsfirst > > then someotherthingsfirst will run and anything else that comes after it. doSomething will run the next idle message. > > Bob S > > >> On Aug 27, 2014, at 07:46 , dunbarx at aol.com wrote: >> >> Richard. >> >> >> When you say "send" is blocking, in what way? Is this really any different that calling any handler? For example: >> >> >> on mouseUp >> doSomething >> end mouseUp >> >> >> on MouseUp >> send "doSomething" to this card >> end mouseUp >> >> >> Can you explain the difference? >> >> >> Craig >> >> >> >> -----Original Message----- >> From: Richard Gaskin >> To: use-livecode >> Sent: Wed, Aug 27, 2014 10:18 am >> Subject: Re: Should "dispatch" be extended for timers? >> >> >> Peter Haworth wrote: >> >>> Sounds like a great idea to me. I seem to remember that one of >>> dispatch/send is blocking and the other isn't. Could that be a >>> possible reason for the lack of "in" with dispatch? >> >> Both are blocking when called immediately; "send" can become on-blocking >> by specifying a later time to send the message. >> >> >> dunbarx wrote: >> >>> "Send' can, er, send parameters as well as a command. In a button >>> script: >>> >>> on mouseUp >>> send "putArg" && random(99) && random(99) && "XYZ" to me in 5 >>> end mouseUp >>> >>> on putArg var >>> put var >>> end putArg >>> >>> You get pairs of random numbers and the text as well. All parameters >>> come across as a batch. >>> >>> Or you can separate in the usual way: >>> on mouseUp >>> send "putArg" && random(99) & "," & any char of "ABCD" to me in 5 >>> end mouseUp >>> >>> on putArg var,var2 >>> put var2 --or the first one or both >>> end putArg >> >> Yes, both "send" and "dispatch" allow passing arguments, but as we saw >> with yesterday's forum post it seems unintuitive to have to put quotes >> around things that aren't strings, making "dispatch" feel more natural. >> >> Of course in a certain Zen sort of way even variable names are >> technically strings on some level, but having to quote them to pass them >> with "send" is something I see a lot of newcomers guess wrong. >> >> FWIW I submitted a request to have "dispatch" extended with "in" for timers: >> >> >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Wed Aug 27 13:17:37 2014 From: livfoss at mac.com (Graham Samuel) Date: Wed, 27 Aug 2014 19:17:37 +0200 Subject: Unicode: baby steps Message-ID: Having forgotten all I ever knew about Unicode (it wasn't much), I am trying to understand Unicode in LC, and although I have heard about "just works" I am not sure how to proceed. For example, the code for pi (Greek letter, lower case) is apparently (via internet sources) U+03C0 it also seems to be encoded as 960, but that's in HTML. Suppose I want to display pi in a field, "glyphPi". What does the script look like? I've tried: set the unicodeText of fld "glyphPi" to "03C0" and: set the unicodeText of fld "glyphPi" to "#03C0;" and: set the unicodeText of fld "glyphPi" to "U+03C0" oddly enough, all these appear to be legal, and all produce glyphs (some look like Kanji), but none of them are the symbol pi. Is this just a syntactical problem, or have I misunderstood the whole process? And when I do get it right, can I copy this field to the clipboard and paste it into another field which will then be visible to a user in the same form? Early experiments suggest I can't, but it could just be the usual finger trouble. TIA for any clarification Graham From prothero at earthednet.org Wed Aug 27 13:20:10 2014 From: prothero at earthednet.org (Earthednet-wp) Date: Wed, 27 Aug 2014 10:20:10 -0700 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <789879BB-F6CE-46FE-B3B7-E53E31D4E01E@iotecdigital.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> <789879BB-F6CE-46FE-B3B7-E53E31D4E01E@iotecdigital.com> Message-ID: <63F503F3-2E96-4494-B03D-442EF5859F84@earthednet.org> Beware: This function fails when the number is a negative integer. Bill > function Floor pValue > if pValue < 0 then return trunc(pValue) - 1 else return trunc(pValue) > end Floor William Prothero http://es.earthednet.org > On Aug 27, 2014, at 9:11 AM, Bob Sneidar wrote: > > Nicely done! I love this list!! > > Bob S > > > On Aug 23, 2014, at 13:22 , Charles E Buchwald > wrote: > > function Floor pValue > if pValue < 0 then return trunc(pValue) - 1 else return trunc(pValue) > end Floor > > I know this is trivial, but here's a ceiling function, just to kind of fill out the thread: > > function Ceiling pValue > if pValue < 0 then return trunc(pValue) else return trunc(pValue) + 1 > end Ceiling > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Aug 27 13:30:30 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 27 Aug 2014 10:30:30 -0700 Subject: [ANN] lcStackBrowser v2.1.5 released Message-ID: I'm pleased to announce the release of version v2.1.5 of lcStackBrowser. lcStackBrowser is a plugin replacement for the Livecode IDE Application/Project Browser. This version includes several bug fixes and enhancements, including the ability to view and edit the paragraph level field settings introduced in Livecode 5.5. A 30-day unrestricted trial version of lcStackBrowser is available at www.lcsql.com/lcstackbrowser.html Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From capellan2000 at gmail.com Wed Aug 27 13:32:59 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 27 Aug 2014 10:32:59 -0700 (PDT) Subject: mp3 files not playing on Windows In-Reply-To: <7F758634-649E-47A0-B929-4E698A395E4C@mailbox.sc.edu> References: <7F758634-649E-47A0-B929-4E698A395E4C@mailbox.sc.edu> Message-ID: <1409160779924-4682566.post@n4.nabble.com> FORD JR, CURT wrote > They are both 16bit; the one that works is 22.1 kHz, bitrate 56 kbps, > the ones that don't work are 44.1 kHz, 128 kbps. > But we've delivered many other modules with files at 44.1/128 > with no issues. > Could that cause a problem on this one computer, or > is there something else in the encoding that > would be worth looking at? Hi Curt, Could you connect remotely (using TeamViewer or other method) to that computer and verify md5 or sha-1 of these mp3 files that don't play? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/mp3-files-not-playing-on-Windows-tp4682500p4682566.html Sent from the Revolution - User mailing list archive at Nabble.com. From mikedoub at gmail.com Wed Aug 27 13:42:09 2014 From: mikedoub at gmail.com (Michael Doub) Date: Wed, 27 Aug 2014 13:42:09 -0400 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <8D18FC5088E05C8-2278-34928@webmail-vd021.sysops.aol.com> <53FDE87B.6050703@fourthworld.com> <8D1901CCC59AAC7-1C40-31501@webmail-d284.sysops.aol.com> <1DF55CFD-DE49-4AC7-9668-9C432B7E8B1D@iotecdigital.com> Message-ID: I think blocking was just a poor choice of wording. Here is my take on how it works: Think in terms of the message queue being a stack. A stack of things to do where the top entry is what is currently executing. Entries blow it will be executed in sequence as the top entry is popped off. When you call a function or handler, the currently executing handler is paused and pushed onto the stack and the requested function or handler is added as the top. Control returns the pushed entry when the top is finished and popped off. The send with no time specified and dispatch, both inserts the called hander, just below the top entry on the stack to it will be the next to execute when the current top entry is finished. Send with a time specified is a bit different in that it is inserted below the top entry of the stack at the time specified. Obviously if there are no entries, it becomes the top entry. This is my mental model of how things work. Please correct me if I am incorrect. Regards, Mike On Aug 27, 2014, at 1:10 PM, Earthednet-wp wrote: > I've wondered what, specifically, "blocking" means. Does it mean that there are no idle messages sent? What is being blocked? > Bill > > William Prothero > http://es.earthednet.org > >> On Aug 27, 2014, at 8:16 AM, Bob Sneidar wrote: >> >> You cannot dispatch in time. But you can send in time. If you: >> >> send doSomething to me in 0 seconds >> do someotherthingsfirst >> >> then someotherthingsfirst will run and anything else that comes after it. doSomething will run the next idle message. >> >> Bob S >> >> >>> On Aug 27, 2014, at 07:46 , dunbarx at aol.com wrote: >>> >>> Richard. >>> >>> >>> When you say "send" is blocking, in what way? Is this really any different that calling any handler? For example: >>> >>> >>> on mouseUp >>> doSomething >>> end mouseUp >>> >>> >>> on MouseUp >>> send "doSomething" to this card >>> end mouseUp >>> >>> >>> Can you explain the difference? >>> >>> >>> Craig >>> >>> >>> >>> -----Original Message----- >>> From: Richard Gaskin >>> To: use-livecode >>> Sent: Wed, Aug 27, 2014 10:18 am >>> Subject: Re: Should "dispatch" be extended for timers? >>> >>> >>> Peter Haworth wrote: >>> >>>> Sounds like a great idea to me. I seem to remember that one of >>>> dispatch/send is blocking and the other isn't. Could that be a >>>> possible reason for the lack of "in" with dispatch? >>> >>> Both are blocking when called immediately; "send" can become on-blocking >>> by specifying a later time to send the message. >>> >>> >>> dunbarx wrote: >>> >>>> "Send' can, er, send parameters as well as a command. In a button >>>> script: >>>> >>>> on mouseUp >>>> send "putArg" && random(99) && random(99) && "XYZ" to me in 5 >>>> end mouseUp >>>> >>>> on putArg var >>>> put var >>>> end putArg >>>> >>>> You get pairs of random numbers and the text as well. All parameters >>>> come across as a batch. >>>> >>>> Or you can separate in the usual way: >>>> on mouseUp >>>> send "putArg" && random(99) & "," & any char of "ABCD" to me in 5 >>>> end mouseUp >>>> >>>> on putArg var,var2 >>>> put var2 --or the first one or both >>>> end putArg >>> >>> Yes, both "send" and "dispatch" allow passing arguments, but as we saw >>> with yesterday's forum post it seems unintuitive to have to put quotes >>> around things that aren't strings, making "dispatch" feel more natural. >>> >>> Of course in a certain Zen sort of way even variable names are >>> technically strings on some level, but having to quote them to pass them >>> with "send" is something I see a lot of newcomers guess wrong. >>> >>> FWIW I submitted a request to have "dispatch" extended with "in" for timers: >>> >>> >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Aug 27 14:16:50 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 27 Aug 2014 11:16:50 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: Message-ID: <53FE2092.9010906@fourthworld.com> William Prothero wrote: > I've wondered what, specifically, "blocking" means. Does it mean that > there are no idle messages sent? What is being blocked? Given this: on mouseUp DoSomething send "DoSomethingElse" to me DoSomeOtherThing end mouseUp on DoSomethingElse put 1+1 into gSomeVar end DoSomethingElse ...then the continued execution of the "mouseUp" handler is effectively blocked until DoSomethingElse completes. But if we change the "send" line to this to defer its operation: send "DoSomethingElse" to me in 20 millisecs ...then the mouseUp handler continues on its way to DoSomeOtherThing, with DoSomethingElse happening 20 millisecs later, or at first idle if other processing takes longer than 20 milliseconds to complete. So in the first example, the order of messages as they execute is: 1. mouseUp 2. DoSomething 3. DoSomethingElse 4. DoSomeOtherThing But with the timer introduced in the second example it becomes: 1. mouseUp 2. DoSomething 3. DoSomeOtherThing 4. DoSomethingElse -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From t.heaford at btinternet.com Wed Aug 27 14:24:58 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Wed, 27 Aug 2014 19:24:58 +0100 Subject: Size of window between close/startup In-Reply-To: <53FE0F57.3070801@hyperactivesw.com> References: <53FE0F57.3070801@hyperactivesw.com> Message-ID: <55E3E85C-06EB-48F6-9E92-A29D78FE4C62@btinternet.com> On 27 Aug 2014, at 18:03, J. Landman Gay wrote: > The IDE truncates the window size to fit inside the area not occupied by the IDE palettes. This is controlled by the windowBoundingRect property. You can change it temporarily by launching LiveCode and putting this into the message box: > > set the windowboundingrect to the screenrect > > Then open your stack and it should be the size you expect. The next time you launch LiveCode, the windowBoundingRect will be reset, so it's a per-session solution. Thanks for your response. I tried exactly what you said. Zoomed the window and quit LC. Opened LC and executed "set the windowboundingrect to the screenrect? in the message box and then opened my stack. The stack size was 1660 x 1002 as expected but the top of the window is now underneath the menubar. Is there something else I am missing? I read the dictionary entry for windowboundingrect and it says: "The windowBoundingRect value is checked against the window's position before the preOpenStack message is sent. This means that if you want a stack to extend outside the windowBoundingRect, you should set its rectangle property to the desired value in a preOpenStack handler. This ensures that the window is enlarged to the size you specify before it appears, instead of being resized when the windowBoundingRect is checked." So, unless I am misunderstanding (probably) this suggests that I have to save the rect of the window somewhere and resize the window on opening in the preOpenStack handler? Does this also apply to standalone apps? All the best Terry From charles at buchwald.ca Wed Aug 27 14:26:09 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Wed, 27 Aug 2014 13:26:09 -0500 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <789879BB-F6CE-46FE-B3B7-E53E31D4E01E@iotecdigital.com> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> <789879BB-F6CE-46FE-B3B7-E53E31D4E01E@iotecdigital.com> Message-ID: My apologies... I tested this when I first wrote it, and I thought I had everything covered. As others have pointed out, it requires a test for negative integers, so it should be: function Floor pValue if pValue is an integer OR pValue < 0 then return trunc(pValue) - 1 else return trunc(pValue) end Floor function Ceiling pValue if pValue is an integer OR pValue > 0 then return trunc(pValue) + 1 else return trunc(pValue) end Ceiling - Charles On 27 Aug 2014, at 11:11 AM, Bob Sneidar wrote: > Nicely done! I love this list!! > > Bob S > > > On Aug 23, 2014, at 13:22 , Charles E Buchwald > wrote: > > function Floor pValue > if pValue < 0 then return trunc(pValue) - 1 else return trunc(pValue) > end Floor > > I know this is trivial, but here's a ceiling function, just to kind of fill out the thread: > > function Ceiling pValue > if pValue < 0 then return trunc(pValue) else return trunc(pValue) + 1 > end Ceiling > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From ambassador at fourthworld.com Wed Aug 27 14:28:38 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 27 Aug 2014 11:28:38 -0700 Subject: ._! In-Reply-To: References: Message-ID: <53FE2356.1020608@fourthworld.com> Bob Sneidar wrote: > This is a real crappy way to save file info. I like the old > resource/data fork method Apple used to use. Not sure why > they got rid of that. Ironically, for interoperability. :) But more specifically, for interoperability with NeXT, which was renamed with a new UI to become OS X. The dual-fork file system of Mac Classic was AFAIK unique to that OS, and for all practical purposes died along with it. When converting NexT into OS X they changed the NeXT file system from UFS to HFS, but also clearly and loudly marked all resource fork use for deprecation. They ported the OS-level stuff needed to support it, but not the tools which might encourage future use. The res fork was fun and simple, but kills opportunities for interoperability (hence this thread, though it would be simple enough for Apple to provide an option to turn off the generation of these ._ files when not desired). Moreover, the res fork's openness makes it difficult to enforce many common Unix permission settings, which form a key part of the stronger security which characterizes Unix-like systems from non-Unix systems. One line of HyperTalk could destroy a Mac Classic System file's ability to boot (as I learned from experimentation once I'd made a backup and had my boot disk handy ). Bundles, as OS X uses today for what used to be resource fork elements, are much more flexible and take full advantage of all the file system's metadata and security features. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jbv at souslelogo.com Wed Aug 27 14:45:55 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 27 Aug 2014 21:45:55 +0300 Subject: revXMLDeleteNode and LC server In-Reply-To: References: Message-ID: <8a6e93237ed5daecc9340d9d168f8653.squirrel@185.8.104.234> Hi list I have a script using revXMLDeleteNode that runs fine on OSX and LC 6.5.2, but with LC server I get the error Handler: can't find handler (revXMLDeleteNode) The dictonary for LC 6.5.2 says for revXMLDeleteNode : Platforms: Desktop, Server, Web and Mobile I've googled the problem but the only thing I found is this link http://downloads.livecode.com/livecode/6_5_0/LiveCodeNotes-6_5_0_dp_2.pdf which says "The entry for revXMLDeleteNode (command) has been updated" without any further detail... Any idea how to delete a xml node in LC server ? Thanks jbv From pete at lcsql.com Wed Aug 27 14:59:10 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 27 Aug 2014 11:59:10 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <8D18FC5088E05C8-2278-34928@webmail-vd021.sysops.aol.com> <53FDE87B.6050703@fourthworld.com> <8D1901CCC59AAC7-1C40-31501@webmail-d284.sysops.aol.com> <1DF55CFD-DE49-4AC7-9668-9C432B7E8B1D@iotecdigital.com> Message-ID: On Wed, Aug 27, 2014 at 10:42 AM, Michael Doub wrote: > The send with no time specified and dispatch, both inserts the called > hander, just below the top entry on the stack to it will be the next to > execute when the current top entry is finished. I might be misunderstanding your explanation but not sure that's correct, at least for dispatch. Reason I say that is that you can immediately check the it variable after a dispatch command to see it was handled or not. Plus, if you dispatch a function, you can get hold of the returned value in the the result variable in the next line after the dispatch command. So it seems clear the the calling handler waits (or "blocks" in my terminology) until the dispatched handler has completed before continuing. I think send works the same way if it has no time specified. According to the dictionary, a send with no time executes the "sent" handler immediately, then execution of the current handler continues. With a send in time, the current handler finishes executing before the "sent" handler is started. Back to the original suggestion, I still think adding an in time to dispatch would be a good idea. I'm just not sure how the ability to use the it and result variables after a dispatch with an in time would work. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From hello at simonsmith.co Wed Aug 27 15:17:03 2014 From: hello at simonsmith.co (Simon Smith) Date: Wed, 27 Aug 2014 21:17:03 +0200 Subject: revXMLDeleteNode and LC server In-Reply-To: <8a6e93237ed5daecc9340d9d168f8653.squirrel@185.8.104.234> References: <8a6e93237ed5daecc9340d9d168f8653.squirrel@185.8.104.234> Message-ID: Hi revXMLDeleteNode requires the XML Library which does not seem to be included as part of the LC Server (along with other the other libraries) - so while the dictionary does say it is supported by the server, this does not seem to be access or add the needed libraries currently. Hope I am wrong - would also like to know if its possible. Kind Regards Simon On Wed, Aug 27, 2014 at 8:45 PM, wrote: > Hi list > > I have a script using revXMLDeleteNode that runs fine on OSX > and LC 6.5.2, but with LC server I get the error > Handler: can't find handler (revXMLDeleteNode) > > The dictonary for LC 6.5.2 says for revXMLDeleteNode : > Platforms: Desktop, Server, Web and Mobile > > I've googled the problem but the only thing I found is this link > http://downloads.livecode.com/livecode/6_5_0/LiveCodeNotes-6_5_0_dp_2.pdf > which says "The entry for revXMLDeleteNode (command) has been updated" > without any further detail... > > Any idea how to delete a xml node in LC server ? > > Thanks > jbv > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Wed Aug 27 15:27:12 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 27 Aug 2014 22:27:12 +0300 Subject: revXMLDeleteNode and LC server In-Reply-To: References: <8a6e93237ed5daecc9340d9d168f8653.squirrel@185.8.104.234> Message-ID: Simon, Actually when I say LC server it's actually my account at on-rev. Obviously the XML library is included since other commands like revXMLRootNode, revXMLChildNames, revXMLNodeContents etc work perfectly in the same script... The problem seems to be limited to revXMLDeleteNode... jbv > Hi > > revXMLDeleteNode requires the XML Library which does not seem to be > included as part of the LC Server (along with other the other libraries) - > so while the dictionary does say it is supported by the server, this does > not seem to be access or add the needed libraries currently. Hope I am > wrong - > would also like to know if its possible. > > Kind Regards > Simon > > > On Wed, Aug 27, 2014 at 8:45 PM, wrote: > >> Hi list >> >> I have a script using revXMLDeleteNode that runs fine on OSX >> and LC 6.5.2, but with LC server I get the error >> Handler: can't find handler (revXMLDeleteNode) >> >> The dictonary for LC 6.5.2 says for revXMLDeleteNode : >> Platforms: Desktop, Server, Web and Mobile >> >> I've googled the problem but the only thing I found is this link >> http://downloads.livecode.com/livecode/6_5_0/LiveCodeNotes-6_5_0_dp_2.pdf >> which says "The entry for revXMLDeleteNode (command) has been updated" >> without any further detail... >> >> Any idea how to delete a xml node in LC server ? >> >> Thanks >> jbv >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From fraser.gordon at livecode.com Wed Aug 27 15:32:05 2014 From: fraser.gordon at livecode.com (Fraser Gordon) Date: Wed, 27 Aug 2014 20:32:05 +0100 Subject: Unicode: baby steps In-Reply-To: References: Message-ID: <53FE3235.1000204@livecode.com> On 27/08/2014 18:17, Graham Samuel wrote: > Having forgotten all I ever knew about Unicode (it wasn't much), I am trying to understand Unicode in LC, and although I have heard about "just works" I am not sure how to proceed. For example, the code for pi (Greek letter, lower case) is apparently (via internet sources) > > U+03C0 > > it also seems to be encoded as 960, but that's in HTML. 0x3C0 (hexadecimal) is 960 (decimal). For some reason, Unicode codepoints (their name for a character) are normally given in hex. > Suppose I want to display pi in a field, "glyphPi". What does the script look like? I've tried: The approach depends on whether you are using 6.x or 7.0. In 7.0, you can enter the pi symbol directly in the script editor or you can insert it using numToCodepoint: -- Note that you set text, not unicodeText in 7 set the text of field "fld" to numToCodepoint(0x3C0) In 6.x, you'd have to do something like the following: -- Will not work on PowerPC! set the unicodeText of field "fld" to numToChar(0xC0) & numToChar(0x03) The bytes are in "little-endian" order so the least-significant byte comes first. Unless you are using a PowerPC machine (in which the bytes come in the opposite order). In short, if you want to use Unicode, 7.0 makes it far, far easier. At least, I think so, but having worked on it for the past year, I might be a little biased ;) > oddly enough, all these appear to be legal, and all produce glyphs (some look like Kanji), but none of them are the symbol pi. Is this just a syntactical problem, or have I misunderstood the whole process? The unicodeText of a field expects 16-bit quantities (rather than bytes/characters) for each character and isn't smart enough to know that's not what you're giving it. It interprets each pair of characters in the string as these 16-bit quantities and ends up displaying random characters (and, because the vast majority of characters in Unicode by quantity are East Asian ideographic characters, you'll usually get something resembling Chinese). > And when I do get it right, can I copy this field to the clipboard and paste it into another field which will then be visible to a user in the same form? Early experiments suggest I can't, but it could just be the usual finger trouble. In 7.0, Unicode should copy and paste just fine. I can't say for sure in 6.x - I haven't actually tried it! Regards, Fraser From livfoss at mac.com Wed Aug 27 16:03:45 2014 From: livfoss at mac.com (Graham Samuel) Date: Wed, 27 Aug 2014 22:03:45 +0200 Subject: Unicode: baby steps In-Reply-To: <53FE3235.1000204@livecode.com> References: <53FE3235.1000204@livecode.com> Message-ID: <93AD4AB6-03E7-4E7E-84BC-34EB0C23EC1E@mac.com> Fraser, that's very very helpful, although still quite mysterious to me. For example I thought Unicode was cleverer than just having a two-byte representation for everything, but allowed single byte representation for the 'lower end' of the catalogue of characters. However I quite see that anything that won't fit into a single byte must occupy two bytes. I am interested in your statement that in LC 7 you can enter the pi symbol directly in the script editor - doesn't that depend on having a way or representing that symbol, either via a palette or via a combination of keys? No keyboard will cover the whole spectrum of Unicode, so this part I find very difficult to understand. If for example I really wanted to type some Kanji in the middle of a text in a European language, I understand that LC would allow it in the sense of allowing strings rich enough to store it and presumably display technology rich enough to display it, but in practice how would I get such input? My research is really directed towards this sort of question, and the palette seems to be the only viable answer. I wonder if you agree. I have avoided 7 as I have had enough problems with my current project without wondering what a new engine would do to it, but now I see that if I am to use even one Unicode character, I would be better off testing in the available LC 7 versions. I will study everything else you have written most carefully. Thanks again Graham On 27 Aug 2014, at 21:32, Fraser Gordon wrote: > On 27/08/2014 18:17, Graham Samuel wrote: >> Having forgotten all I ever knew about Unicode (it wasn't much), I am trying to understand Unicode in LC, and although I have heard about "just works" I am not sure how to proceed. For example, the code for pi (Greek letter, lower case) is apparently (via internet sources) >> >> U+03C0 >> >> it also seems to be encoded as 960, but that's in HTML. > 0x3C0 (hexadecimal) is 960 (decimal). For some reason, Unicode > codepoints (their name for a character) are normally given in hex. > >> Suppose I want to display pi in a field, "glyphPi". What does the script look like? I've tried: > The approach depends on whether you are using 6.x or 7.0. In 7.0, you > can enter the pi symbol directly in the script editor or you can insert > it using numToCodepoint: > > -- Note that you set text, not unicodeText in 7 > set the text of field "fld" to numToCodepoint(0x3C0) > > In 6.x, you'd have to do something like the following: > > -- Will not work on PowerPC! > set the unicodeText of field "fld" to numToChar(0xC0) & numToChar(0x03) > > The bytes are in "little-endian" order so the least-significant byte > comes first. Unless you are using a PowerPC machine (in which the bytes > come in the opposite order). > > In short, if you want to use Unicode, 7.0 makes it far, far easier. At > least, I think so, but having worked on it for the past year, I might be > a little biased ;) > >> oddly enough, all these appear to be legal, and all produce glyphs (some look like Kanji), but none of them are the symbol pi. Is this just a syntactical problem, or have I misunderstood the whole process? > The unicodeText of a field expects 16-bit quantities (rather than > bytes/characters) for each character and isn't smart enough to know > that's not what you're giving it. It interprets each pair of characters > in the string as these 16-bit quantities and ends up displaying random > characters (and, because the vast majority of characters in Unicode by > quantity are East Asian ideographic characters, you'll usually get > something resembling Chinese). > >> And when I do get it right, can I copy this field to the clipboard and paste it into another field which will then be visible to a user in the same form? Early experiments suggest I can't, but it could just be the usual finger trouble. > In 7.0, Unicode should copy and paste just fine. I can't say for sure in > 6.x - I haven't actually tried it! > > Regards, > Fraser > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From B.Cornaz at gmx.net Wed Aug 27 16:15:31 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Wed, 27 Aug 2014 22:15:31 +0200 Subject: permuting a string (was Re: Speed) Message-ID: <1EEC2033-A49E-48CB-AFE3-C3E7021A3E26@gmx.net> Alex wrote : >To make it faster, it *should* be serialized, so that it isn't actually recursive; that should be quite easy (but will make the code much less > easy to read or understand, so I haven't done it yet). If you think it's worth pursuing, let me know and I'll have a go at unrolling the recursiveness. Recursive scripts is something I know in principle about, but never have used them before. They are quite compact, but I find it hard to follow, especially as your variables are emptied in each new entry into the script (f.i. t3 in Alex's script). I tried to unroll it and make it serial, but I am having troubles with it. I think I should start in the opposite direction and work back, but it's too late now for me to solve it. First a little sleep. I also tried to serialise Geoff's script, but am running into the same difficulty. I haven't grasped the concept completely I guess. If you could give me a hint, Alex, I'd be happy. As for the Duplicates : Alex wrote : > permut() is the optimized version - optimize simepl cases of 1 or 2 chars, eliminate duplicates as we go. Well, it does so, but not completely. First, as I discovered in my own script with eliminating duplicates, it needs the input in the form of the most duplicates in the beginning and then trailing off. F.i. 111223 would work , but 112223 or 112333 would not return all of the possible (non duplicate) permutations. Moreover, in the script of Alex, a couple of duplicates slip thru. F.I. 1123 gives 14 permutations i.s.o. 12. In the list below, the # are the doubles. 1123 1132 1213 1231 1312 1321 2113 2131 2311 # 2311 # 3112 3121 3211 # 3211 # An advantage of Alex's script and also my own over other scripts is, that these scripts give a better ordaining of the permutations as a result. In a more systematic way, due to the fact how they are constructed of course. Thanks for all your input, I really appreciate, Cheers, Beat From jacque at hyperactivesw.com Wed Aug 27 16:15:59 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 27 Aug 2014 15:15:59 -0500 Subject: Size of window between close/startup In-Reply-To: <55E3E85C-06EB-48F6-9E92-A29D78FE4C62@btinternet.com> References: <53FE0F57.3070801@hyperactivesw.com> <55E3E85C-06EB-48F6-9E92-A29D78FE4C62@btinternet.com> Message-ID: <53FE3C7F.80707@hyperactivesw.com> On 8/27/2014, 1:24 PM, Terence Heaford wrote: > The stack size was 1660 x 1002 as expected but the top of the window > is now underneath the menubar. Yes, it will be if the stack is taller than the available screen space, or the top is above the menu bar when its centered on screen. You can push it down using the message box or a script: set the top of this stack to 45. > I read the dictionary entry for windowboundingrect and it says: > > "The windowBoundingRect value is checked against the window's > position before the preOpenStack message is sent. This means that if > you want a stack to extend outside the windowBoundingRect, you should > set its rectangle property to the desired value in a preOpenStack > handler. This ensures that the window is enlarged to the size you > specify before it appears, instead of being resized when the > windowBoundingRect is checked." > > So, unless I am misunderstanding (probably) this suggests that I have > to save the rect of the window somewhere and resize the window on > opening in the preOpenStack handler? Yes, or reference something in the stack that's the right dimensions. I'm working on a stack where a background image is the same size as the stack, so I just set the width and height of the stack to the width and height of that image. If you know you'll never change the dimensions, you can just hard-code a width and height into the preOpenStack handler. You probably shouldn't hard-code an exact rectangle because that rectangle may not be accurate on a monitor of a different size. > Does this also apply to standalone apps? In standalones, I believe the windowboundingrect is restricted only by the OS "furniture" -- menubar, dock, task bar, etc. and is basically the "working screenrect". If your stack fits inside that area you won't have to worry about it. The IDE sets the bounding rectangle much smaller to accomdate its own palettes, but that's not the default. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pderocco at ix.netcom.com Wed Aug 27 16:25:40 2014 From: pderocco at ix.netcom.com (Paul D. DeRocco) Date: Wed, 27 Aug 2014 13:25:40 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <8D18FC5088E05C8-2278-34928@webmail-vd021.sysops.aol.com><53FDE87B.6050703@fourthworld.com><8D1901CCC59AAC7-1C40-31501@webmail-d284.sysops.aol.com><1DF55CFD-DE49-4AC7-9668-9C432B7E8B1D@iotecdigital.com> Message-ID: > From: Peter Haworth > > I think send works the same way if it has no time specified. > According to > the dictionary, a send with no time executes the "sent" handler > immediately, then execution of the current handler continues. > With a send > in time, the current handler finishes executing before the > "sent" handler > is started. And if you want nonblocking operation with no delay, you specify a zero time limit. > Back to the original suggestion, I still think adding an in time to > dispatch would be a good idea. I'm just not sure how the > ability to use the > it and result variables after a dispatch with an in time would work. I think the purpose of "dispatch" is to report if/how the message is handled, which implies blocking. I don't see what a dispatch with a time limit would accomplish that can't be done with a "send". It's possible that "dispatch" skips over the combining of the message and arguments into a single string, and then breaking them apart again. On the other hand, it's possible that the internal data structure that holds a message in the timer list only stores a single string anyway, in which case "dispatch" with a time limit would have no advantage at all over "send" with a time limit. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com From hello at simonsmith.co Wed Aug 27 16:39:23 2014 From: hello at simonsmith.co (Simon Smith) Date: Wed, 27 Aug 2014 22:39:23 +0200 Subject: revXMLDeleteNode and LC server In-Reply-To: References: <8a6e93237ed5daecc9340d9d168f8653.squirrel@185.8.104.234> Message-ID: Helps if I test it first Tried ony my lc server - seems to work fine. Simon On Wed, Aug 27, 2014 at 9:27 PM, wrote: > Simon, > Actually when I say LC server it's actually my account at on-rev. > Obviously the XML library is included since other commands like > revXMLRootNode, revXMLChildNames, revXMLNodeContents etc > work perfectly in the same script... > The problem seems to be limited to revXMLDeleteNode... > > jbv > > > > > Hi > > > > revXMLDeleteNode requires the XML Library which does not seem to be > > included as part of the LC Server (along with other the other libraries) > - > > so while the dictionary does say it is supported by the server, this does > > not seem to be access or add the needed libraries currently. Hope I am > > wrong - > > would also like to know if its possible. > > > > Kind Regards > > Simon > > > > > > On Wed, Aug 27, 2014 at 8:45 PM, wrote: > > > >> Hi list > >> > >> I have a script using revXMLDeleteNode that runs fine on OSX > >> and LC 6.5.2, but with LC server I get the error > >> Handler: can't find handler (revXMLDeleteNode) > >> > >> The dictonary for LC 6.5.2 says for revXMLDeleteNode : > >> Platforms: Desktop, Server, Web and Mobile > >> > >> I've googled the problem but the only thing I found is this link > >> > http://downloads.livecode.com/livecode/6_5_0/LiveCodeNotes-6_5_0_dp_2.pdf > >> which says "The entry for revXMLDeleteNode (command) has been updated" > >> without any further detail... > >> > >> Any idea how to delete a xml node in LC server ? > >> > >> Thanks > >> jbv > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Wed Aug 27 16:58:16 2014 From: sundown at pacifier.com (JB) Date: Wed, 27 Aug 2014 13:58:16 -0700 Subject: delete lines Message-ID: <54279CE3-D152-4772-A6C5-A0837F0792EC@pacifier.com> I am using the files to list all of the files in a folder. This also list all of the hidden files & they begin with a dot ?.?. What is the fastest way to delete all lines in a variable that begin with a dot? John Balgenorth From m.schonewille at economy-x-talk.com Wed Aug 27 17:07:02 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 27 Aug 2014 23:07:02 +0200 Subject: delete lines In-Reply-To: <54279CE3-D152-4772-A6C5-A0837F0792EC@pacifier.com> References: <54279CE3-D152-4772-A6C5-A0837F0792EC@pacifier.com> Message-ID: <53FE4876.9020008@economy-x-talk.com> Hi John, filter myVar without ".*" -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/27/2014 22:58, JB wrote: > I am using the files to list all of the files in a > folder. This also list all of the hidden files & > they begin with a dot ?.?. > > What is the fastest way to delete all lines in > a variable that begin with a dot? > > John Balgenorth > From sundown at pacifier.com Wed Aug 27 17:06:59 2014 From: sundown at pacifier.com (JB) Date: Wed, 27 Aug 2014 14:06:59 -0700 Subject: delete lines In-Reply-To: <53FE4876.9020008@economy-x-talk.com> References: <54279CE3-D152-4772-A6C5-A0837F0792EC@pacifier.com> <53FE4876.9020008@economy-x-talk.com> Message-ID: Hi Mark. Thank you so very much! I really appreciate it a lot. John Balgenorth On Aug 27, 2014, at 2:07 PM, Mark Schonewille wrote: > Hi John, > > filter myVar without ".*" > > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > On 8/27/2014 22:58, JB wrote: >> I am using the files to list all of the files in a >> folder. This also list all of the hidden files & >> they begin with a dot ?.?. >> >> What is the fastest way to delete all lines in >> a variable that begin with a dot? >> >> John Balgenorth >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alain_farmer at yahoo.com Wed Aug 27 17:28:21 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Wed, 27 Aug 2014 14:28:21 -0700 Subject: Strange mailing list email. In-Reply-To: References: Message-ID: <1409174901.80612.YahooMailNeo@web126106.mail.ne1.yahoo.com> Yes, Peter, this is happening to me regularly (2-3 times per week). Exactly as you described. On Wednesday, August 27, 2014 12:30:36 PM, Peter Haworth wrote: I received an email last night that my membership in this list had been suspended due to "excessive bounces" and the last bounce received from me was yesterday.? I'm pretty sure from various things in the email that it was a genuine email and not some phishing attempt. I'm not sure exactly what this means since all my posts seem to have turned up on the list just fine and as far as I can tell I'm seeing everyone else's posts.? And I have not received any emails indicating that my emails have bounced. There was a link in the email to re-enable my membership which I did but has anyone else had these messages?? I also emailed Heather about it but haven't heard back yet. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Wed Aug 27 17:33:19 2014 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 27 Aug 2014 22:33:19 +0100 Subject: permuting a string (was Re: Speed) In-Reply-To: <1EEC2033-A49E-48CB-AFE3-C3E7021A3E26@gmx.net> References: <1EEC2033-A49E-48CB-AFE3-C3E7021A3E26@gmx.net> Message-ID: <53FE4E9F.8060204@tweedly.net> I'm going to reply 2 or 3 separate answers ... otherwise it will get confusing :-) Sorry if this overloads anyone trying to delete or ignore the thread message by message. On 27/08/2014 21:15, Beat Cornaz wrote: > As for the Duplicates : > > Alex wrote : > >> permut() is the optimized version - optimize simepl cases of 1 or 2 chars, eliminate duplicates as we go. > Well, it does so, but not completely. First, as I discovered in my own script with eliminating duplicates, it needs the input in the form of the most duplicates in the beginning and then trailing off. > F.i. 111223 would work , but 112223 or 112333 would not return all of the possible (non duplicate) permutations. Hmmm - I can't see what it gets wrong in these cases. Can you be specific about what is missed ? (maybe off-list) Thanks. > Moreover, in the script of Alex, a couple of duplicates slip thru. > F.I. 1123 gives 14 permutations i.s.o. 12. In the list below, the # are the doubles. Yeah, sorry - bad optimization on my part. The lines at fault were case 2 put temp & CR & char 2 of temp & char 1 of temp into t2 break and their equivalent at the head of the function. This misses the case where the last two chars of the output string are the same (i.e. a duplicate in the last two places). Update version of the function enclosed below, changing those lines to case 2 put temp into t2 if char 1 of temp <> char 2 of temp then put CR & char 2 of temp & char 1 of temp after t2 break Full script follows below. -- Alex. function permut pMute if the number of chars in pMute = 1 then return pMute if the number of chars in pMute = 2 then if char 1 of pMute = char 2 of pMute then return pMute else return pMute & CR & char 2 of pMute & char 1 of pMute end if end if put empty into t3 put empty into tDone repeat with i = 1 to the number of chars in pMute put char i of pMute into c if c is among the chars of tDone then next repeat put c after tDone put pMute into temp delete char i of temp switch the the number of chars in temp case 1 put temp into t2 break case 2 put temp into t2 if char 1 of temp <> char 2 of temp then put CR & char 2 of temp & char 1 of temp after t2 break default put permut(temp) into t2 end switch repeat for each line L in t2 put c & L & CR after t3 end repeat end repeat return t3 end permut From alex at tweedly.net Wed Aug 27 18:02:18 2014 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 27 Aug 2014 23:02:18 +0100 Subject: permuting a string (was Re: Speed) In-Reply-To: <1EEC2033-A49E-48CB-AFE3-C3E7021A3E26@gmx.net> References: <1EEC2033-A49E-48CB-AFE3-C3E7021A3E26@gmx.net> Message-ID: <53FE556A.3010600@tweedly.net> (second reply ..) On 27/08/2014 21:15, Beat Cornaz wrote: > Alex wrote : > > Recursive scripts is something I know in principle about, but never have used them before. They are quite compact, but I find it hard to follow, especially as your variables are emptied in each new entry into the script (f.i. t3 in Alex's script). > I tried to unroll it and make it serial, but I am having troubles with it. I think I should start in the opposite direction and work back, but it's too late now for me to solve it. First a little sleep. > I also tried to serialise Geoff's script, but am running into the same difficulty. I haven't grasped the concept completely I guess. > > If you could give me a hint, Alex, I'd be happy. > Thoinking about recursive scripts can be very hard ..... but often thinking about problems and recursive solutions is easy (i.e. solutions not scripts). So don't get bogged down in the details of the script - think about what it's doing at the abstract level. You want to permute a set of characters. So you take each possible character in turn to be the first character of the (partial) answer, and follow it by all permutations of the remaining characters. (That's it - that's all you're trying to do :-) Oh - except for the terminal case where there is only one character - when the answer is that single character. so the pseudo-code is just repeat with i = 1 to the number of chars in the string get a copy of the string with "char i" deleted recursively get the result for that put char i at the front of each line of that result end repeat As for "variables are emptied" - I don't think of it that way, I think of it as : a recursive function is typically "pure", uses neither global nor script-local variables - the only contact with the rest of the world is the parameters passed in and the result passed back. I'm sure there are cases where recursive functions use globals (or script-locals), but that's usually a recipe for confusion in a recursive world. When you try to "de-recurse" the function - i'e' serialize it - you usually finish up with variables that are building up the partial results and/or the state of the working - and that can be confusing. I'll have a go at serializing this code - hopefully tonight (i.e. starting now and not getting myself tied up in knots with it :-) -- Alex. From admin at FlexibleLearning.com Wed Aug 27 18:04:36 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Wed, 27 Aug 2014 23:04:36 +0100 Subject: Julian dates Message-ID: <002d01cfc242$e433bde0$ac9b39a0$@FlexibleLearning.com> Bob Sneidar wrote... Not to throw a wrench in the works, but wasn't there some discussion in the past about different versions of Julian dates? Which one is the more widely accepted? I suppose the question could be formed, which one does Microsoft use for Excel? :-) Hi Bob There is only one Julian Date system, but there are 2 methods of calculating the corresponding date. Either method is good for dates after the switch to the Gregorian calendar (1752 or 1582 with many exceptions). The difference between the two depends on whether you want the proleptic-Gregorian (which incorrectly assumes a continuation of the modern Gregorian calendar before this year), or the Julian calendar method for early dates. Of course, you also need the appropriate corresponding algorithm to convert the Julian Day Number back to a date. (Note that the 'Julian Calendar' and 'Julian Day Numbers' are not related in any way... damn stupid naming system that has caused and continues to cause no end of confusion.) The 2 different methods explain why there are 2 different dates quoted for Julian Day Number 0, as there are 2 different assumptions. The most common conversion algorithms are proleptic-Gregorian which is fine unless you need historical accuracy... 14 October 1066 was actually a Saturday, but most people quote a Tuesday because they use the 'wrong' algorithm. They also end up with dates that would not have existed due to the change in leap year calculations. One final point... All conversion algorithms (to/from the proleptic/Julian system) assume the first day of the year to be 1 January. Not the case. For the English-speaking world, the year actually started on Lady Day 15 March until 1752 (which became 6 April, hence the tax year date), and hence the oft-used notation such as "1 Jan 1765/1766" to avoid confusion. Google "Lady Day date" to see what I mean. Finding a pair of 'true-Julian calendar' algorithms, however, is actually quite hard and it took me a long time. All the above is of academic interest if you work with 'modern' dates only. Both ChartMaker and FieldFormatter, however, do the job properly and will give the correct date and day of the week for both 'modern' and 'historical' dates. Excel uses proleptic-Gregorian, since you asked. Hugh Senior FLCo From charles at buchwald.ca Wed Aug 27 18:29:28 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Wed, 27 Aug 2014 17:29:28 -0500 Subject: Sunset, sunrise, twilight calculations in LC? In-Reply-To: <63F503F3-2E96-4494-B03D-442EF5859F84@earthednet.org> References: <00a601cfbecb$9ed39a60$dc7acf20$@FlexibleLearning.com> <53F88669.8030906@gmail.com> <344DE9E6-FAF5-499A-BDB4-7E8D3CB768C5@earthednet.org> <53F8AEA8.6050607@gmail.com> <6C02CAB7-B988-47E6-9FA9-03ED5B52502D@earthednet.org> <53F8BF69.6010505@gmail.com> <53F8D306.50808@hyperactivesw.com> <53F8D7DD.2070305@gmail.com> <939B7299-9B7E-47B3-9173-936206FD306F@buchwald.ca> <53F8DD69.8080302@gmail.com> <53F8E595.7040606@hyperactivesw.com> <789879BB-F6CE-46FE-B3B7-E53E31D4E01E@iotecdigital.com> <63F503F3-2E96-4494-B03D-442EF5859F84@earthednet.org> Message-ID: <02F0C580-7FAA-4DBC-801B-F51E8991DA3C@buchwald.ca> I would like to append this to what may be a record number of incorrect scripts on my part. Hugh pointed out in the forums that the floor of 5 is 5, and the ceiling of -5 is -5. These scripts might actually be correct, but I'm not guaranteeing anything at this point... My apologies for the noise, and thank you, list members, for your patience and persistence. function Floor pValue if pValue is an integer OR pValue > 0 then return trunc(pValue) else return trunc(pValue) - 1 end Floor function Ceiling pValue if pValue is an integer OR pValue < 0 then return trunc(pValue) else return trunc(pValue) + 1 end Ceiling On 27 Aug 2014, at 12:20 PM, Earthednet-wp wrote: > Beware: > This function fails when the number is a negative integer. > Bill > >> function Floor pValue >> if pValue < 0 then return trunc(pValue) - 1 else return trunc(pValue) >> end Floor > > William Prothero > http://es.earthednet.org > >> On Aug 27, 2014, at 9:11 AM, Bob Sneidar wrote: >> >> Nicely done! I love this list!! >> >> Bob S >> >> >> On Aug 23, 2014, at 13:22 , Charles E Buchwald > wrote: >> >> function Floor pValue >> if pValue < 0 then return trunc(pValue) - 1 else return trunc(pValue) >> end Floor >> >> I know this is trivial, but here's a ceiling function, just to kind of fill out the thread: >> >> function Ceiling pValue >> if pValue < 0 then return trunc(pValue) else return trunc(pValue) + 1 >> end Ceiling >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com Mac OSX 10.9.4, LC 6.6.2 Commercial LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From mikedoub at gmail.com Wed Aug 27 20:06:26 2014 From: mikedoub at gmail.com (Michael Doub) Date: Wed, 27 Aug 2014 20:06:26 -0400 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <8D18FC5088E05C8-2278-34928@webmail-vd021.sysops.aol.com> <53FDE87B.6050703@fourthworld.com> <8D1901CCC59AAC7-1C40-31501@webmail-d284.sysops.aol.com> <1DF55CFD-DE49-4AC7-9668-9C432B7E8B1D@iotecdigital.com> Message-ID: <3EE0D84F-293F-4305-B257-522BA01A5A4D@gmail.com> Peter, Thanks for setting me straight This means that send with no time specified and dispatch behave exactly the same behavior as a hander or function call, where the currently executing entry is push on to the stack and sent or dispatched item is put on top and is executed. This makes sense since results are returned to the caller. if you added a time to dispatch it would not be possible to return a value. The notion of a stack in any language pushes the current routines context on to the stack, then runs the new routine, and pops the stack to restore the original context and then allow the caller to resume execution. Data from the called routine is passed back to the caller by modifying the context of the calling routine to point to the returned data. In the case of the send with a time, the original context of the calling routine is long gone, so there is no way to pass the data back on the stack. This is why call-back procedures came about. Data is passed to them in the same way that parameters are passed to a routine. I still like the idea of adding time as you suggested because of the more clear syntax, even if we can?t return data is the ?with time? case. -= Mike On Aug 27, 2014, at 2:59 PM, Peter Haworth wrote: > On Wed, Aug 27, 2014 at 10:42 AM, Michael Doub wrote: > >> The send with no time specified and dispatch, both inserts the called >> hander, just below the top entry on the stack to it will be the next to >> execute when the current top entry is finished. > > > I might be misunderstanding your explanation but not sure that's correct, > at least for dispatch. Reason I say that is that you can immediately check > the it variable after a dispatch command to see it was handled or not. > Plus, if you dispatch a function, you can get hold of the returned value > in the the result variable in the next line after the dispatch command. So > it seems clear the the calling handler waits (or "blocks" in my > terminology) until the dispatched handler has completed before continuing. > > I think send works the same way if it has no time specified. According to > the dictionary, a send with no time executes the "sent" handler > immediately, then execution of the current handler continues. With a send > in time, the current handler finishes executing before the "sent" handler > is started. > > Back to the original suggestion, I still think adding an in time to > dispatch would be a good idea. I'm just not sure how the ability to use the > it and result variables after a dispatch with an in time would work. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Wed Aug 27 20:13:56 2014 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 28 Aug 2014 01:13:56 +0100 Subject: permuting a string (was Re: Speed) In-Reply-To: <53FE556A.3010600@tweedly.net> References: <1EEC2033-A49E-48CB-AFE3-C3E7021A3E26@gmx.net> <53FE556A.3010600@tweedly.net> Message-ID: <53FE7444.9030806@tweedly.net> On 27/08/2014 23:02, Alex Tweedly wrote: > > I'll have a go at serializing this code - hopefully tonight (i.e. > starting now and not getting myself tied up in knots with it :-) > Here's a serialized version. Not as fast as I had hoped - it's about twice as fst as the recursive vesion, but that means the non-duplicate case ("abcdefghij") still takes about 13000ms, while the duplicated versions are ("abcdabcdab") = 180 msec and "abbbbbbbbb" < 0 Remember .... I didn't say this code would be clear :-) function serialpermut pMute if the number of chars in pMute = 1 then return pMute put empty into tOutput -- an entry has -- item 1 is a prefix -- item 2 is the remaining set of chars to permute -- tOutput contains the result of the permutation put TAB & pMute &CR into todo set the itemdel to TAB repeat if todo is empty then exit repeat put todo into tDoing put empty into todo repeat for each line L in tDoing put item 1 of L into tPrefix put item 2 of L into tPerm switch the number of chars in tPerm case 1 put tPrefix & tPerm & CR after tOutput break case 2 put tPrefix & tPerm & CR after tOutput if char 1 of tPerm <> char 2 of tPerm then put tPrefix & char 2 of tPerm & char 1 of tPerm & CR after tOutput break default put empty into tDone repeat with i = 1 to the number of chars in tPerm put char i of tPerm into c if c is among the chars of tDone then next repeat put c after tDone put char 1 to i-1 of tPerm & char i+1 to -1 of tPerm into temp put tPrefix & c & TAB & temp & CR after todo end repeat -- over chars in tPerm end switch end repeat end repeat return tOutput end serialpermut -- Alex. From cszasz at me.com Wed Aug 27 20:55:51 2014 From: cszasz at me.com (Charles Szasz) Date: Wed, 27 Aug 2014 18:55:51 -0600 Subject: Apps on Flash Drive Advice Message-ID: I have an app that was designed to run on the desktop on school computers, which are mostly windows based. However, the app may have to run on flash drive because of administrator's issues. I know I will have to disable preferences that I had for the desktop version. I have already tried my app on a flash drive with a school computer. It runs but seems a bit slow. Any advice on how to maximize the performance of an app running on a flash drive? Sent from my iPad From capellan2000 at gmail.com Wed Aug 27 21:03:44 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 27 Aug 2014 18:03:44 -0700 (PDT) Subject: Apps on Flash Drive Advice In-Reply-To: References: Message-ID: <1409187824533-4682593.post@n4.nabble.com> Could you copy your app/stack to the hard disk cache ot temp folder and run your app/stack from this folder of the user computer? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Apps-on-Flash-Drive-Advice-tp4682592p4682593.html Sent from the Revolution - User mailing list archive at Nabble.com. From dunbarx at aol.com Wed Aug 27 22:01:27 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 27 Aug 2014 22:01:27 -0400 (EDT) Subject: Strange mailing list email. In-Reply-To: <53FE0A25.9000806@economy-x-talk.com> References: <53FE0A25.9000806@economy-x-talk.com> Message-ID: <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> I get this sort of thing about once a week. It is legit, though annoying. I keep having to renew my membership from a link supplied in the eMail. Craig Newman -----Original Message----- From: Mark Schonewille To: How to use LiveCode Sent: Wed, Aug 27, 2014 12:42 pm Subject: Re: Strange mailing list email. Pter, You said you're not seeing my e-mails, so probably you don't read this. It looks like you have an overzealous spam filter in place. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/27/2014 18:30, Peter Haworth wrote: > I received an email last night that my membership in this list had been > suspended due to "excessive bounces" and the last bounce received from me > was yesterday. I'm pretty sure from various things in the email that it > was a genuine email and not some phishing attempt. > > I'm not sure exactly what this means since all my posts seem to have turned > up on the list just fine and as far as I can tell I'm seeing everyone > else's posts. And I have not received any emails indicating that my emails > have bounced. > > There was a link in the email to re-enable my membership which I did but > has anyone else had these messages? I also emailed Heather about it but > haven't heard back yet. > > Pete _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From cszasz at me.com Thu Aug 28 00:22:10 2014 From: cszasz at me.com (Charles Szasz) Date: Wed, 27 Aug 2014 22:22:10 -0600 Subject: Apps on Flash Drive Advice Message-ID: <2DD0D0C2-C552-4192-9692-A3D6ED3A0688@me.com> Al I have not tried or even thought of that. Is there a script that you can use for windows that would automatically do that for the user when he double-clicks on the exe file on the flash drive? Any scripts you can suggest would be greatly appreciated! Sent from my iPad From niconiko at gmail.com Thu Aug 28 00:32:19 2014 From: niconiko at gmail.com (Nicolas Cueto) Date: Thu, 28 Aug 2014 13:32:19 +0900 Subject: Strange mailing list email. In-Reply-To: <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> Message-ID: Months back or maybe even last year, I had to set a gmail filter so that some members' list-messages came through despite being marked as spam. Alain Farmer's and Craig Newman's are such two. There may be others too (not Peter Haworth's). For what it's worth. -- Nicolas Cueto On Thu, Aug 28, 2014 at 11:01 AM, wrote: > I get this sort of thing about once a week. It is legit, though annoying. > I keep having to renew my membership from a link supplied in the eMail. > > > Craig Newman > > > > -----Original Message----- > From: Mark Schonewille > To: How to use LiveCode > Sent: Wed, Aug 27, 2014 12:42 pm > Subject: Re: Strange mailing list email. > > > Pter, > > You said you're not seeing my e-mails, so probably you don't read this. > It looks like you have an overzealous spam filter in place. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" > http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > On 8/27/2014 18:30, Peter Haworth wrote: > > I received an email last night that my membership in this list had been > > suspended due to "excessive bounces" and the last bounce received from me > > was yesterday. I'm pretty sure from various things in the email that it > > was a genuine email and not some phishing attempt. > > > > I'm not sure exactly what this means since all my posts seem to have > turned > > up on the list just fine and as far as I can tell I'm seeing everyone > > else's posts. And I have not received any emails indicating that my > emails > > have bounced. > > > > There was a link in the email to re-enable my membership which I did but > > has anyone else had these messages? I also emailed Heather about it but > > haven't heard back yet. > > > > Pete > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bvlahos at mac.com Thu Aug 28 01:25:34 2014 From: bvlahos at mac.com (Bill Vlahos) Date: Wed, 27 Aug 2014 22:25:34 -0700 Subject: Apps on Flash Drive Advice In-Reply-To: References: Message-ID: Charles, InfoWallet is also designed to be run from a USB drive as well as from a hard disk. There are a lot of advantages in doing so. The only limitation I see running from a USB drive is how long it takes to load the data file or save the data file. The larger the data file the longer it takes because USB access is much slower than to a hard drive. LiveCode apps typically load completely into memory and then run. It might take a bit longer to load from a USB drive than hard disk but once loaded should run the same unless data or preferences are updated during program run. How and when does your app read or write to disk? Reduce or eliminate any reading or writing to disk to reduce the performance penalty. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) On Aug 27, 2014, at 5:55 PM, Charles Szasz wrote: > I have an app that was designed to run on the desktop on school computers, which are mostly windows based. However, the app may have to run on flash drive because of administrator's issues. > > I know I will have to disable preferences that I had for the desktop version. I have already tried my app on a flash drive with a school computer. It runs but seems a bit slow. Any advice on how to maximize the performance of an app running on a flash drive? > > Sent from my iPad > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Thu Aug 28 01:34:51 2014 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 28 Aug 2014 05:34:51 +0000 Subject: Apps on Flash Drive Advice In-Reply-To: References: Message-ID: Make sure that you are using a quality USB stick as well. Some cheap and nasty ones can be awfully slow. Terry... On 28/08/2014 3:25 pm, "Bill Vlahos" wrote: >Charles, > >InfoWallet is also designed to be run from a USB drive as well as from a >hard disk. There are a lot of advantages in doing so. The only limitation >I see running from a USB drive is how long it takes to load the data file >or save the data file. The larger the data file the longer it takes >because USB access is much slower than to a hard drive. > >LiveCode apps typically load completely into memory and then run. It >might take a bit longer to load from a USB drive than hard disk but once >loaded should run the same unless data or preferences are updated during >program run. > >How and when does your app read or write to disk? Reduce or eliminate any >reading or writing to disk to reduce the performance penalty. > >Bill Vlahos >_________________ >InfoWallet (http://www.infowallet.com) is about keeping your important >life information with you, accessible, and secure. >lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) >RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) > >On Aug 27, 2014, at 5:55 PM, Charles Szasz wrote: > >> I have an app that was designed to run on the desktop on school >>computers, which are mostly windows based. However, the app may have to >>run on flash drive because of administrator's issues. >> >> I know I will have to disable preferences that I had for the desktop >>version. I have already tried my app on a flash drive with a school >>computer. It runs but seems a bit slow. Any advice on how to maximize >>the performance of an app running on a flash drive? >> >> Sent from my iPad >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From simplsol at aol.com Thu Aug 28 02:04:08 2014 From: simplsol at aol.com (Paul Looney) Date: Wed, 27 Aug 2014 23:04:08 -0700 Subject: Apps on Flash Drive Advice In-Reply-To: References: Message-ID: On Aug 27, 2014, at 10:34 PM, Terry Judd wrote: > Make sure that you are using a quality USB stick as well. Some cheap and > nasty ones can be awfully slow. > > Terry... A good USB 3 flash drive will help eliminate some of the speed penalty with flash vs a hard drive. Prices have come down a lot over the last year. (Assumes the computer has USB 3, of course.) Paul Looney From t.heaford at btinternet.com Thu Aug 28 02:40:43 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Thu, 28 Aug 2014 07:40:43 +0100 Subject: Size of window between close/startup In-Reply-To: <53FE3C7F.80707@hyperactivesw.com> References: <53FE0F57.3070801@hyperactivesw.com> <55E3E85C-06EB-48F6-9E92-A29D78FE4C62@btinternet.com> <53FE3C7F.80707@hyperactivesw.com> Message-ID: <332BEBCC-4CBA-483F-82E6-6DBE8EDC7106@btinternet.com> On 27 Aug 2014, at 21:15, J. Landman Gay wrote: > Yes, or reference something in the stack that's the right dimensions. I'm working on a stack where a background image is the same size as the stack, so I just set the width and height of the stack to the width and height of that image. If you know you'll never change the dimensions, you can just hard-code a width and height into the preOpenStack handler. You probably shouldn't hard-code an exact rectangle because that rectangle may not be accurate on a monitor of a different size. I decided to hard code the minimum stack size set in the stack properties and start the app with the window at that size by setting it in the preOpenStack handler. Thanks for your help. Terry From toolbook at kestner.de Thu Aug 28 03:38:52 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 28 Aug 2014 09:38:52 +0200 Subject: AW: Massiv performance difference between LC 6.5.2 and 6.6.2 In-Reply-To: <005301cfbd16$82be8d50$883ba7f0$@de> References: <3A4BB7E4-0997-4B57-B83E-3FD921EB64CF@aol.com> <005301cfbd16$82be8d50$883ba7f0$@de> Message-ID: <000401cfc293$1db843b0$5928cb10$@de> I could narrow down my performance issue and solve it. I have used a third party LC library since years to change the hidden flag of one of my files on windows. This library worked fine up to LC 6.5.2 and takes in LC 6.6.2 about 100-300 sec to execute. Now I replaced this library function by a plain "get shell ("attrib" && "-h" && myFile)", which takes only ticks. Since the third party library is closed source, I don't know, what else happens in this library and what causes this delay. I will go on with the pure shell command. Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Tiemo Hollmann TB > Gesendet: Donnerstag, 21. August 2014 10:04 > An: 'How to use LiveCode' > Betreff: AW: Massiv performance difference between LC 6.5.2 and 6.6.2 > > Hello Fred, > > no, I'm on Windows 7 and my issue seems to be related to a windows shell > operation, changing a file flag. But not yet verified. > > Tiemo > > > > > -----Urspr?ngliche Nachricht----- > > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im > Auftrag > > von Fred Moyer > > Gesendet: Mittwoch, 20. August 2014 14:42 > > An: use-livecode at lists.runrev.com > > Betreff: Re: Massiv performance difference between LC 6.5.2 and 6.6.2 > > > > Is your problem possibly related to the problem that I?m having with > 6.6.2? > > When I press cmd-O, it takes forever for the open window to show up. > > It?s > been > > suggested that this delay might be related to the fact that I have > LiveCode > > listed in System Preferences: Security & Privacy: Accessibility. (I?m > using > > Mac.) The delay only happens once. The 2nd time it is normal. > > > > Fred > > > > On Aug 20, 2014, at 2:02 AM, use-livecode-request at lists.runrev.com wrote: > > > > > Message: 13 > > > Date: Tue, 19 Aug 2014 19:02:48 +0200 > > > From: "Tiemo Hollmann TB" > > > To: "'How to use LiveCode'" > > > Subject: Massiv performance difference between LC 6.5.2 and 6.6.2 > > > Message-ID: <005201cfbbcf$67da2e10$378e8a30$@de> > > > Content-Type: text/plain; charset="us-ascii" > > > > > > Hello, > > > > > > When opening one of my stacks in LC 6.5.2 IDE it performs its tasks > > > in > > > 1-2 sec. When opening the same stack in 6.6.2 it takes between 30 - > > > 90 > secs. > > > > > > The program checks a local file and some PHPs with MySQL calls on my > server. > > > I tested both IDE versions with the same stack multiple times with > > > the same result, to exclude server issues. > > > > > > Before digging hours or days into the depth of my old stack I wanted > > > to ask, if there are any known issues between these LC versions or > > > hints where to look first? > > > > > > > > > > > > Thanks for any hint > > > > > > Tiemo > > > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From B.Cornaz at gmx.net Thu Aug 28 07:46:36 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Thu, 28 Aug 2014 13:46:36 +0200 Subject: permuting a string (was Re: Speed) Message-ID: Thanks Alex, I will mail you off-list about the order of elements in the input and provide some examples. And thanks for the correction of your script. Seems to work fine now. I should have seen that one myself, but it was a bit late last night, sorry :-) Alex, you've explained the recursive functions quite well for me. Great. I will sit down later and dig into your serialised script. And even if it does not turn out to be the fastest, I will gave gotten my head around the concept of recursion, which might prove quite valuable for me in the future. Cheers, Beat From cszasz at me.com Thu Aug 28 09:23:08 2014 From: cszasz at me.com (Charles Szasz) Date: Thu, 28 Aug 2014 07:23:08 -0600 Subject: Apps on Flash Drive Advice Message-ID: Thanks everybody for your advice on apps running on a flash drive! Sent from my iPad From userev at canelasoftware.com Thu Aug 28 13:27:57 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Thu, 28 Aug 2014 10:27:57 -0700 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: <53FD7549.7020405@hyperactivesw.com> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> Message-ID: <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> Hi Everyone, We finally got approval from Apple. We did not list the app in the store though. You need to get the link from our page to download. http://livecloud.io/runrevlive-14-conference-app/ We have been making a lot of improvements to the app since our submission to Apple. We have already begun the process of submitting an update through Apple with the latest changes. Maybe the update will be available in time? If you are testing on TestFlight, I would stay with that version as it is the most current. The main difference between them is that we are now storing your favorites in the cloud. So, if you install the app on another device, your favorite sessions will be there for you. And, they are synced across devices automatically. The native fields are nice, but not critical to using this app. Most of the updates are really for Android as we attempt to make things more fluid for that platform. If you are not attending the conference, I plan on providing commentary and lots of pics on things going on. You might feel like you are there. Hang out in the comments section to see my live blogging. Hopefully others will join in with me and add to the spirit of the conference. Best regards, Mark Talluto livecloud.io canelasoftware.com From roger.e.eller at sealedair.com Thu Aug 28 14:16:34 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 28 Aug 2014 14:16:34 -0400 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> Message-ID: I'm sure that many attendees, or at least some still use older devices. My iPad (gen1 )can only run iOS 5.1. Can LiveCode no longer build for the earlier versions? ~Roger On Thu, Aug 28, 2014 at 1:27 PM, Mark Talluto wrote: > Hi Everyone, > > We finally got approval from Apple. We did not list the app in the store > though. You need to get the link from our page to download. > > http://livecloud.io/runrevlive-14-conference-app/ > > We have been making a lot of improvements to the app since our submission > to Apple. We have already begun the process of submitting an update through > Apple with the latest changes. > > Maybe the update will be available in time? If you are testing on > TestFlight, I would stay with that version as it is the most current. The > main difference between them is that we are now storing your favorites in > the cloud. So, if you install the app on another device, your favorite > sessions will be there for you. And, they are synced across devices > automatically. > > The native fields are nice, but not critical to using this app. Most of > the updates are really for Android as we attempt to make things more fluid > for that platform. > > If you are not attending the conference, I plan on providing commentary > and lots of pics on things going on. You might feel like you are there. > Hang out in the comments section to see my live blogging. Hopefully others > will join in with me and add to the spirit of the conference. > > > Best regards, > > Mark Talluto > livecloud.io > canelasoftware.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Thu Aug 28 14:54:11 2014 From: sundown at pacifier.com (JB) Date: Thu, 28 Aug 2014 11:54:11 -0700 Subject: join columns Message-ID: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> Richard Gaskin wrote a function to get a column from a list. function GetCol pData, pCol --Richard Gaskin set the itemdel to tab put empty into tReturnList repeat for each line tLine in pData put item pCol of tLine &cr after tReturnList end repeat delete last char of tReturnList -- trailing CR return tReturnList end GetCol Does anyone know how to convert this so you can join the selected columns back together in any order you want? John Balgenorth From revdev at pdslabs.net Thu Aug 28 15:10:51 2014 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 28 Aug 2014 12:10:51 -0700 Subject: join columns In-Reply-To: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> Message-ID: <53FF7EBB.3000408@pdslabs.net> If pData is a CR-delimited list where each line contains tab-delimited items, why not use 'split by column'? -- example: switch positions of columns 2 and 4 split pData by column put pData[4] into tTemp2 put pData[2] into pData[4] put tTemp2 into pData[2] -- then put it back together as a list: combine pData by column That should do it. Phil Davis On 8/28/14, 11:54 AM, JB wrote: > Richard Gaskin wrote a function to get a column > from a list. > > function GetCol pData, pCol --Richard Gaskin > set the itemdel to tab > put empty into tReturnList > repeat for each line tLine in pData > put item pCol of tLine &cr after tReturnList > end repeat > delete last char of tReturnList -- trailing CR > return tReturnList > end GetCol > > Does anyone know how to convert this so you can > join the selected columns back together in any > order you want? > > John Balgenorth > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis From sundown at pacifier.com Thu Aug 28 15:09:30 2014 From: sundown at pacifier.com (JB) Date: Thu, 28 Aug 2014 12:09:30 -0700 Subject: join columns In-Reply-To: <53FF7EBB.3000408@pdslabs.net> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <53FF7EBB.3000408@pdslabs.net> Message-ID: <6D0C3A00-EAB4-402A-9252-0F4F57A32649@pacifier.com> Thanks a whole bunch, Phil !!! John Balgenorth On Aug 28, 2014, at 12:10 PM, Phil Davis wrote: > If pData is a CR-delimited list where each line contains tab-delimited items, why not use 'split by column'? > > -- example: switch positions of columns 2 and 4 > > split pData by column > put pData[4] into tTemp2 > put pData[2] into pData[4] > put tTemp2 into pData[2] > > > -- then put it back together as a list: > > combine pData by column > > That should do it. > > Phil Davis > > > > On 8/28/14, 11:54 AM, JB wrote: >> Richard Gaskin wrote a function to get a column >> from a list. >> >> function GetCol pData, pCol --Richard Gaskin >> set the itemdel to tab >> put empty into tReturnList >> repeat for each line tLine in pData >> put item pCol of tLine &cr after tReturnList >> end repeat >> delete last char of tReturnList -- trailing CR >> return tReturnList >> end GetCol >> >> Does anyone know how to convert this so you can >> join the selected columns back together in any >> order you want? >> >> John Balgenorth >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Phil Davis > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From revdev at pdslabs.net Thu Aug 28 15:17:45 2014 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 28 Aug 2014 12:17:45 -0700 Subject: join columns In-Reply-To: <53FF7EBB.3000408@pdslabs.net> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <53FF7EBB.3000408@pdslabs.net> Message-ID: <53FF8059.4060904@pdslabs.net> Before doing the 'split', you could set the columnDelimiter to whatever char is used as the item delimiter. In other words, you aren't limited to tabs as your column delimiter. Phil On 8/28/14, 12:10 PM, Phil Davis wrote: > If pData is a CR-delimited list where each line contains tab-delimited > items, why not use 'split by column'? > > -- example: switch positions of columns 2 and 4 > > split pData by column > put pData[4] into tTemp2 > put pData[2] into pData[4] > put tTemp2 into pData[2] > > > -- then put it back together as a list: > > combine pData by column > > That should do it. > > Phil Davis > > > > On 8/28/14, 11:54 AM, JB wrote: >> Richard Gaskin wrote a function to get a column >> from a list. >> >> function GetCol pData, pCol --Richard Gaskin >> set the itemdel to tab >> put empty into tReturnList >> repeat for each line tLine in pData >> put item pCol of tLine &cr after tReturnList >> end repeat >> delete last char of tReturnList -- trailing CR >> return tReturnList >> end GetCol >> >> Does anyone know how to convert this so you can >> join the selected columns back together in any >> order you want? >> >> John Balgenorth >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > -- Phil Davis From alain_farmer at yahoo.com Thu Aug 28 15:20:47 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Thu, 28 Aug 2014 12:20:47 -0700 Subject: join columns In-Reply-To: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> Message-ID: <1409253647.74206.YahooMailNeo@web126101.mail.ne1.yahoo.com> on insertAsColumn colNumber, dataToInsert, intoThisTable ??? -- ??? if the number of lines of dataToInsert is not the number of lines of intoThisTable ??? then die "Error: Lists have different lengths." ??? -- ??? set the itemdel to tab ??? repeat for each line x in dataToInsert ??????? get line x of dataToInsert ??? ??? put it & tab before item colNumber of line x of intoThisTable ??? end repeat ??? return intoThisTable ??? -- insertAsColumn on die dyingMessage ??? answer dyingMessage ??? exit to top end die On Thursday, August 28, 2014 2:59:04 PM, JB wrote: Richard Gaskin wrote a function to get a column from a list. function GetCol pData, pCol --Richard Gaskin ? ? set the itemdel to tab ? ? put empty into tReturnList ? ? repeat for each line tLine in pData ? ? ? ? put item pCol of tLine &cr after tReturnList ? ? end repeat ? ? delete last char of tReturnList -- trailing CR ? ? return tReturnList end GetCol Does anyone know how to convert this so you can join the selected columns back together in any order you want? John Balgenorth _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alain_farmer at yahoo.com Thu Aug 28 15:24:24 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Thu, 28 Aug 2014 12:24:24 -0700 Subject: join columns In-Reply-To: <1409253647.74206.YahooMailNeo@web126101.mail.ne1.yahoo.com> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <1409253647.74206.YahooMailNeo@web126101.mail.ne1.yahoo.com> Message-ID: <1409253864.5033.YahooMailNeo@web126102.mail.ne1.yahoo.com> Correction: function insertAsColumn colNumber, dataToInsert, intoThisTable ??? -- ??? if the number of lines of dataToInsert is not the number of lines of intoThisTable ??? then die "Error: Lists have different lengths." ??? -- ??? set the itemdel to tab ??? repeat for each line x in dataToInsert ??????? get line x of dataToInsert ??? ??? put it & tab before item colNumber of line x of intoThisTable ??? end repeat ??? return intoThisTable ??? -- end insertAsColumn on die dyingMessage ??? answer dyingMessage ??? exit to top end die On , Alain Farmer wrote: on insertAsColumn colNumber, dataToInsert, intoThisTable ??? -- ??? if the number of lines of dataToInsert is not the number of lines of intoThisTable ??? then die "Error: Lists have different lengths." ??? -- ??? set the itemdel to tab ??? repeat for each line x in dataToInsert ??????? get line x of dataToInsert ??? ??? put it & tab before item colNumber of line x of intoThisTable ??? end repeat ??? return intoThisTable ??? -- insertAsColumn on die dyingMessage ??? answer dyingMessage ??? exit to top end die On Thursday, August 28, 2014 2:59:04 PM, JB wrote: Richard Gaskin wrote a function to get a column from a list. function GetCol pData, pCol --Richard Gaskin ? ? set the itemdel to tab ? ? put empty into tReturnList ? ? repeat for each line tLine in pData ? ? ? ? put item pCol of tLine &cr after tReturnList ? ? end repeat ? ? delete last char of tReturnList -- trailing CR ? ? return tReturnList end GetCol Does anyone know how to convert this so you can join the selected columns back together in any order you want? John Balgenorth _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Thu Aug 28 15:25:07 2014 From: sundown at pacifier.com (JB) Date: Thu, 28 Aug 2014 12:25:07 -0700 Subject: join columns In-Reply-To: <53FF8059.4060904@pdslabs.net> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <53FF7EBB.3000408@pdslabs.net> <53FF8059.4060904@pdslabs.net> Message-ID: <80C616B3-6F29-454C-92E6-D630B69DC9E0@pacifier.com> That is what I thought but once again thank yu for the info and the clarification. It helps a lot! John Balgenorth On Aug 28, 2014, at 12:17 PM, Phil Davis wrote: > Before doing the 'split', you could set the columnDelimiter to whatever char is used as the item delimiter. In other words, you aren't limited to tabs as your column delimiter. > > Phil > > > On 8/28/14, 12:10 PM, Phil Davis wrote: >> If pData is a CR-delimited list where each line contains tab-delimited items, why not use 'split by column'? >> >> -- example: switch positions of columns 2 and 4 >> >> split pData by column >> put pData[4] into tTemp2 >> put pData[2] into pData[4] >> put tTemp2 into pData[2] >> >> >> -- then put it back together as a list: >> >> combine pData by column >> >> That should do it. >> >> Phil Davis >> >> >> >> On 8/28/14, 11:54 AM, JB wrote: >>> Richard Gaskin wrote a function to get a column >>> from a list. >>> >>> function GetCol pData, pCol --Richard Gaskin >>> set the itemdel to tab >>> put empty into tReturnList >>> repeat for each line tLine in pData >>> put item pCol of tLine &cr after tReturnList >>> end repeat >>> delete last char of tReturnList -- trailing CR >>> return tReturnList >>> end GetCol >>> >>> Does anyone know how to convert this so you can >>> join the selected columns back together in any >>> order you want? >>> >>> John Balgenorth >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> > > -- > Phil Davis > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Thu Aug 28 15:26:47 2014 From: sundown at pacifier.com (JB) Date: Thu, 28 Aug 2014 12:26:47 -0700 Subject: join columns In-Reply-To: <1409253864.5033.YahooMailNeo@web126102.mail.ne1.yahoo.com> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <1409253647.74206.YahooMailNeo@web126101.mail.ne1.yahoo.com> <1409253864.5033.YahooMailNeo@web126102.mail.ne1.yahoo.com> Message-ID: <3208FD14-DAFA-4ADC-BD6C-EE6D8E70ED2B@pacifier.com> Thank you, Alain! This example will help me out. John Balgenoth On Aug 28, 2014, at 12:24 PM, Alain Farmer wrote: > Correction: > > function insertAsColumn colNumber, dataToInsert, intoThisTable > -- > if the number of lines of dataToInsert is not the number of lines of intoThisTable > then die "Error: Lists have different lengths." > -- > set the itemdel to tab > repeat for each line x in dataToInsert > get line x of dataToInsert > put it & tab before item colNumber of line x of intoThisTable > end > repeat > return intoThisTable > -- > end insertAsColumn > > on die dyingMessage > answer dyingMessage > exit to top > end die > > > > > On , Alain Farmer wrote: > > > > on insertAsColumn colNumber, dataToInsert, intoThisTable > -- > if the number of lines of dataToInsert is not the number of lines of intoThisTable > then die "Error: Lists have different lengths." > -- > set the itemdel to tab > repeat for each line x in dataToInsert > get line x of dataToInsert > put it & tab before item colNumber of line x of intoThisTable > end > repeat > return intoThisTable > -- > insertAsColumn > > on die dyingMessage > answer dyingMessage > exit to top > end die > > > > On Thursday, August 28, 2014 2:59:04 PM, JB wrote: > > > > Richard Gaskin wrote a function to get a column > from a list. > > function GetCol pData, pCol --Richard Gaskin > set the itemdel to tab > put empty into tReturnList > repeat for each line tLine in pData > put item pCol of tLine &cr after tReturnList > end repeat > delete last char of tReturnList -- trailing CR > return tReturnList > end GetCol > > Does anyone know how to convert this so you can > join the selected columns back together in any > order you want? > > John > Balgenorth > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alain_farmer at yahoo.com Thu Aug 28 15:53:23 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Thu, 28 Aug 2014 12:53:23 -0700 Subject: join columns In-Reply-To: <3208FD14-DAFA-4ADC-BD6C-EE6D8E70ED2B@pacifier.com> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <1409253647.74206.YahooMailNeo@web126101.mail.ne1.yahoo.com> <1409253864.5033.YahooMailNeo@web126102.mail.ne1.yahoo.com> <3208FD14-DAFA-4ADC-BD6C-EE6D8E70ED2B@pacifier.com> Message-ID: <1409255603.44464.YahooMailNeo@web126106.mail.ne1.yahoo.com> Here is the paranoid version : function insertAsColumn colNumber, dataToInsert, intoThisTable ??? -- ??? if dataToInsert is empty then ??? ??? answer "insert empty column ?" with "cancel" or "insert" ??? ??? if it is "cancel" then exit to top ??? end if ??? -- ??? if intoThisTable is empty then return dataToInsert ??? -- ??? if the number of lines of dataToInsert is not the number of lines of intoThisTable ??? then die "Error: Lists have different lengths." ??? -- ??? set the itemdel to tab ??? put the number of items of line 1 of intoThisTable into lastCol ??? if (colNumber < 1) or (colNumber > lastCol) then ??? ??? ask "colNumber must be an integer between 1 and" && lastCol with 1 ??? ??? if the result is "cancel" then exit to top ??? ??? if (it is empty) or (it is not a number) ??? ??? then die "colNumber must be an integer between 1 and" && lastCol ??? end if ??? -- ??? repeat for each line x in dataToInsert ??????? get line x of dataToInsert ??? ??? put it & tab before item colNumber of line x of intoThisTable ??? end repeat ??? return intoThisTable ??? -- end insertAsColumn on die dyingMessage ??? answer dyingMessage ??? exit to top end die On Thursday, August 28, 2014 3:31:30 PM, JB wrote: Thank you, Alain!? This example will help me out. John Balgenoth On Aug 28, 2014, at 12:24 PM, Alain Farmer wrote: > Correction: > > function insertAsColumn colNumber, dataToInsert, intoThisTable >? ? -- >? ? if the number of lines of dataToInsert is not the number of lines of intoThisTable >? ? then die "Error: Lists have different lengths." >? ? -- >? ? set the itemdel to tab >? ? repeat for each line x in dataToInsert >? ? ? ? get line x of dataToInsert >? ? ? ? put it & tab before item colNumber of line x of intoThisTable >? ? end > repeat >? ? return intoThisTable >? ? -- > end insertAsColumn > > on die dyingMessage >? ? answer dyingMessage >? ? exit to top > end die > > > > > On , Alain Farmer wrote: > > > > on insertAsColumn colNumber, dataToInsert, intoThisTable >? ? -- >? ? if the number of lines of dataToInsert is not the number of lines of intoThisTable >? ? then die "Error: Lists have different lengths." >? ? -- >? ? set the itemdel to tab >? ? repeat for each line x in dataToInsert >? ? ? ? get line x of dataToInsert >? ? ? ? put it & tab before item colNumber of line x of intoThisTable >? ? end > repeat >? ? return intoThisTable >? ? -- > insertAsColumn > > on die dyingMessage >? ? answer dyingMessage >? ? exit to top > end die > > > > On Thursday, August 28, 2014 2:59:04 PM, JB wrote: > > > > Richard Gaskin wrote a function to get a column > from a list. > > function GetCol pData, pCol --Richard Gaskin >? ? set the itemdel to tab >? ? put empty into tReturnList >? ? repeat for each line tLine in pData >? ? ? ? put item pCol of tLine &cr after tReturnList >? ? end repeat >? ? delete last char of tReturnList -- trailing CR >? ? return tReturnList > end GetCol > > Does anyone know how to convert this so you can > join the selected columns back together in any > order you want? > > John > Balgenorth > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From skip at magicgate.com Thu Aug 28 16:03:52 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Thu, 28 Aug 2014 16:03:52 -0400 Subject: join columns In-Reply-To: <1409255603.44464.YahooMailNeo@web126106.mail.ne1.yahoo.com> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <1409253647.74206.YahooMailNeo@web126101.mail.ne1.yahoo.com> <1409253864.5033.YahooMailNeo@web126102.mail.ne1.yahoo.com> <3208FD14-DAFA-4ADC-BD6C-EE6D8E70ED2B@pacifier.com> <1409255603.44464.YahooMailNeo@web126106.mail.ne1.yahoo.com> Message-ID: Haha. I like the paranoid version :) SKIP On Thu, Aug 28, 2014 at 3:53 PM, Alain Farmer wrote: > Here is the paranoid version : > > function insertAsColumn colNumber, dataToInsert, intoThisTable > -- > if dataToInsert is empty then > answer "insert empty column ?" with "cancel" or "insert" > if it is "cancel" then exit to top > end if > -- > if intoThisTable is empty then return dataToInsert > -- > if the number of lines of dataToInsert is not the number of lines of > intoThisTable > then die "Error: Lists have different lengths." > -- > set the itemdel to tab > put the number of items of line 1 of intoThisTable into lastCol > if (colNumber < 1) or (colNumber > lastCol) then > ask "colNumber must be an integer between 1 and" && lastCol with 1 > if the result is "cancel" then exit to top > if (it is empty) or (it is not a number) > then die "colNumber must be an integer between 1 and" && lastCol > end if > -- > repeat for each line x in dataToInsert > get line x of dataToInsert > put it & tab before item colNumber of line x of intoThisTable > end repeat > return intoThisTable > -- > end insertAsColumn > > on die dyingMessage > answer dyingMessage > exit to top > end die > > > > On Thursday, August 28, 2014 3:31:30 PM, JB wrote: > > > > Thank you, Alain! This example will > help me out. > > John Balgenoth > > > On Aug 28, 2014, at 12:24 PM, Alain Farmer wrote: > > > Correction: > > > > function insertAsColumn colNumber, dataToInsert, intoThisTable > > -- > > if the number of lines of dataToInsert is not the number of lines of > intoThisTable > > then die "Error: Lists have different lengths." > > -- > > set the itemdel to tab > > repeat for each line x in dataToInsert > > get line x of dataToInsert > > put it & tab before item colNumber of line x of intoThisTable > > end > > repeat > > return intoThisTable > > -- > > end insertAsColumn > > > > on die dyingMessage > > answer dyingMessage > > exit to top > > end die > > > > > > > > > > On , Alain Farmer wrote: > > > > > > > > on insertAsColumn colNumber, dataToInsert, intoThisTable > > -- > > if the number of lines of dataToInsert is not the number of lines of > intoThisTable > > then die "Error: Lists have different lengths." > > -- > > set the itemdel to tab > > repeat for each line x in dataToInsert > > get line x of dataToInsert > > put it & tab before item colNumber of line x of intoThisTable > > end > > repeat > > return intoThisTable > > -- > > insertAsColumn > > > > on die dyingMessage > > answer dyingMessage > > exit to top > > end die > > > > > > > > On Thursday, August 28, 2014 2:59:04 PM, JB > wrote: > > > > > > > > Richard Gaskin wrote a function to get a column > > from a list. > > > > function GetCol pData, pCol --Richard Gaskin > > set the itemdel to tab > > put empty into tReturnList > > repeat for each line tLine in pData > > put item pCol of tLine &cr after tReturnList > > end repeat > > delete last char of tReturnList -- trailing CR > > return tReturnList > > end GetCol > > > > Does anyone know how to convert this so you can > > join the selected columns back together in any > > order you want? > > > > John > > Balgenorth > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alain_farmer at yahoo.com Thu Aug 28 17:11:48 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Thu, 28 Aug 2014 14:11:48 -0700 Subject: join columns In-Reply-To: References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <1409253647.74206.YahooMailNeo@web126101.mail.ne1.yahoo.com> <1409253864.5033.YahooMailNeo@web126102.mail.ne1.yahoo.com> <3208FD14-DAFA-4ADC-BD6C-EE6D8E70ED2B@pacifier.com> <1409255603.44464.YahooMailNeo@web126106.mail.ne1.yahoo.com> Message-ID: <1409260308.92227.YahooMailNeo@web126102.mail.ne1.yahoo.com> Improved it again : function insertAsColumn colNumber, dataToInsert, intoThisTable ??? -- ??? if dataToInsert is empty then ??? ??? answer "insert empty column ?" with "cancel" or "insert" ??? ??? if it is "cancel" then exit to top ??? end if ??? -- ??? if intoThisTable is empty then return dataToInsert ??? -- ??? if the number of lines of dataToInsert is not the number of lines of intoThisTable ??? then die "Error: Lists have different lengths." ??? -- ??? set the itemdel to tab ??? put the number of items of line 1 of intoThisTable into lastCol ??? if (colNumber < 1) or (colNumber > lastCol) then ??? ??? ask "colNumber must be an integer between 1 and" && lastCol with 1 ??? ??? if the result is "cancel" then exit to top ??? ??? if (it is empty) or (it is not a number) ??? ??? then die "colNumber must be an integer between 1 and" && lastCol ??? end if ??? -- ??? if colNumber is lastCol then ??? ??? repeat for each line x in dataToInsert ??????? ??? get line x of dataToInsert ??? ??? ??? put tab & it after line x of intoThisTable ??? ??? end repeat ??? else ??? ??? repeat for each line x in dataToInsert ??????? ??? get line x of dataToInsert ??? ??? ??? put it & tab before item colNumber of line x of intoThisTable ??? ??? end repeat ??? end if ??? -- ??? return intoThisTable ??? -- end insertAsColumn on die dyingMessage ??? answer dyingMessage ??? exit to top end die On Thursday, August 28, 2014 4:04:10 PM, Magicgate Software - Skip Kimpel wrote: Haha. I like the paranoid version :) SKIP On Thu, Aug 28, 2014 at 3:53 PM, Alain Farmer wrote: > Here is the paranoid version : > > function insertAsColumn colNumber, dataToInsert, intoThisTable >? ? -- >? ? if dataToInsert is empty then >? ? ? ? answer "insert empty column ?" with "cancel" or "insert" >? ? ? ? if it is "cancel" then exit to top >? ? end if >? ? -- >? ? if intoThisTable is empty then return dataToInsert >? ? -- >? ? if the number of lines of dataToInsert is not the number of lines of > intoThisTable >? ? then die "Error: Lists have different lengths." >? ? -- >? ? set the itemdel to tab >? ? put the number of items of line 1 of intoThisTable into lastCol >? ? if (colNumber < 1) or (colNumber > lastCol) then >? ? ? ? ask "colNumber must be an integer between 1 and" && lastCol with 1 >? ? ? ? if the result is "cancel" then exit to top >? ? ? ? if (it is empty) or (it is not a number) >? ? ? ? then die "colNumber must be an integer between 1 and" && lastCol >? ? end if >? ? -- >? ? repeat for each line x in dataToInsert >? ? ? ? get line x of dataToInsert >? ? ? ? put it & tab before item colNumber of line x of intoThisTable >? ? end repeat >? ? return intoThisTable >? ? -- > end insertAsColumn > > on die dyingMessage >? ? answer dyingMessage >? ? exit to top > end die > > > > On Thursday, August 28, 2014 3:31:30 PM, JB wrote: > > > > Thank you, Alain!? This example will > help me out. > > John Balgenoth > > > On Aug 28, 2014, at 12:24 PM, Alain Farmer wrote: > > > Correction: > > > > function insertAsColumn colNumber, dataToInsert, intoThisTable > >? ? -- > >? ? if the number of lines of dataToInsert is not the number of lines of > intoThisTable > >? ? then die "Error: Lists have different lengths." > >? ? -- > >? ? set the itemdel to tab > >? ? repeat for each line x in dataToInsert > >? ? ? ? get line x of dataToInsert > >? ? ? ? put it & tab before item colNumber of line x of intoThisTable > >? ? end > > repeat > >? ? return intoThisTable > >? ? -- > > end insertAsColumn > > > > on die dyingMessage > >? ? answer dyingMessage > >? ? exit to top > > end die > > > > > > > > > > On , Alain Farmer wrote: > > > > > > > > on insertAsColumn colNumber, dataToInsert, intoThisTable > >? ? -- > >? ? if the number of lines of dataToInsert is not the number of lines of > intoThisTable > >? ? then die "Error: Lists have different lengths." > >? ? -- > >? ? set the itemdel to tab > >? ? repeat for each line x in dataToInsert > >? ? ? ? get line x of dataToInsert > >? ? ? ? put it & tab before item colNumber of line x of intoThisTable > >? ? end > > repeat > >? ? return intoThisTable > >? ? -- > > insertAsColumn > > > > on die dyingMessage > >? ? answer dyingMessage > >? ? exit to top > > end die > > > > > > > > On Thursday, August 28, 2014 2:59:04 PM, JB > wrote: > > > > > > > > Richard Gaskin wrote a function to get a column > > from a list. > > > > function GetCol pData, pCol --Richard Gaskin > >? ? set the itemdel to tab > >? ? put empty into tReturnList > >? ? repeat for each line tLine in pData > >? ? ? ? put item pCol of tLine &cr after tReturnList > >? ? end repeat > >? ? delete last char of tReturnList -- trailing CR > >? ? return tReturnList > > end GetCol > > > > Does anyone know how to convert this so you can > > join the selected columns back together in any > > order you want? > > > > John > > Balgenorth > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Aug 28 17:24:09 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 28 Aug 2014 21:24:09 +0000 Subject: which is faster for searching? In-Reply-To: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> Message-ID: Repeat for each has been optimized to run faster than other forms of repeat. Use whenever you can. One word of caution though: Do NOT change the value of what you are repeating. (Whatever comes after ?in?.) I am pretty sure you should not alter the value returned (the variable after "each ?). The reason for all this is that to optimize the repeat loop, the engine makes one pass through the data, and creates an index of pointers to the delimiters. If you modify the data, the OS may (and probably will) do some memory shuffling and the pointers will no longer be valid. What you return can be bits and pieces of the original data scrambled like eggs, or random bits of what is now in that memory space. Ick! ex. repeat for each line pLine in pData. Don?t alter pLine or pData inside the repeat control structure. Bob S On Jun 17, 2014, at 07:22 , larry at significantplanet.org wrote: > I have a large variable containing about 3000 lines of data - each line about 100 characters. > > I want to search through the variable and find all the lines that contain a specified string > > Should I use (repeatedly) "lineoffset...", or should I use "repeat for each line..." or maybe some other faster way? > > Or with only 3000 lines of data, does it even matter? > > TIA > Larry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Aug 28 17:30:10 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 28 Aug 2014 21:30:10 +0000 Subject: unlock screen doesn't unlock screen In-Reply-To: <5645ad9b51703cd22d4257f93e23794d.squirrel@185.8.104.234> References: <53FCFEC1.5070600@fourthworld.com> <1f294640687e9fa6183dff0661aceea7.squirrel@185.8.104.234> <5645ad9b51703cd22d4257f93e23794d.squirrel@185.8.104.234> Message-ID: <03B39956-63D3-4EE8-B267-9DF3B9411BBE@iotecdigital.com> replace ?unlock screen? with ?wait 0 seconds with messages?. The screen will unlock when an idle message is sent, which is what will happen when you wait 0 seconds with messages. Bob S On Aug 27, 2014, at 04:34 , jbv at souslelogo.com wrote: > actually the loop is like this (my mistake) : > > lock screen > repeat 20000 times > -- do a lot of things > unlock screen > put myVar into fld "myVar" > lock screen > end repeat > > but the problem remains. > > jbv > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Thu Aug 28 17:27:15 2014 From: sundown at pacifier.com (JB) Date: Thu, 28 Aug 2014 14:27:15 -0700 Subject: join columns In-Reply-To: <53FF7EBB.3000408@pdslabs.net> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <53FF7EBB.3000408@pdslabs.net> Message-ID: Hi Phil, I am having trouble with the proper way to write the combine pData by column. I can split the columns and reverse them like you show but how do you write the code to combine them? It looks to me from the dictionary the column needs to be a number but what line do I need to put them on? John Balgenorth On Aug 28, 2014, at 12:10 PM, Phil Davis wrote: > If pData is a CR-delimited list where each line contains tab-delimited items, why not use 'split by column'? > > -- example: switch positions of columns 2 and 4 > > split pData by column > put pData[4] into tTemp2 > put pData[2] into pData[4] > put tTemp2 into pData[2] > > > -- then put it back together as a list: > > combine pData by column > > That should do it. > > Phil Davis > > > > On 8/28/14, 11:54 AM, JB wrote: >> Richard Gaskin wrote a function to get a column >> from a list. >> >> function GetCol pData, pCol --Richard Gaskin >> set the itemdel to tab >> put empty into tReturnList >> repeat for each line tLine in pData >> put item pCol of tLine &cr after tReturnList >> end repeat >> delete last char of tReturnList -- trailing CR >> return tReturnList >> end GetCol >> >> Does anyone know how to convert this so you can >> join the selected columns back together in any >> order you want? >> >> John Balgenorth >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Phil Davis > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Thu Aug 28 17:49:33 2014 From: sundown at pacifier.com (JB) Date: Thu, 28 Aug 2014 14:49:33 -0700 Subject: join columns In-Reply-To: <1409260308.92227.YahooMailNeo@web126102.mail.ne1.yahoo.com> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <1409253647.74206.YahooMailNeo@web126101.mail.ne1.yahoo.com> <1409253864.5033.YahooMailNeo@web126102.mail.ne1.yahoo.com> <3208FD14-DAFA-4ADC-BD6C-EE6D8E70ED2B@pacifier.com> <1409255603.44464.YahooMailNeo@web126106.mail.ne1.yahoo.com> <1409260308.92227.YahooMailNeo@web126102.mail.ne1.yahoo.com> Message-ID: Hi Alain, I am having trouble getting it to insert the column. Here is the code I am using to access your function. local dataToInsert, intoThisTable on mouseUp put fld id 1056 into pData split pData by column put pData[4] into dataToInsert put insertAsColumn (3, dataToInsert, intoThisTable) into newTable put newTable into fld id 4738 end mouseUp It puts the dataToInsert into id 4738. What am I doing wrong here? John Balgenorth On Aug 28, 2014, at 2:11 PM, Alain Farmer wrote: > Improved it again : > > function insertAsColumn colNumber, dataToInsert, intoThisTable > -- > if dataToInsert is empty then > answer "insert empty column ?" with "cancel" or "insert" > if it is "cancel" then exit to top > end if > -- > if intoThisTable is empty then return dataToInsert > -- > if the number of lines of dataToInsert is not the number of lines of intoThisTable > then die "Error: Lists have different lengths." > -- > set the itemdel to tab > put the number of items of line 1 of intoThisTable into lastCol > if (colNumber < 1) or (colNumber > lastCol) then > ask "colNumber must be an integer between 1 and" && lastCol with 1 > if the result is "cancel" then exit to top > if (it is empty) or (it is not a number) > then die "colNumber must be an integer between 1 and" && lastCol > end if > -- > if colNumber is lastCol then > repeat for each line x in dataToInsert > get line x of dataToInsert > put tab & it after line x of intoThisTable > end repeat > else > repeat for each line x in dataToInsert > get line x of dataToInsert > put it & tab before item colNumber of line x of intoThisTable > end repeat > end if > -- > return intoThisTable > -- > end insertAsColumn > > on die dyingMessage > answer dyingMessage > exit to top > end die > > > > On Thursday, August 28, 2014 4:04:10 PM, Magicgate Software - Skip Kimpel wrote: > > > > Haha. I like the paranoid version :) > > SKIP > > > On Thu, Aug 28, 2014 at 3:53 PM, Alain Farmer > wrote: > >> Here is the paranoid version : >> >> function insertAsColumn colNumber, dataToInsert, intoThisTable >> -- >> if dataToInsert is empty then >> answer "insert empty column ?" with "cancel" or "insert" >> if it is "cancel" then exit to top >> end if >> -- >> if intoThisTable is empty then return dataToInsert >> -- >> if the number of lines of dataToInsert is not the number of lines of >> intoThisTable >> then die "Error: Lists have different lengths." >> -- >> set the itemdel to tab >> put the number of items of line 1 of intoThisTable into lastCol >> if (colNumber < 1) or (colNumber > lastCol) then >> ask "colNumber must be an integer between 1 and" && lastCol with 1 >> if the result is "cancel" then exit to top >> if (it is empty) or (it is not a number) >> then die "colNumber must be an integer between 1 and" && lastCol >> end if >> -- >> repeat for each line x in dataToInsert >> get line x of dataToInsert >> put it & tab before item colNumber of line x of intoThisTable >> end repeat >> return intoThisTable >> -- >> end insertAsColumn >> >> on die dyingMessage >> answer dyingMessage >> exit to top >> end die >> >> >> >> On Thursday, August 28, 2014 3:31:30 PM, JB wrote: >> >> >> >> Thank you, Alain! This example will >> help me out. >> >> John Balgenoth >> >> >> On Aug 28, 2014, at 12:24 PM, Alain Farmer wrote: >> >>> Correction: >>> >>> function insertAsColumn colNumber, dataToInsert, intoThisTable >>> -- >>> if the number of lines of dataToInsert is not the number of lines of >> intoThisTable >>> then die "Error: Lists have different lengths." >>> -- >>> set the itemdel to tab >>> repeat for each line x in dataToInsert >>> get line x of dataToInsert >>> put it & tab before item colNumber of line x of intoThisTable >>> end >>> repeat >>> return intoThisTable >>> -- >>> end insertAsColumn >>> >>> on die dyingMessage >>> answer dyingMessage >>> exit to top >>> end die >>> >>> >>> >>> >>> On , Alain Farmer wrote: >>> >>> >>> >>> on insertAsColumn colNumber, dataToInsert, intoThisTable >>> -- >>> if the number of lines of dataToInsert is not the number of lines of >> intoThisTable >>> then die "Error: Lists have different lengths." >>> -- >>> set the itemdel to tab >>> repeat for each line x in dataToInsert >>> get line x of dataToInsert >>> put it & tab before item colNumber of line x of intoThisTable >>> end >>> repeat >>> return intoThisTable >>> -- >>> insertAsColumn >>> >>> on die dyingMessage >>> answer dyingMessage >>> exit to top >>> end die >>> >>> >>> >>> On Thursday, August 28, 2014 2:59:04 PM, JB >> wrote: >>> >>> >>> >>> Richard Gaskin wrote a function to get a column >>> from a list. >>> >>> function GetCol pData, pCol --Richard Gaskin >>> set the itemdel to tab >>> put empty into tReturnList >>> repeat for each line tLine in pData >>> put item pCol of tLine &cr after tReturnList >>> end repeat >>> delete last char of tReturnList -- trailing CR >>> return tReturnList >>> end GetCol >>> >>> Does anyone know how to convert this so you can >>> join the selected columns back together in any >>> order you want? >>> >>> John >>> Balgenorth >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Thu Aug 28 17:56:38 2014 From: sundown at pacifier.com (JB) Date: Thu, 28 Aug 2014 14:56:38 -0700 Subject: join columns In-Reply-To: References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <1409253647.74206.YahooMailNeo@web126101.mail.ne1.yahoo.com> <1409253864.5033.YahooMailNeo@web126102.mail.ne1.yahoo.com> <3208FD14-DAFA-4ADC-BD6C-EE6D8E70ED2B@pacifier.com> <1409255603.44464.YahooMailNeo@web126106.mail.ne1.yahoo.com> <1409260308.92227.YahooMailNeo@web126102.mail.ne1.yahoo.com> Message-ID: That was wrong. It should be, But it does not give me a whole table. on mouseUp put fld id 1056 into intoThisTable split intoThisTable by column put intoThisTable[4] into dataToInsert put insertAsColumn (3, dataToInsert, intoThisTable) into newTable put newTable into fld id 4738 end mouseUp On Aug 28, 2014, at 2:49 PM, JB wrote: > on mouseUp > put fld id 1056 into pData > split pData by column > put pData[4] into dataToInsert > put insertAsColumn (3, dataToInsert, intoThisTable) into newTable > put newTable into fld id 4738 > end mouseUp From revdev at pdslabs.net Thu Aug 28 18:43:09 2014 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 28 Aug 2014 15:43:09 -0700 Subject: join columns In-Reply-To: References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <53FF7EBB.3000408@pdslabs.net> Message-ID: <53FFB07D.4020309@pdslabs.net> Hi John, It should work if you just say "combine pData by column" and nothing more. At least it does here - just tested it. It restructures the pData array back into its original list format, but with items moved to their new positions. Phil On 8/28/14, 2:27 PM, JB wrote: > Hi Phil, > > I am having trouble with the proper way > to write the combine pData by column. > > I can split the columns and reverse them > like you show but how do you write the > code to combine them? It looks to me > from the dictionary the column needs > to be a number but what line do I need > to put them on? > > John Balgenorth > > > On Aug 28, 2014, at 12:10 PM, Phil Davis wrote: > >> If pData is a CR-delimited list where each line contains tab-delimited items, why not use 'split by column'? >> >> -- example: switch positions of columns 2 and 4 >> >> split pData by column >> put pData[4] into tTemp2 >> put pData[2] into pData[4] >> put tTemp2 into pData[2] >> >> >> -- then put it back together as a list: >> >> combine pData by column >> >> That should do it. >> >> Phil Davis >> >> >> >> On 8/28/14, 11:54 AM, JB wrote: >>> Richard Gaskin wrote a function to get a column >>> from a list. >>> >>> function GetCol pData, pCol --Richard Gaskin >>> set the itemdel to tab >>> put empty into tReturnList >>> repeat for each line tLine in pData >>> put item pCol of tLine &cr after tReturnList >>> end repeat >>> delete last char of tReturnList -- trailing CR >>> return tReturnList >>> end GetCol >>> >>> Does anyone know how to convert this so you can >>> join the selected columns back together in any >>> order you want? >>> >>> John Balgenorth >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> -- >> Phil Davis >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis From sundown at pacifier.com Thu Aug 28 18:47:23 2014 From: sundown at pacifier.com (JB) Date: Thu, 28 Aug 2014 15:47:23 -0700 Subject: join columns In-Reply-To: <53FFB07D.4020309@pdslabs.net> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <53FF7EBB.3000408@pdslabs.net> <53FFB07D.4020309@pdslabs.net> Message-ID: Hi Phil, Thank you so many times!!! It does work. I was thinking i needed to add more to it and never tried it like it was. This is my first time with arrays. So I was looking around for inf? and in the process came up with a good lesson on arrays. http://revolution.byu.edu/arrays/introToArrays.php Thanks again! John Balgenorth On Aug 28, 2014, at 3:43 PM, Phil Davis wrote: > Hi John, > > It should work if you just say "combine pData by column" and nothing more. At least it does here - just tested it. It restructures the pData array back into its original list format, but with items moved to their new positions. > > Phil > > > On 8/28/14, 2:27 PM, JB wrote: >> Hi Phil, >> >> I am having trouble with the proper way >> to write the combine pData by column. >> >> I can split the columns and reverse them >> like you show but how do you write the >> code to combine them? It looks to me >> from the dictionary the column needs >> to be a number but what line do I need >> to put them on? >> >> John Balgenorth >> >> >> On Aug 28, 2014, at 12:10 PM, Phil Davis wrote: >> >>> If pData is a CR-delimited list where each line contains tab-delimited items, why not use 'split by column'? >>> >>> -- example: switch positions of columns 2 and 4 >>> >>> split pData by column >>> put pData[4] into tTemp2 >>> put pData[2] into pData[4] >>> put tTemp2 into pData[2] >>> >>> >>> -- then put it back together as a list: >>> >>> combine pData by column >>> >>> That should do it. >>> >>> Phil Davis >>> >>> >>> >>> On 8/28/14, 11:54 AM, JB wrote: >>>> Richard Gaskin wrote a function to get a column >>>> from a list. >>>> >>>> function GetCol pData, pCol --Richard Gaskin >>>> set the itemdel to tab >>>> put empty into tReturnList >>>> repeat for each line tLine in pData >>>> put item pCol of tLine &cr after tReturnList >>>> end repeat >>>> delete last char of tReturnList -- trailing CR >>>> return tReturnList >>>> end GetCol >>>> >>>> Does anyone know how to convert this so you can >>>> join the selected columns back together in any >>>> order you want? >>>> >>>> John Balgenorth >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> -- >>> Phil Davis >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Phil Davis > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From revdev at pdslabs.net Thu Aug 28 20:51:24 2014 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 28 Aug 2014 17:51:24 -0700 Subject: join columns In-Reply-To: References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <53FF7EBB.3000408@pdslabs.net> <53FFB07D.4020309@pdslabs.net> Message-ID: <53FFCE8C.9060909@pdslabs.net> Arrays are great for many uses! I'm glad you got it to work. The BYU lessons are a good place to learn a lot. Phil On 8/28/14, 3:47 PM, JB wrote: > Hi Phil, > > Thank you so many times!!! > > It does work. I was thinking i needed to add more to it > and never tried it like it was. > > This is my first time with arrays. So I was looking around > for inf? and in the process came up with a good lesson on > arrays. > > http://revolution.byu.edu/arrays/introToArrays.php > > Thanks again! > > John Balgenorth > > On Aug 28, 2014, at 3:43 PM, Phil Davis wrote: > >> Hi John, >> >> It should work if you just say "combine pData by column" and nothing more. At least it does here - just tested it. It restructures the pData array back into its original list format, but with items moved to their new positions. >> >> Phil >> >> >> On 8/28/14, 2:27 PM, JB wrote: >>> Hi Phil, >>> >>> I am having trouble with the proper way >>> to write the combine pData by column. >>> >>> I can split the columns and reverse them >>> like you show but how do you write the >>> code to combine them? It looks to me >>> from the dictionary the column needs >>> to be a number but what line do I need >>> to put them on? >>> >>> John Balgenorth >>> >>> >>> On Aug 28, 2014, at 12:10 PM, Phil Davis wrote: >>> >>>> If pData is a CR-delimited list where each line contains tab-delimited items, why not use 'split by column'? >>>> >>>> -- example: switch positions of columns 2 and 4 >>>> >>>> split pData by column >>>> put pData[4] into tTemp2 >>>> put pData[2] into pData[4] >>>> put tTemp2 into pData[2] >>>> >>>> >>>> -- then put it back together as a list: >>>> >>>> combine pData by column >>>> >>>> That should do it. >>>> >>>> Phil Davis >>>> >>>> >>>> >>>> On 8/28/14, 11:54 AM, JB wrote: >>>>> Richard Gaskin wrote a function to get a column >>>>> from a list. >>>>> >>>>> function GetCol pData, pCol --Richard Gaskin >>>>> set the itemdel to tab >>>>> put empty into tReturnList >>>>> repeat for each line tLine in pData >>>>> put item pCol of tLine &cr after tReturnList >>>>> end repeat >>>>> delete last char of tReturnList -- trailing CR >>>>> return tReturnList >>>>> end GetCol >>>>> >>>>> Does anyone know how to convert this so you can >>>>> join the selected columns back together in any >>>>> order you want? >>>>> >>>>> John Balgenorth >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> -- >>>> Phil Davis >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> -- >> Phil Davis >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis From sundown at pacifier.com Thu Aug 28 21:21:44 2014 From: sundown at pacifier.com (JB) Date: Thu, 28 Aug 2014 18:21:44 -0700 Subject: join columns In-Reply-To: <53FFCE8C.9060909@pdslabs.net> References: <52BE520C-D4B3-42E9-94F1-4ACE992D8A24@pacifier.com> <53FF7EBB.3000408@pdslabs.net> <53FFB07D.4020309@pdslabs.net> <53FFCE8C.9060909@pdslabs.net> Message-ID: Your sample has opened the door to arrays for me. I love arrays now that I know how to use them. thanks a lot! John Balgenorth On Aug 28, 2014, at 5:51 PM, Phil Davis wrote: > Arrays are great for many uses! I'm glad you got it to work. The BYU lessons are a good place to learn a lot. > > Phil > > > On 8/28/14, 3:47 PM, JB wrote: >> Hi Phil, >> >> Thank you so many times!!! >> >> It does work. I was thinking i needed to add more to it >> and never tried it like it was. >> >> This is my first time with arrays. So I was looking around >> for inf? and in the process came up with a good lesson on >> arrays. >> >> http://revolution.byu.edu/arrays/introToArrays.php >> >> Thanks again! >> >> John Balgenorth >> >> On Aug 28, 2014, at 3:43 PM, Phil Davis wrote: >> >>> Hi John, >>> >>> It should work if you just say "combine pData by column" and nothing more. At least it does here - just tested it. It restructures the pData array back into its original list format, but with items moved to their new positions. >>> >>> Phil >>> >>> >>> On 8/28/14, 2:27 PM, JB wrote: >>>> Hi Phil, >>>> >>>> I am having trouble with the proper way >>>> to write the combine pData by column. >>>> >>>> I can split the columns and reverse them >>>> like you show but how do you write the >>>> code to combine them? It looks to me >>>> from the dictionary the column needs >>>> to be a number but what line do I need >>>> to put them on? >>>> >>>> John Balgenorth >>>> >>>> >>>> On Aug 28, 2014, at 12:10 PM, Phil Davis wrote: >>>> >>>>> If pData is a CR-delimited list where each line contains tab-delimited items, why not use 'split by column'? >>>>> >>>>> -- example: switch positions of columns 2 and 4 >>>>> >>>>> split pData by column >>>>> put pData[4] into tTemp2 >>>>> put pData[2] into pData[4] >>>>> put tTemp2 into pData[2] >>>>> >>>>> >>>>> -- then put it back together as a list: >>>>> >>>>> combine pData by column >>>>> >>>>> That should do it. >>>>> >>>>> Phil Davis >>>>> >>>>> >>>>> >>>>> On 8/28/14, 11:54 AM, JB wrote: >>>>>> Richard Gaskin wrote a function to get a column >>>>>> from a list. >>>>>> >>>>>> function GetCol pData, pCol --Richard Gaskin >>>>>> set the itemdel to tab >>>>>> put empty into tReturnList >>>>>> repeat for each line tLine in pData >>>>>> put item pCol of tLine &cr after tReturnList >>>>>> end repeat >>>>>> delete last char of tReturnList -- trailing CR >>>>>> return tReturnList >>>>>> end GetCol >>>>>> >>>>>> Does anyone know how to convert this so you can >>>>>> join the selected columns back together in any >>>>>> order you want? >>>>>> >>>>>> John Balgenorth >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> -- >>>>> Phil Davis >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> -- >>> Phil Davis >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Phil Davis > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Fri Aug 29 00:34:41 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 29 Aug 2014 12:34:41 +0800 Subject: Strange mailing list email. In-Reply-To: References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> Message-ID: On Thu, Aug 28, 2014 at 12:32 PM, Nicolas Cueto wrote: > Months back or maybe even last year, I had to set a gmail filter so that > some members' list-messages came through despite being marked as spam. > Alain Farmer's and Craig Newman's are such two. There may be others too > (not Peter Haworth's). > Same here, all of Craig's emails end up in my Spam as do most, but not all of Alain's. Peter's did this once, but I think only because it's part of this thread. Sorry, I should rephrase that. Gmail puts them in my Spam, as I'm keen to read all of Craig's, Alain's and Peter's contributions I take them out of Spam, read them, label them appropriately and save for future reference. Don't wont you to get the wrong impression ;-) From larry at significantplanet.org Fri Aug 29 01:02:10 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Thu, 28 Aug 2014 23:02:10 -0600 Subject: screen resolution Message-ID: Hi All, Is there a way to detect screen resolution in Windows? I'm creating a stack that is 1280 x 980, but I know some people still have a 1024 x 768 monitor (like my dad.) I'd like to know if there is a way to automatically or programatically resize my stack and the elements in the stack so it will display on the smaller monitor. TIA Larry From richmondmathewson at gmail.com Fri Aug 29 01:23:06 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 29 Aug 2014 08:23:06 +0300 Subject: screen resolution In-Reply-To: References: Message-ID: <54000E3A.5020800@gmail.com> On 29.08.2014 08:02, larry at significantplanet.org wrote: > Hi All, > Is there a way to detect screen resolution in Windows? I'm creating a stack that is 1280 x 980, but I know some people still have a 1024 x 768 monitor (like my dad.) > > I'd like to know if there is a way to automatically or programatically resize my stack and the elements in the stack so it will display on the smaller monitor. > > TIA > Larry > Do put the screenLoc multiply both numbers by 2. Richmond. From admin at FlexibleLearning.com Fri Aug 29 05:33:19 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Fri, 29 Aug 2014 10:33:19 +0100 Subject: Delete columns... How? Message-ID: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> Related problem to 'join columns': How to delete a column of data? This fails... on mouseUp get fld 1 split it by column delete local it[2] combine it by column put it into fld 2 end mouseUp It seems that 'combine by column' requires the same number of array keys as the original data set. Hugh Senior FLCo From toolbook at kestner.de Fri Aug 29 05:36:43 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 29 Aug 2014 11:36:43 +0200 Subject: best resize stack handling? Message-ID: <001901cfc36c$bf4024d0$3dc06e70$@de> Hello, Using LC 6.6.2 on Win 7 I am having a dynamic GUI layout, where I adapt sizes and positions of all GUI elements on resizeStack. In general it works as expected. Only when resizing the stack window very fast, or using the maximize/minimize window button, my resizing handler doesn't catches up and messes the size of some of the objects. With a double call of my resize handler I found a solution, which works fine for me, but it doesn't looks very sophisticated: on resizeStack pNewW,pNewH,pOldW,pOldH myResizeStack pNewW,pNewH,pOldW,pOldH wait 0 with messages myResizeStack pNewW,pNewH,pOldW,pOldH pass resizeStack end resizeStack What are your experiences and technics for resizing? Thanks Tiemo From B.Cornaz at gmx.net Fri Aug 29 05:58:39 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Fri, 29 Aug 2014 11:58:39 +0200 Subject: which is faster for searching? Message-ID: Bob Sneidar wrote : > T he reason for all this is that to optimize the repeat loop, the engine makes one pass through the data, and creates an index of pointers to the delimiters. If you modify the data, the OS may (and probably will) do some memory shuffling > and the pointers will no longer be valid. What you return can be bits and pieces of the original data scrambled like eggs, or random bits of what is now in that memory space. Ick! > > ex. repeat for each line pLine in pData. Don?t alter pLine or pData inside the repeat control structure. I am on digest list form, so there probably have been people before me to address this. To be sure, here goes : I think the first part of what Bob says is true, you cannot alter the original data. But as you go into each turn of the loop and take rLine (see) below as a chunck, you can do with rLine whatever you like. I do that all the time. Only if you change the original data ( e.g. tPermutations) then the thing fouls. As an example : on mouseUp put empty into Changed repeat for each line rLine in tPermutations put 6 into item 3 of rLine -- ** here I change rLine, which does not affect tPermutations put rLine & cr after Changed end repeat end mouseUp Beat Cornaz From lists at mangomultimedia.com Fri Aug 29 07:59:43 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 29 Aug 2014 07:59:43 -0400 Subject: Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality] In-Reply-To: <53FE007B.2050404@fourthworld.com> References: <11135CD1-785C-437E-ADF4-7914850F6D45@iotecdigital.com> <53FE007B.2050404@fourthworld.com> Message-ID: On Wed, Aug 27, 2014 at 11:59 AM, Richard Gaskin wrote: > > All keys in associative arrays are strings, and currently LC only supports > associative arrays. The string may consist of numerals only, but it's > still a string. > > It would seem that Trevor rebuilds the array on deletes. It would be > interesting to hear more about how he does this if he reads this message > and has time to reply. > > Or one of us could dive into the DG code and find it. Either way, I > suspect it's iterating over the collection. If I have an array which should be ordered (numerically indexed) AND the order of elements in the array can change then I use a key in the array that stores the sequence of elements in the array. For example: put "Bob" into thePeopleA["data"][1]["name"] put "Richard" into thePeopleA["data"][2]["name"] put "Trevor" into thePeopleA["data"][3]["name"] put "1,2,3" into thePeopleA["ids"] When I iterate over the array I loop through each item in thePeopleA["ids"] If I need to reorder/delete/add then I update the "ids" key. For example, if I wanted "Richard" to be first in the list then I would change "ids" to this: put "2,1,3" into thePeopleA["ids"] For arrays that aren't meant to be modified I don't bother with the "ids" property as I know I can just loop from 1 to the number of elements of thePeopleA. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From dunbarx at aol.com Fri Aug 29 08:30:05 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 29 Aug 2014 08:30:05 -0400 (EDT) Subject: Strange mailing list email. In-Reply-To: References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> Message-ID: <8D1919C1900F69E-26A0-133B@webmail-vm041.sysops.aol.com> I just got another notice that my list membership had been disabled due excessive bounces. Happens weekly. Not sure why. Craig -----Original Message----- From: Kay C Lan To: How to use LiveCode Sent: Fri, Aug 29, 2014 12:35 am Subject: Re: Strange mailing list email. On Thu, Aug 28, 2014 at 12:32 PM, Nicolas Cueto wrote: > Months back or maybe even last year, I had to set a gmail filter so that > some members' list-messages came through despite being marked as spam. > Alain Farmer's and Craig Newman's are such two. There may be others too > (not Peter Haworth's). > Same here, all of Craig's emails end up in my Spam as do most, but not all of Alain's. Peter's did this once, but I think only because it's part of this thread. Sorry, I should rephrase that. Gmail puts them in my Spam, as I'm keen to read all of Craig's, Alain's and Peter's contributions I take them out of Spam, read them, label them appropriately and save for future reference. Don't wont you to get the wrong impression ;-) _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Fri Aug 29 08:54:23 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 29 Aug 2014 08:54:23 -0400 Subject: Strange mailing list email. In-Reply-To: References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> Message-ID: On Aug 29, 2014, at 12:34 AM, Kay C Lan wrote: > Sorry, I should rephrase that. Gmail puts them in my Spam, as I'm keen > to read all of Craig's, Alain's and Peter's contributions I take them > out of Spam, read them, label them appropriately and save for future > reference. Don't wont you to get the wrong impression ;-) I just discovered that I was missing messages for the same reason -- gmail was putting some of them in the spam folder. Here's what I did: 1. click the down arrow at the right end of the search field at the top of the gmail window 2. enter search criteria that identify all the use-livecode messages. I ended up entering "use-livecode at lists.runrev.com" in the "has the words" field -- and nothing in any of the other fields 3. click the search button, and check that you are seeing all the list messages 4. click the "create filter with this search" link 5. check the "never send to spam" checkbox 6. (optionally, choose a label or a category to apply to the messages) 7. I also checked the "apply filter to matching messages" checkbox, which I *think* applies this rule to all existing received messages (the wording could be better) 8. click the "create filter" button I believe this will take care of the problem once and for all. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From lists at mangomultimedia.com Fri Aug 29 08:58:02 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 29 Aug 2014 08:58:02 -0400 Subject: Should "dispatch" be extended for timers? In-Reply-To: <53FD3DBE.4020403@fourthworld.com> References: <53FD3DBE.4020403@fourthworld.com> Message-ID: On Tue, Aug 26, 2014 at 10:09 PM, Richard Gaskin wrote: > > Is there some reason I've overlooked as to why "send" allows timers but > "dispatch" doesn't? I don't know if there is a reason dispatch doesn't have timers, but what if "send" was just updated to support "with"? If "with" was present then we could do this: send "someCommand" to someObject with param1, param2 in 10 milliseconds The thing is, dispatch is useful if A) you want to know if the command was handled, B) you want to send a message and you don't care if it is handled (the engine doesn't report an error if "someCommand" isn't defined anywhere), or C) you want to call a command/function outside of the message path. I see this as a much improved version of the 'send "someCommand"' form of 'send'. Given how dispatch works, I see 'send is' as being what you use if you want to execute some code after the current event loop has finished executing. The downside is that the syntax stinks. But if the syntax were updated so that it supported the same form as dispatch then I think it would be great. I imagine the engine could also improve the speed to be on par with dispatch as the engine would know that "someCommand" wouldn't contain any variables that had to be processed (e.g. "someCommand param1, param2"). -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From lists at mangomultimedia.com Fri Aug 29 09:07:25 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 29 Aug 2014 09:07:25 -0400 Subject: screen resolution In-Reply-To: References: Message-ID: On Fri, Aug 29, 2014 at 1:02 AM, wrote: > Is there a way to detect screen resolution in Windows? I'm creating a > stack that is 1280 x 980, but I know some people still have a 1024 x 768 > monitor (like my dad.) > > I'd like to know if there is a way to automatically or programatically > resize my stack and the elements in the stack so it will display on the > smaller monitor. > Look at the plural form of the screenRect property in the dictionary (screenRects). It returns the rectangles of all the monitors attached to the computer and has some variations such as 'effective' and 'working'. You can determine which line of the screenRects applies to your stack using the following: put line (the screen of stack "MyStack") of the screenRects into theScreenRect You could then resize your stack accordingly. It doesn't look like the 'screen' property is documented in the dictionary. I've added a note to RQCC about that. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From lists at mangomultimedia.com Fri Aug 29 09:09:34 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 29 Aug 2014 09:09:34 -0400 Subject: screen resolution In-Reply-To: References: Message-ID: On Fri, Aug 29, 2014 at 9:07 AM, Trevor DeVore wrote: > > You can determine which line of the screenRects applies to your stack > using the following: > > put line (the screen of stack "MyStack") of the screenRects into > theScreenRect > I should point out here that you want to use the 'working' adjective if you are going to be resizing your stack. put line (the screen of stack "MyStack") of the working screenRects into theScreenRect -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From richmondmathewson at gmail.com Fri Aug 29 10:00:58 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 29 Aug 2014 17:00:58 +0300 Subject: Strange mailing list email. In-Reply-To: References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> Message-ID: <5400879A.3030505@gmail.com> On 29.08.2014 15:54, Peter M. Brigham wrote: > On Aug 29, 2014, at 12:34 AM, Kay C Lan wrote: > >> Sorry, I should rephrase that. Gmail puts them in my Spam, as I'm keen >> to read all of Craig's, Alain's and Peter's contributions I take them >> out of Spam, read them, label them appropriately and save for future >> reference. Don't wont you to get the wrong impression ;-) > I just discovered that I was missing messages for the same reason -- gmail was putting some of them in the spam folder. Here's what I did: > 1. click the down arrow at the right end of the search field at the top of the gmail window > 2. enter search criteria that identify all the use-livecode messages. I ended up entering "use-livecode at lists.runrev.com" in the "has the words" field -- and nothing in any of the other fields > 3. click the search button, and check that you are seeing all the list messages > 4. click the "create filter with this search" link > 5. check the "never send to spam" checkbox > 6. (optionally, choose a label or a category to apply to the messages) > 7. I also checked the "apply filter to matching messages" checkbox, which I *think* applies this rule to all existing received messages (the wording could be better) > 8. click the "create filter" button > > I believe this will take care of the problem once and for all. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > If one is using a dedicated e-mail client such as Thunderbird that doesn't seem quite so easy. One has to make sure one's custom filter runs BEFORE the client's inbuilt junk filters. Richmond. From jacque at hyperactivesw.com Fri Aug 29 11:09:41 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 29 Aug 2014 10:09:41 -0500 Subject: Strange mailing list email. In-Reply-To: <8D1919C1900F69E-26A0-133B@webmail-vm041.sysops.aol.com> References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> <8D1919C1900F69E-26A0-133B@webmail-vm041.sysops.aol.com> Message-ID: <0a4a9167-9542-49eb-9721-c10de00f64be@email.android.com> I'm pretty sure it's AOL. Their spam filters are excessive, I've had clients with AOL addresses I couldn't write to if my email contained certain trigger words. If there's a way to set up a white list it would probably help. On August 29, 2014 7:30:05 AM CDT, dunbarx at aol.com wrote: >I just got another notice that my list membership had been disabled due >excessive bounces. Happens weekly. > > >Not sure why. > >Craig > > > > >-----Original Message----- >From: Kay C Lan >To: How to use LiveCode >Sent: Fri, Aug 29, 2014 12:35 am >Subject: Re: Strange mailing list email. > > >On Thu, Aug 28, 2014 at 12:32 PM, Nicolas Cueto >wrote: >> Months back or maybe even last year, I had to set a gmail filter so >that >> some members' list-messages came through despite being marked as >spam. >> Alain Farmer's and Craig Newman's are such two. There may be others >too >> (not Peter Haworth's). >> >Same here, all of Craig's emails end up in my Spam as do most, but not >all of Alain's. Peter's did this once, but I think only because it's >part of this thread. > >Sorry, I should rephrase that. Gmail puts them in my Spam, as I'm keen >to read all of Craig's, Alain's and Peter's contributions I take them >out of Spam, read them, label them appropriately and save for future >reference. Don't wont you to get the wrong impression ;-) > >_______________________________________________ >use-livecode mailing list >use-livecode at 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 at 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 | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From devin_asay at byu.edu Fri Aug 29 11:36:33 2014 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 29 Aug 2014 15:36:33 +0000 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <53FD3DBE.4020403@fourthworld.com> Message-ID: <06B67F21-9596-49B0-BEF2-DF4E6706945D@byu.edu> On Aug 29, 2014, at 6:58 AM, Trevor DeVore wrote: > On Tue, Aug 26, 2014 at 10:09 PM, Richard Gaskin > wrote: > >> >> Is there some reason I've overlooked as to why "send" allows timers but >> "dispatch" doesn't? > > > I don't know if there is a reason dispatch doesn't have timers, but what if > "send" was just updated to support "with"? If "with" was present then we > could do this: > > send "someCommand" to someObject with param1, param2 in 10 milliseconds > > The thing is, dispatch is useful if A) you want to know if the command was > handled, B) you want to send a message and you don't care if it is handled > (the engine doesn't report an error if "someCommand" isn't defined > anywhere), or C) you want to call a command/function outside of the message > path. I see this as a much improved version of the 'send "someCommand"' > form of 'send'. > > Given how dispatch works, I see 'send is' as being what you use if you want > to execute some code after the current event loop has finished executing. > The downside is that the syntax stinks. But if the syntax were updated so > that it supported the same form as dispatch then I think it would be great. > I imagine the engine could also improve the speed to be on par with > dispatch as the engine would know that "someCommand" wouldn't contain any > variables that had to be processed (e.g. "someCommand param1, param2"). +1 I've often thought 'send [command] with [params]' would be a great enhancement. There's always a little apprehension and confusion over whether the variable names in quotes in 'send [command param,param]' will be parsed properly. Devin Devin Asay Office of Digital Humanities Brigham Young University From pete at lcsql.com Fri Aug 29 11:38:38 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 29 Aug 2014 08:38:38 -0700 Subject: Strange mailing list email. In-Reply-To: <0a4a9167-9542-49eb-9721-c10de00f64be@email.android.com> References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> <8D1919C1900F69E-26A0-133B@webmail-vm041.sysops.aol.com> <0a4a9167-9542-49eb-9721-c10de00f64be@email.android.com> Message-ID: The article I linked to explains what's going on. Pretty technical but bottom line is that Yahoo and AOL changed their rules about what happens when another mail server decides a message is spam. There's a protocol (DMARC?) that mail servers use to ask the sending server what they should do with messages that look like spam. Yahoo and AOL changed their response to that query a few weeks back from "do nothing" to "bounce". Under the "do nothing" rule, the receiving mail server was then free to do whatever it usually does with spam. Under the "bounce" rule, they bounce the message back to the sending server (silently, meaning the sender doesn't get a bounce message). I guess messages to lists such as ours get caught in this because of the way the headers are changed by the list server software. Most receiving servers recognize those changes and don't classify them as spam but the DMARC rules take precedence over that. Nobody seems to know why Yahoo and AOL did this but speculation is that they suffered massive hack attacks that resulted in their users address books being stolen. I think messages ending up on the gmail spam folder are a separate issue. They're not getting bounced under the above scenario, they're just getting caught in gMail's spam detection algorithms. I use gMail and very occasionaly a message to the list used to go to my spam folder before I set up a filter similar to Peter Brigham's Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Aug 29, 2014 at 8:09 AM, J. Landman Gay wrote: > I'm pretty sure it's AOL. Their spam filters are excessive, I've had > clients with AOL addresses I couldn't write to if my email contained > certain trigger words. If there's a way to set up a white list it would > probably help. > > On August 29, 2014 7:30:05 AM CDT, dunbarx at aol.com wrote: > >I just got another notice that my list membership had been disabled due > >excessive bounces. Happens weekly. > > > > > >Not sure why. > > > >Craig > > > > > > > > > >-----Original Message----- > >From: Kay C Lan > >To: How to use LiveCode > >Sent: Fri, Aug 29, 2014 12:35 am > >Subject: Re: Strange mailing list email. > > > > > >On Thu, Aug 28, 2014 at 12:32 PM, Nicolas Cueto > >wrote: > >> Months back or maybe even last year, I had to set a gmail filter so > >that > >> some members' list-messages came through despite being marked as > >spam. > >> Alain Farmer's and Craig Newman's are such two. There may be others > >too > >> (not Peter Haworth's). > >> > >Same here, all of Craig's emails end up in my Spam as do most, but not > >all of Alain's. Peter's did this once, but I think only because it's > >part of this thread. > > > >Sorry, I should rephrase that. Gmail puts them in my Spam, as I'm keen > >to read all of Craig's, Alain's and Peter's contributions I take them > >out of Spam, read them, label them appropriately and save for future > >reference. Don't wont you to get the wrong impression ;-) > > > >_______________________________________________ > >use-livecode mailing list > >use-livecode at 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 at 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 | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Fri Aug 29 11:43:11 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 29 Aug 2014 08:43:11 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <53FD3DBE.4020403@fourthworld.com> Message-ID: On Fri, Aug 29, 2014 at 5:58 AM, Trevor DeVore wrote: > Given how dispatch works, I see 'send is' as being what you use if you want > to execute some code after the current event loop has finished executing. > The downside is that the syntax stinks. But if the syntax were updated so > that it supported the same form as dispatch then I think it would be great. > I imagine the engine could also improve the speed to be on par with > dispatch as the engine would know that "someCommand" wouldn't contain any > variables that had to be processed (e.g. "someCommand param1, param2"). > I like that better than the original suggestion to change the dispatch command. Removes the confusion of checking the it and result variables after a call to dispatch with a time on it. One other question regarding send. You can "dispatch function" - is there a way to send a message to a function and get hold of the result (obviously without a time specified)? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From sundown at pacifier.com Fri Aug 29 11:48:18 2014 From: sundown at pacifier.com (JB) Date: Fri, 29 Aug 2014 08:48:18 -0700 Subject: Delete columns... How? In-Reply-To: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> References: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> Message-ID: <0873132A-E1BB-448F-BA80-59DEE163765E@pacifier.com> Thank you! That is something I needed very much today. John Balgenorth On Aug 29, 2014, at 2:33 AM, FlexibleLearning.com wrote: > Related problem to 'join columns': How to delete a column of data? > > This fails... > > on mouseUp > get fld 1 > split it by column > delete local it[2] > combine it by column > put it into fld 2 > end mouseUp > > It seems that 'combine by column' requires the same number of array keys as > the original data set. > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Fri Aug 29 11:50:31 2014 From: sundown at pacifier.com (JB) Date: Fri, 29 Aug 2014 08:50:31 -0700 Subject: Delete columns... How? In-Reply-To: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> References: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> Message-ID: <875576A7-D77F-4EBE-9946-38C9E9321810@pacifier.com> My eyes are not working. I now see you said it fails. John Balgenorth On Aug 29, 2014, at 2:33 AM, FlexibleLearning.com wrote: > Related problem to 'join columns': How to delete a column of data? > > This fails... > > on mouseUp > get fld 1 > split it by column > delete local it[2] > combine it by column > put it into fld 2 > end mouseUp > > It seems that 'combine by column' requires the same number of array keys as > the original data set. > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From th.douez at gmail.com Fri Aug 29 11:57:18 2014 From: th.douez at gmail.com (Thierry Douez) Date: Fri, 29 Aug 2014 17:57:18 +0200 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <53FD3DBE.4020403@fourthworld.com> Message-ID: > > One other question regarding send. You can "dispatch function" - is there > a way to send a message to a function and get hold of the result (obviously > without a time specified)? > > Pete A small trick: send "want_the_return_value" to me put the result on want_the_return_value return 42 end want_the_return_value HTH, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From pete at lcsql.com Fri Aug 29 12:03:47 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 29 Aug 2014 09:03:47 -0700 Subject: which is faster for searching? In-Reply-To: References: Message-ID: I think it's worth pointing pout that the faster operation of repeat for only applies if you're referencing Livecode chunks in the loop. For example, if you have a numerically keyed array, there's nothing wrong with: put the extents of tArray into tExtents repeat with x= item 1 of tExtents to item 2 of tExtents --do stuff with tArray[x] end repeat ... as an alternative to: put the keys of tArray into tKeys sort tKeys numeric repeat for each line rKey in tKeys --do stuff with tArray[rKey] end repeat There's another situation where I use repeat with even though it's a little slower than repeat for and I also alter the contents of the data I'm repeating through without any problems. repeat with x=the number of lines in tVar down to to 1 if then delete line x of tVar end if end repeat I'm deleting some lines of tVar but because I start at the end of the variable and work backwards, deleting a line doesn't affect whatever data structures LC uses internally to keep track of the earlier lines. You could make changes to line x of tVar too and not have any problems Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Aug 29, 2014 at 2:58 AM, Beat Cornaz wrote: > Bob Sneidar wrote : > > > T he reason for all this is that to optimize the repeat loop, the engine > makes one pass through the data, and creates an index of pointers to the > delimiters. If you modify the data, the OS may (and probably will) do some > memory shuffling > and the pointers will no longer be valid. What you > return can be bits and pieces of the original data scrambled like eggs, or > random bits of what is now in that memory space. Ick! > > > > ex. repeat for each line pLine in pData. Don?t alter pLine or pData > inside the repeat control structure. > > I am on digest list form, so there probably have been people before me to > address this. To be sure, here goes : > > I think the first part of what Bob says is true, you cannot alter the > original data. But as you go into each turn of the loop and take rLine > (see) below as a chunck, you can do with rLine whatever you like. I do that > all the time. Only if you change the original data ( e.g. tPermutations) > then the thing fouls. > > As an example : > > on mouseUp > put empty into Changed > > repeat for each line rLine in tPermutations > put 6 into item 3 of rLine -- ** here I change rLine, which > does not affect tPermutations > put rLine & cr after Changed > end repeat > > end mouseUp > > Beat Cornaz > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Fri Aug 29 12:02:35 2014 From: sundown at pacifier.com (JB) Date: Fri, 29 Aug 2014 09:02:35 -0700 Subject: Delete columns... How? In-Reply-To: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> References: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> Message-ID: I am sure someone else can do it better but this works. on mouseUp put fld id 1056 into pData set the itemdel to tab split pData by column put pData[4] into tType put pData[3] into tSize put "size = empty" into tSize put pData[2] into tModDate put empty into tModDate ?THIS COLUMN DELETED put pData[1] into tName put tModDate into pData[3] put tType into pData[1] put tSize into pData[4] put tName into pData[2] combine pData by column put pData into fld id 1056 end mouseUp John Balgenorth On Aug 29, 2014, at 2:33 AM, FlexibleLearning.com wrote: > Related problem to 'join columns': How to delete a column of data? > > This fails... > > on mouseUp > get fld 1 > split it by column > delete local it[2] > combine it by column > put it into fld 2 > end mouseUp > > It seems that 'combine by column' requires the same number of array keys as > the original data set. > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Fri Aug 29 12:06:57 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 29 Aug 2014 09:06:57 -0700 Subject: Delete columns... How? In-Reply-To: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> References: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> Message-ID: Sometimes I dream of: delete column 3 of line 1 to -1 of tVar Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Aug 29, 2014 at 2:33 AM, FlexibleLearning.com < admin at flexiblelearning.com> wrote: > Related problem to 'join columns': How to delete a column of data? > > This fails... > > on mouseUp > get fld 1 > split it by column > delete local it[2] > combine it by column > put it into fld 2 > end mouseUp > > It seems that 'combine by column' requires the same number of array keys as > the original data set. > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Fri Aug 29 12:05:09 2014 From: sundown at pacifier.com (JB) Date: Fri, 29 Aug 2014 09:05:09 -0700 Subject: Delete columns... How? In-Reply-To: References: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> Message-ID: <669C5317-9937-4141-BB62-C0A6A49584A1@pacifier.com> I knew someone had a better way. thank you. John Balgenorth On Aug 29, 2014, at 9:06 AM, Peter Haworth wrote: > Sometimes I dream of: > > delete column 3 of line 1 to -1 of tVar > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Fri, Aug 29, 2014 at 2:33 AM, FlexibleLearning.com < > admin at flexiblelearning.com> wrote: > >> Related problem to 'join columns': How to delete a column of data? >> >> This fails... >> >> on mouseUp >> get fld 1 >> split it by column >> delete local it[2] >> combine it by column >> put it into fld 2 >> end mouseUp >> >> It seems that 'combine by column' requires the same number of array keys as >> the original data set. >> >> Hugh Senior >> FLCo >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Fri Aug 29 12:11:58 2014 From: sundown at pacifier.com (JB) Date: Fri, 29 Aug 2014 09:11:58 -0700 Subject: Delete columns... How? In-Reply-To: References: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> Message-ID: <145A1AFB-45ED-479D-85FB-0A590F868748@pacifier.com> On this the column to delete would need to be joined at the end. John Balgenorth On Aug 29, 2014, at 9:02 AM, JB wrote: > I am sure someone else > can do it better but this works. > > on mouseUp > put fld id 1056 into pData > set the itemdel to tab > split pData by column > put pData[4] into tType > put pData[3] into tSize > put "size = empty" into tSize > put pData[2] into tModDate > put empty into tModDate ?THIS COLUMN DELETED > put pData[1] into tName > put tModDate into pData[3] > put tType into pData[1] > put tSize into pData[4] > put tName into pData[2] > > combine pData by column > put pData into fld id 1056 > end mouseUp > > John Balgenorth > > > On Aug 29, 2014, at 2:33 AM, FlexibleLearning.com wrote: > >> Related problem to 'join columns': How to delete a column of data? >> >> This fails... >> >> on mouseUp >> get fld 1 >> split it by column >> delete local it[2] >> combine it by column >> put it into fld 2 >> end mouseUp >> >> It seems that 'combine by column' requires the same number of array keys as >> the original data set. >> >> Hugh Senior >> FLCo >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Fri Aug 29 12:19:36 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 29 Aug 2014 09:19:36 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: Message-ID: <5400A818.4010503@fourthworld.com> Trevor wrote: > I don't know if there is a reason dispatch doesn't have timers, but what if > "send" was just updated to support "with"? If "with" was present then we > could do this: > > send "someCommand" to someObject with param1, param2 in 10 milliseconds > > The thing is, dispatch is useful if A) you want to know if the command was > handled, B) you want to send a message and you don't care if it is handled > (the engine doesn't report an error if "someCommand" isn't defined > anywhere), or C) you want to call a command/function outside of the message > path. I see this as a much improved version of the 'send "someCommand"' > form of 'send'. > > Given how dispatch works, I see 'send is' as being what you use if you want > to execute some code after the current event loop has finished executing. > The downside is that the syntax stinks. But if the syntax were updated so > that it supported the same form as dispatch then I think it would be great. > I imagine the engine could also improve the speed to be on par with > dispatch as the engine would know that "someCommand" wouldn't contain any > variables that had to be processed (e.g. "someCommand param1, param2"). Good thoughts - I've revised my original request accordingly: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Fri Aug 29 12:20:00 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 29 Aug 2014 09:20:00 -0700 Subject: RunRev Conference Message-ID: I'm looking forward to meeting many of you at the upcoming RunRev Live conference in San Diego. This will the first time I have ever met anyone else that uses Livecode! For those of you who work with SQL databases, I hope you might find the presentations I'm giving to be of interest. "Getting The Most Out Of Your SQL Database" (10am Thursday 9/4) I'll be going beyond the basics of setting up an SQL database and showing how to move as much logic as possible out of your application and into the database, along with why you should consider doing that. "SQLMagic" Seminar (11am Wednesday 9/3 and 2pm Thursday 9/4) I'll be presenting a demo of my new product,SQLMagic. SQLMagic provides you with an entirely new way to develop Livecode/SQL database applications which will drastically reduce or even completely eliminate the need to write database related Livecode scripts and SQL statements. I believe each seminar is limited to a maximum of 8 people so if you're interested in finding out how SQLMagic can make your code disappear, be sure to sign up as soon as possible. Pete lcSQL Software Home of lcStackBrowser , SQLiteAdmin , and SQLMagic From pete at lcsql.com Fri Aug 29 12:21:28 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 29 Aug 2014 09:21:28 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <53FD3DBE.4020403@fourthworld.com> Message-ID: Thank you Thierry! Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Aug 29, 2014 at 8:57 AM, Thierry Douez wrote: > > > > One other question regarding send. You can "dispatch function" - is > there > > a way to send a message to a function and get hold of the result > (obviously > > without a time specified)? > > > > Pete > > > A small trick: > > send "want_the_return_value" to me > put the result > > on want_the_return_value > return 42 > end want_the_return_value > > HTH, > > Thierry > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.com > Maker of sunnYperl - sunnYmidi - sunnYmage > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Fri Aug 29 12:28:18 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 29 Aug 2014 09:28:18 -0700 Subject: General error function? (was Re: Should "dispatch" be extended for timers?) In-Reply-To: References: Message-ID: <5400AA22.90308@fourthworld.com> Thierry Douez wrote: > A small trick: > > send "want_the_return_value" to me > put the result > > on want_the_return_value > return 42 > end want_the_return_value This raises another question: Should we have a general error function? Right now "the result" sometimes contains data, but sometimes contains error info. The "it" variable also sometimes contains data, but (almost?) never contains error info. Sometimes errors put error info in "the result", and other times they explicitly throw an error, requiring the use of try/catch in those cases but not others. That's a whole lotta "sometimes". We have a function for system errors in sysError, but that only applies to things happening outside of LC (file I/O, processes, etc.). Wouldn't life be much easier if we had one reliable way to obtain info whenever an error occurs in our scripts? Maybe simply: get scriptError() ? Ideally this could be handled like the changes to "word" and "char", in which new tokens are rolled out while still maintaining the older way also for several versions, so we have plenty of time to update code at our leisure, using the simpler method going forward while the old code continues to work. And given that Open Language is just around the corner, wouldn't it seem this is the best moment to clean up the mish-mash of inconsistent error handling we have to deal with now? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Fri Aug 29 12:33:13 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 29 Aug 2014 09:33:13 -0700 Subject: RunRev Conference In-Reply-To: References: Message-ID: <5400AB49.2060505@fourthworld.com> Peter Haworth wrote: > I'm looking forward to meeting many of you at the upcoming RunRev Live > conference in San Diego. It'll be great to finally meet you in person. > For those of you who work with SQL databases, I hope you might find > the presentations I'm giving to be of interest. > > "Getting The Most Out Of Your SQL Database" (10am Thursday 9/4) Plugging your session is a must-have for me in the one I'm doing the day before on general data storage options. SQL is such a deep topic that we simply can't cover it along with everything else in any depth, so it's great that the schedule works out as it has: on Wednesday we'll cover a broad range of options, and I'll recommend attendees join your SQL session the next day for the meaty details on that. Thanks for tackling that topic. You're the right person for it, and it's a very relevant need for so many. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From alex at tweedly.net Fri Aug 29 12:56:31 2014 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 29 Aug 2014 17:56:31 +0100 Subject: Delete columns... How? In-Reply-To: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> References: <002101cfc36c$454a5f60$cfdf1e20$@FlexibleLearning.com> Message-ID: <5400B0BF.1040401@tweedly.net> Because (I imagine) "combine ... column" requires that the keys be consecutive numbers. This does work (deleting column 2, just for testing, and omitting the safety check that there are at least 3 columns :-) on mouseUp set the columndelimiter to comma get fld 1 put it into tVar split tVar by column put the number of lines in the keys of tVar into N repeat with i = 3 to N put tVar[i] into tVar[i-1] end repeat delete local tVar[N] -- delete local tVar[2] combine tvar by column put tvar after msg end mouseUp -- Alex. On 29/08/2014 10:33, FlexibleLearning.com wrote: > Related problem to 'join columns': How to delete a column of data? > > This fails... > > on mouseUp > get fld 1 > split it by column > delete local it[2] > combine it by column > put it into fld 2 > end mouseUp > > It seems that 'combine by column' requires the same number of array keys as > the original data set. > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Fri Aug 29 13:21:28 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 29 Aug 2014 20:21:28 +0300 Subject: Simulcast Message-ID: <5400B698.2090303@gmail.com> Can anyone tell what "direct to video" means? In the Simulcast e-mail there are 2 links to the 2 tracks [i.e. 4 links]; the second and the fourth marked as "direct to video". I wonder how those differ from the offerings at the first and third links? Richmond. From alex at tweedly.net Fri Aug 29 13:38:17 2014 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 29 Aug 2014 18:38:17 +0100 Subject: [OT] Access to cpanel on on-rev Message-ID: <5400BA89.6000206@tweedly.net> Sorry, this is such a stupid question .... Does anyone know how do I get access to my cPanel on my on-rev account ? I had a URL in my 'recents' in my browser that I always used to use - but some browser problems meant I had to scrub all history, cookies, etc., and now I can't remember how to get to cPanel. If I go to on-rev.com and hit "Login" it just takes me to my Livecode.com account, and I can't find any way from there to on-rev or cPanel. Thanks -- Alex. From pmbrig at gmail.com Fri Aug 29 13:52:06 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 29 Aug 2014 13:52:06 -0400 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <53FD3DBE.4020403@fourthworld.com> Message-ID: <672980CB-34B2-4B5C-9616-799144A5C323@gmail.com> On Aug 29, 2014, at 11:43 AM, Peter Haworth wrote: > One other question regarding send. You can "dispatch function" - is there > a way to send a message to a function and get hold of the result (obviously > without a time specified)? Look at the "call" command. This works for commands contained in the scripts of other objects, and I thought you could use if for functions too, but as I just experimented with it, I can't get that to work. However, you can do this: put the following into the script of fld "text": on testFn x return x^2 + 1 end testFn Then in the script of some other object you can: call "testFn 3" of fld "test" put the result And you will indeed get "10" in the message box. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From jacque at hyperactivesw.com Fri Aug 29 14:28:52 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 29 Aug 2014 13:28:52 -0500 Subject: Should "dispatch" be extended for timers? In-Reply-To: <672980CB-34B2-4B5C-9616-799144A5C323@gmail.com> References: <53FD3DBE.4020403@fourthworld.com> <672980CB-34B2-4B5C-9616-799144A5C323@gmail.com> Message-ID: <5400C664.2060503@hyperactivesw.com> On 8/29/2014, 12:52 PM, Peter M. Brigham wrote: > I thought you could use if for functions too, but as I just experimented with it, I can't get that to work. Like this: get value("myFunction(param)",cd "otherCard") The second parameter is the location of the function, which can be anywhere in any stack in RAM. This is how you get functions to return values when the function itself isn't in the current message path. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Fri Aug 29 14:32:51 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 29 Aug 2014 11:32:51 -0700 Subject: General error function? (was Re: Should "dispatch" be extended for timers?) In-Reply-To: <5400AA22.90308@fourthworld.com> References: <5400AA22.90308@fourthworld.com> Message-ID: On Fri, Aug 29, 2014 at 9:28 AM, Richard Gaskin wrote: > And given that Open Language is just around the corner, wouldn't it seem > this is the best moment to clean up the mish-mash of inconsistent error > handling we have to deal with now? Absolutely! I'd extend that to the multiple ways SQL errors are notified depending on which revdb call you use. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From admin at FlexibleLearning.com Fri Aug 29 15:12:00 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Fri, 29 Aug 2014 20:12:00 +0100 Subject: Delete columns... How? Message-ID: <003801cfc3bd$1c389820$54a9c860$@FlexibleLearning.com> Not had a chance to confirm your findings below, Alex, but if so then your assessment is most likely correct. Well found, that man! When (if) I get some time, I'm thinking a generic method would be useful to delete arbitrary columns from a data set. Meanwhile, I have submitted an enhancement request (along with a Combine by Column bug in LC7DP10, #13297). Hugh Senior FLCo Alex Tweedly wrote... > Because (I imagine) "combine ... column" requires that the keys be > consecutive numbers. > > This does work (deleting column 2, just for testing, and omitting the > safety check that there are at least 3 columns :-) > > on mouseUp > set the columndelimiter to comma > get fld 1 > put it into tVar > split tVar by column > put the number of lines in the keys of tVar into N > repeat with i = 3 to N > put tVar[i] into tVar[i-1] > end repeat > delete local tVar[N] > -- delete local tVar[2] > combine tvar by column > put tvar after msg > end mouseUp > > -- Alex. > > On 29/08/2014 10:33, FlexibleLearning.com wrote: > > Related problem to 'join columns': How to delete a column of data? > > > > This fails... > > > > on mouseUp > > get fld 1 > > split it by column > > delete local it[2] > > combine it by column > > put it into fld 2 > > end mouseUp > > > > It seems that 'combine by column' requires the same number of array keys > as > > the original data set. > > > > Hugh Senior > > FLCo > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > ------------------------------ > > Message: 26 > Date: Fri, 29 Aug 2014 20:21:28 +0300 > From: Richmond > To: "USE >> How to use LiveCode" > Subject: Simulcast > Message-ID: <5400B698.2090303 at gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > Can anyone tell what "direct to video" means? > > In the Simulcast e-mail there are 2 links to the 2 tracks [i.e. 4 links]; > the second and the fourth marked as "direct to video". > > I wonder how those differ from the offerings at the first and third links? > > Richmond. > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-livecode > > ------------------------------ > > End of use-livecode Digest, Vol 131, Issue 52 > ********************************************* From matthias_livecode_150811 at m-r-d.de Fri Aug 29 16:37:03 2014 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Fri, 29 Aug 2014 22:37:03 +0200 Subject: [OT] Access to cpanel on on-rev In-Reply-To: <5400BA89.6000206@tweedly.net> References: <5400BA89.6000206@tweedly.net> Message-ID: <67970DB7-AC22-4FC8-A712-41B9A260BBBC@m-r-d.de> Alex, there are 2 ways to login in 1. http://yourOn-RevAccountname.on-rev.com:2083 2. if you know the name of the server where your account is on http://servername.on-rev.com:2083 3. in your livecode account under "My Products" (not under my subscriptions) you will see your on-rev account(s) listed. There is a "cPanel" button. Regards, Matthias Am 29.08.2014 um 19:38 schrieb Alex Tweedly : > Sorry, this is such a stupid question .... > > Does anyone know how do I get access to my cPanel on my on-rev account ? > > I had a URL in my 'recents' in my browser that I always used to use - but some browser problems meant I had to scrub all history, cookies, etc., and now I can't remember how to get to cPanel. > > If I go to on-rev.com and hit "Login" it just takes me to my Livecode.com account, and I can't find any way from there to on-rev or cPanel. > > Thanks > -- Alex. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Fri Aug 29 17:32:56 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 29 Aug 2014 17:32:56 -0400 (EDT) Subject: General error function? (was Re: Should "dispatch" be extended for timers?) In-Reply-To: <5400AA22.90308@fourthworld.com> References: <5400AA22.90308@fourthworld.com> Message-ID: <8D191E7EEA57397-220-46C0@webmail-d230.sysops.aol.com> There is a reason Richard Gaskin was promoted to LC ombudsman. This is as useful and powerful as the "messageMessage". Craig -----Original Message----- From: Richard Gaskin To: use-livecode Sent: Fri, Aug 29, 2014 12:29 pm Subject: General error function? (was Re: Should "dispatch" be extended for timers?) Thierry Douez wrote: > A small trick: > > send "want_the_return_value" to me > put the result > > on want_the_return_value > return 42 > end want_the_return_value This raises another question: Should we have a general error function? Right now "the result" sometimes contains data, but sometimes contains error info. The "it" variable also sometimes contains data, but (almost?) never contains error info. Sometimes errors put error info in "the result", and other times they explicitly throw an error, requiring the use of try/catch in those cases but not others. That's a whole lotta "sometimes". We have a function for system errors in sysError, but that only applies to things happening outside of LC (file I/O, processes, etc.). Wouldn't life be much easier if we had one reliable way to obtain info whenever an error occurs in our scripts? Maybe simply: get scriptError() ? Ideally this could be handled like the changes to "word" and "char", in which new tokens are rolled out while still maintaining the older way also for several versions, so we have plenty of time to update code at our leisure, using the simpler method going forward while the old code continues to work. And given that Open Language is just around the corner, wouldn't it seem this is the best moment to clean up the mish-mash of inconsistent error handling we have to deal with now? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Aug 29 17:49:10 2014 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 29 Aug 2014 22:49:10 +0100 Subject: [OT] Access to cpanel on on-rev In-Reply-To: <67970DB7-AC22-4FC8-A712-41B9A260BBBC@m-r-d.de> References: <5400BA89.6000206@tweedly.net> <67970DB7-AC22-4FC8-A712-41B9A260BBBC@m-r-d.de> Message-ID: <5400F556.80008@tweedly.net> Thank you Matthias! On 29/08/2014 21:37, Matthias Rebbe | M-R-D wrote: > Alex, > > there are 2 ways to login in > 1. http://yourOn-RevAccountname.on-rev.com:2083 > > 2. if you know the name of the server where your account is on > http://servername.on-rev.com:2083 Those two work for me - thanks again. > 3. in your livecode account under "My Products" (not under my subscriptions) you will see your on-rev account(s) listed. There is a "cPanel" button. > Nope, doesn't show up there - perhaps because I have a founder's account, so it's not paid periodically ? Whatever - the other ways work fine :-) Thank you, -- Alex. From userev at canelasoftware.com Fri Aug 29 18:59:19 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Fri, 29 Aug 2014 15:59:19 -0700 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> Message-ID: <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> > On Aug 28, 2014, at 11:16 AM, Roger Eller wrote: > > I'm sure that many attendees, or at least some still use older devices. My > iPad (gen1 )can only run iOS 5.1. Can LiveCode no longer build for the > earlier versions? > > ~Roger Hi Roger. I am very sorry about not supporting iPad 1. We decided to require a little more CPU horsepower and modern OS due to our demanding UI. Best regards, Mark Talluto livecloud.io canelasoftware.com From rdimola at evergreeninfo.net Fri Aug 29 19:26:30 2014 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 29 Aug 2014 19:26:30 -0400 Subject: best resize stack handling? In-Reply-To: <001901cfc36c$bf4024d0$3dc06e70$@de> References: <001901cfc36c$bf4024d0$3dc06e70$@de> Message-ID: <002e01cfc3e0$aa044190$fe0cc4b0$@net> I have never needed to call my resize routines more than once. Don't know why you are having a problem. Try turning off messages and the change the screen size and the turn messages backup on and run you routines from the message box and see if it take 2 calls. If so look into your handlers. Also I had some problems in my resize handlers because I had a wait inside one of the handlers. I contacted support and Mark told me that any waits of any form inside a resize stack message path will cause problems. See if this might be your issue. This behavior started in 6.6... Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Tiemo Hollmann TB Sent: Friday, August 29, 2014 5:37 AM To: 'How to use LiveCode' Subject: best resize stack handling? Hello, Using LC 6.6.2 on Win 7 I am having a dynamic GUI layout, where I adapt sizes and positions of all GUI elements on resizeStack. In general it works as expected. Only when resizing the stack window very fast, or using the maximize/minimize window button, my resizing handler doesn't catches up and messes the size of some of the objects. With a double call of my resize handler I found a solution, which works fine for me, but it doesn't looks very sophisticated: on resizeStack pNewW,pNewH,pOldW,pOldH myResizeStack pNewW,pNewH,pOldW,pOldH wait 0 with messages myResizeStack pNewW,pNewH,pOldW,pOldH pass resizeStack end resizeStack What are your experiences and technics for resizing? Thanks Tiemo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Fri Aug 29 19:32:30 2014 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 29 Aug 2014 19:32:30 -0400 Subject: RunRev Conference - I'm Here In-Reply-To: References: Message-ID: <002f01cfc3e1$80c9f210$825dd630$@net> I'm here. Anyone else arrive yet? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From m.schonewille at economy-x-talk.com Fri Aug 29 19:55:28 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 30 Aug 2014 01:55:28 +0200 Subject: LiveCode Meeting 20 September 2014 - Please Register Now! Message-ID: <0A778EF2-DFB7-4AE4-BF95-B7684D3CA62C@economy-x-talk.com> Hi, As you may know already, another LiveCode meeting will be organised on 20 September 2014. We intend to organise a really international gathering with participants from the Netherlands, Belgium, America, the United Kingdom and Germany. A few domestic as well as foreign participants have registered already. We hope we may welcome you as a participant too. There will be several short presentations and there will be plenty of opportunity for discussion. Evidently, there is also a possibility to socialise. After the meeting, we may have a drink or go somewhere for dinner. Like the previous time in Switzerland, we will collect a few special discounted offers for you and we hope to raffle off a few licenses and e-books for free. In any case, I will give away a copy of the book "Programming for the Real Beginner" and a license for Installer Maker. If you have a product that you would like to promote, please send me a message. We are still looking for people who want to discuss a subject, demonstrate a product or give a presentation. Possible examples are commercial products, a hobby project or just an interesting idea. Even if you don't know what you may do yet, contact me and we'll come up with something interesting. The meeting is expected to start around 12:00h., possible a little later, and will be finished no later than 17:00h. We try to find a really good location in Utrecht, to make sure that nobody needs to travel very far. If you know about a good location in the city of Utrecht, please let me know. If you haven't done so yet, please let me know if you intend to participate. Sponsors: Mark Schonewille (book) http://www3.economy-x-talk.com/file.php?node=programming-livecode-for-the-real-beginner Take Control Books by TidBITS Publishing http://www.takecontrolbooks.com/ Economy-x-Talk.com http://www3.economy-x-talk.com/file.php?node=installer-maker-for-lc -- 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. From coiin at verizon.net Fri Aug 29 19:56:23 2014 From: coiin at verizon.net (Colin Holgate) Date: Fri, 29 Aug 2014 19:56:23 -0400 Subject: RunRev Conference - I'm Here In-Reply-To: <002f01cfc3e1$80c9f210$825dd630$@net> References: <002f01cfc3e1$80c9f210$825dd630$@net> Message-ID: Hopefully you?re early, and we?re not late! I get there Monday night. On Aug 29, 2014, at 7:32 PM, Ralph DiMola wrote: > >I'm here. Anyone else arrive yet? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > From pete at lcsql.com Fri Aug 29 20:05:52 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 29 Aug 2014 17:05:52 -0700 Subject: Should "dispatch" be extended for timers? In-Reply-To: <5400C664.2060503@hyperactivesw.com> References: <53FD3DBE.4020403@fourthworld.com> <672980CB-34B2-4B5C-9616-799144A5C323@gmail.com> <5400C664.2060503@hyperactivesw.com> Message-ID: As usual, lots of ways to achieve the same thing, thanks everyone. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Aug 29, 2014 at 11:28 AM, J. Landman Gay wrote: > On 8/29/2014, 12:52 PM, Peter M. Brigham wrote: > >> I thought you could use if for functions too, but as I just experimented >> with it, I can't get that to work. >> > > Like this: > > get value("myFunction(param)",cd "otherCard") > > The second parameter is the location of the function, which can be > anywhere in any stack in RAM. This is how you get functions to return > values when the function itself isn't in the current message path. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Fri Aug 29 20:18:05 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 30 Aug 2014 02:18:05 +0200 Subject: [ANN] Please confirm your address - Programming LiveCode for the Real Beginner Message-ID: <5401183D.8050304@economy-x-talk.com> Hi, This is a note for everyone who purchased my book recently. If you purchased the book Programming LiveCode for the Real Beginner, you should have received an e-mail from me yesterday. The e-mail is a request to confirm your postal mail address. Without this confirmation, we can't send the books. If you didn't get the request or if you get it multiple times, please try contacting support at economy-x-talk.com from a different e-mail address (with a different domain name and a different IP number). You should get an auto-reply within 24 hours. If not, please try yet another e-mail address or try to contact me on Twitter (xtalkprogrammer), Facebook (http://facebook.com/marksch), LinkedIn (https://www.linkedin.com/in/marksch) or Skype (xtalkprogrammer). We will send another batch of books by the end of next week. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From pete at lcsql.com Fri Aug 29 20:32:48 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 29 Aug 2014 17:32:48 -0700 Subject: best resize stack handling? In-Reply-To: <002e01cfc3e0$aa044190$fe0cc4b0$@net> References: <001901cfc36c$bf4024d0$3dc06e70$@de> <002e01cfc3e0$aa044190$fe0cc4b0$@net> Message-ID: On Fri, Aug 29, 2014 at 4:26 PM, Ralph DiMola wrote: > Mark told me that any waits of any > form inside a resize stack message path will cause problems. > I learned that to my cost while trying to step through my resize handler in debug! I wonder how many homegrown resizeStack handlers are out there. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From pete at lcsql.com Fri Aug 29 20:34:18 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 29 Aug 2014 17:34:18 -0700 Subject: RunRev Conference In-Reply-To: <5400AB49.2060505@fourthworld.com> References: <5400AB49.2060505@fourthworld.com> Message-ID: On Fri, Aug 29, 2014 at 9:33 AM, Richard Gaskin wrote: > Thanks for tackling that topic. You're the right person for it, and it's > a very relevant need for so many. Thanks Richard. I'll do my best but, as you said, it's a very deep subject and I only have 50 minutes plus questions. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From skip at magicgate.com Fri Aug 29 21:08:48 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Fri, 29 Aug 2014 21:08:48 -0400 Subject: RunRev Conference - I'm Here In-Reply-To: References: <002f01cfc3e1$80c9f210$825dd630$@net> Message-ID: I will be there Monday night as well. I am very much looking forward to meeting all of you. SKIP On Fri, Aug 29, 2014 at 7:56 PM, Colin Holgate wrote: > Hopefully you?re early, and we?re not late! I get there Monday night. > > > On Aug 29, 2014, at 7:32 PM, Ralph DiMola > wrote: > > > >I'm here. Anyone else arrive yet? > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From roger.e.eller at sealedair.com Fri Aug 29 21:56:12 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 29 Aug 2014 21:56:12 -0400 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> Message-ID: It works well on my 2 year old android tablet, other than assuming it's a phone and forcing portrait mode. Tried on the iPhone 5 with iOS 6, but it refused to even install. I don't like iOS 7, so I'm out of luck there too it seems. Sent from my Android tablet On Aug 29, 2014 6:59 PM, "Mark Talluto" wrote: > > On Aug 28, 2014, at 11:16 AM, Roger Eller > wrote: > > > > I'm sure that many attendees, or at least some still use older devices. > My > > iPad (gen1 )can only run iOS 5.1. Can LiveCode no longer build for the > > earlier versions? > > > > ~Roger > > > > Hi Roger. I am very sorry about not supporting iPad 1. We decided to > require a little more CPU horsepower and modern OS due to our demanding UI. > > Best regards, > > Mark Talluto > livecloud.io > canelasoftware.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Fri Aug 29 23:05:52 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 29 Aug 2014 23:05:52 -0400 Subject: mobile focus Message-ID: How do I figure out which native mobilc field has the focus (or if no native field does)? A field doesn't lose the focus when you do other things like hit buttons, or throw up pick lists, which can make it tricky to deal with fields that have updated values. focusedObject() doesn't seem to work as advertised (it returns the same value no matter which mobile field has the focus, or for that matter, if no field has the focus). I know I could do it the hard way, manually, but... -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From eric at canelasoftware.com Fri Aug 29 23:26:02 2014 From: eric at canelasoftware.com (Eric Corbett) Date: Fri, 29 Aug 2014 20:26:02 -0700 Subject: mobile focus In-Reply-To: References: Message-ID: <18211029-1B01-4705-B468-0A30E410E2B2@canelasoftware.com> Hi Mike, In my limited use of the native field on mobile, I have come across some key features. First, when you create the field, I would recommend creating each one in a separate control, like a desktop field to be used as a place holder. Here's the reason: inputBeginEditing inputTextChanged inputEndEditing inputReturnKey These messages are sent to the script that created the mobile field. Therefore, when more than one field is required on a card, I create a behavior and each dummy field uses the one behavior. Then at the appropriate time (openCard possibly), I send a dispatch to each field to create the appropriate field. I use switch statements in my create field handler to set the appropriate settings like mobileControlSet [control],"keyboardType","[value]; "returnKeyType","[value]", etc. I also use a switch statement in inputReturnKey to determine what to do next. The switch cases become the short name of me since the object is the field and of course the desktop dummy field is named the same as the native mobile field. I guess each card would have a different behavior so the one script is not switching between too many fields. You could also create behaviors for specific groups, but the need to set the behavior of the dummy fields is the key, not setting the behavior of the group. One other option to try to create a mobileControlCreate library might be by to chain behaviors, but that's a complicated subject I am looking forward to hearing more about at the conference in Scott Rossi's 'Well Behaved Behaviors' talk. One other command to keep in mind is mobileControlDo. Specifically, mobileControlDo [control name or ID], "focus". This will cause focus on the field and up comes the keyboard. On iOS, the keyboardActivated message is sent, but on Android, this feature is still broken. To take focus away, the only thing I know to do script wise is 'focus on nothing'. Maybe there's another way; I'll keep my eye on the thread to see who has more experience and a better idea. HTH Eric On Aug 29, 2014, at 8:05 PM, Mike Kerner wrote: > How do I figure out which native mobilc field has the focus (or if no > native field does)? > > A field doesn't lose the focus when you do other things like hit buttons, > or throw up pick lists, which can make it tricky to deal with fields that > have updated values. > > focusedObject() doesn't seem to work as advertised (it returns the same > value no matter which mobile field has the focus, or for that matter, if no > field has the focus). > > I know I could do it the hard way, manually, but... > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gerry.orkin at gmail.com Fri Aug 29 23:46:06 2014 From: gerry.orkin at gmail.com (Gerry) Date: Sat, 30 Aug 2014 13:46:06 +1000 Subject: mobile focus In-Reply-To: <18211029-1B01-4705-B468-0A30E410E2B2@canelasoftware.com> References: <18211029-1B01-4705-B468-0A30E410E2B2@canelasoftware.com> Message-ID: iPhoneControlTarget() Gerry On 30 August 2014 13:26, Eric Corbett wrote: > Hi Mike, > > In my limited use of the native field on mobile, I have come across some key features. > > First, when you create the field, I would recommend creating each one in a separate control, like a desktop field to be used as a place holder. Here's the reason: > > inputBeginEditing > inputTextChanged > inputEndEditing > inputReturnKey > > These messages are sent to the script that created the mobile field. Therefore, when more than one field is required on a card, I create a behavior and each dummy field uses the one behavior. Then at the appropriate time (openCard possibly), I send a dispatch to each field to create the appropriate field. I use switch statements in my create field handler to set the appropriate settings like mobileControlSet [control],"keyboardType","[value]; "returnKeyType","[value]", etc. I also use a switch statement in inputReturnKey to determine what to do next. The switch cases become the short name of me since the object is the field and of course the desktop dummy field is named the same as the native mobile field. > > I guess each card would have a different behavior so the one script is not switching between too many fields. You could also create behaviors for specific groups, but the need to set the behavior of the dummy fields is the key, not setting the behavior of the group. One other option to try to create a mobileControlCreate library might be by to chain behaviors, but that's a complicated subject I am looking forward to hearing more about at the conference in Scott Rossi's 'Well Behaved Behaviors' talk. > > One other command to keep in mind is mobileControlDo. Specifically, mobileControlDo [control name or ID], "focus". This will cause focus on the field and up comes the keyboard. On iOS, the keyboardActivated message is sent, but on Android, this feature is still broken. To take focus away, the only thing I know to do script wise is 'focus on nothing'. > > Maybe there's another way; I'll keep my eye on the thread to see who has more experience and a better idea. > > HTH > > Eric > > On Aug 29, 2014, at 8:05 PM, Mike Kerner wrote: > >> How do I figure out which native mobilc field has the focus (or if no >> native field does)? >> >> A field doesn't lose the focus when you do other things like hit buttons, >> or throw up pick lists, which can make it tricky to deal with fields that >> have updated values. >> >> focusedObject() doesn't seem to work as advertised (it returns the same >> value no matter which mobile field has the focus, or for that matter, if no >> field has the focus). >> >> I know I could do it the hard way, manually, but... >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From userev at canelasoftware.com Sat Aug 30 00:29:35 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Fri, 29 Aug 2014 21:29:35 -0700 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> Message-ID: <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Hi Roger. I will build you an iOS 6 compatible version and deliver it to your via testflight. I will send the request to you via this email. Please let me know if this works for you. Mark Talluto > On Aug 29, 2014, at 6:56 PM, Roger Eller wrote: > > It works well on my 2 year old android tablet, other than assuming it's a > phone and forcing portrait mode. Tried on the iPhone 5 with iOS 6, but it > refused to even install. I don't like iOS 7, so I'm out of luck there too > it seems. > > Sent from my Android tablet > On Aug 29, 2014 6:59 PM, "Mark Talluto" wrote: > >>> On Aug 28, 2014, at 11:16 AM, Roger Eller >> wrote: >>> >>> I'm sure that many attendees, or at least some still use older devices. >> My >>> iPad (gen1 )can only run iOS 5.1. Can LiveCode no longer build for the >>> earlier versions? >>> >>> ~Roger >> >> >> >> Hi Roger. I am very sorry about not supporting iPad 1. We decided to >> require a little more CPU horsepower and modern OS due to our demanding UI. >> >> Best regards, >> >> Mark Talluto >> livecloud.io >> canelasoftware.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From eric at canelasoftware.com Sat Aug 30 00:38:31 2014 From: eric at canelasoftware.com (Eric Corbett) Date: Fri, 29 Aug 2014 21:38:31 -0700 Subject: mobile focus In-Reply-To: References: <18211029-1B01-4705-B468-0A30E410E2B2@canelasoftware.com> Message-ID: <594447E8-6A09-4098-AD17-AEAD29596816@canelasoftware.com> Come on Gerry, that's too simple :-) Now I have to completely rethink my mobileControl library :-( Too easy. Still some work dealing with mobile fields and the keyboard and such, but until native mobile controls become native to LiveCode, it's worth it. E On Aug 29, 2014, at 8:46 PM, Gerry wrote: > iPhoneControlTarget() > > Gerry > > On 30 August 2014 13:26, Eric Corbett wrote: >> Hi Mike, >> >> In my limited use of the native field on mobile, I have come across some key features. >> >> First, when you create the field, I would recommend creating each one in a separate control, like a desktop field to be used as a place holder. Here's the reason: >> >> inputBeginEditing >> inputTextChanged >> inputEndEditing >> inputReturnKey >> >> These messages are sent to the script that created the mobile field. Therefore, when more than one field is required on a card, I create a behavior and each dummy field uses the one behavior. Then at the appropriate time (openCard possibly), I send a dispatch to each field to create the appropriate field. I use switch statements in my create field handler to set the appropriate settings like mobileControlSet [control],"keyboardType","[value]; "returnKeyType","[value]", etc. I also use a switch statement in inputReturnKey to determine what to do next. The switch cases become the short name of me since the object is the field and of course the desktop dummy field is named the same as the native mobile field. >> >> I guess each card would have a different behavior so the one script is not switching between too many fields. You could also create behaviors for specific groups, but the need to set the behavior of the dummy fields is the key, not setting the behavior of the group. One other option to try to create a mobileControlCreate library might be by to chain behaviors, but that's a complicated subject I am looking forward to hearing more about at the conference in Scott Rossi's 'Well Behaved Behaviors' talk. >> >> One other command to keep in mind is mobileControlDo. Specifically, mobileControlDo [control name or ID], "focus". This will cause focus on the field and up comes the keyboard. On iOS, the keyboardActivated message is sent, but on Android, this feature is still broken. To take focus away, the only thing I know to do script wise is 'focus on nothing'. >> >> Maybe there's another way; I'll keep my eye on the thread to see who has more experience and a better idea. >> >> HTH >> >> Eric >> >> On Aug 29, 2014, at 8:05 PM, Mike Kerner wrote: >> >>> How do I figure out which native mobilc field has the focus (or if no >>> native field does)? >>> >>> A field doesn't lose the focus when you do other things like hit buttons, >>> or throw up pick lists, which can make it tricky to deal with fields that >>> have updated values. >>> >>> focusedObject() doesn't seem to work as advertised (it returns the same >>> value no matter which mobile field has the focus, or for that matter, if no >>> field has the focus). >>> >>> I know I could do it the hard way, manually, but... >>> >>> -- >>> On the first day, God created the heavens and the Earth >>> On the second day, God created the oceans. >>> On the third day, God put the animals on hold for a few hours, >>> and did a little diving. >>> And God said, "This is good." >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sat Aug 30 00:48:17 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 30 Aug 2014 00:48:17 -0400 Subject: permuting a string (was Re: Speed) In-Reply-To: <4AB58C7A-D697-4B2C-9CFB-ED33266A686B@gmx.net> References: <4AB58C7A-D697-4B2C-9CFB-ED33266A686B@gmx.net> Message-ID: On Wed, Aug 27, 2014 at 9:33 AM, Beat Cornaz wrote: > So, getting rid of the duplicates inside the script is quite important. I > still don't see yet how I can do that in Geoff's script (I will look into > that again, as soon as I can find a little time). If we can get that to > work, I think we'll have a winner :-) > Okay, I have this figured out but not debugged. It's not amazingly pretty, but it handles duplicates (with restrictions) and is fast. What I did is: Used Alex's code to generate a list of the permutations of all the characters that were duplicates. Substituted in unique characters for each instance of the duplicates. Ran my permutation code on the rest of the characters, with the addition of the duplicates-permutation-strings as the base case. So for example, to get all the permutations of aaaabbbbijkl, it would: Use Alex's code to get the 70 permutations of aaaabbbb. Convert those strings to use abcd for the four a's and efgh for the 4 b's. Use those 70 strings as the result of P2 when the argument for length is 7 It generates the 831,600 unique permutations of a 12 character string where there are two sets of four duplicate characters in a little under half a second on my computer. This compares to my original script, which generates the 39,916,800 permutations of an 11 character string in about 6 seconds, and dies calculating the 479,001,600 permutations of a 12 character string. I'll see if I can debug and post actual tomorrow. gc From th.douez at gmail.com Sat Aug 30 03:17:42 2014 From: th.douez at gmail.com (Thierry Douez) Date: Sat, 30 Aug 2014 09:17:42 +0200 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <53FD3DBE.4020403@fourthworld.com> <672980CB-34B2-4B5C-9616-799144A5C323@gmail.com> <5400C664.2060503@hyperactivesw.com> Message-ID: > As usual, lots of ways to achieve the same thing, thanks everyone. > > Pete Jacqueline's solution is more elegant than mine. Mine is more a trick or workaround :) Both work well. and is there some milliseconds-savy hunters somewhere to test which is the fastest? Regards, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From admin at FlexibleLearning.com Sat Aug 30 03:45:02 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Sat, 30 Aug 2014 08:45:02 +0100 Subject: which is faster for searching? Message-ID: <004101cfc426$4f1a03a0$ed4e0ae0$@FlexibleLearning.com> Peter Haworth wrote > There's another situation where I use repeat with even though it's a little > slower than repeat for and I also alter the contents of the data I'm > repeating through without any problems. > > repeat with x=the number of lines in tVar down to to 1 > if then > delete line x of tVar > end if > end repeat This is an insightful observation. Nice one, Pete! My stock method (and presumably the method you allude to above) is... repeat for each line L in tVar add 1 to x if then put "" into line x of tVar end repeat filter tVar without empty Both methods operate on a single data set and avoid putting the output into a second variable which, for large datasets, involve an unnecessary memory overhead.. Hugh Senior FLCo From eric.sciolli at sunrise.ch Sat Aug 30 04:28:18 2014 From: eric.sciolli at sunrise.ch (Eric Sciolli) Date: Sat, 30 Aug 2014 10:28:18 +0200 Subject: binFile and windows Message-ID: Hello I would save some images from a stack to the hard disk using binfile: ask file "Save image as:" put it into lFolderPath create folder lFolderPath & "/img" put "binFile:/" & lFolderPath & "/img/gruppo.png" into lImage put img "gruppo" of cd "stampa" of stack "stampaObiettivi" into URL lImage put "binFile:/" & lFolderPath & "/img/utente.png" into lImage put img "utente" of cd "stampa" of stack "stampaObiettivi" into URL lImage On macosx it works perfectly: it creates a folder "img" and put the 2 images on it; on windows it only creates the folder "img" but no images are created. Someone can help me? Thanks to all Eric From admin at FlexibleLearning.com Sat Aug 30 06:25:04 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Sat, 30 Aug 2014 11:25:04 +0100 Subject: binFile and windows Message-ID: <004201cfc43c$aa57db00$ff079100$@FlexibleLearning.com> Am unsure exactly what you are trying to do here, Eric. You are putting an image file into a variable, then writing a stack image to that file. Does the image file exist in the first place? If you are trying to write a stack image to a disk file then something like this... create folder lFolderPath & "/img" put lFolderPath & "/img/gruppo.png" into lImage put img "gruppo" of cd "stampa" of stack "stampaObiettivi" into URL lImage put lFolderPath & "/img/utente.png" into lImage put img "utente" of cd "stampa" of stack "stampaObiettivi" into URL lImage Try tracing your script and see where it fails on Windows. Hugh Senior FLCo Eric Sciolli wrote > Hello > I would save some images from a stack to the hard disk using binfile: > > ask file "Save image as:" > > put it into lFolderPath > > create folder lFolderPath & "/img" > put "binFile:/" & lFolderPath & "/img/gruppo.png" into lImage > put img "gruppo" of cd "stampa" of stack "stampaObiettivi" into URL > lImage > > put "binFile:/" & lFolderPath & "/img/utente.png" into lImage > put img "utente" of cd "stampa" of stack "stampaObiettivi" into URL > lImage > > On macosx it works perfectly: it creates a folder "img" and put the 2 images > on it; on windows it only creates the folder "img" but no images are created. > Someone can help me? > > Thanks to all > > Eric From B.Cornaz at gmx.net Sat Aug 30 07:24:02 2014 From: B.Cornaz at gmx.net (Beat Cornaz) Date: Sat, 30 Aug 2014 13:24:02 +0200 Subject: permuting a string (was Re: Speed) Message-ID: Sat, 30 Aug 2014 Geoff wrote : > Used Alex's code to generate a list of the permutations of all the characters that were duplicates. > Substituted in unique characters for each instance of the duplicates. > Ran my permutation code on the rest of the characters, with the addition of the duplicates-permutation-strings as the base case. I was working on the same line, but from the other end. I start with the characters that are not duplicate and use your very fast code to get all the permutations. The I slot in, one for one, all the duplicate elements on all possible positions. After slotting in each duplicate element, I delete duplicate lines, so in the next run of inserting the next duplicate element, I will have to do less, as the duplicate lines have been deleted. I am not completely finished with the script & testing. I will post it as soon as possible. I also tried to serialise Geoff's script and looked if I could get rid of duplicates inside of the script. I did not manage as yet. But the serialised script is a bit easier for me to play around with, as I can better watch the different variables. This is my serialised version of Geoff's original script : function BC4_PermMech_Geoff_Serial_Chars N put "01" & cr & "10"& cr into T repeat with x = 2 to N repeat with i = 0 to x put T into T2 replace i with x in T2 replace cr with i & cr in T2 put T2 after R end repeat put R into T put empty into R end repeat delete char -1 of T return T end BC4_PermMech_Geoff_Serial_Chars All the best, Beat From roger.e.eller at sealedair.com Sat Aug 30 07:59:04 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 30 Aug 2014 07:59:04 -0400 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Message-ID: Thanks Mark. If you go to the trouble of building for an earlier iOS version, please share it. Surely I can't be the only one that doesn't jump whenever Apple says to. ;) Sent from my Android tablet On Aug 30, 2014 12:30 AM, "Mark Talluto" wrote: > Hi Roger. I will build you an iOS 6 compatible version and deliver it to > your via testflight. I will send the request to you via this email. Please > let me know if this works for you. > > Mark Talluto > > > On Aug 29, 2014, at 6:56 PM, Roger Eller > wrote: > > > > It works well on my 2 year old android tablet, other than assuming it's a > > phone and forcing portrait mode. Tried on the iPhone 5 with iOS 6, but > it > > refused to even install. I don't like iOS 7, so I'm out of luck there > too > > it seems. > > > > Sent from my Android tablet > > On Aug 29, 2014 6:59 PM, "Mark Talluto" > wrote: > > > >>> On Aug 28, 2014, at 11:16 AM, Roger Eller > > >> wrote: > >>> > >>> I'm sure that many attendees, or at least some still use older devices. > >> My > >>> iPad (gen1 )can only run iOS 5.1. Can LiveCode no longer build for the > >>> earlier versions? > >>> > >>> ~Roger > >> > >> > >> > >> Hi Roger. I am very sorry about not supporting iPad 1. We decided to > >> require a little more CPU horsepower and modern OS due to our demanding > UI. > >> > >> Best regards, > >> > >> Mark Talluto > >> livecloud.io > >> canelasoftware.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Sat Aug 30 08:19:03 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 30 Aug 2014 08:19:03 -0400 Subject: permuting a string (was Re: Speed) In-Reply-To: References: Message-ID: On Sat, Aug 30, 2014 at 7:24 AM, Beat Cornaz wrote: > Sat, 30 Aug 2014 Geoff wrote : > > > Used Alex's code to generate a list of the permutations of all the > characters that were duplicates. > > Substituted in unique characters for each instance of the duplicates. > > Ran my permutation code on the rest of the characters, with the addition > of the duplicates-permutation-strings as the base case. > > I was working on the same line, but from the other end. I start with the > characters that are not duplicate and use your very fast code to get all > the permutations. > The I slot in, one for one, all the duplicate elements on all possible > positions. After slotting in each duplicate element, I delete duplicate > lines, so in the next run of inserting the next duplicate element, I will > have to do less, as the duplicate lines have been deleted. I am not > completely finished with the script & testing. I will post it as soon as > possible. > This was my initial thought as well, but I didn't like having to work line-by-line on (potentially) large sets of lines from the initial not-duplicate set of permutations. Doing the dupes first is weirder conceptually, but it means that the line-by-line work is done on a much smaller data set. For example, permuting "aaaabbbbcdef" would only require line-by-line on 8!/(4!*4!) = 70 lines. It will be interesting comparing the two solutions. btw, there is no need to unroll the recursive nature of my initial routine unless it bugs you. It only calls itself as many times as there are characters, so there is virtually 0 overhead involved in the function calls. gc From gcanyon at gmail.com Sat Aug 30 09:01:16 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 30 Aug 2014 09:01:16 -0400 Subject: permuting a string (was Re: Speed) In-Reply-To: References: Message-ID: Gah -- now I'm not convinced that my way will work at all. I'll test and reply later. On Sat, Aug 30, 2014 at 8:19 AM, Geoff Canyon wrote: > > On Sat, Aug 30, 2014 at 7:24 AM, Beat Cornaz wrote: > >> Sat, 30 Aug 2014 Geoff wrote : >> >> > Used Alex's code to generate a list of the permutations of all the >> characters that were duplicates. >> > Substituted in unique characters for each instance of the duplicates. >> > Ran my permutation code on the rest of the characters, with the >> addition of the duplicates-permutation-strings as the base case. >> >> I was working on the same line, but from the other end. I start with the >> characters that are not duplicate and use your very fast code to get all >> the permutations. >> The I slot in, one for one, all the duplicate elements on all possible >> positions. After slotting in each duplicate element, I delete duplicate >> lines, so in the next run of inserting the next duplicate element, I will >> have to do less, as the duplicate lines have been deleted. I am not >> completely finished with the script & testing. I will post it as soon as >> possible. >> > > This was my initial thought as well, but I didn't like having to work > line-by-line on (potentially) large sets of lines from the initial > not-duplicate set of permutations. Doing the dupes first is weirder > conceptually, but it means that the line-by-line work is done on a much > smaller data set. For example, permuting "aaaabbbbcdef" would only require > line-by-line on 8!/(4!*4!) = 70 lines. It will be interesting comparing the > two solutions. > > btw, there is no need to unroll the recursive nature of my initial routine > unless it bugs you. It only calls itself as many times as there are > characters, so there is virtually 0 overhead involved in the function calls. > > gc > From MikeKerner at roadrunner.com Sat Aug 30 10:18:09 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 30 Aug 2014 10:18:09 -0400 Subject: mobile focus In-Reply-To: <594447E8-6A09-4098-AD17-AEAD29596816@canelasoftware.com> References: <18211029-1B01-4705-B468-0A30E410E2B2@canelasoftware.com> <594447E8-6A09-4098-AD17-AEAD29596816@canelasoftware.com> Message-ID: mobilecontroltarget doesn't tell me what mobile field has the focus right now, it tells me what I just clicked on, which is not the field with the focus. On Sat, Aug 30, 2014 at 12:38 AM, Eric Corbett wrote: > Come on Gerry, that's too simple :-) > > Now I have to completely rethink my mobileControl library :-( > > Too easy. > > Still some work dealing with mobile fields and the keyboard and such, but > until native mobile controls become native to LiveCode, it's worth it. > > E > > On Aug 29, 2014, at 8:46 PM, Gerry wrote: > > > iPhoneControlTarget() > > > > Gerry > > > > On 30 August 2014 13:26, Eric Corbett wrote: > >> Hi Mike, > >> > >> In my limited use of the native field on mobile, I have come across > some key features. > >> > >> First, when you create the field, I would recommend creating each one > in a separate control, like a desktop field to be used as a place holder. > Here's the reason: > >> > >> inputBeginEditing > >> inputTextChanged > >> inputEndEditing > >> inputReturnKey > >> > >> These messages are sent to the script that created the mobile field. > Therefore, when more than one field is required on a card, I create a > behavior and each dummy field uses the one behavior. Then at the > appropriate time (openCard possibly), I send a dispatch to each field to > create the appropriate field. I use switch statements in my create field > handler to set the appropriate settings like mobileControlSet > [control],"keyboardType","[value]; "returnKeyType","[value]", etc. I also > use a switch statement in inputReturnKey to determine what to do next. The > switch cases become the short name of me since the object is the field and > of course the desktop dummy field is named the same as the native mobile > field. > >> > >> I guess each card would have a different behavior so the one script is > not switching between too many fields. You could also create behaviors for > specific groups, but the need to set the behavior of the dummy fields is > the key, not setting the behavior of the group. One other option to try to > create a mobileControlCreate library might be by to chain behaviors, but > that's a complicated subject I am looking forward to hearing more about at > the conference in Scott Rossi's 'Well Behaved Behaviors' talk. > >> > >> One other command to keep in mind is mobileControlDo. Specifically, > mobileControlDo [control name or ID], "focus". This will cause focus on the > field and up comes the keyboard. On iOS, the keyboardActivated message is > sent, but on Android, this feature is still broken. To take focus away, the > only thing I know to do script wise is 'focus on nothing'. > >> > >> Maybe there's another way; I'll keep my eye on the thread to see who > has more experience and a better idea. > >> > >> HTH > >> > >> Eric > >> > >> On Aug 29, 2014, at 8:05 PM, Mike Kerner wrote: > >> > >>> How do I figure out which native mobilc field has the focus (or if no > >>> native field does)? > >>> > >>> A field doesn't lose the focus when you do other things like hit > buttons, > >>> or throw up pick lists, which can make it tricky to deal with fields > that > >>> have updated values. > >>> > >>> focusedObject() doesn't seem to work as advertised (it returns the same > >>> value no matter which mobile field has the focus, or for that matter, > if no > >>> field has the focus). > >>> > >>> I know I could do it the hard way, manually, but... > >>> > >>> -- > >>> On the first day, God created the heavens and the Earth > >>> On the second day, God created the oceans. > >>> On the third day, God put the animals on hold for a few hours, > >>> and did a little diving. > >>> And God said, "This is good." > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Sat Aug 30 10:20:08 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 30 Aug 2014 10:20:08 -0400 Subject: mobile focus In-Reply-To: References: <18211029-1B01-4705-B468-0A30E410E2B2@canelasoftware.com> <594447E8-6A09-4098-AD17-AEAD29596816@canelasoftware.com> Message-ID: And, yes, I'm well aware of how to do it manually. On Sat, Aug 30, 2014 at 10:18 AM, Mike Kerner wrote: > mobilecontroltarget doesn't tell me what mobile field has the focus right > now, it tells me what I just clicked on, which is not the field with the > focus. > > > On Sat, Aug 30, 2014 at 12:38 AM, Eric Corbett > wrote: > >> Come on Gerry, that's too simple :-) >> >> Now I have to completely rethink my mobileControl library :-( >> >> Too easy. >> >> Still some work dealing with mobile fields and the keyboard and such, but >> until native mobile controls become native to LiveCode, it's worth it. >> >> E >> >> On Aug 29, 2014, at 8:46 PM, Gerry wrote: >> >> > iPhoneControlTarget() >> > >> > Gerry >> > >> > On 30 August 2014 13:26, Eric Corbett wrote: >> >> Hi Mike, >> >> >> >> In my limited use of the native field on mobile, I have come across >> some key features. >> >> >> >> First, when you create the field, I would recommend creating each one >> in a separate control, like a desktop field to be used as a place holder. >> Here's the reason: >> >> >> >> inputBeginEditing >> >> inputTextChanged >> >> inputEndEditing >> >> inputReturnKey >> >> >> >> These messages are sent to the script that created the mobile field. >> Therefore, when more than one field is required on a card, I create a >> behavior and each dummy field uses the one behavior. Then at the >> appropriate time (openCard possibly), I send a dispatch to each field to >> create the appropriate field. I use switch statements in my create field >> handler to set the appropriate settings like mobileControlSet >> [control],"keyboardType","[value]; "returnKeyType","[value]", etc. I also >> use a switch statement in inputReturnKey to determine what to do next. The >> switch cases become the short name of me since the object is the field and >> of course the desktop dummy field is named the same as the native mobile >> field. >> >> >> >> I guess each card would have a different behavior so the one script is >> not switching between too many fields. You could also create behaviors for >> specific groups, but the need to set the behavior of the dummy fields is >> the key, not setting the behavior of the group. One other option to try to >> create a mobileControlCreate library might be by to chain behaviors, but >> that's a complicated subject I am looking forward to hearing more about at >> the conference in Scott Rossi's 'Well Behaved Behaviors' talk. >> >> >> >> One other command to keep in mind is mobileControlDo. Specifically, >> mobileControlDo [control name or ID], "focus". This will cause focus on the >> field and up comes the keyboard. On iOS, the keyboardActivated message is >> sent, but on Android, this feature is still broken. To take focus away, the >> only thing I know to do script wise is 'focus on nothing'. >> >> >> >> Maybe there's another way; I'll keep my eye on the thread to see who >> has more experience and a better idea. >> >> >> >> HTH >> >> >> >> Eric >> >> >> >> On Aug 29, 2014, at 8:05 PM, Mike Kerner wrote: >> >> >> >>> How do I figure out which native mobilc field has the focus (or if no >> >>> native field does)? >> >>> >> >>> A field doesn't lose the focus when you do other things like hit >> buttons, >> >>> or throw up pick lists, which can make it tricky to deal with fields >> that >> >>> have updated values. >> >>> >> >>> focusedObject() doesn't seem to work as advertised (it returns the >> same >> >>> value no matter which mobile field has the focus, or for that matter, >> if no >> >>> field has the focus). >> >>> >> >>> I know I could do it the hard way, manually, but... >> >>> >> >>> -- >> >>> On the first day, God created the heavens and the Earth >> >>> On the second day, God created the oceans. >> >>> On the third day, God put the animals on hold for a few hours, >> >>> and did a little diving. >> >>> And God said, "This is good." >> >>> _______________________________________________ >> >>> use-livecode mailing list >> >>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From userev at canelasoftware.com Sat Aug 30 11:03:23 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sat, 30 Aug 2014 08:03:23 -0700 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Message-ID: On Aug 30, 2014, at 4:59 AM, Roger Eller wrote: > Thanks Mark. If you go to the trouble of building for an earlier iOS > version, please share it. Surely I can't be the only one that doesn't jump > whenever Apple says to. ;) Hi Roger. The conference is in only a few days and Apple does not approve updates very quickly, unfortunately. We currently have an update pending review. TestFlight is our only option. I am more than happy to testFlight for others. Best regards, Mark Talluto livecloud.io canelasoftware.com From coiin at verizon.net Sat Aug 30 11:15:12 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 30 Aug 2014 11:15:12 -0400 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Message-ID: <3AE0D99C-A72E-4096-9BC9-CDFD687F5E16@verizon.net> You are able to ask Apple to expedite the review process. I needed to do that recently, and they processed the app within a day. From livfoss at mac.com Sat Aug 30 12:29:25 2014 From: livfoss at mac.com (Graham Samuel) Date: Sat, 30 Aug 2014 18:29:25 +0200 Subject: Still struggling with Unicode Message-ID: I know people are lining up for the conference (wish I was there!) so I am not sure who's listening, but here goes. On advice from Fraser Gordon, I've been trying to use LC 7 to experiment with Unicode. I've had some tricky problems with the latest version in the LC 'downloads' catalogue (DP10), so I'm having to work somewhat in the abstract (I mean I can't get my actual app script to run, so I'm just using the Message Box). I have been looking on the internet at various representations of Unicode characters (OK, codepoints). It seems that there are some forms that include formatting information and some that don't. For example, choosing that old chestnut, Greek letter lower case pi, a search appears to reveal: U+1D70B seems to represent it in italic (written in LC as 0x1D70B) U+1D7B9 in sans-serif bold (written in LC as 0x1D7B9) but U+0x3C0 appears to be pi with the formatting ignored, and finally I swear that some PDF I downloaded from the Unicode Consortium gave U+1D77F as a legitimate representation of pi - (written 0x1D77F) Sure enough, in the LC 7 message box, ALL these generate a pi glyph. Can anyone explain what this means, and what I should do if someone pastes a Unicode string containing pi into my app - I mean how should I recognise it? Can I strip off the style info, and if so what is the rule for doing that? If this happens for a little old symbol that we've all been using since childhood, what chance to we have with more exotic stuff? Puzzled Graham From richmondmathewson at gmail.com Sat Aug 30 12:44:23 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 30 Aug 2014 19:44:23 +0300 Subject: Still struggling with Unicode In-Reply-To: References: Message-ID: <5401FF67.20804@gmail.com> On 30.08.2014 19:29, Graham Samuel wrote: > I know people are lining up for the conference (wish I was there!) so I am not sure who's listening, but here goes. > > On advice from Fraser Gordon, I've been trying to use LC 7 to experiment with Unicode. I've had some tricky problems with the latest version in the LC 'downloads' catalogue (DP10), so I'm having to work somewhat in the abstract (I mean I can't get my actual app script to run, so I'm just using the Message Box). > > I have been looking on the internet at various representations of Unicode characters (OK, codepoints). It seems that there are some forms that include formatting information and some that don't. For example, choosing that old chestnut, Greek letter lower case pi, a search appears to reveal: > > U+1D70B seems to represent it in italic (written in LC as 0x1D70B) > U+1D7B9 in sans-serif bold (written in LC as 0x1D7B9) > > but > > U+0x3C0 appears to be pi with the formatting ignored, > > and finally I swear that some PDF I downloaded from the Unicode Consortium gave > > U+1D77F as a legitimate representation of pi - (written 0x1D77F) > > Sure enough, in the LC 7 message box, ALL these generate a pi glyph. > > Can anyone explain what this means, and what I should do if someone pastes a Unicode string containing pi into my app - I mean how should I recognise it? Can I strip off the style info, and if so what is the rule for doing that? > > If this happens for a little old symbol that we've all been using since childhood, what chance to we have with more exotic stuff? > > Puzzled > > Graham > The Unicode standard organises glyphs into writing-system families. So; thinking on the fly about pi I would expect it to be in: 1. Greek script. 2. Coptic script. and 3. Mathematical signs. To say the least. MY recommendation is to go here: http://www.unicode.org/charts/ and find the chart that has a Pi at the lowest Unicode address. Just recently I fell into a hole by using an Anglo-Saxon 'thorn' from the "wrong place"; by "wrong place" I mean that the character range the thorn I chose was not included in the standard fonts issued with operating systems. Richmond. From livfoss at mac.com Sat Aug 30 12:50:52 2014 From: livfoss at mac.com (Graham Samuel) Date: Sat, 30 Aug 2014 18:50:52 +0200 Subject: Still struggling with Unicode In-Reply-To: <5401FF67.20804@gmail.com> References: <5401FF67.20804@gmail.com> Message-ID: Thanks for the swift response, Richmond? Are you in Bulgaria? I kind of understand what you mean. But using your example, if someone had an Anglo-Saxon word processor, and chose to italicise 'thorn' (if that is meaningful!), and then pasted a string containing this from the word processor to an LC program, would it have to be recognised by the program separately from the 'plain text' version of 'thorn' or what? It seems to me that if Unicode actually includes styling information (italic, bold, different colours???) we are all doomed! TIA Graham On 30 Aug 2014, at 18:44, Richmond wrote: > > On 30.08.2014 19:29, Graham Samuel wrote: >> I know people are lining up for the conference (wish I was there!) so I am not sure who's listening, but here goes. >> >> On advice from Fraser Gordon, I've been trying to use LC 7 to experiment with Unicode. I've had some tricky problems with the latest version in the LC 'downloads' catalogue (DP10), so I'm having to work somewhat in the abstract (I mean I can't get my actual app script to run, so I'm just using the Message Box). >> >> I have been looking on the internet at various representations of Unicode characters (OK, codepoints). It seems that there are some forms that include formatting information and some that don't. For example, choosing that old chestnut, Greek letter lower case pi, a search appears to reveal: >> >> U+1D70B seems to represent it in italic (written in LC as 0x1D70B) >> U+1D7B9 in sans-serif bold (written in LC as 0x1D7B9) >> >> but >> >> U+0x3C0 appears to be pi with the formatting ignored, >> >> and finally I swear that some PDF I downloaded from the Unicode Consortium gave >> >> U+1D77F as a legitimate representation of pi - (written 0x1D77F) >> >> Sure enough, in the LC 7 message box, ALL these generate a pi glyph. >> >> Can anyone explain what this means, and what I should do if someone pastes a Unicode string containing pi into my app - I mean how should I recognise it? Can I strip off the style info, and if so what is the rule for doing that? >> >> If this happens for a little old symbol that we've all been using since childhood, what chance to we have with more exotic stuff? >> >> Puzzled >> >> Graham >> > > The Unicode standard organises glyphs into writing-system families. > > So; thinking on the fly about pi I would expect it to be in: > > 1. Greek script. > > 2. Coptic script. and > > 3. Mathematical signs. To say the least. > > MY recommendation is to go here: http://www.unicode.org/charts/ > > and find the chart that has a Pi at the lowest Unicode address. > > Just recently I fell into a hole by using an Anglo-Saxon 'thorn' from the "wrong place"; > by "wrong place" I mean that the character range the thorn I chose was not included > in the standard fonts issued with operating systems. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sat Aug 30 13:05:38 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 30 Aug 2014 11:05:38 -0600 Subject: which is faster for searching? In-Reply-To: <004101cfc426$4f1a03a0$ed4e0ae0$@FlexibleLearning.com> References: <004101cfc426$4f1a03a0$ed4e0ae0$@FlexibleLearning.com> Message-ID: Hugh, just did a test.. Rather than putting empty into the line and then filtering without empty, seems to be quite a bit faster to "then delete line x of tVar" Still has the slowdown caused by accessing the lines of the var using "line x of.." but saves the time for the filter. With the data I generated for the test, 100k lines, the delete method took 5.3 secs, the filter method took 14.5. The system i'm on at the moment, only has LC 6.6.2 though, and I seem to remember someone mentioning large speed differences depending on LC version, so if i'm running into that, someone let me know. Or if there is a reason to NOT directly delete the line, let me know that too. On Sat, Aug 30, 2014 at 1:45 AM, FlexibleLearning.com < admin at flexiblelearning.com> wrote: > Peter Haworth wrote > > > There's another situation where I use repeat with even though it's a > little > > slower than repeat for and I also alter the contents of the data I'm > > repeating through without any problems. > > > > repeat with x=the number of lines in tVar down to to 1 > > if then > > delete line x of tVar > > end if > > end repeat > > This is an insightful observation. Nice one, Pete! > > My stock method (and presumably the method you allude to above) is... > > repeat for each line L in tVar > add 1 to x > if then put "" into line x of tVar > end repeat > filter tVar without empty > > Both methods operate on a single data set and avoid putting the output into > a second variable which, for large datasets, involve an unnecessary memory > overhead.. > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sat Aug 30 13:31:29 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 30 Aug 2014 12:31:29 -0500 Subject: Should "dispatch" be extended for timers? In-Reply-To: References: <53FD3DBE.4020403@fourthworld.com> <672980CB-34B2-4B5C-9616-799144A5C323@gmail.com> <5400C664.2060503@hyperactivesw.com> Message-ID: <54020A71.6000407@hyperactivesw.com> On 8/30/2014, 2:17 AM, Thierry Douez wrote: >> As usual, lots of ways to achieve the same thing, thanks everyone. >> >> Pete > > Jacqueline's solution is more elegant than mine. I can't take credit, I got it from the LC dictionary. :) In the "value" entry, my method and yours are both discussed. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jhj at jhj.com Sat Aug 30 14:04:44 2014 From: jhj at jhj.com (Jerry Jensen) Date: Sat, 30 Aug 2014 11:04:44 -0700 Subject: which is faster for searching? In-Reply-To: <004101cfc426$4f1a03a0$ed4e0ae0$@FlexibleLearning.com> References: <004101cfc426$4f1a03a0$ed4e0ae0$@FlexibleLearning.com> Message-ID: <0E3B4314-6A3E-4B9B-9EAD-250B403E33AF@jhj.com> On Aug 30, 2014, at 12:45 AM, FlexibleLearning.com wrote: > My stock method (and presumably the method you allude to above) is... > > repeat for each line L in tVar > add 1 to x > if then put "" into line x of tVar > end repeat > filter tVar without empty The dictionary says you shouldn't mess with tVar within the loop: Pasted from the dictionary: "Important! In any of the for each loops, you should not change the labelVariable or container in a statement inside the loop. Doing so will not cause a script error, but will almost certainly produce unexpected results". If your method works every time, I guess the dictionary is out of date once again. I also remember a post saying that changing the labelVariable (L in this case) works OK, in spite of what the dictionary says. ??? .Jerry From th.douez at gmail.com Sat Aug 30 14:09:04 2014 From: th.douez at gmail.com (Thierry Douez) Date: Sat, 30 Aug 2014 20:09:04 +0200 Subject: Should "dispatch" be extended for timers? In-Reply-To: <54020A71.6000407@hyperactivesw.com> References: <53FD3DBE.4020403@fourthworld.com> <672980CB-34B2-4B5C-9616-799144A5C323@gmail.com> <5400C664.2060503@hyperactivesw.com> <54020A71.6000407@hyperactivesw.com> Message-ID: >>> >>> As usual, lots of ways to achieve the same thing, thanks everyone. >>> >>> Pete >> >> Jacqueline's solution is more elegant than mine. > > > I can't take credit, I got it from the LC dictionary. :) In the "value" > entry, my method and yours are both discussed. So, there are some interesting things to read in the dictionary. Sorry, couldn't resist :) Have a nice seminar, I'll be off during this time for some holidays, my feet in the sea.. ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From jacque at hyperactivesw.com Sat Aug 30 14:34:33 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 30 Aug 2014 13:34:33 -0500 Subject: which is faster for searching? In-Reply-To: <0E3B4314-6A3E-4B9B-9EAD-250B403E33AF@jhj.com> References: <004101cfc426$4f1a03a0$ed4e0ae0$@FlexibleLearning.com> <0E3B4314-6A3E-4B9B-9EAD-250B403E33AF@jhj.com> Message-ID: <54021939.3080303@hyperactivesw.com> On 8/30/2014, 1:04 PM, Jerry Jensen wrote: > The dictionary says you shouldn't mess with tVar within the loop: > > Pasted from the dictionary: "Important! In any of the for each loops, > you should not change the labelVariable or container in a statement > inside the loop. Doing so will not cause a script error, but will > almost certainly produce unexpected results". > > If your method works every time, I guess the dictionary is out of > date once again. I also remember a post saying that changing the > labelVariable (L in this case) works OK, in spite of what the > dictionary says. Mark Waddingham told me a while back that he didn't like that behavior so he changed it, but that it will fail unless you know exactly what you're doing, so he didn't update the dictionary. Which is a way of saying, sometimes it will work and sometimes it won't. He didn't say what would fail, so I usually just avoid changing anything. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dochawk at gmail.com Sat Aug 30 15:27:07 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 30 Aug 2014 12:27:07 -0700 Subject: Datagrid not displaying entries before clicked item on redraw Message-ID: I'm using a datagrid, and my template has a checkfield (a field with code to act like a checkbox). Once I click on an item, it does a bit of processing, and eventually gets to a line where it set the dgData of grp "dnaDisp" to theData for any changed data. The result is that the lines of the datagrid *before* the clicked item aren't drawn, with blank space shown instead--and any attempt to scroll produces an "AN error has occurred in the behavior for the row template: Chunk: no such object" When I click "Edit script", it brings up private function _GenerateReorderedControlList pControls, pIndexes of the data grid button. I've been unable to get a breakpoint to work within that function. Does anyone have any idea what could be going on? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Sat Aug 30 15:55:10 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 30 Aug 2014 12:55:10 -0700 Subject: which is faster for searching? In-Reply-To: References: <004101cfc426$4f1a03a0$ed4e0ae0$@FlexibleLearning.com> Message-ID: Seems like the times you're getting are a lot longer than I'd expect even allowing for repeat with performance so maybe that's it. Perhaps it's a factor of the condition you're testing for and how many lines are deleted. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Aug 30, 2014 at 10:05 AM, Mike Bonner wrote: > Hugh, just did a test.. Rather than putting empty into the line and then > filtering without empty, seems to be quite a bit faster to "then delete > line x of tVar" > > Still has the slowdown caused by accessing the lines of the var using "line > x of.." but saves the time for the filter. With the data I generated for > the test, 100k lines, the delete method took 5.3 secs, the filter method > took 14.5. > > The system i'm on at the moment, only has LC 6.6.2 though, and I seem to > remember someone mentioning large speed differences depending on LC > version, so if i'm running into that, someone let me know. Or if there is > a reason to NOT directly delete the line, let me know that too. > > > On Sat, Aug 30, 2014 at 1:45 AM, FlexibleLearning.com < > admin at flexiblelearning.com> wrote: > > > Peter Haworth wrote > > > > > There's another situation where I use repeat with even though it's a > > little > > > slower than repeat for and I also alter the contents of the data I'm > > > repeating through without any problems. > > > > > > repeat with x=the number of lines in tVar down to to 1 > > > if then > > > delete line x of tVar > > > end if > > > end repeat > > > > This is an insightful observation. Nice one, Pete! > > > > My stock method (and presumably the method you allude to above) is... > > > > repeat for each line L in tVar > > add 1 to x > > if then put "" into line x of tVar > > end repeat > > filter tVar without empty > > > > Both methods operate on a single data set and avoid putting the output > into > > a second variable which, for large datasets, involve an unnecessary > memory > > overhead.. > > > > Hugh Senior > > FLCo > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From userev at canelasoftware.com Sat Aug 30 15:58:06 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sat, 30 Aug 2014 12:58:06 -0700 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: <3AE0D99C-A72E-4096-9BC9-CDFD687F5E16@verizon.net> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> <3AE0D99C-A72E-4096-9BC9-CDFD687F5E16@verizon.net> Message-ID: On Aug 30, 2014, at 8:15 AM, Colin Holgate wrote: > You are able to ask Apple to expedite the review process. I needed to do that recently, and they processed the app within a day. Cool! How does one do that? Best regards, Mark Talluto livecloud.io canelasoftware.com From coiin at verizon.net Sat Aug 30 16:06:27 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 30 Aug 2014 16:06:27 -0400 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> <3AE0D99C-A72E-4096-9BC9-CDFD687F5E16@verizon.net> Message-ID: itunesconnect, Support, App Review, Request Expedited App Review. Frequently Asked Questions: Do you accept expedited review requests if I have an extenuating circumstance? Expedited reviews are provided on a limited basis and intended to help developers who are facing extenuating circumstances. App Review cannot guarantee that your app review will be expedited. To request an expedited review of your app, submit the Request an Expedited App Review form. To help the expediting process, make sure your app is compliant with the App Store Review Guidelines and that it has been fully tested before you submit it. The link it gives is to here: https://developer.apple.com/appstore/contact/?topic=expedite I think it?s a reasonable situation, just tell them it?s for a specific date conference. On Aug 30, 2014, at 3:58 PM, Mark Talluto wrote: > On Aug 30, 2014, at 8:15 AM, Colin Holgate wrote: > >> You are able to ask Apple to expedite the review process. I needed to do that recently, and they processed the app within a day. > > Cool! How does one do that? > > > Best regards, > > Mark Talluto > livecloud.io > canelasoftware.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lists at mangomultimedia.com Sat Aug 30 16:27:12 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 30 Aug 2014 16:27:12 -0400 Subject: Datagrid not displaying entries before clicked item on redraw In-Reply-To: References: Message-ID: On Saturday, August 30, 2014, Dr. Hawkins wrote: > I'm using a datagrid, and my template has a checkfield (a field with code > to act like a checkbox). > > Once I click on an item, it does a bit of processing, and eventually gets > to a line where it > > set the dgData of grp "dnaDisp" to theData > > for any changed data. > > ... > > > Does anyone have any idea what could be going on? > Don't redraw the data grid while handling an event in a row control. You are setting the dgData which redraws the entire data grid. The engine doesn't like it when you delete the control that is executing a script so this is likely the cause of the error. 2 options - 1) Place all of the code that is triggered when the checkbox is clicked in the data grid group. This moves code execution out of the row control and into the group itself. I'm guessing you will have a mouseUp that checks the target and does something if the checkbox is clicked. 2) In the checkbox code use send in time to call the code that the checkbox should trigger. The code that sets the dgData becomes a handler in the data grid group. The checkbox mouseUp code triggers that handler in time so that the checkbox is no longer executing a script if it happens to be deleted. From alex at tweedly.net Sat Aug 30 18:07:27 2014 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 30 Aug 2014 23:07:27 +0100 Subject: which is faster for searching? In-Reply-To: <004101cfc426$4f1a03a0$ed4e0ae0$@FlexibleLearning.com> References: <004101cfc426$4f1a03a0$ed4e0ae0$@FlexibleLearning.com> Message-ID: <54024B1F.3090904@tweedly.net> Two comments .... 1. The two methods below produce different results - the latter one removes lines that were empty in the original input data, the other doesn't (unless that happens to match "data condition on line x"). 2. In the case of large (or huge) datasets, Hugh's concern about avoiding memory overhead may be valid - but those cases are exactly the ones where you most need to be concerned about efficiency. If, for example, the input data consists of 10,000,000 lines and perhaps each line was 100 chars, then we have 1Gb of data. Let's say we retain 50% of the lines (say every alternate one) - then the "repeat for each" method adds 1/2 Gb of virtual memory, and requires copying only 1/2Gb of data during this operation. However, although both the methods below don't add the virtual memory requirement, they copy a LOT of data - each time we delete (or empty) a line, that causes all the subsequent data to be copied 'in place', so it will require (approx) 2,500,000 Gb of data copying (5M * 1/2Gb average remaining data size). So we copy 2.5Pb of data - that's going to cost us a whole lot more time than any paging needed for 1/2Gb of extra virtual memory. -- Alex. On 30/08/2014 08:45, FlexibleLearning.com wrote: > Peter Haworth wrote > >> There's another situation where I use repeat with even though it's a > little >> slower than repeat for and I also alter the contents of the data I'm >> repeating through without any problems. >> >> repeat with x=the number of lines in tVar down to to 1 >> if then >> delete line x of tVar >> end if >> end repeat > This is an insightful observation. Nice one, Pete! > > My stock method (and presumably the method you allude to above) is... > > repeat for each line L in tVar > add 1 to x > if then put "" into line x of tVar > end repeat > filter tVar without empty > > Both methods operate on a single data set and avoid putting the output into > a second variable which, for large datasets, involve an unnecessary memory > overhead.. > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Aug 30 18:16:50 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 30 Aug 2014 15:16:50 -0700 Subject: Datagrid not displaying entries before clicked item on redraw In-Reply-To: References: Message-ID: On Sat, Aug 30, 2014 at 1:27 PM, Trevor DeVore wrote: > Don't redraw the data grid while handling an event in a row control. You > are setting the dgData which redraws the entire data grid. The engine > doesn't like it when you delete the control that is executing a script so > this is likely the cause of the error. > Thank you. I code around that so often that it should have occurred to me. On top of that, it turned out that that update was gratuitous, anyway . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Sat Aug 30 18:17:18 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 30 Aug 2014 15:17:18 -0700 Subject: which is faster for searching? In-Reply-To: <54024B1F.3090904@tweedly.net> References: <004101cfc426$4f1a03a0$ed4e0ae0$@FlexibleLearning.com> <54024B1F.3090904@tweedly.net> Message-ID: Good info Alex. My only comment in response is that if I had 10 million lines of data to process, I wouldn't be doing it in memory, I'd probably be using an SQL database with an appropriate SELECT statement to get only the lines I wanted. Horses for Courses as they say :-) Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Aug 30, 2014 at 3:07 PM, Alex Tweedly wrote: > Two comments .... > > 1. The two methods below produce different results - the latter one > removes lines that were empty in the original input data, the other doesn't > (unless that happens to match "data condition on line x"). > > 2. In the case of large (or huge) datasets, Hugh's concern about avoiding > memory overhead may be valid - but those cases are exactly the ones where > you most need to be concerned about efficiency. > > If, for example, the input data consists of 10,000,000 lines and perhaps > each line was 100 chars, then we have 1Gb of data. Let's say we retain 50% > of the lines (say every alternate one) - then the "repeat for each" method > adds 1/2 Gb of virtual memory, and requires copying only 1/2Gb of data > during this operation. > > However, although both the methods below don't add the virtual memory > requirement, they copy a LOT of data - each time we delete (or empty) a > line, that causes all the subsequent data to be copied 'in place', so it > will require (approx) 2,500,000 Gb of data copying (5M * 1/2Gb average > remaining data size). So we copy 2.5Pb of data - that's going to cost us a > whole lot more time than any paging needed for 1/2Gb of extra virtual > memory. > > -- Alex. > > > > On 30/08/2014 08:45, FlexibleLearning.com wrote: > >> Peter Haworth wrote >> >> There's another situation where I use repeat with even though it's a >>> >> little >> >>> slower than repeat for and I also alter the contents of the data I'm >>> repeating through without any problems. >>> >>> repeat with x=the number of lines in tVar down to to 1 >>> if then >>> delete line x of tVar >>> end if >>> end repeat >>> >> This is an insightful observation. Nice one, Pete! >> >> My stock method (and presumably the method you allude to above) is... >> >> repeat for each line L in tVar >> add 1 to x >> if then put "" into line x of tVar >> end repeat >> filter tVar without empty >> >> Both methods operate on a single data set and avoid putting the output >> into >> a second variable which, for large datasets, involve an unnecessary memory >> overhead.. >> >> Hugh Senior >> FLCo >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Sat Aug 30 20:13:14 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 31 Aug 2014 00:13:14 +0000 (UTC) Subject: RunRev Conference - I'm Here References: <002f01cfc3e1$80c9f210$825dd630$@net> Message-ID: Ralph DiMola writes: > > I'm here. Anyone else arrive yet? I'm in town, staying with my brother. If you're in the hotel or staying nearby, checkout the sand sculpture exhibit this weekend and the tall ships that just came into the harbor a couple of days ago over at the maritime museum. A little bit more of a walk along the water, but well worth it. -- Mark Wieder ahsoftware at gmail.com From userev at canelasoftware.com Sat Aug 30 20:15:38 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sat, 30 Aug 2014 17:15:38 -0700 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> <3AE0D99C-A72E-4096-9BC9-CDFD687F5E16@verizon.net> Message-ID: <084CEE5F-E311-4183-B581-F7A9089AFEDD@canelasoftware.com> Thanks Colin. I will give it a try. Mark > On Aug 30, 2014, at 1:06 PM, Colin Holgate wrote: > > itunesconnect, Support, App Review, Request Expedited App Review. > > > Frequently Asked Questions: > Do you accept expedited review requests if I have an extenuating circumstance? > Expedited reviews are provided on a limited basis and intended to help developers who are facing extenuating circumstances. App Review cannot guarantee that your app review will be expedited. To request an expedited review of your app, submit the Request an Expedited App Review form. To help the expediting process, make sure your app is compliant with the App Store Review Guidelines and that it has been fully tested before you submit it. > > The link it gives is to here: > > https://developer.apple.com/appstore/contact/?topic=expedite > > I think it?s a reasonable situation, just tell them it?s for a specific date conference. > > >> On Aug 30, 2014, at 3:58 PM, Mark Talluto wrote: >> >>> On Aug 30, 2014, at 8:15 AM, Colin Holgate wrote: >>> >>> You are able to ask Apple to expedite the review process. I needed to do that recently, and they processed the app within a day. >> >> Cool! How does one do that? >> >> >> Best regards, >> >> Mark Talluto >> livecloud.io >> canelasoftware.com >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Sat Aug 30 21:00:47 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 30 Aug 2014 18:00:47 -0700 Subject: Strange mailing list email. In-Reply-To: References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> <8D1919C1900F69E-26A0-133B@webmail-vm041.sysops.aol.com> <0a4a9167-9542-49eb-9721-c10de00f64be@email.android.com> Message-ID: <98-240186518.20140830180047@ahsoftware.net> Pete- Friday, August 29, 2014, 8:38:38 AM, you wrote: > Nobody seems to know why Yahoo and AOL did this Sorry to be blunt, but that's a pretty stupid statement. This is a long-overdue move toward making the internet more secure and helping eliminate spam relay points and ip spoofing by conforming to long-established communications standards. The pain points that some are feeling will result in aging software being replaced by more secure versions and long-ignored patched and updates finally being applied. We can talk more in detail about this at the conference. It gets quite geeky and OT for this list. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Sat Aug 30 21:32:47 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 31 Aug 2014 01:32:47 +0000 (UTC) Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Message-ID: Mark Talluto writes: > > Hi Roger. I will build you an iOS 6 compatible version Any chance of a quick turnaround for an Android phone app as well? -- Mark Wieder ahsoftware at gmail.com From userev at canelasoftware.com Sat Aug 30 22:21:42 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sat, 30 Aug 2014 19:21:42 -0700 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Message-ID: Hi Mark. We will update the Android version on the store soon. For the time being, you can download the updated Android version from our site. http://livecloud.io/runrevlive-14-conference-app/ -Mark On Aug 30, 2014, at 6:32 PM, Mark Wieder wrote: > Mark Talluto writes: > >> >> Hi Roger. I will build you an iOS 6 compatible version > > Any chance of a quick turnaround for an Android phone app as well? > > -- > Mark Wieder > ahsoftware at gmail.com > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Sat Aug 30 23:44:55 2014 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 30 Aug 2014 23:44:55 -0400 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Message-ID: <003801cfc4cd$eee97210$ccbc5630$@net> I had an app submitted, reviewed and in the store in 2.5 hours last Wednesday. I was shocked. I've had it take up to 10 days. I never heard of the review process being that quick. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mark Talluto Sent: Saturday, August 30, 2014 11:03 AM To: How to use LiveCode Subject: Re: [ANN] RunRevLive 2014 Conference Mobile App Now Available On Aug 30, 2014, at 4:59 AM, Roger Eller wrote: > Thanks Mark. If you go to the trouble of building for an earlier iOS > version, please share it. Surely I can't be the only one that doesn't > jump whenever Apple says to. ;) Hi Roger. The conference is in only a few days and Apple does not approve updates very quickly, unfortunately. We currently have an update pending review. TestFlight is our only option. I am more than happy to testFlight for others. Best regards, Mark Talluto livecloud.io canelasoftware.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sun Aug 31 04:03:22 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 31 Aug 2014 11:03:22 +0300 Subject: Still struggling with Unicode In-Reply-To: References: <5401FF67.20804@gmail.com> Message-ID: <5402D6CA.2050602@gmail.com> On 30.08.2014 19:50, Graham Samuel wrote: > Thanks for the swift response, Richmond? Are you in Bulgaria? Yup: in hospital :( > > I kind of understand what you mean. But using your example, if someone had an Anglo-Saxon word processor, and chose to italicise 'thorn' (if that is meaningful!), and then pasted a string containing this from the word processor to an LC program, would it have to be recognised by the program separately from the 'plain text' version of 'thorn' or what? It seems to me that if Unicode actually includes styling information (italic, bold, different colours???) we are all doomed! Unicode does not include styling info as such. 1D70B lies in the Alphanumeric mathematical symbols area [ check that here: http://www.unicode.org/charts/ from now on you may find that this website becomes your second home] and is, indeed an italicised Pi. All this really means is that whoever on the Unicode consortium's committee who makes the judgements calls re Maths symbols has made a judgement call. However that Maths area [ http://www.unicode.org/charts/PDF/U1D400.pdf ] contains several Pi symbols: normal Pi, italic Pi, bold Pi with wiggly legs, apple Pi, and so on: 1D6D1, 1D70B, 1D745, 1D77F frankly one wonders what that committee member was smoking :) However, you could be 'boring' and stick with 3C0 from the 'normal' Greek area. make yourself a stack (using version 7) with one button and 2 flds ("ff" & "gg") and put this code into your button: on mouseUp ask "Character Number" if it is not empty then put it into MAGIC put MAGIC into fld "ff" put "0x" & MAGIC into BMAGIC put numToCodepoint(BMAGIC) into fld "gg" end if end mouseUp the great advantage about version 7 is that one doesn't have to mess around with a calculator converting Hex numbers into Decimal ones. then you will be able to check whether the fonts on your system have the glyphs for those Unicode code points. Richmond. > > TIA > > Graham > > On 30 Aug 2014, at 18:44, Richmond wrote: > >> On 30.08.2014 19:29, Graham Samuel wrote: >>> I know people are lining up for the conference (wish I was there!) so I am not sure who's listening, but here goes. >>> >>> On advice from Fraser Gordon, I've been trying to use LC 7 to experiment with Unicode. I've had some tricky problems with the latest version in the LC 'downloads' catalogue (DP10), so I'm having to work somewhat in the abstract (I mean I can't get my actual app script to run, so I'm just using the Message Box). >>> >>> I have been looking on the internet at various representations of Unicode characters (OK, codepoints). It seems that there are some forms that include formatting information and some that don't. For example, choosing that old chestnut, Greek letter lower case pi, a search appears to reveal: >>> >>> U+1D70B seems to represent it in italic (written in LC as 0x1D70B) >>> U+1D7B9 in sans-serif bold (written in LC as 0x1D7B9) >>> >>> but >>> >>> U+0x3C0 appears to be pi with the formatting ignored, >>> >>> and finally I swear that some PDF I downloaded from the Unicode Consortium gave >>> >>> U+1D77F as a legitimate representation of pi - (written 0x1D77F) >>> >>> Sure enough, in the LC 7 message box, ALL these generate a pi glyph. >>> >>> Can anyone explain what this means, and what I should do if someone pastes a Unicode string containing pi into my app - I mean how should I recognise it? Can I strip off the style info, and if so what is the rule for doing that? >>> >>> If this happens for a little old symbol that we've all been using since childhood, what chance to we have with more exotic stuff? >>> >>> Puzzled >>> >>> Graham >>> >> The Unicode standard organises glyphs into writing-system families. >> >> So; thinking on the fly about pi I would expect it to be in: >> >> 1. Greek script. >> >> 2. Coptic script. and >> >> 3. Mathematical signs. To say the least. >> >> MY recommendation is to go here: http://www.unicode.org/charts/ >> >> and find the chart that has a Pi at the lowest Unicode address. >> >> Just recently I fell into a hole by using an Anglo-Saxon 'thorn' from the "wrong place"; >> by "wrong place" I mean that the character range the thorn I chose was not included >> in the standard fonts issued with operating systems. >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From admin at FlexibleLearning.com Sun Aug 31 04:37:01 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Sun, 31 Aug 2014 09:37:01 +0100 Subject: which is faster for searching? Message-ID: <000401cfc4f6$bcdb95e0$3692c1a0$@FlexibleLearning.com> Hi Alex Am struggling to follow your comments and conclusions. Are you saying it would be more memory efficient to store the output in a second variable... repeat for each line L in tVar if then put L &cr after stdout end if end repeat if last char of stdout=cr then delete last char of stdout return stdout If there are no matching lines (worst case), then this would require a 100% memory overhead. I am obviously mis-reading you. Hugh Senior FLCo From: Alex Tweedly To: use-livecode at lists.runrev.com Subject: Re: which is faster for searching? Two comments .... 1. The two methods below produce different results - the latter one removes lines that were empty in the original input data, the other doesn't (unless that happens to match "data condition on line x"). 2. In the case of large (or huge) datasets, Hugh's concern about avoiding memory overhead may be valid - but those cases are exactly the ones where you most need to be concerned about efficiency. If, for example, the input data consists of 10,000,000 lines and perhaps each line was 100 chars, then we have 1Gb of data. Let's say we retain 50% of the lines (say every alternate one) - then the "repeat for each" method adds 1/2 Gb of virtual memory, and requires copying only 1/2Gb of data during this operation. However, although both the methods below don't add the virtual memory requirement, they copy a LOT of data - each time we delete (or empty) a line, that causes all the subsequent data to be copied 'in place', so it will require (approx) 2,500,000 Gb of data copying (5M * 1/2Gb average remaining data size). So we copy 2.5Pb of data - that's going to cost us a whole lot more time than any paging needed for 1/2Gb of extra virtual memory. -- Alex. On 30/08/2014 08:45, FlexibleLearning.com wrote: > Peter Haworth wrote > >> There's another situation where I use repeat with even though it's a little >> slower than repeat for and I also alter the contents of the data I'm >> repeating through without any problems. >> >> repeat with x=the number of lines in tVar down to to 1 >> if then >> delete line x of tVar >> end if >> end repeat > This is an insightful observation. Nice one, Pete! > > My stock method (and presumably the method you allude to above) is... > > repeat for each line L in tVar > add 1 to x > if then put "" into line x of tVar > end repeat > filter tVar without empty > > Both methods operate on a single data set and avoid putting the output into > a second variable which, for large datasets, involve an unnecessary memory > overhead.. > > Hugh Senior > FLCo From admin at FlexibleLearning.com Sun Aug 31 05:53:40 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Sun, 31 Aug 2014 10:53:40 +0100 Subject: Speed testing: Fastest search method Message-ID: <000601cfc501$71c24530$5546cf90$@FlexibleLearning.com> Some benchtesting... Setup: LC7DP10, Windows 7 Source data: 10,000 lines of random data 100 chars per line 3,346 empty lines Task: Strip lines where a given condition is met. Results: Method 1 Operating on a single variable, 'repeat with' + delete line 25.586 secs Method 2 Operating on a single variable, 'repeat for each' + filter with empty 7.755 secs Method 3 Using a second variable for output, 'repeat for each' + second variable 0.136 secs Conclusions: If memory is an issue, then Method 2 is best If memory is not an issue, then Method 3 is best Scripts applied: #1: on mouseUp set the cursor to watch put the long seconds into tStart put fld "Data" into tVar repeat with x=the number of lines in tVar down to 1 if line x of tVar="" then delete line x of tVar end if end repeat put tVar into fld "output" put the long seconds - tStart into fld "timer1" end mouseUp #2: on mouseUp set the cursor to watch put the long seconds into tStart put fld "data" into tVar repeat for each line L in tVar add 1 to x if L="" then put "" into line x of tVar end if end repeat put tVar into fld "output" put the long seconds - tStart into fld "timer2" end mouseUp #3: on mouseUp set the cursor to watch put fld "Data" into tVar put the long seconds into tStart repeat for each line L in tVar if L<>"" then put L &cr after stdout end if end repeat if last char of stdout=cr then delete last char of stdout put stdout into fld "output" put the long seconds - tStart into fld "timer3" end mouseUp > On 30/08/2014 08:45, FlexibleLearning.com wrote: > > Peter Haworth wrote > > > >> There's another situation where I use repeat with even though it's a little > >> slower than repeat for and I also alter the contents of the data I'm > >> repeating through without any problems. > >> > >> repeat with x=the number of lines in tVar down to to 1 > >> if then > >> delete line x of tVar > >> end if > >> end repeat > > This is an insightful observation. Nice one, Pete! > > > > My stock method (and presumably the method you allude to above) is... > > > > repeat for each line L in tVar > > add 1 to x > > if then put "" into line x of tVar > > end repeat > > filter tVar without empty > > > > Both methods operate on a single data set and avoid putting the output > > into a second variable which, for large datasets, involve an unnecessary > > memory overhead.. > > > > Hugh Senior > > FLCo From livfoss at mac.com Sun Aug 31 08:05:58 2014 From: livfoss at mac.com (Graham Samuel) Date: Sun, 31 Aug 2014 14:05:58 +0200 Subject: Still struggling with Unicode In-Reply-To: <5402D6CA.2050602@gmail.com> References: <5401FF67.20804@gmail.com> <5402D6CA.2050602@gmail.com> Message-ID: <48C9B914-51FB-4463-BC80-E9AB7F003B35@mac.com> Richmond - Sorry to hear you're in hospital, Richmond - get better soon! I wonder what Bulgarian hospital food is like... What you tell me fills me with trepidation. My notion is that there will be an app, totally out of my control, running on some box (PC. Mac or Linux - probably the latter) which accepts input of symbols not easy to key in at my end but easy for that user (perhaps they have an Anglo-Saxon or a Sanskrit, or Greek, or even a Mathematical keyboard). The word processor allows styles (bold, italic etc), and then it uses these frankly insane Unicode variants to incorporate some of the styles into the very characters (codepoints) themselves. Such text is then copied and pasted into my LC app, which is then doomed (if its job is to treat all or some of these characters as operators rather than just letters of some alphabet) to recognise all the variants, or put up with the fact that the user will be mystified when one version of a character (codepoint) is recognised and another, just a little bit different, isn't. This goes against years and years of treating styled text as an add-on to plain text which can be stripped out by program. Yuk. Or maybe I was just unlucky in choosing pi. Pity, because that's one of the ones I'm really using in the current project. Cheers Graham On 31 Aug 2014, at 10:03, Richmond wrote: > > On 30.08.2014 19:50, Graham Samuel wrote: >> Thanks for the swift response, Richmond? Are you in Bulgaria? > > Yup: in hospital :( > >> >> I kind of understand what you mean. But using your example, if someone had an Anglo-Saxon word processor, and chose to italicise 'thorn' (if that is meaningful!), and then pasted a string containing this from the word processor to an LC program, would it have to be recognised by the program separately from the 'plain text' version of 'thorn' or what? It seems to me that if Unicode actually includes styling information (italic, bold, different colours???) we are all doomed! > > Unicode does not include styling info as such. > > 1D70B lies in the Alphanumeric mathematical symbols area [ check that here: http://www.unicode.org/charts/ from now on you may find that this website becomes your second home] and is, indeed an italicised Pi. All this really means is that whoever on the Unicode consortium's committee who makes the judgements calls re Maths symbols has made a judgement call. > > However that Maths area [ http://www.unicode.org/charts/PDF/U1D400.pdf ] contains several Pi symbols: normal Pi, italic Pi, bold Pi with wiggly legs, apple Pi, and so on: > > 1D6D1, 1D70B, 1D745, 1D77F frankly one wonders what that committee member was smoking :) > > However, you could be 'boring' and stick with 3C0 from the 'normal' Greek area. > > make yourself a stack (using version 7) with one button and 2 flds ("ff" & "gg") > and put this code into your button: > > on mouseUp > ask "Character Number" > if it is not empty then > put it into MAGIC > put MAGIC into fld "ff" > put "0x" & MAGIC into BMAGIC > put numToCodepoint(BMAGIC) into fld "gg" > end if > end mouseUp > > the great advantage about version 7 is that one doesn't have to mess around with a calculator > converting Hex numbers into Decimal ones. > > then you will be able to check whether the fonts on your system have the glyphs for those > Unicode code points. > > Richmond. > >> >> TIA >> >> Graham >> >> On 30 Aug 2014, at 18:44, Richmond wrote: >> >>> On 30.08.2014 19:29, Graham Samuel wrote: >>>> I know people are lining up for the conference (wish I was there!) so I am not sure who's listening, but here goes. >>>> >>>> On advice from Fraser Gordon, I've been trying to use LC 7 to experiment with Unicode. I've had some tricky problems with the latest version in the LC 'downloads' catalogue (DP10), so I'm having to work somewhat in the abstract (I mean I can't get my actual app script to run, so I'm just using the Message Box). >>>> >>>> I have been looking on the internet at various representations of Unicode characters (OK, codepoints). It seems that there are some forms that include formatting information and some that don't. For example, choosing that old chestnut, Greek letter lower case pi, a search appears to reveal: >>>> >>>> U+1D70B seems to represent it in italic (written in LC as 0x1D70B) >>>> U+1D7B9 in sans-serif bold (written in LC as 0x1D7B9) >>>> >>>> but >>>> >>>> U+0x3C0 appears to be pi with the formatting ignored, >>>> >>>> and finally I swear that some PDF I downloaded from the Unicode Consortium gave >>>> >>>> U+1D77F as a legitimate representation of pi - (written 0x1D77F) >>>> >>>> Sure enough, in the LC 7 message box, ALL these generate a pi glyph. >>>> >>>> Can anyone explain what this means, and what I should do if someone pastes a Unicode string containing pi into my app - I mean how should I recognise it? Can I strip off the style info, and if so what is the rule for doing that? >>>> >>>> If this happens for a little old symbol that we've all been using since childhood, what chance to we have with more exotic stuff? >>>> >>>> Puzzled >>>> >>>> Graham >>>> >>> The Unicode standard organises glyphs into writing-system families. >>> >>> So; thinking on the fly about pi I would expect it to be in: >>> >>> 1. Greek script. >>> >>> 2. Coptic script. and >>> >>> 3. Mathematical signs. To say the least. >>> >>> MY recommendation is to go here: http://www.unicode.org/charts/ >>> >>> and find the chart that has a Pi at the lowest Unicode address. >>> >>> Just recently I fell into a hole by using an Anglo-Saxon 'thorn' from the "wrong place"; >>> by "wrong place" I mean that the character range the thorn I chose was not included >>> in the standard fonts issued with operating systems. >>> >>> Richmond. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sun Aug 31 09:13:32 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 31 Aug 2014 16:13:32 +0300 Subject: Still struggling with Unicode In-Reply-To: <48C9B914-51FB-4463-BC80-E9AB7F003B35@mac.com> References: <5401FF67.20804@gmail.com> <5402D6CA.2050602@gmail.com> <48C9B914-51FB-4463-BC80-E9AB7F003B35@mac.com> Message-ID: <54031F7C.2050008@gmail.com> On 31.08.2014 15:05, Graham Samuel wrote: > Richmond - > > Sorry to hear you're in hospital, Richmond - get better soon! I wonder what Bulgarian hospital food is like... Hospital food is as hospital food does, all over the world. But my wonderful wife keeps bringing me goodies! What is far more important is that the standard of medicine in the hospital I'm is top-knotch and they saved my life. No, FFS, stop feeling sorry about me and get yourself sorted out re Livecode and Unicode :) > > What you tell me fills me with trepidation. My notion is that there will be an app, totally out of my control, running on some box (PC. Mac or Linux - probably the latter) which accepts input of symbols not easy to key in at my end but easy for that user (perhaps they have an Anglo-Saxon or a Sanskrit, or Greek, or even a Mathematical keyboard). The word processor allows styles (bold, italic etc), and then it uses these frankly insane Unicode variants to incorporate some of the styles into the very characters (codepoints) themselves. Such text is then copied and pasted into my LC app, which is then doomed (if its job is to treat all or some of these characters as operators rather than just letters of some alphabet) to recognise all the variants, or put up with the fact that the user will be mystified when one version of a character (codepoint) is recognised and another, just a little bit different, isn't. This goes against years and years of treating styled text as an add-on to plain text which can be stripped out by program. Yuk. > > Or maybe I was just unlucky in choosing pi. Pity, because that's one of the ones I'm really using in the current project. > > Cheers > > Graham I don't think you should worry about styled text. Just use 0x3co and then set its styles as plain/bold/italic as you wish. Richmond. From livfoss at mac.com Sun Aug 31 09:43:24 2014 From: livfoss at mac.com (Graham Samuel) Date: Sun, 31 Aug 2014 15:43:24 +0200 Subject: Still struggling with Unicode In-Reply-To: <54031F7C.2050008@gmail.com> References: <5401FF67.20804@gmail.com> <5402D6CA.2050602@gmail.com> <48C9B914-51FB-4463-BC80-E9AB7F003B35@mac.com> <54031F7C.2050008@gmail.com> Message-ID: Glad about the food. Not to flog a dead horse much longer, but what I'm worried about is not any styling I might or might not choose to add, but the problem of people pasting in (via the clipboard) versions of pi which are not expressed by 0x3C0. I think the only solution is to search the enormous Unicode universe for all likely variants, and convert them on input to the said 0x3C0. Ah well. Cheers Graham On 31 Aug 2014, at 15:13, Richmond wrote: > > On 31.08.2014 15:05, Graham Samuel wrote: >> Richmond - >> >> Sorry to hear you're in hospital, Richmond - get better soon! I wonder what Bulgarian hospital food is like... > > Hospital food is as hospital food does, all over the world. But my wonderful wife keeps bringing > me goodies! > > What is far more important is that the standard of medicine in the hospital I'm is > top-knotch and they saved my life. > > No, FFS, stop feeling sorry about me and get yourself sorted out re Livecode and Unicode :) > >> >> What you tell me fills me with trepidation. My notion is that there will be an app, totally out of my control, running on some box (PC. Mac or Linux - probably the latter) which accepts input of symbols not easy to key in at my end but easy for that user (perhaps they have an Anglo-Saxon or a Sanskrit, or Greek, or even a Mathematical keyboard). The word processor allows styles (bold, italic etc), and then it uses these frankly insane Unicode variants to incorporate some of the styles into the very characters (codepoints) themselves. Such text is then copied and pasted into my LC app, which is then doomed (if its job is to treat all or some of these characters as operators rather than just letters of some alphabet) to recognise all the variants, or put up with the fact that the user will be mystified when one version of a character (codepoint) is recognised and another, just a little bit different, isn't. This goes against years and years of treating styled text as an add-on to > plain text which can be stripped out by program. Yuk. >> >> Or maybe I was just unlucky in choosing pi. Pity, because that's one of the ones I'm really using in the current project. >> >> Cheers >> >> Graham > > I don't think you should worry about styled text. > > Just use 0x3co and then set its styles as plain/bold/italic as you wish. > > Richmond. > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From eric.sciolli at sunrise.ch Sun Aug 31 10:10:40 2014 From: eric.sciolli at sunrise.ch (Eric Sciolli) Date: Sun, 31 Aug 2014 16:10:40 +0200 Subject: binFile and windows Message-ID: Hello again in first mail I wasn't enough clear: I have some images in a card of a stack which I want to export and save on the hardisk of the user. For this I used binFile this way: ask file "Save image as:" put it into lFolderPath create folder lFolderPath & "/img" put "binFile:/" & lFolderPath & "/img/gruppo.png" into lImage put img "gruppo" of cd "stampa" of stack "stampaObiettivi" into URL lImage put "binFile:/" & lFolderPath & "/img/utente.png" into lImage put img "utente" of cd "stampa" of stack "stampaObiettivi" into URL lImage The script works for macosx: it creates a folder img and export the 2 images in that folder; on windows it creates the folder but it's empty. Is there a problem of compatibility with windows? Thanks again for the help Best regards Eric From dfepstein at comcast.net Sun Aug 31 10:21:24 2014 From: dfepstein at comcast.net (dfepstein at comcast.net) Date: Sun, 31 Aug 2014 14:21:24 +0000 (UTC) Subject: Speed testing: Fastest search method In-Reply-To: References: Message-ID: <1968452111.13122481.1409494884672.JavaMail.root@comcast.net> compared 3 methods of stripping lines from a variable, and concluded: If memory is an issue, then Method 2 is best If memory is not an issue, then Method 3 is best 3 questions: 1. Is there a good way to determine ahead of time whether memory is an issue? When I start the handler I can find out how big tVar is, but how do I find out how much memory is available? 2. Does this step in all 3 handlers -- put fld "Data" into tVar -- itself use up memory? If fld "Data" is occupying a gigabyte of RAM, does writing it to tVar use another gigabyte? 3. Method #2 appears to me to violate the rule against modifying the variable to which you are applying "repeat for each": #2: on mouseUp set the cursor to watch put the long seconds into tStart put fld "data" into tVar repeat for each line L in tVar add 1 to x if L="" then put "" into line x of tVar -- RIGHT HERE, WE'RE MODIFYING tVar! end if end repeat put tVar into fld "output" put the long seconds - tStart into fld "timer2" end mouseUp Have I misunderstood that rule? Many thanks. David Epstein From bonnmike at gmail.com Sun Aug 31 10:49:00 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 31 Aug 2014 08:49:00 -0600 Subject: Speed testing: Fastest search method In-Reply-To: <1968452111.13122481.1409494884672.JavaMail.root@comcast.net> References: <1968452111.13122481.1409494884672.JavaMail.root@comcast.net> Message-ID: Method 2 doesn't have the filter, I am guessing the lack is a typo? Also, I'd be interested in your results with the repeat for each method that modifies tvar with the direct line deletion, though thinking about it, (since i'm awake now) it wouldn't work unless it was modified. Something like.. on mouseUp set the cursor to watch put the long seconds into tStart put fld "data" into tVar repeat for each line L in tVar add 1 to x if L="" then delete line x of tVar subtract 1 from x -- to allow for the deleted line. Also still wonder about modifying tvar directly in the repeat for each. end if end repeat put tVar into fld "output" put the long seconds - tStart into fld "timer2" end mouseUp On Sun, Aug 31, 2014 at 8:21 AM, wrote: > compared 3 methods of stripping lines from a > variable, and concluded: > If memory is an issue, then Method 2 is best > If memory is not an issue, then Method 3 is best > > 3 questions: > > 1. Is there a good way to determine ahead of time whether memory is an > issue? When I start the handler I can find out how big tVar is, but how do > I find out how much memory is available? > > 2. Does this step in all 3 handlers -- > put fld "Data" into tVar > -- itself use up memory? If fld "Data" is occupying a gigabyte of RAM, > does writing it to tVar use another gigabyte? > > 3. Method #2 appears to me to violate the rule against modifying the > variable to which you are applying "repeat for each": > #2: > on mouseUp > set the cursor to watch > put the long seconds into tStart > put fld "data" into tVar > repeat for each line L in tVar > add 1 to x > if L="" then > put "" into line x of tVar -- RIGHT HERE, WE'RE MODIFYING tVar! > end if > end repeat > put tVar into fld "output" > put the long seconds - tStart into fld "timer2" > end mouseUp > > Have I misunderstood that rule? > > Many thanks. > > David Epstein > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Aug 31 11:00:11 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 31 Aug 2014 08:00:11 -0700 Subject: Speed testing: Fastest search method In-Reply-To: <000601cfc501$71c24530$5546cf90$@FlexibleLearning.com> References: <000601cfc501$71c24530$5546cf90$@FlexibleLearning.com> Message-ID: Thanks Hugh. I guess I'll be careful about where I use method 1 in future! I would expect method 1 to take longer but that's a huge difference. I wonder if this would speed it up: Put the number of lines in tVar into tCount Repeat with x=tCount down to 1 Pete lcSQL Software On Aug 31, 2014 2:53 AM, "FlexibleLearning.com" wrote: > Some benchtesting... > > Setup: > LC7DP10, Windows 7 > > Source data: > 10,000 lines of random data > 100 chars per line > 3,346 empty lines > > Task: > Strip lines where a given condition is met. > > Results: > Method 1 > Operating on a single variable, 'repeat with' + delete line > 25.586 secs > > Method 2 > Operating on a single variable, 'repeat for each' + filter with empty > 7.755 secs > > Method 3 > Using a second variable for output, 'repeat for each' + second variable > 0.136 secs > > Conclusions: > If memory is an issue, then Method 2 is best > If memory is not an issue, then Method 3 is best > > Scripts applied: > #1: > on mouseUp > set the cursor to watch > put the long seconds into tStart > put fld "Data" into tVar > repeat with x=the number of lines in tVar down to 1 > if line x of tVar="" then > delete line x of tVar > end if > end repeat > put tVar into fld "output" > put the long seconds - tStart into fld "timer1" > end mouseUp > > #2: > on mouseUp > set the cursor to watch > put the long seconds into tStart > put fld "data" into tVar > repeat for each line L in tVar > add 1 to x > if L="" then > put "" into line x of tVar > end if > end repeat > put tVar into fld "output" > put the long seconds - tStart into fld "timer2" > end mouseUp > > #3: > on mouseUp > set the cursor to watch > put fld "Data" into tVar > put the long seconds into tStart > repeat for each line L in tVar > if L<>"" then > put L &cr after stdout > end if > end repeat > if last char of stdout=cr then delete last char of stdout > put stdout into fld "output" > put the long seconds - tStart into fld "timer3" > end mouseUp > > > > On 30/08/2014 08:45, FlexibleLearning.com wrote: > > > Peter Haworth wrote > > > > > >> There's another situation where I use repeat with even though it's a > little > > >> slower than repeat for and I also alter the contents of the data I'm > > >> repeating through without any problems. > > >> > > >> repeat with x=the number of lines in tVar down to to 1 > > >> if then > > >> delete line x of tVar > > >> end if > > >> end repeat > > > > > This is an insightful observation. Nice one, Pete! > > > > > > My stock method (and presumably the method you allude to above) is... > > > > > > repeat for each line L in tVar > > > add 1 to x > > > if then put "" into line x of tVar > > > end repeat > > > filter tVar without empty > > > > > > Both methods operate on a single data set and avoid putting the output > > > into a second variable which, for large datasets, involve an > unnecessary > > > memory overhead.. > > > > > > Hugh Senior > > > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Aug 31 11:05:54 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 31 Aug 2014 08:05:54 -0700 Subject: Strange mailing list email. In-Reply-To: <98-240186518.20140830180047@ahsoftware.net> References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> <8D1919C1900F69E-26A0-133B@webmail-vm041.sysops.aol.com> <0a4a9167-9542-49eb-9721-c10de00f64be@email.android.com> <98-240186518.20140830180047@ahsoftware.net> Message-ID: Not my statement, it was taken from the article I linked to. Pete lcSQL Software On Aug 30, 2014 6:00 PM, "Mark Wieder" wrote: > Pete- > > Friday, August 29, 2014, 8:38:38 AM, you wrote: > > > Nobody seems to know why Yahoo and AOL did this > > Sorry to be blunt, but that's a pretty stupid statement. This is a > long-overdue move toward making the internet more secure and helping > eliminate spam relay points and ip spoofing by conforming to > long-established communications standards. The pain points that some > are feeling will result in aging software being replaced by more > secure versions and long-ignored patched and updates finally being > applied. > > We can talk more in detail about this at the conference. It gets quite > geeky and OT for this list. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sun Aug 31 11:24:20 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 31 Aug 2014 09:24:20 -0600 Subject: Speed testing: Fastest search method In-Reply-To: References: <1968452111.13122481.1409494884672.JavaMail.root@comcast.net> Message-ID: Heres the code i'm testing with. on mouseUp --## First Method, delete line put field "dat" into tDat put the number of lines in tDat into tLines put the millisec into tStart put 1 into x repeat for each line tLIne in tDat if item 1 of tLine < 40 then put x & comma after tDeletions end if add 1 to x end repeat delete the last char of tDeletions sort items of tDeletions descending numeric -- reverse so the delete will work correctly repeat for each item tItem in tDeletions delete line tItem of tDat --delete the lines after the repeat for each. end repeat put tDat into field "outField" put merge("It took [[the millisec - tStart]] Milliseconds") after msg put cr & merge("There were [[tLInes]] Lines to start, and [[the number of lines in tDat]] lines after elimination") after msg -- ####next method put field "dat" into tDat put the millisec into tStart put 1 into x repeat for each line tLIne in tDat if item 1 of tLIne < 40 then put "" into line x of tDat end if add 1 to x end repeat filter tDat without empty put tDat into field "outField" put cr & merge("It took [[the millisec - tStart]] Milliseconds") after msg put cr & merge("There were [[tLInes]] Lines to start, and [[the number of lines in tDat]] lines after elimination") after msg end mouseUp And here is the code to gen data. on mouseUp repeat 80000 times -- put random(500) & comma & any item of ("mike,tom,joe,mary,tracy,janice") & comma & random(400) & cr after tDat end repeat delete the last char of tDat put tDat into field "dat" end mouseUp On windows 7, lc 6.6.2, method 1 is nearly twice as fast with data that removes 6k+ lines. In addition, after comparing data, the filter method isn't working correctly, most likely due to working with tDat during the for each. ? Did someone mention that this has been changed? If so, what version do I need to be running to make the filter method work correctly? The problem with the delete method of course, is that the more lines are deleted, the more speed penalty (also, if they're weighted towards the end of the data) Seems though, that hitting tDat using line numbers, whether deleting, or changing, would have similar speed penalties. Also, if the criteria is not too complicated (say, all items that are less than 40 as in my example) perhaps a pre sort, search for the first matching line, locate the last matching line, then delete lines ....... all in one hit. On Sun, Aug 31, 2014 at 8:49 AM, Mike Bonner wrote: > Method 2 doesn't have the filter, I am guessing the lack is a typo? Also, > I'd be interested in your results with the repeat for each method that > modifies tvar with the direct line deletion, though thinking about it, > (since i'm awake now) it wouldn't work unless it was modified. Something > like.. > > on mouseUp > set the cursor to watch > put the long seconds into tStart > put fld "data" into tVar > repeat for each line L in tVar > add 1 to x > if L="" then > delete line x of tVar > subtract 1 from x -- to allow for the deleted line. Also still > wonder about modifying tvar directly in the repeat for each. > > end if > end repeat > put tVar into fld "output" > put the long seconds - tStart into fld "timer2" > end mouseUp > > > > On Sun, Aug 31, 2014 at 8:21 AM, wrote: > >> compared 3 methods of stripping lines from >> a variable, and concluded: >> If memory is an issue, then Method 2 is best >> If memory is not an issue, then Method 3 is best >> >> 3 questions: >> >> 1. Is there a good way to determine ahead of time whether memory is an >> issue? When I start the handler I can find out how big tVar is, but how do >> I find out how much memory is available? >> >> 2. Does this step in all 3 handlers -- >> put fld "Data" into tVar >> -- itself use up memory? If fld "Data" is occupying a gigabyte of RAM, >> does writing it to tVar use another gigabyte? >> >> 3. Method #2 appears to me to violate the rule against modifying the >> variable to which you are applying "repeat for each": >> #2: >> on mouseUp >> set the cursor to watch >> put the long seconds into tStart >> put fld "data" into tVar >> repeat for each line L in tVar >> add 1 to x >> if L="" then >> put "" into line x of tVar -- RIGHT HERE, WE'RE MODIFYING tVar! >> end if >> end repeat >> put tVar into fld "output" >> put the long seconds - tStart into fld "timer2" >> end mouseUp >> >> Have I misunderstood that rule? >> >> Many thanks. >> >> David Epstein >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From richmondmathewson at gmail.com Sun Aug 31 11:33:40 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 31 Aug 2014 18:33:40 +0300 Subject: [OT] Spies under the bed. Message-ID: <54034054.3070703@gmail.com> I wrote an e-mail to Heather, the list Mum, in which I used a phrase which I have never used in any e-mail ever before or since. Within 72 hours my gmail inbox is filling up with e-mail spam based on that phrase. This is NOT meant as an indictment of Heather! But what is does show is that any e-mail that contains any "interesting" information gets harvested by spy-bots or whatever quicker than you can say "numToCodepoint". Richmond. From sritcp at gmail.com Sun Aug 31 12:08:04 2014 From: sritcp at gmail.com (Sri) Date: Sun, 31 Aug 2014 09:08:04 -0700 (PDT) Subject: Speed testing: Fastest search method In-Reply-To: References: <000601cfc501$71c24530$5546cf90$@FlexibleLearning.com> <1968452111.13122481.1409494884672.JavaMail.root@comcast.net> Message-ID: <1409501284712-4682730.post@n4.nabble.com> Hi Mike: In your method 1, ..... repeat for each item tItem in tDeletions delete line tItem of tDat --delete the lines after the repeat for each. end repeat ....... the line numbers of tDat will get rearranged dynamically after each deletion, whereas the line numbers contained in tDeletions are static. Won't it mess up the whole thing? Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Speed-testing-Fastest-search-method-tp4682719p4682730.html Sent from the Revolution - User mailing list archive at Nabble.com. From sundown at pacifier.com Sun Aug 31 12:22:12 2014 From: sundown at pacifier.com (JB) Date: Sun, 31 Aug 2014 09:22:12 -0700 Subject: [OT] Spies under the bed. In-Reply-To: <54034054.3070703@gmail.com> References: <54034054.3070703@gmail.com> Message-ID: <0A12ADBC-4E58-48CC-9D07-9F40E7CDF7A8@pacifier.com> It sounds to me like the spies came out from under the bed and are now in your bed. Booz, Allen, Hamilton They are in control of everything and in bed with every politician and government agency. They are bank managers and corporate managers in every private, industrial and government agency. They are involved deeply in the DOJ, SEC, FBI NSA, Homeland Security and anything else you can think of and even things you cannot think of. They are attorneys, prosecutors and judges so if they want to destroy you even your own attorney will help lose the case. They control the news in America. In other words get used to it because unless they are stopped nothing will change. They control the politicians in America so who ever wins a election will be serving them and not the people. it is what is in their best interest that counts. They are part of the military industrial complex that Eisenhower warned US about in his departure speech. They are a global company. John Balgenorth On Aug 31, 2014, at 8:33 AM, Richmond wrote: > I wrote an e-mail to Heather, the list Mum, in which I used a phrase which I have never used > in any e-mail ever before or since. > > Within 72 hours my gmail inbox is filling up with e-mail spam based on that phrase. > > This is NOT meant as an indictment of Heather! > > But what is does show is that any e-mail that contains any "interesting" information > gets harvested by spy-bots or whatever quicker than you can say "numToCodepoint". > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sun Aug 31 12:35:13 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 31 Aug 2014 10:35:13 -0600 Subject: Speed testing: Fastest search method In-Reply-To: <1409501284712-4682730.post@n4.nabble.com> References: <000601cfc501$71c24530$5546cf90$@FlexibleLearning.com> <1968452111.13122481.1409494884672.JavaMail.root@comcast.net> <1409501284712-4682730.post@n4.nabble.com> Message-ID: The items in tDeletions are reverse sorted. That way the lines are deleted from last to first, so that things work correctly. Wondering about filter also now. Again, depending on how complicated the criteria (though with regex support,could be pretty darn complex?) a direct filter might be the best option. On Sun, Aug 31, 2014 at 10:08 AM, Sri wrote: > Hi Mike: > > In your method 1, > ..... > repeat for each item tItem in tDeletions > delete line tItem of tDat --delete the lines after the repeat for > each. > end repeat > ....... > > the line numbers of tDat will get rearranged dynamically after each > deletion, > whereas the line numbers contained in tDeletions are static. > Won't it mess up the whole thing? > > Regards, > Sri > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Speed-testing-Fastest-search-method-tp4682719p4682730.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Sun Aug 31 12:48:17 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sun, 31 Aug 2014 19:48:17 +0300 Subject: Speed testing: Fastest search method In-Reply-To: <000601cfc501$71c24530$5546cf90$@FlexibleLearning.com> References: <000601cfc501$71c24530$5546cf90$@FlexibleLearning.com> Message-ID: <682db54b6a59a4148abe5de5d8fc2545.squirrel@185.8.104.234> Hi > Some benchtesting... > > Task: > Strip lines where a given condition is met. Have you tried the following method (condition is "line empty") : on mouseUp set the cursor to watch put the long seconds into tStart put fld "Data" into tVar repeat while tVar contains (return & return) replace (return & return) with return in tVar end repeat put tVar into fld "output" put the long seconds - tStart into fld "timer1" end mouseUp jbv From mwieder at ahsoftware.net Sun Aug 31 12:52:03 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 31 Aug 2014 16:52:03 +0000 (UTC) Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Message-ID: Mark Talluto writes: > > Hi Mark. We will update the Android version on the store soon. For the time being, you can download the > updated Android version from our site. http://livecloud.io/runrevlive-14-conference-app/ Ya, no, I did that yesterday. It's unreadable/unusable on a phone. Sorry. -- Mark Wieder ahsoftware at gmail.com From prothero at earthednet.org Sun Aug 31 13:02:17 2014 From: prothero at earthednet.org (Earthednet-wp) Date: Sun, 31 Aug 2014 10:02:17 -0700 Subject: [OT] Spies under the bed. In-Reply-To: <54034054.3070703@gmail.com> References: <54034054.3070703@gmail.com> Message-ID: <0117EA03-4838-4BAA-A245-74C56ED7CDEA@earthednet.org> An attorney relative of mine is a lawyer who specializes in "Drunk while driving" cases. He found that when he sent emails to his clients using gmail, with the word "DUI", his clients, on their webmail pages, had ads for "DUI" lawyers (his competitors) on their browser pages. Needless to say, he stopped using that word. I guess that's the price of a free email service: marketing based on your email content. Bill William Prothero http://es.earthednet.org > On Aug 31, 2014, at 8:33 AM, Richmond wrote: > > I wrote an e-mail to Heather, the list Mum, in which I used a phrase which I have never used > in any e-mail ever before or since. > > Within 72 hours my gmail inbox is filling up with e-mail spam based on that phrase. > > This is NOT meant as an indictment of Heather! > > But what is does show is that any e-mail that contains any "interesting" information > gets harvested by spy-bots or whatever quicker than you can say "numToCodepoint". > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From eric at canelasoftware.com Sun Aug 31 13:02:14 2014 From: eric at canelasoftware.com (Eric Corbett) Date: Sun, 31 Aug 2014 10:02:14 -0700 Subject: mobile focus In-Reply-To: References: <18211029-1B01-4705-B468-0A30E410E2B2@canelasoftware.com> <594447E8-6A09-4098-AD17-AEAD29596816@canelasoftware.com> Message-ID: <289C8B77-0AA0-47CC-86CF-EAE158423571@canelasoftware.com> Sorry Mike, I missed the manual part of your question the first time. At a minimum, I learned about mobileControlTarget. Don't know how I missed that in the docs. Does anyone have a suggestion on how to handle the mobile field with keyboard movements? Specifically, I want the controls to slide up and down as the keyboard is (de)-activated. But if the field has content, resetting the rect causes some flashing even if I set the mobile control vis to false. thanks, - eric > On Aug 30, 2014, at 7:20, Mike Kerner wrote: > > And, yes, I'm well aware of how to do it manually. > > > On Sat, Aug 30, 2014 at 10:18 AM, Mike Kerner > wrote: > >> mobilecontroltarget doesn't tell me what mobile field has the focus right >> now, it tells me what I just clicked on, which is not the field with the >> focus. >> >> >> On Sat, Aug 30, 2014 at 12:38 AM, Eric Corbett >> wrote: >> >>> Come on Gerry, that's too simple :-) >>> >>> Now I have to completely rethink my mobileControl library :-( >>> >>> Too easy. >>> >>> Still some work dealing with mobile fields and the keyboard and such, but >>> until native mobile controls become native to LiveCode, it's worth it. >>> >>> E >>> >>>> On Aug 29, 2014, at 8:46 PM, Gerry wrote: >>>> >>>> iPhoneControlTarget() >>>> >>>> Gerry >>>> >>>>> On 30 August 2014 13:26, Eric Corbett wrote: >>>>> Hi Mike, >>>>> >>>>> In my limited use of the native field on mobile, I have come across >>> some key features. >>>>> >>>>> First, when you create the field, I would recommend creating each one >>> in a separate control, like a desktop field to be used as a place holder. >>> Here's the reason: >>>>> >>>>> inputBeginEditing >>>>> inputTextChanged >>>>> inputEndEditing >>>>> inputReturnKey >>>>> >>>>> These messages are sent to the script that created the mobile field. >>> Therefore, when more than one field is required on a card, I create a >>> behavior and each dummy field uses the one behavior. Then at the >>> appropriate time (openCard possibly), I send a dispatch to each field to >>> create the appropriate field. I use switch statements in my create field >>> handler to set the appropriate settings like mobileControlSet >>> [control],"keyboardType","[value]; "returnKeyType","[value]", etc. I also >>> use a switch statement in inputReturnKey to determine what to do next. The >>> switch cases become the short name of me since the object is the field and >>> of course the desktop dummy field is named the same as the native mobile >>> field. >>>>> >>>>> I guess each card would have a different behavior so the one script is >>> not switching between too many fields. You could also create behaviors for >>> specific groups, but the need to set the behavior of the dummy fields is >>> the key, not setting the behavior of the group. One other option to try to >>> create a mobileControlCreate library might be by to chain behaviors, but >>> that's a complicated subject I am looking forward to hearing more about at >>> the conference in Scott Rossi's 'Well Behaved Behaviors' talk. >>>>> >>>>> One other command to keep in mind is mobileControlDo. Specifically, >>> mobileControlDo [control name or ID], "focus". This will cause focus on the >>> field and up comes the keyboard. On iOS, the keyboardActivated message is >>> sent, but on Android, this feature is still broken. To take focus away, the >>> only thing I know to do script wise is 'focus on nothing'. >>>>> >>>>> Maybe there's another way; I'll keep my eye on the thread to see who >>> has more experience and a better idea. >>>>> >>>>> HTH >>>>> >>>>> Eric >>>>> >>>>>> On Aug 29, 2014, at 8:05 PM, Mike Kerner wrote: >>>>>> >>>>>> How do I figure out which native mobilc field has the focus (or if no >>>>>> native field does)? >>>>>> >>>>>> A field doesn't lose the focus when you do other things like hit >>> buttons, >>>>>> or throw up pick lists, which can make it tricky to deal with fields >>> that >>>>>> have updated values. >>>>>> >>>>>> focusedObject() doesn't seem to work as advertised (it returns the >>> same >>>>>> value no matter which mobile field has the focus, or for that matter, >>> if no >>>>>> field has the focus). >>>>>> >>>>>> I know I could do it the hard way, manually, but... >>>>>> >>>>>> -- >>>>>> On the first day, God created the heavens and the Earth >>>>>> On the second day, God created the oceans. >>>>>> On the third day, God put the animals on hold for a few hours, >>>>>> and did a little diving. >>>>>> And God said, "This is good." >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Sun Aug 31 13:01:41 2014 From: sundown at pacifier.com (JB) Date: Sun, 31 Aug 2014 10:01:41 -0700 Subject: [OT] Spies under the bed. In-Reply-To: <0A12ADBC-4E58-48CC-9D07-9F40E7CDF7A8@pacifier.com> References: <54034054.3070703@gmail.com> <0A12ADBC-4E58-48CC-9D07-9F40E7CDF7A8@pacifier.com> Message-ID: <05FECAD8-D896-4C7E-A682-B10235787409@pacifier.com> Hi Richard, Don?t worry about it too much. They will tell you they love you. This is all being done for your own good. They care about you & want to protect you from all sorts of things. The only reason the spies came out from under your bed and are now in your bed is because they love you & care about you. In other words you are about to get screwed. Do not resist it will only make it worse. John Balgenorth On Aug 31, 2014, at 9:22 AM, JB wrote: > It sounds to me like the spies came out from > under the bed and are now in your bed. > > Booz, Allen, Hamilton > > They are in control of everything and in bed with > every politician and government agency. They > are bank managers and corporate managers in > every private, industrial and government agency. > They are involved deeply in the DOJ, SEC, FBI > NSA, Homeland Security and anything else you > can think of and even things you cannot think of. > > They are attorneys, prosecutors and judges so if > they want to destroy you even your own attorney > will help lose the case. They control the news in > America. > > In other words get used to it because unless they > are stopped nothing will change. They control the > politicians in America so who ever wins a election > will be serving them and not the people. it is what > is in their best interest that counts. They are part > of the military industrial complex that Eisenhower > warned US about in his departure speech. > > They are a global company. > > John Balgenorth > > > > On Aug 31, 2014, at 8:33 AM, Richmond wrote: > >> I wrote an e-mail to Heather, the list Mum, in which I used a phrase which I have never used >> in any e-mail ever before or since. >> >> Within 72 hours my gmail inbox is filling up with e-mail spam based on that phrase. >> >> This is NOT meant as an indictment of Heather! >> >> But what is does show is that any e-mail that contains any "interesting" information >> gets harvested by spy-bots or whatever quicker than you can say "numToCodepoint". >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Sun Aug 31 13:07:16 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 31 Aug 2014 13:07:16 -0400 Subject: mobile focus In-Reply-To: <289C8B77-0AA0-47CC-86CF-EAE158423571@canelasoftware.com> References: <18211029-1B01-4705-B468-0A30E410E2B2@canelasoftware.com> <594447E8-6A09-4098-AD17-AEAD29596816@canelasoftware.com> <289C8B77-0AA0-47CC-86CF-EAE158423571@canelasoftware.com> Message-ID: You have to do it manually. You can try locking the screen to see if that will help with the flash. On Sun, Aug 31, 2014 at 1:02 PM, Eric Corbett wrote: > Sorry Mike, I missed the manual part of your question the first time. At a > minimum, I learned about mobileControlTarget. Don't know how I missed that > in the docs. > > Does anyone have a suggestion on how to handle the mobile field with > keyboard movements? Specifically, I want the controls to slide up and down > as the keyboard is (de)-activated. But if the field has content, resetting > the rect causes some flashing even if I set the mobile control vis to false. > > thanks, > - eric > > > > > On Aug 30, 2014, at 7:20, Mike Kerner wrote: > > > > And, yes, I'm well aware of how to do it manually. > > > > > > On Sat, Aug 30, 2014 at 10:18 AM, Mike Kerner > > > wrote: > > > >> mobilecontroltarget doesn't tell me what mobile field has the focus > right > >> now, it tells me what I just clicked on, which is not the field with the > >> focus. > >> > >> > >> On Sat, Aug 30, 2014 at 12:38 AM, Eric Corbett > > >> wrote: > >> > >>> Come on Gerry, that's too simple :-) > >>> > >>> Now I have to completely rethink my mobileControl library :-( > >>> > >>> Too easy. > >>> > >>> Still some work dealing with mobile fields and the keyboard and such, > but > >>> until native mobile controls become native to LiveCode, it's worth it. > >>> > >>> E > >>> > >>>> On Aug 29, 2014, at 8:46 PM, Gerry wrote: > >>>> > >>>> iPhoneControlTarget() > >>>> > >>>> Gerry > >>>> > >>>>> On 30 August 2014 13:26, Eric Corbett > wrote: > >>>>> Hi Mike, > >>>>> > >>>>> In my limited use of the native field on mobile, I have come across > >>> some key features. > >>>>> > >>>>> First, when you create the field, I would recommend creating each one > >>> in a separate control, like a desktop field to be used as a place > holder. > >>> Here's the reason: > >>>>> > >>>>> inputBeginEditing > >>>>> inputTextChanged > >>>>> inputEndEditing > >>>>> inputReturnKey > >>>>> > >>>>> These messages are sent to the script that created the mobile field. > >>> Therefore, when more than one field is required on a card, I create a > >>> behavior and each dummy field uses the one behavior. Then at the > >>> appropriate time (openCard possibly), I send a dispatch to each field > to > >>> create the appropriate field. I use switch statements in my create > field > >>> handler to set the appropriate settings like mobileControlSet > >>> [control],"keyboardType","[value]; "returnKeyType","[value]", etc. I > also > >>> use a switch statement in inputReturnKey to determine what to do next. > The > >>> switch cases become the short name of me since the object is the field > and > >>> of course the desktop dummy field is named the same as the native > mobile > >>> field. > >>>>> > >>>>> I guess each card would have a different behavior so the one script > is > >>> not switching between too many fields. You could also create behaviors > for > >>> specific groups, but the need to set the behavior of the dummy fields > is > >>> the key, not setting the behavior of the group. One other option to > try to > >>> create a mobileControlCreate library might be by to chain behaviors, > but > >>> that's a complicated subject I am looking forward to hearing more > about at > >>> the conference in Scott Rossi's 'Well Behaved Behaviors' talk. > >>>>> > >>>>> One other command to keep in mind is mobileControlDo. Specifically, > >>> mobileControlDo [control name or ID], "focus". This will cause focus > on the > >>> field and up comes the keyboard. On iOS, the keyboardActivated message > is > >>> sent, but on Android, this feature is still broken. To take focus > away, the > >>> only thing I know to do script wise is 'focus on nothing'. > >>>>> > >>>>> Maybe there's another way; I'll keep my eye on the thread to see who > >>> has more experience and a better idea. > >>>>> > >>>>> HTH > >>>>> > >>>>> Eric > >>>>> > >>>>>> On Aug 29, 2014, at 8:05 PM, Mike Kerner wrote: > >>>>>> > >>>>>> How do I figure out which native mobilc field has the focus (or if > no > >>>>>> native field does)? > >>>>>> > >>>>>> A field doesn't lose the focus when you do other things like hit > >>> buttons, > >>>>>> or throw up pick lists, which can make it tricky to deal with fields > >>> that > >>>>>> have updated values. > >>>>>> > >>>>>> focusedObject() doesn't seem to work as advertised (it returns the > >>> same > >>>>>> value no matter which mobile field has the focus, or for that > matter, > >>> if no > >>>>>> field has the focus). > >>>>>> > >>>>>> I know I could do it the hard way, manually, but... > >>>>>> > >>>>>> -- > >>>>>> On the first day, God created the heavens and the Earth > >>>>>> On the second day, God created the oceans. > >>>>>> On the third day, God put the animals on hold for a few hours, > >>>>>> and did a little diving. > >>>>>> And God said, "This is good." > >>>>>> _______________________________________________ > >>>>>> use-livecode mailing list > >>>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> > >> -- > >> On the first day, God created the heavens and the Earth > >> On the second day, God created the oceans. > >> On the third day, God put the animals on hold for a few hours, > >> and did a little diving. > >> And God said, "This is good." > > > > > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From alex at tweedly.net Sun Aug 31 13:10:33 2014 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 31 Aug 2014 18:10:33 +0100 Subject: which is faster for searching? In-Reply-To: <000401cfc4f6$bcdb95e0$3692c1a0$@FlexibleLearning.com> References: <000401cfc4f6$bcdb95e0$3692c1a0$@FlexibleLearning.com> Message-ID: <54035709.30505@tweedly.net> Hi Hugh, Sorry - I'll be more assertive and simplistic in my description - at a slight risk of over-stating the case. No, the second variable method does definitely uses extra memory. What I was saying was that that can be unimportant, because extra memory "simply" means that your OS has to do more paging, and that is OK so long as we satisfy two conditions 1. your max virtual memory is big enough (and it's been a decade since that *should* be a problem, other than maybe on phones, RPi, etc). 2. your access to that memory is primarily serial (i.e. not much paging around) which it will be in this case. (and of course 3. you remember to either "delete variable xxx" or "put empty into xxx" so the memory can be removed/garbage collected soon after you've done with it). And I then claimed/explained that this memory/paging overhead was insignificant because either of the other ways can cause tremendous amounts of data copying - and the time to do that would *far* outweigh the memory overhead. I'll try to create the speed test code to demonstrate that and send it later tonight. -- Alex On 31/08/2014 09:37, FlexibleLearning.com wrote: > Hi Alex > > Am struggling to follow your comments and conclusions. Are you saying it > would be more memory efficient to store the output in a second variable... > > repeat for each line L in tVar > if then > put L &cr after stdout > end if > end repeat > if last char of stdout=cr then delete last char of stdout > return stdout > > If there are no matching lines (worst case), then this would require a 100% > memory overhead. > > I am obviously mis-reading you. > > Hugh Senior > FLCo > > > From: Alex Tweedly > To: use-livecode at lists.runrev.com > Subject: Re: which is faster for searching? > > Two comments .... > > 1. The two methods below produce different results - the latter one > removes lines that were empty in the original input data, the other > doesn't (unless that happens to match "data condition on line x"). > > 2. In the case of large (or huge) datasets, Hugh's concern about > avoiding memory overhead may be valid - but those cases are exactly the > ones where you most need to be concerned about efficiency. > > If, for example, the input data consists of 10,000,000 lines and perhaps > each line was 100 chars, then we have 1Gb of data. Let's say we retain > 50% of the lines (say every alternate one) - then the "repeat for each" > method adds 1/2 Gb of virtual memory, and requires copying only 1/2Gb of > data during this operation. > > However, although both the methods below don't add the virtual memory > requirement, they copy a LOT of data - each time we delete (or empty) a > line, that causes all the subsequent data to be copied 'in place', so it > will require (approx) 2,500,000 Gb of data copying (5M * 1/2Gb average > remaining data size). So we copy 2.5Pb of data - that's going to cost us > a whole lot more time than any paging needed for 1/2Gb of extra virtual > memory. > > -- Alex. > > > On 30/08/2014 08:45, FlexibleLearning.com wrote: >> Peter Haworth wrote >> >>> There's another situation where I use repeat with even though it's a > little >>> slower than repeat for and I also alter the contents of the data I'm >>> repeating through without any problems. >>> >>> repeat with x=the number of lines in tVar down to to 1 >>> if then >>> delete line x of tVar >>> end if >>> end repeat >> This is an insightful observation. Nice one, Pete! >> >> My stock method (and presumably the method you allude to above) is... >> >> repeat for each line L in tVar >> add 1 to x >> if then put "" into line x of tVar >> end repeat >> filter tVar without empty >> >> Both methods operate on a single data set and avoid putting the output > into >> a second variable which, for large datasets, involve an unnecessary memory >> overhead.. >> >> Hugh Senior >> FLCo > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From userev at canelasoftware.com Sun Aug 31 13:14:01 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sun, 31 Aug 2014 10:14:01 -0700 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Message-ID: On Aug 31, 2014, at 9:52 AM, Mark Wieder wrote: > Mark Talluto writes: > >> >> Hi Mark. We will update the Android version on the store soon. For the > time being, you can download the >> updated Android version from our site. > http://livecloud.io/runrevlive-14-conference-app/ > > Ya, no, I did that yesterday. It's unreadable/unusable on a phone. Sorry. Sorry about that. Developing for mobile is a big challenge. On top of that, we only had a few weeks to make this project. We designed the Android version with Galaxy and Nexus tablets. We have much to learn still. Best regards, Mark Talluto livecloud.io canelasoftware.com From admin at FlexibleLearning.com Sun Aug 31 13:57:17 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Sun, 31 Aug 2014 18:57:17 +0100 Subject: Speed testing: Fastest search method Message-ID: <000001cfc545$00e75690$02b603b0$@FlexibleLearning.com> >From David Epstein Q1. Not that I know of. Q2. Of course it does, but the same condition is in place in all three tests. And the data has to come from somewhere. Q2. This 'repeat for each' rule refers to not modifying whatever 'each' refers to. In this case, 'each' is a line and the number of lines in unchanged so I am not changing the internal line pointers set up by the engine at the start. > 3 questions: > > 1. Is there a good way to determine ahead of time whether memory is an > issue? When I start the handler I can find out how big tVar is, but how do I > find out how much memory is available? > > 2. Does this step in all 3 handlers -- > put fld "Data" into tVar > -- itself use up memory? If fld "Data" is occupying a gigabyte of RAM, does > writing it to tVar use another gigabyte? > > 3. Method #2 appears to me to violate the rule against modifying the variable > to which you are applying "repeat for each": > #2: > on mouseUp > set the cursor to watch > put the long seconds into tStart > put fld "data" into tVar > repeat for each line L in tVar > add 1 to x > if L="" then > put "" into line x of tVar -- RIGHT HERE, WE'RE MODIFYING tVar! > end if > end repeat > put tVar into fld "output" > put the long seconds - tStart into fld "timer2" > end mouseUp > > Have I misunderstood that rule? > > Many thanks. > > David Epstein From: Mike Bonner Correct. My typo by omission. > Method 2 doesn't have the filter, I am guessing the lack is a typo? From: Peter Haworth 1. Speed difference: 'for each' does not require the engine to repeatedly (and increasingly) count from the start of the list each time, hence the time saving. 2. Using a tCount variable: It would make no difference in performance, only in terms of script explanation if necessary. > I would expect method 1 to take longer but that's a huge difference. I > wonder if this would speed it up: > > Put the number of lines in tVar into tCount > Repeat with x=tCount down to 1 > > Pete From: jbv This is a non-issue. If we wanted to remove blank lines, we would not use any repeat structure but use 'filter tData without empty' instead. The 'empty lines condition' in the 3 tests is only a testing convenience that stands for any conditional test. > Have you tried the following method (condition is "line empty") : > on mouseUp > set the cursor to watch > put the long seconds into tStart > put fld "Data" into tVar > repeat while tVar contains (return & return) > replace (return & return) with return in tVar > end repeat > put tVar into fld "output" > put the long seconds - tStart into fld "timer1" > end mouseUp > > jbv From jbv at souslelogo.com Sun Aug 31 14:15:07 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sun, 31 Aug 2014 21:15:07 +0300 Subject: Speed testing: Fastest search method In-Reply-To: <1968452111.13122481.1409494884672.JavaMail.root@comcast.net> References: <1968452111.13122481.1409494884672.JavaMail.root@comcast.net> Message-ID: > > 1. Is there a good way to determine ahead of time whether memory is an > issue? When I start the handler I can find out how big tVar is, but how do > I find out how much memory is available? > Could the function hasMemory(bytes) be of some help ? Or perhaps heapSpace() on Mac OS systems ? jbv From mwieder at ahsoftware.net Sun Aug 31 15:02:45 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 31 Aug 2014 19:02:45 +0000 (UTC) Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Message-ID: Mark Talluto writes: We designed the Android version with Galaxy and Nexus tablets. We have much to learn still. Android's still a bit of uncharted territory. But I'm looking forward to a version of your app that runs on my phone. I hate my phone, but it would nice to have something useful on it. No worries. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Sun Aug 31 15:04:31 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 31 Aug 2014 19:04:31 +0000 (UTC) Subject: [OT] Spies under the bed. References: <54034054.3070703@gmail.com> <0117EA03-4838-4BAA-A245-74C56ED7CDEA@earthednet.org> Message-ID: Earthednet-wp writes: > > An attorney relative of mine is a lawyer who specializes in "Drunk while driving" cases. He found that when > he sent emails to his clients using gmail, with the word "DUI", his clients, on their webmail pages, had ads > for "DUI" lawyers (his competitors) on their browser pages. Needless to say, he stopped using that word. I > guess that's the price of a free email service: marketing based on your LOL. Google is its own worst enemy sometimes. -- Mark Wieder ahsoftware at gmail.com From userev at canelasoftware.com Sun Aug 31 15:14:40 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sun, 31 Aug 2014 12:14:40 -0700 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> Message-ID: <721851D8-624B-4077-8995-BBECF500C5B3@canelasoftware.com> On Aug 31, 2014, at 12:02 PM, Mark Wieder wrote: > Mark Talluto writes: > > We designed the Android version with Galaxy and Nexus tablets. We have much > to learn still. > > Android's still a bit of uncharted territory. > But I'm looking forward to a version of your app that runs on my phone. > I hate my phone, but it would nice to have something useful on it. > No worries. If you are interested we can get together at the conference and get this working on your phone. This will make it better for everyone with an Android phone. -Mark From jacque at hyperactivesw.com Sun Aug 31 16:08:13 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 31 Aug 2014 15:08:13 -0500 Subject: [OT] Spies under the bed. In-Reply-To: References: <54034054.3070703@gmail.com> <0117EA03-4838-4BAA-A245-74C56ED7CDEA@earthednet.org> Message-ID: <540380AD.9080600@hyperactivesw.com> On 8/31/2014, 2:04 PM, Mark Wieder wrote: > Earthednet-wp writes: > >> >> An attorney relative of mine is a lawyer who specializes in "Drunk while > driving" cases. He found that when >> he sent emails to his clients using gmail, with the word "DUI", his > clients, on their webmail pages, had ads >> for "DUI" lawyers (his competitors) on their browser pages. Needless to > say, he stopped using that word. I >> guess that's the price of a free email service: marketing based on your > > LOL. Google is its own worst enemy sometimes. > You can turn off targeted marketing in Google's settings. I did that immediately after setting up the account and I haven't seen anything targeted to me (it's turned on by default, of course.) I also stay logged out of Google except when specifically using one of their web services, my profile contains almost nothing, and I don't participate in Google+. There's a way to check who Google thinks you are and what interests you. I wish I could find the link again. When I last checked, it thought I was a 35 year old male. I'm not sure about the male part, but I'd love to be 35. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Aug 31 16:22:12 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 31 Aug 2014 15:22:12 -0500 Subject: binFile and windows In-Reply-To: References: Message-ID: <540383F4.8040304@hyperactivesw.com> On 8/31/2014, 9:10 AM, Eric Sciolli wrote: > Hello again > in first mail I wasn't enough clear: I have some images in a card of a > stack which I want to export and save on the hardisk of the user. For this > I used binFile this way: > > ask file "Save image as:" > put it into lFolderPath > create folder lFolderPath & "/img" > put "binFile:/" & lFolderPath & "/img/gruppo.png" into lImage > put img "gruppo" of cd "stampa" of stack "stampaObiettivi" into URL lImage > put "binFile:/" & lFolderPath & "/img/utente.png" into lImage > put img "utente" of cd "stampa" of stack "stampaObiettivi" into URL lImage > > The script works for macosx: it creates a folder img and export the 2 > images in that folder; on windows it creates the folder but it's empty. Is > there a problem of compatibility with windows? The "ask file" command will not allow the user to choose a location that does not already exist, so you shouldn't be creating folders. The string returned by "ask file" is the actual path that your handler should use without any changes: ask file "Save image as:" if it is empty then exit to top -- or "exit handlerName"; user cancelled put it into tPath put img "gruppo" of cd "stampa" of stack "stampaObiettivi" into URL ("binfile:" & tPath) That's all you need. It works identically on both Mac and Windows. If you really do want the user to indicate a folder instead of a file path (so that you can name the image file yourself) then: ask folder "Choose a folder:" if it is empty then exit to top -- user cancelled put it & "/gruppo.png" into tPath put img "gruppo" of cd "stampa" of stack "stampaObiettivi" into URL ("binfile:" & tPath) Like "ask file", the "ask folder" command will not allow the user to choose a folder that does not already exist. If you really do want to create a subfolder inside the user's chosen folder, you must specifically create it: ask folder "Choose a folder:" if it is empty then exit to top -- user cancelled put it into tPath if there is no folder (tPath & "/img" then create folder (tPath & "/img") put tPath & "/img/gruppo.png" into tPath put img "gruppo" of cd "stampa" of stack "stampaObiettivi" into URL ("binfile:" & tPath) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at tweedly.net Sun Aug 31 17:04:46 2014 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 31 Aug 2014 22:04:46 +0100 Subject: Speed testing: Fastest search method In-Reply-To: <000601cfc501$71c24530$5546cf90$@FlexibleLearning.com> References: <000601cfc501$71c24530$5546cf90$@FlexibleLearning.com> Message-ID: <54038DEE.8090203@tweedly.net> Hugh, The condition you've chosen for deciding whether to delete the line is whether or not the line is empty. So in method 2, replacing those lines by "" has no effect on the data. That is, I think, an inadequate benchmark. The primary cost you would encounter in the real case with method 2 is the data copying caused by emptying the line (i.e. all subsequent content in the variable has to be copied down into place). So at the very least it gives very optimistic times for method 2. I tried the same code (more or less - added the "filter" for method 2 to get the same results) on a data set which contains real lines of data to be deleted. I also added method4, which tries to get the best of both worlds. It restricts the additional memory usage (by building up a second variable, but removing sections of the input variable at the same time), and also does relatively few deletions (and hence few data copies). (full script included below) LC7DP10, MacOSX 10.8.5 Macbook Pro Source data: 10,000 lines of 100 chars, alternating between two values (non-random so it would be completely repeatable) 5000 lines begin with char "a", other 5000 being with "b" Condition for deletion First char of the line is "a" (hence 5000 lines are deleted Method 1: not timed - was taking too long :-) Method 2: 11.51 secs Method 3: 0.04 secs Method 4: 0.09 secs Changing the conditional test so that no lines are deleted, the times are all < 0.1 seconds Conclusion: if memory is not an issue, method 3 is best if memory is an issue, method 4 is best -- Alex. on mouseUp local t1, t2, t3, t4 -- put method1() into t1 put method2() into t2 put method3() into t3 put method4() into t4 put the number of lines in t1 && the number of lines in t2 && the number of lines in t3 && the number of lines in t4 after fld 1 end mouseup function make_data local L, L1, t put "a" into L put "b" into item 100 of L put "b" into L1 put "a" into item 100 of L1 repeat 5000 times put L & CR & L1 & CR after t end repeat return t end make_data function method1 local tVar, tStart set the cursor to watch put make_data() into tVar put the long seconds into tStart repeat with x=the number of lines in tVar down to 1 if char 1 of line x of tVar="a" then delete line x of tVar end if end repeat put the long seconds - tStart & CR after fld 1 return tVar end method1 function method2 local tVar, L, tStart, x set the cursor to watch put make_data() into tVar put the long seconds into tStart repeat for each line L in tVar add 1 to x -- put x && L &CR after msg if char 1 of L="a" then put "" into line x of tVar end if end repeat filter tVar without empty put the long seconds - tStart & CR after fld 1 return tVar end method2 function method3 local tVar, tStart, L, tdout set the cursor to watch put make_data() into tVar put the long seconds into tStart repeat for each line L in tVar if char 1 of L<>"a" then put L &cr after tdout end if end repeat if last char of tdout=cr then delete last char of tdout put the long seconds - tStart & CR after fld 1 return tdout end method3 function method4 constant K = 1000 -- probably should be a bigger number local tVar, tStart, L, tdout, x set the cursor to watch put make_data() into tVar put the long seconds into tStart repeat forever if the number of lines in tVar = 0 then exit repeat put 0 into x repeat for each line L in tVar if char 1 of L<>"a" then put L &cr after tdout end if add 1 to x if x >= K then exit repeat end repeat delete line 1 to K of tVar end repeat if last char of tdout=cr then delete last char of tdout put the long seconds - tStart & CR after fld 1 return tdout end method4 On 31/08/2014 10:53, FlexibleLearning.com wrote: > Some benchtesting... > > Setup: > LC7DP10, Windows 7 > > Source data: > 10,000 lines of random data > 100 chars per line > 3,346 empty lines > > Task: > Strip lines where a given condition is met. > > Results: > Method 1 > Operating on a single variable, 'repeat with' + delete line > 25.586 secs > > Method 2 > Operating on a single variable, 'repeat for each' + filter with empty > 7.755 secs > > Method 3 > Using a second variable for output, 'repeat for each' + second variable > 0.136 secs > > Conclusions: > If memory is an issue, then Method 2 is best > If memory is not an issue, then Method 3 is best > > Scripts applied: > #1: > on mouseUp > set the cursor to watch > put the long seconds into tStart > put fld "Data" into tVar > repeat with x=the number of lines in tVar down to 1 > if line x of tVar="" then > delete line x of tVar > end if > end repeat > put tVar into fld "output" > put the long seconds - tStart into fld "timer1" > end mouseUp > > #2: > on mouseUp > set the cursor to watch > put the long seconds into tStart > put fld "data" into tVar > repeat for each line L in tVar > add 1 to x > if L="" then > put "" into line x of tVar > end if > end repeat > put tVar into fld "output" > put the long seconds - tStart into fld "timer2" > end mouseUp > > #3: > on mouseUp > set the cursor to watch > put fld "Data" into tVar > put the long seconds into tStart > repeat for each line L in tVar > if L<>"" then > put L &cr after stdout > end if > end repeat > if last char of stdout=cr then delete last char of stdout > put stdout into fld "output" > put the long seconds - tStart into fld "timer3" > end mouseUp > > >> On 30/08/2014 08:45, FlexibleLearning.com wrote: >>> Peter Haworth wrote >>> >>>> There's another situation where I use repeat with even though it's a > little >>>> slower than repeat for and I also alter the contents of the data I'm >>>> repeating through without any problems. >>>> >>>> repeat with x=the number of lines in tVar down to to 1 >>>> if then >>>> delete line x of tVar >>>> end if >>>> end repeat > >>> This is an insightful observation. Nice one, Pete! >>> >>> My stock method (and presumably the method you allude to above) is... >>> >>> repeat for each line L in tVar >>> add 1 to x >>> if then put "" into line x of tVar >>> end repeat >>> filter tVar without empty >>> >>> Both methods operate on a single data set and avoid putting the output >>> into a second variable which, for large datasets, involve an unnecessary >>> memory overhead.. >>> >>> Hugh Senior >>> FLCo > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Sun Aug 31 17:13:21 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sun, 31 Aug 2014 17:13:21 -0400 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: <721851D8-624B-4077-8995-BBECF500C5B3@canelasoftware.com> References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> <721851D8-624B-4077-8995-BBECF500C5B3@canelasoftware.com> Message-ID: I only have a tablet, but landscape support would be awesome. I would very much like to sit in, or participate in the making it work with an android phone session. I have a borrowed G1 running gingerbread we can try it on. ~Roger Sent from my Android tablet On Aug 31, 2014 3:14 PM, "Mark Talluto" wrote: > > On Aug 31, 2014, at 12:02 PM, Mark Wieder wrote: > > > Mark Talluto writes: > > > > We designed the Android version with Galaxy and Nexus tablets. We have > much > > to learn still. > > > > Android's still a bit of uncharted territory. > > But I'm looking forward to a version of your app that runs on my phone. > > I hate my phone, but it would nice to have something useful on it. > > No worries. > > If you are interested we can get together at the conference and get this > working on your phone. This will make it better for everyone with an > Android phone. > > -Mark > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From userev at canelasoftware.com Sun Aug 31 17:17:27 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Sun, 31 Aug 2014 14:17:27 -0700 Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available In-Reply-To: References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> <721851D8-624B-4077-8995-BBECF500C5B3@canelasoftware.com> Message-ID: <042F4EF8-2A7E-4DA9-AE06-CA8E087B5F61@canelasoftware.com> On Aug 31, 2014, at 2:13 PM, Roger Eller wrote: > I only have a tablet, but landscape support would be awesome. I would very > much like to sit in, or participate in the making it work with an android > phone session. I have a borrowed G1 running gingerbread we can try it on. > > ~Roger The more the merrier. We can find a quite place and hack it out. Anyone can join in. Lets meet up at the conference and find a time that works. -Mark From dochawk at gmail.com Sun Aug 31 17:56:36 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 31 Aug 2014 14:56:36 -0700 Subject: [OT] Spies under the bed. In-Reply-To: <540380AD.9080600@hyperactivesw.com> References: <54034054.3070703@gmail.com> <0117EA03-4838-4BAA-A245-74C56ED7CDEA@earthednet.org> <540380AD.9080600@hyperactivesw.com> Message-ID: On Sun, Aug 31, 2014 at 1:08 PM, J. Landman Gay wrote: > > There's a way to check who Google thinks you are and what interests you. I > wish I could find the link again. When I last checked, it thought I was a > 35 year old male. I'm not sure about the male part, but I'd love to be 35. > In the early days of this, someone discovered that Amazon had him pegged as a pregnant gay male . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From alain_farmer at yahoo.com Sun Aug 31 18:30:57 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Sun, 31 Aug 2014 15:30:57 -0700 Subject: [OT] Spies under the bed. In-Reply-To: References: <54034054.3070703@gmail.com> <0117EA03-4838-4BAA-A245-74C56ED7CDEA@earthednet.org> <540380AD.9080600@hyperactivesw.com> Message-ID: <1409524257.77433.YahooMailNeo@web126104.mail.ne1.yahoo.com> LOL! Goes-to-show how accurate and relevant their information is. ;-) On Sunday, August 31, 2014 5:56:36 PM, Dr. Hawkins wrote: On Sun, Aug 31, 2014 at 1:08 PM, J. Landman Gay wrote: > > There's a way to check who Google thinks you are and what interests you. I > wish I could find the link again. When I last checked, it thought I was a > 35 year old male. I'm not sure about the male part, but I'd love to be 35. > In the early days of this, someone discovered that Amazon had him pegged as a pregnant gay male . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Sun Aug 31 19:10:09 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 31 Aug 2014 23:10:09 +0000 (UTC) Subject: [ANN] RunRevLive 2014 Conference Mobile App Now Available References: <1E472A27-FBCC-4C10-8AFA-F96957168FA9@pandora.be> <0F8E7F8A-1DC3-4208-AAE6-E3680BEC3356@canelasoftware.com> <094057E5-BCFD-499A-88D6-8D2379412DC7@verizon.net> <64E334F7-B552-4C1A-A691-B85EEAA3732F@canelasoftware.com> <5D884BDD-6A13-4953-A6DF-BAAA7F49C5F8@canelasoftware.com> <53FD5460.7010602@hyperactivesw.com> <53FD7549.7020405@hyperactivesw.com> <9A74758B-EAEC-41DB-ACC0-5644B0BD96F9@canelasoftware.com> <2F95C5CC-D5D3-4D02-9B91-B5BE680D5EC7@canelasoftware.com> <97673C0D-F4E8-4DE6-96C2-5AEBF3CD22CE@canelasoftware.com> <721851D8-624B-4077-8995-BBECF500C5B3@canelasoftware.com> <042F4EF8-2A7E-4DA9-AE06-CA8E087B5F61@canelasoftware.com> Message-ID: Mark Talluto writes: > The more the merrier. We can find a quite place and hack it out. Anyone can join in. Lets meet up at the > conference and find a time that works. Make it so. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Sun Aug 31 19:16:04 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 31 Aug 2014 23:16:04 +0000 (UTC) Subject: Strange mailing list email. References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> <8D1919C1900F69E-26A0-133B@webmail-vm041.sysops.aol.com> <0a4a9167-9542-49eb-9721-c10de00f64be@email.android.com> <98-240186518.20140830180047@ahsoftware.net> Message-ID: Peter Haworth writes: > Not my statement, it was taken from the article I linked to. OK. Maybe there's a missing email somewhere, but I haven't seen a link. Whatever. No worries. -- Mark Wieder ahsoftware at gmail.com From pete at lcsql.com Sun Aug 31 20:23:09 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 31 Aug 2014 17:23:09 -0700 Subject: Strange mailing list email. In-Reply-To: References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> <8D1919C1900F69E-26A0-133B@webmail-vm041.sysops.aol.com> <0a4a9167-9542-49eb-9721-c10de00f64be@email.android.com> <98-240186518.20140830180047@ahsoftware.net> Message-ID: Yes, I think a new thread got started somewhere along the line. The link is at: http://tidbits.com/article/14843 Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Aug 31, 2014 at 4:16 PM, Mark Wieder wrote: > Peter Haworth writes: > > > Not my statement, it was taken from the article I linked to. > > OK. Maybe there's a missing email somewhere, but I haven't seen a link. > Whatever. No worries. > > -- > Mark Wieder > ahsoftware at gmail.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From simon at asato-media.com Sun Aug 31 21:43:43 2014 From: simon at asato-media.com (Simon) Date: Sun, 31 Aug 2014 18:43:43 -0700 (PDT) Subject: Size of window between close/startup In-Reply-To: <332BEBCC-4CBA-483F-82E6-6DBE8EDC7106@btinternet.com> References: <53FE0F57.3070801@hyperactivesw.com> <55E3E85C-06EB-48F6-9E92-A29D78FE4C62@btinternet.com> <53FE3C7F.80707@hyperactivesw.com> <332BEBCC-4CBA-483F-82E6-6DBE8EDC7106@btinternet.com> Message-ID: <1409535823350-4682756.post@n4.nabble.com> Wasn't this one of the reasons scaleFactor was added? >From the stack inspector. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Size-of-window-between-close-startup-tp4682524p4682756.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Sun Aug 31 22:33:55 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 31 Aug 2014 19:33:55 -0700 Subject: Strange mailing list email. In-Reply-To: References: <53FE0A25.9000806@economy-x-talk.com> <8D1907B1CEF6D86-2570-B4E4@webmail-m245.sysops.aol.com> <8D1919C1900F69E-26A0-133B@webmail-vm041.sysops.aol.com> <0a4a9167-9542-49eb-9721-c10de00f64be@email.android.com> <98-240186518.20140830180047@ahsoftware.net> Message-ID: Forgot to mention. Heather sent me that link in resonse to my question to her about the original email I got. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Aug 31, 2014 at 5:23 PM, Peter Haworth wrote: > Yes, I think a new thread got started somewhere along the line. The link > is at: http://tidbits.com/article/14843 > > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Sun, Aug 31, 2014 at 4:16 PM, Mark Wieder > wrote: > >> Peter Haworth writes: >> >> > Not my statement, it was taken from the article I linked to. >> >> OK. Maybe there's a missing email somewhere, but I haven't seen a link. >> Whatever. No worries. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From alain_farmer at yahoo.com Sun Aug 31 22:38:33 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Sun, 31 Aug 2014 19:38:33 -0700 Subject: Newly created alias is not an alias Message-ID: <1409539113.30622.YahooMailNeo@web126101.mail.ne1.yahoo.com> Hello, I am using version 6.6.2 I am perplexed by the following: setDirectoryTo someFolder create alias "myAlias" to folder "existingFolder" if the result is not empty then die the result answer there is an alias "myAlias" -- returns false !?! answer there is an alias (someFolder & "myAlias") -- returns false !?! Shouldn't the alias that I have just created test TRUE ? Apparently the alias is not an alias. It's the alias of a folder, and "there is a folder" returns true for the alias. I 'get-it' but this is NOT useful. I want to be able to distinguish between ALIAS and FOLDER (and FILE too). Has anyone experienced this ? Have you worked-out a workaround ? Thank you, Alain