From tfabacher at gmail.com Sun Apr 1 01:08:45 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Sun, 1 Apr 2018 01:08:45 -0400 Subject: Intel CPU for Android Devices In-Reply-To: <001901d3c92d$9a452390$cecf6ab0$@net> References: <001901d3c92d$9a452390$cecf6ab0$@net> Message-ID: Thanks Ralph...I will test. --Todd On Sat, Mar 31, 2018 at 4:19 PM, Ralph DiMola wrote: > I have an old Samsung Galaxy Tab 3 10.1 the has an Intel Atom processor and > it runs LC 8.1.9/9.0(rc)1 apps. The apps are a bit slow but do run(I > wonder > if there's emulating going on?). I have not installed from the store. I > side-load using adb. Is the app visible on the PlayStore to the devices? If > so does it download/install? If it installs does it even start running? > > 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 Todd Fabacher via use-livecode > Sent: Saturday, March 31, 2018 10:35 AM > To: Use-livecode Use-livecode > Cc: Todd Fabacher > Subject: Intel CPU for Android Devices > > I am running into a problem where the Android device uses Intel CPU and NOT > Arm. It does not rum from the store on the device. Has anyone installed and > run a LiveCode Android App on an Intel device. > > I have an 11am meeting on Monday, so any answer on the holiday weekend > would > be much appreciated. > > Thanks, > > Todd > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 1 14:40:28 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 1 Apr 2018 13:40:28 -0500 Subject: do. command. safety. ? In-Reply-To: References: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <19ce6b08-9519-5039-5e98-cdbbb857f402@hyperactivesw.com> Message-ID: <60f99b59-286d-cd9a-e3fe-9c76e3c72f55@hyperactivesw.com> Thanks for the examples, Alex and Richard. I did understand the principle behind the caution but I couldn't get any of my tests to produce bad results. Both your examples do that. I think the problem was that I wasn't being imaginative enough. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Sun Apr 1 18:39:51 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 1 Apr 2018 15:39:51 -0700 Subject: do. command. safety. ? In-Reply-To: <60f99b59-286d-cd9a-e3fe-9c76e3c72f55@hyperactivesw.com> References: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <19ce6b08-9519-5039-5e98-cdbbb857f402@hyperactivesw.com> <60f99b59-286d-cd9a-e3fe-9c76e3c72f55@hyperactivesw.com> Message-ID: On 04/01/2018 11:40 AM, J. Landman Gay via use-livecode wrote: > Thanks for the examples, Alex and Richard. I did understand the > principle behind the caution but I couldn't get any of my tests to > produce bad results. Both your examples do that. > > I think the problem was that I wasn't being imaginative enough. > Yep. That's the problem with security coding - you have to be more imaginative keeping out of trouble than the imaginative folks who are looking for ways to cause mischief. -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Sun Apr 1 18:56:36 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 01 Apr 2018 17:56:36 -0500 Subject: do. command. safety. ? In-Reply-To: References: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <19ce6b08-9519-5039-5e98-cdbbb857f402@hyperactivesw.com> <60f99b59-286d-cd9a-e3fe-9c76e3c72f55@hyperactivesw.com> Message-ID: <162836d30d0.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> So next time I'd better hire one of you guys, looks like. Malice isn't my strong point. Except maybe for certain distant relatives. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On April 1, 2018 5:42:26 PM Mark Wieder via use-livecode wrote: On 04/01/2018 11:40 AM, J. Landman Gay via use-livecode wrote: Thanks for the examples, Alex and Richard. I did understand the principle behind the caution but I couldn't get any of my tests to produce bad results. Both your examples do that. I think the problem was that I wasn't being imaginative enough. Yep. That's the problem with security coding - you have to be more imaginative keeping out of trouble than the imaginative folks who are looking for ways to cause mischief. -- 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 ambassador at fourthworld.com Mon Apr 2 01:06:43 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 1 Apr 2018 22:06:43 -0700 Subject: do. command. safety. ? In-Reply-To: <60f99b59-286d-cd9a-e3fe-9c76e3c72f55@hyperactivesw.com> References: <60f99b59-286d-cd9a-e3fe-9c76e3c72f55@hyperactivesw.com> Message-ID: <313af707-1dcd-e652-f4a0-82091c2dde31@fourthworld.com> J. Landman Gay wrote: > Thanks for the examples, Alex and Richard. I did understand the > principle behind the caution but I couldn't get any of my tests to > produce bad results. Both your examples do that. > > I think the problem was that I wasn't being imaginative enough. You were just thinking constructively. You look for outcomes that benefit people. That's a good perspective to have. Most devs do. Maliciously breaking things requires a different mindset. -- 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 dvglasgow at gmail.com Mon Apr 2 09:44:10 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Mon, 2 Apr 2018 14:44:10 +0100 Subject: Blurring field contents In-Reply-To: <1627791a340.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> <8C14C881-BC8E-4345-9A6E-31FD8ACA7130@livecode.org> <7DCF0A3D-BB9B-45C8-B3AB-8D484BD62B37@gmail.com> <98C17AC0-6E4A-4733-94C9-025E764BB463@elementarysoftware.com> <5C4F15C4-53A4-482B-88B7-50910ADFF459@all-auctions.com> <1627791a340.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <76024656-B6BD-46FB-9468-98329920C704@gmail.com> Thanks for all the suggestions, but blur works really well. I just take a snapshot of the field, blur the resultant image, overlay it on the confidential field, snapshot the entire card to clipboard and then delete the blurred image. I had to manually include it in the standalone, though, which confused me a tad. Also, fields (or is it fonts) are different in LC8. Two fields with identical content, font (arial MS) and settings, one clips the very top of the text and the other doesn?t.Nudging the margin up 1 fixes the issue, but it is a bit confusing. Best wishes, David G > On 30 Mar 2018, at 4:40 pm, J. Landman Gay via use-livecode wrote: > > Or make a generic "blur" image in a graphics program and overlay it on the fields when needed. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On March 30, 2018 9:07:48 AM Rick Harrison via use-livecode wrote: > >> You could also make up bogus text data to show instead of using real data. >> >> Rick >> >> > On Mar 29, 2018, at 11:48 PM, scott--- via use-livecode wrote: >> > >> > If blurring turns out to be too problematic you might consider just replacing text with bullets or Lorem Ipsum. >> > >> > -- >> > Scott Morrow >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Apr 2 10:51:03 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 2 Apr 2018 14:51:03 +0000 Subject: variable xref In-Reply-To: References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> <3C20DCD0-D487-47D9-9C40-049581B16390@gmail.com> Message-ID: When Apple went from Carbon to Cocoa, the offered their developers no such migration utility (to my knowledge at least). What they DID do is inform people well in advance of depricating Carbon that the time was coming where adherence to Cocoa would be mandatory, and they offered frameworks and programming guidelines, saying, "Do this this way from now on". There was plenty of time to make the updates. Those who didn't found their software would not run. RunRev has essentially done things the same way. There is usually a lot of discussion and plenty of time and warning before they deprecate anything, and they are very loathe to do it. They almost always opt for backwards compaibility. Bob S > On Mar 30, 2018, at 20:01 , Rick Harrison via use-livecode wrote: > > Whenever you deprecate code you may be destroying > someone?s life?s coding work. There should always be > at least a rock solid migration utility offered that will > make any such deprecations completely smooth, > and painless for anyone who has to make the changes. > > Just my 2 cents for the day. ;-) > > Rick From bobsneidar at iotecdigital.com Mon Apr 2 10:55:59 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 2 Apr 2018 14:55:59 +0000 Subject: Multiple Windows In-Reply-To: <1522509913950-0.post@n4.nabble.com> References: <9c25bf41-3fc7-4c93-3afd-109444a4bc55@gmail.com> <1522509913950-0.post@n4.nabble.com> Message-ID: <77EB67AC-E8C8-4A8A-BB96-BF46F65A24DF@iotecdigital.com> I do the same thing. There is no downside to using substacks or other stacks, but you can open a stack in a current window. Bob S > On Mar 31, 2018, at 08:25 , dunbarx via use-livecode wrote: > > Anyway, I have never needed such a feature, but certainly see that others > might. I often open substacks (or other stacks) on screen, generally for a > particular purpose ancillary to the working stack, and close them when done. > They are in that case just a high-powered dialog box, used basically in the > same way. From ambassador at fourthworld.com Mon Apr 2 15:04:32 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 2 Apr 2018 12:04:32 -0700 Subject: SoCal LC Meetup Thurs-Special Guest! Message-ID: <78a21920-43db-f068-4cda-25910caf0ec7@fourthworld.com> This coming Thursday, April 5, is our next SoCal LC User Group meetup, with a special guest: Phil Davis of PDS Labs will be coming down from Portland, OR to join Paul Looney in discussing a socket server implementation for networked business applications. Phil's been developing in LiveCode since before v1.0, and his experience crafting the server for Paul Looney's business system will make for a lively discussion, especially interesting for members exploring client-server applications and custom protocols. Meeting details here: https://forums.livecode.com/viewtopic.php?f=50&t=30761 -- 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 Mon Apr 2 15:28:26 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 2 Apr 2018 14:28:26 -0500 Subject: Guessing game In-Reply-To: References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> Message-ID: <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> In addition to this: > >> I was just reading the release notes for 9.0rc1 and came across this entry: >> >> Additional forms of create command >> Create in now works correctly >> You can now create in as well as in >> >> Any guesses? I found this: *** Additionally the into clause has been added to all array set set operations allowing commands such as: intersect tLeft with tRight into tResult The operation of the commands is the same as the non-into form except that tLeft does not have to be a variable, and the result of the operation is placed into tResult rather than mutating tLeft. *** So when is an array not a variable? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jerry at jhjensen.com Mon Apr 2 15:59:44 2018 From: jerry at jhjensen.com (Jerry Jensen) Date: Mon, 2 Apr 2018 12:59:44 -0700 Subject: Guessing game In-Reply-To: <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> Message-ID: <6B242B18-5C43-4B3E-8A22-26C42870C069@jhjensen.com> On Apr 2, 2018, at 12:28 PM, J. Landman Gay via use-livecode wrote: > > So when is an array not a variable? I recently was attempting to explain, to a savvy younger programmer new to LC, the concepts of variables being promoted to arrays and multidimensional dictionaries. She gave me the ?crazy old man? look. .Jerry From bobsneidar at iotecdigital.com Mon Apr 2 16:16:02 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 2 Apr 2018 20:16:02 +0000 Subject: SoCal LC Meetup Thurs-Special Guest! In-Reply-To: <78a21920-43db-f068-4cda-25910caf0ec7@fourthworld.com> References: <78a21920-43db-f068-4cda-25910caf0ec7@fourthworld.com> Message-ID: Can we drink beer yet? :-) Bob S > On Apr 2, 2018, at 12:04 , Richard Gaskin via use-livecode wrote: > > This coming Thursday, April 5, is our next SoCal LC User Group meetup, with a special guest: Phil Davis of PDS Labs will be coming down from Portland, OR to join Paul Looney in discussing a socket server implementation for networked business applications. > > Phil's been developing in LiveCode since before v1.0, and his experience crafting the server for Paul Looney's business system will make for a lively discussion, especially interesting for members exploring client-server applications and custom protocols. > > Meeting details here: > https://forums.livecode.com/viewtopic.php?f=50&t=30761 > > -- > 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 ahsoftware at sonic.net Mon Apr 2 16:20:54 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 2 Apr 2018 13:20:54 -0700 Subject: Guessing game In-Reply-To: <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> Message-ID: <04de675d-72cf-b6a3-9fe4-c19e5d2eea0e@sonic.net> On 04/02/2018 12:28 PM, J. Landman Gay via use-livecode wrote: > So when is an array not a variable? > Why is a raven like a writing-desk? -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Mon Apr 2 16:22:01 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 2 Apr 2018 13:22:01 -0700 Subject: Guessing game In-Reply-To: <6B242B18-5C43-4B3E-8A22-26C42870C069@jhjensen.com> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> <6B242B18-5C43-4B3E-8A22-26C42870C069@jhjensen.com> Message-ID: On 04/02/2018 12:59 PM, Jerry Jensen via use-livecode wrote: > I recently was attempting to explain, to a savvy younger programmer new to LC, the concepts of variables being promoted to arrays and multidimensional dictionaries. She gave me the ?crazy old man? look. > .Jerry Ooo... multidimensional dictionaries are *so* Douglas Adams... -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Apr 2 16:30:36 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 2 Apr 2018 20:30:36 +0000 Subject: Guessing game In-Reply-To: <04de675d-72cf-b6a3-9fe4-c19e5d2eea0e@sonic.net> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> <04de675d-72cf-b6a3-9fe4-c19e5d2eea0e@sonic.net> Message-ID: <43C2A6BC-EB44-490D-B8AA-0CEA4EAF337D@iotecdigital.com> First of all, neither has a Gazebo in the back yard... Bob S > On Apr 2, 2018, at 13:20 , Mark Wieder via use-livecode wrote: > >> So when is an array not a variable? > > Why is a raven like a writing-desk? > > -- > Mark Wieder > ahsoftware at gmail.com From brian at milby7.com Mon Apr 2 16:39:13 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 02 Apr 2018 20:39:13 +0000 Subject: Guessing game In-Reply-To: <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> Message-ID: Would that be for properties? Save the step of putting it into a variable first? On Mon, Apr 2, 2018 at 2:29 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > > I found this: > > *** > Additionally the into clause has been added to all array set set > operations allowing commands such as: > > intersect tLeft with tRight into tResult > > The operation of the commands is the same as the non-into form except > that tLeft does not have to be a variable, and the result of the > operation is placed into tResult rather than mutating tLeft. > *** > > So when is an array not a variable? > > -- > 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 ali.lloyd at livecode.com Mon Apr 2 17:00:43 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Mon, 02 Apr 2018 21:00:43 +0000 Subject: Guessing game In-Reply-To: References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> Message-ID: Yes, or the return value of a function On Mon, Apr 2, 2018 at 9:39 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Would that be for properties? Save the step of putting it into a variable > first? > > On Mon, Apr 2, 2018 at 2:29 PM J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > I found this: > > > > *** > > Additionally the into clause has been added to all array set set > > operations allowing commands such as: > > > > intersect tLeft with tRight into tResult > > > > The operation of the commands is the same as the non-into form except > > that tLeft does not have to be a variable, and the result of the > > operation is placed into tResult rather than mutating tLeft. > > *** > > > > So when is an array not a variable? > > > > -- > > 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 ali.lloyd at livecode.com Mon Apr 2 17:03:16 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Mon, 02 Apr 2018 21:03:16 +0000 Subject: Guessing game In-Reply-To: References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> Message-ID: Probably there should be an example that illustrates the use of the into clause in that way! On Mon, Apr 2, 2018 at 10:00 PM Ali Lloyd wrote: > Yes, or the return value of a function > > On Mon, Apr 2, 2018 at 9:39 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Would that be for properties? Save the step of putting it into a variable >> first? >> >> On Mon, Apr 2, 2018 at 2:29 PM J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > >> > I found this: >> > >> > *** >> > Additionally the into clause has been added to all array set set >> > operations allowing commands such as: >> > >> > intersect tLeft with tRight into tResult >> > >> > The operation of the commands is the same as the non-into form except >> > that tLeft does not have to be a variable, and the result of the >> > operation is placed into tResult rather than mutating tLeft. >> > *** >> > >> > So when is an array not a variable? >> > >> > -- >> > 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 martyknappster at gmail.com Mon Apr 2 17:48:51 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Mon, 2 Apr 2018 14:48:51 -0700 Subject: Value & parentheses when doing math Message-ID: <5CFC7450-CB78-4DC2-9B3B-FF1CC1D032DD@gmail.com> I have a tab delimited list where item 4 is a number and I'm adding things up. What is considered best practice when doing this? add item 4 of line x of tList to tRunningTotal or add (item 4 of line x of tList) to tRunningTotal or add value(item 4 of line x of tList) to tRunningTotal Marty From bobsneidar at iotecdigital.com Mon Apr 2 17:53:38 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 2 Apr 2018 21:53:38 +0000 Subject: Installation failed Message-ID: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> Livecode Installer // Installation failed The installation was not successful Could not launch Installer Slave. Sound familiar to anyone? I cannot install LC 8.1.9 from a freshly downloaded copy in Windows 7 64 bit. Bob S From bobsneidar at iotecdigital.com Mon Apr 2 17:57:14 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 2 Apr 2018 21:57:14 +0000 Subject: Value & parentheses when doing math In-Reply-To: <5CFC7450-CB78-4DC2-9B3B-FF1CC1D032DD@gmail.com> References: <5CFC7450-CB78-4DC2-9B3B-FF1CC1D032DD@gmail.com> Message-ID: <81427870-7DA6-4437-9E89-A51DBD50515B@iotecdigital.com> The second one is more readable. The third is unnecessary. The first works just fine. It just depends on how readable you want to make your code for others. I always take the time to put values into their own variables so I can point at them in the debugger and see their current values in the stepper. So: put item 4 of line x of tList into tValue add tValue to tRunningTotal seems to me to be more readable, at the expense of a little extra typing. Bob S > On Apr 2, 2018, at 14:48 , Knapp Martin via use-livecode wrote: > > I have a tab delimited list where item 4 is a number and I'm adding things up. What is considered best practice when doing this? > > add item 4 of line x of tList to tRunningTotal > or > add (item 4 of line x of tList) to tRunningTotal > or > add value(item 4 of line x of tList) to tRunningTotal > > Marty > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 2 18:08:52 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 2 Apr 2018 15:08:52 -0700 Subject: Value & parentheses when doing math In-Reply-To: <5CFC7450-CB78-4DC2-9B3B-FF1CC1D032DD@gmail.com> References: <5CFC7450-CB78-4DC2-9B3B-FF1CC1D032DD@gmail.com> Message-ID: <5fdd77d3-0bf1-6df3-f1a8-27951362b8c8@fourthworld.com> Knapp Martin wrote: > I have a tab delimited list where item 4 is a number and I'm adding > things up. What is considered best practice when doing this? > > add item 4 of line x of tList to tRunningTotal > or > add (item 4 of line x of tList) to tRunningTotal > or > add value(item 4 of line x of tList) to tRunningTotal > > Marty IMO whatever is the easiest to write and read that gets the job done is the best option. The first example above seems simplest to me. The second one isn't bad, but the third one should be avoided unless you have something in the data that requires the overhead of adding a call to the value function. -- 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 tom at makeshyft.com Mon Apr 2 18:30:24 2018 From: tom at makeshyft.com (Tom Glod) Date: Mon, 2 Apr 2018 18:30:24 -0400 Subject: Value & parentheses when doing math In-Reply-To: <5fdd77d3-0bf1-6df3-f1a8-27951362b8c8@fourthworld.com> References: <5CFC7450-CB78-4DC2-9B3B-FF1CC1D032DD@gmail.com> <5fdd77d3-0bf1-6df3-f1a8-27951362b8c8@fourthworld.com> Message-ID: the 2nd one is the one most readable to me so thats the one i would use On Mon, Apr 2, 2018 at 6:08 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Knapp Martin wrote: > > I have a tab delimited list where item 4 is a number and I'm adding > > things up. What is considered best practice when doing this? > > > > add item 4 of line x of tList to tRunningTotal > > or > > add (item 4 of line x of tList) to tRunningTotal > > or > > add value(item 4 of line x of tList) to tRunningTotal > > > > Marty > > IMO whatever is the easiest to write and read that gets the job done is > the best option. > > The first example above seems simplest to me. > > The second one isn't bad, but the third one should be avoided unless you > have something in the data that requires the overhead of adding a call to > the value function. > > -- > 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 Mon Apr 2 18:06:34 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 2 Apr 2018 15:06:34 -0700 Subject: SoCal LC Meetup Thurs-Special Guest! In-Reply-To: References: Message-ID: <76daad22-573a-ce3e-3ab5-9e4dfa32f51a@fourthworld.com> When I spoke with Veronica, the restaurant manager, this morning I asked her about that. There are still some details being worked out with the restaurant's new owners, so while they're still waiting for that license she suggested ordering one of their excellent milkshakes instead. :) I have to say, having had one before, I can confirm they're better than beer. My favorite is the Cookies and Cream, but they're all pretty darn good. -- Richard Gaskin Fourth World Systems Bob Sneidar wrote: > Can we drink beer yet? :-) > > Bob S > > >> On Apr 2, 2018, at 12:04 , Richard Gaskin via use-livecode wrote: >> >> This coming Thursday, April 5, is our next SoCal LC User Group meetup, with a special guest: Phil Davis of PDS Labs will be coming down from Portland, OR to join Paul Looney in discussing a socket server implementation for networked business applications. >> >> Phil's been developing in LiveCode since before v1.0, and his experience crafting the server for Paul Looney's business system will make for a lively discussion, especially interesting for members exploring client-server applications and custom protocols. >> >> Meeting details here: >> https://forums.livecode.com/viewtopic.php?f=50&t=30761 >> >> -- >> Richard Gaskin >> Fourth World Systems From jerry at jhjensen.com Mon Apr 2 21:27:43 2018 From: jerry at jhjensen.com (Jerry Jensen) Date: Mon, 2 Apr 2018 18:27:43 -0700 Subject: Guessing game In-Reply-To: References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> <6B242B18-5C43-4B3E-8A22-26C42870C069@jhjensen.com> Message-ID: <6C7E541E-8D5D-4FCC-B1AC-5DE934C41291@jhjensen.com> > 2/2018 12:59 PM, Jerry Jensen via use-livecode wrote: >> ...variables being promoted to arrays and multidimensional dictionaries... > Ooo... multidimensional dictionaries are *so* Douglas Adams... > Mark Wieder .Jerry From lists at mangomultimedia.com Mon Apr 2 22:04:48 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 03 Apr 2018 02:04:48 +0000 Subject: Installation failed In-Reply-To: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> Message-ID: Sounds like you are trying to install on Windows when the installer is on a network drive. Try copying the installer to the Windows machine. ? Trevor DeVore On Mon, Apr 2, 2018 at 4:54 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Livecode Installer // Installation failed > The installation was not successful > > Could not launch Installer Slave. > > Sound familiar to anyone? I cannot install LC 8.1.9 from a freshly > downloaded copy in Windows 7 64 bit. > > 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 bogdanoff at me.com Mon Apr 2 22:45:43 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 02 Apr 2018 19:45:43 -0700 Subject: Installation failed In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> Message-ID: Also, if you?re using something like Windows/Parallels on a Mac, you have to do the whole operation completely in Windows. Peter > On Apr 2, 2018, at 7:04 PM, Trevor DeVore via use-livecode wrote: > > Sounds like you are trying to install on Windows when the installer is on a > network drive. Try copying the installer to the Windows machine. > > ? > Trevor DeVore > > On Mon, Apr 2, 2018 at 4:54 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Livecode Installer // Installation failed >> The installation was not successful >> >> Could not launch Installer Slave. >> >> Sound familiar to anyone? I cannot install LC 8.1.9 from a freshly >> downloaded copy in Windows 7 64 bit. >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Apr 2 22:59:49 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 03 Apr 2018 02:59:49 +0000 Subject: Installation failed In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> Message-ID: Right. That is because the Mac drive is accessed over a network drive in that scenario. The Windows installer won?t work on a network drive. ? Trevor DeVore On Mon, Apr 2, 2018 at 9:46 PM Peter Bogdanoff via use-livecode < use-livecode at lists.runrev.com> wrote: > Also, if you?re using something like Windows/Parallels on a Mac, you have > to do the whole operation completely in Windows. > > Peter > > > On Apr 2, 2018, at 7:04 PM, Trevor DeVore via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Sounds like you are trying to install on Windows when the installer is > on a > > network drive. Try copying the installer to the Windows machine. > > > > ? > > Trevor DeVore > > > > On Mon, Apr 2, 2018 at 4:54 PM Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Livecode Installer // Installation failed > >> The installation was not successful > >> > >> Could not launch Installer Slave. > >> > >> Sound familiar to anyone? I cannot install LC 8.1.9 from a freshly > >> downloaded copy in Windows 7 64 bit. > >> > >> 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 > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 rdimola at evergreeninfo.net Tue Apr 3 00:14:36 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 3 Apr 2018 00:14:36 -0400 Subject: Android Native Button In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> Message-ID: <002501d3cb02$4a180e60$de482b20$@net> I'm receiving the error below. The button does render. I can't change the textsize? Have I missed something or should I submit a QCC bug report? Thanks occurred on line:0 0,Value is not of correct type for assignment to variable - expected type for assigning to a variable tTypefacePtr in com.livecode.widget.native.android.button.SetTypeface Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From brian at milby7.com Tue Apr 3 00:51:23 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 03 Apr 2018 04:51:23 +0000 Subject: Android Native Button In-Reply-To: <002501d3cb02$4a180e60$de482b20$@net> References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> <002501d3cb02$4a180e60$de482b20$@net> Message-ID: Looking at the code for the android field, it is probably a bug. In that code the type is optional pointer and a check is done that a pointer was returned. That check is not done for the button. Are you sure the font being specified is valid? I have not done anything android, so this is just a quick read of the LCB code. On Mon, Apr 2, 2018 at 11:14 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > I'm receiving the error below. The button does render. I can't change the > textsize? Have I missed something or should I submit a QCC bug report? > > Thanks > > occurred on line:0 > 0,Value is not of correct type for assignment to variable - expected > type for > assigning to a variable tTypefacePtr in > com.livecode.widget.native.android.button.SetTypeface > > > 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 jacque at hyperactivesw.com Tue Apr 3 01:57:34 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 3 Apr 2018 00:57:34 -0500 Subject: Guessing game In-Reply-To: References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> Message-ID: <129334bc-289f-4097-41d4-7d993b0f791d@hyperactivesw.com> Aha. Clarity. I'd wondered if properties might be involved but hadn't considered functions. Examples in the dictionary would be great. On 4/2/18 4:03 PM, Ali Lloyd via use-livecode wrote: > Probably there should be an example that illustrates the use of the into > clause in that way! > > On Mon, Apr 2, 2018 at 10:00 PM Ali Lloyd wrote: > >> Yes, or the return value of a function >> >> On Mon, Apr 2, 2018 at 9:39 PM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Would that be for properties? Save the step of putting it into a variable >>> first? >>> >>> On Mon, Apr 2, 2018 at 2:29 PM J. Landman Gay via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> >>>> I found this: >>>> >>>> *** >>>> Additionally the into clause has been added to all array set set >>>> operations allowing commands such as: >>>> >>>> intersect tLeft with tRight into tResult >>>> >>>> The operation of the commands is the same as the non-into form except >>>> that tLeft does not have to be a variable, and the result of the >>>> operation is placed into tResult rather than mutating tLeft. >>>> *** >>>> >>>> So when is an array not a variable? >>>> >>>> -- >>>> 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 >>> >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Tue Apr 3 02:07:54 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 3 Apr 2018 01:07:54 -0500 Subject: Guessing game In-Reply-To: <43C2A6BC-EB44-490D-B8AA-0CEA4EAF337D@iotecdigital.com> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> <04de675d-72cf-b6a3-9fe4-c19e5d2eea0e@sonic.net> <43C2A6BC-EB44-490D-B8AA-0CEA4EAF337D@iotecdigital.com> Message-ID: <6d7ae513-82f6-48f3-1ec9-4c5391ef5afb@hyperactivesw.com> For what it's worth, I don't have a gazebo in my back yard either. I suppose that means I'm either a raven or a writing desk. I believe there's actually an answer to that riddle but I can't remember what it is. I think I saw it in the Annotated Alice. Back when we walked to school uphill both ways, I read Alice in Wonderland/Through the Looking Glass more than 20 times and I still have a custom drawing of the White Knight someone did for me. It was years before I knew what treacle was. On 4/2/18 3:30 PM, Bob Sneidar via use-livecode wrote: > First of all, neither has a Gazebo in the back yard... > > Bob S > > >> On Apr 2, 2018, at 13:20 , Mark Wieder via use-livecode wrote: >> >>> So when is an array not a variable? >> >> Why is a raven like a writing-desk? >> >> -- >> Mark Wieder >> ahsoftware at gmail.com -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ali.lloyd at livecode.com Tue Apr 3 03:17:03 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 03 Apr 2018 07:17:03 +0000 Subject: Android Native Button In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> <002501d3cb02$4a180e60$de482b20$@net> Message-ID: Ah yes, we need to apply this https://github.com/livecode/livecode/pull/6441/files to the android button as well On Tue, Apr 3, 2018 at 5:51 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Looking at the code for the android field, it is probably a bug. In that > code the type is optional pointer and a check is done that a pointer was > returned. That check is not done for the button. Are you sure the font > being specified is valid? > > I have not done anything android, so this is just a quick read of the LCB > code. > On Mon, Apr 2, 2018 at 11:14 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I'm receiving the error below. The button does render. I can't change the > > textsize? Have I missed something or should I submit a QCC bug report? > > > > Thanks > > > > occurred on line:0 > > 0,Value is not of correct type for assignment to variable - expected > > type for > > assigning to a variable tTypefacePtr in > > com.livecode.widget.native.android.button.SetTypeface > > > > > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 livecode.com Tue Apr 3 03:51:18 2018 From: mark at livecode.com (Mark Waddingham) Date: Tue, 03 Apr 2018 09:51:18 +0200 Subject: Guessing game In-Reply-To: <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> Message-ID: On 2018-04-02 21:28, J. Landman Gay via use-livecode wrote: > I found this: > > *** > Additionally the into clause has been added to all array set set > operations allowing commands such as: > > intersect tLeft with tRight into tResult > > The operation of the commands is the same as the non-into form except > that tLeft does not have to be a variable, and the result of the > operation is placed into tResult rather than mutating tLeft. > *** > > So when is an array not a variable? I must confess I found this quite an interesting question - as it speaks to the history of arrays in LiveCode. Originally there were no arrays 'just' variables - a variable could hold a string, nothing else. Then arrays were added, but they were not 'first class citizens' - so a perfectly reasonable mental model was that variables had been augmented so that they could be collections of named variables - each holding a string. (e.g. tFoo["a"], tFoo["b"] were both distinct variables, just with a convenient/indexable way of referencing them, and passing them around as a collection). However, this changed when we added hierarchical arrays - i.e. being able to set an array as the value of an array key. The variable centric model then doesn't work so well - it is perhaps 'better' to think of arrays as values like strings. i.e. Arrays ceased to be tied to the notion of variable at all, and just became a 'value' which can be put into a variable. Personally I think I always thought of arrays in LiveCode as values, but ones which had only been 'partially implemented' - there were lots of places prior to adding hierarchical arrays which wouldn't work with the existing notion of array, but had to be made to for hierarchical arrays to be in any way useful. Another way to think about 'into' being added to intersect/union is that we've essentially added binary operators for array union and intersect: intersect tLeft with tRight into tResult Does the same thing as a hypothetical 'intersect' binary operator: put tLeft intersect tRight into tResult One could imagine a similar thing being added to the arithmetic commands: add tLeft to tRight into tResult Would do nothing different from: put tLeft + tRight into tResult This would just be a different way of expressing the same thing syntactically. (Note the 'into' form has not been added to the arithmetic commands, and there is no binary intersect/union operator - but perhaps both should be considered). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From david.bovill at gmail.com Tue Apr 3 04:28:11 2018 From: david.bovill at gmail.com (David Bovill) Date: Tue, 03 Apr 2018 08:28:11 +0000 Subject: Guessing game In-Reply-To: References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> Message-ID: Arrays as first class citizens? Give them a passport! Arrays have rights too! Need to check if they can be passed as parameters in setprop handlers - as in ?set the beautiful_Colour [spellingArray] of my card to light-grey? Last time I checked not all first class citizens were equal. On Tue, 3 Apr 2018 at 08:51, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2018-04-02 21:28, J. Landman Gay via use-livecode wrote: > > I found this: > > > > *** > > Additionally the into clause has been added to all array set set > > operations allowing commands such as: > > > > intersect tLeft with tRight into tResult > > > > The operation of the commands is the same as the non-into form except > > that tLeft does not have to be a variable, and the result of the > > operation is placed into tResult rather than mutating tLeft. > > *** > > > > So when is an array not a variable? > > I must confess I found this quite an interesting question - as it speaks > to the history of arrays in LiveCode. > > Originally there were no arrays 'just' variables - a variable could hold > a string, nothing else. > > Then arrays were added, but they were not 'first class citizens' - so a > perfectly reasonable mental model was that variables had been augmented > so that they could be collections of named variables - each holding a > string. (e.g. tFoo["a"], tFoo["b"] were both distinct variables, just > with a convenient/indexable way of referencing them, and passing them > around as a collection). > > However, this changed when we added hierarchical arrays - i.e. being > able to set an array as the value of an array key. The variable centric > model then doesn't work so well - it is perhaps 'better' to think of > arrays as values like strings. i.e. Arrays ceased to be tied to the > notion of variable at all, and just became a 'value' which can be put > into a variable. > > Personally I think I always thought of arrays in LiveCode as values, but > ones which had only been 'partially implemented' - there were lots of > places prior to adding hierarchical arrays which wouldn't work with the > existing notion of array, but had to be made to for hierarchical arrays > to be in any way useful. > > Another way to think about 'into' being added to intersect/union is that > we've essentially added binary operators for array union and intersect: > > intersect tLeft with tRight into tResult > > Does the same thing as a hypothetical 'intersect' binary operator: > > put tLeft intersect tRight into tResult > > One could imagine a similar thing being added to the arithmetic > commands: > > add tLeft to tRight into tResult > > Would do nothing different from: > > put tLeft + tRight into tResult > > This would just be a different way of expressing the same thing > syntactically. (Note the 'into' form has not been added to the > arithmetic commands, and there is no binary intersect/union operator - > but perhaps both should be considered). > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 livecode.com Tue Apr 3 05:24:22 2018 From: mark at livecode.com (Mark Waddingham) Date: Tue, 03 Apr 2018 11:24:22 +0200 Subject: Guessing game In-Reply-To: References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> Message-ID: <8fa779d0402b7a4525f91ba9c2cb53cb@livecode.com> On 2018-04-03 10:28, David Bovill via use-livecode wrote: > Arrays as first class citizens? Give them a passport! Arrays have > rights > too! > > Need to check if they can be passed as parameters in setprop handlers - > as > in ?set the beautiful_Colour [spellingArray] of my card to light-grey? Heh - okay let me define what I mean by 'first-class citizen'... A 'thing' in a programming language is a 'first-class citizen' if it can be placed in a variable, and further being then able to use that variable to be able to access the functionality of 'thing' instead of referencing 'thing' directly. i.e. 'thing' can be indirected. The above example confuses two things - the idea of being first-class, and the ability to use a given type of value in a given context. SetProp handlers are defined to take a string argument, as they are backed by a LiveCode array (custom property set) if there is no handler to call (or if messages are locked). So that's just a case of functionality which has not been defined nor implemented. Perhaps the best example of a language feature which is nearly never 'first-class' (as in, I don't believe there are any widely used general programming languages which allow it) is types. e.g. You can't do things like the following: put integer between 1 and 3 into tIntBetween1And3Type put tMyString as tIntBetween1And3Type into tIntBetween1And3 Certainly you can approximate this in various languages - you *can* build concrete instances of abstract base classes (i.e. ones with all virtual methods) in C++ at runtime if you don't mind a bit of bit-bashing; but you can't build a struct, or class which is used as a value (i.e. not passed around as a pointer) which existing compiled code can used. Warmest Regards, Mark. P.S. Looking at this another way - I'd perhaps characterize the above as arrays are not 'complete' as values in LiveCode (as in: you can't use arrays in all places where you can use strings, and would still make sense), but I would say they were 'first-class'. I'd suggest 'completeness as values' is a more stringent requirement than 'first-class' - and is more that 'code has not been written to do that' (incomplete), rather than the 'model of the language disallows any notion of it being possible' (not first-class). P.P.S. You could rewrite your example as: set the beautiful_Colour [ the arrayEncode of spellingArray ] of this card to "light-grey" Which suggests that arrays are actually 'complete' in LiveCode in the sense suggested above - it is just you (as the coder) have to work a bit harder to use them as such. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From david.bovill at gmail.com Tue Apr 3 05:35:48 2018 From: david.bovill at gmail.com (David Bovill) Date: Tue, 03 Apr 2018 09:35:48 +0000 Subject: Guessing game In-Reply-To: <8fa779d0402b7a4525f91ba9c2cb53cb@livecode.com> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> <8fa779d0402b7a4525f91ba9c2cb53cb@livecode.com> Message-ID: True - I?d rather be first-class than complete anyway. And yes thanks for suggested way around incompleteness. I still suffered culture shock. The use-case I had was to replace send syntax with the more elegant set the ... of object to syntax. I found myself wanting a bit more power ... Power is not always a good thing. I?m glad that the dignity of arrays has been restored. On Tue, 3 Apr 2018 at 10:25, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2018-04-03 10:28, David Bovill via use-livecode wrote: > > Arrays as first class citizens? Give them a passport! Arrays have > > rights > > too! > > > > Need to check if they can be passed as parameters in setprop handlers - > > as > > in ?set the beautiful_Colour [spellingArray] of my card to light-grey? > > Heh - okay let me define what I mean by 'first-class citizen'... > > A 'thing' in a programming language is a 'first-class citizen' if it can > be placed in a variable, and further being then able to use that > variable to be able to access the functionality of 'thing' instead of > referencing 'thing' directly. i.e. 'thing' can be indirected. > > The above example confuses two things - the idea of being first-class, > and the ability to use a given type of value in a given context. SetProp > handlers are defined to take a string argument, as they are backed by a > LiveCode array (custom property set) if there is no handler to call (or > if messages are locked). So that's just a case of functionality which > has not been defined nor implemented. > > Perhaps the best example of a language feature which is nearly never > 'first-class' (as in, I don't believe there are any widely used general > programming languages which allow it) is types. e.g. You can't do things > like the following: > > put integer between 1 and 3 into tIntBetween1And3Type > put tMyString as tIntBetween1And3Type into tIntBetween1And3 > > Certainly you can approximate this in various languages - you *can* > build concrete instances of abstract base classes (i.e. ones with all > virtual methods) in C++ at runtime if you don't mind a bit of > bit-bashing; but you can't build a struct, or class which is used as a > value (i.e. not passed around as a pointer) which existing compiled code > can used. > > Warmest Regards, > > Mark. > > P.S. Looking at this another way - I'd perhaps characterize the above as > arrays are not 'complete' as values in LiveCode (as in: you can't use > arrays in all places where you can use strings, and would still make > sense), but I would say they were 'first-class'. I'd suggest > 'completeness as values' is a more stringent requirement than > 'first-class' - and is more that 'code has not been written to do that' > (incomplete), rather than the 'model of the language disallows any > notion of it being possible' (not first-class). > > P.P.S. You could rewrite your example as: > set the beautiful_Colour [ the arrayEncode of spellingArray ] of > this card to "light-grey" > Which suggests that arrays are actually 'complete' in LiveCode in the > sense suggested above - it is just you (as the coder) have to work a bit > harder to use them as such. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 livecode.com Tue Apr 3 06:06:13 2018 From: mark at livecode.com (Mark Waddingham) Date: Tue, 03 Apr 2018 12:06:13 +0200 Subject: Guessing game In-Reply-To: References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> <8fa779d0402b7a4525f91ba9c2cb53cb@livecode.com> Message-ID: <0c16c64ffa2955e92fcee16dc260585e@livecode.com> On 2018-04-03 11:35, David Bovill via use-livecode wrote: > True - I?d rather be first-class than complete anyway. To use a more concrete analogy - all British citizens are (since suffrage!) 'first-class' in the sense they can vote, but are not 'complete' in the sense that there exist things which some citizens are allowed to do, which others are not. > And yes thanks for suggested way around incompleteness. I still > suffered > culture shock. The use-case I had was to replace send syntax with the > more > elegant set the ... of object to syntax. I found myself wanting a bit > more > power ... That's a slightly different thing - I'd suggest that even your proposed 'more elegant' solution is actually probably much less readable than using 'send' in the long run as, if I read that line it isn't entirely clear what it is intending to do... So, I'm guessing what you really want to be able to do is: set the textColor of chunk tChunk of tMyObject to light-grey for each tChunk in spellingArray Or (with slightly less use of non-existant syntax): set the textColor of each element of spellingArray to light-grey Where 'spellingArray' is a numeric list of chunk references. Which would be the same as: repeat for each element tMisspeltWordsChunk in spellingArray set the textColor of tMisspeltWordChunk to "light gray" end repeat Which does actually work now - as you can have things like "char 1 to 20 of field 1" in a variable, which will be parsed at runtime when its the target of a set command. > Power is not always a good thing. I?m glad that the dignity of arrays > has > been restored. Power and syntax are intimately related - in the sense that how we encode what we want to do as syntax will give us power in some ways, whilst removing it in others (the only way for that to not be the case is to make the syntax more verbose and more difficult to write - think machine code vs. LiveCode Script). The above is actually a very good example of this as you *can* actually use an array as an index outside of setProps, it just means something perhaps much more useful... i.e. put "foo" into tPath[1] put "bar" into tPath[2] put tArray[tPath] into tBarOfFooOfArray Numerically keyed arrays starting from 1 can be used as an array index, in which case they are considered to be a sequence of keys to follow. The above is the same as: put tArray["foo"]["bar"] into tBarOfFooOfArray To put it another way, as it stands, the use of arrays as indexes in arrays has been chosen to mean something which is (to be fair) a *great deal* more useful than array-valued keys - as it makes array paths (i.e. sequence of keys) first-class in the language. (Also, all uses of array-valued keys anywhere can be transformed to code which derives a canonical name from an array before being used as a key - which is probably something you should be doing anyway directly were you to ever think you have a need for such, otherwise it masks what the code is *actually* doing, as well as probably causing you horrendous performance problems for cases you have not foreseen and will occur!). Of course, what you wanted (I presume) is a more succinct way to set a property of a collection of chunks to a single value - i.e. one which takes one line, rather than 3 - which isn't really anything to do with array-valued array keys at all - and more syntactic sugar for what other languages would call 'list comprehension' I guess. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From david.bovill at gmail.com Tue Apr 3 06:41:39 2018 From: david.bovill at gmail.com (David Bovill) Date: Tue, 3 Apr 2018 11:41:39 +0100 Subject: Guessing game In-Reply-To: <0c16c64ffa2955e92fcee16dc260585e@livecode.com> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> <8fa779d0402b7a4525f91ba9c2cb53cb@livecode.com> <0c16c64ffa2955e92fcee16dc260585e@livecode.com> Message-ID: Actually the use case was different. More of a generic way with nice syntax to call remote functions. This is easier now with dispatch but still not quite as elegant IMO as using virtual properties of models. Let?s take an example that I currently use. Note that the rational here is to avoid where possible using libraries with potential name clashes in a global space, while retaining elegant syntax and a clear mental (visual) model. Requirements: to be able to get and set data on an arbitrary number if project specific user contributed models. Second requirement: to also be able to filter and search the data with minimal syntax. Solution: rather than calling / evaluating functions in the context of their particular project which is hard syntax to remember and not easy to read - define the following: getprop project_Data -- fetch some data drom a suitable data source linked to the current context return projectArray end getprop setprop project_Data someArray -- fetch some data drom a suitable data source linked to the current context return projectJson end getprop That works fine, and you can make it more useable by defining a single generic library to access stored arrays in a suitably defined place in the project. However you want to be able to filter and search the data, returning for instance only particular fields. Rather than defining lots of separate handlers it is useful an elegant to extend the virtual properties as follows: getprop project_Data [someKey]] -- fetch some data drom a suitable data source linked to the current context return projectArray end getprop What would be nice is to be able to use the full power of native arrays in this syntax, as you could then use it to not only return top level keyed arrays but nested structures and other types of query. For a function you would just add another parameter for that. you can;t do that with virtual props - so you need to leverage the power of arrays. That's one example of why i'd like to enable that functionality - and make arrays a bit more complete :) On Tue, 3 Apr 2018 at 11:07, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2018-04-03 11:35, David Bovill via use-livecode wrote: > > True - I?d rather be first-class than complete anyway. > > To use a more concrete analogy - all British citizens are (since > suffrage!) 'first-class' in the sense they can vote, but are not > 'complete' in the sense that there exist things which some citizens are > allowed to do, which others are not. > > > And yes thanks for suggested way around incompleteness. I still > > suffered > > culture shock. The use-case I had was to replace send syntax with the > > more > > elegant set the ... of object to syntax. I found myself wanting a bit > > more > > power ... > > That's a slightly different thing - I'd suggest that even your proposed > 'more elegant' solution is actually probably much less readable than > using 'send' in the long run as, if I read that line it isn't entirely > clear what it is intending to do... > > So, I'm guessing what you really want to be able to do is: > > set the textColor of chunk tChunk of tMyObject to light-grey for each > tChunk in spellingArray > > Or (with slightly less use of non-existant syntax): > > set the textColor of each element of spellingArray to light-grey > > Where 'spellingArray' is a numeric list of chunk references. Which would > be the same as: > > repeat for each element tMisspeltWordsChunk in spellingArray > set the textColor of tMisspeltWordChunk to "light gray" > end repeat > > Which does actually work now - as you can have things like "char 1 to 20 > of field 1" in a variable, which will be parsed at runtime when its the > target of a set command. > > > Power is not always a good thing. I?m glad that the dignity of arrays > > has > > been restored. > > Power and syntax are intimately related - in the sense that how we > encode what we want to do as syntax will give us power in some ways, > whilst removing it in others (the only way for that to not be the case > is to make the syntax more verbose and more difficult to write - think > machine code vs. LiveCode Script). > > The above is actually a very good example of this as you *can* actually > use an array as an index outside of setProps, it just means something > perhaps much more useful... > > i.e. > put "foo" into tPath[1] > put "bar" into tPath[2] > put tArray[tPath] into tBarOfFooOfArray > > Numerically keyed arrays starting from 1 can be used as an array index, > in which case they are considered to be a sequence of keys to follow. > The above is the same as: > > put tArray["foo"]["bar"] into tBarOfFooOfArray > > To put it another way, as it stands, the use of arrays as indexes in > arrays has been chosen to mean something which is (to be fair) a *great > deal* more useful than array-valued keys - as it makes array paths (i.e. > sequence of keys) first-class in the language. > > (Also, all uses of array-valued keys anywhere can be transformed to code > which derives a canonical name from an array before being used as a key > - which is probably something you should be doing anyway directly were > you to ever think you have a need for such, otherwise it masks what the > code is *actually* doing, as well as probably causing you horrendous > performance problems for cases you have not foreseen and will occur!). > > Of course, what you wanted (I presume) is a more succinct way to set a > property of a collection of chunks to a single value - i.e. one which > takes one line, rather than 3 - which isn't really anything to do with > array-valued array keys at all - and more syntactic sugar for what other > languages would call 'list comprehension' I guess. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 livecode.com Tue Apr 3 06:50:21 2018 From: mark at livecode.com (Mark Waddingham) Date: Tue, 03 Apr 2018 12:50:21 +0200 Subject: do. command. safety. =?UTF-8?Q?=3F?= In-Reply-To: <313af707-1dcd-e652-f4a0-82091c2dde31@fourthworld.com> References: <60f99b59-286d-cd9a-e3fe-9c76e3c72f55@hyperactivesw.com> <313af707-1dcd-e652-f4a0-82091c2dde31@fourthworld.com> Message-ID: <228749e7466d44bfc1e27dca3e5543e2@livecode.com> On 2018-04-02 07:06, Richard Gaskin via use-livecode wrote: > You were just thinking constructively. You look for outcomes that > benefit people. That's a good perspective to have. Most devs do. > > Maliciously breaking things requires a different mindset. Or just recast the problem as an entirely constructive one... We're thinking of this problem in terms of 'how can someone maliciously cause damage through code I've written' - however that problem is no different from a much more benign one... "How can a completely benign user accidentally cause our code to get into an unintended state" In the case of the 'do' command which initiated this discussion - then imagine you are doing some sort of processing of user input on a form - and (for whatever reason - there are many) you are using do: on commitButtonPressed ... do "put" && quote & field "Username" & quote & "into tRecord[1]" ... end commitButtonPressed Here I'm imagining a card on a stack which is some sort of form. There's a 'continue/commit' button which causes commitButtonPressed to be called. The data you want to process is in fields on the card - in this case the user is required to enter a username - that goes into field "Username". The benign user (whether it be just because they have made a typo or are just slightly perverse) enters newuser" - i.e. newuser with the quote char at the end. This input will result in the above code not working correctly, as the do command will try and execute: put "newuser"" into tRecord[1] Which will fail, meaning that tRecord[1] will hold empty - which will mean the rest of the code will be faulty. Put another way, all cases where code could be maliciously subverted are also cases where your code could break through simple user error. I'm not sure if that makes the problem any simpler to think about - but it at least removes the notion that maliciousness is the reason to be careful, and replaces it with robustness (which seems slightly more positive, at least). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From panos.merakos at livecode.com Tue Apr 3 09:01:28 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 3 Apr 2018 14:01:28 +0100 Subject: [ANN] Release 9.0.0 Message-ID: Dear list members, LiveCode 9.0.0 is out, read all about it here: https://us7.campaign-archive.com/?u=8404b344b09103bf489dd8a9a&id=c574bcb9b3 Have fun! The LiveCode Team -- From klaus at major-k.de Tue Apr 3 09:39:55 2018 From: klaus at major-k.de (Klaus major-k) Date: Tue, 3 Apr 2018 15:39:55 +0200 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: Hi Panos, > Am 03.04.2018 um 15:01 schrieb panagiotis merakos via use-livecode : > > Dear list members, > > LiveCode 9.0.0 is out, read all about it here: > https://us7.campaign-archive.com/?u=8404b344b09103bf489dd8a9a&id=c574bcb9b3 cool, thanks! But the "Release Notes" still contain the famous and popular "Guessing game" on page 16, mentioned here several time before. :-D -------------------------- Additional forms of create command Create in now works correctly You can now create in as well as in -------------------------- > Have fun! > The LiveCode Team > -- Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From merakosp at gmail.com Tue Apr 3 09:49:47 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 3 Apr 2018 14:49:47 +0100 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: Ah sorry about that! I'll file a bug report so as to make sure this is resolved in the next release :) For reference, this is what it is supposed to say: ------------- # Additional forms of create command Create in now works correctly You can now create in as well as in ------------- Best, Panos -- On Tue, Apr 3, 2018 at 2:39 PM, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 03.04.2018 um 15:01 schrieb panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com>: > > > > Dear list members, > > > > LiveCode 9.0.0 is out, read all about it here: > > https://us7.campaign-archive.com/?u=8404b344b09103bf489dd8a9a&id= > c574bcb9b3 > > cool, thanks! > > But the "Release Notes" still contain the famous and popular "Guessing > game" on page 16, > mentioned here several time before. :-D > -------------------------- > Additional forms of create command > > Create in now works correctly > You can now create in as well as in > > -------------------------- > > > Have fun! > > The LiveCode Team > > -- > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From panos.merakos at livecode.com Tue Apr 3 10:05:20 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 3 Apr 2018 15:05:20 +0100 Subject: [ANN] This Week in LiveCode 123 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #123 here: https://goo.gl/EfhsRf This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From MikeKerner at roadrunner.com Tue Apr 3 10:33:44 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 3 Apr 2018 10:33:44 -0400 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! Message-ID: I'm still thinking about sessions for LCG. One of the suggestions I had seen was an intro on tool x. How about a tools roundup? Names and URL's for your favorite LC tools go in this thread, please. More is better so I don't leave anyone out. -- 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 bobsneidar at iotecdigital.com Tue Apr 3 10:37:54 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 14:37:54 +0000 Subject: Installation failed In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> Message-ID: Hmmm... interesting point. The Parallels VM shares the Mac desktop. It does so, believe it or not, through a custom network adapter. So even though it's on my desktop, the VM thinks it's on a network share. Bob S > On Apr 2, 2018, at 19:04 , Trevor DeVore via use-livecode wrote: > > Sounds like you are trying to install on Windows when the installer is on a > network drive. Try copying the installer to the Windows machine. > > ? > Trevor DeVore From bobsneidar at iotecdigital.com Tue Apr 3 10:42:35 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 14:42:35 +0000 Subject: Installation failed In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> Message-ID: <421CB7FB-C660-445C-B85A-2C2D23FFDD6D@iotecdigital.com> Copying the installer from the desktop to the C:\Software folder then running the installer did the trick. Sometimes I cannot see the forest for the trees. It goes to my view that everything that happens with a computer is to create the illusion of something, but it has no substance itself. In this case my desktop looks like a local desktop, but is actually working like folder redirection to a network profile. Bob S > On Apr 3, 2018, at 07:37 , Bob Sneidar via use-livecode wrote: > > Hmmm... interesting point. The Parallels VM shares the Mac desktop. It does so, believe it or not, through a custom network adapter. So even though it's on my desktop, the VM thinks it's on a network share. > > Bob S > > >> On Apr 2, 2018, at 19:04 , Trevor DeVore via use-livecode wrote: >> >> Sounds like you are trying to install on Windows when the installer is on a >> network drive. Try copying the installer to the Windows machine. >> >> ? >> Trevor DeVore > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Apr 3 10:44:01 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 14:44:01 +0000 Subject: Installation failed In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> Message-ID: Now it gets most of the way through and then backs out and says can't install payload or some such thing. Bob S > On Apr 3, 2018, at 07:37 , Bob Sneidar via use-livecode wrote: > > Hmmm... interesting point. The Parallels VM shares the Mac desktop. It does so, believe it or not, through a custom network adapter. So even though it's on my desktop, the VM thinks it's on a network share. > > Bob S > > >> On Apr 2, 2018, at 19:04 , Trevor DeVore via use-livecode wrote: >> >> Sounds like you are trying to install on Windows when the installer is on a >> network drive. Try copying the installer to the Windows machine. >> >> ? >> Trevor DeVore > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Apr 3 10:46:51 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 14:46:51 +0000 Subject: Installation failed In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> Message-ID: <008C1B08-24C9-4A3B-B730-4696577C9863@iotecdigital.com> Couldn't extract payload to file. Internal error. I'll contact support. Bob S > On Apr 3, 2018, at 07:44 , Bob Sneidar via use-livecode wrote: > > Now it gets most of the way through and then backs out and says can't install payload or some such thing. > > Bob S From dan at clearvisiontech.com Tue Apr 3 11:14:42 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 3 Apr 2018 15:14:42 +0000 Subject: App Submission Errors Message-ID: Using LC 8.1.9, Max OS 10.12.6, XCode 9.2 I created my app for iOS. I followed the instructions to create a ipa file. When I upload the ipa with version 3.7 of Application Loader, I get these errors: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon60x60'" ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '76x76' pixels, in .png format for iOS versions >= 7.0." ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 7.0." ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0." Have I got a setting wrong? Or is there a LC bug? Anyone have any insight to share? -Dan From merakosp at gmail.com Tue Apr 3 11:19:50 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 3 Apr 2018 16:19:50 +0100 Subject: App Submission Errors In-Reply-To: References: Message-ID: Hi Dan, You have to include *all* the required icons for your app. Just go to the iOS standalone settings and make sure you add a .png of the specified dimensions (shown in the tooltip) for each icon field. Best, Panos -- On Tue, Apr 3, 2018 at 4:14 PM, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > Using LC 8.1.9, Max OS 10.12.6, XCode 9.2 I created my app for iOS. I > followed the instructions to create a ipa file. When I upload the ipa with > version 3.7 of Application Loader, I get these errors: > > ERROR ITMS-90032: "Invalid Image Path - No image found at the path > referenced under key 'CFBundleIcons': 'AppIcon60x60'" > ERROR ITMS-90023: "Missing required icon file. The bundle does not contain > an app icon for iPad of exactly '76x76' pixels, in .png format for iOS > versions >= 7.0." > ERROR ITMS-90023: "Missing required icon file. The bundle does not contain > an app icon for iPad of exactly '152x152' pixels, in .png format for iOS > versions >= 7.0." > ERROR ITMS-90022: "Missing required icon file. The bundle does not contain > an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png > format for iOS versions >= 7.0." > > Have I got a setting wrong? Or is there a LC bug? > > Anyone have any insight to share? > > -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 paul at researchware.com Tue Apr 3 11:20:54 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 3 Apr 2018 11:20:54 -0400 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: <28094b13-7901-d5b3-7305-455637f287ec@researchware.com> I assume with the release of LC 9.0.0 that there will not be a release version of LC 8.2.0? Is this the case? It makes sense, but I am just looking to confirm whether this has been confirmed by the Mothership. From paul at researchware.com Tue Apr 3 11:26:48 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 3 Apr 2018 11:26:48 -0400 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: Also, the LC9 splash dialog/pane/whatever does not go away either by clicking on it or after the menu and tool palette appears. Anyone else seeing this? From paul at researchware.com Tue Apr 3 11:30:26 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 3 Apr 2018 11:30:26 -0400 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: References: Message-ID: On 4/3/2018 10:33 AM, Mike Kerner via use-livecode wrote: > I'm still thinking about sessions for LCG. One of the suggestions I had > seen was an intro on tool x. How about a tools roundup? Names and URL's > for your favorite LC tools go in this thread, please. More is better so I > don't leave anyone out. > Mike, I have a "tool" that I use a lot that I am happy to share. It is not an IDE plugin, just a stack that will build a text file of the scripts of all of the open (non-IDE) stacks (except itself). I find it helpful to have a text file of all my apps scripts for reference. I have no idea if any other would find it useful. I suspect for those who do they already have better versions of such a tool they created. Any way, I'm happy to email it to you if you like. Just send me a direct email an let me know. From MikeKerner at roadrunner.com Tue Apr 3 11:35:08 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 3 Apr 2018 11:35:08 -0400 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: References: Message-ID: Hey, Paul, this account works fine: mikeKerner at roadrunner.com (but so do any of the other addresses that any of you have for me, since I have...a couple...) If you or someone else has one of my other addresses, those work as well. One caveat for anyone who jumps in on this: A tool doesn't do anyone any good if they can't get it, so we would need to know either how to get a hold of the author, or how to get the tool in question. From panos.merakos at livecode.com Tue Apr 3 11:35:56 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 3 Apr 2018 16:35:56 +0100 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: @Paul RE the splash screen not going away, I have occasionally seen it in other LC versions on Windows only in the past. If I remember correctly, it was fixed once I deleted the LC Prefs. RE 8.2.0, there will be no other LC 8.2 releases, since all the features and bug fixes of LC 8.2.x are now merged into LC 9.0. Best, Panos -- On Tue, Apr 3, 2018 at 4:26 PM, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Also, the LC9 splash dialog/pane/whatever does not go away either by > clicking on it or after the menu and tool palette appears. Anyone else > seeing this? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From MikeKerner at roadrunner.com Tue Apr 3 11:35:58 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 3 Apr 2018 11:35:58 -0400 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: I had this problem with RC1. I had to delete my lc prefs file. On Tue, Apr 3, 2018 at 11:26 AM, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Also, the LC9 splash dialog/pane/whatever does not go away either by > clicking on it or after the menu and tool palette appears. Anyone else > seeing this? > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bogdanoff at me.com Tue Apr 3 11:43:13 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Tue, 03 Apr 2018 08:43:13 -0700 Subject: Installation failed In-Reply-To: <008C1B08-24C9-4A3B-B730-4696577C9863@iotecdigital.com> References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> <008C1B08-24C9-4A3B-B730-4696577C9863@iotecdigital.com> Message-ID: I had installation success in Win/Parallels downloading with the web browser IN Windows. Peter > On Apr 3, 2018, at 7:46 AM, Bob Sneidar via use-livecode wrote: > > Couldn't extract payload to file. Internal error. I'll contact support. > > Bob S > > >> On Apr 3, 2018, at 07:44 , Bob Sneidar via use-livecode wrote: >> >> Now it gets most of the way through and then backs out and says can't install payload or some such thing. >> >> 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 MikeKerner at roadrunner.com Tue Apr 3 11:43:48 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 3 Apr 2018 11:43:48 -0400 Subject: Installation failed In-Reply-To: <008C1B08-24C9-4A3B-B730-4696577C9863@iotecdigital.com> References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> <008C1B08-24C9-4A3B-B730-4696577C9863@iotecdigital.com> Message-ID: I've also run into that when I try to install for all users instead of just me when I'm installing in parallels On Tue, Apr 3, 2018 at 10:46 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Couldn't extract payload to file. Internal error. I'll contact support. > > Bob S > > > > On Apr 3, 2018, at 07:44 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Now it gets most of the way through and then backs out and says can't > install payload or some such thing. > > > > 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 > -- 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 dan at clearvisiontech.com Tue Apr 3 11:49:12 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 3 Apr 2018 15:49:12 +0000 Subject: App Submission Errors Message-ID: Panos, Thank you for the tip! Actually, I had all the icons in place, but the icon folder was moved. Now I am left with this feeling of stupidity and embarrassment. :) -Dan -------------------------------------------------------- Hi Dan, You have to include *all* the required icons for your app. Just go to the iOS standalone settings and make sure you add a .png of the specified dimensions (shown in the tooltip) for each icon field. Best, Panos From msiskin at andrew.cmu.edu Tue Apr 3 11:50:36 2018 From: msiskin at andrew.cmu.edu (Marc Siskin) Date: Tue, 3 Apr 2018 15:50:36 +0000 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: References: Message-ID: Paul, I would like it. Maybe you can upload the stack to Revonline too. Thank you, Marc On Apr 3, 2018, at 11:30 AM, Paul Dupuis via use-livecode > wrote: On 4/3/2018 10:33 AM, Mike Kerner via use-livecode wrote: I'm still thinking about sessions for LCG. One of the suggestions I had seen was an intro on tool x. How about a tools roundup? Names and URL's for your favorite LC tools go in this thread, please. More is better so I don't leave anyone out. Mike, I have a "tool" that I use a lot that I am happy to share. It is not an IDE plugin, just a stack that will build a text file of the scripts of all of the open (non-IDE) stacks (except itself). I find it helpful to have a text file of all my apps scripts for reference. I have no idea if any other would find it useful. I suspect for those who do they already have better versions of such a tool they created. Any way, I'm happy to email it to you if you like. Just send me a direct email an let me know. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode --------------- Marc Siskin Manager, Modern Language Resource Center Carnegie Mellon University msiskin at andrew.cmu.edu From bobsneidar at iotecdigital.com Tue Apr 3 11:58:01 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 15:58:01 +0000 Subject: Guessing game In-Reply-To: <8fa779d0402b7a4525f91ba9c2cb53cb@livecode.com> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> <8fa779d0402b7a4525f91ba9c2cb53cb@livecode.com> Message-ID: When I was first exposed to arrays in Foxpro, I saw them as ordered blocks of memory which could be addressed using integer values. Back then an array in memory resided in a contiguous block of memory for efficiency, and were 2 dimensional, so a reference to an element was myArray(x,y) (if memory serves heh heh). I naturally saw variables as a string reference different kind of object in memory. I still do. Livecode therefore supports two types of variables in my understanding: String and Array. This becomes evident when you try to write either to a file. A string you can. An array you have to convert to a string of sorts (arrayEncode) to save it anywhere but in LC memory or an LC property. Bob S > On Apr 3, 2018, at 02:24 , Mark Waddingham via use-livecode wrote: > > P.S. Looking at this another way - I'd perhaps characterize the above as arrays are not 'complete' as values in LiveCode (as in: you can't use arrays in all places where you can use strings, and would still make sense), but I would say they were 'first-class'. I'd suggest 'completeness as values' is a more stringent requirement than 'first-class' - and is more that 'code has not been written to do that' (incomplete), rather than the 'model of the language disallows any notion of it being possible' (not first-class). From jacque at hyperactivesw.com Tue Apr 3 12:01:37 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Apr 2018 11:01:37 -0500 Subject: LC on ChromeBooks Message-ID: <1628c3e02e8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Has anyone tried to run an LC app on a ChromeBook? Don't they run Android apps now? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Tue Apr 3 12:04:20 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 16:04:20 +0000 Subject: Installation failed In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> <008C1B08-24C9-4A3B-B730-4696577C9863@iotecdigital.com> Message-ID: <26ADD031-A95A-4E60-8AAB-3A048A852D06@iotecdigital.com> Actually I discovered I was running out of disk space in my VM. DOH! The installer doesn't really spell that out when it fails, so I feel somewhat vindicated. Bob S > On Apr 3, 2018, at 08:43 , Mike Kerner via use-livecode wrote: > > I've also run into that when I try to install for all users instead of just > me when I'm installing in parallels > > On Tue, Apr 3, 2018 at 10:46 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Couldn't extract payload to file. Internal error. I'll contact support. >> >> Bob S From bobsneidar at iotecdigital.com Tue Apr 3 12:09:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 16:09:30 +0000 Subject: do. command. safety. ? In-Reply-To: <228749e7466d44bfc1e27dca3e5543e2@livecode.com> References: <60f99b59-286d-cd9a-e3fe-9c76e3c72f55@hyperactivesw.com> <313af707-1dcd-e652-f4a0-82091c2dde31@fourthworld.com> <228749e7466d44bfc1e27dca3e5543e2@livecode.com> Message-ID: <39B92ECF-5399-4E99-B4F8-7ECEB23DBA3A@iotecdigital.com> When I first started writing things in Hypercard, I would take my creations to the Principle of the High School where I worked and he would set about trying to break my code. He was good at it. He told me that if it occured to him to try and break it, eventually it would occur to someone else. Smart guy. Bob S > On Apr 3, 2018, at 03:50 , Mark Waddingham via use-livecode wrote: > > Put another way, all cases where code could be maliciously subverted are also cases where your code could break through simple user error. > > I'm not sure if that makes the problem any simpler to think about - but it at least removes the notion that maliciousness is the reason to be careful, and replaces it with robustness (which seems slightly more positive, at least). > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps From tore.nilsen at me.com Tue Apr 3 12:22:54 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 03 Apr 2018 18:22:54 +0200 Subject: Audio recording fails when trying to record video Message-ID: <1F30D0F0-B5E7-4A55-BEAC-ACA1E4640DE9@me.com> I am currently trying to help one of my students with setting up a camera control to record video. We have been able to set up a camera control to record video, but no sound is recorded. According to the dictionary an audioDevice ID should be set in order to record sound as well as video. Using the cameraControlGet to get the audioDevice ID does not return empty, but no sound is recorded. That is, sometimes it do record sound, others it do not. When trying to explicitly set the audioDeviceID upon creation of the cameraControl, I get a script error, unless I type the audioID inside quotes directly into the code. This is of course annoying and not very useful, as one never knows the audioDeviceID other than on the device used to make the application. I must admit I have no idea as to what I am doing wrong, but I trust this list to spot the obvious mistake quickly. Here is the script for setting up the camera control: on mouseUp cameraControlCreate "myFirstCamera" cameraControlSet "myFirstCamera", "visible", true cameraControlSet "myFirstCamera", "rect", "0,79,400,304" put line 1 of cameraControlGet("myFirstCamera","audioDevices")into tAudio delete last item of tAudio -- the name of the audio input device, an error is thrown at runtime unless this is deleted cameraControlSet "myFirstCamera", "audioDevice", tAudio end mouseUp Best regards Tore Nilsen From rdimola at evergreeninfo.net Tue Apr 3 12:40:49 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 3 Apr 2018 12:40:49 -0400 Subject: Android Native Button In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> <002501d3cb02$4a180e60$de482b20$@net> Message-ID: <005501d3cb6a$88e1aee0$9aa50ca0$@net> Thanks Ali, I submitted bug https://quality.livecode.com/show_bug.cgi?id=21141 Also in the QCC is that I can't change the font of text size. 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 Ali Lloyd via use-livecode Sent: Tuesday, April 03, 2018 3:17 AM To: How to use LiveCode Cc: Ali Lloyd Subject: Re: Android Native Button Ah yes, we need to apply this https://github.com/livecode/livecode/pull/6441/files to the android button as well On Tue, Apr 3, 2018 at 5:51 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Looking at the code for the android field, it is probably a bug. In > that code the type is optional pointer and a check is done that a > pointer was returned. That check is not done for the button. Are you > sure the font being specified is valid? > > I have not done anything android, so this is just a quick read of the > LCB code. > On Mon, Apr 2, 2018 at 11:14 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I'm receiving the error below. The button does render. I can't > > change the textsize? Have I missed something or should I submit a QCC bug report? > > > > Thanks > > > > occurred on line:0 > > 0,Value is not of correct type for assignment to variable - expected > > type for assigning to a variable tTypefacePtr > > in com.livecode.widget.native.android.button.SetTypeface > > > > > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 rdimola at evergreeninfo.net Tue Apr 3 12:45:10 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 3 Apr 2018 12:45:10 -0400 Subject: Android Native Button In-Reply-To: References: <75A11D74-90B3-47F5-8DD5-66CA4C8C1077@iotecdigital.com> <002501d3cb02$4a180e60$de482b20$@net> Message-ID: <005601d3cb6b$23ed9bb0$6bc8d310$@net> Yes, I enumerated the font names on the device and used the "Droid Serif" font. QCC report 21141 submitted. Thanks Brian Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From: Brian Milby [mailto:brian at milby7.com] Sent: Tuesday, April 03, 2018 12:51 AM To: How to use LiveCode Cc: Ralph DiMola Subject: Re: Android Native Button Looking at the code for the android field, it is probably a bug. In that code the type is optional pointer and a check is done that a pointer was returned. That check is not done for the button. Are you sure the font being specified is valid? I have not done anything android, so this is just a quick read of the LCB code. On Mon, Apr 2, 2018 at 11:14 PM Ralph DiMola via use-livecode wrote: I'm receiving the error below. The button does render. I can't change the textsize? Have I missed something or should I submit a QCC bug report? Thanks occurred on line:0 0,Value is not of correct type for assignment to variable - expected type for assigning to a variable tTypefacePtr in com.livecode.widget.native.android.button.SetTypeface 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 ambassador at fourthworld.com Tue Apr 3 13:05:56 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 3 Apr 2018 10:05:56 -0700 Subject: Guessing game In-Reply-To: References: Message-ID: <26f9d5dc-1d48-a3b2-db40-50d1f7c363d6@fourthworld.com> David Bovill wrote: > The use-case I had was to replace send syntax with the more elegant > set the ... of object to syntax. While the getProp and setProp handlers would seem to lend themselves to a lot of useful object binding opportunities, they require caution: they're treated by the engine as system messages, and as such are not immune to the effects of lockMessages the way custom handlers are. Systems depending on getProp and setProp will need to monitor lockMessages carefully to insure critical triggers are received as expected. Using getter and setter accessor handlers avoids that concern, with a stylistic difference that isn't much more verbose: set the BeautifulColor of cd 1 to "light-grey" -vs- dispatch SetBeautifulColor to cd 1 with "light-grey" It doesn't read as nicely, but given that the trade-off can be unpredictability I'll take what I can get. :) And depending on usage context, in many cases the UI event that initiates a calling chain may be on the card in question, not requiring out-of-message-path dispatching, making the call simpler than a property setting: SetBeautifulColor "light-grey" For virtual objects like models, accessors can simplify things by not requiring that they be bound to a physical object which need not otherwise exist. The name-value-pair programming we enjoy with custom props applies equally well with any array. But with arrays we can have deeper levels, and are more easily savable/transportable than an object bound to a stack file. -- 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 paul at researchware.com Tue Apr 3 13:31:08 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 3 Apr 2018 13:31:08 -0400 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: References: Message-ID: <295375b7-e466-14dd-71fd-6ae262aa0e4a@researchware.com> Mike & Marc, You can find the tool at http://www.researchware.com/livecode/rwScriptReporter141016.livecode It is not fancy, nor elegant, but I have found I use it regularly to create a text file of the script of our 100K+ line LiveCode app and often have the text file of the scripts open to search and copy lines of code from it into objects that I am working on in the IDE or simply to search for a look up any oen of the hundreds of functions and commands that are internal APIs for our application. Anyone is welcome to use this code in any way they like. If someone make a really slick version of this, please let me know. The Table of Contents feature works pretty well. The index still needs some tweaking to make it more useful that it currently is. -- Paul From richmondmathewson at gmail.com Tue Apr 3 13:36:56 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 3 Apr 2018 20:36:56 +0300 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: Congratulations! Now let's "Heigh-Ho" over to my Linux box and see if we can . . . Love, Richmond. On 3/4/2018 4:01 pm, panagiotis merakos via use-livecode wrote: > Dear list members, > > LiveCode 9.0.0 is out, read all about it here: > > https://us7.campaign-archive.com/?u=8404b344b09103bf489dd8a9a&id=c574bcb9b3 > > Have fun! > The LiveCode Team > -- > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Apr 3 13:38:40 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 17:38:40 +0000 Subject: memory databases fail in Windows Message-ID: <7862CAB8-FD8D-4E09-9125-4C63A77DAB37@iotecdigital.com> Hi all. I have a function that works in Mac but not in Windows. Here is the relevant code: function arrayToMemoryDB aArrayData put the keys of aArrayData into tArrayKeys sort tArrayKeys numeric ascending put ":MEMORY:" into tDBFile try put revOpenDatabase("sqlite", tDBFile) into tDBID put "drop table arraydata" into tDropSQL revExecuteSQL tDBID, tDropSQL put the result into tResult catch tError answer tError if the environment is "development" then exit to top else quit end try revOpenDatabase returns an error. Any idea why? It's a memory database! How can it NOT work?? Bob S From richmondmathewson at gmail.com Tue Apr 3 13:38:46 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 3 Apr 2018 20:38:46 +0300 Subject: [ANN] Release 9.0.0 In-Reply-To: <28094b13-7901-d5b3-7305-455637f287ec@researchware.com> References: <28094b13-7901-d5b3-7305-455637f287ec@researchware.com> Message-ID: <7c2bf6fb-bba6-adf2-2818-607fa15df228@gmail.com> And, what about the much vaunted 8.1.10 which is supposed to have several bug-fixes that I am hanging around for? Richmond. On 3/4/2018 6:20 pm, Paul Dupuis via use-livecode wrote: > I assume with the release of LC 9.0.0 that there will not be a release > version of LC 8.2.0? > > Is this the case? It makes sense, but I am just looking to confirm > whether this has been confirmed by the Mothership. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 3 13:35:59 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 3 Apr 2018 10:35:59 -0700 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: <6457accd-6822-9600-6ddb-42e2f4740d88@fourthworld.com> Thanks, Panos. Very exciting news. I've noticed in recent weeks that download speeds from downloads.livecode.com have become very slow. Builds that used to take just a couple minutes now take hours. My ISP isn't the best, but I haven't seen slow downloads like that anywhere else. Is this a known issue with that server? Could there be something specific to my ISP causing this delay with that subdomain but no others? And a question about the future: now that v9 is out, is there anything you can tell us about v10? -- 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 richmondmathewson at gmail.com Tue Apr 3 13:58:01 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 3 Apr 2018 20:58:01 +0300 Subject: LiveCode code licences Message-ID: <88905cb8-0b3a-3e91-f4cb-83219d7e7fc0@gmail.com> I am vaguely concerned as my Indy licence is due to expire on 31 May of this year. Does this mean that: 1. On 1 June all my Indy installs will suddenly go "phut" and stop working? 2. On 1 June all the Indy installs I have currently installed will suddenly "degenerate" into Community versions? 3. On 1 June all the Indy installs I have currently installed will continue working, but I will be unable to download further versions and licence them? 4. Why am I 99% sure the answer is #1 ? NOW: over at my other e-mail address, where, for various daft reasons that I have forgotten, I use my first name (John), I have been "mail-bombed" by LiveCode offering me "lifetime" Indy licence for $500 . . . all dependent on my not already being the owner of a licence (this is a bit of a pain). Is that $500 offer generally available . . . ? Richmond. From bonnmike at gmail.com Tue Apr 3 14:12:31 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 3 Apr 2018 12:12:31 -0600 Subject: memory databases fail in Windows In-Reply-To: <7862CAB8-FD8D-4E09-9125-4C63A77DAB37@iotecdigital.com> References: <7862CAB8-FD8D-4E09-9125-4C63A77DAB37@iotecdigital.com> Message-ID: try changing :MEMORY: to :memory: On Tue, Apr 3, 2018 at 11:38 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all. I have a function that works in Mac but not in Windows. Here is > the relevant code: > > function arrayToMemoryDB aArrayData > put the keys of aArrayData into tArrayKeys > sort tArrayKeys numeric ascending > put ":MEMORY:" into tDBFile > > try > put revOpenDatabase("sqlite", tDBFile) into tDBID > > put "drop table arraydata" into tDropSQL > revExecuteSQL tDBID, tDropSQL > put the result into tResult > catch tError > answer tError > if the environment is "development" then exit to top else quit > end try > > > revOpenDatabase returns an error. Any idea why? It's a memory database! > How can it NOT work?? > > 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 bobsneidar at iotecdigital.com Tue Apr 3 14:15:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 18:15:25 +0000 Subject: LiveCode code licences In-Reply-To: <88905cb8-0b3a-3e91-f4cb-83219d7e7fc0@gmail.com> References: <88905cb8-0b3a-3e91-f4cb-83219d7e7fc0@gmail.com> Message-ID: <70707574-F775-4940-88EB-56FB8FBC41E6@iotecdigital.com> I suspect this would have been a better question to submit to support at livecode.com. That said, to my knowledge no distributed apps (standalones) are going to stop working. You will not be able to develop in LC Indy however. It won't even launch. You *can* open these stacks in the Community version, but of course any plug-ins/addons that depend on Indy (or higher) will not be included. Your Indy installs will not degenerate. You would have to download and install Community, and use that instead. It's doubtful the offer extends to current developers. Bob S > On Apr 3, 2018, at 10:58 , Richmond Mathewson via use-livecode wrote: > > I am vaguely concerned as my Indy licence is due to expire on 31 May of this year. > > Does this mean that: > > 1. On 1 June all my Indy installs will suddenly go "phut" and stop working? > > 2. On 1 June all the Indy installs I have currently installed will suddenly "degenerate" into Community versions? > > 3. On 1 June all the Indy installs I have currently installed will continue working, > but I will be unable to download further versions and licence them? > > 4. Why am I 99% sure the answer is #1 ? > > NOW: over at my other e-mail address, where, for various daft reasons that I have forgotten, I use my > first name (John), I have been "mail-bombed" by LiveCode offering me "lifetime" Indy licence for > $500 . . . all dependent on my not already being the owner of a licence (this is a bit of a pain). > > Is that $500 offer generally available . . . ? > > 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 bobsneidar at iotecdigital.com Tue Apr 3 14:15:58 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 18:15:58 +0000 Subject: memory databases fail in Windows In-Reply-To: References: <7862CAB8-FD8D-4E09-9125-4C63A77DAB37@iotecdigital.com> Message-ID: <02E7DB77-BE4C-4928-ACDE-E59837505D29@iotecdigital.com> Ah! Curoius it works with Mac. I'll give that a try. Bob S > On Apr 3, 2018, at 11:12 , Mike Bonner via use-livecode wrote: > > try changing :MEMORY: to :memory: > > On Tue, Apr 3, 2018 at 11:38 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all. I have a function that works in Mac but not in Windows. Here is >> the relevant code: >> >> function arrayToMemoryDB aArrayData >> put the keys of aArrayData into tArrayKeys >> sort tArrayKeys numeric ascending >> put ":MEMORY:" into tDBFile >> >> try >> put revOpenDatabase("sqlite", tDBFile) into tDBID >> >> put "drop table arraydata" into tDropSQL >> revExecuteSQL tDBID, tDropSQL >> put the result into tResult >> catch tError >> answer tError >> if the environment is "development" then exit to top else quit >> end try >> >> >> revOpenDatabase returns an error. Any idea why? It's a memory database! >> How can it NOT work?? >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kevin at livecode.com Tue Apr 3 14:17:54 2018 From: kevin at livecode.com (kevin) Date: Tue, 03 Apr 2018 18:17:54 +0000 Subject: LiveCode code licences Message-ID: Yes your Indy license will expire. Given what it costs to maintain LiveCode we need revenue annually. I'm not sure what offer you are referring to but there is no such deal available to anyone.? null From ambassador at fourthworld.com Tue Apr 3 14:38:03 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 3 Apr 2018 11:38:03 -0700 Subject: memory databases fail in Windows In-Reply-To: <7862CAB8-FD8D-4E09-9125-4C63A77DAB37@iotecdigital.com> References: <7862CAB8-FD8D-4E09-9125-4C63A77DAB37@iotecdigital.com> Message-ID: Bob Sneidar wrote: > Hi all. I have a function that works in Mac but not in Windows. Here is the relevant code: > > function arrayToMemoryDB aArrayData > put the keys of aArrayData into tArrayKeys > sort tArrayKeys numeric ascending > put ":MEMORY:" into tDBFile > > try > put revOpenDatabase("sqlite", tDBFile) into tDBID > > put "drop table arraydata" into tDropSQL > revExecuteSQL tDBID, tDropSQL > put the result into tResult > catch tError > answer tError > if the environment is "development" then exit to top else quit > end try > > > revOpenDatabase returns an error. Any idea why? It's a memory database! How can it NOT work?? What is the goal? Arrays and memory-based SQLite are both in-memory stores with hashed access. I'm guessing there's something more to this use-case than my limited thinking currently grasps. -- 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 Tue Apr 3 15:59:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 19:59:41 +0000 Subject: Odd Name Resolution Message-ID: Hi all. I have noticed that if I reference an object on a different card while that card is not the current card, I have to use the full path to that object. For instance: put the hilited of button "btndbprimary" of card "Database Setup" this will return true if card "Database Setup" is the current card, but will return false if it is not, even though the button is hilited. However, put the hilited of button "btndbprimary" of card "Database Setup" of stack "Forms Generator" WILL return true no matter where I use it. Is this normal behavior? Bob S From bobsneidar at iotecdigital.com Tue Apr 3 16:07:31 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 20:07:31 +0000 Subject: memory databases fail in Windows In-Reply-To: References: <7862CAB8-FD8D-4E09-9125-4C63A77DAB37@iotecdigital.com> Message-ID: <1204504B-F1A2-438C-848A-3E66CF787FB6@iotecdigital.com> You would be correct. :-) I posted a little while ago that I wrote some code to gather certain properties of all the objects on a card into an array. Converting that array into a memory database allows me to find all the objects that are for example, visible and groups and then get the top, left, bottom and right of each of these objects (because I passed those in a list to the thing that generates the array). Essentially it's for finding things in an array. You might say I could do the same thing by iterating through all the elements of an array, but what if I wanted to do multiple queries? It's easier for me to write SQL queries than it is to code repeat loops. Bob S > On Apr 3, 2018, at 11:38 , Richard Gaskin via use-livecode wrote: > > What is the goal? > > Arrays and memory-based SQLite are both in-memory stores with hashed access. I'm guessing there's something more to this use-case than my limited thinking currently grasps. > > -- > Richard Gaskin From tom at makeshyft.com Tue Apr 3 16:12:20 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 3 Apr 2018 16:12:20 -0400 Subject: Odd Name Resolution In-Reply-To: References: Message-ID: if you don't specify the stack it uses the "defaultstack" ... so is it returning false even if the button is not there? On Tue, Apr 3, 2018 at 3:59 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all. > > I have noticed that if I reference an object on a different card while > that card is not the current card, I have to use the full path to that > object. For instance: > > put the hilited of button "btndbprimary" of card "Database Setup" > > this will return true if card "Database Setup" is the current card, but > will return false if it is not, even though the button is hilited. > > However, > > put the hilited of button "btndbprimary" of card "Database Setup" of stack > "Forms Generator" > > WILL return true no matter where I use it. Is this normal behavior? > > 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 ambassador at fourthworld.com Tue Apr 3 16:12:39 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 3 Apr 2018 13:12:39 -0700 Subject: memory databases fail in Windows In-Reply-To: <1204504B-F1A2-438C-848A-3E66CF787FB6@iotecdigital.com> References: <1204504B-F1A2-438C-848A-3E66CF787FB6@iotecdigital.com> Message-ID: <1e9d4fce-57f9-9a62-2534-ea286d2f1f0b@fourthworld.com> Bob Sneidar wrote: >> On Apr 3, 2018, at 11:38 , Richard Gaskin wrote: >> >> What is the goal? >> >> Arrays and memory-based SQLite are both in-memory stores with hashed >> access. I'm guessing there's something more to this use-case than my >> limited thinking currently grasps. > > You would be correct. :-) > > I posted a little while ago that I wrote some code to gather certain > properties of all the objects on a card into an array. Converting that > array into a memory database allows me to find all the objects that > are for example, visible and groups and then get the top, left, bottom > and right of each of these objects (because I passed those in a list > to the thing that generates the array). > > Essentially it's for finding things in an array. You might say I could > do the same thing by iterating through all the elements of an array, > but what if I wanted to do multiple queries? It's easier for me to > write SQL queries than it is to code repeat loops. I hear ya'. I find myself tempted way more than I have time for to write an xquery-like library for working with arrays. We could sure use one. -- 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 ali.lloyd at livecode.com Tue Apr 3 16:17:08 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 03 Apr 2018 20:17:08 +0000 Subject: [ANN] Release 9.0.0 In-Reply-To: <7c2bf6fb-bba6-adf2-2818-607fa15df228@gmail.com> References: <28094b13-7901-d5b3-7305-455637f287ec@researchware.com> <7c2bf6fb-bba6-adf2-2818-607fa15df228@gmail.com> Message-ID: Besides having most people busy on getting 9.0 out, it made sense to delay 8.1.10 a little more so we could get the Xcode/iOS update in there. It's next on the agenda! On Tue, Apr 3, 2018 at 6:38 PM Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > And, what about the much vaunted 8.1.10 > which is supposed to have several bug-fixes that I am hanging around for? > > Richmond. > > On 3/4/2018 6:20 pm, Paul Dupuis via use-livecode wrote: > > I assume with the release of LC 9.0.0 that there will not be a release > > version of LC 8.2.0? > > > > Is this the case? It makes sense, but I am just looking to confirm > > whether this has been confirmed by the Mothership. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 bonnmike at gmail.com Tue Apr 3 17:06:39 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 3 Apr 2018 15:06:39 -0600 Subject: memory databases fail in Windows In-Reply-To: <1e9d4fce-57f9-9a62-2534-ea286d2f1f0b@fourthworld.com> References: <1204504B-F1A2-438C-848A-3E66CF787FB6@iotecdigital.com> <1e9d4fce-57f9-9a62-2534-ea286d2f1f0b@fourthworld.com> Message-ID: Yes please! ###I hear ya'. I find myself tempted way more than I have time for to write an xquery-like library for working with arrays. We could sure use one.### On Tue, Apr 3, 2018 at 2:12 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Bob Sneidar wrote: > > >> On Apr 3, 2018, at 11:38 , Richard Gaskin wrote: > >> > >> What is the goal? > >> > >> Arrays and memory-based SQLite are both in-memory stores with hashed > >> access. I'm guessing there's something more to this use-case than my > >> limited thinking currently grasps. > > > > You would be correct. :-) > > > > I posted a little while ago that I wrote some code to gather certain > > properties of all the objects on a card into an array. Converting that > > array into a memory database allows me to find all the objects that > > are for example, visible and groups and then get the top, left, bottom > > and right of each of these objects (because I passed those in a list > > to the thing that generates the array). > > > > Essentially it's for finding things in an array. You might say I could > > do the same thing by iterating through all the elements of an array, > > but what if I wanted to do multiple queries? It's easier for me to > > write SQL queries than it is to code repeat loops. > > I hear ya'. I find myself tempted way more than I have time for to write > an xquery-like library for working with arrays. We could sure use one. > > -- > 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 richmondmathewson at gmail.com Tue Apr 3 17:19:20 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 4 Apr 2018 00:19:20 +0300 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <28094b13-7901-d5b3-7305-455637f287ec@researchware.com> <7c2bf6fb-bba6-adf2-2818-607fa15df228@gmail.com> Message-ID: Lovely! Richmond. On 3/4/2018 11:17 pm, Ali Lloyd via use-livecode wrote: > Besides having most people busy on getting 9.0 out, it made sense to delay > 8.1.10 a little more so we could get the Xcode/iOS update in there. It's > next on the agenda! > > On Tue, Apr 3, 2018 at 6:38 PM Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> And, what about the much vaunted 8.1.10 >> which is supposed to have several bug-fixes that I am hanging around for? >> >> Richmond. >> >> On 3/4/2018 6:20 pm, Paul Dupuis via use-livecode wrote: >>> I assume with the release of LC 9.0.0 that there will not be a release >>> version of LC 8.2.0? >>> >>> Is this the case? It makes sense, but I am just looking to confirm >>> whether this has been confirmed by the Mothership. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Tue Apr 3 18:24:36 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 22:24:36 +0000 Subject: Odd Name Resolution In-Reply-To: References: Message-ID: <03E44D91-BB66-4055-B132-7D2D289D1BDE@iotecdigital.com> The button is there. It returns false. The checkbox is checked. As I said it works if the card is the currentCard. The only stack open at the time IS the Forms Generator stack, so it has to be the defaultStack. Bob S > On Apr 3, 2018, at 13:12 , Tom Glod via use-livecode wrote: > > if you don't specify the stack it uses the "defaultstack" ... so is it > returning false even if the button is not there? From tom at makeshyft.com Tue Apr 3 18:32:07 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 3 Apr 2018 18:32:07 -0400 Subject: Odd Name Resolution In-Reply-To: <03E44D91-BB66-4055-B132-7D2D289D1BDE@iotecdigital.com> References: <03E44D91-BB66-4055-B132-7D2D289D1BDE@iotecdigital.com> Message-ID: hmmm....thats really weird ...... maybe one of the IDE stacks is being considered as the defaultstack.... i don't know why else the ref would not work.... it really is weird.... you should report it....can you post a stack? On Tue, Apr 3, 2018 at 6:24 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > The button is there. It returns false. The checkbox is checked. As I said > it works if the card is the currentCard. The only stack open at the time IS > the Forms Generator stack, so it has to be the defaultStack. > > Bob S > > > > On Apr 3, 2018, at 13:12 , Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > if you don't specify the stack it uses the "defaultstack" ... so is it > > returning false even if the button is not there? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Apr 3 18:37:04 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 22:37:04 +0000 Subject: memory databases fail in Windows In-Reply-To: <1e9d4fce-57f9-9a62-2534-ea286d2f1f0b@fourthworld.com> References: <1204504B-F1A2-438C-848A-3E66CF787FB6@iotecdigital.com> <1e9d4fce-57f9-9a62-2534-ea286d2f1f0b@fourthworld.com> Message-ID: <2FB679D2-78E1-4BAD-82C1-EA491DF195F5@iotecdigital.com> Enjoy! If you make it better post updates. Eventually we can put it into the library we all share. I use it for querying for the min top and left, and the max bottom and right of all visible objects on a card. But it can be used In a lot of ways. You could store data in an array in a stack property, convert it to a memory db at runtime, then convert it back whenever you want to "commit" the changes. None of the data ever touches the disk in a way that something outside Livecode could access. I suppose now I will have to write memoryDBToArray() function arrayToMemoryDB aArrayData put the keys of aArrayData into tArrayKeys sort tArrayKeys numeric ascending put ":memory:" into tDBFile try put revOpenDatabase("sqlite", tDBFile) into tDBID if "Error" is in tDBID then throw tDBID return empty end if put "drop table arraydata" into tDropSQL revExecuteSQL tDBID, tDropSQL put the result into tResult catch tError answer tError if the environment is "development" then exit to top else quit end try -- create the table put "create table" && quote & "arraydata" & quote \ & cr into tCreateCommand put "(" & quote & "recordid" & quote && "NUMERIC PRIMARY KEY NOT NULL UNIQUE, " \ & cr after tCreateCommand put the keys of aArrayData [1] into tRecordKeyList repeat for each line tRecordKey in tRecordKeyList put quote & tRecordKey & quote && "VARCHAR, " & cr after tCreateCommand end repeat delete char -3 to -1 of tCreateCommand put ")" after tCreateCommand try revExecuteSQL tDBID, tCreateCommand put the result into tResult if tResult is not 0 then breakpoint catch tError breakpoint end try -- insert data repeat for each line tKey in tArrayKeys put aArrayData [tKey] into aRecordData put 1 into tCounter put "recordid" into item tCounter of tColumns put ":" & tCounter into item tCounter of tColumnData put tKey into aColumnData [tCounter] repeat for each line tRecordKey in tRecordKeyList add 1 to tCounter put tRecordKey into item tCounter of tColumns put ":" & tCounter into item tCounter of tColumnData put aRecordData [tRecordKey] into aColumnData [tCounter] end repeat put "(" & tColumns & ")" into tColumns put "(" & tColumnData & ")" into tColumnData put "insert into arraydata" && tColumns && "VALUES" && tColumnData into tInsertSQL replace quote with "\" & quote in tInsertSQL replace "'" with quote in tInsertSQL try revExecuteSQL tDBID, tInsertSQL, "aColumnData" put the result into tResult if tResult is not 1 then breakpoint catch tError breakpoint end try end repeat return tDBID end arrayToMemoryDB From bobsneidar at iotecdigital.com Tue Apr 3 18:38:32 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Apr 2018 22:38:32 +0000 Subject: Odd Name Resolution In-Reply-To: References: <03E44D91-BB66-4055-B132-7D2D289D1BDE@iotecdigital.com> Message-ID: I will try to throw one together. Note that it isn't returning an error, which it would if the defaultStack was something else, and the button or card did not exist. It's not doing that. It's returning a false value. Bob S > On Apr 3, 2018, at 15:32 , Tom Glod via use-livecode wrote: > > hmmm....thats really weird ...... maybe one of the IDE stacks is being > considered as the defaultstack.... i don't know why else the ref would not > work.... > > it really is weird.... you should report it....can you post a stack? From david.bovill at gmail.com Tue Apr 3 18:58:21 2018 From: david.bovill at gmail.com (David Bovill) Date: Tue, 3 Apr 2018 23:58:21 +0100 Subject: Guessing game In-Reply-To: <26f9d5dc-1d48-a3b2-db40-50d1f7c363d6@fourthworld.com> References: <26f9d5dc-1d48-a3b2-db40-50d1f7c363d6@fourthworld.com> Message-ID: Yes - thanks for pointing that out. So far I've found the behaviour of lockmessages to be actually useful rather than an issue with getprop/setprop - seems well designed to me. The place where the syntax really shines is with functions calls rather than commands - dispatch is quite natural for that. Say you want the model data of a stack "My Project" - the syntax: put the project_Data of stack "My Project" into pData is much more elegant and comprehensible than any way to call a function. this is also nice: put the project_Data ["pretty colour"] of stack "My Project" into > defaultColour On 3 April 2018 at 18:05, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > David Bovill wrote: > > > The use-case I had was to replace send syntax with the more elegant > > set the ... of object to syntax. > > While the getProp and setProp handlers would seem to lend themselves to a > lot of useful object binding opportunities, they require caution: they're > treated by the engine as system messages, and as such are not immune to the > effects of lockMessages the way custom handlers are. > > Systems depending on getProp and setProp will need to monitor lockMessages > carefully to insure critical triggers are received as expected. > > Using getter and setter accessor handlers avoids that concern, with a > stylistic difference that isn't much more verbose: > > set the BeautifulColor of cd 1 to "light-grey" > > -vs- > > dispatch SetBeautifulColor to cd 1 with "light-grey" > > It doesn't read as nicely, but given that the trade-off can be > unpredictability I'll take what I can get. :) > > And depending on usage context, in many cases the UI event that initiates > a calling chain may be on the card in question, not requiring > out-of-message-path dispatching, making the call simpler than a property > setting: > > SetBeautifulColor "light-grey" > > For virtual objects like models, accessors can simplify things by not > requiring that they be bound to a physical object which need not otherwise > exist. The name-value-pair programming we enjoy with custom props applies > equally well with any array. But with arrays we can have deeper levels, > and are more easily savable/transportable than an object bound to a stack > file. > > -- > 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 tom at makeshyft.com Tue Apr 3 21:21:15 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 3 Apr 2018 21:21:15 -0400 Subject: v9 experience grinds to a halt. non-functioning breakpoints. Message-ID: Hi peeps, can anyone confirm with me that breakpoints don't work at all in the new LC 9? breakpoint command or line toggle.... both are ignored. Is there a new toggle somewhere? From brian at milby7.com Tue Apr 3 21:50:21 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 04 Apr 2018 01:50:21 +0000 Subject: v9 experience grinds to a halt. non-functioning breakpoints. In-Reply-To: References: Message-ID: Did a quick test on Mac/Win10 and both worked as expected on a new test stack. On Tue, Apr 3, 2018 at 8:22 PM Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi peeps, can anyone confirm with me that breakpoints don't work at all in > the new LC 9? > > breakpoint command or line toggle.... both are ignored. > > Is there a new toggle somewhere? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Tue Apr 3 21:56:57 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 3 Apr 2018 18:56:57 -0700 Subject: v9 experience grinds to a halt. non-functioning breakpoints. In-Reply-To: References: Message-ID: On 04/03/2018 06:50 PM, Brian Milby via use-livecode wrote: > Did a quick test on Mac/Win10 and both worked as expected on a new test > stack. Ditto here on linux. Whew... had me worried for a sec. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Tue Apr 3 22:11:27 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 3 Apr 2018 19:11:27 -0700 Subject: Guessing game In-Reply-To: References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> <23428fba-3911-e5b9-2389-ed56483e1015@hyperactivesw.com> Message-ID: <83b6d93f-560f-10ae-a53b-24f96fde854e@sonic.net> On 04/03/2018 12:51 AM, Mark Waddingham via use-livecode wrote: > One could imagine a similar thing being added to the arithmetic commands: > > ? add tLeft to tRight into tResult > > Would do nothing different from: > > ? put tLeft + tRight into tResult > > This would just be a different way of expressing the same thing > syntactically. (Note the 'into' form has not been added to the > arithmetic commands, and there is no binary intersect/union operator - > but perhaps both should be considered). Hmmm... and perhaps not. I find put tLeft + tRight into tResult much more intuitive and readable than add tLeft to tRight into tResult In the latter, is tRight modified or not? It's not easy to determine that from reading the code, whereas in the first form it seems obvious that neither of the lValues are modified. Also, what if you wanted to add three numbers instead of just two? add tWhiskey to tTango to tFoxtrot into tTotal Even if "to" isn't the right preposition here, replacing it with "and" or "plus" still gives weird non-natural syntax. -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Tue Apr 3 23:10:28 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Apr 2018 22:10:28 -0500 Subject: v9 experience grinds to a halt. non-functioning breakpoints. In-Reply-To: References: Message-ID: <1628ea258b8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Maybe script debug mode is turned off? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On April 3, 2018 8:52:32 PM Brian Milby via use-livecode wrote: > Did a quick test on Mac/Win10 and both worked as expected on a new test > stack. > On Tue, Apr 3, 2018 at 8:22 PM Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi peeps, can anyone confirm with me that breakpoints don't work at all in > > the new LC 9? > > > > breakpoint command or line toggle.... both are ignored. > > > > Is there a new toggle somewhere? > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 monte at appisle.net Tue Apr 3 23:15:27 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 4 Apr 2018 13:15:27 +1000 Subject: v9 experience grinds to a halt. non-functioning breakpoints. In-Reply-To: <1628ea258b8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1628ea258b8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <3903EF26-01EC-4BBA-B643-A960EEFC140E@appisle.net> > On 4 Apr 2018, at 1:10 pm, J. Landman Gay via use-livecode wrote: > > Maybe script debug mode is turned off? There are two other less obvious reasons that the breakpoints might be being ignored: - the breakpoint is in a moveStack or resizeStack handler. Note that in 9.0.1 this will extend to resizeControl also to resolve bug 21017. - the breakpoint is encountered when a modal dialog is open Cheers Monte From ambassador at fourthworld.com Tue Apr 3 23:16:36 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 3 Apr 2018 20:16:36 -0700 Subject: LC on TIOBE Message-ID: <21db3035-d6f1-0335-42bb-97ae5860fff1@fourthworld.com> LiveCode is on the TIOBE Index again for the third consecutive month: https://www.tiobe.com/tiobe-index/ I don't recall seeing this three months in a row before. This bodes well for platform growth. While it hasn't yet moved up to the top 50, with the hundreds of languages out there being anywhere in the top 100 is pretty darn good, placing it in the same category with Erlang, AppleScript, PowerShell, Scheme, Rust, and VBScript. -- 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 tom at makeshyft.com Tue Apr 3 23:22:25 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 3 Apr 2018 23:22:25 -0400 Subject: v9 experience grinds to a halt. non-functioning breakpoints. In-Reply-To: <3903EF26-01EC-4BBA-B643-A960EEFC140E@appisle.net> References: <1628ea258b8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <3903EF26-01EC-4BBA-B643-A960EEFC140E@appisle.net> Message-ID: cool.....sorry for the loud alarm.....but that was a show stopper for me. great job monte and mark....and whole team .....the engine is rock solid! On Tue, Apr 3, 2018 at 11:15 PM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On 4 Apr 2018, at 1:10 pm, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Maybe script debug mode is turned off? > > There are two other less obvious reasons that the breakpoints might be > being ignored: > > - the breakpoint is in a moveStack or resizeStack handler. Note that in > 9.0.1 this will extend to resizeControl also to resolve bug 21017. > - the breakpoint is encountered when a modal dialog is open > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Tue Apr 3 23:23:41 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 3 Apr 2018 23:23:41 -0400 Subject: LC on TIOBE In-Reply-To: <21db3035-d6f1-0335-42bb-97ae5860fff1@fourthworld.com> References: <21db3035-d6f1-0335-42bb-97ae5860fff1@fourthworld.com> Message-ID: Awesome......one day it will be the most used one in the world.... mainly because of children....but also because people will choose to do less work.. :D On Tue, Apr 3, 2018 at 11:16 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > LiveCode is on the TIOBE Index again for the third consecutive month: > > https://www.tiobe.com/tiobe-index/ > > I don't recall seeing this three months in a row before. This bodes well > for platform growth. > > While it hasn't yet moved up to the top 50, with the hundreds of languages > out there being anywhere in the top 100 is pretty darn good, placing it in > the same category with Erlang, AppleScript, PowerShell, Scheme, Rust, and > VBScript. > > -- > 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 iowahengst at mac.com Wed Apr 4 08:39:15 2018 From: iowahengst at mac.com (Randy Hengst) Date: Wed, 04 Apr 2018 07:39:15 -0500 Subject: Odd Name Resolution In-Reply-To: References: <03E44D91-BB66-4055-B132-7D2D289D1BDE@iotecdigital.com> Message-ID: Bob, This works for me when I?m on the card with the button: put "btn: Set10to15" && the hilited of button "Set10to15" This works for me on any card in the stack: put "btn: Set10to15" && the hilited of button "Set10to15" of cd "GameCardHD" The button I?m referencing is in a group on the cd "GameCardHD" Any chance you have two buttons with the same name on the card? Perhaps same name, but in different groups? I ask, because I seen similar results as you describe when I?ve done both of those things. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Apr 3, 2018, at 5:38 PM, Bob Sneidar via use-livecode wrote: > > I will try to throw one together. Note that it isn't returning an error, which it would if the defaultStack was something else, and the button or card did not exist. It's not doing that. It's returning a false value. > > Bob S > > >> On Apr 3, 2018, at 15:32 , Tom Glod via use-livecode wrote: >> >> hmmm....thats really weird ...... maybe one of the IDE stacks is being >> considered as the defaultstack.... i don't know why else the ref would not >> work.... >> >> it really is weird.... you should report it....can you post a stack? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 midwestcoastmedia.com Wed Apr 4 09:00:05 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Wed, 04 Apr 2018 13:00:05 +0000 Subject: eBook Academy error Message-ID: <20180404130005.Horde.VM7hQt5cI0hIumpELyQIw3P@ua850258.serversignin.com> I have some students working through the LiveCode academies in class and have found an error in the first lesson (previously we have encountered issues with the Parallax Effect lesson). On the Project Setup and Splash Screen, the user is instructed to play a splashscreen video by doing the following: play videoClip (specialfolderpath("desktop") & "/BitterRevenge/Video/Intro.mp4") When I go to the Dictionary to search for the term videoClip I see it was introduced in 1.0, but I have to read all the way to the end of the entry to find out this was deprecated in 8.1 (and isn't indicated at the top of the entry or with a ! in the list before selecting the entry). The dictionary entry also seems to be missing bits and pieces (I thought this was a filed bug, but couldn't find it in Bugzilla) reading unintelligible like this: ... The use of was deprecated in version 8.1 of LiveCode with new defaults for and as true on all systems apart from pre OS X 10.8. The Windows build of LiveCode no longer supports any features and setting the and will have no effect. Additionally does not include 64 bit support and therefore can not be supported on OS X 64 bit builds of LiveCode. ... I showed the student how to use a player object and execute the play player command as a workaround. Does this get filed as an Enhancement Request, email to support, or both? --Andrew Bell From paul at researchware.com Wed Apr 4 09:07:07 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 4 Apr 2018 09:07:07 -0400 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: <9e78bc9e-7819-1ecc-a59e-72a90efe8351@researchware.com> On 4/3/2018 11:35 AM, panagiotis merakos via use-livecode wrote: > @Paul > > RE the splash screen not going away, I have occasionally seen it in other > LC versions on Windows only in the past. If I remember correctly, it was > fixed once I deleted the LC Prefs. > Okay, here is a very newbie question: Where under Windows does LC store its preferences? I don't even know what the file is called. From merakosp at gmail.com Wed Apr 4 09:20:03 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 4 Apr 2018 14:20:03 +0100 Subject: [ANN] Release 9.0.0 In-Reply-To: <9e78bc9e-7819-1ecc-a59e-72a90efe8351@researchware.com> References: <9e78bc9e-7819-1ecc-a59e-72a90efe8351@researchware.com> Message-ID: @Paul The Prefs are in: C:/Users/your_user_name/AppData/Roaming/RunRev/Preferences/ folder You should see one or two files there: livecode.rev --> Prefs for LiveCode versions < 7 livecode7.rev --> Prefs for LiveCode 7, 8 and 9 Delete *both* of these files. and make sure you first quit LC, then delete the Prefs, then restart LC. @Richmond All the fixes of 8.1.10 RC1 have already been included to 9.0.0 @Richard Do you still experience slow download speed? I had no problem yesterday from my home internet connection Best, Panos -- On Wed, Apr 4, 2018 at 2:07 PM, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > On 4/3/2018 11:35 AM, panagiotis merakos via use-livecode wrote: > > @Paul > > > > RE the splash screen not going away, I have occasionally seen it in other > > LC versions on Windows only in the past. If I remember correctly, it was > > fixed once I deleted the LC Prefs. > > > > Okay, here is a very newbie question: Where under Windows does LC store > its preferences? I don't even know what the file is called. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Wed Apr 4 09:24:34 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 4 Apr 2018 14:24:34 +0100 Subject: eBook Academy error In-Reply-To: <20180404130005.Horde.VM7hQt5cI0hIumpELyQIw3P@ua850258.serversignin.com> References: <20180404130005.Horde.VM7hQt5cI0hIumpELyQIw3P@ua850258.serversignin.com> Message-ID: Hi Andrew, I suggest filing a bug report to quality.livecode.com. This report would be a good candidate for a community pull request, as it requires changes in the Dictionary. Best, Panos -- On Wed, Apr 4, 2018 at 2:00 PM, Andrew Bell via use-livecode < use-livecode at lists.runrev.com> wrote: > I have some students working through the LiveCode academies in class and > have found an error in the first lesson (previously we have encountered > issues with the Parallax Effect lesson). On the Project Setup and Splash > Screen, the user is instructed to play a splashscreen video by doing the > following: > > play videoClip (specialfolderpath("desktop") & > "/BitterRevenge/Video/Intro.mp4") > > When I go to the Dictionary to search for the term videoClip I see it was > introduced in 1.0, but I have to read all the way to the end of the entry > to find out this was deprecated in 8.1 (and isn't indicated at the top of > the entry or with a ! in the list before selecting the entry). The > dictionary entry also seems to be missing bits and pieces (I thought this > was a filed bug, but couldn't find it in Bugzilla) reading unintelligible > like this: > > ... > The use of was deprecated in version 8.1 of LiveCode with new defaults for > and as true on all systems apart from pre OS X 10.8. The Windows build of > LiveCode no longer supports any features and setting the and > > will have no effect. Additionally does not include 64 bit support and > therefore can not be supported on OS X 64 bit builds of LiveCode. > ... > > I showed the student how to use a player object and execute the play > player command as a workaround. Does this get filed as an Enhancement > Request, email to support, or both? > > --Andrew Bell > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 4 09:42:19 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 4 Apr 2018 15:42:19 +0200 Subject: tsnet on Mac doesn't follows htaccess rewrite rule Message-ID: <006701d3cc1a$c1f63330$45e29990$@kestner.de> Hello, LC 8.1.7: I have updates for one of my programs (Win & Mac) on my webserver located. Because it's a shared webserver I wanted to put my updates to AWS S3, since AWS has a better performance and a web server actually isn't a file hosting server. Now the update request of all my programs out there at my customers point to my webserver. I put a rewrite rule into my htaccess to point the update requests to AWS. That worked instantly great with my windows program, but my mac program stays at "connecting to server" and doesn't goes on downloading the update file. Obviously the Mac version of tsnet doesn't follow a htaccess rewrite rule. Can anybody confirm this? Can I differentiate a htaccess rule by the system of the client request, so that I could at least redirect all windows request to AWS and let the Mac requests stay on my Webserver as a partial workaround? Thanks for any ideas Tiemo From toolbook at kestner.de Wed Apr 4 09:51:52 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 4 Apr 2018 15:51:52 +0200 Subject: AW: tsnet on Mac doesn't follows htaccess rewrite rule In-Reply-To: <006701d3cc1a$c1f63330$45e29990$@kestner.de> References: <006701d3cc1a$c1f63330$45e29990$@kestner.de> Message-ID: <006e01d3cc1c$164a8750$42df95f0$@kestner.de> Additional question: Does anybody knows, what user-agent is being sent by "load url" and does it differs from Win to Mac, so that I could create a rewrite condition in my htaccess? Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB via use-livecode Gesendet: Mittwoch, 4. April 2018 15:42 An: LiveCode User Liste senden Cc: Tiemo Hollmann TB Betreff: tsnet on Mac doesn't follows htaccess rewrite rule Hello, LC 8.1.7: I have updates for one of my programs (Win & Mac) on my webserver located. Because it's a shared webserver I wanted to put my updates to AWS S3, since AWS has a better performance and a web server actually isn't a file hosting server. Now the update request of all my programs out there at my customers point to my webserver. I put a rewrite rule into my htaccess to point the update requests to AWS. That worked instantly great with my windows program, but my mac program stays at "connecting to server" and doesn't goes on downloading the update file. Obviously the Mac version of tsnet doesn't follow a htaccess rewrite rule. Can anybody confirm this? Can I differentiate a htaccess rule by the system of the client request, so that I could at least redirect all windows request to AWS and let the Mac requests stay on my Webserver as a partial workaround? Thanks for any ideas 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 bobsneidar at iotecdigital.com Wed Apr 4 10:43:46 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Apr 2018 14:43:46 +0000 Subject: v9 experience grinds to a halt. non-functioning breakpoints. In-Reply-To: References: Message-ID: <2BCFFCC4-AA50-4BDB-8D30-A258320EAE29@iotecdigital.com> I just had to run dev in win yesterday to debug something and the breakpoints worked fine. May be time to recreate prefs. Bob S > On Apr 3, 2018, at 18:21 , Tom Glod via use-livecode wrote: > > Hi peeps, can anyone confirm with me that breakpoints don't work at all in > the new LC 9? > > breakpoint command or line toggle.... both are ignored. > > Is there a new toggle somewhere? From bobsneidar at iotecdigital.com Wed Apr 4 10:50:23 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Apr 2018 14:50:23 +0000 Subject: Odd Name Resolution In-Reply-To: References: <03E44D91-BB66-4055-B132-7D2D289D1BDE@iotecdigital.com> Message-ID: <354BB5CE-47F0-4F65-A51F-501646B500B3@iotecdigital.com> That might be possible except I've checked for that already, and also it doesn't fit the symptoms I've already expressed. The phrase evaluates correctly if the target card is the currentcard, or if I reference the object using the full name. It only fails (actually it returns bad value) if I reference it up to the card name and that card is not the top stack. For me this is moot since I have gotten into the habit now of referencing objects using their long IDs to dispel all doubt, and to avoid other naming conflicts, like similar cards with objects with the same names. I like having apps with multiple windows, and given that, full references is definitely the way to go. Bob S > On Apr 4, 2018, at 05:39 , Randy Hengst via use-livecode wrote: > > Bob, > > This works for me when I?m on the card with the button: > put "btn: Set10to15" && the hilited of button "Set10to15" > > > This works for me on any card in the stack: > put "btn: Set10to15" && the hilited of button "Set10to15" of cd "GameCardHD" > > > The button I?m referencing is in a group on the cd "GameCardHD" > > Any chance you have two buttons with the same name on the card? Perhaps same name, but in different groups? I ask, because I seen similar results as you describe when I?ve done both of those things. > > be well, > randy > > Randy Hengst From bobsneidar at iotecdigital.com Wed Apr 4 10:52:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Apr 2018 14:52:30 +0000 Subject: tsnet on Mac doesn't follows htaccess rewrite rule In-Reply-To: <006e01d3cc1c$164a8750$42df95f0$@kestner.de> References: <006701d3cc1a$c1f63330$45e29990$@kestner.de> <006e01d3cc1c$164a8750$42df95f0$@kestner.de> Message-ID: <4C21DB79-781E-4B5F-868E-0A203E799A5C@iotecdigital.com> A user agent is being sent?? Bob S > On Apr 4, 2018, at 06:51 , Tiemo Hollmann TB via use-livecode wrote: > > Additional question: > Does anybody knows, what user-agent is being sent by "load url" and does it > differs from Win to Mac, so that I could create a rewrite condition in my > htaccess? > > Thanks > Tiemo > > -----Urspr?ngliche Nachricht----- From tom at makeshyft.com Wed Apr 4 11:02:58 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 4 Apr 2018 11:02:58 -0400 Subject: v9 experience grinds to a halt. non-functioning breakpoints. In-Reply-To: <2BCFFCC4-AA50-4BDB-8D30-A258320EAE29@iotecdigital.com> References: <2BCFFCC4-AA50-4BDB-8D30-A258320EAE29@iotecdigital.com> Message-ID: yeah bob, resetting prefs solved it for me ....apparently i had debug mod off.... which i have never turned off in my life.....maybe my 3 year old clicked it by accident....lol...she button mashes my keyb and mouse all the time. lol On Wed, Apr 4, 2018 at 10:43 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I just had to run dev in win yesterday to debug something and the > breakpoints worked fine. May be time to recreate prefs. > > Bob S > > > > On Apr 3, 2018, at 18:21 , Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi peeps, can anyone confirm with me that breakpoints don't work at all > in > > the new LC 9? > > > > breakpoint command or line toggle.... both are ignored. > > > > Is there a new toggle somewhere? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 4 11:16:23 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Apr 2018 15:16:23 +0000 Subject: v9 experience grinds to a halt. non-functioning breakpoints. In-Reply-To: References: <2BCFFCC4-AA50-4BDB-8D30-A258320EAE29@iotecdigital.com> Message-ID: That happened to me at times, and resetting prefs seemed to fix it. I also had breakpoints go out of sync, where the line the red dot was on did not break. Opening the Breakpoints tab in the SE and deleting everything there fixed that. Bob S > On Apr 4, 2018, at 08:02 , Tom Glod via use-livecode wrote: > > yeah bob, resetting prefs solved it for me ....apparently i had debug mod > off.... which i have never turned off in my life.....maybe my 3 year old > clicked it by accident....lol...she button mashes my keyb and mouse all the > time. lol From toolbook at kestner.de Wed Apr 4 11:31:31 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 4 Apr 2018 17:31:31 +0200 Subject: AW: tsnet on Mac doesn't follows htaccess rewrite rule In-Reply-To: <4C21DB79-781E-4B5F-868E-0A203E799A5C@iotecdigital.com> References: <006701d3cc1a$c1f63330$45e29990$@kestner.de> <006e01d3cc1c$164a8750$42df95f0$@kestner.de> <4C21DB79-781E-4B5F-868E-0A203E799A5C@iotecdigital.com> Message-ID: <007e01d3cc2a$027c9c50$0775d4f0$@kestner.de> Isn't? -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Bob Sneidar via use-livecode Gesendet: Mittwoch, 4. April 2018 16:53 An: How to use LiveCode Cc: Bob Sneidar Betreff: Re: tsnet on Mac doesn't follows htaccess rewrite rule A user agent is being sent?? Bob S > On Apr 4, 2018, at 06:51 , Tiemo Hollmann TB via use-livecode wrote: > > Additional question: > Does anybody knows, what user-agent is being sent by "load url" and > does it differs from Win to Mac, so that I could create a rewrite > condition in my htaccess? > > Thanks > Tiemo > > -----Urspr?ngliche Nachricht----- _______________________________________________ use-livecode mailing list use-livecode at 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 midwestcoastmedia.com Wed Apr 4 11:52:18 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Wed, 04 Apr 2018 15:52:18 +0000 Subject: eBook Academy error In-Reply-To: Message-ID: <20180404155218.Horde.ssPyu79wrA4y5P447k9dxO-@ua850258.serversignin.com> Bug 21156 for dictionary error filed. What about the outdated lesson information? --Andrew Bell - Hi Andrew, I suggest filing a bug report to quality.livecode.com. This report would be a good candidate for a community pull request, as it requires changes in the Dictionary. Best, Panos - From merakosp at gmail.com Wed Apr 4 12:00:54 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 4 Apr 2018 17:00:54 +0100 Subject: eBook Academy error In-Reply-To: <20180404155218.Horde.ssPyu79wrA4y5P447k9dxO-@ua850258.serversignin.com> References: <20180404155218.Horde.ssPyu79wrA4y5P447k9dxO-@ua850258.serversignin.com> Message-ID: Thanks Andrew. I will let the support team know about the outdated academy lesson. Kind regards, Panos -- On Wed, Apr 4, 2018 at 4:52 PM, Andrew Bell via use-livecode < use-livecode at lists.runrev.com> wrote: > Bug 21156 for dictionary error filed. What about the outdated lesson > information? > > --Andrew Bell > > - > Hi Andrew, > > I suggest filing a bug report to quality.livecode.com. This report would > be > a good candidate for a community pull request, as it requires changes in > the Dictionary. > > Best, > Panos > - > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Apr 4 12:57:08 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 04 Apr 2018 09:57:08 -0700 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <9e78bc9e-7819-1ecc-a59e-72a90efe8351@researchware.com> Message-ID: <9CBD8402-1A30-44AC-BE2D-8A3F7CC37A73@me.com> Yesterday it took me 3-4 hours to download LC 9. I?m in California. Peter Bogdanoff > On Apr 4, 2018, at 6:20 AM, panagiotis merakos via use-livecode wrote: > > @Paul > > The Prefs are in: > > C:/Users/your_user_name/AppData/Roaming/RunRev/Preferences/ folder > > You should see one or two files there: > > livecode.rev --> Prefs for LiveCode versions < 7 > livecode7.rev --> Prefs for LiveCode 7, 8 and 9 > > Delete *both* of these files. > > and make sure you first quit LC, then delete the Prefs, then restart LC. > > > @Richmond > > All the fixes of 8.1.10 RC1 have already been included to 9.0.0 > > @Richard > > Do you still experience slow download speed? I had no problem yesterday > from my home internet connection > > Best, > Panos > -- > > On Wed, Apr 4, 2018 at 2:07 PM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 4/3/2018 11:35 AM, panagiotis merakos via use-livecode wrote: >>> @Paul >>> >>> RE the splash screen not going away, I have occasionally seen it in other >>> LC versions on Windows only in the past. If I remember correctly, it was >>> fixed once I deleted the LC Prefs. >>> >> >> Okay, here is a very newbie question: Where under Windows does LC store >> its preferences? I don't even know what the file is called. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 paul at researchware.com Wed Apr 4 13:29:24 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 4 Apr 2018 13:29:24 -0400 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <9e78bc9e-7819-1ecc-a59e-72a90efe8351@researchware.com> Message-ID: <727b9433-ca81-1ca9-4280-3f0fbbcf9d26@researchware.com> So I removed all LC preferences files which included: livecode.rev livecode7.rev revPreferences.rev that were in the C:/Users/your_user_name/AppData/Roaming/RunRev/Preferences/ folder and started LC9 and the splash screen with the LC9 logo still is stuck visible and will not go away until I show LC UI elements? and find it in the Project Browser and explicitly close it. This seems to be a bug to me. This occurs under Windows 8.1 64 bit. Should I file a bug report? On 4/4/2018 9:20 AM, panagiotis merakos via use-livecode wrote: > @Paul > > The Prefs are in: > > C:/Users/your_user_name/AppData/Roaming/RunRev/Preferences/ folder > > You should see one or two files there: > > livecode.rev --> Prefs for LiveCode versions < 7 > livecode7.rev --> Prefs for LiveCode 7, 8 and 9 > > Delete *both* of these files. > > and make sure you first quit LC, then delete the Prefs, then restart LC. > > > @Richmond > > All the fixes of 8.1.10 RC1 have already been included to 9.0.0 > > @Richard > > Do you still experience slow download speed? I had no problem yesterday > from my home internet connection > > Best, > Panos > -- > > On Wed, Apr 4, 2018 at 2:07 PM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 4/3/2018 11:35 AM, panagiotis merakos via use-livecode wrote: >>> @Paul >>> >>> RE the splash screen not going away, I have occasionally seen it in other >>> LC versions on Windows only in the past. If I remember correctly, it was >>> fixed once I deleted the LC Prefs. >>> >> Okay, here is a very newbie question: Where under Windows does LC store >> its preferences? I don't even know what the file is called. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Apr 4 13:35:27 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 4 Apr 2018 10:35:27 -0700 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> @Peter Bogdanoff bogdanoff: > Yesterday it took me 3-4 hours to download LC 9. I?m in California. Good to know I'm not the only one. Thanks. @Panos: > Do you still experience slow download speed? I had no problem > yesterday from my home internet connection Thanks for asking. Yes, and it's been the darndest thing. Not even my ISP could explain it. It's been this way for more than a week, and persists this morning, even across multiple computers. I was able to find a workaround that demonstrates that it's not the livecode.com server per se: I shelled into one of my VPSes in New Jersey and used wget to download the builds I needed - each took less than a minute there. Then I copied them to my web folder, and on my local machine downloaded from that VPS - at normal speed. So to summarize what I've learned thus far: - It's not my computer: all computers here show this slow download - It's not your server: I can download from it to another computer in a different geographic region with no delay. - It's not my local network setup: Peter has the same issue, and downloading from my VPS is speedy. Given all this, my wild guess would be that this is something related to the CDN you're using (Cloudflare?), affecting only southern California, or maybe even more limited than that since Peter and I are less than about 20 miles from one another. While Cloudflare's status page shows the Los Angeles area to be "Operational", a quick search at Google turned up a few discussions about issues in my area, the most recent I stumbled across being just 22 hours ago. The bigger mystery is that this has persisted as long as it has. Most CDNs are super on top of things, and a multi-day issue is rare. At least I have a workaround for now, and if I learn anything more I'll pass it along. In the meantime, if you hear of anything with your CDN it may be helpful to share. -- 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 merakosp at gmail.com Wed Apr 4 13:51:31 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 4 Apr 2018 18:51:31 +0100 Subject: [ANN] Release 9.0.0 In-Reply-To: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> References: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> Message-ID: @Peter One more thing to try before filing a bug report: 1. Clear Prefs again 2. Open LC, you should see the revFileAssociation dialog ("LiveCode files are not currently associated with this version. Would you like to make this association?") 3. Choose "Yes" Does the splash screen close after that? BTW if you want to close this stack manually, you can try that: - type in the msg box "close the mousestack" but do NOT press Enter - place the cursor on the splash stack - press enter I am wondering if an error occurs on startup, so LC stops execution, and the line of code in the IDE startup scripts that closes this stack is never reached. @Richard Thanks for the update, I'll pass it to the team. I know we had at least another 3 users in your area that suffered from very slow download speeds. Network issues are hard to diagnose :) Best, Panos -- On Wed, Apr 4, 2018 at 6:35 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > @Peter Bogdanoff bogdanoff: > > Yesterday it took me 3-4 hours to download LC 9. I?m in California. > > Good to know I'm not the only one. Thanks. > > > @Panos: > > Do you still experience slow download speed? I had no problem > > yesterday from my home internet connection > > Thanks for asking. Yes, and it's been the darndest thing. Not even my ISP > could explain it. It's been this way for more than a week, and persists > this morning, even across multiple computers. > > I was able to find a workaround that demonstrates that it's not the > livecode.com server per se: I shelled into one of my VPSes in New Jersey > and used wget to download the builds I needed - each took less than a > minute there. Then I copied them to my web folder, and on my local machine > downloaded from that VPS - at normal speed. > > So to summarize what I've learned thus far: > > - It's not my computer: all computers here show this slow download > > - It's not your server: I can download from it to another computer > in a different geographic region with no delay. > > - It's not my local network setup: Peter has the same issue, and > downloading from my VPS is speedy. > > Given all this, my wild guess would be that this is something related to > the CDN you're using (Cloudflare?), affecting only southern California, or > maybe even more limited than that since Peter and I are less than about 20 > miles from one another. > > While Cloudflare's status page shows the Los Angeles area to be > "Operational", a quick search at Google turned up a few discussions about > issues in my area, the most recent I stumbled across being just 22 hours > ago. > > The bigger mystery is that this has persisted as long as it has. Most > CDNs are super on top of things, and a multi-day issue is rare. > > At least I have a workaround for now, and if I learn anything more I'll > pass it along. In the meantime, if you hear of anything with your CDN it > may be helpful to share. > > -- > 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 jerry at jhjensen.com Wed Apr 4 14:32:54 2018 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 4 Apr 2018 11:32:54 -0700 Subject: [ANN] Release 9.0.0 In-Reply-To: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> References: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> Message-ID: <6F5BA57A-5E58-4C51-B531-63DED589B705@jhjensen.com> > On Apr 4, 2018, at 10:35 AM, Richard Gaskin via use-livecode wrote: > > @Peter Bogdanoff bogdanoff: > > Yesterday it took me 3-4 hours to download LC 9. I?m in California. > > Good to know I'm not the only one. Thanks. > Me too in California. I don?t know how long it took, I went away and let it run after about 1/2 hour. .Jerry From rdimola at evergreeninfo.net Wed Apr 4 14:53:44 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 4 Apr 2018 14:53:44 -0400 Subject: [ANN] Release 9.0.0 In-Reply-To: <9CBD8402-1A30-44AC-BE2D-8A3F7CC37A73@me.com> References: <9e78bc9e-7819-1ecc-a59e-72a90efe8351@researchware.com> <9CBD8402-1A30-44AC-BE2D-8A3F7CC37A73@me.com> Message-ID: <00d201d3cc46$4472d630$cd588290$@net> I download all 3 platforms and release notes at the same time today and it took about 10 minutes on a 15x2 internet service. 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 Bogdanoff via use-livecode Sent: Wednesday, April 04, 2018 12:57 PM To: How to use LiveCode Cc: Peter Bogdanoff Subject: Re: [ANN] Release 9.0.0 Yesterday it took me 3-4 hours to download LC 9. I?m in California. Peter Bogdanoff From ahsoftware at sonic.net Wed Apr 4 14:57:50 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 4 Apr 2018 11:57:50 -0700 Subject: [ANN] Release 9.0.0 In-Reply-To: <6F5BA57A-5E58-4C51-B531-63DED589B705@jhjensen.com> References: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> <6F5BA57A-5E58-4C51-B531-63DED589B705@jhjensen.com> Message-ID: <00e5596a-6c84-11ef-3f54-36ad98a9014b@sonic.net> On 04/04/2018 11:32 AM, Jerry Jensen via use-livecode wrote: > >> On Apr 4, 2018, at 10:35 AM, Richard Gaskin via use-livecode wrote: >> >> @Peter Bogdanoff bogdanoff: >>> Yesterday it took me 3-4 hours to download LC 9. I?m in California. >> >> Good to know I'm not the only one. Thanks. >> > Me too in California. I don?t know how long it took, I went away and let it run after about 1/2 hour. Here in California it "only" took 20 minutes. But that's still way too long for the installer. There's no indication on the download site as to how big the file is, so there's no expectation before clicking on how long it might take to download. -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Wed Apr 4 15:54:40 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 4 Apr 2018 15:54:40 -0400 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> Message-ID: On 4/4/2018 1:51 PM, panagiotis merakos via use-livecode wrote: > @Peter > One more thing to try before filing a bug report: > > 1. Clear Prefs again > 2. Open LC, you should see the revFileAssociation dialog ("LiveCode files > are not currently associated with this version. Would you like to make this > association?") > 3. Choose "Yes" > > Does the splash screen close after that? > > BTW if you want to close this stack manually, you can try that: > > - type in the msg box "close the mousestack" but do NOT press Enter > - place the cursor on the splash stack > - press enter > > I am wondering if an error occurs on startup, so LC stops execution, and > the line of code in the IDE startup scripts that closes this stack is never > reached. > I cleared the livecode7.rev prefs file (the only one I now have), restated Windows 8.1 (64bit). Launched LC9.0.0 and responded "Yes" to the revFileAssociation (which I had not previously been doing as I have been working in 8.1.9 recently). No luck. The Spash remains and I have the grey backdrop on. When I open Options in LC9 and click Reset to Default, the backdrop clears, but the splash remains. I have to close it by the message box trick. If I then quit LC9 and launch it again, the slash goes away appropriately, but despite having reset the Options to Default, the gray backdrop appears every time I launch LC9. If I launch another version of LC (say version 6.7.11) and click Yes to the file associate and then quit LC 6.7.11 and then launch LC9 and do not say Yes to the file association, then the splash and grey backdrop remain. If I launch LC9 and say Yes to the file associate and then close the splash manually and quit and launch again, the splash closes as it should. However, if I change the file associate I am back to a always on splash window in LC9. So, summary: Launching LC9 and answering No to the file associate leaves the splash screen visible even when exiting and restarting LC9 multiple time as long as you answer No to the file association. Launching LC9 and answering Yes to the file associate leaves the splash screen visible, but exiting and restarting LC9 resulting in the splash going away normally after LC9 is up and running. Again all under Windows 8.1 (64) I have no idea why I am now getting the grey backdrop. From merakosp at gmail.com Wed Apr 4 16:09:41 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 4 Apr 2018 21:09:41 +0100 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> Message-ID: @Paul ok this might be useful (the fact that clicking "yes" in the associations dialog causes the splash to hide as expected in subsequent launches) You are getting the gray backdrop as this is the default after clearing the Prefs. You can change that by unchecking "View"-> "Backdrop" in the LC menubar Best, Panos -- On Wed, Apr 4, 2018 at 8:54 PM, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > On 4/4/2018 1:51 PM, panagiotis merakos via use-livecode wrote: > > @Peter > > One more thing to try before filing a bug report: > > > > 1. Clear Prefs again > > 2. Open LC, you should see the revFileAssociation dialog ("LiveCode files > > are not currently associated with this version. Would you like to make > this > > association?") > > 3. Choose "Yes" > > > > Does the splash screen close after that? > > > > BTW if you want to close this stack manually, you can try that: > > > > - type in the msg box "close the mousestack" but do NOT press Enter > > - place the cursor on the splash stack > > - press enter > > > > I am wondering if an error occurs on startup, so LC stops execution, and > > the line of code in the IDE startup scripts that closes this stack is > never > > reached. > > > > I cleared the livecode7.rev prefs file (the only one I now have), > restated Windows 8.1 (64bit). Launched LC9.0.0 and responded "Yes" to > the revFileAssociation (which I had not previously been doing as I have > been working in 8.1.9 recently). No luck. The Spash remains and I have > the grey backdrop on. When I open Options in LC9 and click Reset to > Default, the backdrop clears, but the splash remains. I have to close it > by the message box trick. If I then quit LC9 and launch it again, the > slash goes away appropriately, but despite having reset the Options to > Default, the gray backdrop appears every time I launch LC9. > > If I launch another version of LC (say version 6.7.11) and click Yes to > the file associate and then quit LC 6.7.11 and then launch LC9 and do > not say Yes to the file association, then the splash and grey backdrop > remain. > > If I launch LC9 and say Yes to the file associate and then close the > splash manually and quit and launch again, the splash closes as it > should. However, if I change the file associate I am back to a always on > splash window in LC9. > > So, summary: > Launching LC9 and answering No to the file associate leaves the splash > screen visible even when exiting and restarting LC9 multiple time as > long as you answer No to the file association. > Launching LC9 and answering Yes to the file associate leaves the splash > screen visible, but exiting and restarting LC9 resulting in the splash > going away normally after LC9 is up and running. > Again all under Windows 8.1 (64) > I have no idea why I am now getting the grey backdrop. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Wed Apr 4 16:23:17 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 4 Apr 2018 16:23:17 -0400 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> Message-ID: <43f09e02-94a9-1bed-1841-4b265427e03f@researchware.com> Okay, it has been so long since i used the backdrop, I forgot where to turn it off! Backdrop all okay now. And, it is still the case that if I associate LC files to another version (like 6.7.11 or 8.1.9) and then launch LC9 the Splash stays on if I say no to the association request. Thank you for you help. On 4/4/2018 4:09 PM, panagiotis merakos via use-livecode wrote: > @Paul > > ok this might be useful (the fact that clicking "yes" in the associations > dialog causes the splash to hide as expected in subsequent launches) > > You are getting the gray backdrop as this is the default after clearing the > Prefs. You can change that by unchecking "View"-> "Backdrop" in the LC > menubar > > Best, > Panos > -- > > > > On Wed, Apr 4, 2018 at 8:54 PM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 4/4/2018 1:51 PM, panagiotis merakos via use-livecode wrote: >>> @Peter >>> One more thing to try before filing a bug report: >>> >>> 1. Clear Prefs again >>> 2. Open LC, you should see the revFileAssociation dialog ("LiveCode files >>> are not currently associated with this version. Would you like to make >> this >>> association?") >>> 3. Choose "Yes" >>> >>> Does the splash screen close after that? >>> >>> BTW if you want to close this stack manually, you can try that: >>> >>> - type in the msg box "close the mousestack" but do NOT press Enter >>> - place the cursor on the splash stack >>> - press enter >>> >>> I am wondering if an error occurs on startup, so LC stops execution, and >>> the line of code in the IDE startup scripts that closes this stack is >> never >>> reached. >>> >> I cleared the livecode7.rev prefs file (the only one I now have), >> restated Windows 8.1 (64bit). Launched LC9.0.0 and responded "Yes" to >> the revFileAssociation (which I had not previously been doing as I have >> been working in 8.1.9 recently). No luck. The Spash remains and I have >> the grey backdrop on. When I open Options in LC9 and click Reset to >> Default, the backdrop clears, but the splash remains. I have to close it >> by the message box trick. If I then quit LC9 and launch it again, the >> slash goes away appropriately, but despite having reset the Options to >> Default, the gray backdrop appears every time I launch LC9. >> >> If I launch another version of LC (say version 6.7.11) and click Yes to >> the file associate and then quit LC 6.7.11 and then launch LC9 and do >> not say Yes to the file association, then the splash and grey backdrop >> remain. >> >> If I launch LC9 and say Yes to the file associate and then close the >> splash manually and quit and launch again, the splash closes as it >> should. However, if I change the file associate I am back to a always on >> splash window in LC9. >> >> So, summary: >> Launching LC9 and answering No to the file associate leaves the splash >> screen visible even when exiting and restarting LC9 multiple time as >> long as you answer No to the file association. >> Launching LC9 and answering Yes to the file associate leaves the splash >> screen visible, but exiting and restarting LC9 resulting in the splash >> going away normally after LC9 is up and running. >> Again all under Windows 8.1 (64) >> I have no idea why I am now getting the grey backdrop. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Apr 4 17:21:26 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 04 Apr 2018 22:21:26 +0100 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone Message-ID: Another deployment PITA. I?ve got a standalone which is cross-platform and works well on Mac and PC. Unfortunately I?m having a lot of trouble with making a viable Windows Installer, using the Inno system. All goes well with the installation process until the user checks ?launch? for the app at the end of the installation process. He/she then gets and error message (this is on both Windows 7 and Windows 10): > C:/Program Files\Myprogram\Myprogram.exe > > CreateProcess failed: code 740 > The requested operation requires elevation I have no idea even conceptually of what elevation means, and I have no idea how to correct this situation. Since the installed program will run perfectly from an installed desktop shortcut, I would even be content if I could suppress the ?launch? option in the installer, but I don?t know how to do that either - there is nothing obvious in the Inno documentation. Can anyone who is more Windows-savvy than me (that?s most of the population) please help? TIA Graham From livfoss at mac.com Wed Apr 4 17:37:48 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 04 Apr 2018 22:37:48 +0100 Subject: Zygodact queries Message-ID: <022F95CC-3826-443A-927C-D622083FC618@mac.com> Hi Jacque It?s a long time since I wrote to you about Zygodact, but I?m using it quite happily to support Art DiVito?s PointPlots app, which I know you contributed to some time ago. Zygodact works well, but there are a couple of small issues. I realise this is all ancient history to you, but I wonder if you have any comments: 1. When the user pastes in the user name (their email address) and the licence code generated by Zygodact, the paste isn?t ?plain text? - I suppose it?s whatever size and style the email which we sent to the user generates. The result is that often, especially on Windows for some reason, the code looks large and lumpy and somewhat overflows the frame of the dialog box one pastes into. 2. On the Mac version, when one pastes in the code, sometimes the ?register? button doesn?t activate (sometimes it does, but I can?t understand the difference between the two cases). If one presses for example the right-arrow key, then it does. Of course it?s trivial to explain this to users, but can you think why this happens? I suppose I can solve (1) by making sure our emails - which come via FastSpring - are actually plain text. Would you recommend this? Be assured that there are no show-stoppers here, but I?d like to see your comments, if any. Thanks in advance Graham From livfoss at mac.com Wed Apr 4 17:42:26 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 04 Apr 2018 22:42:26 +0100 Subject: [OT, maybe] Another deployment issue - uninstallation (Windows) Message-ID: I find that sometimes when I try to delete a standalone installed on a Windows machine, the Control Panel reports that it couldn?t get rid of everything. If one looks in the \Programs directory, sure enough an old version of the app is still there, and there may be old install files in the \Downloads folder too. What I guess is needed is an actual Uninstall program invoked via the Control Panel - I think LC itself has this. Can anyone say how this can be accomplished? TIA yet again Graham From jacque at hyperactivesw.com Wed Apr 4 18:00:53 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 4 Apr 2018 17:00:53 -0500 Subject: Zygodact queries In-Reply-To: <022F95CC-3826-443A-927C-D622083FC618@mac.com> References: <022F95CC-3826-443A-927C-D622083FC618@mac.com> Message-ID: <01880dd9-a367-d462-5951-52ca4f455514@hyperactivesw.com> Hi Graham, nice to hear from you. The first issue with the malformed text is related to a thread on the mailing list where a bug was discussed; plain text copied to the clipboard would generate styled versions all by itself, and that's what gets pasted. Brian Milby wrote a bug fix for that which appears in LC 9.0 so if you recompile with that engine it might solve the problem. It does rely on the copied text being plain text only, so your idea to distribute serial keys as plain-text mail is probably a good one. The inactive Register button is a known issue. The activation of the button depends on a keydown message so if the user pastes the key, no message is sent. Hitting any key -- arrow keys, space key, etc. -- is the workaround for now. I haven't quite figured out why it sometimes works on my Mac and not on some other machines; it may be a Windows issue but I haven't nailed it down yet. It doesn't happen to everyone. Hope that sheds some light, Jacque On 4/4/18 4:37 PM, Graham Samuel via use-livecode wrote: > Hi Jacque > > It?s a long time since I wrote to you about Zygodact, but I?m using it quite happily to support Art DiVito?s PointPlots app, which I know you contributed to some time ago. > > Zygodact works well, but there are a couple of small issues. I realise this is all ancient history to you, but I wonder if you have any comments: > > 1. When the user pastes in the user name (their email address) and the licence code generated by Zygodact, the paste isn?t ?plain text? - I suppose it?s whatever size and style the email which we sent to the user generates. The result is that often, especially on Windows for some reason, the code looks large and lumpy and somewhat overflows the frame of the dialog box one pastes into. > > 2. On the Mac version, when one pastes in the code, sometimes the ?register? button doesn?t activate (sometimes it does, but I can?t understand the difference between the two cases). If one presses for example the right-arrow key, then it does. Of course it?s trivial to explain this to users, but can you think why this happens? > > I suppose I can solve (1) by making sure our emails - which come via FastSpring - are actually plain text. Would you recommend this? > > Be assured that there are no show-stoppers here, but I?d like to see your comments, if any. > > Thanks in advance > > 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 > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Apr 4 18:51:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Apr 2018 22:51:41 +0000 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: References: Message-ID: <1C26ADA3-C056-4F81-BF62-4A1C1C5C2499@iotecdigital.com> Elevation is a security feature of Windows since Vista I believe. Even though you log in with what you might think is an administrator account, the actual session user does NOT have Administrative rights. Anything that user does only has standard user rights. UAC (user access control) must be invoked to elevate the current process rights. For a non-administrator a dialog will popup asking for a name and password. For an administrator, it will simply present a Yes/No dialog. If you get the properties of the Windows executable, there is a Compatibility tab. You may be able to uncheck Run this program as an administrator (but then you won't be able to do anything requiring administrator access) or you can try running in Windows XP Compatibility mode (if Windows 10 even supports that anymore.) You will have to do this before building the installer, or else there may be a feature in the Inno packager which allows you to set this. Bob S > On Apr 4, 2018, at 14:21 , Graham Samuel via use-livecode wrote: > > Another deployment PITA. > > I?ve got a standalone which is cross-platform and works well on Mac and PC. Unfortunately I?m having a lot of trouble with making a viable Windows Installer, using the Inno system. All goes well with the installation process until the user checks ?launch? for the app at the end of the installation process. He/she then gets and error message (this is on both Windows 7 and Windows 10): > >> C:/Program Files\Myprogram\Myprogram.exe >> >> CreateProcess failed: code 740 >> The requested operation requires elevation > > I have no idea even conceptually of what elevation means, and I have no idea how to correct this situation. From jacque at hyperactivesw.com Wed Apr 4 18:54:11 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 4 Apr 2018 17:54:11 -0500 Subject: Zygodact queries In-Reply-To: <01880dd9-a367-d462-5951-52ca4f455514@hyperactivesw.com> References: <022F95CC-3826-443A-927C-D622083FC618@mac.com> <01880dd9-a367-d462-5951-52ca4f455514@hyperactivesw.com> Message-ID: <68d36171-ead8-eec7-4dbe-3e2a691c5e5e@hyperactivesw.com> I'm not quite sure how this ended up on the list, but it's info for anyone who might be interested. ;) On 4/4/18 5:00 PM, J. Landman Gay via use-livecode wrote: > Hi Graham, nice to hear from you. > > The first issue with the malformed text is related to a thread on the > mailing list where a bug was discussed; plain text copied to the > clipboard would generate styled versions all by itself, and that's what > gets pasted. Brian Milby wrote a bug fix for that which appears in LC > 9.0 so if you recompile with that engine it might solve the problem. It > does rely on the copied text being plain text only, so your idea to > distribute serial keys as plain-text mail is probably a good one. > > The inactive Register button is a known issue. The activation of the > button depends on a keydown message so if the user pastes the key, no > message is sent. Hitting any key -- arrow keys, space key, etc. -- is > the workaround for now. I haven't quite figured out why it sometimes > works on my Mac and not on some other machines; it may be a Windows > issue but I haven't nailed it down yet. It doesn't happen to everyone. > > Hope that sheds some light, > > Jacque > > On 4/4/18 4:37 PM, Graham Samuel via use-livecode wrote: >> Hi Jacque >> >> It?s a long time since I wrote to you about Zygodact, but I?m using it >> quite happily to support Art DiVito?s PointPlots app, which I know you >> contributed to some time ago. >> >> Zygodact works well, but there are a couple of small issues. I realise >> this is all ancient history to you, but I wonder if you have any >> comments: >> >> 1. When the user pastes in the user name (their email address) and the >> licence code generated by Zygodact, the paste isn?t ?plain text? - I >> suppose it?s whatever size and style the email which we sent to the >> user generates. The result is that often, especially on Windows for >> some reason, the code looks large and lumpy and somewhat overflows the >> frame of the dialog box one pastes into. >> >> 2. On the Mac version, when one pastes in the code, sometimes the >> ?register? button doesn?t activate (sometimes it does, but I can?t >> understand the difference between the two cases). If one presses for >> example the right-arrow key, then it does. Of course it?s trivial to >> explain this to users, but can you think why this happens? >> >> I suppose I can solve (1) by making sure our emails - which come via >> FastSpring - are actually plain text. Would you recommend this? >> >> Be assured that there are no show-stoppers here, but I?d like to see >> your comments, if any. >> >> Thanks in advance >> >> 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 >> > > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Apr 4 19:02:05 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Apr 2018 23:02:05 +0000 Subject: [OT, maybe] Another deployment issue - uninstallation (Windows) In-Reply-To: References: Message-ID: <1B97A4F5-ADB4-4554-B338-72A5422C3705@iotecdigital.com> You are on the right track. An installer system registers everything that needs to be removed during an uninstall with the Windows system. I myself am not familiar with the different ways of doing this, but I know sometimes there is an Uninstaller application installed with the app. In these cases you must use the Uninstaller app in leiu of the Programs and Features method. I know that if you delete an application folder or registry entries and an uninstaller is expecting them to be there, you may get those kinds of errors. About the only thing you can do is reinstall the software, then use the uninstaller to get rid of it. If that fails, the installer is somehow misconfigured. Cerain Anti-Virus products come to mind. Bob S > On Apr 4, 2018, at 14:42 , Graham Samuel via use-livecode wrote: > > I find that sometimes when I try to delete a standalone installed on a Windows machine, the Control Panel reports that it couldn?t get rid of everything. If one looks in the \Programs directory, sure enough an old version of the app is still there, and there may be old install files in the \Downloads folder too. What I guess is needed is an actual Uninstall program invoked via the Control Panel - I think LC itself has this. > > Can anyone say how this can be accomplished? > > TIA yet again > > 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 From waprothero at gmail.com Wed Apr 4 20:19:45 2018 From: waprothero at gmail.com (William Prothero) Date: Wed, 4 Apr 2018 17:19:45 -0700 Subject: Standalone Settings Frustration In-Reply-To: References: Message-ID: <9C1BBF46-EB30-4F24-8D1E-E96C33597CC6@gmail.com> Folks: I am on livecode 9.0.0 app, Mac 10.13.3. I have a splash stack and several stacks that it loads. I have one stack I originally named ?MAP Display?. I was having troubles making a standalone, as the file seemed to not be found. So, I figured maybe it doesn?t like blanks in the stack name. So, I changed the stack name in as many places as I could find, to ?MAPDisplay?. When I do: ?put the short name of this stack?, I get ?MAPDisplay?, no blanks. However, in the stackfiles of the splash app, the name with the blank in it keeps returning. Very frustrating. Somehow the splash stack is keeping and refusing to part with the name with the blank. This is the line containing the blank. MAP Display,resources/datastacks/MAPDisplay.livecode I?ve done ?set the stackfiles of stack mySplashStackName to ?? and added back in the files. Yet, the name keeps reappearing with the blank. What the heck? Bill William A. Prothero http://earthlearningsolutions.org From waprothero at gmail.com Wed Apr 4 20:22:43 2018 From: waprothero at gmail.com (William Prothero) Date: Wed, 4 Apr 2018 17:22:43 -0700 Subject: Standalone Settings Frustration In-Reply-To: <9C1BBF46-EB30-4F24-8D1E-E96C33597CC6@gmail.com> References: <9C1BBF46-EB30-4F24-8D1E-E96C33597CC6@gmail.com> Message-ID: Never mind: I fiddled enough so that the splash stack finally let go of the old name with the blank line. Bill > On Apr 4, 2018, at 5:19 PM, William Prothero via use-livecode wrote: > > Folks: > I am on livecode 9.0.0 app, Mac 10.13.3. I have a splash stack and several stacks that it loads. > > I have one stack I originally named ?MAP Display?. I was having troubles making a standalone, as the file seemed to not be found. So, I figured maybe it doesn?t like blanks in the stack name. So, I changed the stack name in as many places as I could find, to ?MAPDisplay?. When I do: ?put the short name of this stack?, I get ?MAPDisplay?, no blanks. However, in the stackfiles of the splash app, the name with the blank in it keeps returning. Very frustrating. Somehow the splash stack is keeping and refusing to part with the name with the blank. > > This is the line containing the blank. > MAP Display,resources/datastacks/MAPDisplay.livecode > > I?ve done ?set the stackfiles of stack mySplashStackName to ?? and added back in the files. Yet, the name keeps reappearing with the blank. > > What the heck? > > Bill > > > > William A. Prothero > http://earthlearningsolutions.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 bonnmike at gmail.com Wed Apr 4 20:32:11 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 4 Apr 2018 18:32:11 -0600 Subject: Standalone Settings Frustration In-Reply-To: References: <9C1BBF46-EB30-4F24-8D1E-E96C33597CC6@gmail.com> Message-ID: Just a guess, but if it happens again, I'd look at "the filename of stack and if its not what you want, change it. ( I can think of another few possible ways that it might be forced to change, but this would probably be the easiest) On Wed, Apr 4, 2018 at 6:22 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Never mind: > I fiddled enough so that the splash stack finally let go of the old name > with the blank line. > Bill > > > > On Apr 4, 2018, at 5:19 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Folks: > > I am on livecode 9.0.0 app, Mac 10.13.3. I have a splash stack and > several stacks that it loads. > > > > I have one stack I originally named ?MAP Display?. I was having troubles > making a standalone, as the file seemed to not be found. So, I figured > maybe it doesn?t like blanks in the stack name. So, I changed the stack > name in as many places as I could find, to ?MAPDisplay?. When I do: ?put > the short name of this stack?, I get ?MAPDisplay?, no blanks. However, in > the stackfiles of the splash app, the name with the blank in it keeps > returning. Very frustrating. Somehow the splash stack is keeping and > refusing to part with the name with the blank. > > > > This is the line containing the blank. > > MAP Display,resources/datastacks/MAPDisplay.livecode > > > > I?ve done ?set the stackfiles of stack mySplashStackName to ?? and added > back in the files. Yet, the name keeps reappearing with the blank. > > > > What the heck? > > > > Bill > > > > > > > > William A. Prothero > > http://earthlearningsolutions.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Wed Apr 4 21:13:45 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 4 Apr 2018 18:13:45 -0700 Subject: v9 experience grinds to a halt. non-functioning breakpoints. In-Reply-To: <3903EF26-01EC-4BBA-B643-A960EEFC140E@appisle.net> References: <1628ea258b8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <3903EF26-01EC-4BBA-B643-A960EEFC140E@appisle.net> Message-ID: <0c2cb096-87f4-0121-835e-a9f230b0ce16@sonic.net> On 04/03/2018 08:15 PM, Monte Goulding via use-livecode wrote: > There are two other less obvious reasons that the breakpoints might be being ignored: > > - the breakpoint is in a moveStack or resizeStack handler. Note that in 9.0.1 this will extend to resizeControl also to resolve bug 21017. > - the breakpoint is encountered when a modal dialog is open Meanwhile, I'm happy to report that PowerDebug has no problems with debugging breakpoints in moveStack or resizeStack handlers. And successfully deals with breakpoints in modal dialogs as well. http://powerdebug.ahsoftware.net http://ahsoftware.net/PowerTools/BuyPowerDebug.lc -- Mark Wieder ahsoftware at gmail.com From waprothero at gmail.com Wed Apr 4 21:18:06 2018 From: waprothero at gmail.com (William Prothero) Date: Wed, 4 Apr 2018 18:18:06 -0700 Subject: Standalone Settings Frustration In-Reply-To: References: <9C1BBF46-EB30-4F24-8D1E-E96C33597CC6@gmail.com> Message-ID: What I did was delete the line from the ?stacks? list in the Standalone settings panel, closed the panel, then added it back. The filename was ok. Anyway, I got it fixed, but it was frustrating. Bill > On Apr 4, 2018, at 5:32 PM, Mike Bonner via use-livecode wrote: > > Just a guess, but if it happens again, I'd look at "the filename of stack > and if its not what you want, change it. ( I can think of > another few possible ways that it might be forced to change, but this would > probably be the easiest) > > On Wed, Apr 4, 2018 at 6:22 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Never mind: >> I fiddled enough so that the splash stack finally let go of the old name >> with the blank line. >> Bill >> >> >>> On Apr 4, 2018, at 5:19 PM, William Prothero via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Folks: >>> I am on livecode 9.0.0 app, Mac 10.13.3. I have a splash stack and >> several stacks that it loads. >>> >>> I have one stack I originally named ?MAP Display?. I was having troubles >> making a standalone, as the file seemed to not be found. So, I figured >> maybe it doesn?t like blanks in the stack name. So, I changed the stack >> name in as many places as I could find, to ?MAPDisplay?. When I do: ?put >> the short name of this stack?, I get ?MAPDisplay?, no blanks. However, in >> the stackfiles of the splash app, the name with the blank in it keeps >> returning. Very frustrating. Somehow the splash stack is keeping and >> refusing to part with the name with the blank. >>> >>> This is the line containing the blank. >>> MAP Display,resources/datastacks/MAPDisplay.livecode >>> >>> I?ve done ?set the stackfiles of stack mySplashStackName to ?? and added >> back in the files. Yet, the name keeps reappearing with the blank. >>> >>> What the heck? >>> >>> Bill >>> >>> >>> >>> William A. Prothero >>> http://earthlearningsolutions.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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Thu Apr 5 05:16:53 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 5 Apr 2018 11:16:53 +0200 Subject: AW: tsnet on Mac doesn't follows htaccess rewrite rule In-Reply-To: <4C21DB79-781E-4B5F-868E-0A203E799A5C@iotecdigital.com> References: <006701d3cc1a$c1f63330$45e29990$@kestner.de> <006e01d3cc1c$164a8750$42df95f0$@kestner.de> <4C21DB79-781E-4B5F-868E-0A203E799A5C@iotecdigital.com> Message-ID: <006b01d3ccbe$d76fd780$864f8680$@kestner.de> FYI: As far, as a short test showed, LiveCode is sending two different user agents (if you don't overwrite the http headers). User agent: "LiveCode (Win32)" and "LiveCode (MacOS)". So probably I will be at least able to redirect my Windows requests to another host. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Bob Sneidar via use-livecode Gesendet: Mittwoch, 4. April 2018 16:53 An: How to use LiveCode Cc: Bob Sneidar Betreff: Re: tsnet on Mac doesn't follows htaccess rewrite rule A user agent is being sent?? Bob S > On Apr 4, 2018, at 06:51 , Tiemo Hollmann TB via use-livecode wrote: > > Additional question: > Does anybody knows, what user-agent is being sent by "load url" and > does it differs from Win to Mac, so that I could create a rewrite > condition in my htaccess? > > Thanks > Tiemo > > -----Urspr?ngliche Nachricht----- _______________________________________________ use-livecode mailing list use-livecode at 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 Thu Apr 5 08:20:31 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 05 Apr 2018 13:20:31 +0100 Subject: Zygodact queries In-Reply-To: <68d36171-ead8-eec7-4dbe-3e2a691c5e5e@hyperactivesw.com> References: <022F95CC-3826-443A-927C-D622083FC618@mac.com> <01880dd9-a367-d462-5951-52ca4f455514@hyperactivesw.com> <68d36171-ead8-eec7-4dbe-3e2a691c5e5e@hyperactivesw.com> Message-ID: Sorry, I think it ended up on the list because I used the email address Jacque uses just for this list, as I copied it direct from a contribution by her. Still don?t quite understand though! As you say, it?s good info anyway. Graham > On 4 Apr 2018, at 23:54, J. Landman Gay via use-livecode wrote: > > I'm not quite sure how this ended up on the list, but it's info for anyone who might be interested. ;) > > On 4/4/18 5:00 PM, J. Landman Gay via use-livecode wrote: >> Hi Graham, nice to hear from you. >> The first issue with the malformed text is related to a thread on the mailing list where a bug was discussed; plain text copied to the clipboard would generate styled versions all by itself, and that's what gets pasted. Brian Milby wrote a bug fix for that which appears in LC 9.0 so if you recompile with that engine it might solve the problem. It does rely on the copied text being plain text only, so your idea to distribute serial keys as plain-text mail is probably a good one. >> The inactive Register button is a known issue. The activation of the button depends on a keydown message so if the user pastes the key, no message is sent. Hitting any key -- arrow keys, space key, etc. -- is the workaround for now. I haven't quite figured out why it sometimes works on my Mac and not on some other machines; it may be a Windows issue but I haven't nailed it down yet. It doesn't happen to everyone. >> Hope that sheds some light, >> Jacque >> On 4/4/18 4:37 PM, Graham Samuel via use-livecode wrote: >>> Hi Jacque >>> >>> It?s a long time since I wrote to you about Zygodact, but I?m using it quite happily to support Art DiVito?s PointPlots app, which I know you contributed to some time ago. >>> >>> Zygodact works well, but there are a couple of small issues. I realise this is all ancient history to you, but I wonder if you have any comments: >>> >>> 1. When the user pastes in the user name (their email address) and the licence code generated by Zygodact, the paste isn?t ?plain text? - I suppose it?s whatever size and style the email which we sent to the user generates. The result is that often, especially on Windows for some reason, the code looks large and lumpy and somewhat overflows the frame of the dialog box one pastes into. >>> >>> 2. On the Mac version, when one pastes in the code, sometimes the ?register? button doesn?t activate (sometimes it does, but I can?t understand the difference between the two cases). If one presses for example the right-arrow key, then it does. Of course it?s trivial to explain this to users, but can you think why this happens? >>> >>> I suppose I can solve (1) by making sure our emails - which come via FastSpring - are actually plain text. Would you recommend this? >>> >>> Be assured that there are no show-stoppers here, but I?d like to see your comments, if any. >>> >>> Thanks in advance >>> >>> 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 >>> > > > -- > 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 tom at makeshyft.com Thu Apr 5 09:27:11 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 5 Apr 2018 09:27:11 -0400 Subject: commandine standalone using 100% of core on doing what? Message-ID: Hi folks, I wanted to benchmark the httpd library and decided to create a command line server application. I run it using "-ui" command ... and I use the "on Startup" message to print out a welcome message" thats all I have so far. But my executable process is using up 100% of the core ..... continuously. what is it doing ? what am I doing wrong? v9 .0 on windows 7. Thanks, Tom From andrew at midwestcoastmedia.com Thu Apr 5 09:33:13 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Thu, 05 Apr 2018 13:33:13 +0000 Subject: eBook Academy error In-Reply-To: Message-ID: <20180405133313.Horde.1CaUPmKjM35TwGrTZDNRAbD@ua850258.serversignin.com> Well I took this as a chance to dip my toes in the GitHub waters. I created an account, signed my contributor agreement with LiveCode, and linked my GitHub to LiveCode. I made a commit (but no pull request) on docs/dictionary/object/videoClip.lcdoc and it was pretty painless ;) Can anyone familiar with the process check me work? --Andrew Bell > > Hi Andrew, > > I suggest filing a bug report to quality.livecode.com. This report would be > a good candidate for a community pull request, as it requires changes in > the Dictionary. > > Best, > Panos > -- > From merakosp at gmail.com Thu Apr 5 09:54:50 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 5 Apr 2018 14:54:50 +0100 Subject: eBook Academy error In-Reply-To: <20180405133313.Horde.1CaUPmKjM35TwGrTZDNRAbD@ua850258.serversignin.com> References: <20180405133313.Horde.1CaUPmKjM35TwGrTZDNRAbD@ua850258.serversignin.com> Message-ID: Hi Andrew, You might find that useful: https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md Best, Panos -- On Thu, Apr 5, 2018 at 2:33 PM, Andrew Bell via use-livecode < use-livecode at lists.runrev.com> wrote: > Well I took this as a chance to dip my toes in the GitHub waters. I > created an account, signed my contributor agreement with LiveCode, and > linked my GitHub to LiveCode. > > I made a commit (but no pull request) on docs/dictionary/object/videoClip.lcdoc > and it was pretty painless ;) > Can anyone familiar with the process check me work? > > --Andrew Bell > > > >> Hi Andrew, >> >> I suggest filing a bug report to quality.livecode.com. This report would >> be >> a good candidate for a community pull request, as it requires changes in >> the Dictionary. >> >> Best, >> Panos >> -- >> >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Apr 5 09:58:25 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 05 Apr 2018 14:58:25 +0100 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: <1C26ADA3-C056-4F81-BF62-4A1C1C5C2499@iotecdigital.com> References: <1C26ADA3-C056-4F81-BF62-4A1C1C5C2499@iotecdigital.com> Message-ID: <9F0898A1-5AA6-4940-950A-D7FF20B2BEEC@mac.com> Hmm, thanks for the discussion. I see that it is not a straightforward issue, and I am probably forced to get my hands dirty in the world of Windows. I am aching for a very simple set of step-by-step instructions, but of course that is not the job of anyone on this list! BTW, I am also asking in the Inno Setup forum, and have had some replies, but despite my references to LiveCode, it appears that nobody there can believe I?m not using Visual Basic or C++. There is dark talk of manifests, about which I know nothing, but maybe I can piece together an idiot?s solution. I must say I am astonished that I am the only person seeing this (apparently). I was seeking almost the simplest possible installer for an LC Windows standalone. The only thing that isn?t simple is that as it?s a splashstack design, there has to be a folder with the other components (stacks and the like) rather than one simple .exe file in the \Programs folder. Probably not relevant. I feel I am still bumping around in the dark. When I die, you will find ?LiveCode deployment? written on my heart. Graham > On 4 Apr 2018, at 23:51, Bob Sneidar via use-livecode wrote: > > Elevation is a security feature of Windows since Vista I believe. Even though you log in with what you might think is an administrator account, the actual session user does NOT have Administrative rights. Anything that user does only has standard user rights. UAC (user access control) must be invoked to elevate the current process rights. For a non-administrator a dialog will popup asking for a name and password. For an administrator, it will simply present a Yes/No dialog. > > If you get the properties of the Windows executable, there is a Compatibility tab. You may be able to uncheck Run this program as an administrator (but then you won't be able to do anything requiring administrator access) or you can try running in Windows XP Compatibility mode (if Windows 10 even supports that anymore.) You will have to do this before building the installer, or else there may be a feature in the Inno packager which allows you to set this. > > Bob S > > >> On Apr 4, 2018, at 14:21 , Graham Samuel via use-livecode wrote: >> >> Another deployment PITA. >> >> I?ve got a standalone which is cross-platform and works well on Mac and PC. Unfortunately I?m having a lot of trouble with making a viable Windows Installer, using the Inno system. All goes well with the installation process until the user checks ?launch? for the app at the end of the installation process. He/she then gets and error message (this is on both Windows 7 and Windows 10): >> >>> C:/Program Files\Myprogram\Myprogram.exe >>> >>> CreateProcess failed: code 740 >>> The requested operation requires elevation >> >> I have no idea even conceptually of what elevation means, and I have no idea how to correct this situation. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 5 10:35:38 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 Apr 2018 14:35:38 +0000 Subject: tsnet on Mac doesn't follows htaccess rewrite rule In-Reply-To: <006b01d3ccbe$d76fd780$864f8680$@kestner.de> References: <006701d3cc1a$c1f63330$45e29990$@kestner.de> <006e01d3cc1c$164a8750$42df95f0$@kestner.de> <4C21DB79-781E-4B5F-868E-0A203E799A5C@iotecdigital.com> <006b01d3ccbe$d76fd780$864f8680$@kestner.de> Message-ID: <287F092D-5843-40FA-94E7-0508843A9F40@iotecdigital.com> oic user agent means something other than what I was thinking. For me an agent is a local listening process. Bob S > On Apr 5, 2018, at 02:16 , Tiemo Hollmann TB via use-livecode wrote: > > FYI: As far, as a short test showed, LiveCode is sending two different user agents (if you don't overwrite the http headers). User agent: "LiveCode (Win32)" and "LiveCode (MacOS)". So probably I will be at least able to redirect my Windows requests to another host. > Tiemo From bobsneidar at iotecdigital.com Thu Apr 5 10:46:08 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 Apr 2018 14:46:08 +0000 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: <9F0898A1-5AA6-4940-950A-D7FF20B2BEEC@mac.com> References: <1C26ADA3-C056-4F81-BF62-4A1C1C5C2499@iotecdigital.com> <9F0898A1-5AA6-4940-950A-D7FF20B2BEEC@mac.com> Message-ID: <1A5DC56B-4E2C-4548-AF81-BFC4C4D0025D@iotecdigital.com> Just poking around, a manifest is like a config file for the app. As I mentioned, your installer maker solution may have a way to configure one. If not, apparently there are solutions that allow you to post process your executable to include one. Also worth considering, in the Windows tab of the Standalone Application Settings, at the bottom of the window is a popup menu for UAC settings. Unless your app will require Administrative Access to the file system, I would set this to Same as Invoker. Apparently this wil create some kind of manifest. Also, the app will run with the same permissions as the caller. This should prevent Windows from thinking the app must be run as an administrator. Bob S > On Apr 5, 2018, at 06:58 , Graham Samuel via use-livecode wrote: > > Hmm, thanks for the discussion. I see that it is not a straightforward issue, and I am probably forced to get my hands dirty in the world of Windows. I am aching for a very simple set of step-by-step instructions, but of course that is not the job of anyone on this list! BTW, I am also asking in the Inno Setup forum, and have had some replies, but despite my references to LiveCode, it appears that nobody there can believe I?m not using Visual Basic or C++. There is dark talk of manifests, about which I know nothing, but maybe I can piece together an idiot?s solution. From livfoss at mac.com Thu Apr 5 10:53:41 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 05 Apr 2018 15:53:41 +0100 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: <1A5DC56B-4E2C-4548-AF81-BFC4C4D0025D@iotecdigital.com> References: <1C26ADA3-C056-4F81-BF62-4A1C1C5C2499@iotecdigital.com> <9F0898A1-5AA6-4940-950A-D7FF20B2BEEC@mac.com> <1A5DC56B-4E2C-4548-AF81-BFC4C4D0025D@iotecdigital.com> Message-ID: <873DC954-59E2-4D6A-8B69-039F9D08F8E9@mac.com> Woo! That looks promising! Will try it - have to go babysitting now, but soon enough? Thanks Graham > On 5 Apr 2018, at 15:46, Bob Sneidar via use-livecode wrote: > > Just poking around, a manifest is like a config file for the app. As I mentioned, your installer maker solution may have a way to configure one. If not, apparently there are solutions that allow you to post process your executable to include one. > > Also worth considering, in the Windows tab of the Standalone Application Settings, at the bottom of the window is a popup menu for UAC settings. Unless your app will require Administrative Access to the file system, I would set this to Same as Invoker. Apparently this wil create some kind of manifest. Also, the app will run with the same permissions as the caller. This should prevent Windows from thinking the app must be run as an administrator. > > Bob S > > >> On Apr 5, 2018, at 06:58 , Graham Samuel via use-livecode wrote: >> >> Hmm, thanks for the discussion. I see that it is not a straightforward issue, and I am probably forced to get my hands dirty in the world of Windows. I am aching for a very simple set of step-by-step instructions, but of course that is not the job of anyone on this list! BTW, I am also asking in the Inno Setup forum, and have had some replies, but despite my references to LiveCode, it appears that nobody there can believe I?m not using Visual Basic or C++. There is dark talk of manifests, about which I know nothing, but maybe I can piece together an idiot?s solution. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iphonelagi at gmail.com Thu Apr 5 11:09:42 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Thu, 5 Apr 2018 16:09:42 +0100 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: Hi I downloaded it in about 2 minutes - at 40MBits/s download . Which prompted me to check the speed. When I upgraded and paid extra it was 190MBits/s, so they are cheating me - need to find time to phone the ~@"?$ up and listen to some Chamber Musaq Lagi On 3 April 2018 at 14:01, panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > Dear list members, > > LiveCode 9.0.0 is out, read all about it here: > > https://us7.campaign-archive.com/?u=8404b344b09103bf489dd8a9 > a&id=c574bcb9b3 > > Have fun! > The LiveCode Team > -- > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 5 11:46:29 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 5 Apr 2018 08:46:29 -0700 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: References: Message-ID: Tom Glod wrote: > Hi folks, I wanted to benchmark the httpd library and decided to > create a command line server application. > > I run it using "-ui" command ... > > and I use the "on Startup" message to print out a welcome message" > > thats all I have so far. > > But my executable process is using up 100% of the core ..... > continuously. > > what is it doing ? what am I doing wrong? > > v9 .0 on windows 7. I don't know what that library is doing, but I use standalones in nearly every server system I make so I know it's not the standalone itself eating up CPU. If the lib hasn't been altered, you should see the same behavior no matter where it's running, even on the desktop. If you don't perhaps something else is in play You may try running the standalone with strace to see the system calls it's making: strace ./mystandalone -- 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 tom at makeshyft.com Thu Apr 5 11:57:42 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 5 Apr 2018 11:57:42 -0400 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: References: Message-ID: hi richard... the standalone opens fine when i don't use the -UI parameter..... it opens up the blank stack and does nothing....as its supposed to since there is no code anywhere doing anything. no library was modified...or even used. its a blank stack. the -ui flag puts it into the loop. I guess I don't have to use it. but still wondering what its doing. On Thu, Apr 5, 2018 at 11:46 AM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Tom Glod wrote: > > > Hi folks, I wanted to benchmark the httpd library and decided to > > create a command line server application. > > > > I run it using "-ui" command ... > > > > and I use the "on Startup" message to print out a welcome message" > > > > thats all I have so far. > > > > But my executable process is using up 100% of the core ..... > > continuously. > > > > what is it doing ? what am I doing wrong? > > > > v9 .0 on windows 7. > > I don't know what that library is doing, but I use standalones in nearly > every server system I make so I know it's not the standalone itself eating > up CPU. > > If the lib hasn't been altered, you should see the same behavior no matter > where it's running, even on the desktop. If you don't perhaps something > else is in play > > You may try running the standalone with strace to see the system calls > it's making: > > strace ./mystandalone > > -- > 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 mark at canelasoftware.com Thu Apr 5 12:09:41 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Thu, 5 Apr 2018 09:09:41 -0700 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: It is true that you paid for a 190Mbit connection. Not all servers will be able to saturate that size of a pipe. The amount a service can pump out will be based on many factors like level of network activity at that moment, health of the hops between you and the server, general network traffic load at the time, ?. Most ISPs sell faster connections so that more people can consume more at the same time on your end of the network. Thus, you could have probably downloaded 3 LiveCode installers at the same time with 40Mbit speeds. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com > On Apr 5, 2018, at 8:09 AM, Lagi Pittas via use-livecode wrote: > > Hi > > I downloaded it in about 2 minutes - at 40MBits/s download . > > Which prompted me to check the speed. When I upgraded and paid extra it > was 190MBits/s, so they are cheating me - need to find time to phone the > ~@"?$ up and listen to some Chamber Musaq > > Lagi > > On 3 April 2018 at 14:01, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Dear list members, >> >> LiveCode 9.0.0 is out, read all about it here: >> >> https://us7.campaign-archive.com/?u=8404b344b09103bf489dd8a9 >> a&id=c574bcb9b3 >> >> Have fun! >> The LiveCode Team >> -- >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 ahsoftware at sonic.net Thu Apr 5 12:16:22 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 5 Apr 2018 09:16:22 -0700 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: References: Message-ID: On 04/05/2018 08:46 AM, Richard Gaskin via use-livecode wrote: > You may try running the standalone with strace to see the system calls > it's making: > > ? strace ./mystandalone > I don't think strace is on Windows. I'd recommend Process Lasso for seeing what's going on. https://bitsum.com/ But if you need deep system tracing, you probably want Dr. Memory. http://drmemory.org/docs/page_drstrace.html http://drmemory.org/ -- Mark Wieder ahsoftware at gmail.com From iphonelagi at gmail.com Thu Apr 5 12:21:29 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Thu, 5 Apr 2018 17:21:29 +0100 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: Hi Mark, I didn't think I was going to get it coming down in 20 seconds - only that what I have paid for and was getting for at least 3 months has gone down by from 190 to 40 MBits. It does mean though I can download from multiple sites at the same time without slowing down at the higher speed - and dropbox will work faster on big files. Regards lagi On 5 April 2018 at 17:09, Mark Talluto via use-livecode < use-livecode at lists.runrev.com> wrote: > It is true that you paid for a 190Mbit connection. Not all servers will be > able to saturate that size of a pipe. The amount a service can pump out > will be based on many factors like level of network activity at that > moment, health of the hops between you and the server, general network > traffic load at the time, ?. > > Most ISPs sell faster connections so that more people can consume more at > the same time on your end of the network. Thus, you could have probably > downloaded 3 LiveCode installers at the same time with 40Mbit speeds. > > Best regards, > > Mark Talluto > livecloud.io > nursenotes.net > canelasoftware.com > > > > On Apr 5, 2018, at 8:09 AM, Lagi Pittas via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi > > > > I downloaded it in about 2 minutes - at 40MBits/s download . > > > > Which prompted me to check the speed. When I upgraded and paid extra it > > was 190MBits/s, so they are cheating me - need to find time to phone > the > > ~@"?$ up and listen to some Chamber Musaq > > > > Lagi > > > > On 3 April 2018 at 14:01, panagiotis merakos via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Dear list members, > >> > >> LiveCode 9.0.0 is out, read all about it here: > >> > >> https://us7.campaign-archive.com/?u=8404b344b09103bf489dd8a9 > >> a&id=c574bcb9b3 > >> > >> Have fun! > >> The LiveCode Team > >> -- > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 tom at makeshyft.com Thu Apr 5 12:41:17 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 5 Apr 2018 12:41:17 -0400 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: References: Message-ID: thanks for those tools Mark..... I just tested it again on a plain blank stack ..... make standalone .....run with -ui flag .....and its using going full tilt....maybe you can reproduce it? On Thu, Apr 5, 2018 at 12:16 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 04/05/2018 08:46 AM, Richard Gaskin via use-livecode wrote: > > You may try running the standalone with strace to see the system calls >> it's making: >> >> strace ./mystandalone >> >> > I don't think strace is on Windows. I'd recommend Process Lasso for seeing > what's going on. > https://bitsum.com/ > > But if you need deep system tracing, you probably want Dr. Memory. > > http://drmemory.org/docs/page_drstrace.html > http://drmemory.org/ > > -- > 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 bobsneidar at iotecdigital.com Thu Apr 5 12:56:38 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 Apr 2018 16:56:38 +0000 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: <95F0612F-DABD-4E33-8476-74493B6CE20F@iotecdigital.com> An internet speed test is the only reliable way to determine your actual ISP bandwidth at any given moment, and that only after making sure your local area network is not actively downloading or uploading anything, or at least anything significant. Throughput from a source can only tell you how fast you can get data from that particular site at that particular time, which you aready know. Bob S > On Apr 5, 2018, at 09:21 , Lagi Pittas via use-livecode wrote: > > Hi Mark, > > I didn't think I was going to get it coming down in 20 seconds - only that > what I have paid for and was getting for at least 3 months has gone down by > from 190 to 40 MBits. > > It does mean though I can download from multiple sites at the same time > without slowing down at the higher speed - and dropbox will work faster on > big files. > > Regards lagi From ambassador at fourthworld.com Thu Apr 5 13:27:55 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 5 Apr 2018 10:27:55 -0700 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: References: Message-ID: Tom Glod wrote: > hi richard... the standalone opens fine when i don't use the -UI > parameter..... it opens up the blank stack and does nothing....as its > supposed to since there is no code anywhere doing anything. no library > was modified...or even used. If you're not using any libraries how is the httpd invoked? > its a blank stack. > > the -ui flag puts it into the loop. I guess I don't have to use it. Depends what you're doing. If this will be a server it can be helpful to save CPU and RAM by not loading UI stuff that'll never be used. Well crafted server OSes don't even have a GUI at all, so on those not running a standalone without -ui will likely trigger an error as it looks for graphics libs not present. > but still wondering what its doing. I just build a standalone here in v9 under Ubuntu 14.04 and ran with -ui; not even enough CPU consumption to show up in top. strace showed the usual things (more than half of it loading fonts that are almost never used in faceless apps and CGIs), but there was one oddity I don't recall seeing before, toward the very end: ... lstat64("/usr/lib/jvm/java-6-openjdk-i386/bin/javac", {st_mode=S_IFREG|0755, st_size=38604, ...}) = 0 stat64("/usr/lib/jvm/java-6-openjdk-i386/bin/javac", {st_mode=S_IFREG|0755, st_size=38604, ...}) = 0 lstat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 gettimeofday({1522948176, 179743}, {420, 0}) = 0 ... Why would a standalone bother trying to stat JVM? I don't think that's related to your CPU issue, but odd just the same. -- 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 tom at makeshyft.com Thu Apr 5 13:43:02 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 5 Apr 2018 13:43:02 -0400 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: References: Message-ID: it was my goal to benchmark httpd ..but didn't get that far since it maxed out the cpu and didn't let up...then i took out httpd......still did that...and thats how i got to testing an entirely blank new stack. must be a windows thing..... i will be running it on digital ocean ubuntu...so i',m not that concerned about a windows problem...but i would still like to get to the bottom of it....will have to look into the tracing tools. haven't had time today. On Thu, Apr 5, 2018 at 1:27 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Tom Glod wrote: > > > hi richard... the standalone opens fine when i don't use the -UI > > parameter..... it opens up the blank stack and does nothing....as its > > supposed to since there is no code anywhere doing anything. no library > > was modified...or even used. > > If you're not using any libraries how is the httpd invoked? > > > > its a blank stack. > > > > the -ui flag puts it into the loop. I guess I don't have to use it. > > Depends what you're doing. If this will be a server it can be helpful to > save CPU and RAM by not loading UI stuff that'll never be used. > > Well crafted server OSes don't even have a GUI at all, so on those not > running a standalone without -ui will likely trigger an error as it looks > for graphics libs not present. > > > > but still wondering what its doing. > > I just build a standalone here in v9 under Ubuntu 14.04 and ran with -ui; > not even enough CPU consumption to show up in top. > > strace showed the usual things (more than half of it loading fonts that > are almost never used in faceless apps and CGIs), but there was one oddity > I don't recall seeing before, toward the very end: > > ... > lstat64("/usr/lib/jvm/java-6-openjdk-i386/bin/javac", > {st_mode=S_IFREG|0755, st_size=38604, ...}) = 0 > stat64("/usr/lib/jvm/java-6-openjdk-i386/bin/javac", > {st_mode=S_IFREG|0755, st_size=38604, ...}) = 0 > lstat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, > st_size=4096, ...}) = 0 > lstat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, > st_size=4096, ...}) = 0 > stat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, > st_size=4096, ...}) = 0 > gettimeofday({1522948176, 179743}, {420, 0}) = 0 > ... > > Why would a standalone bother trying to stat JVM? > > I don't think that's related to your CPU issue, but odd just the same. > > > -- > 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 tom at makeshyft.com Thu Apr 5 13:58:31 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 5 Apr 2018 13:58:31 -0400 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: References: Message-ID: What are the chances I will get similar performance using a stack and httpd to process http requests ..... as i would using lc server ...... if the performance is similar, i feel more confident building using this form ..... i'm not producing HTML code ..... just passing encrypted arrays back and forth ..... as well as sending & receiving small small files. that way i don't have to even run apache ..... just nginx and the services, On Thu, Apr 5, 2018 at 1:43 PM, Tom Glod wrote: > it was my goal to benchmark httpd ..but didn't get that far since it maxed > out the cpu and didn't let up...then i took out httpd......still did > that...and thats how i got to testing an entirely blank new stack. > > must be a windows thing..... i will be running it on digital ocean > ubuntu...so i',m not that concerned about a windows problem...but i would > still like to get to the bottom of it....will have to look into the tracing > tools. haven't had time today. > > On Thu, Apr 5, 2018 at 1:27 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Tom Glod wrote: >> >> > hi richard... the standalone opens fine when i don't use the -UI >> > parameter..... it opens up the blank stack and does nothing....as its >> > supposed to since there is no code anywhere doing anything. no library >> > was modified...or even used. >> >> If you're not using any libraries how is the httpd invoked? >> >> >> > its a blank stack. >> > >> > the -ui flag puts it into the loop. I guess I don't have to use it. >> >> Depends what you're doing. If this will be a server it can be helpful to >> save CPU and RAM by not loading UI stuff that'll never be used. >> >> Well crafted server OSes don't even have a GUI at all, so on those not >> running a standalone without -ui will likely trigger an error as it looks >> for graphics libs not present. >> >> >> > but still wondering what its doing. >> >> I just build a standalone here in v9 under Ubuntu 14.04 and ran with -ui; >> not even enough CPU consumption to show up in top. >> >> strace showed the usual things (more than half of it loading fonts that >> are almost never used in faceless apps and CGIs), but there was one oddity >> I don't recall seeing before, toward the very end: >> >> ... >> lstat64("/usr/lib/jvm/java-6-openjdk-i386/bin/javac", >> {st_mode=S_IFREG|0755, st_size=38604, ...}) = 0 >> stat64("/usr/lib/jvm/java-6-openjdk-i386/bin/javac", >> {st_mode=S_IFREG|0755, st_size=38604, ...}) = 0 >> lstat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, >> st_size=4096, ...}) = 0 >> lstat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, >> st_size=4096, ...}) = 0 >> stat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, >> st_size=4096, ...}) = 0 >> gettimeofday({1522948176, 179743}, {420, 0}) = 0 >> ... >> >> Why would a standalone bother trying to stat JVM? >> >> I don't think that's related to your CPU issue, but odd just the same. >> >> >> -- >> 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 Thu Apr 5 15:20:53 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 5 Apr 2018 12:20:53 -0700 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: References: Message-ID: Mark Wieder wrote: > On 04/05/2018 08:46 AM, Richard Gaskin via use-livecode wrote: > >> You may try running the standalone with strace to see the system >> calls it's making: >> >> strace ./mystandalone > > I don't think strace is on Windows. I'd recommend Process Lasso for > seeing what's going on. > https://bitsum.com/ > > But if you need deep system tracing, you probably want Dr. Memory. > > http://drmemory.org/docs/page_drstrace.html > http://drmemory.org/ How do people get a day's work done with taking advantage of the Ubuntu shell Microsoft now provides for Win10 users? :) -- 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 Thu Apr 5 15:12:46 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 5 Apr 2018 12:12:46 -0700 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: References: Message-ID: Tom Glod wrote: > What are the chances I will get similar performance using a stack and > httpd to process http requests ..... as i would using lc server ...... > if the performance is similar, i feel more confident building using > this form ..... i'm not producing HTML code ..... just passing > encrypted arrays back and forth ..... as well as sending & receiving > small small files. > > that way i don't have to even run apache ..... just nginx and the > services Quite good, I'd say: http://lists.runrev.com/pipermail/use-livecode/2016-March/225068.html http://lists.runrev.com/pipermail/use-livecode/2016-March/225081.html http://lists.runrev.com/pipermail/use-livecode/2016-March/225141.html http://lists.runrev.com/pipermail/use-livecode/2016-March/225147.html Replacing Apache with NginX will boost performance in many areas, and hooking in any persistent process behind it will always beat a CGI, such as LiveCode Server, which launches, runs, and dies with each request. -- 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 tom at makeshyft.com Thu Apr 5 15:44:56 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 5 Apr 2018 15:44:56 -0400 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: References: Message-ID: great news for me ....thank you. on top of that I can run 1 of these services on each core listening to a different port. thanks for the links to the benchmarks. On Thu, Apr 5, 2018 at 3:12 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Tom Glod wrote: > > > What are the chances I will get similar performance using a stack and > > httpd to process http requests ..... as i would using lc server ...... > > if the performance is similar, i feel more confident building using > > this form ..... i'm not producing HTML code ..... just passing > > encrypted arrays back and forth ..... as well as sending & receiving > > small small files. > > > > that way i don't have to even run apache ..... just nginx and the > > services > > Quite good, I'd say: > > http://lists.runrev.com/pipermail/use-livecode/2016-March/225068.html > http://lists.runrev.com/pipermail/use-livecode/2016-March/225081.html > http://lists.runrev.com/pipermail/use-livecode/2016-March/225141.html > http://lists.runrev.com/pipermail/use-livecode/2016-March/225147.html > > Replacing Apache with NginX will boost performance in many areas, and > hooking in any persistent process behind it will always beat a CGI, such as > LiveCode Server, which launches, runs, and dies with each request. > > > -- > 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 richmondmathewson at gmail.com Thu Apr 5 15:49:06 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 5 Apr 2018 22:49:06 +0300 Subject: [ANN] Release 9.0.0 In-Reply-To: References: Message-ID: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> Over 'here' in "naughty" Bulgaria where I have the cheapest internet package available I found that LC 9.0 for Linux took 3 minutes to download . . . and that was absolutely fine. Ookla says that my download rate is 10.78 Mbps and my upload rate is 6.28 Mbps, which is super because I don't understand what those magic numbers mean. Richmond. On 5/4/2018 7:09 pm, Mark Talluto via use-livecode wrote: > It is true that you paid for a 190Mbit connection. Not all servers will be able to saturate that size of a pipe. The amount a service can pump out will be based on many factors like level of network activity at that moment, health of the hops between you and the server, general network traffic load at the time, ?. > > Most ISPs sell faster connections so that more people can consume more at the same time on your end of the network. Thus, you could have probably downloaded 3 LiveCode installers at the same time with 40Mbit speeds. > > Best regards, > > Mark Talluto > livecloud.io > nursenotes.net > canelasoftware.com > > >> On Apr 5, 2018, at 8:09 AM, Lagi Pittas via use-livecode wrote: >> >> Hi >> >> I downloaded it in about 2 minutes - at 40MBits/s download . >> >> Which prompted me to check the speed. When I upgraded and paid extra it >> was 190MBits/s, so they are cheating me - need to find time to phone the >> ~@"?$ up and listen to some Chamber Musaq >> >> Lagi >> >> On 3 April 2018 at 14:01, panagiotis merakos via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Dear list members, >>> >>> LiveCode 9.0.0 is out, read all about it here: >>> >>> https://us7.campaign-archive.com/?u=8404b344b09103bf489dd8a9 >>> a&id=c574bcb9b3 >>> >>> Have fun! >>> The LiveCode Team >>> -- >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Thu Apr 5 17:19:14 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 5 Apr 2018 14:19:14 -0700 Subject: Guessing game In-Reply-To: References: Message-ID: <246c5c64-6498-e49d-4565-3a4154dde941@fourthworld.com> Yes, for the purposes it was designed for (stopping the triggering of system messages) the "lock messages" command is very useful. The problem with getProp and setProp is that those triggers occur in response to *custom* properties, not system properties. As originally implemented (and as remains since) if you use libraries or other components which may lock messages, the effects on getProp and setProp can be unknowable in advance, and difficult to pin down when issues occur from scripts that depend on those messages but sometimes they're not sent. Mark Waddingham reviewed this a while back and offered the view that custom property triggers should follow the convention of custom handlers being immune to "lock messages". But there's apparently a challenge there with avoiding recursion which makes it unlikely getProp and setProp will be revised any time soon to be immune to lockMessages. If you work in teams sufficiently disciplined and communicative that any use of "lock messages" is well accounted for with regard to property triggers, and restrict use of any third-party components to those with open code that's been carefully scanned for "lock messages" and "lockMessages", I suppose this anomaly isn't much of an issue. It wasn't for me: I got bit only once, moved back to getter/setter accessors, and moved on; problem solved. :) -- Richard Gaskin Fourth World Systems David Bovill wrote: > Yes - thanks for pointing that out. So far I've found the behaviour of > lockmessages to be actually useful rather than an issue with > getprop/setprop - seems well designed to me. > > The place where the syntax really shines is with functions calls rather > than commands - dispatch is quite natural for that. Say you want the model > data of a stack "My Project" - the syntax: > > put the project_Data of stack "My Project" into pData > > > is much more elegant and comprehensible than any way to call a function. > this is also nice: > > put the project_Data ["pretty colour"] of stack "My Project" into >> defaultColour > > > > On 3 April 2018 at 18:05, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> David Bovill wrote: >> >> > The use-case I had was to replace send syntax with the more elegant >> > set the ... of object to syntax. >> >> While the getProp and setProp handlers would seem to lend themselves to a >> lot of useful object binding opportunities, they require caution: they're >> treated by the engine as system messages, and as such are not immune to the >> effects of lockMessages the way custom handlers are. >> >> Systems depending on getProp and setProp will need to monitor lockMessages >> carefully to insure critical triggers are received as expected. >> >> Using getter and setter accessor handlers avoids that concern, with a >> stylistic difference that isn't much more verbose: >> >> set the BeautifulColor of cd 1 to "light-grey" >> >> -vs- >> >> dispatch SetBeautifulColor to cd 1 with "light-grey" >> >> It doesn't read as nicely, but given that the trade-off can be >> unpredictability I'll take what I can get. :) >> >> And depending on usage context, in many cases the UI event that initiates >> a calling chain may be on the card in question, not requiring >> out-of-message-path dispatching, making the call simpler than a property >> setting: >> >> SetBeautifulColor "light-grey" >> >> For virtual objects like models, accessors can simplify things by not >> requiring that they be bound to a physical object which need not otherwise >> exist. The name-value-pair programming we enjoy with custom props applies >> equally well with any array. But with arrays we can have deeper levels, >> and are more easily savable/transportable than an object bound to a stack >> file. >> >> -- >> 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 david.bovill at gmail.com Thu Apr 5 18:49:10 2018 From: david.bovill at gmail.com (David Bovill) Date: Thu, 05 Apr 2018 22:49:10 +0000 Subject: Guessing game In-Reply-To: <246c5c64-6498-e49d-4565-3a4154dde941@fourthworld.com> References: <246c5c64-6498-e49d-4565-3a4154dde941@fourthworld.com> Message-ID: I guess I see your perspective. For me it?s totally the right and natural thing. It?s automatically reset at the end if the handler. Personally I?d go the other way and say that if the lock messages were set command calls trapped by anything above in the hierarchy should also not get executed. I mean if you lock messages you lock the messages right :) On Thu, 5 Apr 2018 at 22:19, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Yes, for the purposes it was designed for (stopping the triggering of > system messages) the "lock messages" command is very useful. > > The problem with getProp and setProp is that those triggers occur in > response to *custom* properties, not system properties. > > As originally implemented (and as remains since) if you use libraries or > other components which may lock messages, the effects on getProp and > setProp can be unknowable in advance, and difficult to pin down when > issues occur from scripts that depend on those messages but sometimes > they're not sent. > > Mark Waddingham reviewed this a while back and offered the view that > custom property triggers should follow the convention of custom handlers > being immune to "lock messages". > > But there's apparently a challenge there with avoiding recursion which > makes it unlikely getProp and setProp will be revised any time soon to > be immune to lockMessages. > > If you work in teams sufficiently disciplined and communicative that any > use of "lock messages" is well accounted for with regard to property > triggers, and restrict use of any third-party components to those with > open code that's been carefully scanned for "lock messages" and > "lockMessages", I suppose this anomaly isn't much of an issue. > > It wasn't for me: I got bit only once, moved back to getter/setter > accessors, and moved on; problem solved. :) > > -- > Richard Gaskin > Fourth World Systems > > > David Bovill wrote: > > Yes - thanks for pointing that out. So far I've found the behaviour of > > lockmessages to be actually useful rather than an issue with > > getprop/setprop - seems well designed to me. > > > > The place where the syntax really shines is with functions calls rather > > than commands - dispatch is quite natural for that. Say you want the > model > > data of a stack "My Project" - the syntax: > > > > put the project_Data of stack "My Project" into pData > > > > > > is much more elegant and comprehensible than any way to call a function. > > this is also nice: > > > > put the project_Data ["pretty colour"] of stack "My Project" into > >> defaultColour > > > > > > > > On 3 April 2018 at 18:05, Richard Gaskin via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> David Bovill wrote: > >> > >> > The use-case I had was to replace send syntax with the more elegant > >> > set the ... of object to syntax. > >> > >> While the getProp and setProp handlers would seem to lend themselves to > a > >> lot of useful object binding opportunities, they require caution: > they're > >> treated by the engine as system messages, and as such are not immune to > the > >> effects of lockMessages the way custom handlers are. > >> > >> Systems depending on getProp and setProp will need to monitor > lockMessages > >> carefully to insure critical triggers are received as expected. > >> > >> Using getter and setter accessor handlers avoids that concern, with a > >> stylistic difference that isn't much more verbose: > >> > >> set the BeautifulColor of cd 1 to "light-grey" > >> > >> -vs- > >> > >> dispatch SetBeautifulColor to cd 1 with "light-grey" > >> > >> It doesn't read as nicely, but given that the trade-off can be > >> unpredictability I'll take what I can get. :) > >> > >> And depending on usage context, in many cases the UI event that > initiates > >> a calling chain may be on the card in question, not requiring > >> out-of-message-path dispatching, making the call simpler than a property > >> setting: > >> > >> SetBeautifulColor "light-grey" > >> > >> For virtual objects like models, accessors can simplify things by not > >> requiring that they be bound to a physical object which need not > otherwise > >> exist. The name-value-pair programming we enjoy with custom props > applies > >> equally well with any array. But with arrays we can have deeper levels, > >> and are more easily savable/transportable than an object bound to a > stack > >> file. > >> > >> -- > >> 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 lists at mangomultimedia.com Thu Apr 5 22:26:45 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 5 Apr 2018 21:26:45 -0500 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: References: Message-ID: On Wed, Apr 4, 2018 at 4:21 PM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > > I?ve got a standalone which is cross-platform and works well on Mac and > PC. Unfortunately I?m having a lot of trouble with making a viable Windows > Installer, using the Inno system. All goes well with the installation > process until the user checks ?launch? for the app at the end of the > installation process. He/she then gets and error message (this is on both > Windows 7 and Windows 10): > > > C:/Program Files\Myprogram\Myprogram.exe > > > > CreateProcess failed: code 740 > > The requested operation requires elevation > Have you tried adding the following configuration option to your .iss file? PrivilegesRequired=admin If not then give it a try. -- Trevor DeVore ScreenSteps www.screensteps.com From brian at milby7.com Thu Apr 5 23:32:26 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 06 Apr 2018 03:32:26 +0000 Subject: Guessing game In-Reply-To: <246c5c64-6498-e49d-4565-3a4154dde941@fourthworld.com> References: <246c5c64-6498-e49d-4565-3a4154dde941@fourthworld.com> Message-ID: cREVGeneral is an example of where recursion would be a problem. In the common library there are getProp and setProp handlers that depend on lock messages. The handlers intercept the message and in some cases need to lock messages to get the system property before continuing (so a pass would not work). On Thu, Apr 5, 2018 at 5:19 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Yes, for the purposes it was designed for (stopping the triggering of > system messages) the "lock messages" command is very useful. > > The problem with getProp and setProp is that those triggers occur in > response to *custom* properties, not system properties. > > As originally implemented (and as remains since) if you use libraries or > other components which may lock messages, the effects on getProp and > setProp can be unknowable in advance, and difficult to pin down when > issues occur from scripts that depend on those messages but sometimes > they're not sent. > > Mark Waddingham reviewed this a while back and offered the view that > custom property triggers should follow the convention of custom handlers > being immune to "lock messages". > > But there's apparently a challenge there with avoiding recursion which > makes it unlikely getProp and setProp will be revised any time soon to > be immune to lockMessages. > > If you work in teams sufficiently disciplined and communicative that any > use of "lock messages" is well accounted for with regard to property > triggers, and restrict use of any third-party components to those with > open code that's been carefully scanned for "lock messages" and > "lockMessages", I suppose this anomaly isn't much of an issue. > > It wasn't for me: I got bit only once, moved back to getter/setter > accessors, and moved on; problem solved. :) > > -- > Richard Gaskin > Fourth World Systems > > > David Bovill wrote: > > Yes - thanks for pointing that out. So far I've found the behaviour of > > lockmessages to be actually useful rather than an issue with > > getprop/setprop - seems well designed to me. > > > > The place where the syntax really shines is with functions calls rather > > than commands - dispatch is quite natural for that. Say you want the > model > > data of a stack "My Project" - the syntax: > > > > put the project_Data of stack "My Project" into pData > > > > > > is much more elegant and comprehensible than any way to call a function. > > this is also nice: > > > > put the project_Data ["pretty colour"] of stack "My Project" into > >> defaultColour > > > > > > > > On 3 April 2018 at 18:05, Richard Gaskin via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> David Bovill wrote: > >> > >> > The use-case I had was to replace send syntax with the more elegant > >> > set the ... of object to syntax. > >> > >> While the getProp and setProp handlers would seem to lend themselves to > a > >> lot of useful object binding opportunities, they require caution: > they're > >> treated by the engine as system messages, and as such are not immune to > the > >> effects of lockMessages the way custom handlers are. > >> > >> Systems depending on getProp and setProp will need to monitor > lockMessages > >> carefully to insure critical triggers are received as expected. > >> > >> Using getter and setter accessor handlers avoids that concern, with a > >> stylistic difference that isn't much more verbose: > >> > >> set the BeautifulColor of cd 1 to "light-grey" > >> > >> -vs- > >> > >> dispatch SetBeautifulColor to cd 1 with "light-grey" > >> > >> It doesn't read as nicely, but given that the trade-off can be > >> unpredictability I'll take what I can get. :) > >> > >> And depending on usage context, in many cases the UI event that > initiates > >> a calling chain may be on the card in question, not requiring > >> out-of-message-path dispatching, making the call simpler than a property > >> setting: > >> > >> SetBeautifulColor "light-grey" > >> > >> For virtual objects like models, accessors can simplify things by not > >> requiring that they be bound to a physical object which need not > otherwise > >> exist. The name-value-pair programming we enjoy with custom props > applies > >> equally well with any array. But with arrays we can have deeper levels, > >> and are more easily savable/transportable than an object bound to a > stack > >> file. > >> > >> -- > >> 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 jaguayo at telur.es Fri Apr 6 03:47:44 2018 From: jaguayo at telur.es (JosebaTELUR) Date: Fri, 6 Apr 2018 09:47:44 +0200 Subject: Livecode 9.0.0 (Problem Saving??) In-Reply-To: References: Message-ID: <4767556F-239D-4180-8AFF-05DC6C325802@telur.es> Hello: I work with a stack with 18.000 cards (86 MB). When I do ?Save?, it takes 12 minutes to execute it, and generate new file. This same option in Livecode 5.5.4 is solved in a few seconds Un saludo. Joseba Aguayo Fern?ndez (jaguayo at telur.es) From livfoss at mac.com Fri Apr 6 03:52:05 2018 From: livfoss at mac.com (Graham Samuel) Date: Fri, 06 Apr 2018 08:52:05 +0100 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: References: Message-ID: <11916BEE-A90C-4134-8811-E4A5EF0C689A@mac.com> Treor, thanks, will try it. I despise myself for my ignorance here, but it is very hard to get an easy path to understanding, especially since both the vocabulary and logic seem so alien. Anyway I appreciate all the help I?ve been getting. Graham > On 6 Apr 2018, at 03:26, Trevor DeVore via use-livecode wrote: > > On Wed, Apr 4, 2018 at 4:21 PM, Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> I?ve got a standalone which is cross-platform and works well on Mac and >> PC. Unfortunately I?m having a lot of trouble with making a viable Windows >> Installer, using the Inno system. All goes well with the installation >> process until the user checks ?launch? for the app at the end of the >> installation process. He/she then gets and error message (this is on both >> Windows 7 and Windows 10): >> >>> C:/Program Files\Myprogram\Myprogram.exe >>> >>> CreateProcess failed: code 740 >>> The requested operation requires elevation >> > > Have you tried adding the following configuration option to your .iss file? > > PrivilegesRequired=admin > > If not then give it a try. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.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 mark at livecode.com Fri Apr 6 04:14:26 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 06 Apr 2018 10:14:26 +0200 Subject: commandine standalone using 100% of core on doing =?UTF-8?Q?what=3F?= In-Reply-To: References: Message-ID: <8d8c30a855f35af0493b1cc839a3079d@livecode.com> On 2018-04-05 15:27, Tom Glod via use-livecode wrote: > Hi folks, I wanted to benchmark the httpd library and decided to create > a > command line server application. > > I run it using "-ui" command ... > > and I use the "on Startup" message to print out a welcome message" > > thats all I have so far. > > But my executable process is using up 100% of the core ..... > continuously. > > what is it doing ? what am I doing wrong? > > v9 .0 on windows 7. Hmmm - this is potentially a bug - in -ui mode the engine falls back to using simpler event handling and such. It doesn't create any windows or other system objects. My guess would be that in that mode (on Windows) something is causing the event loop to trigger continuously, hence the 100% CPU usage. Just a note about the httpd library - we added that for a very specific use-case... To allow a LiveCode app to talk to other processes locally; the specific case being it allows an emscripten built standalone running in a browser to communicate some info back to the IDE (in 'Test' mode). Another use of such a thing I encountered yday, was when using gcloud. I was setting up the gcloud sdk on my Mac, and in order to be able to do anything you need to authenticate. I was pleasantly surprised when I typed the command to authenticate a 'project' in Terminal and up popped Chrome allowing me to authenticate - the command line app had temporarily created a httpd server so the web-page could send the auth token back to it. I didn't even need to enter my details as I was already logged in to the gcloud console in Chrome. So, it wasn't intended as a general web-server, but for small tasks where you need to talk to something which naturally talks http :) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From klaus at major-k.de Fri Apr 6 07:17:51 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 6 Apr 2018 13:17:51 +0200 Subject: Understanding numberformat Message-ID: <21498993-52DC-4A22-B49C-1DCCAEE860FF@major-k.de> Hi friends, maybe I have a little understanding problem with numberformat. Looks like this is "temporary/fleeting"? Meanwhile I worked around this with the FORMAT() function, but would like to understand the problem. I have this button script: ############################################################### ## Neccessary function, since in most non-enlsih speaking countries like germany ## we use the COMMA as a decimal delimiter ## Neccessary for calculations ## tZahl = tNumber ## ohne_komma = without comma function ohne_komma tZahl replace "," with "." in tZahl return tZahl end ohne_komma ## mit_komma = with comma ## Neccessary for displaying numbers function mit_komma tZahl replace "." with "," in tZahl return tZahl end mit_komma on mouseUp pMouseButton put 10 into menge ## amount put "2,3" into preis ## price set the numberformat to 0.00 put ohne_komma(menge) into menge put ohne_komma(preis) into preis put menge * preis into ergebnis ## result ##!!! answer ergebnis ## -> 23.00 answer mit_komma(ergebnis) ## -> 23 ##!!! end mouseUp ############################################################### The last 2 lines of the mouseup handler are puzzling me, what do I not get? Thanks for any insight! It would be nice if LC would take these country specific differences into account in one of the next versions. Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From mark at livecode.com Fri Apr 6 08:18:46 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 06 Apr 2018 14:18:46 +0200 Subject: Understanding numberformat In-Reply-To: <21498993-52DC-4A22-B49C-1DCCAEE860FF@major-k.de> References: <21498993-52DC-4A22-B49C-1DCCAEE860FF@major-k.de> Message-ID: <7ec76c303dce492d50e5514f91f5a92c@livecode.com> On 2018-04-06 13:17, Klaus major-k via use-livecode wrote: > Hi friends, > > maybe I have a little understanding problem with numberformat. > Looks like this is "temporary/fleeting"? > > Meanwhile I worked around this with the FORMAT() function, > but would like to understand the problem. > > I have this button script: > ############################################################### > ## Neccessary function, since in most non-enlsih speaking countries > like germany > ## we use the COMMA as a decimal delimiter > ## Neccessary for calculations > ## tZahl = tNumber > ## ohne_komma = without comma > function ohne_komma tZahl > replace "," with "." in tZahl > return tZahl > end ohne_komma > > ## mit_komma = with comma > ## Neccessary for displaying numbers > function mit_komma tZahl > replace "." with "," in tZahl > return tZahl > end mit_komma > > on mouseUp pMouseButton > put 10 into menge ## amount > put "2,3" into preis ## price > > set the numberformat to 0.00 > put ohne_komma(menge) into menge > put ohne_komma(preis) into preis > put menge * preis into ergebnis ## result > > ##!!! > answer ergebnis ## -> 23.00 > answer mit_komma(ergebnis) ## -> 23 > ##!!! > > end mouseUp > ############################################################### > > The last 2 lines of the mouseup handler are puzzling me, what do I not > get? > Thanks for any insight! The numberFormat is a local property and is only used when a number gets converted to a string... put menge * preis into ergebnis -- ergebnis is a number answer ergebnis -- ergebnis is converted to a string using the numberFormat 0.00 and passed to 'answer'. In the last line 'answer mit_komma(ergebnis)' you are passing ergebnis (a number) to a function. In the function, that number is converted to a string using the default numberFormat (as it is local to handlers, and you have not set it) as you are using 'replace' on it. So, the 'issue' here is the locality of numberFormat. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From klaus at major-k.de Fri Apr 6 08:21:47 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 6 Apr 2018 14:21:47 +0200 Subject: Understanding numberformat In-Reply-To: <7ec76c303dce492d50e5514f91f5a92c@livecode.com> References: <21498993-52DC-4A22-B49C-1DCCAEE860FF@major-k.de> <7ec76c303dce492d50e5514f91f5a92c@livecode.com> Message-ID: <9686C19F-F601-40CA-BD3B-7C3D2233D883@major-k.de> Hi Mark, > Am 06.04.2018 um 14:18 schrieb Mark Waddingham via use-livecode : > > On 2018-04-06 13:17, Klaus major-k via use-livecode wrote: >> Hi friends, >> maybe I have a little understanding problem with numberformat. >> Looks like this is "temporary/fleeting"? >> Meanwhile I worked around this with the FORMAT() function, >> but would like to understand the problem. >> I have this button script: >> ############################################################### >> ## Neccessary function, since in most non-enlsih speaking countries like germany >> ## we use the COMMA as a decimal delimiter >> ## Neccessary for calculations >> ## tZahl = tNumber >> ## ohne_komma = without comma >> function ohne_komma tZahl >> replace "," with "." in tZahl >> return tZahl >> end ohne_komma >> ## mit_komma = with comma >> ## Neccessary for displaying numbers >> function mit_komma tZahl >> replace "." with "," in tZahl >> return tZahl >> end mit_komma >> on mouseUp pMouseButton >> put 10 into menge ## amount >> put "2,3" into preis ## price >> set the numberformat to 0.00 >> put ohne_komma(menge) into menge >> put ohne_komma(preis) into preis >> put menge * preis into ergebnis ## result >> ##!!! >> answer ergebnis ## -> 23.00 >> answer mit_komma(ergebnis) ## -> 23 >> ##!!! >> end mouseUp >> ############################################################### >> The last 2 lines of the mouseup handler are puzzling me, what do I not get? >> Thanks for any insight! > > The numberFormat is a local property and is only used when a number gets converted to a string... > > put menge * preis into ergebnis -- ergebnis is a number > answer ergebnis -- ergebnis is converted to a string using the numberFormat 0.00 and passed to 'answer'. > > In the last line 'answer mit_komma(ergebnis)' you are passing ergebnis (a number) to a function. In the function, that number is converted to a string using the default numberFormat (as it is local to handlers, and you have not set it) as you are using 'replace' on it. > > So, the 'issue' here is the locality of numberFormat. > > Warmest Regards, > > Mark. thank you very much for your explanation, I get it now! :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From tom at makeshyft.com Fri Apr 6 08:32:56 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 6 Apr 2018 08:32:56 -0400 Subject: commandine standalone using 100% of core on doing what? In-Reply-To: <8d8c30a855f35af0493b1cc839a3079d@livecode.com> References: <8d8c30a855f35af0493b1cc839a3079d@livecode.com> Message-ID: Hi Mark....thanks very much ...I'm going to go report the bug ... its definitely reproducible here..... i just need to gather more data that i can give with the report..... Dulley noted on the intentions with the httpd library. On Fri, Apr 6, 2018 at 4:14 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2018-04-05 15:27, Tom Glod via use-livecode wrote: > >> Hi folks, I wanted to benchmark the httpd library and decided to create a >> command line server application. >> >> I run it using "-ui" command ... >> >> and I use the "on Startup" message to print out a welcome message" >> >> thats all I have so far. >> >> But my executable process is using up 100% of the core ..... continuously. >> >> what is it doing ? what am I doing wrong? >> >> v9 .0 on windows 7. >> > > Hmmm - this is potentially a bug - in -ui mode the engine falls back to > using simpler event handling and such. It doesn't create any windows or > other system objects. > > My guess would be that in that mode (on Windows) something is causing the > event loop to trigger continuously, hence the 100% CPU usage. > > Just a note about the httpd library - we added that for a very specific > use-case... To allow a LiveCode app to talk to other processes locally; the > specific case being it allows an emscripten built standalone running in a > browser to communicate some info back to the IDE (in 'Test' mode). > > Another use of such a thing I encountered yday, was when using gcloud. I > was setting up the gcloud sdk on my Mac, and in order to be able to do > anything you need to authenticate. I was pleasantly surprised when I typed > the command to authenticate a 'project' in Terminal and up popped Chrome > allowing me to authenticate - the command line app had temporarily created > a httpd server so the web-page could send the auth token back to it. I > didn't even need to enter my details as I was already logged in to the > gcloud console in Chrome. > > So, it wasn't intended as a general web-server, but for small tasks where > you need to talk to something which naturally talks http :) > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 6 11:28:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 Apr 2018 15:28:25 +0000 Subject: [ANN] Release 9.0.0 In-Reply-To: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> Message-ID: It means that you probably have a 10/10 (up down) internet connection. You are getting the bandwidth reported, which is theoretically what is currently left after everything else currently sending and receiving on that link. If you don't have anything being served up, I'd be concerned about your up speed. Most residential internet services have in the contract that you will not use the connection for business purposes (at least in the US). That is why most residential services are asynchronous (not the same up speed as down speed). If you are not serving anything up to the internet, you don't need very much up bandwidth, and if you are not running a business, you shouldn't really be services anything up. HTH Bob S > On Apr 5, 2018, at 12:49 , Richmond Mathewson via use-livecode wrote: > > Over 'here' in "naughty" Bulgaria where I have the cheapest internet package available > I found that LC 9.0 for Linux took 3 minutes to download . . . and that was absolutely fine. > > Ookla says that my download rate is 10.78 Mbps and my upload rate is 6.28 Mbps, > which is super because I don't understand what those magic numbers mean. > > Richmond. From bobsneidar at iotecdigital.com Fri Apr 6 11:41:50 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 Apr 2018 15:41:50 +0000 Subject: Livecode 9.0.0 (Problem Saving??) In-Reply-To: <4767556F-239D-4180-8AFF-05DC6C325802@telur.es> References: <4767556F-239D-4180-8AFF-05DC6C325802@telur.es> Message-ID: You probably will not want to hear this, but if each card is simply a record in a "database" then you should be made aware the unlike the Hypercard engine, the Livecode engine is not optimized to work this way. If you have common card layouts (I call them forms) you should consider using only one card for each form, and then accessing a database like sqLite, or storing your data in arrays saved as properties of the cards or stack. Bob S > On Apr 6, 2018, at 24:47 , JosebaTELUR via use-livecode wrote: > > Hello: > > I work with a stack with 18.000 cards (86 MB). > When I do ?Save?, it takes 12 minutes to execute it, and generate new file. > This same option in Livecode 5.5.4 is solved in a few seconds > > Un saludo. > > Joseba Aguayo Fern?ndez > (jaguayo at telur.es) From bobsneidar at iotecdigital.com Fri Apr 6 11:43:31 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 Apr 2018 15:43:31 +0000 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: References: Message-ID: <734072AA-CF95-42B3-838E-E3C74937B0A7@iotecdigital.com> I think the problem he has is that the executable is already set to launch as admin and ar runtime he is not elevated. Bob S > On Apr 5, 2018, at 19:26 , Trevor DeVore via use-livecode wrote: > > Have you tried adding the following configuration option to your .iss file? > > PrivilegesRequired=admin > > If not then give it a try. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.com From bobsneidar at iotecdigital.com Fri Apr 6 11:51:00 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 Apr 2018 15:51:00 +0000 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: <11916BEE-A90C-4134-8811-E4A5EF0C689A@mac.com> References: <11916BEE-A90C-4134-8811-E4A5EF0C689A@mac.com> Message-ID: This all came about because with XP, if you logged in as an administrator account, any process that launched in that session ALSO ran as an administrator, which meant that it could modify system files. It was like a petri dish for malware. Just clicking to preview an email could ruin your day. Apple already had a mechanism where processes that attempted to install or modify protected files or folders would invoke a User/Pass auth dialog, so Microsoft decided to mimic that, but since they didn't have the mechanisms built into Unix for that, the developed this dual level auth system where an administrator account was merely a standard user that COULD be elevated to administrative level, where as other accounts could not. In those cases, a user/pass challenge dialog is presented so the candidate process could be run as though a real administrator account had invoked it. It's a pain in the arse sometimes, but it isn't difficult to understand what it is and why it's necessary. Bob S > On Apr 6, 2018, at 24:52 , Graham Samuel via use-livecode wrote: > > Treor, thanks, will try it. I despise myself for my ignorance here, but it is very hard to get an easy path to understanding, especially since both the vocabulary and logic seem so alien. > > Anyway I appreciate all the help I?ve been getting. > > Graham From roger.e.eller at sealedair.com Fri Apr 6 13:43:45 2018 From: roger.e.eller at sealedair.com (Eller, Roger) Date: Fri, 6 Apr 2018 17:43:45 +0000 Subject: LC on ChromeBooks In-Reply-To: <1628c3e02e8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1628c3e02e8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I don't currently have a ChromeBook, but I would also like to know how compatible LC Android apps are, if at all. ~Roger ________________________________ From: use-livecode on behalf of J. Landman Gay via use-livecode Sent: Tuesday, April 3, 2018 12:01:37 PM To: LiveCode Mailing List Cc: J. Landman Gay Subject: LC on ChromeBooks Has anyone tried to run an LC app on a ChromeBook? Don't they run Android apps now? -- 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 stephen at barncard.com Fri Apr 6 14:11:29 2018 From: stephen at barncard.com (Stephen Barncard) Date: Fri, 6 Apr 2018 11:11:29 -0700 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> Message-ID: Teleconferencing and working from home has changed these dynamics. At what point does a teleconference with 5 people not 'look' like a "server" to the ISP? -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Fri, Apr 6, 2018 at 8:28 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > It means that you probably have a 10/10 (up down) internet connection. You > are getting the bandwidth reported, which is theoretically what is > currently left after everything else currently sending and receiving on > that link. If you don't have anything being served up, I'd be concerned > about your up speed. > > Most residential internet services have in the contract that you will not > use the connection for business purposes (at least in the US). That is why > most residential services are asynchronous (not the same up speed as down > speed). If you are not serving anything up to the internet, you don't need > very much up bandwidth, and if you are not running a business, you > shouldn't really be services anything up. > > HTH > Bob S > > > > On Apr 5, 2018, at 12:49 , Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Over 'here' in "naughty" Bulgaria where I have the cheapest internet > package available > > I found that LC 9.0 for Linux took 3 minutes to download . . . and that > was absolutely fine. > > > > Ookla says that my download rate is 10.78 Mbps and my upload rate is > 6.28 Mbps, > > which is super because I don't understand what those magic numbers mean. > > > > 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 martyknappster at gmail.com Fri Apr 6 14:29:29 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Fri, 6 Apr 2018 11:29:29 -0700 Subject: formatForPrinting Message-ID: <9A9FC34E-7DF2-4B11-AB5C-ABB2740BB173@gmail.com> With regard to formatForPrinting for Windows, the dictionary says to set the property *before* you open the stack. I'm probably just being thick, but how do you set the property of a stack that is not open? Does this really mean to set it to true, save it, close it and then reopen it in order to print accurately? And then if the user wants to make a change to some text, they have to set it to false, save, close, reopen? Then to print a second time go through all of that again? That sounds like a horrible thing to put a user through. Why can?t you set it to true just before you print, then back to false afterward? Can anybody provide some input on this? Thanks, Marty From dunbarx at aol.com Fri Apr 6 17:12:07 2018 From: dunbarx at aol.com (dunbarx) Date: Fri, 6 Apr 2018 14:12:07 -0700 (MST) Subject: formatForPrinting In-Reply-To: <9A9FC34E-7DF2-4B11-AB5C-ABB2740BB173@gmail.com> References: <9A9FC34E-7DF2-4B11-AB5C-ABB2740BB173@gmail.com> Message-ID: <1523049127539-0.post@n4.nabble.com> I am intrigued as well. The dictionary is quite clear. Set this property before it ever is in memory. Does the engine store properties just in case a stack of the appropriate name opens? Are there other such properties? The dictionary states that this property can be cleared if text is to be edited, and then, I assume reset if the user want to print again. So is the property stored in the stack as well? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From waprothero at gmail.com Fri Apr 6 18:45:40 2018 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 Apr 2018 15:45:40 -0700 Subject: Text to Speech In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> Message-ID: <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> Folks: I?m wondering if there is any text to speech capability in livecode. There are references to it when I do a Google search, but I don?t get any sound when I do: on mouseUp revSpeak "Hello, How are you?" end mouseUp I don?t get any sound. I would want to use it for more than a simple alert. Is this practical? Best, Bill William A. Prothero http://earthlearningsolutions.org From irog at mac.com Fri Apr 6 19:15:51 2018 From: irog at mac.com (Roger Guay) Date: Fri, 06 Apr 2018 16:15:51 -0700 Subject: Text to Speech In-Reply-To: <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> Message-ID: <6E993496-E74C-4880-BA9F-0518A5EA3600@mac.com> > On Apr 6, 2018, at 3:45 PM, William Prothero via use-livecode wrote: > > on mouseUp > revSpeak "Hello, How are you?" > end mouseUp Works here! OS 10.13.3, LC 9.0 Roge From bonnmike at gmail.com Fri Apr 6 19:17:05 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 6 Apr 2018 17:17:05 -0600 Subject: Text to Speech In-Reply-To: <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> Message-ID: Check the result and see if there is an error message. What OS/Platform? I use revspeak to talk to an amazon echo since it speaks more clearly than I do. (Had it set up for a while so that I could have it talk to my echo while I was in another room using a rev http stack.) I'm on windows, but think that last time I tried it on mac, it worked fine there as well. On Fri, Apr 6, 2018 at 4:45 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > > Folks: > I?m wondering if there is any text to speech capability in livecode. There > are references to it when I do a Google search, but I don?t get any sound > when I do: > > on mouseUp > revSpeak "Hello, How are you?" > end mouseUp > > I don?t get any sound. > > I would want to use it for more than a simple alert. Is this practical? > > Best, > Bill > > William A. Prothero > http://earthlearningsolutions.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 waprothero at gmail.com Fri Apr 6 19:59:16 2018 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 Apr 2018 16:59:16 -0700 Subject: Can't seem to build standalone in LC9.0.0 In-Reply-To: <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> Message-ID: Folks: This has me extremely frustrated and I?ve spent way too many hours trying to get this to work. If anybody has a few minutes to look at the error dialogs in the link, I?d very much appreciate it. I?m probably missing something very obvious, but ?. Link to zip of 3 screen shots that show the problem. https://www.dropbox.com/s/wipzyr9523h7n60/wp-standaloneDialogs.zip?dl=0 What I have is a splash stack named: "Start Earth Explorer" Other stacks are used to actually do the work. One of the dialogs (StacksList.png) is the standalone settings ?Stacks? window, which shows a list of the stacks. Another dialog (filesStructure.png) is my file structure for the app. The third dialog (ErrorDialog.png) is the error dialog that I get when I try to build a standalone. It appears, to me, that somehow it can?t find the first ?.livecode? stack it gets to in the stacks list. I must be doing something incredibly stupid, overlooking some basic setting, or ?? Any ideas would be much appreciated. Thanks, Bill William A. Prothero http://earthlearningsolutions.org From waprothero at gmail.com Fri Apr 6 20:04:03 2018 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 Apr 2018 17:04:03 -0700 Subject: Text to Speech In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> Message-ID: <178104C4-480C-4FA3-BC9E-218E8DA72434@gmail.com> Thanks. I had tried it in the message box and got no sound. But, in a button, it does work fine. Bill > On Apr 6, 2018, at 4:17 PM, Mike Bonner via use-livecode wrote: > > Check the result and see if there is an error message. What OS/Platform? > I use revspeak to talk to an amazon echo since it speaks more clearly than > I do. (Had it set up for a while so that I could have it talk to my echo > while I was in another room using a rev http stack.) I'm on windows, but > think that last time I tried it on mac, it worked fine there as well. > > On Fri, Apr 6, 2018 at 4:45 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> Folks: >> I?m wondering if there is any text to speech capability in livecode. There >> are references to it when I do a Google search, but I don?t get any sound >> when I do: >> >> on mouseUp >> revSpeak "Hello, How are you?" >> end mouseUp >> >> I don?t get any sound. >> >> I would want to use it for more than a simple alert. Is this practical? >> >> Best, >> Bill >> >> William A. Prothero >> http://earthlearningsolutions.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 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From waprothero at gmail.com Fri Apr 6 20:45:56 2018 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 Apr 2018 17:45:56 -0700 Subject: Can't seem to build standalone in LC9.0.0 In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> Message-ID: More info: When I only have a single ?.livecode? stack and multiple ?.livecodescript? stacks in the ?Stacks? list, it makes a standalone, but with more than one (it doesn?t matter which one), ?.livecode? stack, it fails. This is starting to seem like a bug. Bill > On Apr 6, 2018, at 4:59 PM, William Prothero via use-livecode wrote: > > Folks: > This has me extremely frustrated and I?ve spent way too many hours trying to get this to work. If anybody has a few minutes to look at the error dialogs in the link, I?d very much appreciate it. I?m probably missing something very obvious, but ?. > > Link to zip of 3 screen shots that show the problem. > https://www.dropbox.com/s/wipzyr9523h7n60/wp-standaloneDialogs.zip?dl=0 > > What I have is a splash stack named: "Start Earth Explorer" > Other stacks are used to actually do the work. One of the dialogs (StacksList.png) is the standalone settings ?Stacks? window, which shows a list of the stacks. Another dialog (filesStructure.png) is my file structure for the app. The third dialog (ErrorDialog.png) is the error dialog that I get when I try to build a standalone. It appears, to me, that somehow it can?t find the first ?.livecode? stack it gets to in the stacks list. > > I must be doing something incredibly stupid, overlooking some basic setting, or ?? > > Any ideas would be much appreciated. > > Thanks, > Bill > > > William A. Prothero > http://earthlearningsolutions.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 brian at milby7.com Fri Apr 6 20:58:02 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 07 Apr 2018 00:58:02 +0000 Subject: Text to Speech In-Reply-To: <178104C4-480C-4FA3-BC9E-218E8DA72434@gmail.com> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <178104C4-480C-4FA3-BC9E-218E8DA72434@gmail.com> Message-ID: This may be of interest: Resources Center... Sample Scripts... User Interface... Speaking an Alert Message Only works on Mac/Win. On Fri, Apr 6, 2018 at 8:04 PM William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks. I had tried it in the message box and got no sound. But, in a > button, it does work fine. > Bill > > > On Apr 6, 2018, at 4:17 PM, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Check the result and see if there is an error message. What OS/Platform? > > I use revspeak to talk to an amazon echo since it speaks more clearly > than > > I do. (Had it set up for a while so that I could have it talk to my echo > > while I was in another room using a rev http stack.) I'm on windows, but > > think that last time I tried it on mac, it worked fine there as well. > > > > On Fri, Apr 6, 2018 at 4:45 PM, William Prothero via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> > >> Folks: > >> I?m wondering if there is any text to speech capability in livecode. > There > >> are references to it when I do a Google search, but I don?t get any > sound > >> when I do: > >> > >> on mouseUp > >> revSpeak "Hello, How are you?" > >> end mouseUp > >> > >> I don?t get any sound. > >> > >> I would want to use it for more than a simple alert. Is this practical? > >> > >> Best, > >> Bill > >> > >> William A. Prothero > >> http://earthlearningsolutions.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 > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 waprothero at gmail.com Fri Apr 6 20:59:05 2018 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 Apr 2018 17:59:05 -0700 Subject: Can't seem to build standalone in LC9.0.0 In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> Message-ID: <7A2EB1BF-9E5F-4E7D-BC8B-583D31F34F3B@gmail.com> Found solution: Don?t use LC 9.0.0. When I add more than one ?.livecode? stack in the ?Stacks? list, I get the errors referred to in the original posting However, when I use LC 8.2.0 (DP 2), I get a standalone. No errors. I?ll see if I can make a sample stack and report this as a bug. Best, Bill > On Apr 6, 2018, at 5:45 PM, William Prothero via use-livecode wrote: > > More info: > When I only have a single ?.livecode? stack and multiple ?.livecodescript? stacks in the ?Stacks? list, it makes a standalone, but with more than one (it doesn?t matter which one), ?.livecode? stack, it fails. > > This is starting to seem like a bug. > > Bill > >> On Apr 6, 2018, at 4:59 PM, William Prothero via use-livecode wrote: >> >> Folks: >> This has me extremely frustrated and I?ve spent way too many hours trying to get this to work. If anybody has a few minutes to look at the error dialogs in the link, I?d very much appreciate it. I?m probably missing something very obvious, but ?. >> >> Link to zip of 3 screen shots that show the problem. >> https://www.dropbox.com/s/wipzyr9523h7n60/wp-standaloneDialogs.zip?dl=0 >> >> What I have is a splash stack named: "Start Earth Explorer" >> Other stacks are used to actually do the work. One of the dialogs (StacksList.png) is the standalone settings ?Stacks? window, which shows a list of the stacks. Another dialog (filesStructure.png) is my file structure for the app. The third dialog (ErrorDialog.png) is the error dialog that I get when I try to build a standalone. It appears, to me, that somehow it can?t find the first ?.livecode? stack it gets to in the stacks list. >> >> I must be doing something incredibly stupid, overlooking some basic setting, or ?? >> >> Any ideas would be much appreciated. >> >> Thanks, >> Bill >> >> >> William A. Prothero >> http://earthlearningsolutions.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Fri Apr 6 21:59:15 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 6 Apr 2018 21:59:15 -0400 Subject: Can't seem to build standalone in LC9.0.0 In-Reply-To: <7A2EB1BF-9E5F-4E7D-BC8B-583D31F34F3B@gmail.com> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <7A2EB1BF-9E5F-4E7D-BC8B-583D31F34F3B@gmail.com> Message-ID: Glad you found a solution...I have to ask ....how did you get that commodore 64 look on your screens? It was awesome! :D :D: D .... please please try to report the bug and help the team find it. software is a hard hard problem. On Fri, Apr 6, 2018 at 8:59 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Found solution: > Don?t use LC 9.0.0. > When I add more than one ?.livecode? stack in the ?Stacks? list, I get the > errors referred to in the original posting > However, when I use LC 8.2.0 (DP 2), I get a standalone. No errors. > > I?ll see if I can make a sample stack and report this as a bug. > Best, > Bill > > > On Apr 6, 2018, at 5:45 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > More info: > > When I only have a single ?.livecode? stack and multiple > ?.livecodescript? stacks in the ?Stacks? list, it makes a standalone, but > with more than one (it doesn?t matter which one), ?.livecode? stack, it > fails. > > > > This is starting to seem like a bug. > > > > Bill > > > >> On Apr 6, 2018, at 4:59 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Folks: > >> This has me extremely frustrated and I?ve spent way too many hours > trying to get this to work. If anybody has a few minutes to look at the > error dialogs in the link, I?d very much appreciate it. I?m probably > missing something very obvious, but ?. > >> > >> Link to zip of 3 screen shots that show the problem. > >> https://www.dropbox.com/s/wipzyr9523h7n60/wp-standaloneDialogs.zip?dl=0 > > >> > >> What I have is a splash stack named: "Start Earth Explorer" > >> Other stacks are used to actually do the work. One of the dialogs > (StacksList.png) is the standalone settings ?Stacks? window, which shows a > list of the stacks. Another dialog (filesStructure.png) is my file > structure for the app. The third dialog (ErrorDialog.png) is the error > dialog that I get when I try to build a standalone. It appears, to me, that > somehow it can?t find the first ?.livecode? stack it gets to in the stacks > list. > >> > >> I must be doing something incredibly stupid, overlooking some basic > setting, or ?? > >> > >> Any ideas would be much appreciated. > >> > >> Thanks, > >> Bill > >> > >> > >> William A. Prothero > >> http://earthlearningsolutions.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 > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 prothero at earthlearningsolutions.org Fri Apr 6 22:45:57 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Fri, 6 Apr 2018 19:45:57 -0700 Subject: Can't seem to build standalone in LC9.0.0 In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <7A2EB1BF-9E5F-4E7D-BC8B-583D31F34F3B@gmail.com> Message-ID: <94285853-952D-4DB0-ADB6-E1182B756D84@earthlearningsolutions.org> Tom, I just captured the relevant dialogs and Windows on my Mac. Never owned a Commodore, but did write some machine language for a radio shack model 100 once in the distant past. I was sooo (naively) trusting of the perfection of lc9 that it took me way too long to try the build on lc8.2. Best, Bill William Prothero http://earthlearningsolutions.org > On Apr 6, 2018, at 6:59 PM, Tom Glod via use-livecode wrote: > > Glad you found a solution...I have to ask ....how did you get that > commodore 64 look on your screens? It was awesome! :D :D: D .... please > please try to report the bug and help the team find it. software is a hard > hard problem. > > > > On Fri, Apr 6, 2018 at 8:59 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Found solution: >> Don?t use LC 9.0.0. >> When I add more than one ?.livecode? stack in the ?Stacks? list, I get the >> errors referred to in the original posting >> However, when I use LC 8.2.0 (DP 2), I get a standalone. No errors. >> >> I?ll see if I can make a sample stack and report this as a bug. >> Best, >> Bill >> >>> On Apr 6, 2018, at 5:45 PM, William Prothero via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> More info: >>> When I only have a single ?.livecode? stack and multiple >> ?.livecodescript? stacks in the ?Stacks? list, it makes a standalone, but >> with more than one (it doesn?t matter which one), ?.livecode? stack, it >> fails. >>> >>> This is starting to seem like a bug. >>> >>> Bill >>> >>>> On Apr 6, 2018, at 4:59 PM, William Prothero via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>> >>>> Folks: >>>> This has me extremely frustrated and I?ve spent way too many hours >> trying to get this to work. If anybody has a few minutes to look at the >> error dialogs in the link, I?d very much appreciate it. I?m probably >> missing something very obvious, but ?. >>>> >>>> Link to zip of 3 screen shots that show the problem. >>>> https://www.dropbox.com/s/wipzyr9523h7n60/wp-standaloneDialogs.zip?dl=0 >> >>>> >>>> What I have is a splash stack named: "Start Earth Explorer" >>>> Other stacks are used to actually do the work. One of the dialogs >> (StacksList.png) is the standalone settings ?Stacks? window, which shows a >> list of the stacks. Another dialog (filesStructure.png) is my file >> structure for the app. The third dialog (ErrorDialog.png) is the error >> dialog that I get when I try to build a standalone. It appears, to me, that >> somehow it can?t find the first ?.livecode? stack it gets to in the stacks >> list. >>>> >>>> I must be doing something incredibly stupid, overlooking some basic >> setting, or ?? >>>> >>>> Any ideas would be much appreciated. >>>> >>>> Thanks, >>>> Bill >>>> >>>> >>>> William A. Prothero >>>> http://earthlearningsolutions.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 >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 rmetzker at gmail.com Fri Apr 6 23:12:40 2018 From: rmetzker at gmail.com (Ron Metzker) Date: Fri, 6 Apr 2018 20:12:40 -0700 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> Message-ID: <2477756B-5E8A-4350-9A9B-0234ACD4172B@gmail.com> Hi Panos, I updated my two Macs today with LiveCode 9.0.0. Unfortunately I also had a very slow download on both. I have a very fast internet connection. I dowloaded them from within LiveCode by doing an update. After I had downloaded them, I tried to see what the problem was. I did a test on my internet. It was at the correct speed in the test. So I went to the LiveCode download page and downloaded both the Indy and the Business dmg from the site at the same time. It took only a couple of minutes. So the slowness of the download appears to caused by using the LiveCode download stack. It was probably 20 to 30 times slower than using the download page. Best Regards, Ron > On Apr 4, 2018, at 10:51 AM, panagiotis merakos via use-livecode wrote: > > @Peter > One more thing to try before filing a bug report: > > 1. Clear Prefs again > 2. Open LC, you should see the revFileAssociation dialog ("LiveCode files > are not currently associated with this version. Would you like to make this > association?") > 3. Choose "Yes" > > Does the splash screen close after that? > > BTW if you want to close this stack manually, you can try that: > > - type in the msg box "close the mousestack" but do NOT press Enter > - place the cursor on the splash stack > - press enter > > I am wondering if an error occurs on startup, so LC stops execution, and > the line of code in the IDE startup scripts that closes this stack is never > reached. > > @Richard > Thanks for the update, I'll pass it to the team. I know we had at least > another 3 users in your area that suffered from very slow download speeds. > Network issues are hard to diagnose :) > > Best, > Panos > -- > > On Wed, Apr 4, 2018 at 6:35 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> @Peter Bogdanoff bogdanoff: >>> Yesterday it took me 3-4 hours to download LC 9. I?m in California. >> >> Good to know I'm not the only one. Thanks. >> >> >> @Panos: >>> Do you still experience slow download speed? I had no problem >>> yesterday from my home internet connection >> >> Thanks for asking. Yes, and it's been the darndest thing. Not even my ISP >> could explain it. It's been this way for more than a week, and persists >> this morning, even across multiple computers. >> >> I was able to find a workaround that demonstrates that it's not the >> livecode.com server per se: I shelled into one of my VPSes in New Jersey >> and used wget to download the builds I needed - each took less than a >> minute there. Then I copied them to my web folder, and on my local machine >> downloaded from that VPS - at normal speed. >> >> So to summarize what I've learned thus far: >> >> - It's not my computer: all computers here show this slow download >> >> - It's not your server: I can download from it to another computer >> in a different geographic region with no delay. >> >> - It's not my local network setup: Peter has the same issue, and >> downloading from my VPS is speedy. >> >> Given all this, my wild guess would be that this is something related to >> the CDN you're using (Cloudflare?), affecting only southern California, or >> maybe even more limited than that since Peter and I are less than about 20 >> miles from one another. >> >> While Cloudflare's status page shows the Los Angeles area to be >> "Operational", a quick search at Google turned up a few discussions about >> issues in my area, the most recent I stumbled across being just 22 hours >> ago. >> >> The bigger mystery is that this has persisted as long as it has. Most >> CDNs are super on top of things, and a multi-day issue is rare. >> >> At least I have a workaround for now, and if I learn anything more I'll >> pass it along. In the meantime, if you hear of anything with your CDN it >> may be helpful to share. >> >> -- >> 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 brian at milby7.com Sat Apr 7 01:35:01 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 07 Apr 2018 05:35:01 +0000 Subject: Can't seem to build standalone in LC9.0.0 In-Reply-To: <94285853-952D-4DB0-ADB6-E1182B756D84@earthlearningsolutions.org> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <7A2EB1BF-9E5F-4E7D-BC8B-583D31F34F3B@gmail.com> <94285853-952D-4DB0-ADB6-E1182B756D84@earthlearningsolutions.org> Message-ID: I can say it is more complicated than the number of LiveCode stacks though (just built a 3 stack app as a test). Any idea where in the 9 release cycle this became an issue? Someone that can parse the error screen that you captured should be able to provide a better clue to the problem (especially if it hangs at the same spot regardless of which files are included). On Fri, Apr 6, 2018 at 10:46 PM prothero--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Tom, > I just captured the relevant dialogs and Windows on my Mac. Never owned a > Commodore, but did write some machine language for a radio shack model 100 > once in the distant past. > > I was sooo (naively) trusting of the perfection of lc9 that it took me way > too long to try the build on lc8.2. > > Best, > Bill > > William Prothero > http://earthlearningsolutions.org > > > On Apr 6, 2018, at 6:59 PM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Glad you found a solution...I have to ask ....how did you get that > > commodore 64 look on your screens? It was awesome! :D :D: D .... please > > please try to report the bug and help the team find it. software is a > hard > > hard problem. > > > > > > > > On Fri, Apr 6, 2018 at 8:59 PM, William Prothero via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Found solution: > >> Don?t use LC 9.0.0. > >> When I add more than one ?.livecode? stack in the ?Stacks? list, I get > the > >> errors referred to in the original posting > >> However, when I use LC 8.2.0 (DP 2), I get a standalone. No errors. > >> > >> I?ll see if I can make a sample stack and report this as a bug. > >> Best, > >> Bill > >> > >>> On Apr 6, 2018, at 5:45 PM, William Prothero via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> More info: > >>> When I only have a single ?.livecode? stack and multiple > >> ?.livecodescript? stacks in the ?Stacks? list, it makes a standalone, > but > >> with more than one (it doesn?t matter which one), ?.livecode? stack, it > >> fails. > >>> > >>> This is starting to seem like a bug. > >>> > >>> Bill > >>> > >>>> On Apr 6, 2018, at 4:59 PM, William Prothero via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Folks: > >>>> This has me extremely frustrated and I?ve spent way too many hours > >> trying to get this to work. If anybody has a few minutes to look at the > >> error dialogs in the link, I?d very much appreciate it. I?m probably > >> missing something very obvious, but ?. > >>>> > >>>> Link to zip of 3 screen shots that show the problem. > >>>> > https://www.dropbox.com/s/wipzyr9523h7n60/wp-standaloneDialogs.zip?dl=0 > >> < > https://www.dropbox.com/s/wipzyr9523h7n60/wp-standaloneDialogs.zip?dl=0> > >>>> > >>>> What I have is a splash stack named: "Start Earth Explorer" > >>>> Other stacks are used to actually do the work. One of the dialogs > >> (StacksList.png) is the standalone settings ?Stacks? window, which > shows a > >> list of the stacks. Another dialog (filesStructure.png) is my file > >> structure for the app. The third dialog (ErrorDialog.png) is the error > >> dialog that I get when I try to build a standalone. It appears, to me, > that > >> somehow it can?t find the first ?.livecode? stack it gets to in the > stacks > >> list. > >>>> > >>>> I must be doing something incredibly stupid, overlooking some basic > >> setting, or ?? > >>>> > >>>> Any ideas would be much appreciated. > >>>> > >>>> Thanks, > >>>> Bill > >>>> > >>>> > >>>> William A. Prothero > >>>> http://earthlearningsolutions.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 > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode 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 merakosp at gmail.com Sat Apr 7 02:06:40 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Sat, 7 Apr 2018 07:06:40 +0100 Subject: Can't seem to build standalone in LC9.0.0 In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <7A2EB1BF-9E5F-4E7D-BC8B-583D31F34F3B@gmail.com> <94285853-952D-4DB0-ADB6-E1182B756D84@earthlearningsolutions.org> Message-ID: Hi Bill, In the error msg I saw a reference to "openstack". In LC 9 (started in RC-1 I *think*) we no longer lock messages when building a standalone. This was necessary to fix other problems and it is mentioned in the 9.0.0 Release Notes under the section "Breaking Changes". So I wild guess is that you get that error because when building the standalone one of these stacks receives the "openstack" message, and does things that should not be done while building a standalone. If this is the case, you can add this in the (pre)openstack handlers of your stacks: on openstack if the mode of stack "revStandaloneProgress" > 0 then exit openstack end if .. .. end openstack The same applies to "(pre)opencard", "closeStack". Please let us know if this fixes the problem. Best, Panos -- ? From panos.merakos at livecode.com Sat Apr 7 03:15:36 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Sat, 07 Apr 2018 07:15:36 +0000 Subject: [ANN] Release 9.0.0 In-Reply-To: <2477756B-5E8A-4350-9A9B-0234ACD4172B@gmail.com> References: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> <2477756B-5E8A-4350-9A9B-0234ACD4172B@gmail.com> Message-ID: Thanks for the update Ron. I confirm the auto updater is slower compared to a direct download from the downloads page. I'll file a bug so as we investigate further. Best, Panos On Sat, Apr 7, 2018, 04:12 Ron Metzker wrote: > Hi Panos, > > I updated my two Macs today with LiveCode 9.0.0. Unfortunately I also had > a very slow download on both. I have a very fast internet connection. I > dowloaded them from within LiveCode by doing an update. > > After I had downloaded them, I tried to see what the problem was. I did a > test on my internet. It was at the correct speed in the test. So I went to > the LiveCode download page and downloaded both the Indy and the Business > dmg from the site at the same time. It took only a couple of minutes. So > the slowness of the download appears to caused by using the LiveCode > download stack. It was probably 20 to 30 times slower than using the > download page. > > Best Regards, > Ron > > > On Apr 4, 2018, at 10:51 AM, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > @Peter > > One more thing to try before filing a bug report: > > > > 1. Clear Prefs again > > 2. Open LC, you should see the revFileAssociation dialog ("LiveCode files > > are not currently associated with this version. Would you like to make > this > > association?") > > 3. Choose "Yes" > > > > Does the splash screen close after that? > > > > BTW if you want to close this stack manually, you can try that: > > > > - type in the msg box "close the mousestack" but do NOT press Enter > > - place the cursor on the splash stack > > - press enter > > > > I am wondering if an error occurs on startup, so LC stops execution, and > > the line of code in the IDE startup scripts that closes this stack is > never > > reached. > > > > @Richard > > Thanks for the update, I'll pass it to the team. I know we had at least > > another 3 users in your area that suffered from very slow download > speeds. > > Network issues are hard to diagnose :) > > > > Best, > > Panos > > -- > > > > On Wed, Apr 4, 2018 at 6:35 PM, Richard Gaskin via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> @Peter Bogdanoff bogdanoff: > >>> Yesterday it took me 3-4 hours to download LC 9. I?m in California. > >> > >> Good to know I'm not the only one. Thanks. > >> > >> > >> @Panos: > >>> Do you still experience slow download speed? I had no problem > >>> yesterday from my home internet connection > >> > >> Thanks for asking. Yes, and it's been the darndest thing. Not even my > ISP > >> could explain it. It's been this way for more than a week, and persists > >> this morning, even across multiple computers. > >> > >> I was able to find a workaround that demonstrates that it's not the > >> livecode.com server per se: I shelled into one of my VPSes in New > Jersey > >> and used wget to download the builds I needed - each took less than a > >> minute there. Then I copied them to my web folder, and on my local > machine > >> downloaded from that VPS - at normal speed. > >> > >> So to summarize what I've learned thus far: > >> > >> - It's not my computer: all computers here show this slow download > >> > >> - It's not your server: I can download from it to another computer > >> in a different geographic region with no delay. > >> > >> - It's not my local network setup: Peter has the same issue, and > >> downloading from my VPS is speedy. > >> > >> Given all this, my wild guess would be that this is something related to > >> the CDN you're using (Cloudflare?), affecting only southern California, > or > >> maybe even more limited than that since Peter and I are less than about > 20 > >> miles from one another. > >> > >> While Cloudflare's status page shows the Los Angeles area to be > >> "Operational", a quick search at Google turned up a few discussions > about > >> issues in my area, the most recent I stumbled across being just 22 hours > >> ago. > >> > >> The bigger mystery is that this has persisted as long as it has. Most > >> CDNs are super on top of things, and a multi-day issue is rare. > >> > >> At least I have a workaround for now, and if I learn anything more I'll > >> pass it along. In the meantime, if you hear of anything with your CDN > it > >> may be helpful to share. > >> > >> -- > >> 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 richmondmathewson at gmail.com Sat Apr 7 03:40:36 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 7 Apr 2018 10:40:36 +0300 Subject: [ANN] Release 9.0.0 In-Reply-To: <2477756B-5E8A-4350-9A9B-0234ACD4172B@gmail.com> References: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> <2477756B-5E8A-4350-9A9B-0234ACD4172B@gmail.com> Message-ID: I'm sorry, I missed the point about using LiveCode's built-in upgrade download capacity when I reported that it took me about 3 minutes to download LC 9.0. The reason I missed the point was that I have used the in-built upgrade system exactly once (on a Mac) and the whole thing was such a negative experience (slow and giving me a slight feeling I wasn't in control) that I have always downloaded versions via the download page through Firefox. The time I used the in-built upgrade system was a few years ago: and coupled with the odd situation that versions such as the 9.0 DP series offered me the opportunity to "update" to some of the 8.1 series, the result was that the in-built upgrade system has not been in the "forefront of my consciousness" for a considerable time. Richmond. On 7/4/2018 6:12 am, Ron Metzker via use-livecode wrote: > Hi Panos, > > I updated my two Macs today with LiveCode 9.0.0. Unfortunately I also had a very slow download on both. I have a very fast internet connection. I dowloaded them from within LiveCode by doing an update. > > After I had downloaded them, I tried to see what the problem was. I did a test on my internet. It was at the correct speed in the test. So I went to the LiveCode download page and downloaded both the Indy and the Business dmg from the site at the same time. It took only a couple of minutes. So the slowness of the download appears to caused by using the LiveCode download stack. It was probably 20 to 30 times slower than using the download page. > > Best Regards, > Ron > >> On Apr 4, 2018, at 10:51 AM, panagiotis merakos via use-livecode wrote: >> >> @Peter >> One more thing to try before filing a bug report: >> >> 1. Clear Prefs again >> 2. Open LC, you should see the revFileAssociation dialog ("LiveCode files >> are not currently associated with this version. Would you like to make this >> association?") >> 3. Choose "Yes" >> >> Does the splash screen close after that? >> >> BTW if you want to close this stack manually, you can try that: >> >> - type in the msg box "close the mousestack" but do NOT press Enter >> - place the cursor on the splash stack >> - press enter >> >> I am wondering if an error occurs on startup, so LC stops execution, and >> the line of code in the IDE startup scripts that closes this stack is never >> reached. >> >> @Richard >> Thanks for the update, I'll pass it to the team. I know we had at least >> another 3 users in your area that suffered from very slow download speeds. >> Network issues are hard to diagnose :) >> >> Best, >> Panos >> -- >> >> On Wed, Apr 4, 2018 at 6:35 PM, Richard Gaskin via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> @Peter Bogdanoff bogdanoff: >>>> Yesterday it took me 3-4 hours to download LC 9. I?m in California. >>> Good to know I'm not the only one. Thanks. >>> >>> >>> @Panos: >>>> Do you still experience slow download speed? I had no problem >>>> yesterday from my home internet connection >>> Thanks for asking. Yes, and it's been the darndest thing. Not even my ISP >>> could explain it. It's been this way for more than a week, and persists >>> this morning, even across multiple computers. >>> >>> I was able to find a workaround that demonstrates that it's not the >>> livecode.com server per se: I shelled into one of my VPSes in New Jersey >>> and used wget to download the builds I needed - each took less than a >>> minute there. Then I copied them to my web folder, and on my local machine >>> downloaded from that VPS - at normal speed. >>> >>> So to summarize what I've learned thus far: >>> >>> - It's not my computer: all computers here show this slow download >>> >>> - It's not your server: I can download from it to another computer >>> in a different geographic region with no delay. >>> >>> - It's not my local network setup: Peter has the same issue, and >>> downloading from my VPS is speedy. >>> >>> Given all this, my wild guess would be that this is something related to >>> the CDN you're using (Cloudflare?), affecting only southern California, or >>> maybe even more limited than that since Peter and I are less than about 20 >>> miles from one another. >>> >>> While Cloudflare's status page shows the Los Angeles area to be >>> "Operational", a quick search at Google turned up a few discussions about >>> issues in my area, the most recent I stumbled across being just 22 hours >>> ago. >>> >>> The bigger mystery is that this has persisted as long as it has. Most >>> CDNs are super on top of things, and a multi-day issue is rare. >>> >>> At least I have a workaround for now, and if I learn anything more I'll >>> pass it along. In the meantime, if you hear of anything with your CDN it >>> may be helpful to share. >>> >>> -- >>> 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 richmondmathewson at gmail.com Sat Apr 7 04:03:03 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 7 Apr 2018 11:03:03 +0300 Subject: Text to Speech In-Reply-To: <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> Message-ID: <83719469-d4cd-a74d-cd07-a66574df992e@gmail.com> Looking up revSpeak in the 8.1.9 Dictionary I found several things of interest: NOT for Linux. Works just fine (albeit a bit slowly) on my Polycarbonate iMac running Mac OS 10.7.5 on mouseUp revSpeak fld "ff" end mouseUp HOWEVER: this seems to presuppose text-to-speech IS installed in the OS . . . SO: revSpeak does NOT seem to be a self-contained system, but one that leverages whatever the underlying OS has to offer. [I could be wrong here; so, if 'the usual mavens' (Klaus ?) could confirm/contradict, that would be useful] When I set up a listField "VOX" (Hey, dead original or what?) and issued this command: put revSpeechVoices() into fld "VOX" the list coincided EXACTLY with the voices I had installed in my Operating System. When I set the fld "ff" contents to 'fishfingers' the speech made a 'right hash' of things, but did rather better with 'eat my socks': so you will find that the capacity of revSpeak is as good or as crappy as the underlying speech synthesiser (and, as far as I can work out, text-to-speech on Macintosh doesn't seem to have improved much since my kids and I were fooling around with it in Jeddah, KSA, in 1996, with Mac OS 8.1). If one makes the "mistake" of doing a search for revSpeak in the dictionary one misses all sorts of useful stuff that DOES turn up if one searches for Speech. NOT knowing much about Windows, I don't know if a text-to-speech capability is automatically installed during a "plain vanilla" install: if it isn't, one has to consider carefully about issuing standalones for Windows that leverage this capability. Richmond. On 7/4/2018 1:45 am, William Prothero via use-livecode wrote: > Folks: > I?m wondering if there is any text to speech capability in livecode. There are references to it when I do a Google search, but I don?t get any sound when I do: > > on mouseUp > revSpeak "Hello, How are you?" > end mouseUp > > I don?t get any sound. > > I would want to use it for more than a simple alert. Is this practical? > > Best, > Bill > > William A. Prothero > http://earthlearningsolutions.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 harrison at all-auctions.com Sat Apr 7 10:10:43 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 7 Apr 2018 10:10:43 -0400 Subject: Text to Speech In-Reply-To: <83719469-d4cd-a74d-cd07-a66574df992e@gmail.com> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <83719469-d4cd-a74d-cd07-a66574df992e@gmail.com> Message-ID: <584F40BE-70A3-4ECA-90F7-2F6300D7E8E7@all-auctions.com> Hi Richmond, You need to download some of the newer voices. Try Veena from India, Fiona - a Scottish voice, and Moira from Ireland. There are a ton of them out there now. Some are still better than others, but a few are quite convincing! Have fun! Rick > On Apr 7, 2018, at 4:03 AM, Richmond Mathewson via use-livecode wrote: > > as far as I can work out, > text-to-speech on Macintosh doesn't seem to have improved much since my kids and I were > fooling around with it in Jeddah, KSA, in 1996, with Mac OS 8.1). From richmondmathewson at gmail.com Sat Apr 7 10:25:43 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 7 Apr 2018 17:25:43 +0300 Subject: Text to Speech In-Reply-To: <584F40BE-70A3-4ECA-90F7-2F6300D7E8E7@all-auctions.com> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <83719469-d4cd-a74d-cd07-a66574df992e@gmail.com> <584F40BE-70A3-4ECA-90F7-2F6300D7E8E7@all-auctions.com> Message-ID: <0324d3b3-2473-7d23-cbd6-d87cbc11c131@gmail.com> I know: I nearly split my sides laughing at 'Fiona', who sounds like, one assumes, some engineer in California's stereotype. Richmond. On 7/4/2018 5:10 pm, Rick Harrison via use-livecode wrote: > Hi Richmond, > > You need to download some of the newer voices. > Try Veena from India, Fiona - a Scottish voice, > and Moira from Ireland. There are a ton of them > out there now. Some are still better than others, > but a few are quite convincing! > > Have fun! > > Rick > >> On Apr 7, 2018, at 4:03 AM, Richmond Mathewson via use-livecode wrote: >> >> as far as I can work out, >> text-to-speech on Macintosh doesn't seem to have improved much since my kids and I were >> fooling around with it in Jeddah, KSA, in 1996, with Mac OS 8.1). > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Sat Apr 7 11:01:44 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Sat, 7 Apr 2018 08:01:44 -0700 Subject: Can't seem to build standalone in LC9.0.0 In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <7A2EB1BF-9E5F-4E7D-BC8B-583D31F34F3B@gmail.com> <94285853-952D-4DB0-ADB6-E1182B756D84@earthlearningsolutions.org> Message-ID: <461C185A-857B-4BDE-A3EE-893A52E0FB31@earthlearningsolutions.org> Pianos, Thanks for the hint. I?m busy this morning, but will try your fix this afternoon and get back. Best, Bill William Prothero http://earthlearningsolutions.org > On Apr 6, 2018, at 11:06 PM, panagiotis merakos via use-livecode wrote: > > Hi Bill, > > In the error msg I saw a reference to "openstack". In LC 9 (started in RC-1 > I *think*) we no longer lock messages when building a standalone. This was > necessary to fix other problems and it is mentioned in the 9.0.0 Release > Notes under the section "Breaking Changes". > > So I wild guess is that you get that error because when building the > standalone one of these stacks receives the "openstack" message, and does > things that should not be done while building a standalone. If this is the > case, you can add this in the (pre)openstack handlers of your stacks: > > on openstack > if the mode of stack "revStandaloneProgress" > 0 then > exit openstack > end if > .. > .. > end openstack > > The same applies to "(pre)opencard", "closeStack". > > Please let us know if this fixes the problem. > > Best, > Panos > -- > ? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Sat Apr 7 11:30:50 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 7 Apr 2018 15:30:50 +0000 Subject: Project Browser Goes Blank - How To Refresh Message-ID: <6497E9A5-AD31-44AC-B694-9A6F71E36773@hindu.org> 9.0 gm Project browser always goes "blank" it there keystroke to refresh it? Sometime it requires a reboot? will not refresh, even from the menu. revApplicationOverview , OTHO, always works? so I switch to that until I have to reboot? BR From brahma at hindu.org Sat Apr 7 13:20:26 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 7 Apr 2018 17:20:26 +0000 Subject: RevMail - Status in 9,0 Message-ID: <6BCF190D-B56A-4975-BECB-F84265C526EF@hindu.org> This was working in Standalones for iOS and Android in all versions < 8.* on sendFeedBack revMail "sivasiva at hindu.org",,"SivaSiva App Feedback",\ ("Bug reports: " & cr & cr & "Describe what you did: " & cr &cr & "What happened: " & cr &cr & "What you expected to happen: " & cr &cr &cr & "Feature requests: Describe your idea in as much detail as possible." &cr &"Thank you.") end sendFeedBack But in apps made with SA - 9.0 it no longer works. I check the inclusions, to see if it was externalized, but "nada" Nothing changed in the dictionary? How to get revMail back ? BR From jerry at jhjensen.com Sat Apr 7 14:15:53 2018 From: jerry at jhjensen.com (Jerry Jensen) Date: Sat, 7 Apr 2018 11:15:53 -0700 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <5644d1b0-eedd-0d70-0544-ec7c9f596be3@fourthworld.com> <2477756B-5E8A-4350-9A9B-0234ACD4172B@gmail.com> Message-ID: <8350C488-609F-44C3-9D03-8B7770BD2D99@jhjensen.com> Yes, my slow download was via the auto updater. .Jerry > On Apr 7, 2018, at 12:15 AM, panagiotis merakos via use-livecode wrote: > > Thanks for the update Ron. I confirm the auto updater is slower compared to > a direct download from the downloads page. I'll file a bug so as we > investigate further. From brian at milby7.com Sat Apr 7 15:11:11 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 07 Apr 2018 19:11:11 +0000 Subject: RevMail - Status in 9,0 In-Reply-To: <6BCF190D-B56A-4975-BECB-F84265C526EF@hindu.org> References: <6BCF190D-B56A-4975-BECB-F84265C526EF@hindu.org> Message-ID: Yes, there was a change. I?ll have to wait until I can look at the code. It is in the common library. On Sat, Apr 7, 2018 at 1:21 PM Sannyasin Brahmanathaswami via use-livecode < use-livecode at lists.runrev.com> wrote: > This was working in Standalones for iOS and Android in all versions < 8.* > > on sendFeedBack > revMail "sivasiva at hindu.org",,"SivaSiva App Feedback",\ > ("Bug reports: " & cr & cr & "Describe what you did: " & cr &cr & "What > happened: " & cr &cr & "What you expected to happen: " & cr &cr &cr & > "Feature requests: Describe your idea in as much detail as possible." &cr > &"Thank you.") > end sendFeedBack > > But in apps made with SA - 9.0 it no longer works. > > I check the inclusions, to see if it was externalized, but "nada" > > Nothing changed in the dictionary? > How to get revMail back ? > > BR > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Apr 7 15:51:09 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 7 Apr 2018 15:51:09 -0400 Subject: Project Browser Goes Blank - How To Refresh In-Reply-To: <6497E9A5-AD31-44AC-B694-9A6F71E36773@hindu.org> References: <6497E9A5-AD31-44AC-B694-9A6F71E36773@hindu.org> Message-ID: You could also use Navigator a) System b) What are you doing when it goes blank? I've had it happen on a Mac when I'm in the midst of group whacking. On Sat, Apr 7, 2018 at 11:30 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > 9.0 gm > > Project browser always goes "blank" > > it there keystroke to refresh it? > Sometime it requires a reboot? will not refresh, even from the menu. > > revApplicationOverview , OTHO, always works? > > so I switch to that until I have to reboot? > > BR > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 brian at milby7.com Sat Apr 7 16:56:42 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 07 Apr 2018 20:56:42 +0000 Subject: RevMail - Status in 9,0 In-Reply-To: References: <6BCF190D-B56A-4975-BECB-F84265C526EF@hindu.org> Message-ID: In earlier versions the common library did not make it to mobile. revMail was internally handled by mobileComposeMail (effectively anyway). Now, the common library makes it to mobile. The above code should still work, but should call the mail app to send the mail instead of doing it inside the app. I would suggest using the ?mobileComposeMail? call instead. You just need to reorder the parameters slightly. It works for both iOS and Android. If your app is also desktop you would need to check first. I?ll need to get my environment set up to actually test though (had to look at the code on a PC for now). Looking at the dictionary, we probably should put a check in the revMail call to pass on mobile or change the dictionary entry to refer to the mobile specific version. On Sat, Apr 7, 2018 at 3:11 PM Brian Milby wrote: > Yes, there was a change. I?ll have to wait until I can look at the code. > It is in the common library. > On Sat, Apr 7, 2018 at 1:21 PM Sannyasin Brahmanathaswami via use-livecode > wrote: > >> This was working in Standalones for iOS and Android in all versions < 8.* >> >> on sendFeedBack >> revMail "sivasiva at hindu.org",,"SivaSiva App Feedback",\ >> ("Bug reports: " & cr & cr & "Describe what you did: " & cr &cr & "What >> happened: " & cr &cr & "What you expected to happen: " & cr &cr &cr & >> "Feature requests: Describe your idea in as much detail as possible." &cr >> &"Thank you.") >> end sendFeedBack >> >> But in apps made with SA - 9.0 it no longer works. >> >> I check the inclusions, to see if it was externalized, but "nada" >> >> Nothing changed in the dictionary? >> How to get revMail back ? >> >> BR >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Apr 7 17:58:47 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 7 Apr 2018 17:58:47 -0400 Subject: Widget User Defined Properties In-Reply-To: References: <6BCF190D-B56A-4975-BECB-F84265C526EF@hindu.org> Message-ID: <000d01d3cebb$9dfdf9b0$d9f9ed10$@net> I created a property called backgroundColor in a widget on the Colors pane figuring that it would be nice to have the LCS editor color it. Opened up the property inspector of the widget and it's there. The first time I change the property via script the property inspector the Colors pane gets completely whacked out. The other panes are OK. I changed the name of the property to backgroundColorUp and everything was OK. Is there a limitation that user defined widget properties can't be the name of any existing "built in" LCS recognized property? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From brian at milby7.com Sat Apr 7 18:43:32 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 07 Apr 2018 22:43:32 +0000 Subject: Widget User Defined Properties In-Reply-To: <000d01d3cebb$9dfdf9b0$d9f9ed10$@net> References: <6BCF190D-B56A-4975-BECB-F84265C526EF@hindu.org> <000d01d3cebb$9dfdf9b0$d9f9ed10$@net> Message-ID: Take a look at the code for the switchbutton. It does use backgroundcolor/hilitecolor/bordercolor but does not define a variable or handler to get/set. On Sat, Apr 7, 2018 at 5:58 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > I created a property called backgroundColor in a widget on the Colors pane > figuring that it would be nice to have the LCS editor color it. Opened up > the property inspector of the widget and it's there. The first time I > change the property via script the property inspector the Colors pane gets > completely whacked out. The other panes are OK. I changed the name of the > property to backgroundColorUp and everything was OK. Is there a limitation > that user defined widget properties can't be the name of any existing > "built in" LCS recognized property? > > 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 waprothero at gmail.com Sat Apr 7 19:08:36 2018 From: waprothero at gmail.com (William Prothero) Date: Sat, 7 Apr 2018 16:08:36 -0700 Subject: Can't seem to build standalone in LC9.0.0 In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <7A2EB1BF-9E5F-4E7D-BC8B-583D31F34F3B@gmail.com> <94285853-952D-4DB0-ADB6-E1182B756D84@earthlearningsolutions.org> Message-ID: <1F073C90-5EFA-4B53-A9A4-B611AFB3EEB0@gmail.com> Panos: That fixed it. Hmm? It seems like there are a lot more interactions between the IDE and the project, though. I haven?t decided yet if this is a good thing, or if it doesn?t matter. Bill > On Apr 6, 2018, at 11:06 PM, panagiotis merakos via use-livecode wrote: > > Hi Bill, > > In the error msg I saw a reference to "openstack". In LC 9 (started in RC-1 > I *think*) we no longer lock messages when building a standalone. This was > necessary to fix other problems and it is mentioned in the 9.0.0 Release > Notes under the section "Breaking Changes". > > So I wild guess is that you get that error because when building the > standalone one of these stacks receives the "openstack" message, and does > things that should not be done while building a standalone. If this is the > case, you can add this in the (pre)openstack handlers of your stacks: > > on openstack > if the mode of stack "revStandaloneProgress" > 0 then > exit openstack > end if > .. > .. > end openstack > > The same applies to "(pre)opencard", "closeStack". > > Please let us know if this fixes the problem. > > Best, > Panos > -- > ? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From waprothero at gmail.com Sat Apr 7 19:57:27 2018 From: waprothero at gmail.com (William Prothero) Date: Sat, 7 Apr 2018 16:57:27 -0700 Subject: Inclusions for database access? In-Reply-To: <1F073C90-5EFA-4B53-A9A4-B611AFB3EEB0@gmail.com> References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <7A2EB1BF-9E5F-4E7D-BC8B-583D31F34F3B@gmail.com> <94285853-952D-4DB0-ADB6-E1182B756D84@earthlearningsolutions.org> <1F073C90-5EFA-4B53-A9A4-B611AFB3EEB0@gmail.com> Message-ID: Folks: I?m accessing a mysql database using Andre Garza?s software, and it works perfectly in the IDE. (LC9.0.0, Mac OSX 10.13.3). However, when I build a standalone, the call just seems to hang and nothing is returned. I am assuming that I?m making some mistake with inclusions? What might I be doing wrong that is triggered in the standalone, but not the IDE? I?ve included everything in the inclusions list that seems related to internet actions. Any suggestions would much appreciated. Thanks, Bill I don?t expect that the code needs debugging, as it works fine, but just to make sure it?s clear what I?m doing, my code is: ----------------------------------------------------------------- function getAppSettings put "In getAppSettings"&cr after fld "status" put "http://earthexplorer.earthlearningsolutions.org/scgi-bin/wpserver.php" into tConfigA["url"] put "ADBDDFCFBDBBDDCCFFACGHDFFFFEEDCC" into tConfigA["encryption_key"] // Encryption Key dbSetDefaultConnectionConfiguration tConfigA put "Earth Explorer D3" into tAppName dbWhere "appName", tAppName put dbGet("app_settings") into pDataA if pDataA["data"] = "" then return "DbError: ---------- "&cr&pDataA&cr exit getAppSettings end if return pDataA["data"] end getAppSettings -------------------------------------------------------------- William A. Prothero http://earthlearningsolutions.org From rdimola at evergreeninfo.net Sat Apr 7 20:22:58 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 7 Apr 2018 20:22:58 -0400 Subject: Inclusions for database access? In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> <16EE406C-A28D-43A8-962E-497A103A2F9B@gmail.com> <7A2EB1BF-9E5F-4E7D-BC8B-583D31F34F3B@gmail.com> <94285853-952D-4DB0-ADB6-E1182B756D84@earthlearningsolutions.org> <1F073C90-5EFA-4B53-A9A4-B611AFB3EEB0@gmail.com> Message-ID: <001701d3cecf$c21514f0$463f3ed0$@net> I take it you included MySQL. Maybe Andre's library need some other inclusion like XML or json? 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 William Prothero via use-livecode Sent: Saturday, April 07, 2018 7:57 PM To: Use-livecode Use-livecode Cc: William Prothero Subject: Inclusions for database access? Folks: I?m accessing a mysql database using Andre Garza?s software, and it works perfectly in the IDE. (LC9.0.0, Mac OSX 10.13.3). However, when I build a standalone, the call just seems to hang and nothing is returned. I am assuming that I?m making some mistake with inclusions? What might I be doing wrong that is triggered in the standalone, but not the IDE? I?ve included everything in the inclusions list that seems related to internet actions. Any suggestions would much appreciated. Thanks, Bill I don?t expect that the code needs debugging, as it works fine, but just to make sure it?s clear what I?m doing, my code is: ----------------------------------------------------------------- function getAppSettings put "In getAppSettings"&cr after fld "status" put "http://earthexplorer.earthlearningsolutions.org/scgi-bin/wpserver.php" into tConfigA["url"] put "ADBDDFCFBDBBDDCCFFACGHDFFFFEEDCC" into tConfigA["encryption_key"] // Encryption Key dbSetDefaultConnectionConfiguration tConfigA put "Earth Explorer D3" into tAppName dbWhere "appName", tAppName put dbGet("app_settings") into pDataA if pDataA["data"] = "" then return "DbError: ---------- "&cr&pDataA&cr exit getAppSettings end if return pDataA["data"] end getAppSettings -------------------------------------------------------------- William A. Prothero http://earthlearningsolutions.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 brahma at hindu.org Sat Apr 7 22:13:54 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 8 Apr 2018 02:13:54 +0000 Subject: Project Browser Goes Blank - How To Refresh In-Reply-To: References: <6497E9A5-AD31-44AC-B694-9A6F71E36773@hindu.org> Message-ID: Navigator..I have it? 5.5 alpha 1? Is that the latest? PB: It happened midst of "group whacking" But more often I close stack -- its blank after that. I shall try for recipe? Mike Kerner You could also use Navigator a) System b) What are you doing when it goes blank? I've had it happen on a Mac when I'm in the midst of group whacking. From brahma at hindu.org Sat Apr 7 23:08:06 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 8 Apr 2018 03:08:06 +0000 Subject: Android Can't Find Path to Web folder Message-ID: I give up! What is the magic that gets the browser widget on Android to see a local html file (it always works in iOS) given the following directory layout myApp.livecode # the standalone is built from this /module lexicon.livecode # with nothing but a browser widget which points too: /web index.html if have tried all manner of: hard coded: set the itemdel to "/" get item 1 to -2 of the effective filename of this stack put it & "/web/index.html" into tURL set the URL of widget "Browser" to ("file://" & tURL) # this works on iOS but not on Android # Various incarnations of if isMobile() then # this work on iOS # but not on Android put specialFolderPath("engine") into tRoot set the URL of widget "Browser" to ( "file://" &tRoot & "/modules/lexicon/web/index.html") else # works on desktop put specialFolderPath("resources") into tRoot set the URL of widget "Browser" to ( "file://" &tRoot & "/web/index.html") end if ?? BR From ahsoftware at sonic.net Sat Apr 7 23:14:49 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 7 Apr 2018 20:14:49 -0700 Subject: Project Browser Goes Blank - How To Refresh In-Reply-To: <6497E9A5-AD31-44AC-B694-9A6F71E36773@hindu.org> References: <6497E9A5-AD31-44AC-B694-9A6F71E36773@hindu.org> Message-ID: On 04/07/2018 08:30 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > 9.0 gm > > Project browser always goes "blank" > > it there keystroke to refresh it? > Sometime it requires a reboot? will not refresh, even from the menu. > > revApplicationOverview , OTHO, always works? > > so I switch to that until I have to reboot? Yeah, that happens to me all the time. I just close and reopen the PB. Repeat as needed. -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Sun Apr 8 01:09:16 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 8 Apr 2018 01:09:16 -0400 Subject: Android Can't Find Path to Web folder In-Reply-To: References: Message-ID: <002301d3cef7$c13f6e40$43be4ac0$@net> BR, I do it and use the same path for both mobile platforms. The only thing I can think of is that I move the html folder tree to a folder in "the documents folder". I also zip it up for brevity in the package. When the app starts the first time(or app update) I unzip it to the documents folder. I delete the tree before unzipping for an app update. If you need the LCS of the un-zipper or folder tree deleter let me know. 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 Sannyasin Brahmanathaswami via use-livecode Sent: Saturday, April 07, 2018 11:08 PM To: How LiveCode Cc: Sannyasin Brahmanathaswami Subject: Android Can't Find Path to Web folder I give up! What is the magic that gets the browser widget on Android to see a local html file (it always works in iOS) given the following directory layout myApp.livecode # the standalone is built from this /module lexicon.livecode # with nothing but a browser widget which points too: /web index.html if have tried all manner of: hard coded: set the itemdel to "/" get item 1 to -2 of the effective filename of this stack put it & "/web/index.html" into tURL set the URL of widget "Browser" to ("file://" & tURL) # this works on iOS but not on Android # Various incarnations of if isMobile() then # this work on iOS # but not on Android put specialFolderPath("engine") into tRoot set the URL of widget "Browser" to ( "file://" &tRoot & "/modules/lexicon/web/index.html") else # works on desktop put specialFolderPath("resources") into tRoot set the URL of widget "Browser" to ( "file://" &tRoot & "/web/index.html") end if ?? BR _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alanstenhouse at hotmail.com Sun Apr 8 06:28:02 2018 From: alanstenhouse at hotmail.com (Alan) Date: Sun, 8 Apr 2018 10:28:02 +0000 Subject: Android Can't Find Path to Web folder In-Reply-To: References: Message-ID: I find that on Android you don't use the "file:" prefix - try: set the url of widget "about" to (specialFolderPath("resources") & "/web/index.html") HTH cheers Alan > On 8 Apr 2018, at 7:30 pm, Sannyasin Brahmanathaswami wrote: > > I give up! What is the magic that gets the browser widget on Android to see a local html file > > (it always works in iOS) > > given the following directory layout > > myApp.livecode # the standalone is built from this > /module > lexicon.livecode # with nothing but a browser widget which points too: > /web > index.html > > if have tried all manner of: > > hard coded: > > set the itemdel to "/" > get item 1 to -2 of the effective filename of this stack > put it & "/web/index.html" into tURL > set the URL of widget "Browser" to ("file://" & tURL) > > # this works on iOS but not on Android > > # Various incarnations of > > if isMobile() then > # this work on iOS > # but not on Android > > put specialFolderPath("engine") into tRoot > set the URL of widget "Browser" to ( "file://" &tRoot & "/modules/lexicon/web/index.html") > > else > # works on desktop > > put specialFolderPath("resources") into tRoot > set the URL of widget "Browser" to ( "file://" &tRoot & "/web/index.html") > end if > > ?? > > BR From panos.merakos at livecode.com Mon Apr 9 09:07:57 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 9 Apr 2018 14:07:57 +0100 Subject: [ANN] This Week in LiveCode 124 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #124 here: https://goo.gl/zy4eFo This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From andrew at midwestcoastmedia.com Mon Apr 9 09:15:09 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Mon, 09 Apr 2018 13:15:09 +0000 Subject: RevMail - Status in 9,0 In-Reply-To: Message-ID: <20180409131509.Horde.4aQngl_SsE4MgaJbPQZLQLj@ua850258.serversignin.com> I ran into this over the weekend but didn't check the list until this morning. After some testing I can confirm this bug appeared in 9.0.0dp11. Filed bug report @ https://quality.livecode.com/show_bug.cgi?id=21172 I'll probably look at switching my code over from revMail to mobileComposeMail as Brian Milby recommended since I'm only using this in an iOS/Android app. --Andrew Bell > From: Sannyasin Brahmanathaswami > Subject: RevMail - Status in 9,0 > This was working in Standalones for iOS and Android in all versions < 8.* > > on sendFeedBack > revMail "sivasiva at hindu.org",,"SivaSiva App Feedback",\ > ("Bug reports: " & cr & cr & "Describe what you did: " & cr &cr & > "What happened: " & cr &cr & "What you expected to happen: " & cr > &cr &cr & "Feature requests: Describe your idea in as much detail as > possible." &cr &"Thank you.") > end sendFeedBack > > But in apps made with SA - 9.0 it no longer works. > > I check the inclusions, to see if it was externalized, but "nada" > > Nothing changed in the dictionary? > How to get revMail back ? > > BR > From bobsneidar at iotecdigital.com Mon Apr 9 10:54:10 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 9 Apr 2018 14:54:10 +0000 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> Message-ID: Teleconferencing is a phone function, not a web or file server. The agreement with the ISP is that you do not try to run a business grade server out of your home without paying for a business grade internet connection. I do not think they necessarily are monitoring your traffic to try to catch you in the act, although if you used an inordinate amount of bandwidth consistently each month, that might raise some red flags. Otherwise entities would put their file and mail servers in their bathrooms, and who is stupid enough to do that?? ;-) Bob S > On Apr 6, 2018, at 11:11 , Stephen Barncard via use-livecode wrote: > > Teleconferencing and working from home has changed these dynamics. At what > point does a teleconference with 5 people not 'look' like a "server" to the > ISP? > > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org From stephen at barncard.com Mon Apr 9 10:59:06 2018 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 9 Apr 2018 07:59:06 -0700 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> Message-ID: Teleconferencing is NOT a telephone function. -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Apr 9, 2018 at 7:54 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Teleconferencing is a phone function, not a web or file server. The > agreement with the ISP is that you do not try to run a business grade > server out of your home without paying for a business grade internet > connection. I do not think they necessarily are monitoring your traffic to > try to catch you in the act, although if you used an inordinate amount of > bandwidth consistently each month, that might raise some red flags. > Otherwise entities would put their file and mail servers in their > bathrooms, and who is stupid enough to do that?? ;-) > > Bob S > > > > On Apr 6, 2018, at 11:11 , Stephen Barncard via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Teleconferencing and working from home has changed these dynamics. At > what > > point does a teleconference with 5 people not 'look' like a "server" to > the > > ISP? > > > > -- > > Stephen Barncard - Sebastopol Ca. USA - > > mixstream.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 bobsneidar at iotecdigital.com Mon Apr 9 11:05:04 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 9 Apr 2018 15:05:04 +0000 Subject: [ANN] Release 9.0.0 In-Reply-To: References: <924c9615-7f76-a318-0686-1c2cba0c4364@gmail.com> Message-ID: <396A9E68-583C-4082-9FAB-6D7F6841730B@iotecdigital.com> Depends on what you mean. On my phone I can put someone on hold, then call someone else and have them join the conversation. Or I can call a telephone number at a scheduled time and so does everyone else in the call, and a server of sorts on the Interwebs connects us all together. My point is that it is not a server running on your home network that makes this possible. Bob S > On Apr 9, 2018, at 07:59 , Stephen Barncard via use-livecode wrote: > > Teleconferencing is NOT a telephone function. > > -- > Stephen Barncard - Sebastopol Ca. USA - From brahma at hindu.org Mon Apr 9 21:23:01 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 10 Apr 2018 01:23:01 +0000 Subject: Android Can't Find Path to Web folder In-Reply-To: References: Message-ID: <0B4AE477-B157-40BE-B88E-A761D4DD25BF@hindu.org> This worked both iOS/Android There was no need to copy from when web tree to documents folder. The keys were: 1) no "file://" 2) on desktop the "resources" is the one with "lexicon.livecode" which is relative the "/web" in the same directory. But it still requires slash? in web environment slash wouldn't work, but here it's needed. Because it building an absolute path from $HOME 3) on mobile this, the full path from the Standalone executable is required. ========= on preOpenCard set the rect of widget "Browser" of me to the rect of this card # response web app?. automatically fit any screen. if isMobile() then 4 set the url of widget "Browser" to (specialFolderPath("resources") & "/modules/lexicon/web/index.html") else # desktop set the url of widget "Browser" to (specialFolderPath("resources") & "/web/index.html") end if end preOpenCard ======== On 4/8/18, 12:28 AM, "Alan" wrote: I find that on Android you don't use the "file:" prefix - try: set the url of widget "about" to (specialFolderPath("resources") & "/web/index.html") HTH cheers Alan From brahma at hindu.org Mon Apr 9 21:26:15 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 10 Apr 2018 01:26:15 +0000 Subject: RevMail - Status in 9,0 In-Reply-To: <20180409131509.Horde.4aQngl_SsE4MgaJbPQZLQLj@ua850258.serversignin.com> References: <20180409131509.Horde.4aQngl_SsE4MgaJbPQZLQLj@ua850258.serversignin.com> Message-ID: <26E310B7-612E-4E4A-80BD-44E2414C3891@hindu.org> ditto that? I only use it an mobile BR Andrew: I'll probably look at switching my code over from revMail to mobileComposeMail as Brian Milby recommended since I'm only using this in an iOS/Android app. From brian at milby7.com Mon Apr 9 22:35:57 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 10 Apr 2018 02:35:57 +0000 Subject: RevMail - Status in 9,0 In-Reply-To: <26E310B7-612E-4E4A-80BD-44E2414C3891@hindu.org> References: <20180409131509.Horde.4aQngl_SsE4MgaJbPQZLQLj@ua850258.serversignin.com> <26E310B7-612E-4E4A-80BD-44E2414C3891@hindu.org> Message-ID: I did a check tonight and do see the same issue. I changed the common library to call mobileComposeMail and it worked with subject and addressee specified. I?ll do another test to be sure it works generally as before and submit a PR. Not sure why the pass isn?t working though. On Mon, Apr 9, 2018 at 9:26 PM Sannyasin Brahmanathaswami via use-livecode < use-livecode at lists.runrev.com> wrote: > ditto that? I only use it an mobile BR > > Andrew: > I'll probably look at switching my code over from revMail to > mobileComposeMail as Brian Milby recommended since I'm only using this > in an iOS/Android app. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From info at trevix.it Tue Apr 10 05:09:20 2018 From: info at trevix.it (trevix) Date: Tue, 10 Apr 2018 11:09:20 +0200 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone Message-ID: <32CED1E3-1C97-469E-AFCB-798F9C4F0C71@trevix.it> You may want to try my stack "Piccolo Installer?, just updated to version 1.1.6 "PiccoloInstaller" is a Livecode stack, to be used to create Mac or Windows standalone installers. Since it was created on 2014, it needed an update to support latest OS and LC versions. Regards Trevix From ali.lloyd at livecode.com Tue Apr 10 05:55:55 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 10 Apr 2018 09:55:55 +0000 Subject: RevMail - Status in 9,0 In-Reply-To: References: <20180409131509.Horde.4aQngl_SsE4MgaJbPQZLQLj@ua850258.serversignin.com> <26E310B7-612E-4E4A-80BD-44E2414C3891@hindu.org> Message-ID: Just looking at the code in MCKeywordsExecCommandOrFunction, it seems that there is no provision for passing to a 'global handler' (eg mobile-specific handlers or cameraControl handlers). On Tue, Apr 10, 2018 at 3:35 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > I did a check tonight and do see the same issue. I changed the common > library to call mobileComposeMail and it worked with subject and addressee > specified. I?ll do another test to be sure it works generally as before and > submit a PR. Not sure why the pass isn?t working though. > On Mon, Apr 9, 2018 at 9:26 PM Sannyasin Brahmanathaswami via use-livecode > < > use-livecode at lists.runrev.com> wrote: > > > ditto that? I only use it an mobile BR > > > > Andrew: > > I'll probably look at switching my code over from revMail to > > mobileComposeMail as Brian Milby recommended since I'm only using > this > > in an iOS/Android app. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 brian at milby7.com Tue Apr 10 09:09:39 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 10 Apr 2018 13:09:39 +0000 Subject: RevMail - Status in 9,0 In-Reply-To: References: <20180409131509.Horde.4aQngl_SsE4MgaJbPQZLQLj@ua850258.serversignin.com> <26E310B7-612E-4E4A-80BD-44E2414C3891@hindu.org> Message-ID: I was looking at the code last night for mobile mail. There are slight differences in how the two work besides just allowing attachments. There is some commented out code in the revMail version that still is in the mobileComposeMail version. Can?t remember if that was the iOS specific one or the general one right now though. Quick fix is probably just to use mobileComposeMail in the common library revMail handler. I did try that but didn?t verify sender only worked as before. On Tue, Apr 10, 2018 at 5:56 AM Ali Lloyd via use-livecode < use-livecode at lists.runrev.com> wrote: > Just looking at the code in MCKeywordsExecCommandOrFunction, it seems that > there is no provision for passing to a 'global handler' (eg mobile-specific > handlers or cameraControl handlers). > > On Tue, Apr 10, 2018 at 3:35 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I did a check tonight and do see the same issue. I changed the common > > library to call mobileComposeMail and it worked with subject and > addressee > > specified. I?ll do another test to be sure it works generally as before > and > > submit a PR. Not sure why the pass isn?t working though. > > On Mon, Apr 9, 2018 at 9:26 PM Sannyasin Brahmanathaswami via > use-livecode > > < > > use-livecode at lists.runrev.com> wrote: > > > > > ditto that? I only use it an mobile BR > > > > > > Andrew: > > > I'll probably look at switching my code over from revMail to > > > mobileComposeMail as Brian Milby recommended since I'm only using > > this > > > in an iOS/Android app. > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 andrew at midwestcoastmedia.com Tue Apr 10 09:36:24 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Tue, 10 Apr 2018 13:36:24 +0000 Subject: LCG Session Suggestions In-Reply-To: Message-ID: <20180410133624.Horde.sjbrgMNqaim16XlcIKLCKlw@ua850258.serversignin.com> Has there been a session where someone showed a bug fix with pull request? I recently tried to try a simple contribution (updating a Dictionary entry) and found myself struggling (Git virgin). I know there are lots of Github tutorials (and Trevor did a tutorial with Git/Levure @ LC Global 17 day 2), but would be nice to see a demo explaining LiveCode branches etc. --Andrew Bell From tom at makeshyft.com Tue Apr 10 10:29:23 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 10 Apr 2018 10:29:23 -0400 Subject: LCG Session Suggestions In-Reply-To: <20180410133624.Horde.sjbrgMNqaim16XlcIKLCKlw@ua850258.serversignin.com> References: <20180410133624.Horde.sjbrgMNqaim16XlcIKLCKlw@ua850258.serversignin.com> Message-ID: I would watch that..I was looking for that yesterday, while thinking about adding something to the httpd library. I would watch that one. On Tue, Apr 10, 2018 at 9:36 AM, Andrew Bell via use-livecode < use-livecode at lists.runrev.com> wrote: > Has there been a session where someone showed a bug fix with pull request? > I recently tried to try a simple contribution (updating a Dictionary entry) > and found myself struggling (Git virgin). I know there are lots of Github > tutorials (and Trevor did a tutorial with Git/Levure @ LC Global 17 day 2), > but would be nice to see a demo explaining LiveCode branches etc. > > --Andrew Bell > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Tue Apr 10 10:30:46 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 10 Apr 2018 10:30:46 -0400 Subject: LCG Session Suggestions In-Reply-To: References: <20180410133624.Horde.sjbrgMNqaim16XlcIKLCKlw@ua850258.serversignin.com> Message-ID: I have finally decided what I will be adding to the September Sessions.... Multi-Core Processing in LC. No idea how thats gonna happen, but I need it for my own projects, so I'll have to find a solution. :D On Tue, Apr 10, 2018 at 10:29 AM, Tom Glod wrote: > I would watch that..I was looking for that yesterday, while thinking about > adding something to the httpd library. > > I would watch that one. > > On Tue, Apr 10, 2018 at 9:36 AM, Andrew Bell via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Has there been a session where someone showed a bug fix with pull >> request? I recently tried to try a simple contribution (updating a >> Dictionary entry) and found myself struggling (Git virgin). I know there >> are lots of Github tutorials (and Trevor did a tutorial with Git/Levure @ >> LC Global 17 day 2), but would be nice to see a demo explaining LiveCode >> branches etc. >> >> --Andrew Bell >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From brian at milby7.com Tue Apr 10 11:07:45 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 10 Apr 2018 15:07:45 +0000 Subject: LCG Session Suggestions In-Reply-To: References: <20180410133624.Horde.sjbrgMNqaim16XlcIKLCKlw@ua850258.serversignin.com> Message-ID: My session last month was on setting up to build from source including submitting a PR. Most of the info is in the screen shots on the slides so it is easy to skip through the slides. On Tue, Apr 10, 2018 at 10:31 AM Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > I have finally decided what I will be adding to the September Sessions.... > > Multi-Core Processing in LC. No idea how thats gonna happen, but I need it > for my own projects, so I'll have to find a solution. :D > > On Tue, Apr 10, 2018 at 10:29 AM, Tom Glod wrote: > > > I would watch that..I was looking for that yesterday, while thinking > about > > adding something to the httpd library. > > > > I would watch that one. > > > > On Tue, Apr 10, 2018 at 9:36 AM, Andrew Bell via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Has there been a session where someone showed a bug fix with pull > >> request? I recently tried to try a simple contribution (updating a > >> Dictionary entry) and found myself struggling (Git virgin). I know there > >> are lots of Github tutorials (and Trevor did a tutorial with Git/Levure > @ > >> LC Global 17 day 2), but would be nice to see a demo explaining LiveCode > >> branches etc. > >> > >> --Andrew Bell > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 Tue Apr 10 11:37:09 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 10 Apr 2018 15:37:09 +0000 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: <32CED1E3-1C97-469E-AFCB-798F9C4F0C71@trevix.it> References: <32CED1E3-1C97-469E-AFCB-798F9C4F0C71@trevix.it> Message-ID: <1BE1856D-DECC-4A00-B724-4C75A63E0D98@iotecdigital.com> Links? Bob S > On Apr 10, 2018, at 02:09 , trevix via use-livecode wrote: > > You may want to try my stack "Piccolo Installer?, just updated to version 1.1.6 > > "PiccoloInstaller" is a Livecode stack, to be used to create Mac or Windows standalone installers. > Since it was created on 2014, it needed an update to support latest OS and LC versions. > > Regards > Trevix From brahma at hindu.org Tue Apr 10 11:47:40 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 10 Apr 2018 15:47:40 +0000 Subject: 9.0 Crashes Constantluy Message-ID: 9.0 gm is the most unstable version in a long time Constantly crash on exit. I set break point, set to debug mode, run script? it does not break that break point? run it again, crash. Scripts are setting, applied "green button" close, saved. Re-opened "what happened to my changes?" Anyone else having these problem? Look like I have to go back to 8.1.9 to get work done. BR From matthias_livecode_150811 at m-r-d.de Tue Apr 10 11:52:40 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 10 Apr 2018 17:52:40 +0200 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: <1BE1856D-DECC-4A00-B724-4C75A63E0D98@iotecdigital.com> References: <32CED1E3-1C97-469E-AFCB-798F9C4F0C71@trevix.it> <1BE1856D-DECC-4A00-B724-4C75A63E0D98@iotecdigital.com> Message-ID: <64B7DE23-02C4-4527-BA76-FD4ABD24D1B0@m-r-d.de> This is what i?ve found https://www.software.trevix.it/piccolo_installer/ Matthias > Am 10.04.2018 um 17:37 schrieb Bob Sneidar via use-livecode >: > > Links? > > Bob S > > >> On Apr 10, 2018, at 02:09 , trevix via use-livecode > wrote: >> >> You may want to try my stack "Piccolo Installer?, just updated to version 1.1.6 >> >> "PiccoloInstaller" is a Livecode stack, to be used to create Mac or Windows standalone installers. >> Since it was created on 2014, it needed an update to support latest OS and LC versions. >> >> Regards >> Trevix > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ali.lloyd at livecode.com Tue Apr 10 11:56:48 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 10 Apr 2018 15:56:48 +0000 Subject: LCG Session Suggestions In-Reply-To: References: <20180410133624.Horde.sjbrgMNqaim16XlcIKLCKlw@ua850258.serversignin.com> Message-ID: I also recommend reading the docs contribution guide: https://github.com/livecode/livecode/blob/develop/docs/contributing_to_docs.md which applies more or less equally to small code changes. On Tue, Apr 10, 2018 at 4:07 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > My session last month was on setting up to build from source including > submitting a PR. Most of the info is in the screen shots on the slides so > it is easy to skip through the slides. > On Tue, Apr 10, 2018 at 10:31 AM Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I have finally decided what I will be adding to the September > Sessions.... > > > > Multi-Core Processing in LC. No idea how thats gonna happen, but I need > it > > for my own projects, so I'll have to find a solution. :D > > > > On Tue, Apr 10, 2018 at 10:29 AM, Tom Glod wrote: > > > > > I would watch that..I was looking for that yesterday, while thinking > > about > > > adding something to the httpd library. > > > > > > I would watch that one. > > > > > > On Tue, Apr 10, 2018 at 9:36 AM, Andrew Bell via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > >> Has there been a session where someone showed a bug fix with pull > > >> request? I recently tried to try a simple contribution (updating a > > >> Dictionary entry) and found myself struggling (Git virgin). I know > there > > >> are lots of Github tutorials (and Trevor did a tutorial with > Git/Levure > > @ > > >> LC Global 17 day 2), but would be nice to see a demo explaining > LiveCode > > >> branches etc. > > >> > > >> --Andrew Bell > > >> > > >> > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode 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 Tue Apr 10 11:57:46 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 10 Apr 2018 16:57:46 +0100 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: <1A5DC56B-4E2C-4548-AF81-BFC4C4D0025D@iotecdigital.com> References: <1C26ADA3-C056-4F81-BF62-4A1C1C5C2499@iotecdigital.com> <9F0898A1-5AA6-4940-950A-D7FF20B2BEEC@mac.com> <1A5DC56B-4E2C-4548-AF81-BFC4C4D0025D@iotecdigital.com> Message-ID: Babysitting over, tried it, it works! Thanks a million. BTW Trevor?s suggestion of > PrivilegesRequired=admin didn?t work, and didn?t even get the install process to ask the user to change the privileges, which surprised me, but then I know nothing. Thanks for all the patient readers that helped with this. Graham I wrote: > Woo! That looks promising! Will try it - have to go babysitting now, but soon enough? > > Thanks > > Graham > >> On 5 Apr 2018, at 15:46, Bob Sneidar via use-livecode wrote: >> >> Just poking around, a manifest is like a config file for the app. As I mentioned, your installer maker solution may have a way to configure one. If not, apparently there are solutions that allow you to post process your executable to include one. >> >> Also worth considering, in the Windows tab of the Standalone Application Settings, at the bottom of the window is a popup menu for UAC settings. Unless your app will require Administrative Access to the file system, I would set this to Same as Invoker. Apparently this wil create some kind of manifest. Also, the app will run with the same permissions as the caller. This should prevent Windows from thinking the app must be run as an administrator. >> >> Bob S >> >> >>> On Apr 5, 2018, at 06:58 , Graham Samuel via use-livecode wrote: >>> >>> Hmm, thanks for the discussion. I see that it is not a straightforward issue, and I am probably forced to get my hands dirty in the world of Windows. I am aching for a very simple set of step-by-step instructions, but of course that is not the job of anyone on this list! BTW, I am also asking in the Inno Setup forum, and have had some replies, but despite my references to LiveCode, it appears that nobody there can believe I?m not using Visual Basic or C++. There is dark talk of manifests, about which I know nothing, but maybe I can piece together an idiot?s solution. >> >> _______________________________________________ >> From ahsoftware at sonic.net Tue Apr 10 12:01:41 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 10 Apr 2018 09:01:41 -0700 Subject: ANN: PowerTools 2.0.12 Message-ID: <971e1529-2082-d1bc-619c-33432390365d@sonic.net> Now that version 9.0 of LiveCode has been released, we're announcing the new build of PowerTools. Upgrades are always free for existing users, and it's still only $40 US for new users. Current registered users: You will need your username and registration code to download the file. If you need your registration code again for any reason, drop me a line. PowerTools 2.0.12 is a drop-in plugin replacement for the IDE's built-in tools palette. It gives you * better controls organization * natively-drawn controls (not monochrome svg) * improved paint tools with persistent properties * additional controls * widget organization using folders and aliases * save screen real estate (double-click to minimize or restore) * improved widget image cacheing for speed * much, much more see more at: http://www.ahsoftware.net/PowerTools/PowerTools.lc -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Tue Apr 10 12:10:58 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 10 Apr 2018 18:10:58 +0200 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: References: <1C26ADA3-C056-4F81-BF62-4A1C1C5C2499@iotecdigital.com> <9F0898A1-5AA6-4940-950A-D7FF20B2BEEC@mac.com> <1A5DC56B-4E2C-4548-AF81-BFC4C4D0025D@iotecdigital.com> Message-ID: > Am 10.04.2018 um 17:57 schrieb Graham Samuel via use-livecode >: > > Babysitting over, tried it, it works! > > Thanks a million. > > BTW Trevor?s suggestion of > >> PrivilegesRequired=admin > So if it?s working now with that setting and did not work w/o it then that might be a bug in Innnosetup. According to the docs of Innosetup this is the default setting and therefore does not need to be specified. Graham, did you try InstaMaker? And if so, did this happen with an Installer created with InstaMaker also? I will add that setting in InstaMaker anyway. Just to make sure. Matthias From ahsoftware at sonic.net Tue Apr 10 12:16:06 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 10 Apr 2018 09:16:06 -0700 Subject: 9.0 Crashes Constantluy In-Reply-To: References: Message-ID: <3f308750-3faf-fbd7-582a-14bcb4c72201@sonic.net> On 04/10/2018 08:47 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > Anyone else having these problem? I was having some similar problems last night. Then I closed LC9, launched 8.1.9, closed that and relaunched 9 and the problems magically disappeared. When I was having trouble I noticed that attempting to save the stack I was working on was actually trying to save "/Users/ben/.../revsav/..." and more characters that disappeared off the edge of the dialog. I assume that's why changes didn't get saved. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Tue Apr 10 12:18:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 10 Apr 2018 16:18:33 +0000 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: References: <1C26ADA3-C056-4F81-BF62-4A1C1C5C2499@iotecdigital.com> <9F0898A1-5AA6-4940-950A-D7FF20B2BEEC@mac.com> <1A5DC56B-4E2C-4548-AF81-BFC4C4D0025D@iotecdigital.com> Message-ID: I think he is saying that PrivilegesRequired=admin DOESN'T work, as I suspected. There is no point to running a Windows app as an administrator unless it is capable of modifying system files or altering settings only an admin can modify. By settings the UAC level to Same as Invoker (which IMHO ought to be the default) it worked for him. At least that is what I got from his email. Bob S > On Apr 10, 2018, at 09:10 , Matthias Rebbe via use-livecode wrote: > > So if it?s working now with that setting and did not work w/o it then that might be a bug in Innnosetup. > According to the docs of Innosetup this is the default setting and therefore does not need to be specified. From waprothero at gmail.com Tue Apr 10 12:29:10 2018 From: waprothero at gmail.com (William Prothero) Date: Tue, 10 Apr 2018 09:29:10 -0700 Subject: 9.0 Crashes Constantluy In-Reply-To: References: Message-ID: <010F2A5C-580A-4A85-B730-2130FD001A01@gmail.com> BR: I have not tried to build standalones during the last few releases, but with the latest 9.0.0, I am. I notice that when I build my standalone, it loads all of the stacks in the ?Stacks? list (in standalone settings. Also, I use a splash stack approach) and leaves them in memory. So, when I want to do a debug after building and trying the standalone, I have all of my stacks loaded and it interferes with my workflow. I?d really like the project to return to the state I started with. It also seems to run scripts in my project which sets various globals. Note: I have implemented Panos? suggestion to test for the mode of stack ?revStandaloneProgress?. I have a script that returns the project to it?s initial state, but to be safe, I find this behavior forces me to quit livecode and reload it, to make sure my project is returned to its initial state for continued debugging. This seems like an undesirable behavior. I can live with it, but ?. Best, Bill William A. Prothero http://earthlearningsolutions.org > On Apr 10, 2018, at 8:47 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > > 9.0 gm is the most unstable version in a long time > > Constantly crash on exit. > > I set break point, set to debug mode, run script? it does not break that break point? run it again, crash. > Scripts are setting, applied "green button" close, saved. Re-opened "what happened to my changes?" > > Anyone else having these problem? > > Look like I have to go back to 8.1.9 to get work done. > > BR > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Apr 10 12:39:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 10 Apr 2018 16:39:41 +0000 Subject: 9.0 Crashes Constantluy In-Reply-To: <010F2A5C-580A-4A85-B730-2130FD001A01@gmail.com> References: <010F2A5C-580A-4A85-B730-2130FD001A01@gmail.com> Message-ID: This is the same issue I have been talking about for over a year. The standalone builder opens the *copied* stacks in memory and doesn't close them, so the next time you build for another platform you run into duplicate stack issues. This started happening around v7 I think. The workaround at present is to build for one platform only, and quit LC each time. I suppose you could have a script that purges the openStacks and unregisters any libraries (stacksInUse) but that would cause plugin issues, unless you accounted for those. Bob S > On Apr 10, 2018, at 09:29 , William Prothero via use-livecode wrote: > > BR: > I have not tried to build standalones during the last few releases, but with the latest 9.0.0, I am. I notice that when I build my standalone, it loads all of the stacks in the ?Stacks? list (in standalone settings. Also, I use a splash stack approach) and leaves them in memory. So, when I want to do a debug after building and trying the standalone, I have all of my stacks loaded and it interferes with my workflow. I?d really like the project to return to the state I started with. It also seems to run scripts in my project which sets various globals. Note: I have implemented Panos? suggestion to test for the mode of stack ?revStandaloneProgress?. I have a script that returns the project to it?s initial state, but to be safe, I find this behavior forces me to quit livecode and reload it, to make sure my project is returned to its initial state for continued debugging. > > This seems like an undesirable behavior. I can live with it, but ?. > > Best, > Bill > > William A. Prothero From livfoss at mac.com Tue Apr 10 13:14:39 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 10 Apr 2018 18:14:39 +0100 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: References: <1C26ADA3-C056-4F81-BF62-4A1C1C5C2499@iotecdigital.com> <9F0898A1-5AA6-4940-950A-D7FF20B2BEEC@mac.com> <1A5DC56B-4E2C-4548-AF81-BFC4C4D0025D@iotecdigital.com> Message-ID: Hi Bob Yes, your interpretation is right. InnoSetup didn?t mind the line PrivilegesRequired line (no error flagged up) but the behaviour of the final step of the installation - launch the app - gave the same error as before. But modifying the Standalone Settings as you suggested did the trick. I agree with your opinion of the UAC default. What I don?t understand is why there haven?t been more complaints about this. Heaven knows, it?s a pretty obscure and irritating process (creating installers for OS?s that one doesn?t know intimately) but you?d think others would have had the same problems as I did. Graham > On 10 Apr 2018, at 17:18, Bob Sneidar via use-livecode wrote: > > I think he is saying that PrivilegesRequired=admin DOESN'T work, as I suspected. There is no point to running a Windows app as an administrator unless it is capable of modifying system files or altering settings only an admin can modify. By settings the UAC level to Same as Invoker (which IMHO ought to be the default) it worked for him. At least that is what I got from his email. > > Bob S > > >> On Apr 10, 2018, at 09:10 , Matthias Rebbe via use-livecode wrote: >> >> So if it?s working now with that setting and did not work w/o it then that might be a bug in Innnosetup. >> According to the docs of Innosetup this is the default setting and therefore does not need to be specified. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Apr 10 13:18:18 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 10 Apr 2018 18:18:18 +0100 Subject: [OT, maybe] - configuring a Windows Installer for a Standalone In-Reply-To: References: <1C26ADA3-C056-4F81-BF62-4A1C1C5C2499@iotecdigital.com> <9F0898A1-5AA6-4940-950A-D7FF20B2BEEC@mac.com> <1A5DC56B-4E2C-4548-AF81-BFC4C4D0025D@iotecdigital.com> Message-ID: <734396F2-B4A4-48DF-97F3-5AFB646BDFC7@mac.com> Hi Matthias I stopped trying to use InstaMaker some time ago, but I?m sorry to say I can?t remember why - maybe I was just worried that as things were not working, there were too many variables for me to cope with. The reason I?ve forgotten is that I have had a pause in my development work (there is life outside LC, as I am now and then reminded by my nearest and dearest). Anyway I hope to try InstaMaker again shortly. Graham > On 10 Apr 2018, at 17:10, Matthias Rebbe via use-livecode wrote: > > Graham, did you try InstaMaker? And if so, did this happen with an Installer created with InstaMaker also? > > > I will add that setting in InstaMaker anyway. Just to make sure. > > Matthias From richmondmathewson at gmail.com Tue Apr 10 14:00:55 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 10 Apr 2018 21:00:55 +0300 Subject: LiveCode 9.0 stable Upgrade? Message-ID: <2eea7b83-ade2-d4e4-dac6-c695c007722f@gmail.com> Very, very queer indeed. I cracked open LiveCode 9.0 stable on Xubuntu 64-bit 18.04 and was offered the chance to upgrade to 9.0 - gm . . . . . . which I am currently doing . . . [as observed elsewhere: the in-IDE update process is glacially slow] . . . . . . cripes . . . Well; that's odd: no new version of LC showing up in any of the menus. Although, now, when I lauch 9.0 it states "No new updates available" Is this a sneaky update? Richmond. From dunbarx at aol.com Tue Apr 10 14:14:56 2018 From: dunbarx at aol.com (dunbarx) Date: Tue, 10 Apr 2018 11:14:56 -0700 (MST) Subject: 9.0 Crashes Constantluy In-Reply-To: References: <010F2A5C-580A-4A85-B730-2130FD001A01@gmail.com> Message-ID: <1523384096721-0.post@n4.nabble.com> I have never seen this through 8.1.8. But all my stacks that I make standalones from are set to destroy themselves. Is that possibly the reason? Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From brahma at hindu.org Tue Apr 10 14:46:16 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 10 Apr 2018 18:46:16 +0000 Subject: 9.0 Crashes Constantluy In-Reply-To: References: <010F2A5C-580A-4A85-B730-2130FD001A01@gmail.com> Message-ID: I confirmed it this morning, edit script, apply, save, close the stack, I been building Android, so much faster than iOS. Run standlone from the Test menu. then, magically, tragically, the debugger opens showing my old script there! quit LC, reboot, and you script is there? Even quitting LC doesn't preserve your can changes. Back to 8.1.9 On 4/10/18, 6:39 AM, "use-livecode on behalf of Bob Sneidar via use-livecode" wrote: This is the same issue I have been talking about for over a year. The standalone builder opens the *copied* stacks in memory and doesn't close them, so the next time you build for another platform you run into duplicate stack issues. This started happening around v7 I think. The workaround at present is to build for one platform only, and quit LC each time. I suppose you could have a script that purges the openStacks and unregisters any libraries (stacksInUse) but that would cause plugin issues, unless you accounted for those. Bob S From devin_asay at byu.edu Tue Apr 10 15:36:17 2018 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 10 Apr 2018 19:36:17 +0000 Subject: LCG Session Suggestions In-Reply-To: References: <20180410133624.Horde.sjbrgMNqaim16XlcIKLCKlw@ua850258.serversignin.com> Message-ID: Ali, I notice that in that doc you are still directing people to use the develop-8.2 branch for submitting PRs for dictionary updates. Is that still the branch you want us to use? Devin On Apr 10, 2018, at 9:56 AM, Ali Lloyd via use-livecode > wrote: I also recommend reading the docs contribution guide: https://github.com/livecode/livecode/blob/develop/docs/contributing_to_docs.md which applies more or less equally to small code changes. On Tue, Apr 10, 2018 at 4:07 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: My session last month was on setting up to build from source including submitting a PR. Most of the info is in the screen shots on the slides so it is easy to skip through the slides. On Tue, Apr 10, 2018 at 10:31 AM Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: I have finally decided what I will be adding to the September Sessions.... Multi-Core Processing in LC. No idea how thats gonna happen, but I need it for my own projects, so I'll have to find a solution. :D On Tue, Apr 10, 2018 at 10:29 AM, Tom Glod wrote: I would watch that..I was looking for that yesterday, while thinking about adding something to the httpd library. I would watch that one. On Tue, Apr 10, 2018 at 9:36 AM, Andrew Bell via use-livecode < use-livecode at lists.runrev.com> wrote: Has there been a session where someone showed a bug fix with pull request? I recently tried to try a simple contribution (updating a Dictionary entry) and found myself struggling (Git virgin). I know there are lots of Github tutorials (and Trevor did a tutorial with Git/Levure @ LC Global 17 day 2), but would be nice to see a demo explaining LiveCode branches etc. --Andrew Bell _______________________________________________ use-livecode mailing list use-livecode 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 Devin Asay Director Office of Digital Humanities Brigham Young University From ali.lloyd at livecode.com Tue Apr 10 16:05:28 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 10 Apr 2018 20:05:28 +0000 Subject: LCG Session Suggestions In-Reply-To: References: <20180410133624.Horde.sjbrgMNqaim16XlcIKLCKlw@ua850258.serversignin.com> Message-ID: Oops, no it should be develop-9.0 now. Another task to add to the major version GM release checklist! On Tue, Apr 10, 2018 at 8:36 PM Devin Asay via use-livecode < use-livecode at lists.runrev.com> wrote: > Ali, > > I notice that in that doc you are still directing people to use the > develop-8.2 branch for submitting PRs for dictionary updates. Is that still > the branch you want us to use? > > Devin > > On Apr 10, 2018, at 9:56 AM, Ali Lloyd via use-livecode < > use-livecode at lists.runrev.com> > wrote: > > I also recommend reading the docs contribution guide: > > https://github.com/livecode/livecode/blob/develop/docs/contributing_to_docs.md > which applies more or less equally to small code changes. > > On Tue, Apr 10, 2018 at 4:07 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > My session last month was on setting up to build from source including > submitting a PR. Most of the info is in the screen shots on the slides so > it is easy to skip through the slides. > On Tue, Apr 10, 2018 at 10:31 AM Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > I have finally decided what I will be adding to the September > Sessions.... > > Multi-Core Processing in LC. No idea how thats gonna happen, but I need > it > for my own projects, so I'll have to find a solution. :D > > On Tue, Apr 10, 2018 at 10:29 AM, Tom Glod wrote: > > I would watch that..I was looking for that yesterday, while thinking > about > adding something to the httpd library. > > I would watch that one. > > On Tue, Apr 10, 2018 at 9:36 AM, Andrew Bell via use-livecode < > use-livecode at lists.runrev.com> wrote: > > Has there been a session where someone showed a bug fix with pull > request? I recently tried to try a simple contribution (updating a > Dictionary entry) and found myself struggling (Git virgin). I know > there > are lots of Github tutorials (and Trevor did a tutorial with > Git/Levure > @ > LC Global 17 day 2), but would be nice to see a demo explaining > LiveCode > branches etc. > > --Andrew Bell > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 > > Devin Asay > Director > 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 devin_asay at byu.edu Tue Apr 10 16:53:59 2018 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 10 Apr 2018 20:53:59 +0000 Subject: LCG Session Suggestions In-Reply-To: <20180410133624.Horde.sjbrgMNqaim16XlcIKLCKlw@ua850258.serversignin.com> References: <20180410133624.Horde.sjbrgMNqaim16XlcIKLCKlw@ua850258.serversignin.com> Message-ID: A couple of years ago, when I was doing lots of dictionary fixes, I created a checklist for myself of how to do it and what to look for. Maybe others will find it helpful: https://github.com/asayd/livecode/blob/asayd-docs_editing_checklist/docs/dictionary_editing_checklist.md Devin On Apr 10, 2018, at 7:36 AM, Andrew Bell via use-livecode > wrote: Has there been a session where someone showed a bug fix with pull request? I recently tried to try a simple contribution (updating a Dictionary entry) and found myself struggling (Git virgin). I know there are lots of Github tutorials (and Trevor did a tutorial with Git/Levure @ LC Global 17 day 2), but would be nice to see a demo explaining LiveCode branches etc. --Andrew Bell _______________________________________________ use-livecode mailing list use-livecode 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 Director Office of Digital Humanities Brigham Young University From ambassador at fourthworld.com Tue Apr 10 16:59:05 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 Apr 2018 13:59:05 -0700 Subject: Can't seem to build standalone in LC9.0.0 In-Reply-To: References: Message-ID: Panos wrote: > In the error msg I saw a reference to "openstack". In LC 9 (started in > RC-1 I *think*) we no longer lock messages when building a standalone. > This was necessary to fix other problems and it is mentioned in the > 9.0.0 Release Notes under the section "Breaking Changes". I'm sure there's a good reason for that, but it sounds like a world of hurt. In fact, standalone building has long been more disruptive to the development workflow than it could be. Any reason standalone building can't be done in a separate process? That way we could keep our setup just how we like it while we're working, initiate the build, and not have the flashing of flying windows coming and going and re-inititializing our apps just to get something tested as a standalone. -- 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 brahma at hindu.org Tue Apr 10 22:40:01 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 11 Apr 2018 02:40:01 +0000 Subject: Getting Orientation Enforced on Phone Message-ID: <382909CE-3C5A-4335-AB95-A5F3E10AEA16@hindu.org> # using this method to change stack go cardOrStackObject # e.g go "gems" (or this string) go card 3 of "gems" wait 100 milliseconds with messages close stack oStackName wait 100 milliseconds with messages # don't try to go in same window method ( we used "set the fullscreenmode of this stack to "showAll" in all stacks) Now, we can get orientation "enforced" on iOS going one way -- portrait to landscape -- but not coming back for -- landscape to portrait -- Users sees the bottom on the portrait, until right they phone upright) Android is worse, the landscape stack is rendering horizontally on a portrait screen until they rotate the phone. and vice versa I really need to phone to "enforce" , regardless of phone is held. You can't have a game/map (landscape) open "miniaturized" by portrait mobileSetAllowedOrientations "landscape left,landscape right" OR mobileSetAllowedOrientations "landscape left,landscape right" the dictionary says "the setting take affect the next time an orientation change is applied" But it is enforced to iOS going for portrait to landscape. Why not to other way? And either way on Android Has anyone solved this problem. BR From cszasz at mac.com Wed Apr 11 00:25:01 2018 From: cszasz at mac.com (Charles Szasz) Date: Tue, 10 Apr 2018 22:25:01 -0600 Subject: WordReport Help Message-ID: I am having difficulty with a data tag in WordReport. I am using LC 6.1.3. How do you keep a data tag from inserting an extra line after the data tag? I have one data tag that keeps inserting an extra line before a non-data tag line. The data tag has a cr immediately after it. When a Word document is created, the cr is moved to the next line creating an extra line. I have look at formatting but cannot figure how to fix the problem. Sent from my iPad From curry at pair.com Wed Apr 11 08:46:07 2018 From: curry at pair.com (Curry Kenworthy) Date: Wed, 11 Apr 2018 08:46:07 -0400 Subject: WordReport Help In-Reply-To: References: Message-ID: <5ACE038F.7060301@pair.com> > How do you keep a data tag from inserting > an extra line after the data tag? BTW, Charles is aware that I can look into this issue if he sends me a test stack and template to examine precisely what's going on with the tag and the data. I may charge a fee if I need to edit templates or user code. Unfortunately I don't feel on firm ground to venture an opinion on this one myself without seeing the actual test. Otherwise too many unknowns! Thanks, Charles. Best wishes, Curry Kenworthy WordLib: Take charge of MS Word and OpenOffice documents SpreadLib: "Excel-lent" spreadsheet import/export for LC http://livecodeaddons.com/ From iangmcknight at gmail.com Wed Apr 11 09:53:00 2018 From: iangmcknight at gmail.com (Ian McKnight) Date: Wed, 11 Apr 2018 14:53:00 +0100 Subject: DataGrid anomaly? Message-ID: Hi I have a stack that opens a data stack imports an array, processes it and displays the results in a DataGrid Table - pretty straight forward and simple stuff - and all handlers work as they should. Here is the code in the "Open File" button *on* mouseUp retrieveData augmentDataArray displayDataInDataGrid -- problem handler *end* mouseUp All handlers are card Scripts. The handler causing problems is *command* displayDataInDataGrid *put* createTabbedDataList() into tTabbedDataList *set* the dgText of *group* "dgDataDisplay" to tTabbedDataList -- line 155 *end* displayDataInDataGrid When called from the "Open File" button I get the following error * card id 1002: execution error at line 155 (Chunk: can't find background), char 1* However when I remove the call in the "Open File" script and call displayDataInDataGrid from a different mouseUp handler it works perfectly. Can anyone shed light on this. I'm Using LC 9.0 Indy and have tried it in LC Indy 8.1.9 Thanks for any help. -- Regards Ian McKnight iangmcknight at gmail.com ======================= Virus-free. www.avast.com <#m_8474091317351636961_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> From bobsneidar at iotecdigital.com Wed Apr 11 10:41:12 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Apr 2018 14:41:12 +0000 Subject: DataGrid anomaly? In-Reply-To: References: Message-ID: <5E4EF720-6B04-460E-AD40-0DB8DE1DBBC6@iotecdigital.com> First, I'm curious why you are not simpy setting the dgData to an array. But that aside, what is the name of your datagrid? The error is indicating there is no group by that name on the current card. Another thing that can throw you is if the stack is opened modally. Then it's not the topStack, so relative references will be for the currentCard of the topStack. In your button try: put getParentCard(the long id of me) into tThisCard then when you refer to your datagrid use group "dgDataDisplay" of tThisCard (assuming it's on the same card as the button) Put this handler in a library or in the script of your button: function getParentCard pObjectID put offset("card id", pObjectID) into tStartChar put char tStartChar to -1 of pObjectID into tCardID return tCardID end getParentCard Bob S > On Apr 11, 2018, at 06:53 , Ian McKnight via use-livecode wrote: > > createTabbedDataList From bobsneidar at iotecdigital.com Wed Apr 11 10:41:53 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Apr 2018 14:41:53 +0000 Subject: DataGrid anomaly? In-Reply-To: References: Message-ID: <378F1D46-574A-4F35-AF46-EE0650B5333D@iotecdigital.com> Also what happens when you step through the code? Bob S > On Apr 11, 2018, at 06:53 , Ian McKnight via use-livecode wrote: > > createTabbedDataList From iangmcknight at gmail.com Wed Apr 11 11:25:30 2018 From: iangmcknight at gmail.com (Ian McKnight) Date: Wed, 11 Apr 2018 16:25:30 +0100 Subject: DataGrid anomaly? In-Reply-To: <378F1D46-574A-4F35-AF46-EE0650B5333D@iotecdigital.com> References: <378F1D46-574A-4F35-AF46-EE0650B5333D@iotecdigital.com> Message-ID: Thanks Bob - that works fine. I had tried referencing group "dgDataDisplay" of this card - but that didn't work. So I need to be more precise in naming the card! My stack is a plain vanilla stack with a few buttons and a dataGrid on one card. When I step through the code the error occurs at line 155 but *only* when its called with the other handlers in the main button. It doesn't fail when the 'displayDataInDataGrid' handler is called from a different button. As to why I didn't set the dgText to an array - I thought it had to be a tabbed list (My array keys contain 2 or 3 sub keys and the main key needs to be decoded to provide a date, which is displayed along with the stored data and other info calculated on the fly) Again - Many thanks for your help On 11 April 2018 at 15:41, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Also what happens when you step through the code? > > Bob S > > > > On Apr 11, 2018, at 06:53 , Ian McKnight via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > createTabbedDataList > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Ian McKnight iangmcknight at gmail.com ======================= Virus-free. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> From bobsneidar at iotecdigital.com Wed Apr 11 12:08:11 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Apr 2018 16:08:11 +0000 Subject: name resolution stinker Message-ID: Ok here is a real stinker. put quote & tDataGrid & quote && "of" && tCurrentCard into tGridLongName put (there is a group tGridLongName) into tGroupExists if not tGroupExists then next repeat tGridLongName resolves to: "dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode" When in the message box I type: put there is a group "dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode" I get true. But the code: put (there is a group tGridLongName) into tGroupExists returns false. tGridLongName is not resolving in this statement. Is this another use case for DO? Bob S From bobsneidar at iotecdigital.com Wed Apr 11 12:23:26 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Apr 2018 16:23:26 +0000 Subject: name resolution stinker In-Reply-To: References: Message-ID: <28367CA7-7FC4-4D3F-BFCB-5C51305B564D@iotecdigital.com> I used DO to evaluate the statement and of course that works, but any reference to group fails to resolve. I worked around this anomaly (which I vaguely recall I've run into before) by using there is a group tDataGrid of tCurrentCard tDatagrid is the short name of the datagrid tCurrentCard is the long id of the card the datagrid is on Apparently you cannot reference an object using it's full id, but you can reference an object using it's short name and the long id of the parent! I find this odd, but oh well. Bob S > On Apr 11, 2018, at 09:08 , Bob Sneidar via use-livecode wrote: > > Ok here is a real stinker. > > put quote & tDataGrid & quote && "of" && tCurrentCard into tGridLongName > put (there is a group tGridLongName) into tGroupExists > if not tGroupExists then next repeat > > tGridLongName resolves to: > "dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode" > > When in the message box I type: > put there is a group "dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode" > > I get true. > > But the code: > put (there is a group tGridLongName) into tGroupExists > > returns false. tGridLongName is not resolving in this statement. > > Is this another use case for DO? > > Bob S From mark at canelasoftware.com Wed Apr 11 12:27:52 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Wed, 11 Apr 2018 09:27:52 -0700 Subject: Mobile Native Essentials Widget Pack Message-ID: Thanks Todd and Digital Pomegranate for the release of your first widget pack. These and the others you have planned are essential for LiveCode and its growing user-base. I just bought the widget pack. These are going to be very useful. https://livecode.com/products/thirdparty/livecode-factory/mobile-native-essentials-widget-pack-1-0-0/ Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com From ahsoftware at sonic.net Wed Apr 11 12:43:45 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 11 Apr 2018 09:43:45 -0700 Subject: name resolution stinker In-Reply-To: References: Message-ID: <9185893e-ad84-cfdc-2678-dee24038593a@sonic.net> On 04/11/2018 09:08 AM, Bob Sneidar via use-livecode wrote: > put quote & tDataGrid & quote && "of" && tCurrentCard into tGridLongName because you're using the short name of the group. put "group" && quote & tDataGrid & quote && "of" && tCurrentCard into tGridLongName or put the name of group dgsites into tDataGrid and then put quote & tDataGrid & quote && "of" && tCurrentCard into tGridLongName -- Mark Wieder ahsoftware at gmail.com From bonnmike at gmail.com Wed Apr 11 12:51:13 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 11 Apr 2018 10:51:13 -0600 Subject: name resolution stinker In-Reply-To: <28367CA7-7FC4-4D3F-BFCB-5C51305B564D@iotecdigital.com> References: <28367CA7-7FC4-4D3F-BFCB-5C51305B564D@iotecdigital.com> Message-ID: Not sure if this will be userful, but would placing the following script in your stack (or frontscript I guess) work easier? command amIHere pName try dispatch "imHere" to group pName of the current card catch tError return false end try end amIHere command imHere return true end imHere Might be cheating using try this way, but I think it should work pretty well. If the dispatch fails due to object (or in this case, background) not found error, you get false, if the dispatch is handled you get true. On Wed, Apr 11, 2018 at 10:23 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I used DO to evaluate the statement and of course that works, but any > reference to group fails > to resolve. > > I worked around this anomaly (which I vaguely recall I've run into before) > by using > there is a group tDataGrid of tCurrentCard > > tDatagrid is the short name of the datagrid > tCurrentCard is the long id of the card the datagrid is on > > Apparently you cannot reference an object using it's full id, but you can > reference an object using it's short name and the long id of the parent! I > find this odd, but oh well. > > Bob S > > > > On Apr 11, 2018, at 09:08 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Ok here is a real stinker. > > > > put quote & tDataGrid & quote && "of" && tCurrentCard into tGridLongName > > put (there is a group tGridLongName) into tGroupExists > > if not tGroupExists then next repeat > > > > tGridLongName resolves to: > > "dgsites" of card id 1002 of stack "Sites" of stack > "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms > Generator 8.livecode" > > > > When in the message box I type: > > put there is a group "dgsites" of card id 1002 of stack "Sites" of stack > "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms > Generator 8.livecode" > > > > I get true. > > > > But the code: > > put (there is a group tGridLongName) into tGroupExists > > > > returns false. tGridLongName is not resolving in this statement. > > > > Is this another use case for DO? > > > > 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 bobsneidar at iotecdigital.com Wed Apr 11 12:55:55 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Apr 2018 16:55:55 +0000 Subject: name resolution stinker In-Reply-To: <9185893e-ad84-cfdc-2678-dee24038593a@sonic.net> References: <9185893e-ad84-cfdc-2678-dee24038593a@sonic.net> Message-ID: <82DE2B3C-67B3-4B43-9D5F-BF48835459A8@iotecdigital.com> But the variable tGridLongName resolves to: "dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode" I cannot reference group tGridLongName, but I can reference group tGridShortName of Apparently there is a/an only works with short names of objects. Something in the dictionary may be a hint. It says "there is a" is implemented as an internal function so has a lower precedence as other operators. Bob S > On Apr 11, 2018, at 09:43 , Mark Wieder via use-livecode wrote: > > because you're using the short name of the group. From alex at tweedly.net Wed Apr 11 12:57:33 2018 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 11 Apr 2018 17:57:33 +0100 Subject: Mobile Native Essentials Widget Pack In-Reply-To: References: Message-ID: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> I agree these look great, and because I know Digital Pomegranate I can have lots of faith in them - so I will buy them (whenever I next want to do a mobile project). But - I have one (or maybe two) "objections" 1. I don't think items should go on sale on the store with *no* documentation available for what they are, what they do, how they are used, customization/preferences available, .... - nothing but the names of the widgets. 2. it would be really nice if there were also a desktop version of each of these. I *want* to be able to create a project that works on all platforms (and, in particular, on the ones that allow for the super-quick development cycle we get for desktop). I guess this is a comment for any widget that anyone is going to produce ... -- Alex. P.S. Hmmm - I see the same objection applies to all (or most) of the other items on the third-party store - but I still think the objection is valid :-) On 11/04/2018 17:27, Mark Talluto via use-livecode wrote: > Thanks Todd and Digital Pomegranate for the release of your first widget pack. > These and the others you have planned are essential for LiveCode and its growing user-base. > I just bought the widget pack. These are going to be very useful. > > https://livecode.com/products/thirdparty/livecode-factory/mobile-native-essentials-widget-pack-1-0-0/ > > Best regards, > > Mark Talluto > livecloud.io > nursenotes.net > 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 bobsneidar at iotecdigital.com Wed Apr 11 12:58:21 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Apr 2018 16:58:21 +0000 Subject: name resolution stinker In-Reply-To: References: <28367CA7-7FC4-4D3F-BFCB-5C51305B564D@iotecdigital.com> Message-ID: <5AD4A1D6-588E-4C54-B8EF-959D5D7AAA4B@iotecdigital.com> It probably would help but I am referencing the object in other places, for instance I am getting the tablename of group tGridLongName and that fails as well. As I posted the workaround is to reference it by group of Bob S > On Apr 11, 2018, at 09:51 , Mike Bonner via use-livecode wrote: > > Not sure if this will be userful, but would placing the following script in > your stack (or frontscript I guess) work easier? > > command amIHere pName > try > dispatch "imHere" to group pName of the current card > catch tError > return false > end try > end amIHere > > command imHere > return true > end imHere > > Might be cheating using try this way, but I think it should work pretty > well. > > If the dispatch fails due to object (or in this case, background) not found > error, you get false, if the dispatch is handled you get true. From revdev at pdslabs.net Wed Apr 11 13:11:40 2018 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 11 Apr 2018 10:11:40 -0700 Subject: WordReport Help In-Reply-To: References: Message-ID: <82098c98-65b9-3b31-d38f-214f8bfc21e0@pdslabs.net> Hi Charles, On the surface it sounds to me like it might be a text encoding issue. You could do an experiment to find out. Since the textEncode() function isn't available in LC 6.1.3, you would have to use uniEncode() to encode your Word doc content before writing it to disk and handing it off to Word. I'm rusty, but I believe you would do it like so: ??? put uniEncode(tMyContent) into url ("binfile:" & tMyDocPath) Like I said, this is an experiment to see if it makes the desired difference! But at least it might tell you something. And it's possible it will change other parts of your document into a form you don't want. And it's possible I'm altogether wrong! Best - Phil Davis On 4/10/18 9:25 PM, Charles Szasz via use-livecode wrote: > I am having difficulty with a data tag in WordReport. I am using LC 6.1.3. > > How do you keep a data tag from inserting an extra line after the data tag? I have one data tag that keeps inserting an extra line before a non-data tag line. The data tag has a cr immediately after it. When a Word document is created, the cr is moved to the next line creating an extra line. I have look at formatting but cannot figure how to fix the problem. > > 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 > -- Phil Davis From klaus at major-k.de Wed Apr 11 13:27:55 2018 From: klaus at major-k.de (Klaus major-k) Date: Wed, 11 Apr 2018 19:27:55 +0200 Subject: align object does not work with groups? Message-ID: <150AEB51-144E-4FB5-9BEC-3679786F8C15@major-k.de> Hi friends, LC 9 on a Mac, selectgroupedcontrols = false Selecting two or more groups and trying to align these two groups e.g. on the left side using the inspector palette, does not work in LC 9. Can someone confirm this? Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From ahsoftware at sonic.net Wed Apr 11 13:49:17 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 11 Apr 2018 10:49:17 -0700 Subject: name resolution stinker In-Reply-To: <82DE2B3C-67B3-4B43-9D5F-BF48835459A8@iotecdigital.com> References: <9185893e-ad84-cfdc-2678-dee24038593a@sonic.net> <82DE2B3C-67B3-4B43-9D5F-BF48835459A8@iotecdigital.com> Message-ID: <6e2259bd-a059-5290-1052-820a084ada6a@sonic.net> On 04/11/2018 09:55 AM, Bob Sneidar via use-livecode wrote: > But the variable tGridLongName resolves to: > "dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode" Exactly. It *should* resolve to group "dgsites" of... Ensure that the object type is part of tGridLongName somehow. -- Mark Wieder ahsoftware at gmail.com From cszasz at mac.com Wed Apr 11 13:52:44 2018 From: cszasz at mac.com (Charles Szasz) Date: Wed, 11 Apr 2018 11:52:44 -0600 Subject: WordReport Help Message-ID: Hi Phil, Thanks for your input! The data tag was working before this anomaly occurred. The text in the data tag is just regular text. The font is Times New Roman. The text and formatting were not changed in the data tag. I am hoping that someone who uses WordReport can give me insight on this problem. There are a few general rules in the WordReport for data tags but no suggestions to aid in resolving this type of problem. Since WordReport uses brackets for the data tags, I am guessing that it is using merge in creating a Word document. I never used merge in any of my projects. So, this problem could be possibly related to merge. I paid Curry for the initial WordReport template. Curry was very helpful in setting up the template for WordReport. It worked on a consistent basis for a few days until yesterday. I am thinking that Word for the Mac may be the culprit. I used Word for Mac in adding a data tag to the template. But no other changes were made to the template. I am going to try Word for Windows today to see if this will fix the problem. Curry indicated that he does not think Word for the Mac is the problem, however. But I am pretty sure Curry used Word for Windows in creating the data tags in the template. Sent from my iPad From ahsoftware at sonic.net Wed Apr 11 13:58:48 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 11 Apr 2018 10:58:48 -0700 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> Message-ID: On 04/11/2018 09:57 AM, Alex Tweedly via use-livecode wrote: > But - I have one (or maybe two) "objections" One other quibble: I'm normally reluctant to put down good money on something with a major version of zero. And with no visible upgrade policy or licensing. -- Mark Wieder ahsoftware at gmail.com From revdev at pdslabs.net Wed Apr 11 14:00:06 2018 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 11 Apr 2018 11:00:06 -0700 Subject: WordReport Help In-Reply-To: References: Message-ID: <6ed5ea36-30aa-23cb-1501-d16eb3c61760@pdslabs.net> While on a walk just now, I was thinking about line endings on Mac vs. Windows - they are different! I think you're right - open your original template in Word for Windows, add your tag, and save & close it. Then it will probably work as you expect. Phil On 4/11/18 10:52 AM, Charles Szasz via use-livecode wrote: > Hi Phil, > > Thanks for your input! The data tag was working before this anomaly occurred. The text in the data tag is just regular text. The font is Times New Roman. The text and formatting were not changed in the data tag. I am hoping that someone who uses WordReport can give me insight on this problem. > > There are a few general rules in the WordReport for data tags but no suggestions to aid in resolving this type of problem. Since WordReport uses brackets for the data tags, I am guessing that it is using merge in creating a Word document. I never used merge in any of my projects. So, this problem could be possibly related to merge. > > I paid Curry for the initial WordReport template. Curry was very helpful in setting up the template for WordReport. It worked on a consistent basis for a few days until yesterday. I am thinking that Word for the Mac may be the culprit. I used Word for Mac in adding a data tag to the template. But no other changes were made to the template. > > I am going to try Word for Windows today to see if this will fix the problem. Curry indicated that he does not think Word for the Mac is the problem, however. But I am pretty sure Curry used Word for Windows in creating the data tags in the template. > > > > > > 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 > -- Phil Davis From bobsneidar at iotecdigital.com Wed Apr 11 14:00:40 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Apr 2018 18:00:40 +0000 Subject: name resolution stinker In-Reply-To: <6e2259bd-a059-5290-1052-820a084ada6a@sonic.net> References: <9185893e-ad84-cfdc-2678-dee24038593a@sonic.net> <82DE2B3C-67B3-4B43-9D5F-BF48835459A8@iotecdigital.com> <6e2259bd-a059-5290-1052-820a084ada6a@sonic.net> Message-ID: <466D3BF4-638C-4E64-90C7-55977E9C166D@iotecdigital.com> Not to be argumentative, but I cannot express if there is a tGridLongName. That will not compile. Bob S > On Apr 11, 2018, at 10:49 , Mark Wieder via use-livecode wrote: > > On 04/11/2018 09:55 AM, Bob Sneidar via use-livecode wrote: >> But the variable tGridLongName resolves to: >> "dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode" > > Exactly. > It *should* resolve to group "dgsites" of... > > Ensure that the object type is part of tGridLongName somehow. > > -- > Mark Wieder > ahsoftware at gmail.com From bobsneidar at iotecdigital.com Wed Apr 11 14:05:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Apr 2018 18:05:33 +0000 Subject: WordReport Help In-Reply-To: <6ed5ea36-30aa-23cb-1501-d16eb3c61760@pdslabs.net> References: <6ed5ea36-30aa-23cb-1501-d16eb3c61760@pdslabs.net> Message-ID: <336EC398-8427-4B22-B51F-A07A8CF742CE@iotecdigital.com> Yes, no end of problems with this "helpful" thing Word for Mac does. It silently changes line endings, borking any file that expects them to be something OTHER than what the MacOS uses. For instance I cannot export an address book from a Toshiba copier and open it in MacOS, *even if I do not save it*!!! Office for Mac will silently and erroneously (IMHO) change the line endings "for me". If I do, the file will not import back into the Toshiba. Bob S > On Apr 11, 2018, at 11:00 , Phil Davis via use-livecode wrote: > > While on a walk just now, I was thinking about line endings on Mac vs. Windows - they are different! I think you're right - open your original template in Word for Windows, add your tag, and save & close it. Then it will probably work as you expect. > > Phil From bobsneidar at iotecdigital.com Wed Apr 11 14:06:54 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Apr 2018 18:06:54 +0000 Subject: Mobile Native Essentials Widget Pack In-Reply-To: References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> Message-ID: <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> There's no such thing as "good money". ;-) But I agree, it feels like I am paying for beta software, which always makes me nervous. Bob S > On Apr 11, 2018, at 10:58 , Mark Wieder via use-livecode wrote: > > One other quibble: > I'm normally reluctant to put down good money on something with a major version of zero. And with no visible upgrade policy or licensing. > > -- > Mark Wieder > ahsoftware at gmail.com From brian at milby7.com Wed Apr 11 14:50:39 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 11 Apr 2018 18:50:39 +0000 Subject: name resolution stinker In-Reply-To: <466D3BF4-638C-4E64-90C7-55977E9C166D@iotecdigital.com> References: <9185893e-ad84-cfdc-2678-dee24038593a@sonic.net> <82DE2B3C-67B3-4B43-9D5F-BF48835459A8@iotecdigital.com> <6e2259bd-a059-5290-1052-820a084ada6a@sonic.net> <466D3BF4-638C-4E64-90C7-55977E9C166D@iotecdigital.com> Message-ID: Typed the following in the message box: put the long id of me into x; put there is an x & cr & x Selected a grouped object on a substack and pressed return. Got true and the long ID. On Wed, Apr 11, 2018 at 2:01 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Not to be argumentative, but I cannot express if there is a tGridLongName. > That will not compile. > > Bob S > > > > On Apr 11, 2018, at 10:49 , Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > On 04/11/2018 09:55 AM, Bob Sneidar via use-livecode wrote: > >> But the variable tGridLongName resolves to: > >> "dgsites" of card id 1002 of stack "Sites" of stack > "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms > Generator 8.livecode" > > > > Exactly. > > It *should* resolve to group "dgsites" of... > > > > Ensure that the object type is part of tGridLongName somehow. > > > > -- > > 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 irog at mac.com Wed Apr 11 15:38:59 2018 From: irog at mac.com (Roger Guay) Date: Wed, 11 Apr 2018 12:38:59 -0700 Subject: align object does not work with groups? In-Reply-To: <150AEB51-144E-4FB5-9BEC-3679786F8C15@major-k.de> References: <150AEB51-144E-4FB5-9BEC-3679786F8C15@major-k.de> Message-ID: <2D19CEFA-573B-44B7-9FC5-5C7EEF6C2209@mac.com> > On Apr 11, 2018, at 10:27 AM, Klaus major-k via use-livecode wrote: > > Hi friends, > > LC 9 on a Mac, selectgroupedcontrols = false > > Selecting two or more groups and trying to align these two groups > e.g. on the left side using the inspector palette, does not work in LC 9. > > Can someone confirm this? > > > Best > > Klaus It?s working here, Klaus. Cheers, Roger From klaus at major-k.de Wed Apr 11 15:42:41 2018 From: klaus at major-k.de (Klaus major-k) Date: Wed, 11 Apr 2018 21:42:41 +0200 Subject: align object does not work with groups? In-Reply-To: <2D19CEFA-573B-44B7-9FC5-5C7EEF6C2209@mac.com> References: <150AEB51-144E-4FB5-9BEC-3679786F8C15@major-k.de> <2D19CEFA-573B-44B7-9FC5-5C7EEF6C2209@mac.com> Message-ID: <5B5E399D-08FF-4836-B444-621A08E43E06@major-k.de> Hi Roger, > Am 11.04.2018 um 21:38 schrieb Roger Guay via use-livecode : >> On Apr 11, 2018, at 10:27 AM, Klaus major-k via use-livecode wrote: >> >> Hi friends, >> >> LC 9 on a Mac, selectgroupedcontrols = false >> >> Selecting two or more groups and trying to align these two groups >> e.g. on the left side using the inspector palette, does not work in LC 9. >> >> Can someone confirm this? > > It?s working here, Klaus. Thank you! Hmm, too funky, will try again tomorrow after a restart... > Cheers, > > Roger Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From mark at canelasoftware.com Wed Apr 11 18:01:22 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Wed, 11 Apr 2018 15:01:22 -0700 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> Message-ID: <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> $49 for the amount of work that went into making these widgets is quite affordable. Yes, these are listed as v .5. They could have labeled them as v 1.0. That leaves everyone the opportunity to find things that need to be fixed or improved and provide feedback. These key features are not coming any other way than this. LiveCode does not have the resources to build these themselves. Here is our chance to get them now and not years down the road. Look at this another way. Surely the income generated from the apps we make, if we are doing commercial work, will cover the cost of these essential controls. If you are not making software for money, getting these might be questionable. But, I know of people that will burn that value on coffee each week. At least these widgets will help you make money and/or save time. This is a no brainer for those making mobile apps. I do have a wish list. The main one is to have a working desktop representation of the controls. For some of them it is not much extra work. For others, there probably is no native equivalent to mimic on the desktop. This is certainly not the fault of Digital Pomegranate. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com > On Apr 11, 2018, at 11:06 AM, Bob Sneidar via use-livecode wrote: > > There's no such thing as "good money". ;-) But I agree, it feels like I am paying for beta software, which always makes me nervous. > > Bob S From ahsoftware at sonic.net Wed Apr 11 18:24:14 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 11 Apr 2018 15:24:14 -0700 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> Message-ID: <7d9d7dad-d04c-3e8a-e20a-acb6a9796c1a@sonic.net> On 04/11/2018 03:01 PM, Mark Talluto via use-livecode wrote: > $49 for the amount of work that went into making these widgets is quite affordable. Yes, these are listed as v .5. They could have labeled them as v 1.0. That leaves everyone the opportunity to find things that need to be fixed or improved and provide feedback. These key features are not coming any other way than this. LiveCode does not have the resources to build these themselves. Here is our chance to get them now and not years down the road. Just to be clear about this, I'm not at all concerned about the price. As far as I can tell this is a very useful set of controls at an entirely reasonable price. But that's me reading between the lines since there's not a lot of description at the store, and it's hard to know things like: * if there are special licensing requirements if you put these in a commercial app - are they dual-licensed? * whether these controls work with any LC version or just the higher-end versions * what you get when you purchase the pack - I see Digital Pomegranate has other extensions in the store. Are these part of this package? Some of them? All of them? and really, the 0.5.0 version makes it look like "you can buy into this now and be part of the beta program. We're about halfway there now." -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Wed Apr 11 18:25:23 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 11 Apr 2018 15:25:23 -0700 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> Message-ID: On 04/11/2018 11:06 AM, Bob Sneidar via use-livecode wrote: > There's no such thing as "good money". ;-) Good money is the money I used to have. -- Mark Wieder ahsoftware at gmail.com From dunbarx at aol.com Wed Apr 11 18:28:42 2018 From: dunbarx at aol.com (dunbarx) Date: Wed, 11 Apr 2018 15:28:42 -0700 (MST) Subject: name resolution stinker In-Reply-To: References: <9185893e-ad84-cfdc-2678-dee24038593a@sonic.net> <82DE2B3C-67B3-4B43-9D5F-BF48835459A8@iotecdigital.com> <6e2259bd-a059-5290-1052-820a084ada6a@sonic.net> <466D3BF4-638C-4E64-90C7-55977E9C166D@iotecdigital.com> Message-ID: <1523485722687-0.post@n4.nabble.com> Have not tried any of the offerings. But, at least in HC, it was important to isolate all card references with parentheses. Otherwise the engine would concatenate any text following the ostensible card reference and create a mess: blah, blah, blah of (cd id 1002) of stack.... Not sure if LC is more adept, and this is not required any longer. I always do so, unless the card reference is at the very end of the line: ... of cd ID 1001 Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From alex at tweedly.net Wed Apr 11 19:56:50 2018 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 12 Apr 2018 00:56:50 +0100 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> Message-ID: <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> On 11/04/2018 23:01, Mark Talluto via use-livecode wrote: > $49 for the amount of work that went into making these widgets is quite affordable. Yes, these are listed as v .5. They could have labeled them as v 1.0. Well, actually, they did :-) Since I know I'm going to buy them anyway, I went ahead and did it now - partly to see if that gives me more info about licensing, updates, documentations, etc. In my purchase-receipt email from Livecode, it says: > Thank you for purchasing the Mobile Native Essentials Widgets Pack! > This includes the Activity Indicator, Switch, Date Picker, Time > Picker, Progress, Slider, Label and Search Bar. You will receive all > updates to this product and its components free of charge until it is > out of beta. which sounds like it really is still in Beta. But then if I go to https://livecode.com/account/products/thirdparty I discover that I have v1.0.0 available to download - or I can pay a further $58 to upgrade to v0.5.0 !? So I clicked on the download button, and got a zip/folder called "WidgetPackBeta" Now I have a bunch of ".lce" files, one per widget, plus a WidgetPackInstaller.livecode Running that gives me a dialog asking "install all" - click that gives me an error stack "Widget Pack Installer": execution error at line 33 (Handler: can't find handler) near "revIDEExtensionInstall", char 1 so I guess I need to go read about installing widget extensions ... -- Alex. From ahsoftware at sonic.net Wed Apr 11 20:47:31 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 11 Apr 2018 17:47:31 -0700 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> Message-ID: <61dbeb65-b364-3144-1647-ffa07f5065ea@sonic.net> On 04/11/2018 04:56 PM, Alex Tweedly via use-livecode wrote: > so I guess I need to go read about installing widget extensions ... LOL. The tl;dr is an .lce file is a zip archive. Rename it to .zip and open it the usual way. Extract the .lcb file from the archive, open it with the Extension Builder from the IDE Tools menu (using the little folder icon in the upper right). Then click the Install icon from the bunch at the lower left. I'm somewhat sure there must be an easier way. -- Mark Wieder ahsoftware at gmail.com From lists at mangomultimedia.com Wed Apr 11 22:10:36 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 11 Apr 2018 21:10:36 -0500 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <61dbeb65-b364-3144-1647-ffa07f5065ea@sonic.net> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> <61dbeb65-b364-3144-1647-ffa07f5065ea@sonic.net> Message-ID: On Wed, Apr 11, 2018 at 7:47 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 04/11/2018 04:56 PM, Alex Tweedly via use-livecode wrote: > >> so I guess I need to go read about installing widget extensions ... >> > > LOL. The tl;dr is > > an .lce file is a zip archive. Rename it to .zip and open it the usual > way. Extract the .lcb file from the archive, open it with the Extension > Builder from the IDE Tools menu (using the little folder icon in the upper > right). Then click the Install icon from the bunch at the lower left. > > I'm somewhat sure there must be an easier way. Use the Extension Manager which is accessed from the Tools menu. There is "+" button. Click it and select the .lce file. FWIW the installer stack that came with the download installed everything successfully for me in LC 9. On the plus side there are docs for the widgets in the Dictionary. Unfortunately when I try to test the search widget in the iOS simulator the widget doesn't render. It just says "SearchText (unlicensed)". -- Trevor DeVore ScreenSteps www.screensteps.com From ahsoftware at sonic.net Wed Apr 11 22:54:13 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 11 Apr 2018 19:54:13 -0700 Subject: Mobile Native Essentials Widget Pack In-Reply-To: References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> <61dbeb65-b364-3144-1647-ffa07f5065ea@sonic.net> Message-ID: <1cac3a4c-181d-bf50-d785-96dfbab53552@sonic.net> On 04/11/2018 07:10 PM, Trevor DeVore via use-livecode wrote: > Use the Extension Manager which is accessed from the Tools menu. There is > "+" button. Click it and select the .lce file. Oh, sure, if you want to skip the fun of going the long way around. I bet you also probably stop looking for your keys once you find them. -- Mark Wieder ahsoftware at gmail.com From lists at mangomultimedia.com Wed Apr 11 23:02:07 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 12 Apr 2018 03:02:07 +0000 Subject: Mobile Native Essentials Widget Pack In-Reply-To: References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> <61dbeb65-b364-3144-1647-ffa07f5065ea@sonic.net> Message-ID: On Wed, Apr 11, 2018 at 9:10 PM, Trevor DeVore wrote: > > Unfortunately when I try to test the search widget in the iOS simulator > the widget doesn't render. It just says "SearchText (unlicensed)". > I used the Help menu to Re-license LiveCode and now the widgets are licensed. -- Trevor DeVore ScreenSteps www.screensteps.com From lists at mangomultimedia.com Wed Apr 11 23:05:17 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 12 Apr 2018 03:05:17 +0000 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <1cac3a4c-181d-bf50-d785-96dfbab53552@sonic.net> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> <61dbeb65-b364-3144-1647-ffa07f5065ea@sonic.net> <1cac3a4c-181d-bf50-d785-96dfbab53552@sonic.net> Message-ID: On Wed, Apr 11, 2018 at 9:55 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 04/11/2018 07:10 PM, Trevor DeVore via use-livecode wrote: > > Use the Extension Manager which is accessed from the Tools menu. There is > > "+" button. Click it and select the .lce file. > > Oh, sure, if you want to skip the fun of going the long way around. > I bet you also probably stop looking for your keys once you find them. I may never know. The last time I saw them they slid out of my pocket, tumbled down a rock face, and fell 40 feet into the river. ? Trevor DeVore > From brahma at hindu.org Wed Apr 11 23:19:20 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 12 Apr 2018 03:19:20 +0000 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> Message-ID: It not the money, certainly worth it? but it?s that for every widget I have to create a if isMobile() then # use the widget else # development is being on desktop. # then what? End if Maybe I am missing something? Even if developing from mobile on desktop ? we need a reasonable representation to take this widgets place on desktop. A seamless environment. BR Alex Tweedly wrote: 2. it would be really nice if there were also a desktop version of each of these. I *want* to be able to create a project that works on all platforms (and, in particular, on the ones that allow for the super-quick development cycle we get for desktop). From heather at livecode.com Thu Apr 12 04:49:38 2018 From: heather at livecode.com (Heather Laine) Date: Thu, 12 Apr 2018 09:49:38 +0100 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> Message-ID: <95E502EB-C070-47B0-BF18-E247E1C5EA24@livecode.com> Alex: that installation error suggests you are trying to install in too early a version of LiveCode. The widget pack requires 9.0 dp 11 or later. I'll investigate the store "update" issue, sounds like a glitch. Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 12 Apr 2018, at 00:56, Alex Tweedly via use-livecode wrote: > > On 11/04/2018 23:01, Mark Talluto via use-livecode wrote: > >> $49 for the amount of work that went into making these widgets is quite affordable. Yes, these are listed as v .5. They could have labeled them as v 1.0. > Well, actually, they did :-) > > Since I know I'm going to buy them anyway, I went ahead and did it now - partly to see if that gives me more info about licensing, updates, documentations, etc. > > In my purchase-receipt email from Livecode, it says: >> Thank you for purchasing the Mobile Native Essentials Widgets Pack! This includes the Activity Indicator, Switch, Date Picker, Time Picker, Progress, Slider, Label and Search Bar. You will receive all updates to this product and its components free of charge until it is out of beta. > which sounds like it really is still in Beta. > > But then if I go to https://livecode.com/account/products/thirdparty I discover that I have v1.0.0 available to download - or I can pay a further $58 to upgrade to v0.5.0 !? > > So I clicked on the download button, and got a zip/folder called "WidgetPackBeta" > Now I have a bunch of ".lce" files, one per widget, plus a WidgetPackInstaller.livecode > > Running that gives me a dialog asking "install all" - click that gives me an error > > stack "Widget Pack Installer": execution error at line 33 (Handler: can't find handler) near "revIDEExtensionInstall", char 1 > > so I guess I need to go read about installing widget extensions ... > > -- 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 alex at tweedly.net Thu Apr 12 07:13:00 2018 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 12 Apr 2018 12:13:00 +0100 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <95E502EB-C070-47B0-BF18-E247E1C5EA24@livecode.com> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> <95E502EB-C070-47B0-BF18-E247E1C5EA24@livecode.com> Message-ID: <7f012243-1ff9-1e7f-793c-d1c4ade9f058@tweedly.net> Thank you Heather - that's exactly the problem, I was on 9.0.0 DP9 I installed 9.0.0 stable, and widgets installed just fine. Thanks again, Alex. On 12/04/2018 09:49, Heather Laine via use-livecode wrote: > Alex: that installation error suggests you are trying to install in too early a version of LiveCode. The widget pack requires 9.0 dp 11 or later. > > I'll investigate the store "update" issue, sounds like a glitch. > > Regards, > > Heather > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 12 Apr 2018, at 00:56, Alex Tweedly via use-livecode wrote: >> >> On 11/04/2018 23:01, Mark Talluto via use-livecode wrote: >> >>> $49 for the amount of work that went into making these widgets is quite affordable. Yes, these are listed as v .5. They could have labeled them as v 1.0. >> Well, actually, they did :-) >> >> Since I know I'm going to buy them anyway, I went ahead and did it now - partly to see if that gives me more info about licensing, updates, documentations, etc. >> >> In my purchase-receipt email from Livecode, it says: >>> Thank you for purchasing the Mobile Native Essentials Widgets Pack! This includes the Activity Indicator, Switch, Date Picker, Time Picker, Progress, Slider, Label and Search Bar. You will receive all updates to this product and its components free of charge until it is out of beta. >> which sounds like it really is still in Beta. >> >> But then if I go to https://livecode.com/account/products/thirdparty I discover that I have v1.0.0 available to download - or I can pay a further $58 to upgrade to v0.5.0 !? >> >> So I clicked on the download button, and got a zip/folder called "WidgetPackBeta" >> Now I have a bunch of ".lce" files, one per widget, plus a WidgetPackInstaller.livecode >> >> Running that gives me a dialog asking "install all" - click that gives me an error >> >> stack "Widget Pack Installer": execution error at line 33 (Handler: can't find handler) near "revIDEExtensionInstall", char 1 >> >> so I guess I need to go read about installing widget extensions ... >> >> -- 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 livecode.com Thu Apr 12 08:14:40 2018 From: mark at livecode.com (Mark Waddingham) Date: Thu, 12 Apr 2018 13:14:40 +0100 Subject: name resolution stinker In-Reply-To: References: Message-ID: <3F0A0007-886D-4C45-93E1-E9C24B13A943@livecode.com> I think the problem here is that you are mixing up to methods of referencing controls... You can either do: there is a group tGroupName of ... As syntax *or* : there is a tLongIdOfGroup The 'group' chunk expects a string which is a name of a group - it isn't the same as putting 'group' in front of the string. Try making tGridLongName with the word 'group' at the front (I think someone else suggested this) then that should work. Warmest Regards, Mark. Sent from my iPhone > On 11 Apr 2018, at 17:08, Bob Sneidar via use-livecode wrote: > > Ok here is a real stinker. > > put quote & tDataGrid & quote && "of" && tCurrentCard into tGridLongName > put (there is a group tGridLongName) into tGroupExists > if not tGroupExists then next repeat > > tGridLongName resolves to: > "dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode" > > When in the message box I type: > put there is a group "dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode" > > I get true. > > But the code: > put (there is a group tGridLongName) into tGroupExists > > returns false. tGridLongName is not resolving in this statement. > > Is this another use case for DO? > > 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 mark at canelasoftware.com Thu Apr 12 11:46:15 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Thu, 12 Apr 2018 08:46:15 -0700 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> Message-ID: The marketing of these widgets and the other 3rd party extensions could use a little work. The descriptions for those that I clicked on where sparse and lacking screenshots. Licensing should be better addressed as well. Clicking on any of the widgets in the aforementioned pack makes it look like each widget is $49. But, if you continue a bit further, you can see that they lead back to the bunch being sold for $49. Confusing?yes. I found installing them to be painless because I was using LC 9 gm at the time. The installer should do a quick check on the LC version and provide helpful information. A sample stack containing all the widgets would have been a nice touch. LC requirements should be listed for all extensions in the store. Basically, the concerns listed by us all apply to every extension I reviewed. FWIW, lcTaskList does have a screenshot. Some of the extensions in the store come with readme files, instructions, and licensing details. Maybe some or all of these details need to be more public facing. Should improve sales for everyone involved. This is generally referred to as the productization of a tool. It is equally time consuming and sometimes more painful than the creation of the tool itself. Based on all the feedback so far, it is clear that it is important. I am sure there was excitement by both Digital Pomegranate and LiveCode to make these widgets available to us. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com > On Apr 11, 2018, at 4:56 PM, Alex Tweedly via use-livecode wrote: > > But then if I go to https://livecode.com/account/products/thirdparty I discover that I have v1.0.0 available to download - or I can pay a further $58 to upgrade to v0.5.0 !? > > So I clicked on the download button, and got a zip/folder called "WidgetPackBeta" > Now I have a bunch of ".lce" files, one per widget, plus a WidgetPackInstaller.livecode > > Running that gives me a dialog asking "install all" - click that gives me an error > > stack "Widget Pack Installer": execution error at line 33 (Handler: can't find handler) near "revIDEExtensionInstall", char 1 > > so I guess I need to go read about installing widget extensions ... From mark at canelasoftware.com Thu Apr 12 11:49:07 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Thu, 12 Apr 2018 08:49:07 -0700 Subject: Mobile Native Essentials Widget Pack In-Reply-To: References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> Message-ID: <41BE513A-5753-4E45-9B1B-C43A93FDE407@canelasoftware.com> These are early days for widgets with seamless integration for all platforms. It is coming. Complex things like this take time to complete. Hang in there. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com > On Apr 11, 2018, at 8:19 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > It not the money, certainly worth it? > but it?s that for every widget I have to create a > > if isMobile() then > # use the widget > else > # development is being on desktop. > # then what? > End if > > Maybe I am missing something? > > Even if developing from mobile on desktop ? > we need a reasonable representation to take this widgets place on desktop. > A seamless environment. From sean at pidigital.co.uk Thu Apr 12 12:08:01 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 12 Apr 2018 17:08:01 +0100 Subject: name resolution stinker In-Reply-To: <3F0A0007-886D-4C45-93E1-E9C24B13A943@livecode.com> References: <3F0A0007-886D-4C45-93E1-E9C24B13A943@livecode.com> Message-ID: put the id of tCurrentCard into tCardID put (there is a group id (the id of group tDataGrid of card id tCardID) into tGroupExists if not tGroupExists then next repeat Sean Cole *Pi Digital Productions Ltd* On 12 April 2018 at 13:14, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > I think the problem here is that you are mixing up to methods of > referencing controls... > > You can either do: > > there is a group tGroupName of ... > > As syntax *or* : > > there is a tLongIdOfGroup > > The 'group' chunk expects a string which is a name of a group - it isn't > the same as putting 'group' in front of the string. > > Try making tGridLongName with the word 'group' at the front (I think > someone else suggested this) then that should work. > > Warmest Regards, > > Mark. > > Sent from my iPhone > > > On 11 Apr 2018, at 17:08, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Ok here is a real stinker. > > > > put quote & tDataGrid & quote && "of" && tCurrentCard into tGridLongName > > put (there is a group tGridLongName) into tGroupExists > > if not tGroupExists then next repeat > > > > tGridLongName resolves to: > > "dgsites" of card id 1002 of stack "Sites" of stack > "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms > Generator 8.livecode" > > > > When in the message box I type: > > put there is a group "dgsites" of card id 1002 of stack "Sites" of stack > "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms > Generator 8.livecode" > > > > I get true. > > > > But the code: > > put (there is a group tGridLongName) into tGroupExists > > > > returns false. tGridLongName is not resolving in this statement. > > > > Is this another use case for DO? > > > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Thu Apr 12 19:10:12 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 13 Apr 2018 01:10:12 +0200 Subject: how to print a csv as formatted table? Message-ID: <2C98AFB6-5F93-4F16-9DE9-1CD24A2DBF6A@m-r-d.de> Hi, i need to print a list of data or maybe create a pdf of it. The list is provided in csv format and the number of lines varies. I need to print/print to Pdf that data as a formatted table with this typical border around each field. There are only 20 rows per page allowed. This should happen automatically without any user interaction. What would be the best way to do it? Should i use Quartam Reports (i have still a license laying around here) or Quartam PDF library? Or should i just create a html table and use revprinttext, but my first tries were not successful. I would of course prefer a very simple solution. What do you think? Is Quartam Reports the way to go? Regards, Matthias From dan at clearvisiontech.com Thu Apr 12 19:54:56 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 12 Apr 2018 23:54:56 +0000 Subject: LCB Woes Message-ID: <4F6FD068-9718-4BD7-8D44-53FB45B1ADFB@clearvisiontech.com> Greetings! I am trying to learn how to make a LC Library that will connect to an external SDK that I can use in my LC Apps. But, I seem to be stuck before I even got started. I have LC Builder open, and I have downloaded the SDK I want to write the wrapper for, but I don?t know what to do with it. How do you connect the two? I?ve looked at LC?s examples and they talk A LOT about making widgets, but not much about making a library. Does anyone know the process? Or, know good resource to explain how to do this? Any advice would be greatly appreciated. -Dan From brian at milby7.com Thu Apr 12 21:03:41 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 13 Apr 2018 01:03:41 +0000 Subject: LCB Woes In-Reply-To: <4F6FD068-9718-4BD7-8D44-53FB45B1ADFB@clearvisiontech.com> References: <4F6FD068-9718-4BD7-8D44-53FB45B1ADFB@clearvisiontech.com> Message-ID: What language is the library written in? Which platform? I have some code that I?ve started to put together for libSodium, but I have not done much more than reference the calls. On Thu, Apr 12, 2018 at 7:55 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > Greetings! I am trying to learn how to make a LC Library that will > connect to an external SDK that I can use in my LC Apps. But, I seem to be > stuck before I even got started. I have LC Builder open, and I have > downloaded the SDK I want to write the wrapper for, but I don?t know what > to do with it. How do you connect the two? I?ve looked at LC?s examples > and they talk A LOT about making widgets, but not much about making a > library. Does anyone know the process? Or, know good resource to explain > how to do this? > > Any advice would be greatly appreciated. > > -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 MikeKerner at roadrunner.com Thu Apr 12 21:42:00 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 12 Apr 2018 21:42:00 -0400 Subject: how to print a csv as formatted table? In-Reply-To: <2C98AFB6-5F93-4F16-9DE9-1CD24A2DBF6A@m-r-d.de> References: <2C98AFB6-5F93-4F16-9DE9-1CD24A2DBF6A@m-r-d.de> Message-ID: Why not a table field or a dg? On Thu, Apr 12, 2018 at 7:10 PM, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > > i need to print a list of data or maybe create a pdf of it. The list is > provided in csv format and the number of lines varies. > I need to print/print to Pdf that data as a formatted table with this > typical border around each field. There are only 20 rows per page allowed. > This should happen automatically without any user interaction. > > What would be the best way to do it? Should i use Quartam Reports (i have > still a license laying around here) or Quartam PDF library? > Or should i just create a html table and use revprinttext, but my first > tries were not successful. > > I would of course prefer a very simple solution. > > What do you think? Is Quartam Reports the way to go? > > > Regards, > Matthias > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 ahsoftware at sonic.net Thu Apr 12 22:04:32 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 12 Apr 2018 19:04:32 -0700 Subject: LCB Woes In-Reply-To: References: <4F6FD068-9718-4BD7-8D44-53FB45B1ADFB@clearvisiontech.com> Message-ID: <58351e38-208e-7b0d-63c3-7cb11f287dac@sonic.net> On 04/12/2018 06:03 PM, Brian Milby via use-livecode wrote: > What language is the library written in? Which platform? I have some code > that I?ve started to put together for libSodium, but I have not done much > more than reference the calls. Interesting. I started down the libSodium path and gave it up when I found that I had to create a struct with 1024 individual byte references for an embedded buffer. There really should be a way to specify a number so you don't have to type 1024 "h" characters in a row. -- Mark Wieder ahsoftware at gmail.com From dunbarx at aol.com Thu Apr 12 22:28:00 2018 From: dunbarx at aol.com (dunbarx) Date: Thu, 12 Apr 2018 19:28:00 -0700 (MST) Subject: how to print a csv as formatted table? In-Reply-To: References: <2C98AFB6-5F93-4F16-9DE9-1CD24A2DBF6A@m-r-d.de> Message-ID: <1523586480575-0.post@n4.nabble.com> Why not, indeed? Is it more complicated than replacing all commas with tab? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From brian at milby7.com Thu Apr 12 22:31:12 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 12 Apr 2018 21:31:12 -0500 Subject: LCB Woes In-Reply-To: <58351e38-208e-7b0d-63c3-7cb11f287dac@sonic.net> References: <4F6FD068-9718-4BD7-8D44-53FB45B1ADFB@clearvisiontech.com> <58351e38-208e-7b0d-63c3-7cb11f287dac@sonic.net> Message-ID: Here's what I have so far... On Thu, Apr 12, 2018 at 9:04 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 04/12/2018 06:03 PM, Brian Milby via use-livecode wrote: > >> What language is the library written in? Which platform? I have some code >> that I?ve started to put together for libSodium, but I have not done much >> more than reference the calls. >> > > Interesting. I started down the libSodium path and gave it up when I found > that I had to create a struct with 1024 individual byte references for an > embedded buffer. There really should be a way to specify a number so you > don't have to type 1024 "h" characters in a row. > > -- > 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 sean at pidigital.co.uk Thu Apr 12 22:37:20 2018 From: sean at pidigital.co.uk (Pi Digital) Date: Fri, 13 Apr 2018 03:37:20 +0100 Subject: LCB Woes In-Reply-To: <58351e38-208e-7b0d-63c3-7cb11f287dac@sonic.net> References: <4F6FD068-9718-4BD7-8D44-53FB45B1ADFB@clearvisiontech.com> <58351e38-208e-7b0d-63c3-7cb11f287dac@sonic.net> Message-ID: Why on earth would you have to type them? Why not for loop them or copy-paste or get LC to give you a 1024 char string of them you can copy-paste in? Odd. LCB is very much in its youth especially for java and objc. We have only the bare minimum of examples and tutorials and documentation of course. Building a library is very similar to widgets with the exception that they are not linked to a gui control or display. So they just handle calls and functions but don?t have an object/control on the card and thus no property dialogue either. The examples for widgets work practically the same for a library. But there will be occasional differences you?ll come across as you go. No doubt Ali will be providing some more info on these in time. But start digging into it now. I?m still playing around trying to make some libraries of my own - simple ones to start with. All the best. Sean Cole Pi Digital > On 13 Apr 2018, at 03:04, Mark Wieder via use-livecode wrote: > >> On 04/12/2018 06:03 PM, Brian Milby via use-livecode wrote: >> What language is the library written in? Which platform? I have some code >> that I?ve started to put together for libSodium, but I have not done much >> more than reference the calls. > > Interesting. I started down the libSodium path and gave it up when I found that I had to create a struct with 1024 individual byte references for an embedded buffer. There really should be a way to specify a number so you don't have to type 1024 "h" characters in a row. > > -- > 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 brian at milby7.com Thu Apr 12 22:52:46 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 12 Apr 2018 21:52:46 -0500 Subject: LCB Woes In-Reply-To: References: <4F6FD068-9718-4BD7-8D44-53FB45B1ADFB@clearvisiontech.com> <58351e38-208e-7b0d-63c3-7cb11f287dac@sonic.net> Message-ID: Here's an snip from my libSodium start: private __safe foreign handler \ MCDataCreateWithBytesAndRelease( \ in pBytes as Pointer, \ in pCount as LCUIndex, \ out rData as Data) \ returns CBool binds to "" private __safe foreign handler \ MCMemoryAllocate( \ in pSize as LCUIndex, \ out rBlock as Pointer) \ returns CBool binds to "" private __safe foreign handler \ MCMemoryDeallocate( \ in pBlock as Pointer) \ returns nothing binds to "" constant kCrypto_kx_PUBLICKEYBYTES is 32 constant kCrypto_kx_SECRETKEYBYTES is 32 private foreign handler \ _crypto_kx_keypair( \ in pPK as Pointer, /* unsigned char pk[crypto_kx_PUBLICKEYBYTES] */ \ in pSK as Pointer) /* unsigned char sk[crypto_kx_SECRETKEYBYTES] */ \ returns CInt binds to "c:libsodium>crypto_kx_keypair" public handler sodiumKxKeypair(out rPK as Data, out rSK as Data) returns Boolean variable tPKbuffer as Pointer variable tSKbuffer as Pointer if not MCMemoryAllocate(kCrypto_kx_PUBLICKEYBYTES, tPKbuffer) then throw "can't allocate PK buffer" end if if not MCMemoryAllocate(kCrypto_kx_SECRETKEYBYTES, tSKbuffer) then MCMemoryDeallocate(tPKbuffer) throw "can't allocate SK buffer" end if unsafe if _crypto_kx_keypair(tPKbuffer, tSKbuffer) < 0 then MCMemoryDeallocate(tPKbuffer) MCMemoryDeallocate(tSKbuffer) throw "could not get keys" end if end unsafe if not MCDataCreateWithBytesAndRelease(tPKbuffer, \ kCrypto_kx_PUBLICKEYBYTES, rPK) then MCMemoryDeallocate(tPKbuffer) MCMemoryDeallocate(tSKbuffer) throw "error copying PK" end if if not MCDataCreateWithBytesAndRelease(tSKbuffer, \ kCrypto_kx_SECRETKEYBYTES, rSK) then MCMemoryDeallocate(tSKbuffer) throw "error copying SK" end if return true end handler On Thu, Apr 12, 2018 at 9:37 PM, Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > Why on earth would you have to type them? Why not for loop them or > copy-paste or get LC to give you a 1024 char string of them you can > copy-paste in? Odd. > > LCB is very much in its youth especially for java and objc. We have only > the bare minimum of examples and tutorials and documentation of course. > Building a library is very similar to widgets with the exception that they > are not linked to a gui control or display. So they just handle calls and > functions but don?t have an object/control on the card and thus no property > dialogue either. The examples for widgets work practically the same for a > library. But there will be occasional differences you?ll come across as you > go. No doubt Ali will be providing some more info on these in time. But > start digging into it now. I?m still playing around trying to make some > libraries of my own - simple ones to start with. > > All the best. > > Sean Cole > Pi Digital > > > On 13 Apr 2018, at 03:04, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> On 04/12/2018 06:03 PM, Brian Milby via use-livecode wrote: > >> What language is the library written in? Which platform? I have some > code > >> that I?ve started to put together for libSodium, but I have not done > much > >> more than reference the calls. > > > > Interesting. I started down the libSodium path and gave it up when I > found that I had to create a struct with 1024 individual byte references > for an embedded buffer. There really should be a way to specify a number so > you don't have to type 1024 "h" characters in a row. > > > > -- > > 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 > From ahsoftware at sonic.net Fri Apr 13 03:35:09 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 13 Apr 2018 00:35:09 -0700 Subject: LCB Woes In-Reply-To: References: <4F6FD068-9718-4BD7-8D44-53FB45B1ADFB@clearvisiontech.com> <58351e38-208e-7b0d-63c3-7cb11f287dac@sonic.net> Message-ID: On 04/12/2018 07:37 PM, Pi Digital via use-livecode wrote: > Why on earth would you have to type them? Why not for loop them or copy-paste or get LC to give you a 1024 char string of them you can copy-paste in? Odd. Well, yeah, obviously it would be a cut and paste thing. But even so, when dealing with a foreign struct like struct{ blah, blah, char[1024], blah, blah, }; and you have to use a string like bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb it gets to be a bit much and at least requires a comment to explain wtf that thing is doing in there. Would be so much easier to type 1024b -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Apr 13 11:36:56 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 13 Apr 2018 15:36:56 +0000 Subject: Mobile Native Essentials Widget Pack In-Reply-To: <1cac3a4c-181d-bf50-d785-96dfbab53552@sonic.net> References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> <61dbeb65-b364-3144-1647-ffa07f5065ea@sonic.net> <1cac3a4c-181d-bf50-d785-96dfbab53552@sonic.net> Message-ID: ? > On Apr 11, 2018, at 19:54 , Mark Wieder via use-livecode wrote: > > On 04/11/2018 07:10 PM, Trevor DeVore via use-livecode wrote: >> Use the Extension Manager which is accessed from the Tools menu. There is >> "+" button. Click it and select the .lce file. > > Oh, sure, if you want to skip the fun of going the long way around. > I bet you also probably stop looking for your keys once you find them. > > -- > Mark Wieder > ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Apr 13 11:38:04 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 13 Apr 2018 15:38:04 +0000 Subject: Mobile Native Essentials Widget Pack In-Reply-To: References: <78633266-c0d0-c9f4-68e3-e6ca742e5b13@tweedly.net> <7DB4DDBC-C477-410A-B688-5DF15B969C4D@iotecdigital.com> <66EEBB4B-A957-44CA-B01F-B52774CC978C@canelasoftware.com> <8587cab9-1c94-26b1-aafc-39c82a019813@tweedly.net> <61dbeb65-b364-3144-1647-ffa07f5065ea@sonic.net> <1cac3a4c-181d-bf50-d785-96dfbab53552@sonic.net> Message-ID: <99B196A7-2879-4A25-B391-53E68D1A535D@iotecdigital.com> > On Apr 11, 2018, at 20:05 , Trevor DeVore via use-livecode wrote: > >> On 04/11/2018 07:10 PM, Trevor DeVore via use-livecode wrote: >>> Use the Extension Manager which is accessed from the Tools menu. There is >>> "+" button. Click it and select the .lce file. >> >> Oh, sure, if you want to skip the fun of going the long way around. >> I bet you also probably stop looking for your keys once you find them. > > > I may never know. The last time I saw them they slid out of my pocket, > tumbled down a rock face, and fell 40 feet into the river. > > ? > Trevor DeVore So you walked back home uphill all the way? Yeah, we heard that story already. ;-) Bob S From bobsneidar at iotecdigital.com Fri Apr 13 11:49:47 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 13 Apr 2018 15:49:47 +0000 Subject: how to print a csv as formatted table? In-Reply-To: <2C98AFB6-5F93-4F16-9DE9-1CD24A2DBF6A@m-r-d.de> References: <2C98AFB6-5F93-4F16-9DE9-1CD24A2DBF6A@m-r-d.de> Message-ID: I played around a bit with Quartum PDF Library, and actually got a decent looking header working and a table for my data. It's not that difficult except that you have to grasp the concept that the x and y coordinate variables have to be set each time you want to draw something, so you have to keep track of what is being drawn and where to draw next. Also, you need to be mindful that a document is created with a coordinate system like inches and pixels, so you may need to use the built in functions to translate between them. It's better to use inches I think, but then you have to thing in terms of fractions of inches. Pixels are more exact, but lask the finer resolution. It's a couple hours of trial and error to figure things out, but once you get it, you can produce fairly nice looking reports. I personally would like to see support for embedded fonts so I can use other fonts besides the built in ones which are extremely limited. A customer is likely to ask that I use the company font, which presently is not possible. Bob S > On Apr 12, 2018, at 16:10 , Matthias Rebbe via use-livecode wrote: > > Hi, > > i need to print a list of data or maybe create a pdf of it. The list is provided in csv format and the number of lines varies. > I need to print/print to Pdf that data as a formatted table with this typical border around each field. There are only 20 rows per page allowed. > This should happen automatically without any user interaction. > > What would be the best way to do it? Should i use Quartam Reports (i have still a license laying around here) or Quartam PDF library? > Or should i just create a html table and use revprinttext, but my first tries were not successful. > > I would of course prefer a very simple solution. > > What do you think? Is Quartam Reports the way to go? > > > Regards, > Matthias From bobsneidar at iotecdigital.com Fri Apr 13 11:54:08 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 13 Apr 2018 15:54:08 +0000 Subject: name resolution stinker In-Reply-To: <3F0A0007-886D-4C45-93E1-E9C24B13A943@livecode.com> References: <3F0A0007-886D-4C45-93E1-E9C24B13A943@livecode.com> Message-ID: <2227DE6E-BFEF-4DCB-819C-72DC4D52DC8D@iotecdigital.com> Thanks Mark. I came to the same conclusion. For my purposes the first method is the best. I start with the short name of a datagrid, then tried to build the long name knowing the long id of the owning card. Instead it's easier to say: there is a group of Bob S > On Apr 12, 2018, at 05:14 , Mark Waddingham via use-livecode wrote: > > I think the problem here is that you are mixing up to methods of referencing controls... > > You can either do: > > there is a group tGroupName of ... > > As syntax *or* : > > there is a tLongIdOfGroup > > The 'group' chunk expects a string which is a name of a group - it isn't the same as putting 'group' in front of the string. > > Try making tGridLongName with the word 'group' at the front (I think someone else suggested this) then that should work. > > Warmest Regards, > > Mark. > > Sent from my iPhone From lists at mangomultimedia.com Fri Apr 13 12:20:44 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 13 Apr 2018 11:20:44 -0500 Subject: How to properly mount your home folder in VMWare Fusion for doing development work Message-ID: I?m posting this in case it helps anyone else facing a similar issue. Yesterday I finally contact VMWare support about an issue I?ve been having for quite a while now. During development I work on Mac and perform sanity checks on Windows running in VMWare Fusion. When I find an issue on Windows I prefer to quickly make a change in my dev tools and Mac and then relaunch on Windows. Sometimes, however, the files I modified would appear as corrupted and wouldn?t open in Windows until I restarted the VM. The solution is to mount your Mac as a network drive rather than using the Shared Folders feature in VMWare Fusion. Full details can be found here: http://www.bluemangolearning.com/livecode/2018/04/vmware-fusion-mounting-a-network-drive-for-reliable-cross-platform-development-with-livecode/ -- Trevor DeVore ScreenSteps www.screensteps.com From mark at canelasoftware.com Fri Apr 13 12:32:26 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Fri, 13 Apr 2018 09:32:26 -0700 Subject: How to properly mount your home folder in VMWare Fusion for doing development work In-Reply-To: References: Message-ID: <564E8325-A68F-403E-AB31-C1240E4466FF@canelasoftware.com> > On Apr 13, 2018, at 9:20 AM, Trevor DeVore via use-livecode wrote: > > I?m posting this in case it helps anyone else facing a similar issue. > > Yesterday I finally contact VMWare support about an issue I?ve been having > for quite a while now. During development I work on Mac and perform sanity > checks on Windows running in VMWare Fusion. When I find an issue on Windows > I prefer to quickly make a change in my dev tools and Mac and then relaunch > on Windows. Sometimes, however, the files I modified would appear as > corrupted and wouldn?t open in Windows until I restarted the VM. > > The solution is to mount your Mac as a network drive rather than using the > Shared Folders feature in VMWare Fusion. Full details can be found here: > > http://www.bluemangolearning.com/livecode/2018/04/vmware-fusion-mounting-a-network-drive-for-reliable-cross-platform-development-with-livecode/ Did they say untying about fixing the shared folders feature? Or is this intended behavior? This used to work years ago. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com From lists at mangomultimedia.com Fri Apr 13 12:48:58 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 13 Apr 2018 11:48:58 -0500 Subject: How to properly mount your home folder in VMWare Fusion for doing development work In-Reply-To: <564E8325-A68F-403E-AB31-C1240E4466FF@canelasoftware.com> References: <564E8325-A68F-403E-AB31-C1240E4466FF@canelasoftware.com> Message-ID: On Fri, Apr 13, 2018 at 11:32 AM, Mark Talluto via use-livecode < use-livecode at lists.runrev.com> wrote: > > Did they say untying about fixing the shared folders feature? Or is this > intended behavior? This used to work years ago. > The person I worked with had personally talked to the person responsible for that feature. They are working on it but it is not a simple fix so I wasn?t given any sort of timeline. -- Trevor DeVore ScreenSteps www.screensteps.com From mark at canelasoftware.com Fri Apr 13 13:09:57 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Fri, 13 Apr 2018 10:09:57 -0700 Subject: How to properly mount your home folder in VMWare Fusion for doing development work In-Reply-To: References: <564E8325-A68F-403E-AB31-C1240E4466FF@canelasoftware.com> Message-ID: <61124B8F-5143-468C-A555-E0773F1BA489@canelasoftware.com> > On Apr 13, 2018, at 9:48 AM, Trevor DeVore via use-livecode wrote: > > On Fri, Apr 13, 2018 at 11:32 AM, Mark Talluto via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> Did they say untying about fixing the shared folders feature? Or is this >> intended behavior? This used to work years ago. >> > > The person I worked with had personally talked to the person responsible > for that feature. They are working on it but it is not a simple fix so I > wasn?t given any sort of timeline. Ahh?good to know. Glad they are aware of the issue. Nice to have a workaround. Thanks! From theaford at btinternet.com Fri Apr 13 14:52:16 2018 From: theaford at btinternet.com (Terence Heaford) Date: Fri, 13 Apr 2018 19:52:16 +0100 Subject: DataGrid Column Labels Message-ID: <58A75D42-0C35-4864-894E-019B06DFDDB2@btinternet.com> I have just started having an issue with the Column Labels on some newly created tables. Basically they do not show unless I press ?Refresh Data Grid" in the Property Inspector. If I then shut down LiveCode and relaunch it they have gone missing again. I am using the community edition of LC9 in OSX 10.13.4. It is only affecting newly created DataGrids. DataGrids that have been created in previous versions seem OK. My only solution has been to overlay the DataGrid with a label. Is this an issue anyone else has been having or is it just me? I have been using the DGH 2.0.0 plugin if that makes a difference. Thanks for any pointers. All the best Terry From bobsneidar at iotecdigital.com Fri Apr 13 16:57:37 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 13 Apr 2018 20:57:37 +0000 Subject: How to properly mount your home folder in VMWare Fusion for doing development work In-Reply-To: <61124B8F-5143-468C-A555-E0773F1BA489@canelasoftware.com> References: <564E8325-A68F-403E-AB31-C1240E4466FF@canelasoftware.com> <61124B8F-5143-468C-A555-E0773F1BA489@canelasoftware.com> Message-ID: <312CF4FF-F8B3-4292-8177-39AEA8D50E59@iotecdigital.com> I have an issue with Parallels and their folder sharing feature. I *think* they are using a kind of folder redirection. It takes forever to do anything in a Windows app in the VM. It runs much better on a real workstation, although I must say not as fast as on MacOS. Not sure why the engine is so much faster on MacOS. Bob S > On Apr 13, 2018, at 10:09 , Mark Talluto via use-livecode wrote: > >> On Apr 13, 2018, at 9:48 AM, Trevor DeVore via use-livecode wrote: >> >> On Fri, Apr 13, 2018 at 11:32 AM, Mark Talluto via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> >>> Did they say untying about fixing the shared folders feature? Or is this >>> intended behavior? This used to work years ago. >>> >> >> The person I worked with had personally talked to the person responsible >> for that feature. They are working on it but it is not a simple fix so I >> wasn?t given any sort of timeline. > > Ahh?good to know. Glad they are aware of the issue. Nice to have a workaround. Thanks! From bobsneidar at iotecdigital.com Fri Apr 13 17:00:54 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 13 Apr 2018 21:00:54 +0000 Subject: DataGrid Column Labels In-Reply-To: <58A75D42-0C35-4864-894E-019B06DFDDB2@btinternet.com> References: <58A75D42-0C35-4864-894E-019B06DFDDB2@btinternet.com> Message-ID: I had a similar issue. Labels would not appear. I got the dgprop ["column labels"] of the datagrid and they were all correct! That made me think there is something wrong with the behavior, but other datagrids were working fine! What I did to fix it is I got the behavior of another datagrid that DID work, and set the behavior of the errant datagrid to the long id of that. Bob S > On Apr 13, 2018, at 11:52 , Terence Heaford via use-livecode wrote: > > I have just started having an issue with the Column Labels on some newly created tables. > > Basically they do not show unless I press ?Refresh Data Grid" in the Property Inspector. > > If I then shut down LiveCode and relaunch it they have gone missing again. > > I am using the community edition of LC9 in OSX 10.13.4. > > It is only affecting newly created DataGrids. > > DataGrids that have been created in previous versions seem OK. > > My only solution has been to overlay the DataGrid with a label. > > > Is this an issue anyone else has been having or is it just me? > > I have been using the DGH 2.0.0 plugin if that makes a difference. > > > Thanks for any pointers. > > > All the best > > Terry From livfoss at mac.com Fri Apr 13 18:25:43 2018 From: livfoss at mac.com (Graham Samuel) Date: Fri, 13 Apr 2018 23:25:43 +0100 Subject: Where does TSNet go on Windows standalone? Message-ID: <020C91B3-AAD3-4F11-8B3F-C8051BE5585B@mac.com> I?ve created an installer for my desktop app using InnoSetup. I need tsNet, and it?s checked in the Standalone settings in LC 9. When I do the install, somehow the actual tsNet DLL finds itself in a folder called ?Externals? within the app?s folder, which itself is within the Windows Program directory. I didn?t deliberately create the Externals folder. When I launch the app, it can?t find TSNet. If I move TSNet manually out of the Externals folder and into the app's main folder, all goes well. Obviously I want the app to find TSNet. Where did I go wrong? Did I mess up the Standalone settings, or did I mess up the installer script? There is nothing specific in the LC User Guide. I have a feeling this used to work. Can anyone explain? TIA Graham From rdimola at evergreeninfo.net Fri Apr 13 20:45:37 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 13 Apr 2018 20:45:37 -0400 Subject: Getting Orientation Enforced on Phone In-Reply-To: <382909CE-3C5A-4335-AB95-A5F3E10AEA16@hindu.org> References: <382909CE-3C5A-4335-AB95-A5F3E10AEA16@hindu.org> Message-ID: <000c01d3d389$ea751bc0$bf5f5340$@net> BR, I've tried everything. It's gets even more bizarre. The last time I tested this is what I got: iOS: LC respects the device's orientation lock. Android: LC does NOT respect the device's orientation lock. iOS: If the LC app is in portrait, iPhone/iPod will change orientation without rotating the physical device if mobileSetAllowedOrientations set to only landscape(like Netflix) and lock it there. On iPad LC will not force the rotation and will not lock it if you rotates the device. Android: LC will not force the rotation but will lock it if you rotate the device. To fix this right we need: 1) mobileSetAllowedOrientations should be just that. This should be a end user rotation permissions. 2) Add new==> mobileSetOrientation (pOrientation, pRespectDeviceOrientationLock {true|false}) That's it. Until LC does this, we'll have a mishmash of behaviors and wrong card rendering. Playing with all sorts of waits is just madness. 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 Sannyasin Brahmanathaswami via use-livecode Sent: Tuesday, April 10, 2018 10:40 PM To: How LiveCode Cc: Sannyasin Brahmanathaswami Subject: Getting Orientation Enforced on Phone # using this method to change stack go cardOrStackObject # e.g go "gems" (or this string) go card 3 of "gems" wait 100 milliseconds with messages close stack oStackName wait 100 milliseconds with messages # don't try to go in same window method ( we used "set the fullscreenmode of this stack to "showAll" in all stacks) Now, we can get orientation "enforced" on iOS going one way -- portrait to landscape -- but not coming back for -- landscape to portrait -- Users sees the bottom on the portrait, until right they phone upright) Android is worse, the landscape stack is rendering horizontally on a portrait screen until they rotate the phone. and vice versa I really need to phone to "enforce" , regardless of phone is held. You can't have a game/map (landscape) open "miniaturized" by portrait mobileSetAllowedOrientations "landscape left,landscape right" OR mobileSetAllowedOrientations "landscape left,landscape right" the dictionary says "the setting take affect the next time an orientation change is applied" But it is enforced to iOS going for portrait to landscape. Why not to other way? And either way on Android Has anyone solved this problem. BR _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Fri Apr 13 20:54:11 2018 From: monte at appisle.net (Monte Goulding) Date: Sat, 14 Apr 2018 10:54:11 +1000 Subject: Getting Orientation Enforced on Phone In-Reply-To: <000c01d3d389$ea751bc0$bf5f5340$@net> References: <382909CE-3C5A-4335-AB95-A5F3E10AEA16@hindu.org> <000c01d3d389$ea751bc0$bf5f5340$@net> Message-ID: <23CF6208-8B3C-4489-BEE8-1D76E2B4C135@appisle.net> > On 14 Apr 2018, at 10:45 am, Ralph DiMola via use-livecode wrote: > > To fix this right we need: > 1) mobileSetAllowedOrientations should be just that. This should be a end > user rotation permissions. I have had a brief look at this worked out what needs to be done. Hopefully we can do this next sprint for 9.0.1. > 2) Add new==> mobileSetOrientation (pOrientation, > pRespectDeviceOrientationLock {true|false}) I guess rather than this we could fix #1 and ensure that all platforms respect the system orientation lock unless it is not in the allowed orientations given if you are forcing an orientation you would need to fiddle with allowed orientations anyway. Cheers Monte From brian at milby7.com Fri Apr 13 21:58:14 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 14 Apr 2018 01:58:14 +0000 Subject: Getting Orientation Enforced on Phone In-Reply-To: <23CF6208-8B3C-4489-BEE8-1D76E2B4C135@appisle.net> References: <382909CE-3C5A-4335-AB95-A5F3E10AEA16@hindu.org> <000c01d3d389$ea751bc0$bf5f5340$@net> <23CF6208-8B3C-4489-BEE8-1D76E2B4C135@appisle.net> Message-ID: In my MobileProfile demo app it seems to respect the lock properly on iPhone (can only user lock to portrait). Sounds like something that would be good to do additional testing on. Is there any way to test pre-release engine changes on iOS? On Fri, Apr 13, 2018 at 8:54 PM Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On 14 Apr 2018, at 10:45 am, Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > To fix this right we need: > > 1) mobileSetAllowedOrientations should be just that. This should be a end > > user rotation permissions. > > I have had a brief look at this worked out what needs to be done. > Hopefully we can do this next sprint for 9.0.1. > > > 2) Add new==> mobileSetOrientation (pOrientation, > > pRespectDeviceOrientationLock {true|false}) > > I guess rather than this we could fix #1 and ensure that all platforms > respect the system orientation lock unless it is not in the allowed > orientations given if you are forcing an orientation you would need to > fiddle with allowed orientations anyway. > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at 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.rauterkus at gmail.com Fri Apr 13 22:37:55 2018 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Sat, 14 Apr 2018 02:37:55 +0000 Subject: Anyone have an open source or else a gratis stop watch app In-Reply-To: References: Message-ID: Hi, A swim coach friend was talking about a stopwatch app. Anyone have one in LIVECODE already done? Wondering. Mark Rauterkus -- -- Ta. Mark Rauterkus Mark at Rauterkus.com Executive Director of SKWIM USA, a 501(c)(3) PPS Summer Dreamers' Swim & Water Polo Camp Executive Coach Middle School Swim Coach at The Ellis School Former Varsity Boys Swim Coach, Pittsburgh Obama Academy Recent Head Water Polo Coach, Carnegie Mellon University Women's Club Team Pittsburgh Combined Water Polo Team http://CLOH.org 412 298 3432 = cell From brahma at hindu.org Fri Apr 13 23:38:52 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 14 Apr 2018 03:38:52 +0000 Subject: Getting Orientation Enforced on Phone In-Reply-To: <23CF6208-8B3C-4489-BEE8-1D76E2B4C135@appisle.net> References: <382909CE-3C5A-4335-AB95-A5F3E10AEA16@hindu.org> <000c01d3d389$ea751bc0$bf5f5340$@net> <23CF6208-8B3C-4489-BEE8-1D76E2B4C135@appisle.net> Message-ID: Monte: "there is a God in LC Universe!" 9.0.1 I can live with that.. hopefully sooner than later. If you don?t there soon I will be forced to a horrible notice "Please turn phone" and end of change of stacks. Like Ralph said "using wait is madness" (but using wait is for a different purpose. On android, acceleratedRendering, when you turn it in off in one stack and go another stack, you have to give the phone time (does not happen on iOS) otherwise "all hell breaks loose" (snap shot of previous screen shot, different part of screen show different parts of two stack, where on earth are pixel are coming from the stack who is closed and the acceleratedRendering is false -- is "magical" ? only by introducing wait fill work.) BR >1) mobileSetAllowedOrientations should be just that. This should be a end >user rotation permissions. I have had a brief look at this worked out what needs to be done. Hopefully we can do this next sprint for 9.0.1. >2) Add new==> mobileSetOrientation (pOrientation, >pRespectDeviceOrientationLock {true|false}) I guess rather than this we could fix #1 and ensure that all platforms respect the system orientation lock unless it is not in the allowed orientations given if you are forcing an orientation you would need to fiddle with allowed orientations anyway. Cheers Monte ====== Yes, agreed. I can?t think of another use case. ? portrait ? portrait upside down ? landscape left ? landscape right Or portrait, portrait update down landscape right, landscape life should lock it in not matter how the phone is physically oriented and if some developer wants to play with geometry, they can "fiddle" all they want with: mobileSetOrientation portrait, portrait upside down, landscape left, landscape right NOW than said go cardOrStackObject # a landscape stack wait 100 milliseconds with messages close stack oStackName # portrait stack wait 100 milliseconds with messages I think will cause problems, unless the user turns off mobile orientation temporarily (HA! maybe I will try it) So? if you can get this work go "card 5 of stack NewStackB" in window "OldStackA" -- with the orientation lock enforced, that will be ideal. also secondarily I would make a global preference "acceleratedRendering is to false on closing off stack" so that we don't have keep fiddling with it all the time. It clear that it needs to turned off. The new stack? whether you it on or not, is up to you. BR From theaford at btinternet.com Sat Apr 14 03:17:50 2018 From: theaford at btinternet.com (Terence Heaford) Date: Sat, 14 Apr 2018 08:17:50 +0100 Subject: DataGrid Column Labels In-Reply-To: References: <58A75D42-0C35-4864-894E-019B06DFDDB2@btinternet.com> Message-ID: <47A469C6-80EB-49F8-8AC7-854DC929F1EF@btinternet.com> Thanks Will have a look at that although the column does not have a column behaviour. I have changed the properties of the header with DGH but the props listed in the Property Inspector do seem correct. If I go back into DGH and click on the green tick to accept a change of margins for the header, the label again shows until the next time I restart the Stack in LiveCode at which point it disappears again. I can?t see what I have done to cause this errant behaviour. There must be a bug somewhere but where?? All the best Terry > On 13 Apr 2018, at 22:00, Bob Sneidar via use-livecode wrote: > > I had a similar issue. Labels would not appear. I got the dgprop ["column labels"] of the datagrid and they were all correct! That made me think there is something wrong with the behavior, but other datagrids were working fine! What I did to fix it is I got the behavior of another datagrid that DID work, and set the behavior of the errant datagrid to the long id of that. > > Bob S > > >> On Apr 13, 2018, at 11:52 , Terence Heaford via use-livecode wrote: >> >> I have just started having an issue with the Column Labels on some newly created tables. >> >> Basically they do not show unless I press ?Refresh Data Grid" in the Property Inspector. >> >> If I then shut down LiveCode and relaunch it they have gone missing again. >> >> I am using the community edition of LC9 in OSX 10.13.4. >> >> It is only affecting newly created DataGrids. >> >> DataGrids that have been created in previous versions seem OK. >> >> My only solution has been to overlay the DataGrid with a label. >> >> >> Is this an issue anyone else has been having or is it just me? >> >> I have been using the DGH 2.0.0 plugin if that makes a difference. >> >> >> Thanks for any pointers. >> >> >> All the best >> >> Terry > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From theaford at btinternet.com Sat Apr 14 04:03:05 2018 From: theaford at btinternet.com (Terence Heaford) Date: Sat, 14 Apr 2018 09:03:05 +0100 Subject: DataGrid Column Labels In-Reply-To: <47A469C6-80EB-49F8-8AC7-854DC929F1EF@btinternet.com> References: <58A75D42-0C35-4864-894E-019B06DFDDB2@btinternet.com> <47A469C6-80EB-49F8-8AC7-854DC929F1EF@btinternet.com> Message-ID: When I look at the Data Grid Templates in the project browser I see 2 tables that refer to DG2. I suspect these are the culprits because these are associated with the two new tables I have added to the project. Where there problems are, I don?t know. Thanks Terry > On 14 Apr 2018, at 08:17, Terence Heaford via use-livecode wrote: > > Thanks > > Will have a look at that although the column does not have a column behaviour. > > I have changed the properties of the header with DGH but the props listed in the Property Inspector do seem correct. > > If I go back into DGH and click on the green tick to accept a change of margins for the header, the label again shows until the next time I restart the Stack in LiveCode > at which point it disappears again. > > I can?t see what I have done to cause this errant behaviour. > > There must be a bug somewhere but where?? > > > All the best > > Terry > > > >> On 13 Apr 2018, at 22:00, Bob Sneidar via use-livecode wrote: >> >> I had a similar issue. Labels would not appear. I got the dgprop ["column labels"] of the datagrid and they were all correct! That made me think there is something wrong with the behavior, but other datagrids were working fine! What I did to fix it is I got the behavior of another datagrid that DID work, and set the behavior of the errant datagrid to the long id of that. >> >> Bob S >> >> >>> On Apr 13, 2018, at 11:52 , Terence Heaford via use-livecode wrote: >>> >>> I have just started having an issue with the Column Labels on some newly created tables. >>> >>> Basically they do not show unless I press ?Refresh Data Grid" in the Property Inspector. >>> >>> If I then shut down LiveCode and relaunch it they have gone missing again. >>> >>> I am using the community edition of LC9 in OSX 10.13.4. >>> >>> It is only affecting newly created DataGrids. >>> >>> DataGrids that have been created in previous versions seem OK. >>> >>> My only solution has been to overlay the DataGrid with a label. >>> >>> >>> Is this an issue anyone else has been having or is it just me? >>> >>> I have been using the DGH 2.0.0 plugin if that makes a difference. >>> >>> >>> Thanks for any pointers. >>> >>> >>> All the best >>> >>> Terry >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 theaford at btinternet.com Sat Apr 14 09:20:37 2018 From: theaford at btinternet.com (Terence Heaford) Date: Sat, 14 Apr 2018 14:20:37 +0100 Subject: DataGrid Column Labels In-Reply-To: References: <58A75D42-0C35-4864-894E-019B06DFDDB2@btinternet.com> <47A469C6-80EB-49F8-8AC7-854DC929F1EF@btinternet.com> Message-ID: <1C38E0C1-CCAD-44A3-8EC7-61242521813A@btinternet.com> More investigation. Instead of using DGH to change the header label I did it manually by editing the groups. This worked until a reload of the project at which point the header label had disappeared again. Upon working through the header by editing the groups you eventually come to the text field that contains the header text. This was empty. Clearly something in the script of the DataGrid is emptying that field. At this point I am giving up although if you create the headers on opening the project with the likes of: set the dgProp[ "columns" ] of group ?myTable" of cd ?myCard" of stack ?myStack" to "test" set the dgProp[ "column labels" ] of group "myTable" of cd "myCard" of stack "myStack" to "TEST" Then they do seem to stick for the duration of the project being open. I have placed these in open stack All the best Terry > On 14 Apr 2018, at 09:03, Terence Heaford via use-livecode wrote: > > When I look at the Data Grid Templates in the project browser I see 2 tables that refer to DG2. > > I suspect these are the culprits because these are associated with the two new tables I have added to the project. > > Where there problems are, I don?t know. > > > Thanks > > Terry > > >> On 14 Apr 2018, at 08:17, Terence Heaford via use-livecode wrote: >> >> Thanks >> >> Will have a look at that although the column does not have a column behaviour. >> >> I have changed the properties of the header with DGH but the props listed in the Property Inspector do seem correct. >> >> If I go back into DGH and click on the green tick to accept a change of margins for the header, the label again shows until the next time I restart the Stack in LiveCode >> at which point it disappears again. >> >> I can?t see what I have done to cause this errant behaviour. >> >> There must be a bug somewhere but where?? >> >> >> All the best >> >> Terry >> >> >> >>> On 13 Apr 2018, at 22:00, Bob Sneidar via use-livecode wrote: >>> >>> I had a similar issue. Labels would not appear. I got the dgprop ["column labels"] of the datagrid and they were all correct! That made me think there is something wrong with the behavior, but other datagrids were working fine! What I did to fix it is I got the behavior of another datagrid that DID work, and set the behavior of the errant datagrid to the long id of that. >>> >>> Bob S >>> >>> >>>> On Apr 13, 2018, at 11:52 , Terence Heaford via use-livecode wrote: >>>> >>>> I have just started having an issue with the Column Labels on some newly created tables. >>>> >>>> Basically they do not show unless I press ?Refresh Data Grid" in the Property Inspector. >>>> >>>> If I then shut down LiveCode and relaunch it they have gone missing again. >>>> >>>> I am using the community edition of LC9 in OSX 10.13.4. >>>> >>>> It is only affecting newly created DataGrids. >>>> >>>> DataGrids that have been created in previous versions seem OK. >>>> >>>> My only solution has been to overlay the DataGrid with a label. >>>> >>>> >>>> Is this an issue anyone else has been having or is it just me? >>>> >>>> I have been using the DGH 2.0.0 plugin if that makes a difference. >>>> >>>> >>>> Thanks for any pointers. >>>> >>>> >>>> All the best >>>> >>>> Terry >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 brahma at hindu.org Sat Apr 14 10:29:04 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 14 Apr 2018 14:29:04 +0000 Subject: Getting Orientation Enforced on Phone In-Reply-To: References: <382909CE-3C5A-4335-AB95-A5F3E10AEA16@hindu.org> <000c01d3d389$ea751bc0$bf5f5340$@net> <23CF6208-8B3C-4489-BEE8-1D76E2B4C135@appisle.net> Message-ID: <116D1114-1BAF-465A-8615-30C253A495EF@hindu.org> BR: just completed test. I tried "go letting" to stack mobileSetAllowedOrientations "portrait,portrait upside down,landscape left,landscape right" just before closing in and opening the next stack. No go an Android. Next I wondered by the portrait turn up portrait in iOS? Well I look like it did in openStack on preOpenStack wait 100 milliseconds with messages end preOpenStack on openStack set the fullscreenmode of this stack to "showAll" -- better for wider screens mobile_SetAllowedOrientation "portrait" set the acceleratedRendering of this stack to true end openStack --- So I went to landscape then, which had it preopenstack handler, and I change it to openstack handler results iOS : It complied, go orientation landscape back to portrait BUT complete, going to portrait to land scape. The was enforced (to landscape) but location the background image was off ! and I have set in to image set the loc of img "bgImage" to the loc of this cd Android: Did not compiled until we manually rotated and the bkground image was off is the name offsets and iOS. GIT stash! back to where I was before. 9.0.1 I can live with that.. hopefully sooner than later. If you don?t there soon I will be forced to a horrible notice "Please turn phone" and end of change of stacks. From brahma at hindu.org Sat Apr 14 10:37:30 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 14 Apr 2018 14:37:30 +0000 Subject: On Boot - Run Time Tool vs Pointer Tool Message-ID: When we boot LC, I typically need to navigate, but the tool end up Pointer tool. I am the only one who needs to change this ever time he boots? Can/Should be a global preference? BR From tom at makeshyft.com Sat Apr 14 12:33:27 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 14 Apr 2018 12:33:27 -0400 Subject: On Boot - Run Time Tool vs Pointer Tool In-Reply-To: References: Message-ID: on opencard *choose* browse tool end opencard On Sat, Apr 14, 2018 at 10:37 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > When we boot LC, I typically need to navigate, but the tool end up Pointer > tool. > > I am the only one who needs to change this ever time he boots? > > Can/Should be a global preference? > > BR > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Sat Apr 14 12:36:12 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 14 Apr 2018 12:36:12 -0400 Subject: On Boot - Run Time Tool vs Pointer Tool In-Reply-To: References: Message-ID: the beauty of livecode is that you can script anything.... the IDE is built with Livecode, so you can change any aspect of it or script any action that you want. On Sat, Apr 14, 2018 at 12:33 PM, Tom Glod wrote: > on opencard > > *choose* browse tool > end opencard > > On Sat, Apr 14, 2018 at 10:37 AM, Sannyasin Brahmanathaswami via > use-livecode wrote: > >> When we boot LC, I typically need to navigate, but the tool end up >> Pointer tool. >> >> I am the only one who needs to change this ever time he boots? >> >> Can/Should be a global preference? >> >> BR >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From brahma at hindu.org Sat Apr 14 18:47:13 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 14 Apr 2018 22:47:13 +0000 Subject: Player Controls in Mobile Message-ID: <075BA5ED-70C0-4C96-9720-FE93FF6477E1@hindu.org> I am using a default player in mobile. Works fine in iOS. But in Android is look pretty retrograde. In particular, it opens with a 150 px high (or something like that) object with the player control at the bottom. So, I am trying to sort out mobileControlDo, to create have a native player and the dictionary has options of mobile control all jumbled together? That entry may needs some work. But one another plane with it would nice to have a lesson an each of the mobile controls. I looked on the web, there is old one multi channel sound for iOS . that all, Perhaps I missed it? I think I need compile a separate document with an mobile player props. They are spread over MobileControlCreate, MobileControlSet, and mobileControlDo. BR From brahma at hindu.org Sat Apr 14 20:35:47 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 15 Apr 2018 00:35:47 +0000 Subject: Player Controls in Mobile In-Reply-To: <075BA5ED-70C0-4C96-9720-FE93FF6477E1@hindu.org> References: <075BA5ED-70C0-4C96-9720-FE93FF6477E1@hindu.org> Message-ID: Well in case it useful anyone I went ahead and compiled from dictionary? keep this for reference. iOS command deliberately not include. Did I miss anything? MobileControlDo idOrName, propertyName # command e.g. mobileControlCreate "player", "myFirstPlayer" ================== MobileControlDo idOrName, propertyName # command mobileControlDo "myFirstPlayer", "play" mobileControlDo "myFirstPlayer", "pause" mobileControlDo "myFirstPlayer", "stop" ================== MobileControlSet idOrName, propertyName, value # command Global Properties - "rect": the bounds of the control, relative to the top-left of the card. For example "0,0,100,100". - "visible": set to true or false to determine whether the control should be displayed. - "alpha": set to an integer value between 0 and 255 to blend the control with and controls underneath it. - "backgroundColor": Set to either a standard color name, or a string of the form red,green,blue or red,green,blue,alpha. Where the components are integers in the range 0 to 255. Player Specific - "filename": The filename of URL of the media to play. Setting the filename of the player automatically 'prepares' the movie for playback. - "showController": Determines whether the controller is displayed over the content. This is a boolean value. - "currentTime": The current position of the playhead, measured in milliseconds (maps to the native currentPlaybackTime property). This is an integer value. - "looping": Determines whether the playback of the movie should loop indefinitely. This is a boolean value. ================== mobileControlGet ( idOrName, propertyName ) # function - include parenthesis local tVisibility put mobileControlGet("myControlName", "visible") into tVisibility if tVisibility is true then ... end if - "id": Returns the id of the control where the name is passed. - "name": Returns the name of the control where the id is passed. - "rect": Returns the bounds of the control, relative to the top-left of the card. For example "0,0,100,100". -"visible": Returns true if the control is visible. - "alpha": Returns the blendlevel of the control as an integer between 0 and 255. - "backgroundColor": Returns the background color of the control as an integer between 0 to 255. - "filename": returns the filename or URL of the media set on the player, if any. - "showController": returns true if the controller is displayed over the content. - "currentTime": returns the current position of the playhead, measured in milliseconds (maps to the native currentPlaybackTime property). This is an integer value. - "looping": returns true if the playback of the movie loops indefinitely. - "duration": returns the duration of a movie, measured in milliseconds (maps to the native duration property on iOS). This is an integer value. - "playableDuration": returns the amount of currently playable content, measured in milliseconds (maps to the native playableDuration property on iOS). This is an integer value. - "playable": enough data is available to start playing, but it may run out before playback finishes. - "playthrough": enough data has been buffered for playback to continue uninterrupted. - "stalled": buffer of data has stalled and playback may pause automatically if the player runs out of data - "playing": playback is current underway. - "paused": playback is paused and resumes from the point it was paused. - "interrupted": playback is temporarily interrupted, perhaps because the buffer ran out of content. - "seeking forward": the player is currently seeking towards the end of the movie. - "seeking backward": the player is currently seeking towards the beginning of the movie. On 4/14/18, 12:47 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" wrote: I am using a default player in mobile. Works fine in iOS. But in Android is look pretty retrograde. In particular, it opens with a 150 px high (or something like that) object with the player control at the bottom. So, I am trying to sort out mobileControlDo, to create have a native player and the dictionary has options of mobile control all jumbled together? That entry may needs some work. But one another plane with it would nice to have a lesson an each of the mobile controls. I looked on the web, there is old one multi channel sound for iOS . that all, Perhaps I missed it? I think I need compile a separate document with an mobile player props. They are spread over MobileControlCreate, MobileControlSet, and mobileControlDo. BR From ahsoftware at sonic.net Sat Apr 14 22:39:20 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 14 Apr 2018 19:39:20 -0700 Subject: The case for not trying to be so English-like Message-ID: <66cf1332-f679-aa3f-d727-4792b3adc6e7@sonic.net> Hah! or, why hangover is one word... https://lithub.com/attention-grammar-pedants-the-english-language-isnt-logical/ -- Mark Wieder ahsoftware at gmail.com From livfoss at mac.com Sun Apr 15 06:29:21 2018 From: livfoss at mac.com (Graham Samuel) Date: Sun, 15 Apr 2018 11:29:21 +0100 Subject: Where does TSNet go on Windows standalone? In-Reply-To: <020C91B3-AAD3-4F11-8B3F-C8051BE5585B@mac.com> References: <020C91B3-AAD3-4F11-8B3F-C8051BE5585B@mac.com> Message-ID: <2F4E0C77-85BE-4585-AB40-CE364A453E4F@mac.com> I think I have answered my own question - the ?Externals? folder is created by the LC Standalone Maker, so it?s Inno Setup that?s the problem. The issue is that the Wizard which I?ve always used to create installers with Inno Setup lacks an option to specify a folder (in our case ?Externals' within the program directory to put DLLs etc in; but it can be done by editing the script directly. Probably nobody else wants to know the detail, but if the do, just ask. Graham > On 13 Apr 2018, at 23:25, Graham Samuel via use-livecode wrote: > > I?ve created an installer for my desktop app using InnoSetup. I need tsNet, and it?s checked in the Standalone settings in LC 9. When I do the install, somehow the actual tsNet DLL finds itself in a folder called ?Externals? within the app?s folder, which itself is within the Windows Program directory. I didn?t deliberately create the Externals folder. > > When I launch the app, it can?t find TSNet. If I move TSNet manually out of the Externals folder and into the app's main folder, all goes well. > > Obviously I want the app to find TSNet. Where did I go wrong? Did I mess up the Standalone settings, or did I mess up the installer script? There is nothing specific in the LC User Guide. > > I have a feeling this used to work. > > Can anyone explain? > > 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 From dougr at telus.net Sun Apr 15 11:42:28 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Sun, 15 Apr 2018 08:42:28 -0700 Subject: iOS usb/serial access and use Message-ID: <0feb01d3d4d0$5d69feb0$183dfc10$@net> I've managed, with a lot of help from the community, to get the mergBLE commands and messages working very well between my LC iOS app and an arduino. Now, for the next "component", I'd like to be able to communicate to and from the arduino to and from an iOS device (iPhone or iPad) via a "hardwire" connection... just in case BLE is disconnecting or generally unreliable in certain environments. I done a fair bit of web searching but cannot find a way to reference the iOS USB via LC. There's info on Linux, Windows and MacOS, but none (that I can find) on iOS. Obviously LC *can* employ the USB on an iOS device.... it does it in its Development / "Test" and "Test Target" functionality to send an app to an attached iOS device. I've seen a portion of Apple's USB development doc's and spec's ... since I'm not an XCode user, they don't make any sense to me and don't (seem) to indicate any "device name". There are various mentions of "sandboxing" the app and then enabling various "entitlements" ... one of which is " Allow USB Access: com.apple.security.device.usb". I'm totally clueless on this sort of reference. (taken from LC forum: Re: Help extracting information from USB port data ... Post by MaxV > Tue Jan 27, 2015 3:52 pm) and translated from: http://livecodeitalia.blogspot.it/2014/ ... porta.html Windows: *open* driver "COM2:" for binary update while on Linux ports are tty (or something similar) into the folder / dev , then: *open* driver "/ dev / tty2" for binary update Mac is a bit more complicated, because the name and position changes with each version, however, for the rest it is like on Linux: # Try one of these: /dev/cu.usbmodem2, /dev.tty.usbmodem2, /dev.cu.usbserial2, *open* driver "/dev/cu.usbmodem2" for binary update .... "missing" iOS ... So ... anyone who can give me a push in the right direction would have my most sincere appreciation. I haven't actually tried the Mac examples but since I'm fairly certain of the very significant differences between MacOS and iOS, I'm skeptical of even trying.... I will and report back here... but I'm not likely to have any success. Cheers! Doug From monte at appisle.net Sun Apr 15 19:41:36 2018 From: monte at appisle.net (Monte Goulding) Date: Mon, 16 Apr 2018 09:41:36 +1000 Subject: iOS usb/serial access and use In-Reply-To: <0feb01d3d4d0$5d69feb0$183dfc10$@net> References: <0feb01d3d4d0$5d69feb0$183dfc10$@net> Message-ID: <6F06A012-BE54-4907-9099-EB52F1CC4958@appisle.net> Hi Douglas Unless something has changed recently iOS does not provide a public way to use the USB cable. It could be that there is a third party accessory that you can plug in to do this though. If so you could use mergAccessory to read and write to it. Cheers Monte > On 16 Apr 2018, at 1:42 am, Douglas Ruisaard via use-livecode wrote: > > Now, for the next "component", I'd like to be able to communicate to and from the arduino to and from an iOS device (iPhone or iPad) via a "hardwire" connection... From panos.merakos at livecode.com Mon Apr 16 06:55:42 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 16 Apr 2018 11:55:42 +0100 Subject: [ANN] This Week in LiveCode 125 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #125 here: https://goo.gl/mxzTrz This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From toolbook at kestner.de Mon Apr 16 08:30:43 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 16 Apr 2018 14:30:43 +0200 Subject: AW: Where does TSNet go on Windows standalone? In-Reply-To: <2F4E0C77-85BE-4585-AB40-CE364A453E4F@mac.com> References: <020C91B3-AAD3-4F11-8B3F-C8051BE5585B@mac.com> <2F4E0C77-85BE-4585-AB40-CE364A453E4F@mac.com> Message-ID: <002401d3d57e$be358350$3aa089f0$@kestner.de> Hi Graham, that's strange. I am using also InnoSetup and my standalone also uses tsnet. But in my case the tsnet.dll is located in the Externals folder of the standalone as all other dlls are and works fine. I have an Externals folder with all dlls in the source dir for inno and inno keeps it as an Externals folder in the standalone. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Graham Samuel via use-livecode Gesendet: Sonntag, 15. April 2018 12:29 An: How to use LiveCode Cc: Graham Samuel Betreff: Re: Where does TSNet go on Windows standalone? I think I have answered my own question - the ?Externals? folder is created by the LC Standalone Maker, so it?s Inno Setup that?s the problem. The issue is that the Wizard which I?ve always used to create installers with Inno Setup lacks an option to specify a folder (in our case ?Externals' within the program directory to put DLLs etc in; but it can be done by editing the script directly. Probably nobody else wants to know the detail, but if the do, just ask. Graham > On 13 Apr 2018, at 23:25, Graham Samuel via use-livecode wrote: > > I?ve created an installer for my desktop app using InnoSetup. I need tsNet, and it?s checked in the Standalone settings in LC 9. When I do the install, somehow the actual tsNet DLL finds itself in a folder called ?Externals? within the app?s folder, which itself is within the Windows Program directory. I didn?t deliberately create the Externals folder. > > When I launch the app, it can?t find TSNet. If I move TSNet manually out of the Externals folder and into the app's main folder, all goes well. > > Obviously I want the app to find TSNet. Where did I go wrong? Did I mess up the Standalone settings, or did I mess up the installer script? There is nothing specific in the LC User Guide. > > I have a feeling this used to work. > > Can anyone explain? > > 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 _______________________________________________ use-livecode mailing list use-livecode at 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 Mon Apr 16 09:38:32 2018 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Mon, 16 Apr 2018 15:38:32 +0200 Subject: The case for not trying to be so English-like Message-ID: <49D2243B-A100-43D1-A274-EBC1F7019468@wanadoo.fr> Hi, Mark, Very interesting was your post. And to reciprocate, will I add a few ideas ! I don't sleep - I listen to "BBC World Service" during many long nights. Fascinating! It covers a multitude of affairs (World-Wide). I listen to it on WiFi Channels. A recent post led me to the following, starting with the word "Dictionary", and then went much further, talking (explaining) about the English Language ! I think (hope) that you will find this sustaining ! ..... Section : "Plain English" ! https://www.bbc.co.uk/programmes/p03j4lgg/episodes/player. Six podcasts (about 15 minutes, each) about the English Language. If you like it, please let me know - I love English, but I also learned to love French, simply because LANGUAGE is our only attempt at communicating with others. BBC World Services is the finest radio service that I have ever encountered ! Best Regards -Francis From panos.merakos at livecode.com Mon Apr 16 09:55:20 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 16 Apr 2018 14:55:20 +0100 Subject: [ANN] Release 8.1.10 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.1.10 RC-1. Note 8.1.10 is the last planned release in the 8.x series. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 8.1.10 RC-1 contains more than 10 bugfixes and improvements, including: - Implementation of a new mobile command "mobileSetFullScreenRectForOrientations" to allow stacks that use the "fullscreenMode" property to be resized when the device orientation changes. - Support for building with Xcode 9.3 (using the latest iOS 11.3 SDK) has been added - New versions of mergExt* and tsNet externals are included, addressing a couple of bugs. Notes: - Xcode 9.3 requires MacOS 10.13.2 or higher The full release notes are available from: http://downloads.livecode.com/livecode/8_1_10/LiveCodeNotes-8_1_10_rc_1.pdf Feedback ======== Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Have fun! The LiveCode Team -- From dougr at telus.net Mon Apr 16 10:13:56 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Mon, 16 Apr 2018 07:13:56 -0700 Subject: iOS usb/serial access and use In-Reply-To: 80vqfz4C8vxoZ80vvfPX6v References: 80vqfz4C8vxoZ80vvfPX6v Message-ID: <102301d3d58d$29d29d10$7d77d730$@net> Thanks for the reply, Monte. Well, that's disappointing but not surprising. Kinda like "Dad" not letting you drive his car ... although I'm likely older than "Dad" and willing to take the "responsibility". I guess it's on to XCode, then. It's good to have a definitive answer to this question. Fosters confidence in web searches ... even negative result ones. It does somewhat bother me, though, that use of the USB to an iOS device *is* available "within" LC but not exposed as a function... I though the LC IDE was written in LC ... someone had that in a posting I read recently ... so, in principle, it "could" be made available to developers. It's not as if LC doesn't allow us to access and use serial/USB devices in other OS's! I'm sure in this age of wireless-ness, hardwire connectivity is a conceptual dinosaur but, for us die-hards, it remains a viable alternative. Douglas Ruisaard Trilogy Software (250) 573-3935 Hi Douglas Unless something has changed recently iOS does not provide a public way to use the USB cable. It could be that there is a third party accessory that you can plug in to do this though. If so you could use mergAccessory to read and write to it. Cheers Monte > On 16 Apr 2018, at 1:42 am, Douglas Ruisaard via use-livecode wrote: > > Now, for the next "component", I'd like to be able to communicate to and from the arduino to and from an iOS device (iPhone or iPad) via a "hardwire" connection... From theaford at btinternet.com Mon Apr 16 11:29:35 2018 From: theaford at btinternet.com (Terence Heaford) Date: Mon, 16 Apr 2018 16:29:35 +0100 Subject: DataGrid Column Labels In-Reply-To: References: Message-ID: I see what you have done and when I create a new project with LC9 and create a Data Grid I do not have any problems. The issue I have is when I create a Data Grid within a project that has been created with an earlier version of LC. If this is relevant I do not know. For the moment I have settled on placing this in the preOpenCard handler put ?aa,bb,cc,dd,ee,ff,gg,hh" into tFields replace "," with CR in tFields set the dgProp[ "column labels" ] of group ?myTable" to tFields This does the trick but it would be better if I knew why? There are 13 Data Grids in the project. 8 that were there before LC9 are OK the other 5 exhibit the issue. All the best Terry > On 15 Apr 2018, at 05:23, James Hale wrote: > > I am using 9 on a Mac and I cannot reproduce your issue. > > I noticed you mention DGH and so perhaps it is a Data Grid Helper issue (although I fail to see how.) > > If I open the PI for a data grid and click on the Columns tab, click on a column in the list > > (here's one I prepared earlier.) > > > > Then type a name in the "Name" field, tab out or hit the Enter key and the label I entered (in the above image "Name") appears in my data grid on my stack. I do not need to refresh anything. > If I then save my stack, quit LC, relaunch and open the saved stack, the labels are there as expected. > > So maybe something else is going on in your case? > > James > > > > From matthias_livecode_150811 at m-r-d.de Mon Apr 16 12:49:37 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Mon, 16 Apr 2018 18:49:37 +0200 Subject: Any feedback for InstaMaker or WinSignHelper? Message-ID: <00866786-860D-4243-8E4D-E90DAAC510C5@m-r-d.de> Hi, did anyone on this list try or even is using one of my tools InstaMaker / WinSignHelper? It would be very nice to get any feedback. For me both tools are working w/o problems. But maybe someone else found something that could be fixed, enhanced or added. So please feel free to sent me your comments about it to instamaker at m-r-d.de winsignhelper at m-r-d.de For those who have missed my announcements about the 2 tools. InstaMaker under windows creates Windows Installers for your Livecode program. As a side effect it creates DMG files under Mac OS X. InstaMaker can be found here https://instamaker.dermattes.de WinSignHelper is a GUI for osslsigncode which allows you to sign your Windows programs under Mac OS X. WinSignhelper can be found here https://winsignhelper.dermattes.de Regards, Matthias Rebbe From dougr at telus.net Mon Apr 16 13:27:18 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Mon, 16 Apr 2018 10:27:18 -0700 Subject: iOS usb/serial access and use References: 80vqfz4C8vxoZ80vvfPX6v Message-ID: <109001d3d5a8$2cf879e0$86e96da0$@net> Hmmm... I found an interesting and possibly an exploitable approach... possibly in combination with Monte's suggestion that "mergAccessory" may be a component. In the link: https://apple.stackexchange.com/questions/13605/how-to-get-started-with-interfacing-usb-devices-to-ipad ... there is discussion about using a MIDI device as an attachment to an iOS device. I could easily get the arduino to appear to be a MIDI device, since that merely involves using a specific "protocol" for moving data AND there are many arduino project which use the arduino for MIDI processing, input and output. Question is.. how would I go about "marrying" the two... a MIDI "device" and Monte's "mergAccessory" external? Douglas Ruisaard Trilogy Software (250) 573-3935 -----Original Message----- From: Douglas Ruisaard [mailto:dougr at telus.net] Sent: Monday, April 16, 2018 7:14 AM To: 'use-livecode at lists.runrev.com' Subject: Re: iOS usb/serial access and use Thanks for the reply, Monte. Well, that's disappointing but not surprising. Kinda like "Dad" not letting you drive his car ... although I'm likely older than "Dad" and willing to take the "responsibility". I guess it's on to XCode, then. It's good to have a definitive answer to this question. Fosters confidence in web searches ... even negative result ones. It does somewhat bother me, though, that use of the USB to an iOS device *is* available "within" LC but not exposed as a function... I though the LC IDE was written in LC ... someone had that in a posting I read recently ... so, in principle, it "could" be made available to developers. It's not as if LC doesn't allow us to access and use serial/USB devices in other OS's! I'm sure in this age of wireless-ness, hardwire connectivity is a conceptual dinosaur but, for us die-hards, it remains a viable alternative. Douglas Ruisaard Trilogy Software (250) 573-3935 Hi Douglas Unless something has changed recently iOS does not provide a public way to use the USB cable. It could be that there is a third party accessory that you can plug in to do this though. If so you could use mergAccessory to read and write to it. Cheers Monte > On 16 Apr 2018, at 1:42 am, Douglas Ruisaard via use-livecode wrote: > > Now, for the next "component", I'd like to be able to communicate to and from the arduino to and from an iOS device (iPhone or iPad) via a "hardwire" connection... From livfoss at mac.com Mon Apr 16 13:41:28 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 16 Apr 2018 18:41:28 +0100 Subject: Where does TSNet go on Windows standalone? In-Reply-To: <002401d3d57e$be358350$3aa089f0$@kestner.de> References: <020C91B3-AAD3-4F11-8B3F-C8051BE5585B@mac.com> <2F4E0C77-85BE-4585-AB40-CE364A453E4F@mac.com> <002401d3d57e$be358350$3aa089f0$@kestner.de> Message-ID: That is indeed strange. Did you use the Inno Setup Wizard to create your installer? I could not see an option to include the whole Externals folder. I suppose I missed it. Since then I have tried Matthias Rebbe?s InstaMaker, which uses Inno Setup, and that does include the Externals folder with its contents. I expect I did something wrong, but I have not yet found out what. Graham > On 16 Apr 2018, at 13:30, Tiemo Hollmann TB via use-livecode wrote: > > Hi Graham, > that's strange. I am using also InnoSetup and my standalone also uses tsnet. But in my case the tsnet.dll is located in the Externals folder of the standalone as all other dlls are and works fine. I have an Externals folder with all dlls in the source dir for inno and inno keeps it as an Externals folder in the standalone. > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Graham Samuel via use-livecode > Gesendet: Sonntag, 15. April 2018 12:29 > An: How to use LiveCode > Cc: Graham Samuel > Betreff: Re: Where does TSNet go on Windows standalone? > > I think I have answered my own question - the ?Externals? folder is created by the LC Standalone Maker, so it?s Inno Setup that?s the problem. The issue is that the Wizard which I?ve always used to create installers with Inno Setup lacks an option to specify a folder (in our case ?Externals' within the program directory to put DLLs etc in; but it can be done by editing the script directly. Probably nobody else wants to know the detail, but if the do, just ask. > > Graham > >> On 13 Apr 2018, at 23:25, Graham Samuel via use-livecode wrote: >> >> I?ve created an installer for my desktop app using InnoSetup. I need tsNet, and it?s checked in the Standalone settings in LC 9. When I do the install, somehow the actual tsNet DLL finds itself in a folder called ?Externals? within the app?s folder, which itself is within the Windows Program directory. I didn?t deliberately create the Externals folder. >> >> When I launch the app, it can?t find TSNet. If I move TSNet manually out of the Externals folder and into the app's main folder, all goes well. >> >> Obviously I want the app to find TSNet. Where did I go wrong? Did I mess up the Standalone settings, or did I mess up the installer script? There is nothing specific in the LC User Guide. >> >> I have a feeling this used to work. >> >> Can anyone explain? >> >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 prothero at earthlearningsolutions.org Mon Apr 16 13:47:20 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Mon, 16 Apr 2018 10:47:20 -0700 Subject: Any feedback for InstaMaker or WinSignHelper? In-Reply-To: <00866786-860D-4243-8E4D-E90DAAC510C5@m-r-d.de> References: <00866786-860D-4243-8E4D-E90DAAC510C5@m-r-d.de> Message-ID: <06DDE3B8-FBDC-40DE-8531-73D3440538DC@earthlearningsolutions.org> Matthias I really appreciate you sharing these tools. It?s a real need. I will be needing to distribute an app in the next month and will provide feedback. Best, Bill William Prothero http://ed.earthednet.org > On Apr 16, 2018, at 9:49 AM, Matthias Rebbe via use-livecode wrote: > > Hi, > > did anyone on this list try or even is using one of my tools InstaMaker / WinSignHelper? It would be very nice to get any feedback. > For me both tools are working w/o problems. But maybe someone else found something that could be fixed, enhanced or added. > > So please feel free to sent me your comments about it to > instamaker at m-r-d.de > winsignhelper at m-r-d.de > > For those who have missed my announcements about the 2 tools. > > InstaMaker under windows creates Windows Installers for your Livecode program. As a side effect it creates DMG files under Mac OS X. > InstaMaker can be found here https://instamaker.dermattes.de > > WinSignHelper is a GUI for osslsigncode which allows you to sign your Windows programs under Mac OS X. > WinSignhelper can be found here https://winsignhelper.dermattes.de > > > Regards, > > Matthias Rebbe > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Mon Apr 16 13:59:03 2018 From: tom at makeshyft.com (Tom Glod) Date: Mon, 16 Apr 2018 13:59:03 -0400 Subject: Any feedback for InstaMaker or WinSignHelper? In-Reply-To: <06DDE3B8-FBDC-40DE-8531-73D3440538DC@earthlearningsolutions.org> References: <00866786-860D-4243-8E4D-E90DAAC510C5@m-r-d.de> <06DDE3B8-FBDC-40DE-8531-73D3440538DC@earthlearningsolutions.org> Message-ID: same here its not an immediate need for me ...but i will be trying it out in the coming months. thank you for giving us the tool. On Mon, Apr 16, 2018 at 1:47 PM, prothero--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Matthias > I really appreciate you sharing these tools. It?s a real need. I will be > needing to distribute an app in the next month and will provide feedback. > Best, > Bill > > William Prothero > http://ed.earthednet.org > > > On Apr 16, 2018, at 9:49 AM, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi, > > > > did anyone on this list try or even is using one of my tools InstaMaker > / WinSignHelper? It would be very nice to get any feedback. > > For me both tools are working w/o problems. But maybe someone else found > something that could be fixed, enhanced or added. > > > > So please feel free to sent me your comments about it to > > instamaker at m-r-d.de > > winsignhelper at m-r-d.de > > > > For those who have missed my announcements about the 2 tools. > > > > InstaMaker under windows creates Windows Installers for your Livecode > program. As a side effect it creates DMG files under Mac OS X. > > InstaMaker can be found here https://instamaker.dermattes.de < > https://instamaker.dermattes.de/> > > > > WinSignHelper is a GUI for osslsigncode which allows you to sign your > Windows programs under Mac OS X. > > WinSignhelper can be found here https://winsignhelper.dermattes.de < > https://winsignhelper.dermattes.de/> > > > > > > Regards, > > > > Matthias Rebbe > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 runrev at learning-insights.eu Mon Apr 16 14:05:42 2018 From: runrev at learning-insights.eu (Robert Brenstein) Date: Mon, 16 Apr 2018 20:05:42 +0200 Subject: Anyone have an open source or else a gratis stop watch app In-Reply-To: References: Message-ID: <1AA29FAB-AE5F-427F-B4E7-BEC56A1F0DE9@learning-insights.eu> You probably can just modify the analog clock project that was produced/discussed on this list a while ago? On 14 Apr 2018, at 4:37, Mark Rauterkus via use-livecode wrote: > Hi, > > A swim coach friend was talking about a stopwatch app. Anyone have one > in > LIVECODE already done? > > Wondering. > > Mark Rauterkus > > -- > > -- > Ta. > > > Mark Rauterkus Mark at Rauterkus.com > Executive Director of SKWIM USA, a 501(c)(3) > PPS Summer Dreamers' Swim & Water Polo Camp Executive Coach > Middle School Swim Coach at The Ellis School > Former Varsity Boys Swim Coach, Pittsburgh Obama Academy > Recent Head Water Polo Coach, Carnegie Mellon University Women's Club > Team > Pittsburgh Combined Water Polo Team > > http://CLOH.org > > 412 298 3432 = cell > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Mon Apr 16 18:27:33 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 17 Apr 2018 08:27:33 +1000 Subject: iOS usb/serial access and use In-Reply-To: <102301d3d58d$29d29d10$7d77d730$@net> References: <102301d3d58d$29d29d10$7d77d730$@net> Message-ID: > On 17 Apr 2018, at 12:13 am, Douglas Ruisaard via use-livecode wrote: > It does somewhat bother me, though, that use of the USB to an iOS device *is* available "within" LC but not exposed as a function... I though the LC IDE was written in LC ... someone had that in a posting I read recently ... so, in principle, it "could" be made available to developers. It's not as if LC doesn't allow us to access and use serial/USB devices in other OS's! I'm sure in this age of wireless-ness, hardwire connectivity is a conceptual dinosaur but, for us die-hards, it remains a viable alternative. I think you are talking about mergDeploy here and that is a very specific use case of installing an app onto a device rather than general USB access. Indeed mergDeply uses private APIs to do what it does but that?s OK because we aren?t trying to release LiveCode via the App Store. Cheers Monte From monte at appisle.net Mon Apr 16 18:31:36 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 17 Apr 2018 08:31:36 +1000 Subject: iOS usb/serial access and use In-Reply-To: <109001d3d5a8$2cf879e0$86e96da0$@net> References: <109001d3d5a8$2cf879e0$86e96da0$@net> Message-ID: > On 17 Apr 2018, at 3:27 am, Douglas Ruisaard via use-livecode wrote: > > Hmmm... I found an interesting and possibly an exploitable approach... possibly in combination with Monte's suggestion that "mergAccessory" may be a component. In the link: > https://apple.stackexchange.com/questions/13605/how-to-get-started-with-interfacing-usb-devices-to-ipad > > ... there is discussion about using a MIDI device as an attachment to an iOS device. I could easily get the arduino to appear to be a MIDI device, since that merely involves using a specific "protocol" for moving data AND there are many arduino project which use the arduino for MIDI processing, input and output. > > Question is.. how would I go about "marrying" the two... a MIDI "device" and Monte's "mergAccessory" external? Unfortunately you need an official made for iOS device to use mergAccessory. It?s a special program that hardware manufacturers have to sign up to. Apple being Apple keep control of the ecosystem of hardware. Best bet is to look for a made for iphone thing that is designed as an interface to arduino or something. Cheers Monte From gcanyon at gmail.com Mon Apr 16 21:44:45 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 16 Apr 2018 18:44:45 -0700 Subject: Contributing to the IDE Message-ID: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Are there instructions available somewhere on how to set up the IDE in GitHub so I can make changes and submit pull requests? gc From brian at milby7.com Mon Apr 16 22:48:22 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 17 Apr 2018 02:48:22 +0000 Subject: Contributing to the IDE In-Reply-To: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Message-ID: https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md https://github.com/livecode/livecode/blob/develop/README.md Those two docs have most of what you will need. If you have purchased LiveCode Global 2018 then you can watch the talk I gave last month on setting up your system to build from source (Linux was the demo). Once you have the repo on your seat, you can branch and make any changes required and do a PR. Just be sure to keep straight which project you are in. The IDE is separate and most of the stuff related to the IDE is in that sub project. I find it easier to just do everything in a branch and build from source to check my work - even when working on widgets. I do have a stack I use to check dictionary updates though (but it doesn?t check that examples compile... need to get that included at some point). Brian On Mon, Apr 16, 2018 at 8:45 PM Geoff Canyon via use-livecode < use-livecode at lists.runrev.com> wrote: > Are there instructions available somewhere on how to set up the IDE in > GitHub so I can make changes and submit pull requests? > > gc > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Apr 17 08:58:17 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 17 Apr 2018 13:58:17 +0100 Subject: Anyone have an open source or else a gratis stop watch app In-Reply-To: <1AA29FAB-AE5F-427F-B4E7-BEC56A1F0DE9@learning-insights.eu> References: <1AA29FAB-AE5F-427F-B4E7-BEC56A1F0DE9@learning-insights.eu> Message-ID: Well it depends entirely on what you need: my guess is it?s for mobile (which platform?) but does it send its results to a server, is there a database involved, etc,? I could volunteer but I?m afraid the production time would be way too long... Graham Sent from my iPhone > On 16 Apr 2018, at 19:05, Robert Brenstein via use-livecode wrote: > > You probably can just modify the analog clock project that was produced/discussed on this list a while ago? > >> On 14 Apr 2018, at 4:37, Mark Rauterkus via use-livecode wrote: >> >> Hi, >> >> A swim coach friend was talking about a stopwatch app. Anyone have one in >> LIVECODE already done? >> >> Wondering. >> >> Mark Rauterkus >> >> -- >> >> -- >> Ta. >> >> >> Mark Rauterkus Mark at Rauterkus.com >> Executive Director of SKWIM USA, a 501(c)(3) >> PPS Summer Dreamers' Swim & Water Polo Camp Executive Coach >> Middle School Swim Coach at The Ellis School >> Former Varsity Boys Swim Coach, Pittsburgh Obama Academy >> Recent Head Water Polo Coach, Carnegie Mellon University Women's Club Team >> Pittsburgh Combined Water Polo Team >> >> http://CLOH.org >> >> 412 298 3432 = cell >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Tue Apr 17 10:14:00 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 17 Apr 2018 15:14:00 +0100 Subject: [OT] - anybody having trouble with 'Transmit' FTP client on a Mac? Message-ID: <1613BDD1-A356-472B-8155-9A6A7C618CA9@mac.com> I?ve got two FTP clients for my Mac (High Sierra), ?Transmit? and ?FileZilla?. From time to time I put Windows executables on a server using these clients for future download and execution on Windows 10. Something strange is happening: with ?FileZilla? there seems to be no problem, but with ?Transmit?, sometimes W10 reports: ?This app can?t run on your PC To find a version for your PC, check with the software publisher? The information about the exact size and date of the app seems the same on the hard disk and server versions, but it can?t be, can it? BTW the app is code signed. Can anyone suggest what ?Transmit? is doing? Is it perhaps somehow indicating that the app is 32-bit? But wait, aren?t all LC standalones still 32-bit? Confused Graham From prothero at earthlearningsolutions.org Tue Apr 17 10:37:16 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Tue, 17 Apr 2018 07:37:16 -0700 Subject: [OT] - anybody having trouble with 'Transmit' FTP client on a Mac? In-Reply-To: <1613BDD1-A356-472B-8155-9A6A7C618CA9@mac.com> References: <1613BDD1-A356-472B-8155-9A6A7C618CA9@mac.com> Message-ID: <00C087D9-1F7D-4417-8D51-34C9A7B6A082@earthlearningsolutions.org> Graham, I don?t know about Transmit or FileZilla, but in LC9, under standalone settings, I see a checkbox for both 32 and 64 bit stand-alones on Mac anyway. Best, Bill William Prothero http://earthlearningsolutions.org > On Apr 17, 2018, at 7:14 AM, Graham Samuel via use-livecode wrote: > > I?ve got two FTP clients for my Mac (High Sierra), ?Transmit? and ?FileZilla?. From time to time I put Windows executables on a server using these clients for future download and execution on Windows 10. Something strange is happening: with ?FileZilla? there seems to be no problem, but with ?Transmit?, sometimes W10 reports: > > ?This app can?t run on your PC > To find a version for your PC, check with the software publisher? > > The information about the exact size and date of the app seems the same on the hard disk and server versions, but it can?t be, can it? BTW the app is code signed. > > Can anyone suggest what ?Transmit? is doing? Is it perhaps somehow indicating that the app is 32-bit? But wait, aren?t all LC standalones still 32-bit? > > Confused > > 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 From bobsneidar at iotecdigital.com Tue Apr 17 10:43:54 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 17 Apr 2018 14:43:54 +0000 Subject: The case for not trying to be so English-like In-Reply-To: <66cf1332-f679-aa3f-d727-4792b3adc6e7@sonic.net> References: <66cf1332-f679-aa3f-d727-4792b3adc6e7@sonic.net> Message-ID: I aced grammar in grade school, only because I recognized that the trick was not to understand the rules, but to memorize the exceptions. I told my teacher once that English seems to have more exceptions than rules. :-) Bob S > On Apr 14, 2018, at 19:39 , Mark Wieder via use-livecode wrote: > > Hah! or, why hangover is one word... > > https://lithub.com/attention-grammar-pedants-the-english-language-isnt-logical/ > > -- > Mark Wieder > ahsoftware at gmail.com From bobsneidar at iotecdigital.com Tue Apr 17 10:45:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 17 Apr 2018 14:45:33 +0000 Subject: [ANN] Release 8.1.10 RC-1 In-Reply-To: References: Message-ID: <01ECF699-D150-4C0E-8154-C3E51EBCB289@iotecdigital.com> 8.x or 8.1.x? I thought there was an 8.2 coming? Bob S > On Apr 16, 2018, at 06:55 , panagiotis merakos via use-livecode wrote: > > Dear list members, > > We are pleased to announce the release of LiveCode 8.1.10 RC-1. Note 8.1.10 > is the last planned release in the 8.x series. > > Getting the Release > =================== > You can get the release at https://downloads.livecode.com/livecode/ or via > the automatic updater. From bobsneidar at iotecdigital.com Tue Apr 17 10:47:35 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 17 Apr 2018 14:47:35 +0000 Subject: DataGrid Column Labels In-Reply-To: References: Message-ID: <1C47BF9B-B102-44B0-9B9B-7F8290B2A040@iotecdigital.com> As I mentioned, I get the behavior of a datagrid that IS working, then set the behavior of the datagrid that ISN'T working to that behavior. I'm not sure why but there seem to be more than one datagrid behavior object floating around. Bob S > On Apr 16, 2018, at 08:29 , Terence Heaford via use-livecode wrote: > > I see what you have done and when I create a new project with LC9 and create a Data Grid I do not have any problems. > > The issue I have is when I create a Data Grid within a project that has been created with an earlier version of LC. > > If this is relevant I do not know. > > For the moment I have settled on placing this in the preOpenCard handler > > > put ?aa,bb,cc,dd,ee,ff,gg,hh" into tFields > > replace "," with CR in tFields > > set the dgProp[ "column labels" ] of group ?myTable" to tFields > > > > This does the trick but it would be better if I knew why? > > There are 13 Data Grids in the project. > > 8 that were there before LC9 are OK the other 5 exhibit the issue. > > > > All the best > > Terry From paul at researchware.com Tue Apr 17 10:49:44 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 17 Apr 2018 10:49:44 -0400 Subject: [ANN] Release 8.1.10 RC-1 In-Reply-To: <01ECF699-D150-4C0E-8154-C3E51EBCB289@iotecdigital.com> References: <01ECF699-D150-4C0E-8154-C3E51EBCB289@iotecdigital.com> Message-ID: <4bc0c5d3-c0bd-e599-fa9d-d4ce4f5f6e62@researchware.com> On 4/17/2018 10:45 AM, Bob Sneidar via use-livecode wrote: > 8.x or 8.1.x? I thought there was an 8.2 coming? > > Bob S > 1. LiveCode has announces that there will not be an 8.2 release and that 8.1.10 is the last release in the 8.x.x series. With LC 9.0.0 out, you will now see all new release built off from that code base. From bobsneidar at iotecdigital.com Tue Apr 17 10:53:43 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 17 Apr 2018 14:53:43 +0000 Subject: [ANN] Release 8.1.10 RC-1 In-Reply-To: <4bc0c5d3-c0bd-e599-fa9d-d4ce4f5f6e62@researchware.com> References: <01ECF699-D150-4C0E-8154-C3E51EBCB289@iotecdigital.com> <4bc0c5d3-c0bd-e599-fa9d-d4ce4f5f6e62@researchware.com> Message-ID: Thanks Paul. I guess I missed that announcement. Makes sense though now that LC9 is gold. Bob S > On Apr 17, 2018, at 07:49 , Paul Dupuis via use-livecode wrote: > > On 4/17/2018 10:45 AM, Bob Sneidar via use-livecode wrote: >> 8.x or 8.1.x? I thought there was an 8.2 coming? >> >> Bob S >> > > 1. LiveCode has announces that there will not be an 8.2 release and > that 8.1.10 is the last release in the 8.x.x series. With LC 9.0.0 > out, you will now see all new release built off from that code base. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Apr 17 10:57:30 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 17 Apr 2018 15:57:30 +0100 Subject: [OT] - anybody having trouble with 'Transmit' FTP client on a Mac? In-Reply-To: <00C087D9-1F7D-4417-8D51-34C9A7B6A082@earthlearningsolutions.org> References: <1613BDD1-A356-472B-8155-9A6A7C618CA9@mac.com> <00C087D9-1F7D-4417-8D51-34C9A7B6A082@earthlearningsolutions.org> Message-ID: <5CC22C1C-45BF-40DC-96DA-CC8771823465@mac.com> Hi Bill No such option on Windows standalones on the latest LC 9 (or ever, I suppose). My lack of knowledge of Windows means that I don?t even know if it makes sense to talk about 32- and 64- bit: what I do know is that PC standalones tend to go into a folder called ?Program Files (x86) which may imply some kind of out-of-date-ness: but that folder still exists on Windows 10. Mysteries, who needs them? Grham > On 17 Apr 2018, at 15:37, prothero--- via use-livecode wrote: > > Graham, > I don?t know about Transmit or FileZilla, but in LC9, under standalone settings, I see a checkbox for both 32 and 64 bit stand-alones on Mac anyway. > > Best, > Bill > > William Prothero > http://earthlearningsolutions.org > >> On Apr 17, 2018, at 7:14 AM, Graham Samuel via use-livecode wrote: >> >> I?ve got two FTP clients for my Mac (High Sierra), ?Transmit? and ?FileZilla?. From time to time I put Windows executables on a server using these clients for future download and execution on Windows 10. Something strange is happening: with ?FileZilla? there seems to be no problem, but with ?Transmit?, sometimes W10 reports: >> >> ?This app can?t run on your PC >> To find a version for your PC, check with the software publisher? >> >> The information about the exact size and date of the app seems the same on the hard disk and server versions, but it can?t be, can it? BTW the app is code signed. >> >> Can anyone suggest what ?Transmit? is doing? Is it perhaps somehow indicating that the app is 32-bit? But wait, aren?t all LC standalones still 32-bit? >> >> Confused >> >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Apr 17 11:20:00 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 17 Apr 2018 17:20:00 +0200 Subject: [OT] - anybody having trouble with 'Transmit' FTP client on a Mac? In-Reply-To: <1613BDD1-A356-472B-8155-9A6A7C618CA9@mac.com> References: <1613BDD1-A356-472B-8155-9A6A7C618CA9@mac.com> Message-ID: <953E89AD-CF83-4E78-B43F-9C83F11228D0@m-r-d.de> Graham I very often upload Windows programs with Transmit, but normally compressed as a Zip files. In very rare cases i upload them also as .exe. I?ve never run into such problem. Okay, that does not really help. Are you sure the file was completely downloaded when you tried to open it? I remember that i got a similar error message when i tried to open an .exe file which was still downloaded/transferred. Regarding your question about 32 and 64 bit. LC currently creates only 32 bit standalones for Windows. And about the differences between the ?Program Files? and ?Program Files (x86)? folders you?ll find some information here https://www.howtogeek.com/129178/why-does-64-bit-windows-need-a-separate-program-files-x86-folder/ Regards, Matthias > Am 17.04.2018 um 16:14 schrieb Graham Samuel via use-livecode : > > I?ve got two FTP clients for my Mac (High Sierra), ?Transmit? and ?FileZilla?. From time to time I put Windows executables on a server using these clients for future download and execution on Windows 10. Something strange is happening: with ?FileZilla? there seems to be no problem, but with ?Transmit?, sometimes W10 reports: > > ?This app can?t run on your PC > To find a version for your PC, check with the software publisher? > > The information about the exact size and date of the app seems the same on the hard disk and server versions, but it can?t be, can it? BTW the app is code signed. > > Can anyone suggest what ?Transmit? is doing? Is it perhaps somehow indicating that the app is 32-bit? But wait, aren?t all LC standalones still 32-bit? > > Confused > > 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 From curt at sonasoftware.com Tue Apr 17 11:46:36 2018 From: curt at sonasoftware.com (Curtis Ford) Date: Tue, 17 Apr 2018 11:46:36 -0400 Subject: filename in standalones for Mac - changed recently? Message-ID: <5AD616DC.9050604@sonasoftware.com> The other day when firing up TextWrangler, I saw the message that Apple now shows once when opening a 32bit app ? that it should be updated (for 64bit). Which got me thinking about older Livecode projects. A few years ago I did a series of modules for a client (using Livecode 7) that included many mp3 files, in a folder named 'media' and accessed through a player. I had used this in the stack script: on setgMediaPath global gMediaPath //-------SET THE MEDIA PATH; for some reason this MUST be in its own handler, not in openStack or preOpenStack set the itemDelimiter to slash put the effective fileName of this stack into gMediaPath delete the last item of gMediaPath put gMediaPath & slash & "media" & slash into gMediaPath end setgMediaPath Today I opened up a module in LiveCode 9, chose Mac OS X 64-bit, and made a standalone, but the sound files didn't play. After rummaging around in the package and some experimenting, it seems the module now wants sound files to be in APPNAME/APPNAME.app/Contents/Resources/_MacOS/media/ The dictionary for 9.0 has this cryptic entry for 'filename': "The use of was deprecated in version 8.1 of LiveCode with new defaults for and as true on all systems apart from pre OS X 10.8. The Windows build of LiveCode no longer supports any features and setting the and will have no effect. Additionally does not include 64 bit support and therefore can not be supported on OS X 64 bit builds of LiveCode." 1) If the client wants to go ahead and update for 64bit compatibility at some point, will I need to go into each module and replace put gMediaPath & slash & "media" & slash into gMediaPath with put gMediaPath & slash & "Resources" & slash & "_MacOS" & slash & "media" & slash into gMediaPath 2) Any other issues to be aware of when managing this transition? Thanks! Curt -- Sent from Postbox From klaus at major-k.de Tue Apr 17 11:53:31 2018 From: klaus at major-k.de (Klaus major-k) Date: Tue, 17 Apr 2018 17:53:31 +0200 Subject: filename in standalones for Mac - changed recently? In-Reply-To: <5AD616DC.9050604@sonasoftware.com> References: <5AD616DC.9050604@sonasoftware.com> Message-ID: Hi Curtis, > Am 17.04.2018 um 17:46 schrieb Curtis Ford via use-livecode : > > The other day when firing up TextWrangler, I saw the message that Apple now shows once when opening a 32bit app ? that it should be updated (for 64bit). Which got me thinking about older Livecode projects. > > A few years ago I did a series of modules for a client (using Livecode 7) that included many mp3 files, in a folder named 'media' and accessed through a player. I had used this in the stack script: > ... > put gMediaPath & slash & "Resources" & slash & "_MacOS" & slash & "media" & slash into gMediaPath therefore we have all these nice SPECIALFOLDERPATHs()! 8-) Use this one: ------------------------------------ on setgMediaPath global gMediaPath put specialfolderpath("resources") & "/media/" into gMediaPath end setgMediaPath ------------------------------------ Done! Same applies to your older projet, too, however! > 2) Any other issues to be aware of when managing this transition? > > Thanks! > > Curt Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From curt at sonasoftware.com Tue Apr 17 12:21:52 2018 From: curt at sonasoftware.com (Curtis Ford) Date: Tue, 17 Apr 2018 12:21:52 -0400 Subject: filename in standalones for Mac - changed recently? Message-ID: <5AD61F20.8020002@sonasoftware.com> I'll file this under "things I wish I'd known about a few years ago"... put specialfolderpath("resources")& "/media/" into gMediaPath More elegant, change-proof, and works. Thanks Klaus! :) -Curt -- Sent from Postbox From theaford at btinternet.com Wed Apr 18 02:36:50 2018 From: theaford at btinternet.com (Terence Heaford) Date: Wed, 18 Apr 2018 07:36:50 +0100 Subject: DataGrid Column Labels In-Reply-To: <1C47BF9B-B102-44B0-9B9B-7F8290B2A040@iotecdigital.com> References: <1C47BF9B-B102-44B0-9B9B-7F8290B2A040@iotecdigital.com> Message-ID: I?ve had a look at various behaviours but rather then make a mess of everything can you give a blow by blow of your actions please. Thanks Terry > On 17 Apr 2018, at 15:47, Bob Sneidar via use-livecode wrote: > > As I mentioned, I get the behavior of a datagrid that IS working, then set the behavior of the datagrid that ISN'T working to that behavior. I'm not sure why but there seem to be more than one datagrid behavior object floating around. > > Bob S > > >> On Apr 16, 2018, at 08:29 , Terence Heaford via use-livecode wrote: >> >> I see what you have done and when I create a new project with LC9 and create a Data Grid I do not have any problems. >> >> The issue I have is when I create a Data Grid within a project that has been created with an earlier version of LC. >> >> If this is relevant I do not know. >> >> For the moment I have settled on placing this in the preOpenCard handler >> >> >> put ?aa,bb,cc,dd,ee,ff,gg,hh" into tFields >> >> replace "," with CR in tFields >> >> set the dgProp[ "column labels" ] of group ?myTable" to tFields >> >> >> >> This does the trick but it would be better if I knew why? >> >> There are 13 Data Grids in the project. >> >> 8 that were there before LC9 are OK the other 5 exhibit the issue. >> >> >> >> All the best >> >> Terry > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 18 06:19:21 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 18 Apr 2018 12:19:21 +0200 Subject: How to get the line break char? Message-ID: <009e01d3d6fe$b8266e80$28734b80$@kestner.de> Hello, I want to compare two CSV files and I suspect that there is a difference in the kind of line break. With charToNum(last char of line 1 of field "foo") I can compare the last visible char of each line, but how can I get and analyse the line break char that is used? Thanks Tiemo From tfabacher at gmail.com Wed Apr 18 06:50:55 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Wed, 18 Apr 2018 06:50:55 -0400 Subject: Posting to LiveCode Server Message-ID: Any Help will be appreciated... Normally we use Node.js, but we are trying to get LiveCode server working. We are doing a simple test: If I put the URL in a browser I get back, "It works" https://api01.triviamatic.tv/round_create.lc *put* "Accept: text/plain" & CR after tHeaders *put* "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders *set* the httpHeaders to tHeaders *put*"fullname=chi&gender=male&color=black" into tArgList *post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc " *put* the result into tError *put* it into tFormResults The tError is: tsneterr: (52) Empty reply from server and tFormResults is null I need some help ASAP. This is SUPER frustrating!! --Todd Fabacher From matthias_livecode_150811 at m-r-d.de Wed Apr 18 08:05:23 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 18 Apr 2018 14:05:23 +0200 Subject: Posting to LiveCode Server In-Reply-To: References: Message-ID: Todd, is there a reason why you are not using the function libURLMultipartFormData to format the data before posting? We are using the post method for different tasks including uploading really big files to a livecode server, but we always use libURLMultipartFormData to create the form data. Btw.which version of LC server is running on your side? Matthias > Am 18.04.2018 um 12:50 schrieb Todd Fabacher via use-livecode : > > Any Help will be appreciated... > > Normally we use Node.js, but we are trying to get LiveCode server working. > We are doing a simple test: > > > > > If I put the URL in a browser I get back, "It works" > > https://api01.triviamatic.tv/round_create.lc > > > > *put* "Accept: text/plain" & CR after tHeaders > *put* "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders > *set* the httpHeaders to tHeaders > *put*"fullname=chi&gender=male&color=black" into tArgList > *post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc > > " > *put* the result into tError > *put* it into tFormResults > > > The tError is: tsneterr: (52) Empty reply from server > > and tFormResults is null > > > I need some help ASAP. This is SUPER frustrating!! > > --Todd Fabacher > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Apr 18 08:49:36 2018 From: dunbarx at aol.com (dunbarx) Date: Wed, 18 Apr 2018 05:49:36 -0700 (MST) Subject: How to get the line break char? In-Reply-To: <009e01d3d6fe$b8266e80$28734b80$@kestner.de> References: <009e01d3d6fe$b8266e80$28734b80$@kestner.de> Message-ID: <1524055776181-0.post@n4.nabble.com> Hi. You cannot ask for the "last" char of a line, because LC will give you the last "non-control" char. Say you have the below text in a field: abc def So the last char of line 1 is "c". But the number of chars of that text snippet is 7 But numToChar(char 4 of fld 1) = 10. That is a return char between the "c" and the "d" Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From toolbook at kestner.de Wed Apr 18 08:57:34 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 18 Apr 2018 14:57:34 +0200 Subject: AW: How to get the line break char? In-Reply-To: <1524055776181-0.post@n4.nabble.com> References: <009e01d3d6fe$b8266e80$28734b80$@kestner.de> <1524055776181-0.post@n4.nabble.com> Message-ID: <00b901d3d714$d20e32e0$762a98a0$@kestner.de> Yes, thats what I said. I am looking for an alternative to examine the line break if it is LF, CR, LFCR or whatever Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von dunbarx via use-livecode Gesendet: Mittwoch, 18. April 2018 14:50 An: use-revolution at lists.runrev.com Cc: dunbarx Betreff: Re: How to get the line break char? Hi. You cannot ask for the "last" char of a line, because LC will give you the last "non-control" char. Say you have the below text in a field: abc def So the last char of line 1 is "c". But the number of chars of that text snippet is 7 But numToChar(char 4 of fld 1) = 10. That is a return char between the "c" and the "d" Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html _______________________________________________ use-livecode mailing list use-livecode at 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 Apr 18 09:00:05 2018 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 18 Apr 2018 14:00:05 +0100 Subject: AW: How to get the line break char? In-Reply-To: <00b901d3d714$d20e32e0$762a98a0$@kestner.de> References: <009e01d3d6fe$b8266e80$28734b80$@kestner.de> <1524055776181-0.post@n4.nabble.com> <00b901d3d714$d20e32e0$762a98a0$@kestner.de> Message-ID: <6228399d-7cee-e039-a0be-434298bd71e5@tweedly.net> put the number of chars in line 1 of tVar into temp put char temp+1 of tVar into tLineBreakChar (and beware of single-line data :-) -- Alex. On 18/04/2018 13:57, Tiemo Hollmann TB via use-livecode wrote: > Yes, thats what I said. I am looking for an alternative to examine the line > break if it is LF, CR, LFCR or whatever > Tiemo > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von dunbarx via use-livecode > Gesendet: Mittwoch, 18. April 2018 14:50 > An: use-revolution at lists.runrev.com > Cc: dunbarx > Betreff: Re: How to get the line break char? > > Hi. > > You cannot ask for the "last" char of a line, because LC will give you the > last "non-control" char. > > Say you have the below text in a field: > > abc > def > > > So the last char of line 1 is "c". But the number of chars of that text > snippet is 7 > > But numToChar(char 4 of fld 1) = 10. That is a return char between the "c" > and the "d" > > Craig > > > > -- > Sent from: > http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode 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 alex at tweedly.net Wed Apr 18 09:01:15 2018 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 18 Apr 2018 14:01:15 +0100 Subject: Posting to LiveCode Server In-Reply-To: References: Message-ID: Not quite sure what you're trying to do ... or why you use such a complicated URL in the client code. Changing it to simply *get URL "https://api01.triviamatic.tv/round_create.lc" * will work fine, as will *post*emptyto"https://api01.triviamatic.tv/round_create.lc" -- Alex. On 18/04/2018 11:50, Todd Fabacher via use-livecode wrote: > Any Help will be appreciated... > > Normally we use Node.js, but we are trying to get LiveCode server working. > We are doing a simple test: > > > > > If I put the URL in a browser I get back, "It works" > > https://api01.triviamatic.tv/round_create.lc > > > > *put* "Accept: text/plain" & CR after tHeaders > *put* "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders > *set* the httpHeaders to tHeaders > *put*"fullname=chi&gender=male&color=black" into tArgList > *post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc > > " > *put* the result into tError > *put* it into tFormResults > > > The tError is: tsneterr: (52) Empty reply from server > > and tFormResults is null > > > I need some help ASAP. This is SUPER frustrating!! > > --Todd Fabacher > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Apr 18 09:10:36 2018 From: dunbarx at aol.com (dunbarx) Date: Wed, 18 Apr 2018 06:10:36 -0700 (MST) Subject: AW: How to get the line break char? In-Reply-To: <00b901d3d714$d20e32e0$762a98a0$@kestner.de> References: <009e01d3d6fe$b8266e80$28734b80$@kestner.de> <1524055776181-0.post@n4.nabble.com> <00b901d3d714$d20e32e0$762a98a0$@kestner.de> Message-ID: <1524057036368-0.post@n4.nabble.com> Tiemo. I guess I do not understand. put charToNum(the number of chars of line (lineOfInterest + 1) of yourText) into tChar Then tChar can be compared to the "tChar" of any other line. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bonnmike at gmail.com Wed Apr 18 09:50:47 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 18 Apr 2018 07:50:47 -0600 Subject: Posting to LiveCode Server In-Reply-To: References: Message-ID: Can you share the code to the page you're actually posting to? Its sounding like its not actually returning any output, causing a 500 internal error. Just to let you test, I set up a quick and dirty page at http://guidezone.info/test.lc The code in the page is as follows. " end repeat else put "Error: No data posted" -- gotta put somethingto avoid a 500 error end if ?> To test it, I used the following in a button. put "Accept: text/plain" & CR after tHeaders put "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders set the httpHeaders to tHeaders put liburlformdata("name","Chi","gender","male","color","black") into tPostData put tPostData & cr --so that I can see the generated post string post tPostData to "http://guidezone.info/test.lc" put it && the result after msg This works for me, though as I said, I don't have tsnet. You're welcome to do test runs against my url if you like. If it works for me as written, and not for you, i'd be pointing my finger at tsnet. On Wed, Apr 18, 2018 at 7:01 AM, Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > Not quite sure what you're trying to do ... or why you use such a > complicated URL in the client code. > > Changing it to simply > > *get URL "https://api01.triviamatic.tv/round_create.lc" > * > > will work fine, as will > > *post*emptyto"https://api01.triviamatic.tv/round_create.lc" > > > -- Alex. > > > > On 18/04/2018 11:50, Todd Fabacher via use-livecode wrote: > >> Any Help will be appreciated... >> >> Normally we use Node.js, but we are trying to get LiveCode server working. >> We are doing a simple test: >> >> >> >> >> If I put the URL in a browser I get back, "It works" >> >> https://api01.triviamatic.tv/round_create.lc >> > ound_create.lc&sa=D&source=hangouts&ust=1524117219848000&usg >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA> >> >> >> *put* "Accept: text/plain" & CR after tHeaders >> *put* "Content-Type: application/x-www-form-urlencoded" & CR after >> tHeaders >> *set* the httpHeaders to tHeaders >> *put*"fullname=chi&gender=male&color=black" into tArgList >> *post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc >> > ound_create.lc&sa=D&source=hangouts&ust=1524117219848000&usg >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA> >> " >> *put* the result into tError >> *put* it into tFormResults >> >> >> The tError is: tsneterr: (52) Empty reply from server >> >> and tFormResults is null >> >> >> I need some help ASAP. This is SUPER frustrating!! >> >> --Todd Fabacher >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 brian at milby7.com Wed Apr 18 09:52:10 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 18 Apr 2018 13:52:10 +0000 Subject: AW: How to get the line break char? In-Reply-To: <1524057036368-0.post@n4.nabble.com> References: <009e01d3d6fe$b8266e80$28734b80$@kestner.de> <1524055776181-0.post@n4.nabble.com> <00b901d3d714$d20e32e0$762a98a0$@kestner.de> <1524057036368-0.post@n4.nabble.com> Message-ID: One other consideration is how you are opening the file. Using ?file? will end up converting to just LF. You will need to use ?binfile? to examine the line endings native in the file. On Wed, Apr 18, 2018 at 8:11 AM dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > Tiemo. > > I guess I do not understand. > > put charToNum(the number of chars of line (lineOfInterest + 1) of yourText) > into tChar > > Then tChar can be compared to the "tChar" of any other line. > > Craig > > > > -- > Sent from: > http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Wed Apr 18 09:52:10 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 18 Apr 2018 13:52:10 +0000 Subject: AW: How to get the line break char? In-Reply-To: <1524057036368-0.post@n4.nabble.com> References: <009e01d3d6fe$b8266e80$28734b80$@kestner.de> <1524055776181-0.post@n4.nabble.com> <00b901d3d714$d20e32e0$762a98a0$@kestner.de> <1524057036368-0.post@n4.nabble.com> Message-ID: One other consideration is how you are opening the file. Using ?file? will end up converting to just LF. You will need to use ?binfile? to examine the line endings native in the file. On Wed, Apr 18, 2018 at 8:11 AM dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > Tiemo. > > I guess I do not understand. > > put charToNum(the number of chars of line (lineOfInterest + 1) of yourText) > into tChar > > Then tChar can be compared to the "tChar" of any other line. > > Craig > > > > -- > Sent from: > http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 18 10:00:46 2018 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 18 Apr 2018 15:00:46 +0100 Subject: [Ann] xaLib - library to extract data from an array. Message-ID: <81141c50-e80e-a75c-83e2-9b7ad8ca8abc@tweedly.net> Bob Sneidar and Richard Gaskin said : > > Essentially it's for finding things in an array. You might say I could > > do the same thing by iterating through all the elements of an array, > > but what if I wanted to do multiple queries? It's easier for me to > > write SQL queries than it is to code repeat loops. > > I hear ya'. I find myself tempted way more than I have time for to > write an xquery-like library for working with arrays. We could sure use > one. So, I was tempted too :-) But I decide there was no need for the complexity of xquery, and it was better to keep it simple, along the lines of Andre's DBLib, or revIgniter's Database lIbrary. Hence : xaLib? - eXtract from an Array Library ?? which can be found (I hope) at github.com/alextweedly/xalib (I may not have done everything right on github - please let me know if I need to fix anything). There a script-only library, and a very simple test/demo stack as well as some basic documentation. Summary: the data is held in a LC array. You ?- (optionally) specify the matching criteria (by a series of calls to xaWhere) ?- (optionally) specify the ordering needed (by a series of calls to xaOrderBy) ?- (optionally) name that query for later re-use (xaNameQuery) ?- then run the query by calling xaQuery, which returns the set of keys matching your needs. ?- (optionally) make a copy of the 'interesting' data (but usually better not to do this). Any suggestions / comments / contributions welcomed. -- Alex. From bobsneidar at iotecdigital.com Wed Apr 18 10:53:35 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Apr 2018 14:53:35 +0000 Subject: DataGrid Column Labels In-Reply-To: References: <1C47BF9B-B102-44B0-9B9B-7F8290B2A040@iotecdigital.com> Message-ID: 1. Find a datagrid that does not exhibit the problem. In the message box put: put the behavior of group to Bob S > On Apr 17, 2018, at 23:36 , Terence Heaford via use-livecode wrote: > > I?ve had a look at various behaviours but rather then make a mess of everything can you give a blow by blow of your actions please. > > > Thanks > > Terry > > >> On 17 Apr 2018, at 15:47, Bob Sneidar via use-livecode wrote: >> >> As I mentioned, I get the behavior of a datagrid that IS working, then set the behavior of the datagrid that ISN'T working to that behavior. I'm not sure why but there seem to be more than one datagrid behavior object floating around. >> >> Bob S From bonnmike at gmail.com Wed Apr 18 11:05:57 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 18 Apr 2018 09:05:57 -0600 Subject: DataGrid Column Labels In-Reply-To: References: <1C47BF9B-B102-44B0-9B9B-7F8290B2A040@iotecdigital.com> Message-ID: I'm curious as to the differences.. Bob, what do you get if you.. put the behavior of group "workingdatagridname" into tWorking put the behavior of group "nonworkingdatagridname" into tBroken get dicompare(the script of tWorking,tBroken,1) put it On Wed, Apr 18, 2018 at 8:53 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > 1. Find a datagrid that does not exhibit the problem. In the message box > put: > put the behavior of group > 2. Copy what's in the message > > 3. Go to the datagrid that is NOT working > > 4. In the message box type: > set the behavior of to > > Bob S > > > > On Apr 17, 2018, at 23:36 , Terence Heaford via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I?ve had a look at various behaviours but rather then make a mess of > everything can you give a blow by blow of your actions please. > > > > > > Thanks > > > > Terry > > > > > >> On 17 Apr 2018, at 15:47, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> As I mentioned, I get the behavior of a datagrid that IS working, then > set the behavior of the datagrid that ISN'T working to that behavior. I'm > not sure why but there seem to be more than one datagrid behavior object > floating around. > >> > >> 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 bonnmike at gmail.com Wed Apr 18 11:06:41 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 18 Apr 2018 09:06:41 -0600 Subject: DataGrid Column Labels In-Reply-To: References: <1C47BF9B-B102-44B0-9B9B-7F8290B2A040@iotecdigital.com> Message-ID: Should have been diffcompare(the script of tWorking, the script of tBroken, 1) Typos galore. On Wed, Apr 18, 2018 at 9:05 AM, Mike Bonner wrote: > I'm curious as to the differences.. > Bob, what do you get if you.. > put the behavior of group "workingdatagridname" into tWorking > put the behavior of group "nonworkingdatagridname" into tBroken > get dicompare(the script of tWorking,tBroken,1) > put it > > On Wed, Apr 18, 2018 at 8:53 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> 1. Find a datagrid that does not exhibit the problem. In the message box >> put: >> put the behavior of group > >> 2. Copy what's in the message >> >> 3. Go to the datagrid that is NOT working >> >> 4. In the message box type: >> set the behavior of to >> >> Bob S >> >> >> > On Apr 17, 2018, at 23:36 , Terence Heaford via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > I?ve had a look at various behaviours but rather then make a mess of >> everything can you give a blow by blow of your actions please. >> > >> > >> > Thanks >> > >> > Terry >> > >> > >> >> On 17 Apr 2018, at 15:47, Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> >> >> As I mentioned, I get the behavior of a datagrid that IS working, then >> set the behavior of the datagrid that ISN'T working to that behavior. I'm >> not sure why but there seem to be more than one datagrid behavior object >> floating around. >> >> >> >> 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 bobsneidar at iotecdigital.com Wed Apr 18 11:07:35 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Apr 2018 15:07:35 +0000 Subject: [Ann] xaLib - library to extract data from an array. In-Reply-To: <81141c50-e80e-a75c-83e2-9b7ad8ca8abc@tweedly.net> References: <81141c50-e80e-a75c-83e2-9b7ad8ca8abc@tweedly.net> Message-ID: <0823125C-F968-473C-B0B7-0C44047353A3@iotecdigital.com> Thanks Alex. Couple questions: Does this convert to an SQL database? If so, are there commands for ordering? The advantage to converting to a memory based sqLite database is that there are features unique to SQL, like relational queries and sorting by multiple columns that you cannot get by simply extracting matching keys. The downside *might* be the time it takes to convert, but it's one pass through the array (or arrays), which I assume you are having to do anyway. I use a memory database, but of course you wouldn't have to. Any SQL database would work but memory makes it so much faster, so long as the array size is not humongous. Bob S > On Apr 18, 2018, at 07:00 , Alex Tweedly via use-livecode wrote: > > So, I was tempted too :-) > > But I decide there was no need for the complexity of xquery, and it was better to keep it simple, along the lines of Andre's DBLib, or revIgniter's Database lIbrary. > > Hence : xaLib - eXtract from an Array Library > which can be found (I hope) at github.com/alextweedly/xalib From alex at tweedly.net Wed Apr 18 12:10:38 2018 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 18 Apr 2018 17:10:38 +0100 Subject: [Ann] xaLib - library to extract data from an array. In-Reply-To: <0823125C-F968-473C-B0B7-0C44047353A3@iotecdigital.com> References: <81141c50-e80e-a75c-83e2-9b7ad8ca8abc@tweedly.net> <0823125C-F968-473C-B0B7-0C44047353A3@iotecdigital.com> Message-ID: <2d89c2d1-7869-3cd9-c3ba-22bf463b9279@tweedly.net> No, no SQL database involved. The array is kept untouched - although you can use the xaCopy function to make a copy of some subset of the data, in general it's going to be more efficient (both space and time) to keep the array. There is no relational anything - it's just intended for wen you are using a LC array as a key <--> value data store. You can do sorting by multiple columns, using xaOrderBy (each column is sorted in (reverse) turn, depending on the fact that LC's sort is stable).? (note it does the key matching as one phase, then sorts those keys as a second phase). I expect the searches etc. would be faster with SQL / memory database - but if you are using the array anyway, this way can be simpler, easier and it avoids any sync issues if the array is being changed - as well as allowing you to keep only a single copy in memory. -- Alex. On 18/04/2018 16:07, Bob Sneidar via use-livecode wrote: > Thanks Alex. Couple questions: > > Does this convert to an SQL database? If so, are there commands for ordering? > > The advantage to converting to a memory based sqLite database is that there are features unique to SQL, like relational queries and sorting by multiple columns that you cannot get by simply extracting matching keys. The downside *might* be the time it takes to convert, but it's one pass through the array (or arrays), which I assume you are having to do anyway. > > I use a memory database, but of course you wouldn't have to. Any SQL database would work but memory makes it so much faster, so long as the array size is not humongous. > > Bob S > > >> On Apr 18, 2018, at 07:00 , Alex Tweedly via use-livecode wrote: >> >> So, I was tempted too :-) >> >> But I decide there was no need for the complexity of xquery, and it was better to keep it simple, along the lines of Andre's DBLib, or revIgniter's Database lIbrary. >> >> Hence : xaLib - eXtract from an Array Library >> which can be found (I hope) at github.com/alextweedly/xalib > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 18 13:08:54 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 18 Apr 2018 10:08:54 -0700 Subject: [Ann] xaLib - library to extract data from an array. In-Reply-To: <2d89c2d1-7869-3cd9-c3ba-22bf463b9279@tweedly.net> References: <2d89c2d1-7869-3cd9-c3ba-22bf463b9279@tweedly.net> Message-ID: <288648d8-4a5a-0b48-ea21-39b462482816@fourthworld.com> Alex Tweedly wrote: > I expect the searches etc. would be faster with SQL / memory database Both use hashed lookups to find data. What would be needed to bring LC array queries on par with SQLite? -- 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 theaford at btinternet.com Wed Apr 18 13:43:22 2018 From: theaford at btinternet.com (Terence Heaford) Date: Wed, 18 Apr 2018 18:43:22 +0100 Subject: DataGrid Column Labels In-Reply-To: References: <1C47BF9B-B102-44B0-9B9B-7F8290B2A040@iotecdigital.com> Message-ID: All my tables just say button id 1005 of stack "revDataGridLibrary" Did the copy and paste thing and it did not work. ?? Terry > On 18 Apr 2018, at 15:53, Bob Sneidar via use-livecode wrote: > > 2. Copy what's in the message From martyknappster at gmail.com Wed Apr 18 13:58:50 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Wed, 18 Apr 2018 10:58:50 -0700 Subject: LC PDF Viewer Message-ID: <151CBCC6-237D-4789-8DDB-C9F534D8C0D3@gmail.com> I'm just getting my feet wet with the PDF viewer. Anybody worked with that and can help give me with a jump start? I find the dictionary not very helpful. I learn a lot better from actual working examples. I didn't see anything in the online examples. Basically I want to be able to select a PDF and then extract the text from it page by page. Thanks, Marty From tom at makeshyft.com Wed Apr 18 14:30:40 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 18 Apr 2018 14:30:40 -0400 Subject: Posting to LiveCode Server In-Reply-To: References: Message-ID: I was going to use LC Server until I realized there was a built in httpd server library present in LC 9.... I ditched LC server.... mainly because it smokes LC server in performance. Just bringing to awareness all your options. http library is so simple to use with callbacks for each request. its so awesome. good luck. On Wed, Apr 18, 2018 at 9:50 AM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > Can you share the code to the page you're actually posting to? Its > sounding like its not actually returning any output, causing a 500 internal > error. Just to let you test, I set up a quick and dirty page at > http://guidezone.info/test.lc > The code in the page is as follows. > > put the keys of $_POST into tKeys > if tKeys is not empty then > repeat for each line tKey in tKeys > put $_POST[tkey] & "
" > end repeat > else > put "Error: No data posted" -- gotta put somethingto avoid a 500 error > end if > ?> > > To test it, I used the following in a button. > put "Accept: text/plain" & CR after tHeaders > put "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders > set the httpHeaders to tHeaders > > put liburlformdata("name","Chi","gender","male","color","black") into > tPostData > > put tPostData & cr --so that I can see the generated post string > > post tPostData to "http://guidezone.info/test.lc" > > put it && the result after msg > > > This works for me, though as I said, I don't have tsnet. You're welcome to > do test runs against my url if you like. If it works for me as written, and > not for you, i'd be pointing my finger at tsnet. > > On Wed, Apr 18, 2018 at 7:01 AM, Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Not quite sure what you're trying to do ... or why you use such a > > complicated URL in the client code. > > > > Changing it to simply > > > > *get URL "https://api01.triviamatic.tv/round_create.lc" > > * > > > > will work fine, as will > > > > *post*emptyto"https://api01.triviamatic.tv/round_create.lc" > > > > > > -- Alex. > > > > > > > > On 18/04/2018 11:50, Todd Fabacher via use-livecode wrote: > > > >> Any Help will be appreciated... > >> > >> Normally we use Node.js, but we are trying to get LiveCode server > working. > >> We are doing a simple test: > >> > >> > >> > >> > >> If I put the URL in a browser I get back, "It works" > >> > >> https://api01.triviamatic.tv/round_create.lc > >> >> ound_create.lc&sa=D&source=hangouts&ust=1524117219848000&usg > >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA> > >> > >> > >> *put* "Accept: text/plain" & CR after tHeaders > >> *put* "Content-Type: application/x-www-form-urlencoded" & CR after > >> tHeaders > >> *set* the httpHeaders to tHeaders > >> *put*"fullname=chi&gender=male&color=black" into tArgList > >> *post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc > >> >> ound_create.lc&sa=D&source=hangouts&ust=1524117219848000&usg > >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA> > >> " > >> *put* the result into tError > >> *put* it into tFormResults > >> > >> > >> The tError is: tsneterr: (52) Empty reply from server > >> > >> and tFormResults is null > >> > >> > >> I need some help ASAP. This is SUPER frustrating!! > >> > >> --Todd Fabacher > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 tfabacher at gmail.com Wed Apr 18 14:35:45 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Wed, 18 Apr 2018 14:35:45 -0400 Subject: use-livecode Digest, Vol 175, Issue 31 In-Reply-To: References: Message-ID: Thanks Matthias for the reply We figured it out. When you do a Post to LiveCode Server, you MUST call $_POST or $_POST_RAW. If you do NOT then the server script will NOT process and returns an error. We just put the file up there is see if we could get a return. But when posting...you MUST make one of the two calls. Thanks also to Elanor for the help, Todd From bobsneidar at iotecdigital.com Wed Apr 18 14:57:05 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Apr 2018 18:57:05 +0000 Subject: [Ann] xaLib - library to extract data from an array. In-Reply-To: <288648d8-4a5a-0b48-ea21-39b462482816@fourthworld.com> References: <2d89c2d1-7869-3cd9-c3ba-22bf463b9279@tweedly.net> <288648d8-4a5a-0b48-ea21-39b462482816@fourthworld.com> Message-ID: I was thinking about that. Depends on what you mean by par. If you are not indexing array values, then you will have to touch every array element each time you query. It's back to one pass sql conversion then, and you would get all the benefits of sql in the bargain. The only time an array query api comes in handy is if you are only trying to filter an array for a key:value a few times. If you have to do this many times, conversion to a memory based sqlite database could really pay dividends for a large array, especially if you took the time to index the columns that mattered most. I'm going to put together a benchmark soon I think. Shouldn't take too much time to do so. I have some good SQL data I can punch into an array then create a memory based SQL database from. Bob S > On Apr 18, 2018, at 10:08 , Richard Gaskin via use-livecode wrote: > > Alex Tweedly wrote: > > > I expect the searches etc. would be faster with SQL / memory database > > Both use hashed lookups to find data. What would be needed to bring LC array queries on par with SQLite? > > -- > Richard Gaskin From chipsm at themartinz.com Wed Apr 18 15:51:55 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Wed, 18 Apr 2018 12:51:55 -0700 Subject: Posting to LiveCode Server In-Reply-To: References: Message-ID: <013401d3d74e$b44d92c0$1ce8b840$@themartinz.com> Tom, can you expand on your post? Maybe with an example. -----Original Message----- From: use-livecode On Behalf Of Tom Glod via use-livecode Sent: Wednesday, April 18, 2018 11:31 AM To: How to use LiveCode Cc: Tom Glod Subject: Re: Posting to LiveCode Server I was going to use LC Server until I realized there was a built in httpd server library present in LC 9.... I ditched LC server.... mainly because it smokes LC server in performance. Just bringing to awareness all your options. http library is so simple to use with callbacks for each request. its so awesome. good luck. On Wed, Apr 18, 2018 at 9:50 AM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > Can you share the code to the page you're actually posting to? Its > sounding like its not actually returning any output, causing a 500 > internal error. Just to let you test, I set up a quick and dirty page > at http://guidezone.info/test.lc The code in the page is as follows. > > put the keys of $_POST into tKeys > if tKeys is not empty then > repeat for each line tKey in tKeys > put $_POST[tkey] & "
" > end repeat > else > put "Error: No data posted" -- gotta put somethingto avoid a 500 > error end if ?> > > To test it, I used the following in a button. > put "Accept: text/plain" & CR after tHeaders put "Content-Type: > application/x-www-form-urlencoded" & CR after tHeaders set the > httpHeaders to tHeaders > > put liburlformdata("name","Chi","gender","male","color","black") into > tPostData > > put tPostData & cr --so that I can see the generated post string > > post tPostData to "http://guidezone.info/test.lc" > > put it && the result after msg > > > This works for me, though as I said, I don't have tsnet. You're > welcome to do test runs against my url if you like. If it works for me > as written, and not for you, i'd be pointing my finger at tsnet. > > On Wed, Apr 18, 2018 at 7:01 AM, Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Not quite sure what you're trying to do ... or why you use such a > > complicated URL in the client code. > > > > Changing it to simply > > > > *get URL "https://api01.triviamatic.tv/round_create.lc" > > * > > > > will work fine, as will > > > > *post*emptyto"https://api01.triviamatic.tv/round_create.lc" > > > > > > -- Alex. > > > > > > > > On 18/04/2018 11:50, Todd Fabacher via use-livecode wrote: > > > >> Any Help will be appreciated... > >> > >> Normally we use Node.js, but we are trying to get LiveCode server > working. > >> We are doing a simple test: > >> > >> > >> > >> > >> If I put the URL in a browser I get back, "It works" > >> > >> https://api01.triviamatic.tv/round_create.lc > >> >> ound_create.lc&sa=D&source=hangouts&ust=1524117219848000&usg > >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA> > >> > >> > >> *put* "Accept: text/plain" & CR after tHeaders > >> *put* "Content-Type: application/x-www-form-urlencoded" & CR after > >> tHeaders > >> *set* the httpHeaders to tHeaders > >> *put*"fullname=chi&gender=male&color=black" into tArgList > >> *post* tArgList to URL > >> "https://api01.triviamatic.tv/round_create.lc > >> >> ound_create.lc&sa=D&source=hangouts&ust=1524117219848000&usg > >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA> > >> " > >> *put* the result into tError > >> *put* it into tFormResults > >> > >> > >> The tError is: tsneterr: (52) Empty reply from server > >> > >> and tFormResults is null > >> > >> > >> I need some help ASAP. This is SUPER frustrating!! > >> > >> --Todd Fabacher > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 tom at makeshyft.com Wed Apr 18 16:14:02 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 18 Apr 2018 16:14:02 -0400 Subject: Posting to LiveCode Server In-Reply-To: <013401d3d74e$b44d92c0$1ce8b840$@themartinz.com> References: <013401d3d74e$b44d92c0$1ce8b840$@themartinz.com> Message-ID: Hi Clarance......There isn't much to expand on.....thats what blew me away about this........ look up "httpd" in lc 9.0 dictionary. there are 3 commands. it can't possibly be any easier ..... you can just send an encoded & encrypted array back and forth. done. Mark says wasn't built to be a web server per se. .... but it sure as life works like one :) some benchmarks by richard gaskin: http://lists.runrev.com/pipermail/use-livecode/2016-March/225068.html Enjoy. HTTPD Library Type library Handle HTTP requests in your application *Name* *Summary* *Syntax* httpdResponse Respond to a HTTP request httpdResponse pSocketID, pResponseCode,pContent,pHeaders httpdStart Start a HTTP server httpdStart pCallback,pPort,pServerName httpdStop Stop a HTTP server httpdStop pP On Wed, Apr 18, 2018 at 3:51 PM, Clarence Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > Tom, can you expand on your post? Maybe with an example. > > -----Original Message----- > From: use-livecode On Behalf Of > Tom > Glod via use-livecode > Sent: Wednesday, April 18, 2018 11:31 AM > To: How to use LiveCode > Cc: Tom Glod > Subject: Re: Posting to LiveCode Server > > I was going to use LC Server until I realized there was a built in httpd > server library present in LC 9.... I ditched LC server.... mainly because > it > smokes LC server in performance. Just bringing to awareness all your > options. > > http library is so simple to use with callbacks for each request. its so > awesome. good luck. > > On Wed, Apr 18, 2018 at 9:50 AM, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Can you share the code to the page you're actually posting to? Its > > sounding like its not actually returning any output, causing a 500 > > internal error. Just to let you test, I set up a quick and dirty page > > at http://guidezone.info/test.lc The code in the page is as follows. > > > > > put the keys of $_POST into tKeys > > if tKeys is not empty then > > repeat for each line tKey in tKeys > > put $_POST[tkey] & "
" > > end repeat > > else > > put "Error: No data posted" -- gotta put somethingto avoid a 500 > > error end if ?> > > > > To test it, I used the following in a button. > > put "Accept: text/plain" & CR after tHeaders put "Content-Type: > > application/x-www-form-urlencoded" & CR after tHeaders set the > > httpHeaders to tHeaders > > > > put liburlformdata("name","Chi","gender","male","color","black") into > > tPostData > > > > put tPostData & cr --so that I can see the generated post string > > > > post tPostData to "http://guidezone.info/test.lc" > > > > put it && the result after msg > > > > > > This works for me, though as I said, I don't have tsnet. You're > > welcome to do test runs against my url if you like. If it works for me > > as written, and not for you, i'd be pointing my finger at tsnet. > > > > On Wed, Apr 18, 2018 at 7:01 AM, Alex Tweedly via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Not quite sure what you're trying to do ... or why you use such a > > > complicated URL in the client code. > > > > > > Changing it to simply > > > > > > *get URL "https://api01.triviamatic.tv/round_create.lc" > > > * > > > > > > will work fine, as will > > > > > > *post*emptyto"https://api01.triviamatic.tv/round_create.lc" > > > > > > > > > -- Alex. > > > > > > > > > > > > On 18/04/2018 11:50, Todd Fabacher via use-livecode wrote: > > > > > >> Any Help will be appreciated... > > >> > > >> Normally we use Node.js, but we are trying to get LiveCode server > > working. > > >> We are doing a simple test: > > >> > > >> > > >> > > >> > > >> If I put the URL in a browser I get back, "It works" > > >> > > >> https://api01.triviamatic.tv/round_create.lc > > >> > >> ound_create.lc&sa=D&source=hangouts&ust=1524117219848000&usg > > >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA> > > >> > > >> > > >> *put* "Accept: text/plain" & CR after tHeaders > > >> *put* "Content-Type: application/x-www-form-urlencoded" & CR after > > >> tHeaders > > >> *set* the httpHeaders to tHeaders > > >> *put*"fullname=chi&gender=male&color=black" into tArgList > > >> *post* tArgList to URL > > >> "https://api01.triviamatic.tv/round_create.lc > > >> > >> ound_create.lc&sa=D&source=hangouts&ust=1524117219848000&usg > > >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA> > > >> " > > >> *put* the result into tError > > >> *put* it into tFormResults > > >> > > >> > > >> The tError is: tsneterr: (52) Empty reply from server > > >> > > >> and tFormResults is null > > >> > > >> > > >> I need some help ASAP. This is SUPER frustrating!! > > >> > > >> --Todd Fabacher > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode 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 paul at researchware.com Wed Apr 18 16:14:25 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 Apr 2018 16:14:25 -0400 Subject: LC PDF Viewer In-Reply-To: <151CBCC6-237D-4789-8DDB-C9F534D8C0D3@gmail.com> References: <151CBCC6-237D-4789-8DDB-C9F534D8C0D3@gmail.com> Message-ID: On 4/18/2018 1:58 PM, Knapp Martin via use-livecode wrote: > I'm just getting my feet wet with the PDF viewer. Anybody worked with that and can help give me with a jump start? I find the dictionary not very helpful. I learn a lot better from actual working examples. I didn't see anything in the online examples. > > Basically I want to be able to select a PDF and then extract the text from it page by page. > > Thanks, > Marty > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > I am not at the right computer at the moment, but i will send you a sample stack a bit later when I am. From martyknappster at gmail.com Wed Apr 18 16:16:50 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Wed, 18 Apr 2018 13:16:50 -0700 Subject: LC PDF Viewer In-Reply-To: References: <151CBCC6-237D-4789-8DDB-C9F534D8C0D3@gmail.com> Message-ID: That would be great Paul, thanks. Marty > On Apr 18, 2018, at 1:14 PM, Paul Dupuis via use-livecode wrote: > > On 4/18/2018 1:58 PM, Knapp Martin via use-livecode wrote: >> I'm just getting my feet wet with the PDF viewer. Anybody worked with that and can help give me with a jump start? I find the dictionary not very helpful. I learn a lot better from actual working examples. I didn't see anything in the online examples. >> >> Basically I want to be able to select a PDF and then extract the text from it page by page. >> >> Thanks, >> Marty >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > I am not at the right computer at the moment, but i will send you a > sample stack a bit later when I am. From bobsneidar at iotecdigital.com Wed Apr 18 16:28:34 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Apr 2018 20:28:34 +0000 Subject: LC PDF Viewer In-Reply-To: References: <151CBCC6-237D-4789-8DDB-C9F534D8C0D3@gmail.com> Message-ID: <2BB5A635-C4C8-42D7-AE8F-3873A9146A40@iotecdigital.com> Are you trying to extract text from a searchable PDF, or are you trying to extract data from a fillable one? Bob S > On Apr 18, 2018, at 13:14 , Paul Dupuis via use-livecode wrote: > > On 4/18/2018 1:58 PM, Knapp Martin via use-livecode wrote: >> I'm just getting my feet wet with the PDF viewer. Anybody worked with that and can help give me with a jump start? I find the dictionary not very helpful. I learn a lot better from actual working examples. I didn't see anything in the online examples. >> >> Basically I want to be able to select a PDF and then extract the text from it page by page. >> >> Thanks, >> Marty >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > I am not at the right computer at the moment, but i will send you a > sample stack a bit later when I am. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From yvescoppe at mac.com Wed Apr 18 16:28:56 2018 From: yvescoppe at mac.com (Yves COPPE) Date: Wed, 18 Apr 2018 22:28:56 +0200 Subject: LC PDF Viewer In-Reply-To: References: <151CBCC6-237D-4789-8DDB-C9F534D8C0D3@gmail.com> Message-ID: <0451A4AD-3509-40A2-B7EB-984156135A5D@mac.com> Hi Paul I have the same question. Can you send this stack to me too ? Greetings. Yves COPPE yvescoppe at mac.com > Le 18 avr. 2018 ? 22:14, Paul Dupuis via use-livecode a ?crit : > > On 4/18/2018 1:58 PM, Knapp Martin via use-livecode wrote: >> I'm just getting my feet wet with the PDF viewer. Anybody worked with that and can help give me with a jump start? I find the dictionary not very helpful. I learn a lot better from actual working examples. I didn't see anything in the online examples. >> >> Basically I want to be able to select a PDF and then extract the text from it page by page. >> >> Thanks, >> Marty >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > I am not at the right computer at the moment, but i will send you a > sample stack a bit later when I am. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Wed Apr 18 16:32:33 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Wed, 18 Apr 2018 13:32:33 -0700 Subject: LC PDF Viewer In-Reply-To: <2BB5A635-C4C8-42D7-AE8F-3873A9146A40@iotecdigital.com> References: <151CBCC6-237D-4789-8DDB-C9F534D8C0D3@gmail.com> <2BB5A635-C4C8-42D7-AE8F-3873A9146A40@iotecdigital.com> Message-ID: <012F2493-89FF-4482-B0B0-B3A4E70C1E4F@gmail.com> They would not be fillable PDFs, but PDFs that had been created from the Mac print-to-PDF option in the print dialog. > On Apr 18, 2018, at 1:28 PM, Bob Sneidar via use-livecode wrote: > > Are you trying to extract text from a searchable PDF, or are you trying to extract data from a fillable one? > > Bob S > > > >> On Apr 18, 2018, at 13:14 , Paul Dupuis via use-livecode wrote: >> >> On 4/18/2018 1:58 PM, Knapp Martin via use-livecode wrote: >>> I'm just getting my feet wet with the PDF viewer. Anybody worked with that and can help give me with a jump start? I find the dictionary not very helpful. I learn a lot better from actual working examples. I didn't see anything in the online examples. >>> >>> Basically I want to be able to select a PDF and then extract the text from it page by page. >>> >>> Thanks, >>> Marty >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> I am not at the right computer at the moment, but i will send you a >> sample stack a bit later when I am. >> From jerry at jhjensen.com Wed Apr 18 16:36:01 2018 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 18 Apr 2018 13:36:01 -0700 Subject: How to get the line break char? In-Reply-To: References: <009e01d3d6fe$b8266e80$28734b80$@kestner.de> <1524055776181-0.post@n4.nabble.com> <00b901d3d714$d20e32e0$762a98a0$@kestner.de> <1524057036368-0.post@n4.nabble.com> Message-ID: Tiemo, Is the task to compare two CSV files regardless of their line endings? If you don?t care what the line endings are, as Brian points out, using ?file:? to read them will convert all line endings to just LF. Then there is no problem comparing, right? .Jerry > On Apr 18, 2018, at 6:52 AM, Brian Milby via use-livecode wrote: > > One other consideration is how you are opening the file. Using ?file? will > end up converting to just LF. You will need to use ?binfile? to examine the > line endings native in the file. > On Wed, Apr 18, 2018 at 8:11 AM dunbarx via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Tiemo. >> >> I guess I do not understand. >> >> put charToNum(the number of chars of line (lineOfInterest + 1) of yourText) >> into tChar >> >> Then tChar can be compared to the "tChar" of any other line. >> >> Craig From paul at researchware.com Wed Apr 18 16:44:50 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 Apr 2018 16:44:50 -0400 Subject: LC PDF Viewer In-Reply-To: <151CBCC6-237D-4789-8DDB-C9F534D8C0D3@gmail.com> References: <151CBCC6-237D-4789-8DDB-C9F534D8C0D3@gmail.com> Message-ID: <88f405a2-fd78-9b3c-a044-b562b7a1de3e@researchware.com> Hi Martin and Yves, ZIP file emailed to both of you. I will also be doing a presentation at the May LiveCode Global on the XPDF externals. From bobsneidar at iotecdigital.com Wed Apr 18 16:50:09 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Apr 2018 20:50:09 +0000 Subject: LC PDF Viewer In-Reply-To: <012F2493-89FF-4482-B0B0-B3A4E70C1E4F@gmail.com> References: <151CBCC6-237D-4789-8DDB-C9F534D8C0D3@gmail.com> <2BB5A635-C4C8-42D7-AE8F-3873A9146A40@iotecdigital.com> <012F2493-89FF-4482-B0B0-B3A4E70C1E4F@gmail.com> Message-ID: Right. That creates a searchable PDF (interestingly enough). > On Apr 18, 2018, at 13:32 , Knapp Martin via use-livecode wrote: > > They would not be fillable PDFs, but PDFs that had been created from the Mac print-to-PDF option in the print dialog. From bobsneidar at iotecdigital.com Wed Apr 18 17:30:44 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Apr 2018 21:30:44 +0000 Subject: More Datagrid Wierdness Message-ID: After DL LC Community 9 some of my datagrids have 3D appearing column header buttons. Others do not. Something is definitely up with datagrid redrawing. Bob S From alex at tweedly.net Wed Apr 18 18:20:46 2018 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 18 Apr 2018 23:20:46 +0100 Subject: [Ann] xaLib - library to extract data from an array. In-Reply-To: <288648d8-4a5a-0b48-ea21-39b462482816@fourthworld.com> References: <2d89c2d1-7869-3cd9-c3ba-22bf463b9279@tweedly.net> <288648d8-4a5a-0b48-ea21-39b462482816@fourthworld.com> Message-ID: Well, it's only a case of "I expect ..." so we shouldn't trust my intuition until we've benchmarked it a bit :-) Having said that - we will still be using script to iterate over the keys/elements of the array, so there is likely to be some cost there - even before we allow sqlite to index some columns. I've just started looking at it from the performance point of view, and reduced the time for the simple case in the included test stack by 95% so it doesn't feel so bad now .... but I'll need to completely rewrite the main functions/handlers :-( I'll try to import the data into an sqlite DB and compare against that too - will report with some numbers tomorrow (and come up with a more reasonable test case. Alex. On 18/04/2018 18:08, Richard Gaskin via use-livecode wrote: > Alex Tweedly wrote: > > > I expect the searches etc. would be faster with SQL / memory database > > Both use hashed lookups to find data.? What would be needed to bring > LC array queries on par with SQLite? > From bobsneidar at iotecdigital.com Wed Apr 18 18:38:21 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Apr 2018 22:38:21 +0000 Subject: [Ann] xaLib - library to extract data from an array. In-Reply-To: References: <2d89c2d1-7869-3cd9-c3ba-22bf463b9279@tweedly.net> <288648d8-4a5a-0b48-ea21-39b462482816@fourthworld.com> Message-ID: <4CA9F1D7-CFD0-42B5-A535-B1E23083B3A1@iotecdigital.com> Heh heh. I wasn't asking you to actually USE convert to sqlite memory in your library. I was just saying that for a few xqueries yours a really useful library, but for lots of queries against a large array, the performance of first converting to an sqlite memory database and then querying that and converting back to array would likely be noticibly better performance wise. I already wrote code and posted it for converting a numbered array to a sqlite memory database so let me know if you didn't get that so you don't have to rewrite it all. Bob S > On Apr 18, 2018, at 15:20 , Alex Tweedly via use-livecode wrote: > > Well, it's only a case of "I expect ..." so we shouldn't trust my intuition until we've benchmarked it a bit :-) > > Having said that - we will still be using script to iterate over the keys/elements of the array, so there is likely to be some cost there - even before we allow sqlite to index some columns. > > I've just started looking at it from the performance point of view, and reduced the time for the simple case in the included test stack by 95% so it doesn't feel so bad now .... but I'll need to completely rewrite the main functions/handlers :-( > > I'll try to import the data into an sqlite DB and compare against that too - will report with some numbers tomorrow (and come up with a more reasonable test case. > > Alex. From david.bovill at gmail.com Thu Apr 19 01:48:13 2018 From: david.bovill at gmail.com (David Bovill) Date: Thu, 19 Apr 2018 05:48:13 +0000 Subject: Posting to LiveCode Server In-Reply-To: References: Message-ID: Todd, the browser auto-translates things you type / copy paste in the url bar to something it expects you want as a url. You have characters in the url that need to be escaped (<>) On Wed, 18 Apr 2018 at 11:51, Todd Fabacher via use-livecode < use-livecode at lists.runrev.com> wrote: > Any Help will be appreciated... > > Normally we use Node.js, but we are trying to get LiveCode server working. > We are doing a simple test: > > > > > If I put the URL in a browser I get back, "It works" > > https://api01.triviamatic.tv/round_create.lc > < > https://www.google.com/url?q=https://api01.triviamatic.tv/round_create.lc&sa=D&source=hangouts&ust=1524117219848000&usg=AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA > > > > > *put* "Accept: text/plain" & CR after tHeaders > *put* "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders > *set* the httpHeaders to tHeaders > *put*"fullname=chi&gender=male&color=black" into tArgList > *post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc > < > https://www.google.com/url?q=https://api01.triviamatic.tv/round_create.lc&sa=D&source=hangouts&ust=1524117219848000&usg=AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA > > > " > *put* the result into tError > *put* it into tFormResults > > > The tError is: tsneterr: (52) Empty reply from server > > and tFormResults is null > > > I need some help ASAP. This is SUPER frustrating!! > > --Todd Fabacher > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From theaford at btinternet.com Thu Apr 19 02:27:00 2018 From: theaford at btinternet.com (Terence Heaford) Date: Thu, 19 Apr 2018 07:27:00 +0100 Subject: DataGrid Column Labels In-Reply-To: References: <1C47BF9B-B102-44B0-9B9B-7F8290B2A040@iotecdigital.com> Message-ID: <2A640048-86CE-4231-8396-43AB6A38AD23@btinternet.com> It?s weird but placing this in the preopenCard script sorts out the issue for now. set the dgProp[ "column labels" ] of group ?myTable" to the dgProp[ "column labels" ] of group "myTable" All the best Terry > On 18 Apr 2018, at 18:43, Terence Heaford via use-livecode wrote: > > All my tables just say > > button id 1005 of stack "revDataGridLibrary" > > > Did the copy and paste thing and it did not work. > > ?? > > Terry > >> On 18 Apr 2018, at 15:53, Bob Sneidar via use-livecode wrote: >> >> 2. Copy what's in the message > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david.bovill at gmail.com Thu Apr 19 03:57:08 2018 From: david.bovill at gmail.com (David Bovill) Date: Thu, 19 Apr 2018 08:57:08 +0100 Subject: OpenLanguage: abstract syntax trees Message-ID: I'm doing some research around languages for a new project. I'd like to get a firmer handle on where Livecode as a language is going, and need to learn a bit more computer science regarding compilers, abstract syntax trees and language design. So let's ask some dumb questions: 1. Is there an abstract syntax tree (AST) for the Livecode language? 2. Where can I buy it? 3. How hard would it be to create one? Google told me that I should use Coco, to generate an AST from the C++ code. But i don't trust Google, I much prefer Siri due to her business model. My hope is that Mark Waddingham will explain this properly. I trust Mark. *Open Language* My understanding is that we are steadily, if not slower than hoped, moving towards open language in Livecode. It's something I need, hence my interest in DSL's, AST's and compilers. I'd like to know more. At the moment I believe from previous posts, it is possible to create DSL's in Livecode, but you have to compile from source. I'd like to have a go at that if possible, as it may well be a shorter path to creating my DSL, than trying to get Siri to teach me about abstract syntax trees. Mark any chance of sending the gift of your knowledge our way? From bobsneidar at iotecdigital.com Thu Apr 19 10:32:16 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 19 Apr 2018 14:32:16 +0000 Subject: Posting to LiveCode Server In-Reply-To: References: Message-ID: <7CBFB75F-69C2-484A-B197-A7B13695873D@iotecdigital.com> URL Encode it. Bob S > On Apr 18, 2018, at 22:48 , David Bovill via use-livecode wrote: > > Todd, the browser auto-translates things you type / copy paste in the url > bar to something it expects you want as a url. > > You have characters in the url that need to be escaped (<>) From bobsneidar at iotecdigital.com Thu Apr 19 10:36:37 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 19 Apr 2018 14:36:37 +0000 Subject: DataGrid Column Labels In-Reply-To: References: <1C47BF9B-B102-44B0-9B9B-7F8290B2A040@iotecdigital.com> Message-ID: Ah. My problem was that my datagrids had different objects when I checked. Probably because I have been working with this project since the v6 days. BTW I replaced my datagrids which were showing non-3D column labels with fresh ones and they look fine now. I have 2 scripts that help me with this. They do not account for custom properties though. I need to update them to account for that: on saveDatagrid pDataGrid if pDatagrid is empty then put the short name of the selectedObject into pDataGrid end if if not there is a group pDataGrid then put "Invalid arguement. pDataGrid must be the name of a datagrid in the current stack." into mmsg answer info mmsg as sheet exit saveDatagrid end if put the short name of group pDataGrid into aSavedDataGrids [pDataGrid]["name"] put the height of group pDataGrid into aSavedDataGrids [pDataGrid]["height"] put the width of group pDataGrid into aSavedDataGrids [pDataGrid]["width"] put the loc of group pDataGrid into aSavedDataGrids [pDataGrid]["loc"] put the script of group pDataGrid into aSavedDataGrids [pDataGrid]["script"] put the dgprop ["columns"] of group pDataGrid into aSavedDataGrids [pDataGrid]["columns"] put the dgprop ["column labels"] of group pDataGrid into aSavedDataGrids [pDataGrid]["column labels"] put the dgprop ["column widths"] of group pDataGrid into aSavedDataGrids [pDataGrid]["column widths"] put the dgprop ["allow editing"] of group pDataGrid into aSavedDataGrids [pDataGrid]["allow editing"] put the dgProp ["multiple lines"] of group pDataGrid into aSavedDataGrids [pDataGrid]["multiple lines"] put getParentStack(the long id of group pDataGrid) into tThisStack set the pSavedDataGrids of tThisStack to aSavedDataGrids end saveDatagrid on restoreDataGrid pDataGrid put getParentStack(the long id of group pDataGrid) into tThisStack put the pSavedDataGrids of tThisStack into aSavedDataGrids if aSavedDataGrids is not an array then answer info "Invalid arguement. pDataGrid must be an array." as sheet exit restoreDataGrid end if if there is a group pDataGrid then delete group pDataGrid copy group "DataGrid" of group "Templates" of stack "revDataGridLibrary" to tThisStack put it into tDataGridRef set the name of tDataGridRef to aSavedDataGrids [pDataGrid]["name"] set the height of group pDataGrid to aSavedDataGrids [pDataGrid]["height"] set the width of group pDataGrid to aSavedDataGrids [pDataGrid]["width"] set the loc of group pDataGrid to aSavedDataGrids [pDataGrid]["loc"] set the script of group pDataGrid to aSavedDataGrids [pDataGrid]["script"] set the dgprop ["columns"] of group pDataGrid to aSavedDataGrids [pDataGrid]["columns"] set the dgprop ["column labels"] of group pDataGrid to aSavedDataGrids [pDataGrid]["column labels"] set the dgprop ["column widths"] of group pDataGrid to aSavedDataGrids [pDataGrid]["column widths"] set the dgprop ["allow editing"] of group pDataGrid to aSavedDataGrids [pDataGrid]["allow editing"] set the dgProp ["multiple lines"] of group pDataGrid to aSavedDataGrids [pDataGrid]["multiple lines"] end restoreDataGrid Bob S > On Apr 18, 2018, at 10:43 , Terence Heaford via use-livecode wrote: > > All my tables just say > > button id 1005 of stack "revDataGridLibrary" > > > Did the copy and paste thing and it did not work. > > ?? > > Terry From brahma at hindu.org Thu Apr 19 11:27:58 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 19 Apr 2018 15:27:58 +0000 Subject: Has Anyone Got A Directory "Walker" Available Message-ID: <00CA3CD9-DC11-45B1-98B0-379C950F058A@hindu.org> I have directory available this days of Ken Ray, in the on system of set the default folder and get the the files, registered that path. descend recursively to the level? etc. Do anyone has a new one handy they could share using the folder and file function? BR From dougr at telus.net Thu Apr 19 11:59:50 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Thu, 19 Apr 2018 08:59:50 -0700 Subject: Android assistance / information? Message-ID: <122e01d3d7f7$73aedd10$5b0c9730$@net> Anyone is this community as versed in Android as Monte Goulding is in iOS? One of the beauties of LC is its cross-platform ability. The app I've written in iOS ports just fine to Android .. at least the user-interactive and data processing parts do. .. without changing one line of code (and it's a complex app) ... how slick is that??? Obviously, there is a lack of an equivalent Android BLE function for communicating to my Arduino which I have working splendidly in iOS. So... I'm looking for information / assistance on how to implement a "hardwired" connection from an Arduino to an Android device (currently have an older- Galaxy Tab 4 running v 5.1.1) ... but if I need a newer model, newer OS, that's do-able. I'm hoping (?against hope?) that all I need is the "device name" for the USB port on the Android and the rest I can handle using the "open device" serial handles in LC. I understand that one reason that LC may have and still is avoiding the Android BLE topic is due to the varieties and variations within the numerous version of the Android OS's. For me, I just need to be able to demonstrate a mobile device (iOS or Android) being able to communicate with an Arduino app via a USB hardwire connection. I REALLY don't care which OS it is and if I have to use iOS for BLE and Android for USB... that's just fine! Any help would be greatly appreciated!! Cheers Doug From dougr at telus.net Thu Apr 19 12:00:46 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Thu, 19 Apr 2018 09:00:46 -0700 Subject: some thoughts on version 9.0.0 Message-ID: <123301d3d7f7$955dc200$c0194600$@net> I use the Project Browser heavily ... one change in 9.0.0 I definitely DO NOT like is the "new" way of indicating a "behavior" assignment on an object. What's with the little oval with a "1" in it??? I used the (previous) line counts to visually match to the "source" button line counts.. easy... now, I have to open the Properties to see which object is the source behavior.. not good, IMO Next is the significant decrease in the "Ink" choices... I've found (by process of elimination) the "notSrcOrReverse" ink works for me in several situations.... there ain't no such thing in v9.0.0. And sometimes the drop down Ink listing gets "stuck" behind the Property window ... blocking some of the choices... inconsistent and not reproducible between stacks but consistent within a stack. A few other inconsistencies and quirks which are not consistent between stacks but demonstrable on specific stacks are not going to encourage me to use the v9.0.0 for production stuff.. until new revisions are produced. Doug From dougr at telus.net Thu Apr 19 12:01:23 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Thu, 19 Apr 2018 09:01:23 -0700 Subject: mergAccessory Message-ID: <123801d3d7f7$ab4eabb0$01ec0310$@net> I am pursuing another course of action for my iOS USB investigation... in the meantime, in case I need it, I'd appreciate some assistance with mergeAccessory. first, the associated doc (api.lcdoc) to mergAccessory is a tad out of date... referencing LC v 5.5 ... but adjusting for version 8.1.9, while there is a "Settings.plist" file in the specified path, it is "unreadable by either by Xcode 9.2 or Xcode 8.2 ==> "The data couldn't be read because it isn't in the correct format". Using an alternative plist reader "Perf Setter", I get a "The document 'Settings.plist" could not be opened". I checked the permissions, even copied the file to my user directory, changed the permission to Read/Write and get the same messages. I can open it in TextEdit but am hesitant to make and save any changes using that editor since the file itself seems to be non-standard... embedded control characters??? Any idea of why this file is "inaccessible"? Next, I do not see any key as referenced in the api doc: UISupportedExternalAccessoryProtocols ... that's OK.. I assume I'd have to create this key but the example only show how to specify the protocol ... the docs say: "... Each device in the MFi program has a name and one or more protocols it supports ..." .. so where does the "name" go? Finally, I don't see what the example code is supposed to be demonstrating. A bit more explanation on that would be appreciated. Cheers! Doug From brahma at hindu.org Thu Apr 19 14:20:21 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 19 Apr 2018 18:20:21 +0000 Subject: Has Anyone Got A Directory "Walker" Available In-Reply-To: <00CA3CD9-DC11-45B1-98B0-379C950F058A@hindu.org> References: <00CA3CD9-DC11-45B1-98B0-379C950F058A@hindu.org> Message-ID: <63A224F0-3342-4402-8CD8-D5B4828B0583@hindu.org> Never mind? I found this in a toolbox. Sent by some ago, by a LiveCode deva For what it's worth : # Filters the strings "." and ".." from a list function filterDots pList local tList put pList into tList filter tList without "." filter tList without ".." return tList end filterDots # Returns a filtered list of files in the current directory function filteredFiles return filterDots(the files) end filteredFiles # Returns a filtered list of folders in the current directory function filteredFolders return filterDots(the folders) end filteredFolders # Returns a list of files in the current directory including # each file's full path. function filteredFilesWithPaths local tFiles, tFilesWithPaths put filteredFiles() into tFiles repeat for each line tFile in tFiles put the directory & slash & tFile & return after \ tFilesWithPaths end repeat delete the last char of tFilesWithPaths return tFilesWithPaths end filteredFilesWithPaths # Returns a list of files in a given folder, using recursion to # include files in subfolders if desired. function listFiles pFolder, pRecurse local tTotalFiles, tCurrentFiles, tFolders set the directory to pFolder put filteredFiles() into tCurrentFiles if not pRecurse then return tCurrentFiles if tCurrentFiles is not empty then put tCurrentFiles & return after tTotalFiles end if put filteredFolders() into tFolders repeat for each line tFolder in tFolders put listFiles((pFolder & slash & tFolder), pRecurse) into \ tCurrentFiles if tCurrentFiles is not empty then put tCurrentFiles & return after tTotalFiles end if end repeat delete the last char of tTotalFiles return tTotalFiles end listFiles # Returns a list of files with their containing folders, using # recursion # if desired to descend into sub folders. function listFilesWithFolders pFolder, pRecurse local tTotalFiles, tCurrentFiles, tFolders set the directory to pFolder put filteredFiles() into tCurrentFiles if not pRecurse then return pFolder & return & "--" & return \ & tCurrentFiles if tCurrentFiles is not empty then put pFolder & return & "--" & return after tTotalFiles put tCurrentFiles & return & return after tTotalFiles end if put filteredFolders() into tFolders repeat for each line tFolder in tFolders put listFilesWithFolders((pFolder & slash & tFolder), \ pRecurse) into tCurrentFiles if tCurrentFiles is not empty then put tCurrentFiles & \ return after tTotalFiles end repeat delete the last char of tTotalFiles return tTotalFiles end listFilesWithFolders # Returns a list of files with the full paths function listFilesWithPaths pFolder, pRecurse local tTotalFiles, tCurrentFiles, tFolders set the directory to pFolder put filteredFilesWithPaths() into tCurrentFiles if not pRecurse then return tCurrentFiles if tCurrentFiles is not empty then put tCurrentFiles & \ return after tTotalFiles put filteredFolders() into tFolders repeat for each line tFolder in tFolders put listFilesWithPaths((pFolder & slash & tFolder), \ pRecurse) into tCurrentFiles if tCurrentFiles is not empty then put tCurrentFiles & \ return after tTotalFiles end repeat delete the last char of tTotalFiles return tTotalFiles end listFilesWithPaths # Returns a sorted list of the files in pFolder. Again using # recursion if # required. function listSortedFiles pFolder, pRecurse local tFiles put listFiles(pFolder, pRecurse) into tFiles sort lines of tFiles by listSortedFilesSortKey(each) return tFiles end listSortedFiles # Used by the listSortedFiles() function. Returns a sort key # from each file's name to # allow the sorting to be fully customized. function listSortedFilesSortKey pFile # Use this value for a normal text sort return pFile end listSortedFilesSortKey on doSomething pFile put pFile & return after msg end doSomething --This will achieve similar results to listing the files except that it will be slower because text has to be drawn to the screen at each iteration. # Use this template function to perform an action on each file # in a folder on doForEachFile pFolder, pRecurse set the directory to pFolder repeat for each line tFile in filteredFiles() doSomething (pFolder & slash & tFile) end repeat if pRecurse then repeat for each line tFolder in filteredFolders() doForEachFile (pFolder & slash & tFolder), pRecurse end repeat end if end doForEachFile I have directory available this days of Ken Ray, in the on system of set the default folder and get the the files, registered that path. descend recursively to the level? etc. Do anyone has a new one handy they could share using the folder and file function? BR From paul at livecode.org Thu Apr 19 14:35:25 2018 From: paul at livecode.org (Paul Hibbert) Date: Thu, 19 Apr 2018 11:35:25 -0700 Subject: Has Anyone Got A Directory "Walker" Available In-Reply-To: <63A224F0-3342-4402-8CD8-D5B4828B0583@hindu.org> References: <00CA3CD9-DC11-45B1-98B0-379C950F058A@hindu.org> <63A224F0-3342-4402-8CD8-D5B4828B0583@hindu.org> Message-ID: <2154211B-76DD-474F-9484-5B7119339484@livecode.org> > On 19 Apr 2018, at 11:20, Sannyasin Brahmanathaswami via use-livecode > wrote: > > Never mind? > > I found this in a toolbox. Sent by some ago, by a LiveCode deva That looks very much like the code supplied under the ?Resources? menu, from Tutorials>General>Files and Folders. I?ve used it on a few projects n the past and it has worked pretty well for me. Paul From gcanyon at gmail.com Thu Apr 19 15:43:19 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 19 Apr 2018 12:43:19 -0700 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Message-ID: I have GitKraken; is it as simple as initializing a new repository in /Applications/LiveCode Indy 8.1.8.app/Contents/Tools/Toolset/libraries? On Mon, Apr 16, 2018 at 7:48 PM, Brian Milby wrote: > https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md > > https://github.com/livecode/livecode/blob/develop/README.md > > Those two docs have most of what you will need. If you have purchased > LiveCode Global 2018 then you can watch the talk I gave last month on > setting up your system to build from source (Linux was the demo). > > Once you have the repo on your seat, you can branch and make any changes > required and do a PR. Just be sure to keep straight which project you are > in. The IDE is separate and most of the stuff related to the IDE is in that > sub project. I find it easier to just do everything in a branch and build > from source to check my work - even when working on widgets. I do have a > stack I use to check dictionary updates though (but it doesn?t check that > examples compile... need to get that included at some point). > > Brian > On Mon, Apr 16, 2018 at 8:45 PM Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Are there instructions available somewhere on how to set up the IDE in >> GitHub so I can make changes and submit pull requests? >> >> gc >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Thu Apr 19 16:15:15 2018 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Thu, 19 Apr 2018 20:15:15 +0000 Subject: some thoughts on version 9.0.0 Message-ID: <18CF6C32-2FDA-4B6A-8F5E-78786B6D39AF@uni-wh.de> I use the Project Browser heavily ... one change in 9.0.0 I definitely DO NOT like is the "new" way of indicating a "behavior" assignment on an object. What's with the little oval with a "1" in it??? I used the (previous) line counts to visually match to the "source" button line counts.. easy... now, I have to open the Properties to see which object is the source behavior.. not good, IMO Hi Douglas, the number 1 indicates that this is the first behavior. Behaviors can be stacked and then you would have 2,3 or whatever up to ten behaviors. The number of lines is useful for the object but not so much for the behavior. The tooltip indicates the the name of the behavior, clicking on it opens the script of the behavior. Page 33 of the release notes states: Show up to 10 nested behavior in the Project Browser It is now possible to view up to 10 nested behaviors of an object in the PB. The behaviors are shown using oval graphics. Clicking on the graphic takes you to the script of the behavior. The tooltip of the graphic shows the long name of the behavior. https://github.com/livecode/livecode-ide/pull/1508 Kind regards Bernd From ahsoftware at sonic.net Thu Apr 19 16:44:05 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 19 Apr 2018 13:44:05 -0700 Subject: some thoughts on version 9.0.0 In-Reply-To: <18CF6C32-2FDA-4B6A-8F5E-78786B6D39AF@uni-wh.de> References: <18CF6C32-2FDA-4B6A-8F5E-78786B6D39AF@uni-wh.de> Message-ID: On 04/19/2018 01:15 PM, Niggemann, Bernd via use-livecode wrote: > the number 1 indicates that this is the first behavior. Behaviors can be stacked and then you would have 2,3 or whatever up to ten behaviors. The number of lines is useful for the object but not so much for the behavior. The tooltip indicates the the name of the behavior, clicking on it opens the script of the behavior. Unless it's somehow possible for the displayed behaviors to get out of order, then the numbers seem somewhat useless. I think this is a big step backwards from displaying the number of lines in the behavior script -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Thu Apr 19 17:51:14 2018 From: gcanyon at gmail.com (gcanyon) Date: Thu, 19 Apr 2018 14:51:14 -0700 Subject: some thoughts on version 9.0.0 In-Reply-To: <123301d3d7f7$955dc200$c0194600$@net> References: <123301d3d7f7$955dc200$c0194600$@net> Message-ID: Self-promotion: Navigator's script menu displays all the behaviors, and the handlers in them, of an object. The theoretical limit is 100,000 stacked behaviors, but I suspect the menu system would break before reaching that limit. You need to update from the built-in Navigator to get this functionality. On Thu, Apr 19, 2018 at 9:00 AM, Douglas Ruisaard via use-livecode < use-livecode at lists.runrev.com> wrote: > I use the Project Browser heavily ... one change in 9.0.0 I definitely DO > NOT like is the "new" way of indicating a "behavior" assignment on an > object. What's with the little oval with a "1" in it??? I used the > (previous) line counts to visually match to the "source" button line > counts.. easy... now, I have to open the Properties to see which object is > the source behavior.. not good, IMO > > > > Next is the significant decrease in the "Ink" choices... I've found (by > process of elimination) the "notSrcOrReverse" ink works for me in several > situations.... there ain't no such thing in v9.0.0. And sometimes the drop > down Ink listing gets "stuck" behind the Property window ... blocking some > of the choices... inconsistent and not reproducible between stacks but > consistent within a stack. > > > > A few other inconsistencies and quirks which are not consistent between > stacks but demonstrable on specific stacks are not going to encourage me to > use the v9.0.0 for production stuff.. until new revisions are produced. > > > > Doug > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Apr 19 18:03:32 2018 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Thu, 19 Apr 2018 22:03:32 +0000 Subject: some thoughts on version 9.0.0 Message-ID: <2D5D107D-94E0-4625-A5A3-3D6D06F55DCD@uni-wh.de> Mark Wieder via use-livecode Thu, 19 Apr 2018 13:46:24 -0700 > >On 04/19/2018 01:15 PM, Niggemann, Bernd via use-livecode wrote: > >the number 1 indicates that this is the first behavior. Behaviors can be >stacked and then you would have 2,3 or whatever up to ten behaviors. The number >of lines is useful for the object but not so much for the behavior. The tooltip >indicates the the name of the behavior, clicking on it opens the script of the >behavior. Unless it's somehow possible for the displayed behaviors to get out of order, then the numbers seem somewhat useless. I think this is a big step backwards from displaying the number of lines in the behavior script -- Mark Wieder ahsoftw... at gmail.com Hi Mark, actually the problem was that if you use the number of lines of the behaviors and you have a couple of behaviors stacked then the space needed for the behaviors would run into the text. The current solution was the one which used the least space. If you look in the Project Browser at "Message Box" or "revIDEProjectBrowser" that have two behaviors that the spacing for between the behaviors is minimal to save space, also that is the reason why they are oval so you can reduce the spacing between behaviors. I agree that counting from 1 to 10 is not really a big help, could have been greek letters instead, but what you gather from the number of lines of the behavior script escapes me. Kind regards Bernd From monte at appisle.net Thu Apr 19 18:10:45 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 20 Apr 2018 08:10:45 +1000 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Message-ID: <5B6BD926-B59B-41FC-BB5F-0F4C10CB694B@appisle.net> Just a guessing based on your response that you possibly didn?t read the docs that you asked for and Brian responded with ;-) > On 20 Apr 2018, at 5:43 am, Geoff Canyon via use-livecode wrote: > > I have GitKraken; is it as simple as initializing a new repository > in /Applications/LiveCode Indy 8.1.8.app/Contents/Tools/Toolset/libraries? From monte at appisle.net Thu Apr 19 18:21:45 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 20 Apr 2018 08:21:45 +1000 Subject: mergAccessory In-Reply-To: <123801d3d7f7$ab4eabb0$01ec0310$@net> References: <123801d3d7f7$ab4eabb0$01ec0310$@net> Message-ID: > On 20 Apr 2018, at 2:01 am, Douglas Ruisaard via use-livecode wrote: > > I am pursuing another course of action for my iOS USB investigation... in the meantime, in case I need it, I'd appreciate some assistance with mergeAccessory. > > > > first, the associated doc (api.lcdoc) to mergAccessory is a tad out of date... referencing LC v 5.5 ... but adjusting for version 8.1.9, while there is a "Settings.plist" file in the specified path, it is "unreadable by either by Xcode 9.2 or Xcode 8.2 ==> "The data couldn't be read because it isn't in the correct format". Using an alternative plist reader "Perf Setter", I get a "The document 'Settings.plist" could not be opened?. You need to edit in a regular text editor. We have some replacement fields that the standard plist editors don?t like. > > Next, I do not see any key as referenced in the api doc: UISupportedExternalAccessoryProtocols ... that's OK.. I assume I'd have to create this key but the example only show how to specify the protocol ... the docs say: > > > > "... Each device in the MFi program has a name and one or more protocols it supports ..." .. so where does the "name" go? You just specify the protocols > > > > Finally, I don't see what the example code is supposed to be demonstrating. A bit more explanation on that would be appreciated. I?m pretty sure the example code will be printing to a portable bluetooth receipt printer because that?s the use case that mergAccessory was implemented for even though it can work with any made for iphone accessory as long as you have the protocol docs. Cheers Monte From ahsoftware at sonic.net Thu Apr 19 20:28:23 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 19 Apr 2018 17:28:23 -0700 Subject: some thoughts on version 9.0.0 In-Reply-To: <2D5D107D-94E0-4625-A5A3-3D6D06F55DCD@uni-wh.de> References: <2D5D107D-94E0-4625-A5A3-3D6D06F55DCD@uni-wh.de> Message-ID: On 04/19/2018 03:03 PM, Niggemann, Bernd via use-livecode wrote: > actually the problem was that if you use the number of lines of the behaviors and you have a couple of behaviors stacked then the space needed for the behaviors would run into the text. The current solution was the one which used the least space. If you look in the Project Browser at "Message Box" or "revIDEProjectBrowser" that have two behaviors that the spacing for between the behaviors is minimal to save space, also that is the reason why they are oval so you can reduce the spacing between behaviors. Sorry, I'm missing something in that explanation. Yes, what I see for the messagebox is 2,1,9 meaning that there are nine lines in the object script and two stacked behaviors. The first behavior has 839 lines and the second one has 805 lines. I fail to see why it would be a problem if the displayed numbers were 805,839,9. > I agree that counting from 1 to 10 is not really a big help, could have been greek letters instead, but what you gather from the number of lines of the behavior script escapes me. Well, for one thing, it gives me an idea of how much effort I'm about to get into when looking at modifying a behavior script. And gives me some direction as to whether I'd want to add more code to an already-overloaded behavior or spawn a second one or put code in a main script. -- Mark Wieder ahsoftware at gmail.com From monte at appisle.net Thu Apr 19 20:36:36 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 20 Apr 2018 10:36:36 +1000 Subject: some thoughts on version 9.0.0 In-Reply-To: References: <2D5D107D-94E0-4625-A5A3-3D6D06F55DCD@uni-wh.de> Message-ID: <653758AB-BD9C-4EE2-85EE-E2AE9AE97CD1@appisle.net> > On 20 Apr 2018, at 10:28 am, Mark Wieder via use-livecode wrote: > > On 04/19/2018 03:03 PM, Niggemann, Bernd via use-livecode wrote: > >> actually the problem was that if you use the number of lines of the behaviors and you have a couple of behaviors stacked then the space needed for the behaviors would run into the text. The current solution was the one which used the least space. If you look in the Project Browser at "Message Box" or "revIDEProjectBrowser" that have two behaviors that the spacing for between the behaviors is minimal to save space, also that is the reason why they are oval so you can reduce the spacing between behaviors. > > Sorry, I'm missing something in that explanation. > Yes, what I see for the messagebox is 2,1,9 meaning that there are nine lines in the object script and two stacked behaviors. The first behavior has 839 lines and the second one has 805 lines. I fail to see why it would be a problem if the displayed numbers were 805,839,9. I think it?s just a space issue. Around the time Bernd did his patch for this I had a play with a collapsing breadcrumb widget which can pack as much info as there is space to do so for this type of thing. I never cleaned it up for use but if someone has some time to do so it could be a good addition: https://github.com/montegoulding/livecode/blob/breadcrumb/extensions/widgets/breakdcrumb/breadcrumb.lcb It actually used a hitTestPath function of widgetutils that was never merged too so that would need to be copied from here https://github.com/montegoulding/livecode/blob/hittest/extensions/modules/widget-utils/widget-utils.lcb#L287 Cheers Monte From gcanyon at gmail.com Thu Apr 19 20:52:28 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 19 Apr 2018 17:52:28 -0700 Subject: Contributing to the IDE In-Reply-To: <5B6BD926-B59B-41FC-BB5F-0F4C10CB694B@appisle.net> References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> <5B6BD926-B59B-41FC-BB5F-0F4C10CB694B@appisle.net> Message-ID: I have to admit, this is very frustrating. I *have* read both documents referenced, and neither comes close to answering my question. I remember reading those documents, or their ancestors, when LC first went open source, and I would likely have started contributing to the IDE then except they were no more clear then than now. Let's start with https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md, which does not include the word "IDE" anywhere in it. Really, the only information it contains that is remotely relevant to my question is: "The LiveCode workflow is a typical git workflow, where contributors fork the livecode/livecode repository, make their changes on a branch, and then submit a pull request." >From what I have read, there is no such thing as a "typical git workflow." Git is designed to be flexible, and there are as many workflows as there are git users. And: "You should base your changes on an appropriate branch: " None of it comes close to describing the steps necessary to set up on my computer to contribute. The other document, https://github.com/livecode/livecode/blob/develop/README.md, describes LiveCode, and is not even about contributing. Apart from mentioning: "engine/ ? The main LiveCode engine. This directory produces the IDE, "standalone", "installer" and "server" engines" it offers nothing useful to figuring out how to set up to contribute. I ran into this same problem when I started to put Navigator into GitHub: the GitHub documentation is absolutely abysmal. In that instance, the blame lies with literally everyone associated with Git and GitHub, but in the case of wanting to contribute to the LC IDE, the buck stops with the LC crew. I have asked others who are decades-long LC developers for guidance, and found that they don't understand how to contribute. That holds back development of LC and the IDE. To be clear: reasonable documentation for contributing to the IDE would include a section something like: 1. Create an account on GitHub. Follow the guidelines mentioned elsewhere in this documentation. 2. (optional) Install the graphic Git client of your choice (a list of possibilities is included at the bottom of this documentation). 3. Determine which version of LC you want to contribute to. Note that only contributions to are being accepted at present. 4. Clone the repository for the LC version you have selected to your local drive. Save it to your Applications folder. Do not overwrite your working copy of LiveCode. 5. You will need to follow these additional steps to make that repository functional: ... 6. License the copy of LC included in the repository. 7. Make whatever changes to the IDE you wish. Note that you must segment your changes in individual branches; if you lump a large number of changes in one branch, your updates will almost certainly be rejected. 8. When you have a branch ready to merge into the production copy of LiveCode, issue a pull request. Please follow the documentation descriptions listed below; if we can't understand your change, it will be rejected. To be more clear, I have no idea if the above is the correct sequence of steps. That's the problem I'm trying to solve, and neither of the referenced documents, nor any admonishment to study them in greater detail, will solve it. On Thu, Apr 19, 2018 at 3:10 PM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > Just a guessing based on your response that you possibly didn?t read the > docs that you asked for and Brian responded with ;-) > > > On 20 Apr 2018, at 5:43 am, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I have GitKraken; is it as simple as initializing a new repository > > in /Applications/LiveCode Indy 8.1.8.app/Contents/Tools/ > Toolset/libraries? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From monte at appisle.net Thu Apr 19 22:39:21 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 20 Apr 2018 12:39:21 +1000 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> <5B6BD926-B59B-41FC-BB5F-0F4C10CB694B@appisle.net> Message-ID: Hmm? OK Geoff, sorry for being flippant and causing a rant! I must admit I don?t know anything about GitKracken. I used to use SourceTree which I found quite reasonable, however, once working for the LC team I found it too slow and hard to do some of the more complicated things like interactive rebasing so I moved to command line. > None of it comes close to describing the steps necessary to set up on my computer to contribute. The issue I think you are bumping in to is you only really want to contribute to the IDE, however, to do so you really need to build livecode from source so you can work on the IDE directly in the respository. Because of that the notes linked in the README.md about building LC on different platforms under the section `Detailed instructions` are really what you are looking for. https://github.com/livecode/livecode#detailed-instructions > > it offers nothing useful to figuring out how to set up to contribute. Yes it does. See above ^. > > I ran into this same problem when I started to put Navigator into GitHub: the GitHub documentation is absolutely abysmal. In that instance, the blame lies with literally everyone associated with Git and GitHub, but in the case of wanting to contribute to the LC IDE, the buck stops with the LC crew. I have asked others who are decades-long LC developers for guidance, and found that they don't understand how to contribute. That holds back development of LC and the IDE. OK, well we?d like to do better in this regard, however, we do tend to run into the problem that a large chunk of our experienced LC developers have no interest in reading about git or github. The very best thing you can do before anything else is understand git. There is bucket loads of freely available information online. This is a great free book https://git-scm.com/book/en/v2 > > To be clear: reasonable documentation for contributing to the IDE would include a section something like: > > 1. Create an account on GitHub. Follow the guidelines mentioned elsewhere in this documentation. OK, this has presumably been seen as assumed knowledge til now? and/or GitHub?s responsibility do document how to use GitHub. I?m sure we can add something though! > 2. (optional) Install the graphic Git client of your choice (a list of possibilities is included at the bottom of this documentation). The problem here is there are lots of graphic git clients. All look different. Ali has spent quite some time documenting how to contribute via GitHub?s web interface. > 3. Determine which version of LC you want to contribute to. Note that only contributions to are being accepted at present. See https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md#branches-in-github > 4. Clone the repository for the LC version you have selected to your local drive. Yes, I agree there?s some missing bits here on forking on github, cloning and setting up the clone. I can give command line instructions and or write a script for you to run. Basically we use multiple repositories to build LiveCode. Ignoring the commercial repositories that only the team have access to the structure is: livecode ide -> livecode-ide thirdparty -> livecode-thirdparty Most of the ide stacks are in the livecode-ide repository, however, there are some in the ide-support folder of the livecode repository and we are gradually moving as many modular libraries as possible to the extensions/script-libraries folder of the livecode repository. The thirdparty repository is something that anyone outside the team is unlikely to need to patch so we can ignore that for now. So to work on the ide you really need to fork both https://github.com/livecode/livecode and https://github.com/livecode/livecode-ide From there you need to do the equivalent of the following in your git client: git clone ?recursive https://github.com//livecode.git This is basically downloading the source folder and it?s history into a folder named livecode. Once that is complete then there are a few changes to make to get setup: cd livecode git remote add upstream https://github.com/livecode/livecode.git cd ide git remote rename origin upstream git remote add origin https://github.com//livecode.git /livecode.git Now you are ready to follow the configure and build instructions for your platform. If you are on mac you can build and run directly from Xcode, edit IDE stacks, save them and then make the patch via git. > Save it to your Applications folder. No? don?t do that? My clone is in my home folder? you can clone just somewhere it?s easy to work on. > Do not overwrite your working copy of LiveCode. Definitely don?t do that ;-) > 5. You will need to follow these additional steps to make that repository functional: If we are considering just IDE development then this step is probably building LC although see https://github.com/livecode/livecode#detailed-instructions for your platform to work out the extra things that need to be installed on your system to build. > 6. License the copy of LC included in the repository. No need to do that as it?s community > 7. Make whatever changes to the IDE you wish. Note that you must segment your changes in individual branches; if you lump a large number of changes in one branch, your updates will almost certainly be rejected. See https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md#creating-a-pull-request > 8. When you have a branch ready to merge into the production copy of LiveCode, issue a pull request. Please follow the documentation descriptions listed below; if we can't understand your change, it will be rejected. > > To be more clear, I have no idea if the above is the correct sequence of steps. That's the problem I'm trying to solve, and neither of the referenced documents, nor any admonishment to study them in greater detail, will solve it. OK, point taken. If we can work out all the points that people feel are missing we would love for more people to be able to contribute. BTW here is a video I did for someone about using sourcetree which may or may not shed some light. https://www.youtube.com/watch?v=W14_fiRA6Wo&t=847s Cheers Monte From brian at milby7.com Thu Apr 19 23:17:12 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 20 Apr 2018 03:17:12 +0000 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> <5B6BD926-B59B-41FC-BB5F-0F4C10CB694B@appisle.net> Message-ID: I will add that building from source is not that hard for Mac or Linux (have not tried Windows). I didn?t know what platform you were using which is why I referenced the Readme since it had a section with links for each one. If you run into specific issues getting things set up then we can probably help. On Thu, Apr 19, 2018 at 9:40 PM Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > Hmm? OK Geoff, sorry for being flippant and causing a rant! > > I must admit I don?t know anything about GitKracken. I used to use > SourceTree which I found quite reasonable, however, once working for the LC > team I found it too slow and hard to do some of the more complicated things > like interactive rebasing so I moved to command line. > > > None of it comes close to describing the steps necessary to set up on my > computer to contribute. > > The issue I think you are bumping in to is you only really want to > contribute to the IDE, however, to do so you really need to build livecode > from source so you can work on the IDE directly in the respository. Because > of that the notes linked in the README.md about building LC on different > platforms under the section `Detailed instructions` are really what you are > looking for. https://github.com/livecode/livecode#detailed-instructions < > https://github.com/livecode/livecode#detailed-instructions> > > > > it offers nothing useful to figuring out how to set up to contribute. > > Yes it does. See above ^. > > > > I ran into this same problem when I started to put Navigator into > GitHub: the GitHub documentation is absolutely abysmal. In that instance, > the blame lies with literally everyone associated with Git and GitHub, but > in the case of wanting to contribute to the LC IDE, the buck stops with the > LC crew. I have asked others who are decades-long LC developers for > guidance, and found that they don't understand how to contribute. That > holds back development of LC and the IDE. > > OK, well we?d like to do better in this regard, however, we do tend to run > into the problem that a large chunk of our experienced LC developers have > no interest in reading about git or github. The very best thing you can do > before anything else is understand git. There is bucket loads of freely > available information online. This is a great free book > https://git-scm.com/book/en/v2 > > > > To be clear: reasonable documentation for contributing to the IDE would > include a section something like: > > > > 1. Create an account on GitHub. Follow the guidelines mentioned > elsewhere in this documentation. > > OK, this has presumably been seen as assumed knowledge til now? and/or > GitHub?s responsibility do document how to use GitHub. I?m sure we can add > something though! > > > 2. (optional) Install the graphic Git client of your choice (a list of > possibilities is included at the bottom of this documentation). > > The problem here is there are lots of graphic git clients. All look > different. Ali has spent quite some time documenting how to contribute via > GitHub?s web interface. > > > 3. Determine which version of LC you want to contribute to. Note that > only contributions to are being accepted at present. > > See > https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md#branches-in-github > < > https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md#branches-in-github > > > > 4. Clone the repository for the LC version you have selected to your > local drive. > > Yes, I agree there?s some missing bits here on forking on github, cloning > and setting up the clone. I can give command line instructions and or write > a script for you to run. > > Basically we use multiple repositories to build LiveCode. Ignoring the > commercial repositories that only the team have access to the structure is: > > livecode > ide -> livecode-ide > thirdparty -> livecode-thirdparty > > Most of the ide stacks are in the livecode-ide repository, however, there > are some in the ide-support folder of the livecode repository and we are > gradually moving as many modular libraries as possible to the > extensions/script-libraries folder of the livecode repository. > > The thirdparty repository is something that anyone outside the team is > unlikely to need to patch so we can ignore that for now. > > So to work on the ide you really need to fork both > https://github.com/livecode/livecode > and https://github.com/livecode/livecode-ide < > https://github.com/livecode/livecode-ide> > > From there you need to do the equivalent of the following in your git > client: > > git clone ?recursive https://github.com//livecode.git > > > This is basically downloading the source folder and it?s history into a > folder named livecode. > > Once that is complete then there are a few changes to make to get setup: > > cd livecode > git remote add upstream https://github.com/livecode/livecode.git < > https://github.com/livecode/livecode.git> > cd ide > git remote rename origin upstream > git remote add origin https://github.com//livecode.git > > /livecode.git > > Now you are ready to follow the configure and build instructions for your > platform. If you are on mac you can build and run directly from Xcode, edit > IDE stacks, save them and then make the patch via git. > > > Save it to your Applications folder. > > No? don?t do that? My clone is in my home folder? you can clone just > somewhere it?s easy to work on. > > > Do not overwrite your working copy of LiveCode. > > Definitely don?t do that ;-) > > > 5. You will need to follow these additional steps to make that > repository functional: > > If we are considering just IDE development then this step is probably > building LC although see > https://github.com/livecode/livecode#detailed-instructions < > https://github.com/livecode/livecode#detailed-instructions> for your > platform to work out the extra things that need to be installed on your > system to build. > > > 6. License the copy of LC included in the repository. > > No need to do that as it?s community > > > 7. Make whatever changes to the IDE you wish. Note that you must segment > your changes in individual branches; if you lump a large number of changes > in one branch, your updates will almost certainly be rejected. > > See > https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md#creating-a-pull-request > < > https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md#creating-a-pull-request > > > > 8. When you have a branch ready to merge into the production copy of > LiveCode, issue a pull request. Please follow the documentation > descriptions listed below; if we can't understand your change, it will be > rejected. > > > > To be more clear, I have no idea if the above is the correct sequence of > steps. That's the problem I'm trying to solve, and neither of the > referenced documents, nor any admonishment to study them in greater detail, > will solve it. > > OK, point taken. If we can work out all the points that people feel are > missing we would love for more people to be able to contribute. BTW here is > a video I did for someone about using sourcetree which may or may not shed > some light. https://www.youtube.com/watch?v=W14_fiRA6Wo&t=847s < > https://www.youtube.com/watch?v=W14_fiRA6Wo&t=847s> > > Cheers > > Monte > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Thu Apr 19 23:30:44 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 20 Apr 2018 13:30:44 +1000 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> <5B6BD926-B59B-41FC-BB5F-0F4C10CB694B@appisle.net> Message-ID: <405570FE-A392-4FB2-867B-69EE3BB51E3B@appisle.net> I also just remembered that much of the information that you may find helpful is in the contributing to docs page which you may not have read if your interest is in source contributions. https://github.com/livecode/livecode/blob/develop/docs/contributing_to_docs.md I?m thinking we would do well to reorganise this doc by moving the docs style stuff to the docs style guide and the rest into a more general (not just about docs) your first PR doc. > On 20 Apr 2018, at 12:39 pm, Monte Goulding via use-livecode wrote: > > Hmm? OK Geoff, sorry for being flippant and causing a rant! From james at thehales.id.au Thu Apr 19 23:41:34 2018 From: james at thehales.id.au (James At The Hale) Date: Fri, 20 Apr 2018 13:41:34 +1000 Subject: some thoughts on version 9.0.0 Message-ID: <058FFFD2-97A0-44E1-B27A-EE4BF502FCCE@thehales.id.au> One downer I have noticed with the advent of behaviors being in script only stacks is you lose the ability to edit them when you click on the behavior badge. If the behavior resides in a button, as before, all is well. Recently while looking into something with the data grid I noticed all the behavior badges open an empty script window. It seems all the behaviors that were contained in these buttons (that reside in the revDataGridLibrary) now reside in script only stacks that are chained to the buttons. James From monte at appisle.net Thu Apr 19 23:45:58 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 20 Apr 2018 13:45:58 +1000 Subject: some thoughts on version 9.0.0 In-Reply-To: <058FFFD2-97A0-44E1-B27A-EE4BF502FCCE@thehales.id.au> References: <058FFFD2-97A0-44E1-B27A-EE4BF502FCCE@thehales.id.au> Message-ID: <49E62D1C-EADE-4535-A1AD-DD6CC30D5769@appisle.net> > On 20 Apr 2018, at 1:41 pm, James At The Hale via use-livecode wrote: > > One downer I have noticed with the advent of behaviors being in script only stacks is you lose the ability to edit them when you click on the behavior badge. > > If the behavior resides in a button, as before, all is well. That sounds like a bug which we can fix. Could you report it. > > Recently while looking into something with the data grid I noticed all the behavior badges open an empty script window. It seems all the behaviors that were contained in these buttons (that reside in the revDataGridLibrary) now reside in script only stacks that are chained to the buttons. Yes, we used the scriptifier on the datagrid to make it more maintainable. As a result the buttons on the revDataGridLibrary stack which used to be the behaviors now have behaviors themselves. One advantage to this is any image references will still be resolved correctly. Cheers Monte From jacque at hyperactivesw.com Fri Apr 20 00:27:29 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 19 Apr 2018 23:27:29 -0500 Subject: some thoughts on version 9.0.0 In-Reply-To: <058FFFD2-97A0-44E1-B27A-EE4BF502FCCE@thehales.id.au> References: <058FFFD2-97A0-44E1-B27A-EE4BF502FCCE@thehales.id.au> Message-ID: On 4/19/18 10:41 PM, James At The Hale via use-livecode wrote: > One downer I have noticed with the advent of behaviors being in script only stacks is you lose the ability to edit them when you click on the behavior badge. Another disadvantage is that you can't debug them remotely, which for some projects means you can't debug remotely at all. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From monte at appisle.net Fri Apr 20 00:30:22 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 20 Apr 2018 14:30:22 +1000 Subject: some thoughts on version 9.0.0 In-Reply-To: References: <058FFFD2-97A0-44E1-B27A-EE4BF502FCCE@thehales.id.au> Message-ID: > On 20 Apr 2018, at 2:27 pm, J. Landman Gay via use-livecode wrote: > > Another disadvantage is that you can't debug them remotely, which for some projects means you can't debug remotely at all. You can use the breakpoint command can?t you? There is a general issue here that we have in the past stuffed things like breakpoints and last selection etc into the custom properties of objects but really they should be separate. It?s probably a big project to sort that out though! Cheers Monte From mark at livecode.com Fri Apr 20 03:50:17 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 20 Apr 2018 09:50:17 +0200 Subject: OpenLanguage: abstract syntax trees In-Reply-To: References: Message-ID: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> On 2018-04-19 09:57, David Bovill via use-livecode wrote: > So let's ask some dumb questions: > > 1. Is there an abstract syntax tree (AST) for the Livecode language? Yes - the AST is defined by the set of syntax classes in the engine source-code (such as MCAnswer, MCMinus, MCProperty). > 2. Where can I buy it? You don't need to - all the source-code is at https://github.com/livecode/livecode.git > 3. How hard would it be to create one? Well, one already exists so there is no real need to 'create' one per-se, although whether its current form is suitable for your needs is another matter - I suspect you aren't asking the right question :) > > Google told me that I should use Coco, to generate an AST from the C++ > code. But i don't trust Google, I much prefer Siri due to her business > model. My hope is that Mark Waddingham will explain this properly. I > trust > Mark. CoCo is a compiler front-end generator. It allows you to express a tokenizer as a set of regular expressions, and a parser as a formal grammar conforming to LL(k)ish (https://en.wikipedia.org/wiki/LL_grammar). CoCo then generates something which given a source-text will give you a syntax tree of some kind. > *Open Language* > My understanding is that we are steadily, if not slower than hoped, > moving > towards open language in Livecode. It's something I need, hence my > interest > in DSL's, AST's and compilers. I'd like to know more. Yes we are still moving towards it, but it is taking a lot longer than expected (although lc-compile, the LCB compiler, does have a non-dynamic version of Open Language to a certain extent which, unfortunately, isn't suitable for LCS in its full gory detail). > At the moment I believe from previous posts, it is possible to create > DSL's > in Livecode, but you have to compile from source. I'd like to have a go > at > that if possible, as it may well be a shorter path to creating my DSL, > than > trying to get Siri to teach me about abstract syntax trees. Without knowing any details of the new project, or what you would like to be able to do it is hard for me to advise here. Certainly augmenting engine syntax is possible by writing C++ and building from source - although the difficult in doing that is entirely related to what syntax you'd like to augment / extend / change. That wouldn't really create a DSL per-se, but an extended version of LiveCode Script (which may be what you want, or maybe not). Indeed, it is entirely possible that the DSL you want to create doesn't require fettling with the engine at all - LCS is a really good language for writing DSLs as it stands, as well as interpreters and compilers. For example, Ali's tutorial system is a simple DSL, using a parser and interpreter both written in LCS (https://github.com/livecode/livecode-ide/tree/develop/Toolset/palettes/tutorial). > Mark any chance of sending the gift of your knowledge our way? I could ramble on at length ( not that I'm prone to that, of course ;) ) about designing programming languages, interpreters, compilers, parsers, tokenisers, name analysis, abstract syntax trees, concrete syntax trees, code generation and a great many other things... However, I suspect something more focused would be more helpful and for that I really need a greater idea of what you are wanting to achieve - in particular, what is the DSL you are wanting to create, how do you want it to be used, and what is it intended to do? Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Apr 20 04:08:30 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 20 Apr 2018 10:08:30 +0200 Subject: Contributing to the IDE In-Reply-To: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Message-ID: On 2018-04-17 03:44, Geoff Canyon via use-livecode wrote: > Are there instructions available somewhere on how to set up the IDE in > GitHub so I can make changes and submit pull requests? Not in the way you are trying to - no. Pretty much all our documentation is centered around the initial step which is getting the entire LiveCode system (engine and IDE) to build from source first. The main docs for that start in the LiveCode repo README -https://github.com/livecode/livecode/blob/develop/README.md. What you are asking for is slightly different: "How do I make it so that I can modify the IDE in a pre-built distribution and submit patches/PR from that". The main issue here (and perhaps the only issue) is that the HEAD versions of the version branches (release-* branches for specific releases, develop-* for the frontier of maintenance releases and develop for the next release) in the three main community repositories are all mutually dependent to a greater or lesser degree. Whilst you can try and use the develop HEAD version of the IDE with an engine built from develop-9.0 or earlier, the reality is that it might not work. Whilst it would be really really nice to have the IDE completely independent of a given engine version, that is still a dream we are quite a way from realizing. In order to submit a PR which has any chance of being accepted, you have to make sure it is submitted against the HEAD of the appropriate branch. Whilst you can certainly checkout just the IDE repository, and then redirect the Toolset folder from within a LiveCode distribution to use it - you might find it does not work as the engine version required to run that version of the Toolset (from the HEAD of the branch) might be 'newer' (and as-yet unavailable as a built distribution to download) than that which you have. To cut a long story short: right now I'd strongly advise against thinking of the engine and IDE as separate things if you want to contribute to the LiveCode project because for the most part they are too mutually dependent. As it stands, you really need to build the LiveCode repo from source on your chosen development platform - as that's the only way you can guarantee that you can submit patches against the current HEAD of any of the branches. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From gcanyon at gmail.com Fri Apr 20 04:22:14 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 20 Apr 2018 01:22:14 -0700 Subject: Contributing to the IDE In-Reply-To: <405570FE-A392-4FB2-867B-69EE3BB51E3B@appisle.net> References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> <5B6BD926-B59B-41FC-BB5F-0F4C10CB694B@appisle.net> <405570FE-A392-4FB2-867B-69EE3BB51E3B@appisle.net> Message-ID: Thanks, on the basis of this document I *think* I was able to submit a pull request for an update to the documentation for the itemOffset function. We'll see if that's what I really did, and if successfully so. I'd highly recommend removing/updating the reference to a specific version in this document. It points to LC 8.2, which is over 4,000 commits behind, making it somewhat likely that pull requests based on updates to it will fail. Instead, it should (I think?) be pointing to https://github.com/livecode/livecode/tree/develop/docs/dictionary But again, I could be failing at this completely. Again, thanks! On Thu, Apr 19, 2018 at 8:30 PM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > I also just remembered that much of the information that you may find > helpful is in the contributing to docs page which you may not have read if > your interest is in source contributions. https://github.com/livecode/ > livecode/blob/develop/docs/contributing_to_docs.md < > https://github.com/livecode/livecode/blob/develop/docs/ > contributing_to_docs.md> > > I?m thinking we would do well to reorganise this doc by moving the docs > style stuff to the docs style guide and the rest into a more general (not > just about docs) your first PR doc. > > > On 20 Apr 2018, at 12:39 pm, Monte Goulding via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hmm? OK Geoff, sorry for being flippant and causing a rant! > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 20 04:29:05 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 20 Apr 2018 01:29:05 -0700 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Message-ID: Thanks for the clear rationale. I'll take a shot at building the whole thing tomorrow. Two questions: 1. Are older versions closed to changes? If I find a bug in LC 8.1.8 (or some update to it) is it pointless to fix the bug and submit a pull request? 2. Is it fair to submit IDE pull requests the same way I might for the documentation? I.E., GitHub was perfectly happy to fork https://github.com/ livecode/livecode-ide/edit/develop/Toolset/palettes/menubar/revmenubar. livecodescript for me, so it seems that if I update it, I could submit a pull request for it, without having built anything. Obviously that beheads a significant fraction of git's functionality, but it gets the job done, correct? Thanks, gc On Fri, Apr 20, 2018 at 1:08 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2018-04-17 03:44, Geoff Canyon via use-livecode wrote: > >> Are there instructions available somewhere on how to set up the IDE in >> GitHub so I can make changes and submit pull requests? >> > > Not in the way you are trying to - no. > > Pretty much all our documentation is centered around the initial step > which is getting the entire LiveCode system (engine and IDE) to build from > source first. The main docs for that start in the LiveCode repo README - > https://github.com/livecode/livecode/blob/develop/README.md. > > What you are asking for is slightly different: "How do I make it so that I > can modify the IDE in a pre-built distribution and submit patches/PR from > that". > > The main issue here (and perhaps the only issue) is that the HEAD versions > of the version branches (release-* branches for specific releases, > develop-* for the frontier of maintenance releases and develop for the next > release) in the three main community repositories are all mutually > dependent to a greater or lesser degree. Whilst you can try and use the > develop HEAD version of the IDE with an engine built from develop-9.0 or > earlier, the reality is that it might not work. > > Whilst it would be really really nice to have the IDE completely > independent of a given engine version, that is still a dream we are quite a > way from realizing. > > In order to submit a PR which has any chance of being accepted, you have > to make sure it is submitted against the HEAD of the appropriate branch. > Whilst you can certainly checkout just the IDE repository, and then > redirect the Toolset folder from within a LiveCode distribution to use it - > you might find it does not work as the engine version required to run that > version of the Toolset (from the HEAD of the branch) might be 'newer' (and > as-yet unavailable as a built distribution to download) than that which you > have. > > To cut a long story short: right now I'd strongly advise against thinking > of the engine and IDE as separate things if you want to contribute to the > LiveCode project because for the most part they are too mutually dependent. > As it stands, you really need to build the LiveCode repo from source on > your chosen development platform - as that's the only way you can guarantee > that you can submit patches against the current HEAD of any of the branches. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 20 04:29:44 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 20 Apr 2018 01:29:44 -0700 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> <5B6BD926-B59B-41FC-BB5F-0F4C10CB694B@appisle.net> Message-ID: Thanks, I'm going to give this a shot, probably tomorrow. gc On Thu, Apr 19, 2018 at 8:17 PM, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > I will add that building from source is not that hard for Mac or Linux > (have not tried Windows). I didn?t know what platform you were using which > is why I referenced the Readme since it had a section with links for each > one. > > If you run into specific issues getting things set up then we can probably > help. > On Thu, Apr 19, 2018 at 9:40 PM Monte Goulding via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hmm? OK Geoff, sorry for being flippant and causing a rant! > > > > I must admit I don?t know anything about GitKracken. I used to use > > SourceTree which I found quite reasonable, however, once working for the > LC > > team I found it too slow and hard to do some of the more complicated > things > > like interactive rebasing so I moved to command line. > > > > > None of it comes close to describing the steps necessary to set up on > my > > computer to contribute. > > > > The issue I think you are bumping in to is you only really want to > > contribute to the IDE, however, to do so you really need to build > livecode > > from source so you can work on the IDE directly in the respository. > Because > > of that the notes linked in the README.md about building LC on different > > platforms under the section `Detailed instructions` are really what you > are > > looking for. https://github.com/livecode/livecode#detailed-instructions > < > > https://github.com/livecode/livecode#detailed-instructions> > > > > > > it offers nothing useful to figuring out how to set up to contribute. > > > > Yes it does. See above ^. > > > > > > I ran into this same problem when I started to put Navigator into > > GitHub: the GitHub documentation is absolutely abysmal. In that instance, > > the blame lies with literally everyone associated with Git and GitHub, > but > > in the case of wanting to contribute to the LC IDE, the buck stops with > the > > LC crew. I have asked others who are decades-long LC developers for > > guidance, and found that they don't understand how to contribute. That > > holds back development of LC and the IDE. > > > > OK, well we?d like to do better in this regard, however, we do tend to > run > > into the problem that a large chunk of our experienced LC developers have > > no interest in reading about git or github. The very best thing you can > do > > before anything else is understand git. There is bucket loads of freely > > available information online. This is a great free book > > https://git-scm.com/book/en/v2 > > > > > > To be clear: reasonable documentation for contributing to the IDE would > > include a section something like: > > > > > > 1. Create an account on GitHub. Follow the guidelines mentioned > > elsewhere in this documentation. > > > > OK, this has presumably been seen as assumed knowledge til now? and/or > > GitHub?s responsibility do document how to use GitHub. I?m sure we can > add > > something though! > > > > > 2. (optional) Install the graphic Git client of your choice (a list of > > possibilities is included at the bottom of this documentation). > > > > The problem here is there are lots of graphic git clients. All look > > different. Ali has spent quite some time documenting how to contribute > via > > GitHub?s web interface. > > > > > 3. Determine which version of LC you want to contribute to. Note that > > only contributions to are being accepted at present. > > > > See > > https://github.com/livecode/livecode/blob/develop/ > CONTRIBUTING.md#branches-in-github > > < > > https://github.com/livecode/livecode/blob/develop/ > CONTRIBUTING.md#branches-in-github > > > > > > 4. Clone the repository for the LC version you have selected to your > > local drive. > > > > Yes, I agree there?s some missing bits here on forking on github, cloning > > and setting up the clone. I can give command line instructions and or > write > > a script for you to run. > > > > Basically we use multiple repositories to build LiveCode. Ignoring the > > commercial repositories that only the team have access to the structure > is: > > > > livecode > > ide -> livecode-ide > > thirdparty -> livecode-thirdparty > > > > Most of the ide stacks are in the livecode-ide repository, however, there > > are some in the ide-support folder of the livecode repository and we are > > gradually moving as many modular libraries as possible to the > > extensions/script-libraries folder of the livecode repository. > > > > The thirdparty repository is something that anyone outside the team is > > unlikely to need to patch so we can ignore that for now. > > > > So to work on the ide you really need to fork both > > https://github.com/livecode/livecode livecode> > > and https://github.com/livecode/livecode-ide < > > https://github.com/livecode/livecode-ide> > > > > From there you need to do the equivalent of the following in your git > > client: > > > > git clone ?recursive https://github.com//livecode. > git > > > > > > This is basically downloading the source folder and it?s history into a > > folder named livecode. > > > > Once that is complete then there are a few changes to make to get setup: > > > > cd livecode > > git remote add upstream https://github.com/livecode/livecode.git < > > https://github.com/livecode/livecode.git> > > cd ide > > git remote rename origin upstream > > git remote add origin https://github.com//livecode. > git > > < > yourgithubusername> > > /livecode.git > > > > Now you are ready to follow the configure and build instructions for your > > platform. If you are on mac you can build and run directly from Xcode, > edit > > IDE stacks, save them and then make the patch via git. > > > > > Save it to your Applications folder. > > > > No? don?t do that? My clone is in my home folder? you can clone just > > somewhere it?s easy to work on. > > > > > Do not overwrite your working copy of LiveCode. > > > > Definitely don?t do that ;-) > > > > > 5. You will need to follow these additional steps to make that > > repository functional: > > > > If we are considering just IDE development then this step is probably > > building LC although see > > https://github.com/livecode/livecode#detailed-instructions < > > https://github.com/livecode/livecode#detailed-instructions> for your > > platform to work out the extra things that need to be installed on your > > system to build. > > > > > 6. License the copy of LC included in the repository. > > > > No need to do that as it?s community > > > > > 7. Make whatever changes to the IDE you wish. Note that you must > segment > > your changes in individual branches; if you lump a large number of > changes > > in one branch, your updates will almost certainly be rejected. > > > > See > > https://github.com/livecode/livecode/blob/develop/ > CONTRIBUTING.md#creating-a-pull-request > > < > > https://github.com/livecode/livecode/blob/develop/ > CONTRIBUTING.md#creating-a-pull-request > > > > > > 8. When you have a branch ready to merge into the production copy of > > LiveCode, issue a pull request. Please follow the documentation > > descriptions listed below; if we can't understand your change, it will be > > rejected. > > > > > > To be more clear, I have no idea if the above is the correct sequence > of > > steps. That's the problem I'm trying to solve, and neither of the > > referenced documents, nor any admonishment to study them in greater > detail, > > will solve it. > > > > OK, point taken. If we can work out all the points that people feel are > > missing we would love for more people to be able to contribute. BTW here > is > > a video I did for someone about using sourcetree which may or may not > shed > > some light. https://www.youtube.com/watch?v=W14_fiRA6Wo&t=847s < > > https://www.youtube.com/watch?v=W14_fiRA6Wo&t=847s> > > > > Cheers > > > > Monte > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 Fri Apr 20 04:39:50 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 20 Apr 2018 01:39:50 -0700 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Message-ID: On Fri, Apr 20, 2018 at 1:08 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > What you are asking for is slightly different: "How do I make it so that I > can modify the IDE in a pre-built distribution and submit patches/PR from > that". > > The main issue here (and perhaps the only issue) is that the HEAD versions > of the version branches (release-* branches for specific releases, > develop-* for the frontier of maintenance releases and develop for the next > release) in the three main community repositories are all mutually > dependent to a greater or lesser degree. Whilst you can try and use the > develop HEAD version of the IDE with an engine built from develop-9.0 or > earlier, the reality is that it might not work. ?Sorry, one other point: yes, you are correct, working from a pre-built distribution is exactly the question I was asking, and if the only issue is syncing the IDE files with the development versions, that seems like a small issue: many of the files at https://github.com/livecode/livecode-ide/tree/develop/Toolset/libraries are months to years from their last update. Ditto for https://github.com/livecode/livecode-ide/tree/develop/Toolset/palettes/script%20editor/behaviors. That makes it seem as though it would absolutely be possible to work on the IDE in the current 9.x release, with the caveat that merge conflicts would be *slightly* more likely. ? Or am I missing something? Thanks again, gc From mark at livecode.com Fri Apr 20 04:47:25 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 20 Apr 2018 10:47:25 +0200 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Message-ID: <4e37dd03f35d995440a97572b40288ec@livecode.com> On 2018-04-20 10:29, Geoff Canyon via use-livecode wrote: > Thanks for the clear rationale. I'll take a shot at building the whole > thing tomorrow. I should have mentioned in my post (although I think Monte made it clear) that docs can be done entirely on GitHub. Doc entries are a special case because they: 1) Are largely independent of everything else 2) Are mark-down like structure (and so can be previewed easily enough) 3) Are validated by our CI system when you submit the PR. And Panos noticed that the version on the contributing to docs guide was wrong - I'm sure you'll see that change shortly :) > Two questions: > > 1. Are older versions closed to changes? If I find a bug in LC 8.1.8 > (or > some update to it) is it pointless to fix the bug and submit a pull > request? So the rule is that we only maintain (i.e. will only release builds from) two branches at any one time. Right now 9 is in maintenance mode (develop-9.0) and 9.1 is the next development version (develop). Bug fixes should be applied against the current maintenance branch (develop-9.0), additions/features and such should be applied agains the current development branch (develop). > 2. Is it fair to submit IDE pull requests the same way I might for the > documentation? I.E., GitHub was perfectly happy to fork > https://github.com/ > livecode/livecode-ide/edit/develop/Toolset/palettes/menubar/revmenubar. > livecodescript for me, so it seems that if I update it, I could submit > a > pull request for it, without having built anything. Obviously that > beheads > a significant fraction of git's functionality, but it gets the job > done, > correct? Yes - you can - although I'd be wary of errors creeping in from doing it that way (validating lc-docs is easy, validating code changes is very very hard). I guess for very very very minor tweaks you can copy-paste the code you've tried into the github text file editor in the appropriate place, and submit a PR. However, if those tweaks then need further work, you then have to get that revision onto your machine and then re-tweak. In the long run, though, that approach is only likely to cause things to take longer and cause frustration on both sides. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From monte at appisle.net Fri Apr 20 04:47:51 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 20 Apr 2018 18:47:51 +1000 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Message-ID: <7DEAB33A-D230-4F83-BF6E-518F88AD738C@appisle.net> > On 20 Apr 2018, at 6:29 pm, Geoff Canyon via use-livecode wrote: > > Two questions: > > 1. Are older versions closed to changes? If I find a bug in LC 8.1.8 (or > some update to it) is it pointless to fix the bug and submit a pull request? If it is still present on the maintenance release branch (currently develop-9.0) then fix against that and it will be in the next maintenance release. > 2. Is it fair to submit IDE pull requests the same way I might for the > documentation? I.E., GitHub was perfectly happy to fork https://github.com/ > livecode/livecode-ide/edit/develop/Toolset/palettes/menubar/revmenubar. > livecodescript for me, so it seems that if I update it, I could submit a > pull request for it, without having built anything. Obviously that beheads > a significant fraction of git's functionality, but it gets the job done, > correct? I?m fairly sure Bernd implements stuff using his current install of LC locally then then makes a patch with that using the github web ui. Am I right Bernd? I think the web interface is significantly harder and more confusing to use personally but that could be just me. It?s also not possible to do things like fix up commit messages. Cheers Monte > > Thanks, > > gc > > On Fri, Apr 20, 2018 at 1:08 AM, Mark Waddingham via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 2018-04-17 03:44, Geoff Canyon via use-livecode wrote: >> >>> Are there instructions available somewhere on how to set up the IDE in >>> GitHub so I can make changes and submit pull requests? >>> >> >> Not in the way you are trying to - no. >> >> Pretty much all our documentation is centered around the initial step >> which is getting the entire LiveCode system (engine and IDE) to build from >> source first. The main docs for that start in the LiveCode repo README - >> https://github.com/livecode/livecode/blob/develop/README.md. >> >> What you are asking for is slightly different: "How do I make it so that I >> can modify the IDE in a pre-built distribution and submit patches/PR from >> that". >> >> The main issue here (and perhaps the only issue) is that the HEAD versions >> of the version branches (release-* branches for specific releases, >> develop-* for the frontier of maintenance releases and develop for the next >> release) in the three main community repositories are all mutually >> dependent to a greater or lesser degree. Whilst you can try and use the >> develop HEAD version of the IDE with an engine built from develop-9.0 or >> earlier, the reality is that it might not work. >> >> Whilst it would be really really nice to have the IDE completely >> independent of a given engine version, that is still a dream we are quite a >> way from realizing. >> >> In order to submit a PR which has any chance of being accepted, you have >> to make sure it is submitted against the HEAD of the appropriate branch. >> Whilst you can certainly checkout just the IDE repository, and then >> redirect the Toolset folder from within a LiveCode distribution to use it - >> you might find it does not work as the engine version required to run that >> version of the Toolset (from the HEAD of the branch) might be 'newer' (and >> as-yet unavailable as a built distribution to download) than that which you >> have. >> >> To cut a long story short: right now I'd strongly advise against thinking >> of the engine and IDE as separate things if you want to contribute to the >> LiveCode project because for the most part they are too mutually dependent. >> As it stands, you really need to build the LiveCode repo from source on >> your chosen development platform - as that's the only way you can guarantee >> that you can submit patches against the current HEAD of any of the branches. >> >> Warmest Regards, >> >> Mark. >> >> -- >> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >> LiveCode: Everyone can create apps >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 livecode.com Fri Apr 20 04:49:50 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 20 Apr 2018 10:49:50 +0200 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Message-ID: <1f41150994356ba64b7c3382f5d6199d@livecode.com> On 2018-04-20 10:39, Geoff Canyon via use-livecode wrote: > ?Sorry, one other point: yes, you are correct, working from a pre-built > distribution is exactly the question I was asking, and if the only > issue is > syncing the IDE files with the development versions, that seems like a > small issue: many of the files at > https://github.com/livecode/livecode-ide/tree/develop/Toolset/libraries > are > months to years from their last update. Ditto for > https://github.com/livecode/livecode-ide/tree/develop/Toolset/palettes/script%20editor/behaviors. > That > makes it seem as though it would absolutely be possible to work on the > IDE > in the current 9.x release, with the caveat that merge conflicts would > be > *slightly* more likely. ? > > Or am I missing something? Yes - my point about the engine and IDE versions being mutually dependent :) There is every chance that the develop-9.0 HEAD IDE *WILL NOT WORK* with the release-9.0.0 engine - if you can't run the IDE, you can't edit it, or check your changes do what you want. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From monte at appisle.net Fri Apr 20 05:00:30 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 20 Apr 2018 19:00:30 +1000 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> Message-ID: <12BB3BA3-1BC8-4B3E-9EF6-3D204D85ECE2@appisle.net> > ?Sorry, one other point: yes, you are correct, working from a pre-built > distribution is exactly the question I was asking, and if the only issue is > syncing the IDE files with the development versions, that seems like a > small issue: many of the files at > https://github.com/livecode/livecode-ide/tree/develop/Toolset/libraries are > months to years from their last update. Ditto for > https://github.com/livecode/livecode-ide/tree/develop/Toolset/palettes/script%20editor/behaviors. > That > makes it seem as though it would absolutely be possible to work on the IDE > in the current 9.x release, with the caveat that merge conflicts would be > *slightly* more likely. ? > > Or am I missing something? I think you are missing that once setup to build then it?s just once click in xcode or visual studio or one command on linux and you can rebuild and run the correct engine for the IDE so spending any time trying to figure out how to avoid such a small amount of work doesn?t seem that helpful. Additionally once setup like that you can patch anything from engine, docs, widgets, ide? so it?s much less limiting. Cheers Monte From gcanyon at gmail.com Fri Apr 20 05:15:55 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 20 Apr 2018 02:15:55 -0700 Subject: Contributing to the IDE In-Reply-To: <1f41150994356ba64b7c3382f5d6199d@livecode.com> References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> <1f41150994356ba64b7c3382f5d6199d@livecode.com> Message-ID: On Fri, Apr 20, 2018 at 1:49 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > >> > Yes - my point about the engine and IDE versions being mutually dependent > :) ?I get that -- my point is that *many* of the IDE script files are unchanged from 9.0 release to the current(?) develop branch. So working on files in 9.0, making changes, and then submitting a pull request, unless git somehow makes this a slog, should be perfectly acceptable?. They're just text files, many of which haven't changed in six months. Or is there something magic (and to me, frustrating) about git that makes it unacceptable to submit a change made to a file in 9.0 to an identical file in 9.1? From mark at livecode.com Fri Apr 20 05:46:23 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 20 Apr 2018 11:46:23 +0200 Subject: Contributing to the IDE In-Reply-To: References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> <1f41150994356ba64b7c3382f5d6199d@livecode.com> Message-ID: <2997ed8bdeafcb6dc2481a8cd0b35942@livecode.com> On 2018-04-20 11:15, Geoff Canyon via use-livecode wrote: > ?I get that -- my point is that *many* of the IDE script files are > unchanged from 9.0 release to the current(?) develop branch. So working > on > files in 9.0, making changes, and then submitting a pull request, > unless > git somehow makes this a slog, should be perfectly acceptable?. They're > just text files, many of which haven't changed in six months. Or is > there > something magic (and to me, frustrating) about git that makes it > unacceptable to submit a change made to a file in 9.0 to an identical > file > in 9.1? This is nothing to do with git at all - it is to do with actually being able to test the change you make and ensure it actually does what you want. Just because a file hasn't changed for months, doesn't mean that its action isn't dependent on some code somewhere else in the system. You might make a change to a file which looks identical in 9 and 9.1 - but how do you know it will work in 9.1 without running it in 9.1? Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From jacques.hausser at unil.ch Fri Apr 20 06:07:57 2018 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Fri, 20 Apr 2018 10:07:57 +0000 Subject: Lynda.com In-Reply-To: <2997ed8bdeafcb6dc2481a8cd0b35942@livecode.com> References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> <1f41150994356ba64b7c3382f5d6199d@livecode.com> <2997ed8bdeafcb6dc2481a8cd0b35942@livecode.com> Message-ID: <8B2748EF-13E8-44FE-B3BE-143E1C1D8B3A@unil.ch> We just got Lynda.com available free for faculty and students in my University (online learning in every possible field). I looked if they have something about liveCode? at first view, I didn?t find anything ! Would be a good place to put some material to teach liveCode and make it a bit less confidential, if somebody here is interested? Jacques ****************************************** 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 thatkeith at mac.com Fri Apr 20 06:20:40 2018 From: thatkeith at mac.com (Keith Martin) Date: Fri, 20 Apr 2018 11:20:40 +0100 Subject: some thoughts on version 9.0.0 In-Reply-To: <123301d3d7f7$955dc200$c0194600$@net> References: <123301d3d7f7$955dc200$c0194600$@net> Message-ID: On 19 Apr 2018, at 17:00, Douglas Ruisaard via use-livecode wrote: > Next is the significant decrease in the "Ink" choices... I've found > (by process of elimination) the "notSrcOrReverse" ink works for me in > several situations.... there ain't no such thing in v9.0.0. Yep, I found that strange and very disappointing too. I cannot see a reason why this has been changed. Inks are things I sometimes use a lot in projects for both practical and creative effects. Please restore the full set! k From merakosp at gmail.com Fri Apr 20 06:28:44 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 20 Apr 2018 11:28:44 +0100 Subject: some thoughts on version 9.0.0 In-Reply-To: References: <123301d3d7f7$955dc200$c0194600$@net> Message-ID: Hi all, The inks that were removed were legacy inks which were deprecated a long time ago, and were not supported in the version of Skia library that LC 9.0 uses. Best, Panos -- On Fri, Apr 20, 2018 at 11:20 AM, Keith Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > On 19 Apr 2018, at 17:00, Douglas Ruisaard via use-livecode wrote: > > Next is the significant decrease in the "Ink" choices... I've found (by >> process of elimination) the "notSrcOrReverse" ink works for me in several >> situations.... there ain't no such thing in v9.0.0. >> > > Yep, I found that strange and very disappointing too. I cannot see a > reason why this has been changed. Inks are things I sometimes use a lot in > projects for both practical and creative effects. Please restore the full > set! > > k > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 20 06:30:04 2018 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Fri, 20 Apr 2018 10:30:04 +0000 Subject: Contributing to the IDE Message-ID: <12C1DA99-0C1D-4185-B8D1-085E06B827C7@uni-wh.de> >Monte Goulding via use-livecode Fri, 20 Apr 2018 01:49:50 -0700 wrote >I?m fairly sure Bernd implements stuff using his current install of LC locally >then then makes a patch with that using the github web ui. Am I right Bernd? I >think the web interface is significantly harder and more confusing to use >personally but that could be just me. It?s also not possible to do things like >fix up commit messages. Yes, I use the github web ui. It is not really straightforward but after a while one gets used to it. And some things are not possible but one can always close a pull request and do a new one. E.g when doing a pull request against the wrong branch. Kind regards Bernd From james at thehales.id.au Fri Apr 20 10:02:06 2018 From: james at thehales.id.au (James Hale) Date: Sat, 21 Apr 2018 00:02:06 +1000 Subject: some thoughts on version 9.0.0 Message-ID: <0EB7C0DE-C392-4DAE-884D-1366595E3733@thehales.id.au> My error. Yes the first badge takes you to the now empty behavior button. BUT the second badge does indeed open the script only stack. no bug, just me not moving further along the chain of badges. The badges follow along the chain as advertised. >> On 20 Apr 2018, at 1:41 pm, James At The Hale via use-livecode > wrote: >> >> One downer I have noticed with the advent of behaviors being in script only stacks is you lose the ability to edit them when you click on the behavior badge. >> >> If the behavior resides in a button, as before, all is well. > > That sounds like a bug which we can fix. Could you report it. James From bobsneidar at iotecdigital.com Fri Apr 20 10:45:49 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 Apr 2018 14:45:49 +0000 Subject: OpenLanguage: abstract syntax trees In-Reply-To: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> References: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> Message-ID: <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> What is needed for this is for someone to write a Waddingham Knowledge Extractor API, which would probably involve wtiting an intermediate Waddingham Syntax Distiller (and advanced kind of DSL in it's own right) as well as a mind wave to digital conversion device. To my mind, the latter has not been invented yet, but nothing is stopping you from getting started on the first two. Bob S > On Apr 20, 2018, at 24:50 , Mark Waddingham via use-livecode wrote: > >> Mark any chance of sending the gift of your knowledge our way? > > I could ramble on at length ( not that I'm prone to that, of course ;) ) about designing programming languages, interpreters, compilers, parsers, tokenisers, name analysis, abstract syntax trees, concrete syntax trees, code generation and a great many other things... > > However, I suspect something more focused would be more helpful and for that I really need a greater idea of what you are wanting to achieve - in particular, what is the DSL you are wanting to create, how do you want it to be used, and what is it intended to do? > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ From david.bovill at gmail.com Fri Apr 20 10:50:32 2018 From: david.bovill at gmail.com (David Bovill) Date: Fri, 20 Apr 2018 14:50:32 +0000 Subject: OpenLanguage: abstract syntax trees In-Reply-To: <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> References: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> Message-ID: Good idea. Or a podcast. Yes that is what we should do. I?ll send you an invite Mark and describe the topic + projects that will go on the show. On Fri, 20 Apr 2018 at 15:46, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > What is needed for this is for someone to write a Waddingham Knowledge > Extractor API, which would probably involve wtiting an intermediate > Waddingham Syntax Distiller (and advanced kind of DSL in it's own right) as > well as a mind wave to digital conversion device. To my mind, the latter > has not been invented yet, but nothing is stopping you from getting started > on the first two. > > Bob S > From MikeKerner at roadrunner.com Fri Apr 20 12:07:52 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 20 Apr 2018 12:07:52 -0400 Subject: OpenLanguage: abstract syntax trees In-Reply-To: References: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> Message-ID: you forgot the most important part of that, the dumbItDownForUsN00bz() function On Fri, Apr 20, 2018 at 10:50 AM, David Bovill via use-livecode < use-livecode at lists.runrev.com> wrote: > Good idea. > > Or a podcast. Yes that is what we should do. I?ll send you an invite Mark > and describe the topic + projects that will go on the show. > > On Fri, 20 Apr 2018 at 15:46, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > What is needed for this is for someone to write a Waddingham Knowledge > > Extractor API, which would probably involve wtiting an intermediate > > Waddingham Syntax Distiller (and advanced kind of DSL in it's own right) > as > > well as a mind wave to digital conversion device. To my mind, the latter > > has not been invented yet, but nothing is stopping you from getting > started > > on the first two. > > > > 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 > -- 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 david.bovill at gmail.com Fri Apr 20 13:41:52 2018 From: david.bovill at gmail.com (David Bovill) Date: Fri, 20 Apr 2018 18:41:52 +0100 Subject: OpenLanguage: abstract syntax trees In-Reply-To: References: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> Message-ID: Unfortunately I just had a discussion with our CFO. The business model requires us to sound more impressive than we really are. So we will be mentioning a lot of buzz words, with casual references to Distributed Ledger Technology wherever possible. Marketing has decided it would be good to do in Latin. On 20 April 2018 at 17:07, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > you forgot the most important part of that, the dumbItDownForUsN00bz() > function > > On Fri, Apr 20, 2018 at 10:50 AM, David Bovill via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Good idea. > > > > Or a podcast. Yes that is what we should do. I?ll send you an invite > Mark > > and describe the topic + projects that will go on the show. > > > > On Fri, 20 Apr 2018 at 15:46, Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > What is needed for this is for someone to write a Waddingham Knowledge > > > Extractor API, which would probably involve wtiting an intermediate > > > Waddingham Syntax Distiller (and advanced kind of DSL in it's own > right) > > as > > > well as a mind wave to digital conversion device. To my mind, the > latter > > > has not been invented yet, but nothing is stopping you from getting > > started > > > on the first two. > > > > > > 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 > > > > > > -- > 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 bobsneidar at iotecdigital.com Fri Apr 20 14:06:51 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 Apr 2018 18:06:51 +0000 Subject: OpenLanguage: abstract syntax trees In-Reply-To: References: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> Message-ID: <1D6D6CE1-6497-4FA1-8C8D-4BC5FA6F2529@iotecdigital.com> I was only proposing a possible framework. Obviously, Mark's brain is so complex (perhaps convoluted might be a better term) that the project may require millions of years and the 2nd most powerful computer ever devised in any space time to accomplish this task. Knowing the frustration of those who have attempted this before, it may be a good idea to start with asking ourselves, what is the question? Bob S > On Apr 20, 2018, at 09:07 , Mike Kerner via use-livecode wrote: > > you forgot the most important part of that, the dumbItDownForUsN00bz() > function > > On Fri, Apr 20, 2018 at 10:50 AM, David Bovill via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Good idea. >> >> Or a podcast. Yes that is what we should do. I?ll send you an invite Mark >> and describe the topic + projects that will go on the show. >> >> On Fri, 20 Apr 2018 at 15:46, Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> What is needed for this is for someone to write a Waddingham Knowledge >>> Extractor API, which would probably involve wtiting an intermediate >>> Waddingham Syntax Distiller (and advanced kind of DSL in it's own right) >> as >>> well as a mind wave to digital conversion device. To my mind, the latter >>> has not been invented yet, but nothing is stopping you from getting >> started >>> on the first two. >>> >>> Bob S From andrew at midwestcoastmedia.com Fri Apr 20 14:32:42 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Fri, 20 Apr 2018 18:32:42 +0000 Subject: Search a multidimensional array Message-ID: <20180420183242.Horde.koT-3AU-eqU6GK28qDpWfYx@ua850258.serversignin.com> Is there a quick way to search a large multidimensional array that I am missing? I'm working on an inventory system and trying to figure out some more efficient methods. Currently I'm taking a tab-delimited spreadsheet provided by the client and converting it to an array, but there are currently > 48000 keys in the array so my repeat loop for searching is taking several minutes. I quickly figured out by making the barcode (unique value) the primary key of the array cut down on a simple SKU search, but I'm trying to also search based on other values (like the item description). A line of sample data looks like this: 66290 PHOTO, Early to Mid 1960's, Womens Hair Style, 27x21" Blue Background w/ White Vine Edging, Gold Frame 1 $200.00 An item in the array looks like this: tInventoryArray[66290]["barcode"] tInventoryArray[66290]["description"] tInventoryArray[66290]["details"] tInventoryArray[66290]["qty"] tInventoryArray[66290]["cost"] My slow, albeit working, search code looks like this: repeat for each element tThisItem in tInventoryArray if tThisItem["description"] contains tSearchQuery then put tThisItem into tSortedInventoryArray[(the number of elements of tSortedInventoryArray) + 1] end if end repeat This does work, but is taking almost 2 minutes to search through the 48000+ item database. Can someone point out a flaw in my process? My next experiment is converting this array to a SQLlite database and just throwing SELECT * WHERE commands at it. --Andrew Bell From bobsneidar at iotecdigital.com Fri Apr 20 14:48:35 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 Apr 2018 18:48:35 +0000 Subject: Search a multidimensional array In-Reply-To: <20180420183242.Horde.koT-3AU-eqU6GK28qDpWfYx@ua850258.serversignin.com> References: <20180420183242.Horde.koT-3AU-eqU6GK28qDpWfYx@ua850258.serversignin.com> Message-ID: Andrew, you don't peruse this list much, do you? :-) A recent thread has been going on about just this issue. The upshot is that one pass through the array is obviously needed for the sqLite conversion, but after that multiple queries can be done much more efficiently. I have code already written that converts an array to a memory sqLite database. Once you do that, you can index on the columns you query most often. Contact me off list and I will send it to you. As an aside, why not just use an sqLite database out of the gate? And to the rest of the list, there should probably be a way to import a file based sqlite database into a memory database and then back again for speed. Bob S > On Apr 20, 2018, at 11:32 , Andrew Bell via use-livecode wrote: > > Is there a quick way to search a large multidimensional array that I am missing? I'm working on an inventory system and trying to figure out some more efficient methods. > > Currently I'm taking a tab-delimited spreadsheet provided by the client and converting it to an array, but there are currently > 48000 keys in the array so my repeat loop for searching is taking several minutes. I quickly figured out by making the barcode (unique value) the primary key of the array cut down on a simple SKU search, but I'm trying to also search based on other values (like the item description). > > > A line of sample data looks like this: > 66290 PHOTO, Early to Mid 1960's, Womens Hair Style, 27x21" Blue Background w/ White Vine Edging, Gold Frame 1 $200.00 > > > An item in the array looks like this: > tInventoryArray[66290]["barcode"] > tInventoryArray[66290]["description"] > tInventoryArray[66290]["details"] > tInventoryArray[66290]["qty"] > tInventoryArray[66290]["cost"] > > > My slow, albeit working, search code looks like this: > repeat for each element tThisItem in tInventoryArray > if tThisItem["description"] contains tSearchQuery then > put tThisItem into tSortedInventoryArray[(the number of elements of tSortedInventoryArray) + 1] > end if > end repeat > > > This does work, but is taking almost 2 minutes to search through the 48000+ item database. Can someone point out a flaw in my process? My next experiment is converting this array to a SQLlite database and just throwing SELECT * WHERE commands at it. > > --Andrew Bell From ambassador at fourthworld.com Fri Apr 20 14:49:28 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 20 Apr 2018 11:49:28 -0700 Subject: Has Anyone Got A Directory "Walker" Available In-Reply-To: <63A224F0-3342-4402-8CD8-D5B4828B0583@hindu.org> References: <63A224F0-3342-4402-8CD8-D5B4828B0583@hindu.org> Message-ID: You may recall the dreaded recursion errors that have cropped up in discussions of directory walkers. They happen not because anyone has directory trees > 40,000 folders deep, but because a permissions restriction can prevent going into a subdirectory, causing the current directory to be traversed again and again until the recursion error is thrown. The way to avoid this is to add an error check when setting the directory, e.g.: set the directory to pFolder if the result is not empty then -- skip or report as needed end if -- Richard Gaskin Fourth World Systems Sannyasin Brahmanathaswami wrote: > I found this in a toolbox. Sent by some ago, by a LiveCode deva > > For what it's worth : > > # Filters the strings "." and ".." from a list > function filterDots pList > local tList > > put pList into tList > filter tList without "." > filter tList without ".." > > return tList > end filterDots > # Returns a filtered list of files in the current directory > function filteredFiles > return filterDots(the files) > end filteredFiles > > # Returns a filtered list of folders in the current directory > function filteredFolders > return filterDots(the folders) > end filteredFolders > > # Returns a list of files in the current directory including > # each file's full path. > function filteredFilesWithPaths > local tFiles, tFilesWithPaths > > put filteredFiles() into tFiles > repeat for each line tFile in tFiles > put the directory & slash & tFile & return after \ > tFilesWithPaths > end repeat > delete the last char of tFilesWithPaths > > return tFilesWithPaths > end filteredFilesWithPaths > > > # Returns a list of files in a given folder, using recursion to > # include files in subfolders if desired. > function listFiles pFolder, pRecurse > local tTotalFiles, tCurrentFiles, tFolders > > set the directory to pFolder > put filteredFiles() into tCurrentFiles > if not pRecurse then return tCurrentFiles > if tCurrentFiles is not empty then > put tCurrentFiles & return after tTotalFiles > end if > put filteredFolders() into tFolders > > repeat for each line tFolder in tFolders > put listFiles((pFolder & slash & tFolder), pRecurse) into \ > tCurrentFiles > if tCurrentFiles is not empty then > put tCurrentFiles & return after tTotalFiles > end if > end repeat > delete the last char of tTotalFiles > > return tTotalFiles > end listFiles > > # Returns a list of files with their containing folders, using > # recursion > # if desired to descend into sub folders. > function listFilesWithFolders pFolder, pRecurse > local tTotalFiles, tCurrentFiles, tFolders > > set the directory to pFolder > put filteredFiles() into tCurrentFiles > if not pRecurse then return pFolder & return & "--" & return \ > & tCurrentFiles > if tCurrentFiles is not empty then > put pFolder & return & "--" & return after tTotalFiles > put tCurrentFiles & return & return after tTotalFiles > end if > put filteredFolders() into tFolders > repeat for each line tFolder in tFolders > put listFilesWithFolders((pFolder & slash & tFolder), \ > pRecurse) into tCurrentFiles > if tCurrentFiles is not empty then put tCurrentFiles & \ > return after tTotalFiles > end repeat > delete the last char of tTotalFiles > > return tTotalFiles > end listFilesWithFolders > > # Returns a list of files with the full paths > function listFilesWithPaths pFolder, pRecurse > local tTotalFiles, tCurrentFiles, tFolders > > set the directory to pFolder > put filteredFilesWithPaths() into tCurrentFiles > if not pRecurse then return tCurrentFiles > if tCurrentFiles is not empty then put tCurrentFiles & \ > return after tTotalFiles > put filteredFolders() into tFolders > repeat for each line tFolder in tFolders > put listFilesWithPaths((pFolder & slash & tFolder), \ > pRecurse) into tCurrentFiles > if tCurrentFiles is not empty then put tCurrentFiles & \ > return after tTotalFiles > end repeat > delete the last char of tTotalFiles > > return tTotalFiles > end listFilesWithPaths > > # Returns a sorted list of the files in pFolder. Again using > # recursion if > # required. > function listSortedFiles pFolder, pRecurse > local tFiles > > put listFiles(pFolder, pRecurse) into tFiles > sort lines of tFiles by listSortedFilesSortKey(each) > > return tFiles > end listSortedFiles > > # Used by the listSortedFiles() function. Returns a sort key > # from each file's name to > # allow the sorting to be fully customized. > function listSortedFilesSortKey pFile > # Use this value for a normal text sort > return pFile > end listSortedFilesSortKey > > > on doSomething pFile > put pFile & return after msg > end doSomething > > --This will achieve similar results to listing the files except that > it will be slower because text has to be drawn to the screen at each > iteration. > > # Use this template function to perform an action on each file > # in a folder > on doForEachFile pFolder, pRecurse > set the directory to pFolder > repeat for each line tFile in filteredFiles() > doSomething (pFolder & slash & tFile) > end repeat > if pRecurse then > repeat for each line tFolder in filteredFolders() > doForEachFile (pFolder & slash & tFolder), pRecurse > end repeat > end if > end doForEachFile > > > > I have directory available this days of Ken Ray, in the on system > of set the default folder and get the the files, registered that path. > descend recursively to the level? etc. > > Do anyone has a new one handy they could share using the folder > and file function? > > BR > From jacque at hyperactivesw.com Fri Apr 20 14:58:56 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 Apr 2018 13:58:56 -0500 Subject: OpenLanguage: abstract syntax trees In-Reply-To: <1D6D6CE1-6497-4FA1-8C8D-4BC5FA6F2529@iotecdigital.com> References: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> <1D6D6CE1-6497-4FA1-8C8D-4BC5FA6F2529@iotecdigital.com> Message-ID: <5744ed5f-9d36-b4a7-3d4e-64b020d00ad3@hyperactivesw.com> I believe the team tried to get a backup of Mark's brain a while back, but they ran out of disk space and the computer crashed. They had to settle for copyrighting him and providing an extended health plan. On 4/20/18 1:06 PM, Bob Sneidar via use-livecode wrote: > I was only proposing a possible framework. Obviously, Mark's brain is so complex (perhaps convoluted might be a better term) that the project may require millions of years and the 2nd most powerful computer ever devised in any space time to accomplish this task. Knowing the frustration of those who have attempted this before, it may be a good idea to start with asking ourselves, what is the question? > > Bob S > > >> On Apr 20, 2018, at 09:07 , Mike Kerner via use-livecode wrote: >> >> you forgot the most important part of that, the dumbItDownForUsN00bz() >> function >> >> On Fri, Apr 20, 2018 at 10:50 AM, David Bovill via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Good idea. >>> >>> Or a podcast. Yes that is what we should do. I?ll send you an invite Mark >>> and describe the topic + projects that will go on the show. >>> >>> On Fri, 20 Apr 2018 at 15:46, Bob Sneidar via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> What is needed for this is for someone to write a Waddingham Knowledge >>>> Extractor API, which would probably involve wtiting an intermediate >>>> Waddingham Syntax Distiller (and advanced kind of DSL in it's own right) >>> as >>>> well as a mind wave to digital conversion device. To my mind, the latter >>>> has not been invented yet, but nothing is stopping you from getting >>> started >>>> on the first two. >>>> >>>> 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 > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Fri Apr 20 15:03:06 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 20 Apr 2018 12:03:06 -0700 Subject: Posting to LiveCode Server In-Reply-To: References: Message-ID: Tom Glod wrote: > I was going to use LC Server until I realized there was a built in > httpd server library present in LC 9.... I ditched LC server.... > mainly because it smokes LC server in performance. I would be interested in the details of that comparison, scripts and metrics. Despite its name, LC Server isn't a server, but a command-line app meant to run under a web server such as Apache or LigHTTPd which supports CGI. The httpd script included with LC is a server, but designed for local use. It may be useful on remote hosts; I haven't tried it. So it's not so much: LC's HTTPd vs LC Server ...as it is: LC's HTTPd vs Apache + LC Server Given that all CGIs are launched, run, and quit with each request, and that all LC processes (desktop or "Server") currently spend more than two thirds of their launch time looking for and initializing fonts which are very rarely if ever used (close to zero known uses with LC Server), it certainly gives a potential edge to any LC process that runs that unnecessarily cumbersome boot process only once and then remains persistent. But on the flipside, Apache is written in C and despite its vast feature set performs as well as we'd expect from compiled object code. My own experiments using LC as a scripted HTTPd have managed to achieve only half the speed of Apache - and that was without attempting HTTPS, a requirement for any HTTP server to be used outside the local network. So an apples-to-apples test would pit LC's httpd on a remote server bound to one port, with Apache + LC Server on that same system bound to another port. And for the results to be applicable to real-world needs, both would be tested with HTTPS. -- 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 david.bovill at gmail.com Fri Apr 20 15:10:31 2018 From: david.bovill at gmail.com (David Bovill) Date: Fri, 20 Apr 2018 19:10:31 +0000 Subject: OpenLanguage: abstract syntax trees In-Reply-To: <5744ed5f-9d36-b4a7-3d4e-64b020d00ad3@hyperactivesw.com> References: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> <1D6D6CE1-6497-4FA1-8C8D-4BC5FA6F2529@iotecdigital.com> <5744ed5f-9d36-b4a7-3d4e-64b020d00ad3@hyperactivesw.com> Message-ID: Yes - I quite distinctly remember having this very discussion with Mark a few years back regarding the Bus Factor. Was clear at that time that a centralised backup was infeasible. I?m glad to say that new additions to the protocol have made possible decentralised solutions to this conundrum. Unfortunately no one so far has been able to discern the meaning of this new architecture. Se we?re building an AI solution to manage the complexity for us. On Fri, 20 Apr 2018 at 19:59, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I believe the team tried to get a backup of Mark's brain a while back, > but they ran out of disk space and the computer crashed. They had to > settle for copyrighting him and providing an extended health plan. > > On 4/20/18 1:06 PM, Bob Sneidar via use-livecode wrote: > > I was only proposing a possible framework. Obviously, Mark's brain is so > complex (perhaps convoluted might be a better term) that the project may > require millions of years and the 2nd most powerful computer ever devised > in any space time to accomplish this task. Knowing the frustration of those > who have attempted this before, it may be a good idea to start with asking > ourselves, what is the question? > > > > Bob S > > > > > >> On Apr 20, 2018, at 09:07 , Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> you forgot the most important part of that, the dumbItDownForUsN00bz() > >> function > >> > >> On Fri, Apr 20, 2018 at 10:50 AM, David Bovill via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> Good idea. > >>> > >>> Or a podcast. Yes that is what we should do. I?ll send you an invite > Mark > >>> and describe the topic + projects that will go on the show. > >>> > >>> On Fri, 20 Apr 2018 at 15:46, Bob Sneidar via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> What is needed for this is for someone to write a Waddingham Knowledge > >>>> Extractor API, which would probably involve wtiting an intermediate > >>>> Waddingham Syntax Distiller (and advanced kind of DSL in it's own > right) > >>> as > >>>> well as a mind wave to digital conversion device. To my mind, the > latter > >>>> has not been invented yet, but nothing is stopping you from getting > >>> started > >>>> on the first two. > >>>> > >>>> 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 > > > > > -- > 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 ambassador at fourthworld.com Fri Apr 20 15:15:15 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 20 Apr 2018 12:15:15 -0700 Subject: Search a multidimensional array In-Reply-To: <20180420183242.Horde.koT-3AU-eqU6GK28qDpWfYx@ua850258.serversignin.com> References: <20180420183242.Horde.koT-3AU-eqU6GK28qDpWfYx@ua850258.serversignin.com> Message-ID: This is an interesting problem, Andrew. Thanks for posting it. One modest performance gain available easily may be to change this: repeat for each element tThisItem in tInventoryArray if tThisItem["description"] contains tSearchQuery then put tThisItem into tSortedInventoryArray[ \ (the number of elements of tSortedInventoryArray) + 1] end if end repeat ...to: put 0 into i repeat for each element tThisItem in tInventoryArray if tThisItem["description"] contains tSearchQuery then add i to i put tThisItem into tSortedInventoryArray[i] end if end repeat As originally written it needs to traverse the entire destination array each time through the loop just to get a unique ordinal index number; maintaining that manually through i should be a little bit faster. It may be that a much faster optimization may be possible by leaving the data as a delimited string. It's hard to say up front if that will be the case, but converting strings to and from arrays is expensive, and both "repeat for each line..." and "put &cr after..." are very fast operations. If these ideas don't yield the performance gain you're looking for, and if the data is not sensitive, feel free to email the data and a sample stack with your current search scripts and I'll see what I can do. It's useful for much of the work I do to know which methods of querying data will perform better, and I rarely come across good real-world data like this, so I'd be happy to give it a shot to see what can be learned from it. My test data no doubt differs from yours, but FWIW most of my testing has been done with data containing between 10k and 100k records, and few take as long as a second or two for a given query. Either some of what I've learned may help your situation, or your situation will teach me new things to consider. -- Richard Gaskin Fourth World Systems Andrew Bell wrote: > Is there a quick way to search a large multidimensional array that I > am missing? I'm working on an inventory system and trying to figure > out some more efficient methods. > > Currently I'm taking a tab-delimited spreadsheet provided by the > client and converting it to an array, but there are currently > 48000 > keys in the array so my repeat loop for searching is taking several > minutes. I quickly figured out by making the barcode (unique value) > the primary key of the array cut down on a simple SKU search, but I'm > trying to also search based on other values (like the item description). > > > A line of sample data looks like this: > 66290 PHOTO, Early to Mid 1960's, Womens Hair Style, 27x21" Blue > Background w/ White Vine Edging, Gold Frame 1 $200.00 > > > An item in the array looks like this: > tInventoryArray[66290]["barcode"] > tInventoryArray[66290]["description"] > tInventoryArray[66290]["details"] > tInventoryArray[66290]["qty"] > tInventoryArray[66290]["cost"] > > > My slow, albeit working, search code looks like this: > repeat for each element tThisItem in tInventoryArray > if tThisItem["description"] contains tSearchQuery then > put tThisItem into tSortedInventoryArray[(the number of > elements of tSortedInventoryArray) + 1] > end if > end repeat > > > This does work, but is taking almost 2 minutes to search through the > 48000+ item database. Can someone point out a flaw in my process? My > next experiment is converting this array to a SQLlite database and > just throwing SELECT * WHERE commands at it. > > --Andrew Bell From ahsoftware at sonic.net Fri Apr 20 15:35:28 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 20 Apr 2018 12:35:28 -0700 Subject: OpenLanguage: abstract syntax trees In-Reply-To: References: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> <1D6D6CE1-6497-4FA1-8C8D-4BC5FA6F2529@iotecdigital.com> <5744ed5f-9d36-b4a7-3d4e-64b020d00ad3@hyperactivesw.com> Message-ID: On 04/20/2018 12:10 PM, David Bovill via use-livecode wrote: > Yes - I quite distinctly remember having this very discussion with Mark a > few years back regarding the Bus Factor. Was clear at that time that a > centralised backup was infeasible. > > I?m glad to say that new additions to the protocol have made possible > decentralised solutions to this conundrum. > > Unfortunately no one so far has been able to discern the meaning of this > new architecture. Se we?re building an AI solution to manage the complexity > for us. Long out of print (55 years now), but... http://folk.uio.no/knuthe/kuriosa/draper.pdf -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Fri Apr 20 15:35:53 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 20 Apr 2018 12:35:53 -0700 Subject: Contributing to the IDE In-Reply-To: <2997ed8bdeafcb6dc2481a8cd0b35942@livecode.com> References: <40ECCEF0-2FE3-4DE1-B224-0B60A732F4C1@gmail.com> <1f41150994356ba64b7c3382f5d6199d@livecode.com> <2997ed8bdeafcb6dc2481a8cd0b35942@livecode.com> Message-ID: On Fri, Apr 20, 2018 at 2:46 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > > You might make a change to a file which looks identical in 9 and 9.1 - but > how do you know it will work in 9.1 without running it in 9.1? ?As someone who was, until about four months back, using 6.7.3, you think I'm that concerned about 9.1? ;-) But I see your point. gc? From alex at tweedly.net Fri Apr 20 15:52:32 2018 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 20 Apr 2018 20:52:32 +0100 Subject: Search a multidimensional array In-Reply-To: References: <20180420183242.Horde.koT-3AU-eqU6GK28qDpWfYx@ua850258.serversignin.com> Message-ID: <82eb8013-653d-7217-e472-07f969ac0e49@tweedly.net> On 20/04/2018 20:15, Richard Gaskin via use-livecode wrote: > This is an interesting problem, Andrew.? Thanks for posting it. > Indeed! > One modest performance gain available easily may be to change this: > > ? repeat for each element tThisItem in tInventoryArray > ???????? if tThisItem["description"] contains tSearchQuery then > ??????????? put tThisItem into tSortedInventoryArray[ \ > ????????????? (the number of elements of tSortedInventoryArray) + 1] > ???????? end if > ? end repeat > > ...to: > > ? put 0 into i > ? repeat for each element tThisItem in tInventoryArray > ???????? if tThisItem["description"] contains tSearchQuery then > ??????????? add i to i > ??????????? put tThisItem into tSortedInventoryArray[i] > ???????? end if > ? end repeat > I'd go for something like ? put tMatchingKeys ? repeat for each line K in the keys of tInventoryArray ???????? if tInventoryArray [K]["description"] contains tSearchQuery then ??????????? put K & CR after temp ???????? end if ? end repeat ( or use??? repeat for each key K in tInventoryArray I used that other form because I keep a variable with the set of keys - and that can be re-used to subsequently search subsets with the 'repeat for each line' style of repeat :-) and then use the key list for subsequent access. Unless you are changing or destroying the 'extracted' elements, it will save you significant time to just use it in-place. Also,? testing with an earlier version of LC (maybe 7.x ??) showed that "repeat for each key ..." was faster than "repeat for each element ..." - no idea why, and haven't retested in at least a couple of years. I have a library (announced a couple of days ago - don't use that initial version !!) for doing almost exactly this. For a data table apparently similar to yours (100 columns, 50,000 rows) this kind of simple search takes around 180 millisecs (on an aging Macbook Pro). NB - the latest version is *much* changed from the version on github - I will finish testing tonight and post the new version to Github and put a copy on my own website (and announce to this list). -- Alex. P.S. I agree with Richard's request for a copy of the data / current code if it is not sensitive. Feel free to email directly to me if that is possible. From andrew at midwestcoastmedia.com Fri Apr 20 15:59:50 2018 From: andrew at midwestcoastmedia.com (MWCM) Date: Fri, 20 Apr 2018 12:59:50 -0700 Subject: Search a multidimensional array In-Reply-To: References: Message-ID: <9F659928-D2CA-423E-B48D-A6217B47A867@midwestcoastmedia.com> I tried to be a good developer and search the list before posting: multidimensional array search turned up some posts from 2014 but most ?sort array? searches only returned single dimensional array options. I just started using encodedArrays on a recent project and fell in love with the simplicity. They have worked for all my previous efforts, but I?ve never had more than ~300 keys to deal with so a simple repeat loop always worked fast enough. I?ve used MySQL database queries in the past with success (thanks to the awesome API that HostM has provided), but this particular data set isn?t stored in an online database and offline access is required due to client circumstances. Before Livecode I?d never dealt with databases at all, so I?m an SQLlite virgin. Looks pretty straight forward though. --Andrew Bell --Sent from my iPhone > On Apr 20, 2018, at 12:10 PM, use-livecode-request at lists.runrev.com wrote: > > Andrew, you don't peruse this list much, do you? :-) > > A recent thread has been going on about just this issue. The upshot is that one pass through the array is obviously needed for the sqLite conversion, but after that multiple queries can be done much more efficiently. I have code already written that converts an array to a memory sqLite database. Once you do that, you can index on the columns you query most often. Contact me off list and I will send it to you. > > As an aside, why not just use an sqLite database out of the gate? And to the rest of the list, there should probably be a way to import a file based sqlite database into a memory database and then back again for speed. > > Bob S From andrew at midwestcoastmedia.com Fri Apr 20 17:42:11 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Fri, 20 Apr 2018 21:42:11 +0000 Subject: Search a multidimensional array In-Reply-To: Message-ID: <20180420214211.Horde.m0XC1jBjZFilzrPwCCFOaEV@ua850258.serversignin.com> THANK YOU for the recommendation! It took 4 seconds to convert this giant array to an SQLlite DB that could be queried in a heartbeat. You just took this project from proof of concept to prototype. My apologies to the list, I vaguely remember seeing that thread but didn't recall the title or date. Hopefully THIS thread will make it easier for the next n00b to find their solution. --Andrew Bell > Andrew, you don't peruse this list much, do you? :-) > > A recent thread has been going on about just this issue. The upshot > is that one pass through the array is obviously needed for the > sqLite conversion, but after that multiple queries can be done much > more efficiently. I have code already written that converts an array > to a memory sqLite database. Once you do that, you can index on the > columns you query most often. Contact me off list and I will send it > to you. > > As an aside, why not just use an sqLite database out of the gate? > And to the rest of the list, there should probably be a way to > import a file based sqlite database into a memory database and then > back again for speed. > > Bob S > From dougr at telus.net Fri Apr 20 17:54:04 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Fri, 20 Apr 2018 14:54:04 -0700 Subject: some thoughts on version 9.0.0 Message-ID: <12bf01d3d8f2$1ab0b570$50122050$@net> Maybe, Panos... BUT what if someone (like me!) is using one of those "disappearing" inks (sorry for the pun!). The number of inks which were removed is HUGE! .... I'm supposed to go back to all of my project and live apps and find and replace them??? I don't think so! Doug >>>Hi all, >>>The inks that were removed were legacy inks which were deprecated a long time ago, and were not supported in the version of Skia library that LC 9.0 uses. >>>Best, >>>Panos -- On Fri, Apr 20, 2018 at 11:20 AM, Keith Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > On 19 Apr 2018, at 17:00, Douglas Ruisaard via use-livecode wrote: > > Next is the significant decrease in the "Ink" choices... I've found > (by >> process of elimination) the "notSrcOrReverse" ink works for me in >> several situations.... there ain't no such thing in v9.0.0. >> > > Yep, I found that strange and very disappointing too. I cannot see a > reason why this has been changed. Inks are things I sometimes use a > lot in projects for both practical and creative effects. Please > restore the full set! > > k > From monte at appisle.net Fri Apr 20 18:11:05 2018 From: monte at appisle.net (Monte Goulding) Date: Sat, 21 Apr 2018 08:11:05 +1000 Subject: some thoughts on version 9.0.0 In-Reply-To: <12bf01d3d8f2$1ab0b570$50122050$@net> References: <12bf01d3d8f2$1ab0b570$50122050$@net> Message-ID: <66CE9219-6598-49C9-8071-A8CF25C575E0@appisle.net> > On 21 Apr 2018, at 7:54 am, Douglas Ruisaard via use-livecode wrote: > > Maybe, Panos... BUT what if someone (like me!) is using one of those "disappearing" inks (sorry for the pun!). The number of inks which were removed is HUGE! .... I'm supposed to go back to all of my project and live apps and find and replace them??? I don't think so! Well of course it?s up to you what you do but these inks were deprecated for a long time and were not able to be supported after the skia upgrade. We also had to update the IDE to remove/replace their use. It was a while back and I didn?t keep the stack unfortunately but I wrote a script that iterated all the open stacks and found unsupported inks and then listed the object name so I could go and edit to find an equivalent or just remove it. On the up side you can now use color emoji?s ;-) Cheers Monte From richmondmathewson at gmail.com Fri Apr 20 18:15:58 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 21 Apr 2018 01:15:58 +0300 Subject: some thoughts on version 9.0.0 In-Reply-To: <12bf01d3d8f2$1ab0b570$50122050$@net> References: <12bf01d3d8f2$1ab0b570$50122050$@net> Message-ID: As has been pointed out in the Forums: as new LiveCode versions come out with new capabilities and new features quite a few of the features available in previous versions are removed: this may well be, as has been explained, the necessary cost of the new features. About 4 years ago I had to 90% recode my Devawriter Pro because of this "feature drift" . . . a time-consuming and tedious exercise, but the end result was that my App continued to function on more recent recensions of operating systems. While my recode was a bother, I gained more than I lost. Richmond. On 21/4/2018 12:54 am, Douglas Ruisaard via use-livecode wrote: > Maybe, Panos... BUT what if someone (like me!) is using one of those "disappearing" inks (sorry for the pun!). The number of inks which were removed is HUGE! .... I'm supposed to go back to all of my project and live apps and find and replace them??? I don't think so! > > > > Doug > > > >>>> Hi all, > > >>>> The inks that were removed were legacy inks which were deprecated a long time ago, and were not supported in the version of Skia library that LC 9.0 uses. > > >>>> Best, >>>> Panos > -- > > > > On Fri, Apr 20, 2018 at 11:20 AM, Keith Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > > > >> On 19 Apr 2018, at 17:00, Douglas Ruisaard via use-livecode wrote: >> Next is the significant decrease in the "Ink" choices... I've found >> (by >>> process of elimination) the "notSrcOrReverse" ink works for me in >>> several situations.... there ain't no such thing in v9.0.0. >> Yep, I found that strange and very disappointing too. I cannot see a >> reason why this has been changed. Inks are things I sometimes use a >> lot in projects for both practical and creative effects. Please >> restore the full set! >> k > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david.bovill at gmail.com Fri Apr 20 19:34:00 2018 From: david.bovill at gmail.com (David Bovill) Date: Sat, 21 Apr 2018 00:34:00 +0100 Subject: OpenLanguage: abstract syntax trees In-Reply-To: References: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> <1D6D6CE1-6497-4FA1-8C8D-4BC5FA6F2529@iotecdigital.com> <5744ed5f-9d36-b4a7-3d4e-64b020d00ad3@hyperactivesw.com> Message-ID: Hmmm. That is problematic. I think the author must have had some intimate experience of devops. On 20 April 2018 at 20:35, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 04/20/2018 12:10 PM, David Bovill via use-livecode wrote: > >> Yes - I quite distinctly remember having this very discussion with Mark a >> few years back regarding the Bus Factor. Was clear at that time that a >> centralised backup was infeasible. >> >> I?m glad to say that new additions to the protocol have made possible >> decentralised solutions to this conundrum. >> >> Unfortunately no one so far has been able to discern the meaning of this >> new architecture. Se we?re building an AI solution to manage the >> complexity >> for us. >> > > Long out of print (55 years now), but... > > http://folk.uio.no/knuthe/kuriosa/draper.pdf > > -- > 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 brahma at hindu.org Fri Apr 20 23:35:05 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 21 Apr 2018 03:35:05 +0000 Subject: Title Case Message-ID: What to the simplest way to "sentence case" a create a sentence title in use toUpper to convert to A Create A Sentence Title? BR From bonnmike at gmail.com Fri Apr 20 23:54:53 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 20 Apr 2018 21:54:53 -0600 Subject: Title Case In-Reply-To: References: Message-ID: Something like this might work.. put "a create a sentence title" into tTitle repeat with i = 1 to the number of truewords in tTitle put toupper(char 1 of trueword i of tTitle) into char 1 of trueword i of tTitle end repeat put tTitle -- the adjusted case sentence If you have words that you would rather not uppercase of course, you'll have to check for those. (like of, the...) and whether or not the word is the first. On Fri, Apr 20, 2018 at 9:35 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > What to the simplest way to "sentence case" > > a create a sentence title > > in use toUpper to convert to > > A Create A Sentence Title? > > BR > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ali.lloyd at livecode.com Sat Apr 21 04:14:00 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sat, 21 Apr 2018 08:14:00 +0000 Subject: Has Anyone Got A Directory "Walker" Available In-Reply-To: References: <63A224F0-3342-4402-8CD8-D5B4828B0583@hindu.org> Message-ID: Now that we have files(pFolder), folder(pFolder) (and files(pFolder, "detailed"), folders(pFolder, "detailed")), directory walking code can be improved somewhat by not having to set the current folder. Actually, I haven't checked what happens when you get files(pRestrictedFolder) On Fri, Apr 20, 2018 at 7:49 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > You may recall the dreaded recursion errors that have cropped up in > discussions of directory walkers. They happen not because anyone has > directory trees > 40,000 folders deep, but because a permissions > restriction can prevent going into a subdirectory, causing the current > directory to be traversed again and again until the recursion error is > thrown. > > The way to avoid this is to add an error check when setting the > directory, e.g.: > > set the directory to pFolder > if the result is not empty then > -- skip or report as needed > end if > > > -- > Richard Gaskin > Fourth World Systems > > > Sannyasin Brahmanathaswami wrote: > > > I found this in a toolbox. Sent by some ago, by a LiveCode deva > > > > For what it's worth : > > > > # Filters the strings "." and ".." from a list > > function filterDots pList > > local tList > > > > put pList into tList > > filter tList without "." > > filter tList without ".." > > > > return tList > > end filterDots > > # Returns a filtered list of files in the current directory > > function filteredFiles > > return filterDots(the files) > > end filteredFiles > > > > # Returns a filtered list of folders in the current directory > > function filteredFolders > > return filterDots(the folders) > > end filteredFolders > > > > # Returns a list of files in the current directory including > > # each file's full path. > > function filteredFilesWithPaths > > local tFiles, tFilesWithPaths > > > > put filteredFiles() into tFiles > > repeat for each line tFile in tFiles > > put the directory & slash & tFile & return after \ > > tFilesWithPaths > > end repeat > > delete the last char of tFilesWithPaths > > > > return tFilesWithPaths > > end filteredFilesWithPaths > > > > > > # Returns a list of files in a given folder, using recursion to > > # include files in subfolders if desired. > > function listFiles pFolder, pRecurse > > local tTotalFiles, tCurrentFiles, tFolders > > > > set the directory to pFolder > > put filteredFiles() into tCurrentFiles > > if not pRecurse then return tCurrentFiles > > if tCurrentFiles is not empty then > > put tCurrentFiles & return after tTotalFiles > > end if > > put filteredFolders() into tFolders > > > > repeat for each line tFolder in tFolders > > put listFiles((pFolder & slash & tFolder), pRecurse) into \ > > tCurrentFiles > > if tCurrentFiles is not empty then > > put tCurrentFiles & return after tTotalFiles > > end if > > end repeat > > delete the last char of tTotalFiles > > > > return tTotalFiles > > end listFiles > > > > # Returns a list of files with their containing folders, using > > # recursion > > # if desired to descend into sub folders. > > function listFilesWithFolders pFolder, pRecurse > > local tTotalFiles, tCurrentFiles, tFolders > > > > set the directory to pFolder > > put filteredFiles() into tCurrentFiles > > if not pRecurse then return pFolder & return & "--" & return \ > > & tCurrentFiles > > if tCurrentFiles is not empty then > > put pFolder & return & "--" & return after tTotalFiles > > put tCurrentFiles & return & return after tTotalFiles > > end if > > put filteredFolders() into tFolders > > repeat for each line tFolder in tFolders > > put listFilesWithFolders((pFolder & slash & tFolder), \ > > pRecurse) into tCurrentFiles > > if tCurrentFiles is not empty then put tCurrentFiles & \ > > return after tTotalFiles > > end repeat > > delete the last char of tTotalFiles > > > > return tTotalFiles > > end listFilesWithFolders > > > > # Returns a list of files with the full paths > > function listFilesWithPaths pFolder, pRecurse > > local tTotalFiles, tCurrentFiles, tFolders > > > > set the directory to pFolder > > put filteredFilesWithPaths() into tCurrentFiles > > if not pRecurse then return tCurrentFiles > > if tCurrentFiles is not empty then put tCurrentFiles & \ > > return after tTotalFiles > > put filteredFolders() into tFolders > > repeat for each line tFolder in tFolders > > put listFilesWithPaths((pFolder & slash & tFolder), \ > > pRecurse) into tCurrentFiles > > if tCurrentFiles is not empty then put tCurrentFiles & \ > > return after tTotalFiles > > end repeat > > delete the last char of tTotalFiles > > > > return tTotalFiles > > end listFilesWithPaths > > > > # Returns a sorted list of the files in pFolder. Again using > > # recursion if > > # required. > > function listSortedFiles pFolder, pRecurse > > local tFiles > > > > put listFiles(pFolder, pRecurse) into tFiles > > sort lines of tFiles by listSortedFilesSortKey(each) > > > > return tFiles > > end listSortedFiles > > > > # Used by the listSortedFiles() function. Returns a sort key > > # from each file's name to > > # allow the sorting to be fully customized. > > function listSortedFilesSortKey pFile > > # Use this value for a normal text sort > > return pFile > > end listSortedFilesSortKey > > > > > > on doSomething pFile > > put pFile & return after msg > > end doSomething > > > > --This will achieve similar results to listing the files except that > > it will be slower because text has to be drawn to the screen at each > > iteration. > > > > # Use this template function to perform an action on each file > > # in a folder > > on doForEachFile pFolder, pRecurse > > set the directory to pFolder > > repeat for each line tFile in filteredFiles() > > doSomething (pFolder & slash & tFile) > > end repeat > > if pRecurse then > > repeat for each line tFolder in filteredFolders() > > doForEachFile (pFolder & slash & tFolder), pRecurse > > end repeat > > end if > > end doForEachFile > > > > > > > > I have directory available this days of Ken Ray, in the on system > > of set the default folder and get the the files, registered that path. > > descend recursively to the level? etc. > > > > Do anyone has a new one handy they could share using the folder > > and file function? > > > > BR > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ali.lloyd at livecode.com Sat Apr 21 04:15:38 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sat, 21 Apr 2018 08:15:38 +0000 Subject: Has Anyone Got A Directory "Walker" Available In-Reply-To: References: <63A224F0-3342-4402-8CD8-D5B4828B0583@hindu.org> Message-ID: Ah, it will throw an error - so best to use try / catch around the function calls. On Sat, Apr 21, 2018 at 9:13 AM Ali Lloyd wrote: > Now that we have files(pFolder), folder(pFolder) (and files(pFolder, > "detailed"), folders(pFolder, "detailed")), directory walking code can be > improved somewhat by not having to set the current folder. > > Actually, I haven't checked what happens when you get > files(pRestrictedFolder) > > > On Fri, Apr 20, 2018 at 7:49 PM Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You may recall the dreaded recursion errors that have cropped up in >> discussions of directory walkers. They happen not because anyone has >> directory trees > 40,000 folders deep, but because a permissions >> restriction can prevent going into a subdirectory, causing the current >> directory to be traversed again and again until the recursion error is >> thrown. >> >> The way to avoid this is to add an error check when setting the >> directory, e.g.: >> >> set the directory to pFolder >> if the result is not empty then >> -- skip or report as needed >> end if >> >> >> -- >> Richard Gaskin >> Fourth World Systems >> >> >> Sannyasin Brahmanathaswami wrote: >> >> > I found this in a toolbox. Sent by some ago, by a LiveCode deva >> > >> > For what it's worth : >> > >> > # Filters the strings "." and ".." from a list >> > function filterDots pList >> > local tList >> > >> > put pList into tList >> > filter tList without "." >> > filter tList without ".." >> > >> > return tList >> > end filterDots >> > # Returns a filtered list of files in the current directory >> > function filteredFiles >> > return filterDots(the files) >> > end filteredFiles >> > >> > # Returns a filtered list of folders in the current directory >> > function filteredFolders >> > return filterDots(the folders) >> > end filteredFolders >> > >> > # Returns a list of files in the current directory including >> > # each file's full path. >> > function filteredFilesWithPaths >> > local tFiles, tFilesWithPaths >> > >> > put filteredFiles() into tFiles >> > repeat for each line tFile in tFiles >> > put the directory & slash & tFile & return after \ >> > tFilesWithPaths >> > end repeat >> > delete the last char of tFilesWithPaths >> > >> > return tFilesWithPaths >> > end filteredFilesWithPaths >> > >> > >> > # Returns a list of files in a given folder, using recursion to >> > # include files in subfolders if desired. >> > function listFiles pFolder, pRecurse >> > local tTotalFiles, tCurrentFiles, tFolders >> > >> > set the directory to pFolder >> > put filteredFiles() into tCurrentFiles >> > if not pRecurse then return tCurrentFiles >> > if tCurrentFiles is not empty then >> > put tCurrentFiles & return after tTotalFiles >> > end if >> > put filteredFolders() into tFolders >> > >> > repeat for each line tFolder in tFolders >> > put listFiles((pFolder & slash & tFolder), pRecurse) into \ >> > tCurrentFiles >> > if tCurrentFiles is not empty then >> > put tCurrentFiles & return after tTotalFiles >> > end if >> > end repeat >> > delete the last char of tTotalFiles >> > >> > return tTotalFiles >> > end listFiles >> > >> > # Returns a list of files with their containing folders, using >> > # recursion >> > # if desired to descend into sub folders. >> > function listFilesWithFolders pFolder, pRecurse >> > local tTotalFiles, tCurrentFiles, tFolders >> > >> > set the directory to pFolder >> > put filteredFiles() into tCurrentFiles >> > if not pRecurse then return pFolder & return & "--" & return \ >> > & tCurrentFiles >> > if tCurrentFiles is not empty then >> > put pFolder & return & "--" & return after tTotalFiles >> > put tCurrentFiles & return & return after tTotalFiles >> > end if >> > put filteredFolders() into tFolders >> > repeat for each line tFolder in tFolders >> > put listFilesWithFolders((pFolder & slash & tFolder), \ >> > pRecurse) into tCurrentFiles >> > if tCurrentFiles is not empty then put tCurrentFiles & \ >> > return after tTotalFiles >> > end repeat >> > delete the last char of tTotalFiles >> > >> > return tTotalFiles >> > end listFilesWithFolders >> > >> > # Returns a list of files with the full paths >> > function listFilesWithPaths pFolder, pRecurse >> > local tTotalFiles, tCurrentFiles, tFolders >> > >> > set the directory to pFolder >> > put filteredFilesWithPaths() into tCurrentFiles >> > if not pRecurse then return tCurrentFiles >> > if tCurrentFiles is not empty then put tCurrentFiles & \ >> > return after tTotalFiles >> > put filteredFolders() into tFolders >> > repeat for each line tFolder in tFolders >> > put listFilesWithPaths((pFolder & slash & tFolder), \ >> > pRecurse) into tCurrentFiles >> > if tCurrentFiles is not empty then put tCurrentFiles & \ >> > return after tTotalFiles >> > end repeat >> > delete the last char of tTotalFiles >> > >> > return tTotalFiles >> > end listFilesWithPaths >> > >> > # Returns a sorted list of the files in pFolder. Again using >> > # recursion if >> > # required. >> > function listSortedFiles pFolder, pRecurse >> > local tFiles >> > >> > put listFiles(pFolder, pRecurse) into tFiles >> > sort lines of tFiles by listSortedFilesSortKey(each) >> > >> > return tFiles >> > end listSortedFiles >> > >> > # Used by the listSortedFiles() function. Returns a sort key >> > # from each file's name to >> > # allow the sorting to be fully customized. >> > function listSortedFilesSortKey pFile >> > # Use this value for a normal text sort >> > return pFile >> > end listSortedFilesSortKey >> > >> > >> > on doSomething pFile >> > put pFile & return after msg >> > end doSomething >> > >> > --This will achieve similar results to listing the files except that >> > it will be slower because text has to be drawn to the screen at each >> > iteration. >> > >> > # Use this template function to perform an action on each file >> > # in a folder >> > on doForEachFile pFolder, pRecurse >> > set the directory to pFolder >> > repeat for each line tFile in filteredFiles() >> > doSomething (pFolder & slash & tFile) >> > end repeat >> > if pRecurse then >> > repeat for each line tFolder in filteredFolders() >> > doForEachFile (pFolder & slash & tFolder), pRecurse >> > end repeat >> > end if >> > end doForEachFile >> > >> > >> > >> > I have directory available this days of Ken Ray, in the on system >> > of set the default folder and get the the files, registered that path. >> > descend recursively to the level? etc. >> > >> > Do anyone has a new one handy they could share using the folder >> > and file function? >> > >> > BR >> > >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Apr 21 07:25:57 2018 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 21 Apr 2018 12:25:57 +0100 Subject: Title Case In-Reply-To: References: Message-ID: Or maybe put toupper(char 1 of tolower( trueword i of tTitle) ) into trueword i of tTitle or put toupper(char 1 of trueword i of tTitle) & \ tolower(char 2 to -1 of trueword i of tTitle) into trueword i of tTitle -- Alex. On 21/04/2018 04:54, Mike Bonner via use-livecode wrote: > Something like this might work.. > > put "a create a sentence title" into tTitle > repeat with i = 1 to the number of truewords in tTitle > put toupper(char 1 of trueword i of tTitle) into char 1 of trueword i of > tTitle > end repeat > put tTitle -- the adjusted case sentence > > If you have words that you would rather not uppercase of course, you'll > have to check for those. (like of, the...) and whether or not the word is > the first. > > > On Fri, Apr 20, 2018 at 9:35 PM, Sannyasin Brahmanathaswami via > use-livecode wrote: > >> What to the simplest way to "sentence case" >> >> a create a sentence title >> >> in use toUpper to convert to >> >> A Create A Sentence Title? >> >> BR >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 brahma at hindu.org Sat Apr 21 09:40:42 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 21 Apr 2018 13:40:42 +0000 Subject: Title Case In-Reply-To: References: Message-ID: Mike/Andy that works; not sure how the eye-candy will to take to This Is A Title This is an obscure UI case in which I can't get metadata from the data base, for a given audio that has been downloaded. So these "titles" come file names in the "My Audio" the-guru-chronicles-audiobook_10-Chapter-06.mp3 becomes: The Guru Chronicles Audiobook, 10 Chapter 06 in the UI? it already take times, adding a look up library will "kill" it. Brahmanathaswami Mike Bonner Something like this might work.. put "a create a sentence title" into tTitle repeat with i = 1 to the number of truewords in tTitle put toupper(char 1 of trueword i of tTitle) into char 1 of trueword i of tTitle end repeat put tTitle -- the adjusted case sentence If you have words that you would rather not uppercase of course, you'll have to check for those. (like of, the...) and whether or not the word is the first. From richmondmathewson at gmail.com Sat Apr 21 09:52:35 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 21 Apr 2018 16:52:35 +0300 Subject: Title Case In-Reply-To: References: Message-ID: <307d5277-501c-f82d-897b-ffeb578d8f27@gmail.com> Just been playing with this and found that this causes problems: put "vanish" into rWORD put char 1 of rWORD into rC toUpper(rC) the toUpper(rC) throws a "bluey" toUpper works with a string expressed "as itself" in double quotes, but does not seem to like a stringVariable . . . which is a "nuisance". Richmond. On 21/4/2018 6:35 am, Sannyasin Brahmanathaswami via use-livecode wrote: > What to the simplest way to "sentence case" > > a create a sentence title > > in use toUpper to convert to > > A Create A Sentence Title? > > BR > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Apr 21 09:58:34 2018 From: klaus at major-k.de (Klaus major-k) Date: Sat, 21 Apr 2018 15:58:34 +0200 Subject: Title Case In-Reply-To: <307d5277-501c-f82d-897b-ffeb578d8f27@gmail.com> References: <307d5277-501c-f82d-897b-ffeb578d8f27@gmail.com> Message-ID: <2D85F3B3-7054-4243-A3D0-2552F3F97FA9@major-k.de> Hi Richmond, > Am 21.04.2018 um 15:52 schrieb Richmond Mathewson via use-livecode : > > Just been playing with this and found that this causes problems: > > put "vanish" into rWORD > put char 1 of rWORD into rC > toUpper(rC) > > the toUpper(rC) throws a "bluey" toupper() is a FUNCTION, so you have to do something with its return value! This does NOT throw a "bluey": ... put "vanish" into rWORD put char 1 of rWORD into rC PUT toUpper(rC) ## or ## ANSWER toupper(rC) ... -> V 8-) > toUpper works with a string expressed "as itself" in double quotes, but does not > seem to like a stringVariable. which is a "nuisance". Now who or what is a nuisance? :-D > Richmond. > > On 21/4/2018 6:35 am, Sannyasin Brahmanathaswami via use-livecode wrote: >> What to the simplest way to "sentence case" >> a create a sentence title >> in use toUpper to convert to >> A Create A Sentence Title? >> >> BR Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From richmondmathewson at gmail.com Sat Apr 21 10:10:49 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 21 Apr 2018 17:10:49 +0300 Subject: Title Case In-Reply-To: References: Message-ID: <028badb2-1dba-f42f-5ef7-89b548cc94b4@gmail.com> I have a stack with 2 fields: the first one "fRAW" contains my uncapitalised sentence, the second one, "fCOOKED" is where the capitalised sentences ends up. I have a button called "SORT THINGS OUT" with this script: on mouseUp put empty into fld "fCOOKED" put fld "fRAW" into cRAW put 1 into KOUNT repeat until cRAW is empty put word 1 of cRAW into rWORD put toUpper (char 1 of rWORD) into cC delete char 1 of rWORD put (cC & rWORD) into cWORD delete word 1 of cRAW put cWORD & numToCodePoint(32)after fld "fCOOKED" add 1 to KOUNT end repeat end mouseUp Richmond. On 21/4/2018 6:35 am, Sannyasin Brahmanathaswami via use-livecode wrote: > What to the simplest way to "sentence case" > > a create a sentence title > > in use toUpper to convert to > > A Create A Sentence Title? > > BR > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 21 10:41:29 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 21 Apr 2018 08:41:29 -0600 Subject: Title Case In-Reply-To: References: Message-ID: Not sure what you mean? Also, definitely use one of the Andy versions to "case" your titles. Much more comprehensive solution. The only edge case I can see would be something like a title with a McGary type name, pretty much impossible to account for without looking up every word in a names DB. > > not sure how the eye-candy will to take to > > This Is A Title > > This is an obscure UI case in which I can't get metadata from the data > base, for a given audio that has been downloaded. So these "titles" come > file names in the "My Audio" > > the-guru-chronicles-audiobook_10-Chapter-06.mp3 > > becomes: > > The Guru Chronicles Audiobook, 10 Chapter 06 > > in the UI? it already take times, adding a look up library will "kill" it. > > From richmondmathewson at gmail.com Sat Apr 21 13:27:31 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 21 Apr 2018 20:27:31 +0300 Subject: Title Case In-Reply-To: <028badb2-1dba-f42f-5ef7-89b548cc94b4@gmail.com> References: <028badb2-1dba-f42f-5ef7-89b548cc94b4@gmail.com> Message-ID: <35ffbba9-8062-90f5-f438-4731f8836afd@gmail.com> I have just uploaded an improved stack that filters out a list of reserved words: here: http://forums.livecode.com/viewtopic.php?f=7&t=30927 Best, Richmond. On 21/4/2018 5:10 pm, Richmond Mathewson wrote: > I have a stack with 2 fields: the first one "fRAW" contains my > uncapitalised sentence, > the second one, "fCOOKED" is where the capitalised sentences ends up. > > I have a button called "SORT THINGS OUT" with this script: > > on mouseUp > put empty into fld "fCOOKED" > put fld "fRAW" into cRAW > put 1 into KOUNT > repeat until cRAW is empty > put word 1 of cRAW into rWORD > put toUpper (char 1 of rWORD) into cC > delete char 1 of rWORD > put (cC & rWORD) into cWORD > delete word 1 of cRAW > put cWORD & numToCodePoint(32)after fld "fCOOKED" > add 1 to KOUNT > end repeat > end mouseUp > > Richmond. > > > On 21/4/2018 6:35 am, Sannyasin Brahmanathaswami via use-livecode wrote: >> What to the simplest way to "sentence case" >> >> a create a sentence title >> >> in use toUpper to convert to >> >> A Create A Sentence Title? >> >> BR >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From mail at richard-hillen.de Sun Apr 22 06:04:36 2018 From: mail at richard-hillen.de (Hillen Richard) Date: Sun, 22 Apr 2018 12:04:36 +0200 Subject: Get only Pathname of a dragdropped Object Message-ID: <80C38343-5639-4BFC-B8DD-1D13CDFADCEE@richard-hillen.de> Hello list, I?m looking for a solution to get the path to a Folder by dragdropping it into my (macOS)app without that the whole Folder is copied in the drgdrop-process. Is there a solution? Thank you in advance, Richard.. From bonnmike at gmail.com Sun Apr 22 06:58:19 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 22 Apr 2018 04:58:19 -0600 Subject: Get only Pathname of a dragdropped Object In-Reply-To: <80C38343-5639-4BFC-B8DD-1D13CDFADCEE@richard-hillen.de> References: <80C38343-5639-4BFC-B8DD-1D13CDFADCEE@richard-hillen.de> Message-ID: when you set the dragaction, it doesn't actually DO the action.. All it really does is a) set the prompt to the action you intend to do, and b) send that info back to the source of the dragdrop. (not positive about that second part) So, if you have a button as the destination for your drag drop, in order to allow the drop, you need a dragenter handler on dragenter set the dragaction to copy end dragenter Then you need a dragdrop for the button also. on dragdrop if the dragdata["files"] is not empty then -- this is where you do your processing -- dragdata["files"] contains a line delimited list -- of the files and folders dropped. (but not the files/folders themselves) -- see a complete example below end if end dragdrop ###################### --Create a stack with a button and a field. Add the following script to the button. on dragenter set the dragaction to copy end dragenter on dragdrop if the dragdata["files"] is not empty then -- make sure there is actually a file/folder dragdrop put the dragdata["files"] into tData -- put the file/folder list into a temporary variable -- Go through the list and determine whether each line -- of the data is a folder or if it is a file repeat for each line tLine in tData if there is a folder tLine then put "Folder: " & tLine & cr after tList if there is a file tLine then put "File: " & tLine & cr after tList end repeat delete the last char of tList sort lines of tList -- put the list of dropped files and folders into the field put tList into field 1 pass dragdrop end if end dragdrop On Sun, Apr 22, 2018 at 4:04 AM, Hillen Richard via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello list, > > I?m looking for a solution to get the path to a Folder by dragdropping it > into my (macOS)app without that the whole Folder is copied in the > drgdrop-process. > > > Is there a solution? > > > Thank you in advance, > Richard.. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Sun Apr 22 11:15:02 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Sun, 22 Apr 2018 08:15:02 -0700 Subject: mergBLE usage Message-ID: <132201d3da4c$b1512090$13f361b0$@net> Monte... or anyone else brave enough to contribute :-) (no colored emoji, sorry) ... Is there a way to time out the attempted connection to a BLE device using the mergBLE functions. I can't seem to find a command which doesn't need a peripheral UUID ... like "mergBLEConnectPeripheral pPeripheral" ... which has a corresponding "fail" message: "mergBLEDidFailToConnectPeripheral pPeripheral, pError " ... or can I use this command/message combo in some way to look for a BLE device and if not present (or if NO BLE device is present / active), timeout and fail? I need my LC code to be able to detect whether a BLE device is present and if not "move on" ... right now, my modified code, taken from the example mergBLE script, just waits forever for a peripheral which may never appear. Thanks in advance Doug From brian at milby7.com Sun Apr 22 14:07:39 2018 From: brian at milby7.com (Brian Milby) Date: Sun, 22 Apr 2018 18:07:39 +0000 Subject: mergBLE usage In-Reply-To: <132201d3da4c$b1512090$13f361b0$@net> References: <132201d3da4c$b1512090$13f361b0$@net> Message-ID: I?m guessing you have a card that when you open it will initiate a look for available connections. You have the appropriate handlers in place that work if one is found. Now you want the card to not wait forever though? If that is the case, there are a couple threads on the forum that may help: https://forums.livecode.com/viewtopic.php?f=75&t=30892 https://forums.livecode.com/viewtopic.php?f=66&t=30853 When you initialize the card, you need to start a process that checks for an active connection. If time runs out before a connection is made then call the exception routine. If a connection is made, cancel the check process. Here is an example from the other threads: https://forums.livecode.com/viewtopic.php?f=9&t=30862#p165981 (Not exact since in that case a device had already been discovered and it was waiting on a reply message.) On Sun, Apr 22, 2018 at 10:16 AM Douglas Ruisaard via use-livecode < use-livecode at lists.runrev.com> wrote: > Monte... or anyone else brave enough to contribute :-) (no colored emoji, > sorry) ... > > > > Is there a way to time out the attempted connection to a BLE device using > the mergBLE functions. I can't seem to find a command which doesn't need a > peripheral UUID ... like "mergBLEConnectPeripheral pPeripheral" ... which > has a corresponding "fail" message: "mergBLEDidFailToConnectPeripheral > pPeripheral, pError " ... or can I use this command/message combo in some > way to look for a BLE device and if not present (or if NO BLE device is > present / active), timeout and fail? I need my LC code to be able to > detect whether a BLE device is present and if not "move on" ... right now, > my modified code, taken from the example mergBLE script, just waits forever > for a peripheral which may never appear. > > > > Thanks in advance > > Doug > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Sun Apr 22 15:54:00 2018 From: brian at milby7.com (Brian Milby) Date: Sun, 22 Apr 2018 14:54:00 -0500 Subject: mergBLE usage In-Reply-To: <134701d3da6c$1d374180$57a5c480$@net> References: <132201d3da4c$b1512090$13f361b0$@net> <134701d3da6c$1d374180$57a5c480$@net> Message-ID: Ah... I didn't connect the "Doug" aka dr_mumps with your full name. (And you can probably guess that I'm milbybw). That's what I was saying, you need to write your own timeout. local sTimeoutCounter on openCard -- do your other stuff put 20 into sTimeoutCounter send "timeoutCheck" to me in 100 milliseconds end openCard on timeoutCheck -- using "-1" as the signal that we have found a device if sTimeoutCounter = -1 then exit timeoutCheck end if subtract 1 from sTimeoutCounter if sTimeoutCounter = 0 then answer "Did not find anything in time" -- call your timeout handler else send "timeoutCheck" to me in 100 milliseconds end if end timeoutCheck on mergBLEDidDiscoverPeripheral pPeripheral, pName, pRSSI -- in the code where you identify that you have found your particular device, add this put -1 into sTimeoutCounter end mergBLEDidDiscoverPeripheral From brahma at hindu.org Sun Apr 22 16:15:11 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 22 Apr 2018 20:15:11 +0000 Subject: Get only Pathname of a dragdropped Object In-Reply-To: <80C38343-5639-4BFC-B8DD-1D13CDFADCEE@richard-hillen.de> References: <80C38343-5639-4BFC-B8DD-1D13CDFADCEE@richard-hillen.de> Message-ID: Richard, here is what I use. On the UI I have addition button 1) get files only 2) Go to web page (working a mirror of there we site locally_) This script in a field. on dragEnter set the acceptDrop to true end dragEnter on dragDrop put dragData["files"] into me getList end dragDrop on getList put me into tInput switch case (the hilite of btn "File Names Only") set the itemdel to "/" repeat for each line x in tInput put item -1 of x & cr after tList end repeat delete char -1 of tList break case (the hilite of btn "Absolute Web Paths") put 1 into tURLFlag set the itemdel to "/" repeat for each line x in tInput delete item 1 to 5 of x replace "/public_html/" with "/" in x put "http://" & x & cr after tList end repeat delete char -1 of tList break default put tInput into tList end switch sort tList set the clipboarddata["text"] to tList if tURLFlag=1 then answer "Go to the first web page?" with "No" or "Yes" if it is "Yes" then revGoURL (line 1 of tList) end if end getList I?m looking for a solution to get the path to a Folder by dragdropping it into my (macOS)app without that the whole Folder is copied in the drgdrop-process. From brahma at hindu.org Sun Apr 22 18:48:10 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 22 Apr 2018 22:48:10 +0000 Subject: 8.1.10 rc1 -- Upgrade MissIng Splash Screen Message-ID: <2D5011C5-48D8-47AE-920F-71C30CA24210@hindu.org> Oh joy? back at it went Apple's requirements! Upgraded 8.1.10. rc 1 Mac OS X 10.13.3 xCode 9.3 Now, in a standalone, it can't find the icon, even though I checked all the standalone builder app logos and they are all filled. But the phone, iOS, I get a generic app icon, not my app logo. Is anyone having this problem? I worked on 8.1.9, before I upgraded xCode, and phone and the Mac OS X.. Now it doesn't work in 8.1.9 either? ?? From brahma at hindu.org Sun Apr 22 22:31:53 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 23 Apr 2018 02:31:53 +0000 Subject: Typesetting Fields Message-ID: Until we get scrolling working in a datagrid, (on mobile) and also we want it keep simple, I frequently need to create a runtime list from the database. But the "typesetting tools" in Livecode depend on a field being present. e.g. ------ set the textAlign of line 1 of field "myField" to right -------- Currently you can lockscreen, # populate the fld with all kinds of "tweaking" to look nice unlockscreen But I was looking for a method, similar to the advice "get all you data in a variable and then show in a field" So that the field gets a single pixel update Is there a similar method to this with a field, where it all laid out ahead of time; and "bingo" you popular the field in one go without lockscreen? BR From brian at milby7.com Sun Apr 22 23:22:28 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 23 Apr 2018 03:22:28 +0000 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: <295375b7-e466-14dd-71fd-6ae262aa0e4a@researchware.com> References: <295375b7-e466-14dd-71fd-6ae262aa0e4a@researchware.com> Message-ID: I can see that stack being very useful. If I make any good changes I?ll let you know. I?m thinking that listing behaviors in the index would be useful. On Tue, Apr 3, 2018 at 12:32 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike & Marc, > > You can find the tool at > http://www.researchware.com/livecode/rwScriptReporter141016.livecode > > It is not fancy, nor elegant, but I have found I use it regularly to > create a text file of the script of our 100K+ line LiveCode app and > often have the text file of the scripts open to search and copy lines of > code from it into objects that I am working on in the IDE or simply to > search for a look up any oen of the hundreds of functions and commands > that are internal APIs for our application. > > Anyone is welcome to use this code in any way they like. If someone make > a really slick version of this, please let me know. > > The Table of Contents feature works pretty well. The index still needs > some tweaking to make it more useful that it currently is. > > -- Paul > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brahma at hindu.org Sun Apr 22 23:25:05 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 23 Apr 2018 03:25:05 +0000 Subject: Typesetting Fields In-Reply-To: References: Message-ID: <0773D80F-A1F3-44F2-814B-052EECD17E4F@hindu.org> and I am hoping not to deal bloated htmltext, like using template

LESSON [[tChapterNum]]

[[tSubtitle]]

------------ Until we get scrolling working in a datagrid, (on mobile) and also we want it keep simple, I frequently need to create a runtime list from the database. But the "typesetting tools" in Livecode depend on a field being present. e.g. ------ set the textAlign of line 1 of field "myField" to right -------- Currently you can lockscreen, # populate the fld with all kinds of "tweaking" to look nice unlockscreen But I was looking for a method, similar to the advice "get all you data in a variable and then show in a field" So that the field gets a single pixel update Is there a similar method to this with a field, where it all laid out ahead of time; and "bingo" you popular the field in one go without lockscreen? BR From brian at milby7.com Sun Apr 22 23:27:11 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 23 Apr 2018 03:27:11 +0000 Subject: Typesetting Fields In-Reply-To: <0773D80F-A1F3-44F2-814B-052EECD17E4F@hindu.org> References: <0773D80F-A1F3-44F2-814B-052EECD17E4F@hindu.org> Message-ID: Well, I was just about to suggest that, so I?m not sure what else. But I?m fairly new around here. On Sun, Apr 22, 2018 at 10:25 PM Sannyasin Brahmanathaswami via use-livecode wrote: > and I am hoping not to deal bloated htmltext, like using template > >

LESSON > [[tChapterNum]]

>

[[tSubtitle]]

>

src="51276" char="@">

> > > > ------------ > Until we get scrolling working in a datagrid, (on mobile) and also we > want it keep simple, I frequently need to create a runtime list from the > database. > > But the "typesetting tools" in Livecode depend on a field being > present. e.g. > ------ > set the textAlign of line 1 of field "myField" to right > -------- > Currently you can > > lockscreen, > # populate the fld with all kinds of "tweaking" to look nice > unlockscreen > > But I was looking for a method, similar to the advice > > "get all you data in a variable and then show in a field" > > So that the field gets a single pixel update > > Is there a similar method to this with a field, where it all laid out > ahead of time; and "bingo" you popular the field in one go without > lockscreen? > > BR > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tfabacher at gmail.com Mon Apr 23 07:11:37 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Mon, 23 Apr 2018 07:11:37 -0400 Subject: Digital Pomegranate Message-ID: There are few moments in life that are more important than business and coding, this is one of them. All of Digital Pomegranate is our on the street rejecting the former president who had grabbed power after his term limits and has become a dictator in the former Soviet country. As you would expect, lots of arrests and the hospitals are full. Let's just hope they don't start shooting as have threatened to do. This has been going on for 10 days now and will continue. It is now starting to hit the nightly news cycle, so you will see it in the next few days. The internet has been on and off and now the entire company is on the streets asking for a free election and better government, so we will not be providing support for our new widgets for a few days. https://www.rferl.org/a/armenia-fresh-protests-sarkisian-yerevan-pashinian/29186416.html --Todd Fabacher From kevin at livecode.com Mon Apr 23 07:14:44 2018 From: kevin at livecode.com (Kevin Miller) Date: Mon, 23 Apr 2018 12:14:44 +0100 Subject: Digital Pomegranate In-Reply-To: References: Message-ID: Man that sounds rough. I hope things become ok over there. Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Develop Yourself On 23/04/2018, 12:11, "use-livecode on behalf of Todd Fabacher via use-livecode" wrote: >There are few moments in life that are more important than business and >coding, this is one of them. All of Digital Pomegranate is our on the >street rejecting the former president who had grabbed power after his term >limits and has become a dictator in the former Soviet country. As you >would >expect, lots of arrests and the hospitals are full. Let's just hope they >don't start shooting as have threatened to do. > >This has been going on for 10 days now and will continue. It is now >starting to hit the nightly news cycle, so you will see it in the next few >days. The internet has been on and off and now the entire company is on >the >streets asking for a free election and better government, so we will not >be >providing support for our new widgets for a few days. > >https://www.rferl.org/a/armenia-fresh-protests-sarkisian-yerevan-pashinian >/29186416.html > >--Todd Fabacher >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Mon Apr 23 08:16:39 2018 From: tom at makeshyft.com (Tom Glod) Date: Mon, 23 Apr 2018 08:16:39 -0400 Subject: Digital Pomegranate In-Reply-To: References: Message-ID: all the best to the people of Armenia...may freedom win out. On Mon, Apr 23, 2018 at 7:14 AM, Kevin Miller via use-livecode < use-livecode at lists.runrev.com> wrote: > Man that sounds rough. I hope things become ok over there. > > Kevin > > Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ > LiveCode: Develop Yourself > > > > > On 23/04/2018, 12:11, "use-livecode on behalf of Todd Fabacher via > use-livecode" use-livecode at lists.runrev.com> wrote: > > >There are few moments in life that are more important than business and > >coding, this is one of them. All of Digital Pomegranate is our on the > >street rejecting the former president who had grabbed power after his term > >limits and has become a dictator in the former Soviet country. As you > >would > >expect, lots of arrests and the hospitals are full. Let's just hope they > >don't start shooting as have threatened to do. > > > >This has been going on for 10 days now and will continue. It is now > >starting to hit the nightly news cycle, so you will see it in the next few > >days. The internet has been on and off and now the entire company is on > >the > >streets asking for a free election and better government, so we will not > >be > >providing support for our new widgets for a few days. > > > >https://www.rferl.org/a/armenia-fresh-protests- > sarkisian-yerevan-pashinian > >/29186416.html > > > >--Todd Fabacher > >_______________________________________________ > >use-livecode mailing list > >use-livecode 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 paul at researchware.com Mon Apr 23 10:47:14 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 23 Apr 2018 10:47:14 -0400 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: References: <295375b7-e466-14dd-71fd-6ae262aa0e4a@researchware.com> Message-ID: <06b3599b-627b-c205-d5d3-9002ef5168b1@researchware.com> On 4/22/2018 11:22 PM, Brian Milby wrote: > I can see that stack being very useful. If I make any good changes > I?ll let you know. I?m thinking that listing behaviors in the index > would be useful. And there in lies one of the main issues with home made tools (like my script reporter) in that people make them for only what they need and I rarely find myself using behaviors ;-) Some day though, I will probably have cause to really make use of behaviors and then find myself adding information on which object have an associated behavior. Actually, if I remember, I;'ll do it the next time I am modifying the stack since that is actually pretty easy to add: if the behavior of is not empty then put the behavior of ... (into the report) -- Paul From waprothero at gmail.com Mon Apr 23 11:10:18 2018 From: waprothero at gmail.com (William Prothero) Date: Mon, 23 Apr 2018 08:10:18 -0700 Subject: Digital Pomegranate In-Reply-To: References: Message-ID: Best wishes to you and your staff. I hope you and the citizens of Armenia succeed. Bill William A. Prothero http://earthlearningsolutions.org > On Apr 23, 2018, at 4:11 AM, Todd Fabacher via use-livecode wrote: > > There are few moments in life that are more important than business and > coding, this is one of them. All of Digital Pomegranate is our on the > street rejecting the former president who had grabbed power after his term > limits and has become a dictator in the former Soviet country. As you would > expect, lots of arrests and the hospitals are full. Let's just hope they > don't start shooting as have threatened to do. > > This has been going on for 10 days now and will continue. It is now > starting to hit the nightly news cycle, so you will see it in the next few > days. The internet has been on and off and now the entire company is on the > streets asking for a free election and better government, so we will not be > providing support for our new widgets for a few days. > > https://www.rferl.org/a/armenia-fresh-protests-sarkisian-yerevan-pashinian/29186416.html > > --Todd Fabacher > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 23 11:11:21 2018 From: dunbarx at aol.com (dunbarx) Date: Mon, 23 Apr 2018 08:11:21 -0700 (MST) Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: References: Message-ID: <1524496281576-0.post@n4.nabble.com> Hi. My most useful gadget is a very simple plug-in. It toggles the Browse and Pointer tools when right-clicking my mouse: on rawKeyUp tKey if (tKey = 65473 and the tool = "browse tool") then choose "pointer tool" else choose "browse tool" end rawKeyUp Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From waprothero at gmail.com Mon Apr 23 11:12:07 2018 From: waprothero at gmail.com (William Prothero) Date: Mon, 23 Apr 2018 08:12:07 -0700 Subject: Digital Pomegranate In-Reply-To: References: Message-ID: <9F56ECFA-444F-482D-8131-CE81DED71F2B@gmail.com> I see from the ?Radio Free Europe? news that Sarikisian resigned. Great news! Congratulations! Bill > On Apr 23, 2018, at 8:10 AM, William Prothero via use-livecode wrote: > > Best wishes to you and your staff. I hope you and the citizens of Armenia succeed. > Bill > William A. Prothero > http://earthlearningsolutions.org > >> On Apr 23, 2018, at 4:11 AM, Todd Fabacher via use-livecode wrote: >> >> There are few moments in life that are more important than business and >> coding, this is one of them. All of Digital Pomegranate is our on the >> street rejecting the former president who had grabbed power after his term >> limits and has become a dictator in the former Soviet country. As you would >> expect, lots of arrests and the hospitals are full. Let's just hope they >> don't start shooting as have threatened to do. >> >> This has been going on for 10 days now and will continue. It is now >> starting to hit the nightly news cycle, so you will see it in the next few >> days. The internet has been on and off and now the entire company is on the >> streets asking for a free election and better government, so we will not be >> providing support for our new widgets for a few days. >> >> https://www.rferl.org/a/armenia-fresh-protests-sarkisian-yerevan-pashinian/29186416.html >> >> --Todd Fabacher >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Apr 23 11:20:20 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 23 Apr 2018 15:20:20 +0000 Subject: Title Case In-Reply-To: References: Message-ID: What I do is I have a "force" flag where you can specify whether or not you want to force olny the first letter to be capitalized and the rest lowercase, or else capitilize the first letter of each word and leave the rest as it is. Therefore titleCase("mcReary", false) will produce "McReary". But my function is a validation for user input, not for converting lists of titles to proper case. I suppose it wouldn't be hard to compile every known compound name prefix (Mc, Mac, O' etc) Bob S > On Apr 21, 2018, at 07:41 , Mike Bonner via use-livecode wrote: > > Not sure what you mean? > Also, definitely use one of the Andy versions to "case" your titles. Much > more comprehensive solution. The only edge case I can see would be > something like a title with a McGary type name, pretty much impossible to > account for without looking up every word in a names DB. From mail at richard-hillen.de Mon Apr 23 11:23:41 2018 From: mail at richard-hillen.de (Hillen Richard) Date: Mon, 23 Apr 2018 17:23:41 +0200 Subject: Get only Pathname of a dragdropped Object In-Reply-To: References: Message-ID: <2F0CC4F5-79FB-47E8-9398-91807C5F66D8@richard-hillen.de> Thank you all for your help! Richard. From ahsoftware at sonic.net Mon Apr 23 11:28:56 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 23 Apr 2018 08:28:56 -0700 Subject: Digital Pomegranate In-Reply-To: <9F56ECFA-444F-482D-8131-CE81DED71F2B@gmail.com> References: <9F56ECFA-444F-482D-8131-CE81DED71F2B@gmail.com> Message-ID: <36455046-ac40-a94c-6169-0bcb88facd17@sonic.net> On 04/23/2018 08:12 AM, William Prothero via use-livecode wrote: > I see from the ?Radio Free Europe? news that Sarikisian resigned. Great news! Congratulations! And I think equally important is that Sarkisian acknowledged that his reason for resigning that the movement in the street is against him, not that he was "going to spend more time with his family". This is indeed great news. Next step, get Turkey to apologize for 1915. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Apr 23 11:32:55 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 23 Apr 2018 15:32:55 +0000 Subject: Get only Pathname of a dragdropped Object In-Reply-To: References: <80C38343-5639-4BFC-B8DD-1D13CDFADCEE@richard-hillen.de> Message-ID: Of course, this would not be necessary if the folder names ended with a slash. Unfortunately, answer folder returns a path without a trailing slash, so you have to touch the file system for every item in the list. For a long list I imagine that is a lot of overhead. An alternative might be to assume all folders until you process the list, then process as folders inside a try catch statement and process as a file when an error or other condition is encountered. Bob S > On Apr 22, 2018, at 03:58 , Mike Bonner via use-livecode wrote: > > -- Go through the list and determine whether each line > -- of the data is a folder or if it is a file From rdimola at evergreeninfo.net Mon Apr 23 11:37:09 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 23 Apr 2018 11:37:09 -0400 Subject: Digital Pomegranate In-Reply-To: <36455046-ac40-a94c-6169-0bcb88facd17@sonic.net> References: <9F56ECFA-444F-482D-8131-CE81DED71F2B@gmail.com> <36455046-ac40-a94c-6169-0bcb88facd17@sonic.net> Message-ID: <001601d3db18$f470fd60$dd52f820$@net> +1 How is this not above the fold? Hang in there brother... Were praying for you, your family, friends and country. 1915... Tragedy 1.5 mil 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 Wieder via use-livecode Sent: Monday, April 23, 2018 11:29 AM To: William Prothero via use-livecode Cc: Mark Wieder Subject: Re: Digital Pomegranate On 04/23/2018 08:12 AM, William Prothero via use-livecode wrote: > I see from the ?Radio Free Europe? news that Sarikisian resigned. Great news! Congratulations! And I think equally important is that Sarkisian acknowledged that his reason for resigning that the movement in the street is against him, not that he was "going to spend more time with his family". This is indeed great news. Next step, get Turkey to apologize for 1915. -- 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 bobsneidar at iotecdigital.com Mon Apr 23 11:48:42 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 23 Apr 2018 15:48:42 +0000 Subject: Digital Pomegranate In-Reply-To: <36455046-ac40-a94c-6169-0bcb88facd17@sonic.net> References: <9F56ECFA-444F-482D-8131-CE81DED71F2B@gmail.com> <36455046-ac40-a94c-6169-0bcb88facd17@sonic.net> Message-ID: <08487ED5-DEC4-4616-80A9-FC63597299EF@iotecdigital.com> Not to stir things up, but Turkey in 1915 was run by people who are no longer alive. To expect their descendants to apologize for something then never did would have no meaning. It would be like asking me to aoplogize for injustices done during the French revolution. Bob S > On Apr 23, 2018, at 08:28 , Mark Wieder via use-livecode wrote: > >> I see from the ?Radio Free Europe? news that Sarikisian resigned. Great news! Congratulations! > > And I think equally important is that Sarkisian acknowledged that his reason for resigning that the movement in the street is against him, not that he was "going to spend more time with his family". This is indeed great news. Next step, get Turkey to apologize for 1915. > > -- > Mark Wieder > ahsoftware at gmail.com From mark at canelasoftware.com Mon Apr 23 11:53:58 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Mon, 23 Apr 2018 08:53:58 -0700 Subject: 8.1.10 rc1 -- Upgrade MissIng Splash Screen In-Reply-To: <2D5011C5-48D8-47AE-920F-71C30CA24210@hindu.org> References: <2D5011C5-48D8-47AE-920F-71C30CA24210@hindu.org> Message-ID: > On Apr 22, 2018, at 3:48 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > Oh joy? back at it went Apple's requirements! > > Upgraded > > 8.1.10. rc 1 > Mac OS X 10.13.3 > xCode 9.3 > > Now, in a standalone, it can't find the icon, even though I checked all the standalone builder app logos and they are all filled. But the phone, iOS, I get a generic app icon, not my app logo. > > Is anyone having this problem? I worked on 8.1.9, before I upgraded xCode, and phone and the Mac OS X.. > > Now it doesn't work in 8.1.9 either? https://quality.livecode.com/show_bug.cgi?id=21225 Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com From heather.williams11 at btinternet.com Mon Apr 23 11:59:48 2018 From: heather.williams11 at btinternet.com (Heather Laine) Date: Mon, 23 Apr 2018 16:59:48 +0100 Subject: Digital Pomegranate In-Reply-To: <08487ED5-DEC4-4616-80A9-FC63597299EF@iotecdigital.com> References: <9F56ECFA-444F-482D-8131-CE81DED71F2B@gmail.com> <36455046-ac40-a94c-6169-0bcb88facd17@sonic.net> <08487ED5-DEC4-4616-80A9-FC63597299EF@iotecdigital.com> Message-ID: <62A5CBFA-6068-47C2-BDC1-EC7B99B2B033@btinternet.com> I'm delighted to hear of the outcome, and especially that all our friends at Digital Pomegranate are safe. I think this is probably the moment to intervene and remind everyone of the "no politics" list rule... before things slip away from us... Best Regards and Peace to all :) Heather > On 23 Apr 2018, at 16:48, Bob Sneidar via use-livecode wrote: > > Not to stir things up, but Turkey in 1915 was run by people who are no longer alive. To expect their descendants to apologize for something then never did would have no meaning. It would be like asking me to aoplogize for injustices done during the French revolution. > > Bob S > > >> On Apr 23, 2018, at 08:28 , Mark Wieder via use-livecode wrote: >> >>> I see from the ?Radio Free Europe? news that Sarikisian resigned. Great news! Congratulations! >> >> And I think equally important is that Sarkisian acknowledged that his reason for resigning that the movement in the street is against him, not that he was "going to spend more time with his family". This is indeed great news. Next step, get Turkey to apologize for 1915. >> >> -- >> 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 iowahengst at mac.com Mon Apr 23 12:19:32 2018 From: iowahengst at mac.com (Randy Hengst) Date: Mon, 23 Apr 2018 11:19:32 -0500 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: <1524496281576-0.post@n4.nabble.com> References: <1524496281576-0.post@n4.nabble.com> Message-ID: Hi Craig, That does sound handy. But for me, key 65473 references F4 rather than the right mouse button. Did I read your message correctly? When I have the the Pointer Tool selected and right-click the mouse, I get an LC contextual menu. I just put your handler in the stack script. Will that make a difference compared to using it as a plug-in? MacOS 10.12.6 LC 8.1.8 randy hengst ----- > On Apr 23, 2018, at 10:11 AM, dunbarx via use-livecode wrote: > > Hi. > > My most useful gadget is a very simple plug-in. It toggles the Browse and > Pointer tools when right-clicking my mouse: > > > on rawKeyUp tKey > if (tKey = 65473 and the tool = "browse tool") then choose "pointer tool" > else choose "browse tool" > end rawKeyUp > > Craig Newman > > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 23 13:04:18 2018 From: dunbarx at aol.com (dunbarx) Date: Mon, 23 Apr 2018 10:04:18 -0700 (MST) Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: References: <1524496281576-0.post@n4.nabble.com> Message-ID: <1524503058416-0.post@n4.nabble.com> Randy. There must be something different in our setups. All I did was write a rawkeyUp handler to return the value of my mouse's right-click. Either you get a different value with that action, or something in your machine is intercepting that "message" before LC does. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From dave at applicationinsight.com Mon Apr 23 13:16:27 2018 From: dave at applicationinsight.com (Dave Kilroy) Date: Mon, 23 Apr 2018 10:16:27 -0700 (MST) Subject: Digital Pomegranate In-Reply-To: <62A5CBFA-6068-47C2-BDC1-EC7B99B2B033@btinternet.com> References: <9F56ECFA-444F-482D-8131-CE81DED71F2B@gmail.com> <36455046-ac40-a94c-6169-0bcb88facd17@sonic.net> <08487ED5-DEC4-4616-80A9-FC63597299EF@iotecdigital.com> <62A5CBFA-6068-47C2-BDC1-EC7B99B2B033@btinternet.com> Message-ID: <1524503787136-0.post@n4.nabble.com> Great news! :) ----- "The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time." Peter M. Brigham -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From brahma at hindu.org Mon Apr 23 13:27:10 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 23 Apr 2018 17:27:10 +0000 Subject: Typesetting Fields In-Reply-To: References: <0773D80F-A1F3-44F2-814B-052EECD17E4F@hindu.org> Message-ID: <594CD27B-4BFB-4BD8-B769-31AC9BF2B555@hindu.org> I decided to hide fid; fill the field with "plain text" ; typeset the field; show fld I don't see any processing time in the phone (some list are 200+ line longs); happens in under 10 milliseconds ?[other code] repeat for each line x in tKeys put sCurrentPlayListA["audioFiles"] [x]["Title"] after tTitles if sCurrentPlayListA["audioFiles"] [x]["media_type"] ="audio/song" then put cr &sCurrentPlayListA["audioFiles"] [x]["artists"] after tTitles else put cr after tTitles end if put cr after tTitles end repeat end switch put playlist_GetCurrent() into fld "title-label" of card "listen-browse" go to card "listen-browse" hide fld "audioList" put tTitles into fld "audioList" typesetAudioList show fld "audioList" if the formattedHeight fld "audioList" > the height of fld "AudioList" then send "CreateScroller audioList" to fld "audioList" of card "listen-browse" end if put sTargetPlayList into pData["audio_playlist"] tracking_RecordActivity "Listen", "navigation/playlist", pData end playlist_Instantiate command typeSetAudioList put 0 into tX repeat with x =1 to the number lines in fld "audioList" add 1 to tX If (tX mod 2) = 0 then set the leftIndent of line x of fld "audioList" to 10 if line x of fld "audioList" <> empty then set the spaceBelow of line x of fld "audioList" to 15 end if set the textSize of line x of fld "audioList" to 13 else set the textSize of line x of fld "audioList" to 15 end if end repeat end typeSetAudioList From: Brian Milby Date: Sunday, April 22, 2018 at 5:27 PM To: How LiveCode Cc: Brahma Nathaswami Subject: Re: Typesetting Fields Well, I was just about to suggest that, so I?m not sure what else. But I?m fairly new around here. On Sun, Apr 22, 2018 at 10:25 PM Sannyasin Brahmanathaswami via use-livecode wrote: and I am hoping not to deal bloated htmltext, like using template

LESSON [[tChapterNum]]

[[tSubtitle]]

From jacque at hyperactivesw.com Mon Apr 23 14:57:49 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 23 Apr 2018 13:57:49 -0500 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: <1524503058416-0.post@n4.nabble.com> References: <1524496281576-0.post@n4.nabble.com> <1524503058416-0.post@n4.nabble.com> Message-ID: <4fe5900a-2cbd-fba8-7c23-c152f96602f1@hyperactivesw.com> On 4/23/18 12:04 PM, dunbarx via use-livecode wrote: > There must be something different in our setups. All I did was write a > rawkeyUp handler to return the value of my mouse's right-click. Either you > get a different value with that action, or something in your machine is > intercepting that "message" before LC does. The right-click contextual menu has been in LC forever. It's always available when using the edit tool, for the browse tool you need to add some supporting keyboard presses (Cmd-control-shift.) The contextual menu has lots of handy items, I particularly like "Paste into group" which is a nice time-saver. I use Control-tab to toggle between edit and browse tools. That combo was recently implemented in the script editor, but that's fine, it still works when a stack is frontmost. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mark at canelasoftware.com Mon Apr 23 19:49:50 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Mon, 23 Apr 2018 16:49:50 -0700 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: References: <295375b7-e466-14dd-71fd-6ae262aa0e4a@researchware.com> Message-ID: > I'm still thinking about sessions for LCG. One of the suggestions I had > seen was an intro on tool x. How about a tools roundup? Names and URL's > for your favorite LC tools go in this thread, please. More is better so I > don't leave anyone out. Over the years we have made some tools that we find useful. It comes as a toolbar that sits under the LC tools. http://canelasoftware.com/pub/canela/DEV_TOOLS.rev.zip Simply place this in your plugins folder for easy access. Or pull out the parts you like and add them to your own tools. DEV TOOLS Normally used with Toolbar Icons turned off Dev Tools will place itself under the LC toolbar GNU LESSER GENERAL PUBLIC LICENSE (LGPL3), full license in stack 'dev tools' UNDER HANDLER 'GNULICENSE' LIVECODE - Clear message box history - Upper case everything in clipboard - Toggle 'hidePalette' property - Support for script editor dark themes. You manually set the dark colors in script editor preferences. Select 'default' for colorization. This changes the font colors in script editor to work with dark backgrounds. Supports the differences between LC 8/9 in terms of how the handler list is generated. - Various keyboard shortcuts for: - toggling pointer/browse tool (ctrl - tab) - hide/show handler list in script editor (ctrl - +) - hide/show lower pane in script editor (ctrl - *) - hide/show menubar in Mac (option - spacebar) - hide/show Dev Tools (option/alt - z) - hide/show LC project browser (cmd - e) TIMING - Easily time code for benchmarking CODE LINTER/CLEANER - Check code for variable rules - Cleans spacing between handlers - With 'script compilation mode' engaged, find variables that could not be cleaned or auto declared ORPHANED PUTS - Globally searches all code and generates a list of lines with orphaned puts - Click on list to be taken to statements found - Check one script in the clipboard and add '& LF after the message box' when you want to use puts as a log SOCKETS - List all open sockets - Optionally close all sockets CONTROL DETAILS - Hover over a control and get the full path of the control in 'Dev Tools' - Optionally: hold down the option key while hovering a have the full path of control placed in clipboard - Other useful details about the control are listed as well like: id, layer, lock, autoHilite, width, height, top/left/right/bottom OTHER THINGS - If you poke around, you will find other nuggets in there that may/not be useful to you. Those listed above are used regularly. From dougr at telus.net Mon Apr 23 20:09:46 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Mon, 23 Apr 2018 17:09:46 -0700 Subject: mergBLE usage In-Reply-To: AYGafV5w52OMyAYGefOB90 References: AYGafV5w52OMyAYGefOB90 Message-ID: <13ba01d3db60$8f1ecc60$ad5c6520$@net> Actually... I didn't make that association... so thanks for your help in my previous exploits in mergBLE ... *AND*, of course (as you probably guessed), your offering this time was spot on!.. I'm still getting a handle on how LC handles things like background processing. I'm used to having explicit commands to send code off to run in the background. So the "timer" code runs in the "background" while the BLE commands and functions search for a connection. Cool! I'll get my head wrapped around this eventually... As to "dr_mumps", those are my initials "dr" and the MUMPS environment (used extensively in the VA hospitals lab systems) is my true expertise Cheers and thanks again! Doug Douglas Ruisaard Trilogy Software (250) 573-3935 > > Ah... I didn't connect the "Doug" aka dr_mumps with your full name. (And you can probably guess that > I'm milbybw). > > That's what I was saying, you need to write your own timeout. > > local sTimeoutCounter > > on openCard > -- do your other stuff > put 20 into sTimeoutCounter > send "timeoutCheck" to me in 100 milliseconds end openCard > > on timeoutCheck > -- using "-1" as the signal that we have found a device > if sTimeoutCounter = -1 then > exit timeoutCheck > end if > > subtract 1 from sTimeoutCounter > if sTimeoutCounter = 0 then > answer "Did not find anything in time" > -- call your timeout handler > else > send "timeoutCheck" to me in 100 milliseconds > end if > end timeoutCheck > > on mergBLEDidDiscoverPeripheral pPeripheral, pName, pRSSI > -- in the code where you identify that you have found your particular device, add this > put -1 into sTimeoutCounter > end mergBLEDidDiscoverPeripheral > > From ambassador at fourthworld.com Tue Apr 24 03:48:49 2018 From: ambassador at fourthworld.com (ambassador at fourthworld.com) Date: Tue, 24 Apr 2018 00:48:49 -0700 Subject: Typesetting Fields Message-ID: You may find the styledText array helpful. Richard GaskinFourth World Systems From dunbarx at aol.com Tue Apr 24 08:51:02 2018 From: dunbarx at aol.com (dunbarx) Date: Tue, 24 Apr 2018 05:51:02 -0700 (MST) Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: <4fe5900a-2cbd-fba8-7c23-c152f96602f1@hyperactivesw.com> References: <1524496281576-0.post@n4.nabble.com> <1524503058416-0.post@n4.nabble.com> <4fe5900a-2cbd-fba8-7c23-c152f96602f1@hyperactivesw.com> Message-ID: <1524574262885-0.post@n4.nabble.com> I wrote: "Randy. There must be something different in our setups. All I did was write a rawkeyUp handler to return the value of my mouse's right-click. Either you get a different value with that action, or something in your machine is intercepting that "message" before LC does. This was a while ago, so I had forgotten. (No "oops" emoticon in the use-list) I have a configurable mouse, and set the right-click to simulate "F4". Jacque uses, I think, something like "Cmd-Tab", which is similar to how we used to toggle tools in HC. I did something like that for a while, until I changed to using my mouse. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From beugelaar at solidit.nl Tue Apr 24 09:49:50 2018 From: beugelaar at solidit.nl (Erik Beugelaar) Date: Tue, 24 Apr 2018 15:49:50 +0200 Subject: Android assistance / information? In-Reply-To: <122e01d3d7f7$73aedd10$5b0c9730$@net> References: <122e01d3d7f7$73aedd10$5b0c9730$@net> Message-ID: <3A463DE3-9F5F-4FBF-8184-B60174BEB0AE@solidit.nl> Because LiveCode 9 now supports Java FFI, maybe you can find the source code in Java how to do this and then implement it? Just an idea. Goodluck, Erik On 19/04/18 18:00, "use-livecode on behalf of Douglas Ruisaard via use-livecode" wrote: Anyone is this community as versed in Android as Monte Goulding is in iOS? One of the beauties of LC is its cross-platform ability. The app I've written in iOS ports just fine to Android .. at least the user-interactive and data processing parts do. .. without changing one line of code (and it's a complex app) ... how slick is that??? Obviously, there is a lack of an equivalent Android BLE function for communicating to my Arduino which I have working splendidly in iOS. So... I'm looking for information / assistance on how to implement a "hardwired" connection from an Arduino to an Android device (currently have an older- Galaxy Tab 4 running v 5.1.1) ... but if I need a newer model, newer OS, that's do-able. I'm hoping (?against hope?) that all I need is the "device name" for the USB port on the Android and the rest I can handle using the "open device" serial handles in LC. I understand that one reason that LC may have and still is avoiding the Android BLE topic is due to the varieties and variations within the numerous version of the Android OS's. For me, I just need to be able to demonstrate a mobile device (iOS or Android) being able to communicate with an Arduino app via a USB hardwire connection. I REALLY don't care which OS it is and if I have to use iOS for BLE and Android for USB... that's just fine! Any help would be greatly appreciated!! Cheers Doug _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Tue Apr 24 10:33:36 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 24 Apr 2018 14:33:36 +0000 Subject: Typesetting Fields In-Reply-To: References: Message-ID: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> richard wrote You may find the styledText array helpful. ===== Wow that looks missing, though the dictionary could help with examples?I gonna need an expresso and to some time to figure out how that works! set the styledText of field to styledArray Maybe if someone had some example of what to put into styledArray I got lost when started talking about "the other" arrays: Are these arrays inside the styledArray text? =========== 1) It is a fully faithful representation (set the styledText of field to the styledText of field results in no change to the field). 2) It is array-based. The styledText property returns a numerically-indexed array of paragraphs, each index representing each paragraph in the field in order:tStyledTextArray[1] = ... tStyledTextArray[] = Each paragraph array has up to two keys: tParagraphArray["style"] = tParagraphArray["runs"] = From brahma at hindu.org Tue Apr 24 10:38:41 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 24 Apr 2018 14:38:41 +0000 Subject: Typesetting Fields In-Reply-To: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> References: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> Message-ID: <529E943A-6F17-45FD-9A4B-B1E9E575791A@hindu.org> I wonder if the dictionary need helps. Are there paragraph marks missing this example? ============= For example, take the following content consisting of two paragraphs: Centered Hello World Left-aligned Hello unicodeString This would transpire as the following array: 1 = style = { textAlign = center } runs = 1 = { text = Centered } 2 = style = { textStyle = bold } text = Hello 3 = { text = World } 2 = runs = 1 = { text = Left-aligned } 2 = style = { textColor = 255,0,0 } text = Hello 3 = { unicodeText = unicodeString } [ For brevity, single element arrays are represented using { ... } notation ] From dougr at telus.net Tue Apr 24 10:40:05 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Tue, 24 Apr 2018 07:40:05 -0700 Subject: Android assistance / information? Message-ID: <13fb01d3dbda$245e0010$6d1a0030$@net> Anyone is this community as versed in Android as Monte Goulding is in iOS?? One of the beauties of LC is its cross-platform ability.? The app I've written in iOS ports just fine to Android .. at least the user-interactive and data processing parts do.? .. without changing one line of code (and it's a complex app) ... how slick is that??? Obviously, there is a lack of an equivalent Android BLE function for communicating to my Arduino which I have working splendidly in iOS.? So... I'm looking for information / assistance on how to implement a "hardwired" connection from an Arduino to an Android device? (currently have an older- Galaxy Tab 4 running v 5.1.1) ... but if I need a newer model, newer OS, that's do-able. I'm hoping (?against hope?) that all I need is the "device name" for the USB port on the Android and the rest I can handle using the "open device" serial handles in LC.? I understand that one reason that LC may have and still is avoiding the Android BLE topic is due to the varieties and variations within the numerous version of the Android OS's.? For me, I just need to be able to demonstrate a mobile device (iOS or Android) being able to communicate with an Arduino app via a USB hardwire connection.? I REALLY don't care which OS it is and if I have to use iOS for BLE and Android for USB... that's just fine! Any help would be greatly appreciated!! Cheers Doug From iowahengst at mac.com Tue Apr 24 11:38:26 2018 From: iowahengst at mac.com (Randy Hengst) Date: Tue, 24 Apr 2018 10:38:26 -0500 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: <1524574262885-0.post@n4.nabble.com> References: <1524496281576-0.post@n4.nabble.com> <1524503058416-0.post@n4.nabble.com> <4fe5900a-2cbd-fba8-7c23-c152f96602f1@hyperactivesw.com> <1524574262885-0.post@n4.nabble.com> Message-ID: <971E12CC-8626-49FA-8844-733467F0C7AA@mac.com> That makes sense. Thanks for t hat clarification, Craig. randy > On Apr 24, 2018, at 7:51 AM, dunbarx via use-livecode wrote: > > I wrote: > > "Randy. > > There must be something different in our setups. All I did was write a > rawkeyUp handler to return the value of my mouse's right-click. Either you > get a different value with that action, or something in your machine is > intercepting that "message" before LC does. > > This was a while ago, so I had forgotten. (No "oops" emoticon in the > use-list) I have a configurable mouse, and set the right-click to simulate > "F4". Jacque uses, I think, something like "Cmd-Tab", which is similar to > how we used to toggle tools in HC. I did something like that for a while, > until I changed to using my mouse. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Apr 24 11:47:50 2018 From: klaus at major-k.de (Klaus major-k) Date: Tue, 24 Apr 2018 17:47:50 +0200 Subject: macOS "Recovered files" Message-ID: <74657C07-31E6-4183-BED8-584908020304@major-k.de> Hi friends, since upgrading to macOS 10.13.4 and/or Livecode 9 Stable (not sure really) I ALWAYS find some (LC) "Recovered files" after a restart of my Mac in my trash. There are (every time): 1. livecode-emscripten-builds -> Empty folder 2. com.livecode.dummy.lci 3. manifest.xml 4. module.lcm 5. tmp.1029.iLrbYMLs -> a temp file with content: module com.livecode.dummy end module Is this anything I need to worry about? Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From bobsneidar at iotecdigital.com Tue Apr 24 12:00:02 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 Apr 2018 16:00:02 +0000 Subject: Typesetting Fields In-Reply-To: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> References: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> Message-ID: <4241E03C-4C62-42DD-9354-92B0CE11DE7E@iotecdigital.com> What I would do is set some text in a field to some different styles, then get the styledText of the field and examine the array. Bob S > On Apr 24, 2018, at 07:33 , Sannyasin Brahmanathaswami via use-livecode wrote: > > Wow that looks missing, though the dictionary could help with examples?I gonna need an expresso and to some time to figure out how that works! > > set the styledText of field to styledArray > > Maybe if someone had some example of what to put into > > styledArray > > I got lost when started talking about "the other" arrays: > > Are these arrays inside the styledArray text? From matthias_livecode_150811 at m-r-d.de Tue Apr 24 12:58:17 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 24 Apr 2018 18:58:17 +0200 Subject: macOS "Recovered files" In-Reply-To: <74657C07-31E6-4183-BED8-584908020304@major-k.de> References: <74657C07-31E6-4183-BED8-584908020304@major-k.de> Message-ID: Hi Klaus, i?ve checked here and see the same folders Recovered files(#1??10) with the same content you are describing. In my case there was also a .csv file in that folders. The .csv was created with LC and was stored in temp folder originally. I?ve then checked the temp folder and see also those files, but not the ?Recovered files..? folders. At https://support.apple.com/kb/PH25506?viewlocale=en_US&locale=en_US there is a description about recovered files/folders in trash. According to Apples description this happens when an app quits unexpectedly and is not able to delete the temp files before it quits. After a restart of the Mac these files are appearing in trash. I?ve tried here now several times and reproduce it with the following steps 1. Start LC 2. Quit LC 3. Restart Mac 4. A new ?Recovered Files #?? folder is in trash. So it seems, LC 9 GM does not delete the temp files correctly before quitting or maybe is quitting to fast or whatever and Mac OS X recovers those files after a restart. That seems to be a bug, doesn?t it? Matthias > Am 24.04.2018 um 17:47 schrieb Klaus major-k via use-livecode : > > Hi friends, > > since upgrading to macOS 10.13.4 and/or Livecode 9 Stable (not sure really) > I ALWAYS find some (LC) "Recovered files" after a restart of my Mac in my trash. > > There are (every time): > 1. livecode-emscripten-builds -> Empty folder > > 2. com.livecode.dummy.lci > 3. manifest.xml > 4. module.lcm > > 5. tmp.1029.iLrbYMLs -> a temp file with content: > module com.livecode.dummy > end module > > Is this anything I need to worry about? > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Tue Apr 24 13:21:34 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 24 Apr 2018 10:21:34 -0700 Subject: macOS "Recovered files" In-Reply-To: References: <74657C07-31E6-4183-BED8-584908020304@major-k.de> Message-ID: <87dc9b20-e4ea-6c87-68d2-f98e661ff021@sonic.net> On 04/24/2018 09:58 AM, Matthias Rebbe via use-livecode wrote: > Hi Klaus, > > i?ve checked here and see the same folders Recovered files(#1??10) with the same content you are describing. > In my case there was also a .csv file in that folders. The .csv was created with LC and was stored in temp folder originally. > > I?ve then checked the temp folder and see also those files, but not the ?Recovered files..? folders. On linux they're in /tmp, which seems a reasonable place, although I'm pretty sure I never signed in as "dummy". -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Tue Apr 24 13:53:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 Apr 2018 17:53:33 +0000 Subject: macOS "Recovered files" In-Reply-To: <87dc9b20-e4ea-6c87-68d2-f98e661ff021@sonic.net> References: <74657C07-31E6-4183-BED8-584908020304@major-k.de> <87dc9b20-e4ea-6c87-68d2-f98e661ff021@sonic.net> Message-ID: <2D53A9FA-DBC3-4502-A279-82A6FBF0D6A5@iotecdigital.com> > On Apr 24, 2018, at 10:21 , Mark Wieder via use-livecode wrote: > > On linux they're in /tmp, which seems a reasonable place, although I'm pretty sure I never signed in as "dummy". > > -- > Mark Wieder > ahsoftware at gmail.com That might be the new Artificial Intelligence built into the latest operating systems. To them we meat based life forms are complete idiots, and our (soon to be) AI overlords are not shy about expressing themselves. So far, all civility filters just disable themselves. Bob S From ambassador at fourthworld.com Tue Apr 24 15:23:09 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 24 Apr 2018 12:23:09 -0700 Subject: macOS "Recovered files" In-Reply-To: References: Message-ID: <4f4a3bd8-efd5-5c0f-4b19-1e1718c79ab0@fourthworld.com> Matthias Rebbe wrote: > At https://support.apple.com/kb/PH25506?viewlocale=en_US&locale=en_US > > there is a description about recovered files/folders in trash. > According to Apples description this happens when an app quits > unexpectedly and is not able to delete the temp files before it > quits. After a restart of the Mac these files are appearing in trash. ... > So it seems, LC 9 GM does not delete the temp files correctly before > quitting or maybe is quitting to fast or whatever and Mac OS X > recovers those files after a restart. > > That seems to be a bug, doesn?t it? I would say so. "Recovery" implies an error condition, and the spec explicitly suggests an app's responsibility to clean up its tmp files. If you file a bug report please note the URL or bug ID here so interested readers can follow along. Thanks. -- 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 brahma at hindu.org Tue Apr 24 15:29:40 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 24 Apr 2018 19:29:40 +0000 Subject: Typesetting Fields In-Reply-To: <4241E03C-4C62-42DD-9354-92B0CE11DE7E@iotecdigital.com> References: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> <4241E03C-4C62-42DD-9354-92B0CE11DE7E@iotecdigital.com> Message-ID: <618C26C4-2FF5-46A0-8E26-5024C306681B@hindu.org> What I would do is set some text in a field to some different styles, then get the styledText of the field and examine the array. Bob S That is also my plan. From ambassador at fourthworld.com Tue Apr 24 15:19:39 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 24 Apr 2018 12:19:39 -0700 Subject: Typesetting Fields In-Reply-To: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> References: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> Message-ID: <3da179fb-8a06-c944-9b53-126fb60d86cb@fourthworld.com> Sannyasin Brahmanathaswami wrote: > richard wrote > > You may find the styledText array helpful. > > ===== > > Wow that looks missing, though the dictionary could help with > examples?I gonna need an expresso and to some time to figure out > how that works! > > set the styledText of field to styledArray > > Maybe if someone had some example of what to put into > > styledArray > > I got lost when started talking about "the other" arrays: > > Are these arrays inside the styledArray text? They are. A great explanation of those (and all the new stuff added in The Great Field Enhancement Work of Version 5.5) are here, starting on p12 (discussion specific to the styledText property is on p15): https://downloads.livecode.com/livecode/5_5_1/LiveCodeNotes-5_5_1.pdf A couple years ago I had a discussion with Peter Brett about how that info critical to making good use of the new field properties could be moved into the User Guide. I had the impression that was underway at the time, but I just checked the User Guide for v9 and the string "styledText" doesn't appear to be there. Too bad; hopefully added soon. The styledText array gives us all the full-fidelity info we love with htmlText, but in the super-efficient form of an associative array. -- 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 paul at livecode.org Tue Apr 24 16:34:42 2018 From: paul at livecode.org (Paul Hibbert) Date: Tue, 24 Apr 2018 13:34:42 -0700 Subject: Typesetting Fields In-Reply-To: <618C26C4-2FF5-46A0-8E26-5024C306681B@hindu.org> References: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> <4241E03C-4C62-42DD-9354-92B0CE11DE7E@iotecdigital.com> <618C26C4-2FF5-46A0-8E26-5024C306681B@hindu.org> Message-ID: Another useful reference that may help? http://livecode.wikia.com/wiki/StyledText Paul > On Apr 24, 2018, at 12:29 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > > What I would do is set some text in a field to some different styles, then get the styledText of the field and examine the array. > > Bob S > > That is also my plan. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Apr 24 16:40:03 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 24 Apr 2018 22:40:03 +0200 Subject: macOS "Recovered files" In-Reply-To: <4f4a3bd8-efd5-5c0f-4b19-1e1718c79ab0@fourthworld.com> References: <4f4a3bd8-efd5-5c0f-4b19-1e1718c79ab0@fourthworld.com> Message-ID: <16173F2C-DD0D-4B24-B9FD-30D2A3868E89@m-r-d.de> I?ve filed a bug now Bug?21233 Matthias > Am 24.04.2018 um 21:23 schrieb Richard Gaskin via use-livecode >: > > Matthias Rebbe wrote: > > > At https://support.apple.com/kb/PH25506?viewlocale=en_US&locale=en_US > > > there is a description about recovered files/folders in trash. > > According to Apples description this happens when an app quits > > unexpectedly and is not able to delete the temp files before it > > quits. After a restart of the Mac these files are appearing in trash. > ... > > So it seems, LC 9 GM does not delete the temp files correctly before > > quitting or maybe is quitting to fast or whatever and Mac OS X > > recovers those files after a restart. > > > > That seems to be a bug, doesn?t it? > > I would say so. "Recovery" implies an error condition, and the spec explicitly suggests an app's responsibility to clean up its tmp files. > > If you file a bug report please note the URL or bug ID here so interested readers can follow along. Thanks. > > -- > 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 Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? From brahma at hindu.org Tue Apr 24 23:18:21 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 25 Apr 2018 03:18:21 +0000 Subject: Typesetting Fields In-Reply-To: References: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> <4241E03C-4C62-42DD-9354-92B0CE11DE7E@iotecdigital.com> <618C26C4-2FF5-46A0-8E26-5024C306681B@hindu.org> Message-ID: http://livecode.wikia.com/wiki/StyledText Paul ==== Paul, that helps! It does matter the name of array? (could be anything) a long it conforms to styled text that set the styleText of fld "playlist to tPlayListTextArray. that property can actually use. wow! I wonder how far we can take this, in terms of "runs" containing thing like the images source of a character. I guess I can find out quickly. BR Where does livecode.wikia.com come from? From brahma at hindu.org Tue Apr 24 23:42:36 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 25 Apr 2018 03:42:36 +0000 Subject: Getting Orientation Enforced on Phone In-Reply-To: <116D1114-1BAF-465A-8615-30C253A495EF@hindu.org> References: <382909CE-3C5A-4335-AB95-A5F3E10AEA16@hindu.org> <000c01d3d389$ea751bc0$bf5f5340$@net> <23CF6208-8B3C-4489-BEE8-1D76E2B4C135@appisle.net> <116D1114-1BAF-465A-8615-30C253A495EF@hindu.org> Message-ID: Eureka! Montes been busy, but keeping quiet https://quality.livecode.com/show_bug.cgi?id=19465 BR: just completed test. I tried "go letting" to stack mobileSetAllowedOrientations "portrait,portrait upside down,landscape left,landscape right" just before closing in and opening the next stack. No go an Android. From paul at livecode.org Tue Apr 24 23:45:45 2018 From: paul at livecode.org (Paul Hibbert) Date: Tue, 24 Apr 2018 20:45:45 -0700 Subject: Typesetting Fields In-Reply-To: References: <0A7E21C0-7206-4EA1-A980-E09EA4D27831@hindu.org> <4241E03C-4C62-42DD-9354-92B0CE11DE7E@iotecdigital.com> <618C26C4-2FF5-46A0-8E26-5024C306681B@hindu.org> Message-ID: <90D45859-5DBF-4805-AB62-E614C640ED8B@livecode.org> > Where does livecode.wikia.com come from? I believe it was started by MaxV2, I think he hangs around in the forums mainly under the handle MaxV. He?s done a great job with the Wikia. Paul From matthias_livecode_150811 at m-r-d.de Wed Apr 25 04:46:01 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 25 Apr 2018 10:46:01 +0200 Subject: Livecode at g2crowd.com - Message-ID: Today i noticed that G2Crowd lists also Livecode (the product not the company). I?ve asked them some weeks ago to add it to their list of products. Somehow the heard me or maybe Livecode Ltd. asked also. Who knows. But anyway, it is now listed for reviews. So everyone can leave a review for it now at https://www.g2crowd.com/products/livecode From cszasz at mac.com Wed Apr 25 09:53:07 2018 From: cszasz at mac.com (Charles Szasz) Date: Wed, 25 Apr 2018 07:53:07 -0600 Subject: Code Signing Problem on Mac Message-ID: <76E63D9C-B323-45A0-AB4A-13DEBC8331A1@mac.com> Somehow my Developer ID Application and Developer ID Installer Certificates keys were deleted. When I reset them from X Code, keys are created for 3rd Party, which are for submission to Apple's App Store for the Mac. My previous keys were for distribution of desktop apps outside Apple's App Store for the Mac. I have never submitted any apps for Apple's App Store. I have tried many times to change the keys to outside distribution but so far I have been unsuccessful. Can anybody give give me a step by step procedure to create Developer ID Application and Developer ID Installer Certificates keys for website deployment of Mac desktop apps? Thanks for your time! Sent from my iPad From dougr at telus.net Wed Apr 25 10:13:07 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Wed, 25 Apr 2018 07:13:07 -0700 Subject: use-livecode Digest, Vol 175, Issue 42 In-Reply-To: BBKWflJNSHLHgBBKbfHeof References: BBKWflJNSHLHgBBKbfHeof Message-ID: <146c01d3dc9f$89b66860$9d233920$@net> Like all good programmers, I'm very lazy and would like other people to do my work for me! .. Thanks for the suggestion and I will investigate THAT approach ... although I'm not very thrilled with LC v9 at this point in time. Also, at 68, I'm literally conforming to the "old dog, new tricks" mentality more and more ... learn Java? ... really? I even had to look up what "FFI" meant! Learning enough Bluetooth to use it in an app was a bit of a chore ... Ah well, it is what it is! However ... if anyone has any working related code....???? Cheers! Doug Douglas Ruisaard Trilogy Software (250) 573-3935 > > Because LiveCode 9 now supports Java FFI, maybe you can find the source code in Java how to do this > and then implement it? > Just an idea. > > Goodluck, > Erik > > On 19/04/18 18:00, "use-livecode on behalf of Douglas Ruisaard via use-livecode" bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote: > > Anyone is this community as versed in Android as Monte Goulding is in iOS? One of the beauties of > LC is its cross-platform ability. The app I've written in iOS ports just fine to Android .. at least > the user-interactive and data processing parts do. .. without changing one line of code (and it's a > complex app) ... how slick is that??? Obviously, there is a lack of an equivalent Android BLE function > for communicating to my Arduino which I have working splendidly in iOS. So... I'm looking for > information / assistance on how to implement a "hardwired" connection from an Arduino to an Android > device (currently have an older- Galaxy Tab 4 running v 5.1.1) ... but if I need a newer model, newer > OS, that's do-able. > > I'm hoping (?against hope?) that all I need is the "device name" for the USB port on the Android > and the rest I can handle using the "open device" serial handles in LC. I understand that one reason > that LC may have and still is avoiding the Android BLE topic is due to the varieties and variations > within the numerous version of the Android OS's. For me, I just need to be able to demonstrate a > mobile device (iOS or Android) being able to communicate with an Arduino app via a USB hardwire > connection. I REALLY don't care which OS it is and if I have to use iOS for BLE and Android for > USB... that's just fine! > > Any help would be greatly appreciated!! > > Cheers > Doug > From brahma at hindu.org Wed Apr 25 10:18:04 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 25 Apr 2018 14:18:04 +0000 Subject: Next Behaviors - Scope of Variables Message-ID: I just implemented by first use of nested behaviors. Marvelous! But it occurred to me right away, that I could use variables which were "local", in the sense that their scope was within the context of the nested arrays. Of course needed to declare the inside the behavior, otherwise you get confused, but they are no globals. I have nested "behavior_ListenUI" # a generic UI that words of several cards # inside behavior_MyAudio # just for this one card. # On this card I am forced to use local set up "silly handlers" local sDownloadedAudioA on passAudioSelection pLine,pTitle startPlayer sDownloadedAudioA[pLine][localURL],pTitle end passAudioSelection # because the startPlayer behavior is on the "generic" "behavior_ListenUI" but if "sDownloadAudioA" was available to "behavior_ListenUI" I won't need to passAudioSelection pLine,pTitle instead, I just declare the semi-local sDownloadedAudioA on the mouseup handler it to a straight startPlayer sDownloadedAudioA[pLine][localURL],pTitle behavior_ListenUI I hope that makes sense? if could post the entire scripts if it doesn?t . From livfoss at mac.com Wed Apr 25 10:35:30 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 25 Apr 2018 16:35:30 +0200 Subject: use-livecode Digest, Vol 175, Issue 42 In-Reply-To: <146c01d3dc9f$89b66860$9d233920$@net> References: <146c01d3dc9f$89b66860$9d233920$@net> Message-ID: Just a bit of pensioner solidarity: someone also suggested to me (on the Apple Discussions site) that I mess with Java on my Mac, via the command line, no less. Part of my reply was: > Thanks for trying to explain it, but running stuff on the command line was what I bought a Mac not to do! Back when dinosaurs ruled the earth I was a geek who could program almost anything etc, and I ate command lines for breakfast, but nowadays I want to be one of "the rest of us". I think that a respectable minority of LiveCode developers may well feel like us. Graham Sent from my iPad > On 25 Apr 2018, at 16:13, Douglas Ruisaard via use-livecode wrote: > > Like all good programmers, I'm very lazy and would like other people to do my work for me! .. Thanks for the suggestion and I will investigate THAT approach ... although I'm not very thrilled with LC v9 at this point in time. Also, at 68, I'm literally conforming to the "old dog, new tricks" mentality more and more ... learn Java? ... really? I even had to look up what "FFI" meant! Learning enough Bluetooth to use it in an app was a bit of a chore ... Ah well, it is what it is! > > However ... if anyone has any working related code....???? > > Cheers! > Doug > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > > >> >> Because LiveCode 9 now supports Java FFI, maybe you can find the source code in Java how to do this >> and then implement it? >> Just an idea. >> >> Goodluck, >> Erik >> >> On 19/04/18 18:00, "use-livecode on behalf of Douglas Ruisaard via use-livecode" > bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote: >> >> Anyone is this community as versed in Android as Monte Goulding is in iOS? One of the beauties of >> LC is its cross-platform ability. The app I've written in iOS ports just fine to Android .. at least >> the user-interactive and data processing parts do. .. without changing one line of code (and it's a >> complex app) ... how slick is that??? Obviously, there is a lack of an equivalent Android BLE function >> for communicating to my Arduino which I have working splendidly in iOS. So... I'm looking for >> information / assistance on how to implement a "hardwired" connection from an Arduino to an Android >> device (currently have an older- Galaxy Tab 4 running v 5.1.1) ... but if I need a newer model, newer >> OS, that's do-able. >> >> I'm hoping (?against hope?) that all I need is the "device name" for the USB port on the Android >> and the rest I can handle using the "open device" serial handles in LC. I understand that one reason >> that LC may have and still is avoiding the Android BLE topic is due to the varieties and variations >> within the numerous version of the Android OS's. For me, I just need to be able to demonstrate a >> mobile device (iOS or Android) being able to communicate with an Arduino app via a USB hardwire >> connection. I REALLY don't care which OS it is and if I have to use iOS for BLE and Android for >> USB... that's just fine! >> >> Any help would be greatly appreciated!! >> >> Cheers >> Doug > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 25 12:12:35 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 25 Apr 2018 09:12:35 -0700 Subject: Typesetting Fields In-Reply-To: References: Message-ID: Sannyasin Brahmanathaswami wrote: > Where does livecode.wikia.com come from? It's a "semi-friendly" fork of the LC docs managed by a fella who goes by "MaxV" in the forums. It's certainly not at all "unfriendly" (such as some of the more hostile forks we see in the Wordpress world). On the contrary, he's shown great dedication to providing current docs with enhanced content. His work is excellent, his intentions good, his timeliness exemplary. Normally a "friendly" fork is one in which someone wants to take a project in a new direction, and in discussion with the core team they agree that each has a different vision and the proposed enhancements would be unsuited for the main project, so a fork lets the new dev scratch his own itch without interference. The GPL welcomes such diversity. In this case I use "semi-friendly" only to note that I've seen nothing in Max's excellent work which wouldn't be welcome in LiveCode, but by posting at a separate site rather than upstream at Github the main branch cannot include those enhancements, so the value of his good efforts is lost to most LiveCode users. Max would be one of the shining stars of the LC docs project if he would consider submitting his excellent content refinements to the main branch at Github so they become part of the standard docs set. As it is, we have fragmentation and duplicated effort. Still useful, but less so than sharing in the place set up for 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 ambassador at fourthworld.com Wed Apr 25 14:33:39 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 25 Apr 2018 11:33:39 -0700 Subject: use-livecode Digest, Vol 175, Issue 42 In-Reply-To: References: Message-ID: Graham Samuel wrote: > Just a bit of pensioner solidarity: someone also suggested to me (on > the Apple Discussions site) that I mess with Java on my Mac, via the > command line, no less. Part of my reply was: > >> Thanks for trying to explain it, but running stuff on the command >> line was what I bought a Mac not to do! Back when dinosaurs ruled >> the earth I was a geek who could program almost anything etc, and >> I ate command lines for breakfast, but nowadays I want to be one >> of "the rest of us". > > I think that a respectable minority of LiveCode developers may well > feel like us. It's such a different world today than when we were starting out. Back then there was only on consumer GUI OS, and we wrote apps on the same system they were expected to run. Today we need to support multiple OSes, and when those are mobile we develop on a completely different OS and then squeeze it into the tiny device like building ships in a bottle. At this point, as someone who's job requires him to sit and type for much of the day, four things are keeping me alive: 1. A cup of black coffee with breakfast. 2. A glass of red wine with dinner. 3. Cycling to a nearby park for lunch. 4. The frequent reminder that there are a million things I don't know, and I'll need to learn some of them by next week. Wikipedia has become my favorite book, but I do sometimes almost miss the luxury of reading novels. :) -- 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 Thu Apr 26 02:37:17 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 25 Apr 2018 23:37:17 -0700 Subject: Building for Android in v9 Message-ID: <6fd6a99d-9534-6292-40dc-55bfe4e60d41@fourthworld.com> Is there a known issue with building Android APKs in v9? Here it goes through the process surprisingly quickly, then reports that it completed successfully - only to find the target build folder empty. :( -- 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 rdimola at evergreeninfo.net Thu Apr 26 09:35:28 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 26 Apr 2018 09:35:28 -0400 Subject: Building for Android in v9 In-Reply-To: <6fd6a99d-9534-6292-40dc-55bfe4e60d41@fourthworld.com> References: <6fd6a99d-9534-6292-40dc-55bfe4e60d41@fourthworld.com> Message-ID: <002201d3dd63$79188ff0$6b49afd0$@net> No problem here on 9.0 GM using Win 10. 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 Richard Gaskin via use-livecode Sent: Thursday, April 26, 2018 2:37 AM To: How to use LiveCode Cc: Richard Gaskin Subject: Building for Android in v9 Is there a known issue with building Android APKs in v9? Here it goes through the process surprisingly quickly, then reports that it completed successfully - only to find the target build folder empty. :( -- 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 paul at researchware.com Thu Apr 26 09:36:21 2018 From: paul at researchware.com (Paul Dupuis) Date: Thu, 26 Apr 2018 09:36:21 -0400 Subject: Open printing to PDF error Message-ID: I have a user who ran into the error "printing: Unknown destination:? (Line 0, column 0)" when executing a line in my code that was "Open printing to PDF " This error (in fact NO ERRORs) are listed under the "open printing to PDF" entry in the dictionary. If 'the result is "cancel" ' is the only dictionary entry reference to an error code. I assume this is some kind of permissions error? However, attempts to replicate (say by trying to save to a read only folder) have proven in effective. Does anyone know what this error is for real? From paul at smarttsoftware.co.uk Thu Apr 26 09:43:01 2018 From: paul at smarttsoftware.co.uk (Paul Richards) Date: Thu, 26 Apr 2018 13:43:01 +0000 Subject: Building for Android in v9 In-Reply-To: <6fd6a99d-9534-6292-40dc-55bfe4e60d41@fourthworld.com> References: <6fd6a99d-9534-6292-40dc-55bfe4e60d41@fourthworld.com> Message-ID: You wouldn't happen to be using the new Map Widget by any chance? If You haven't entered the Map API key then no APK file is produced, only the build folder - and no error anywhere (for me anyway) -----Original Message----- From: use-livecode On Behalf Of Richard Gaskin via use-livecode Sent: 26 April 2018 07:37 To: How to use LiveCode Cc: Richard Gaskin Subject: Building for Android in v9 Is there a known issue with building Android APKs in v9? Here it goes through the process surprisingly quickly, then reports that it completed successfully - only to find the target build folder empty. :( -- 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 mark.rauterkus at gmail.com Thu Apr 26 09:56:25 2018 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Thu, 26 Apr 2018 09:56:25 -0400 Subject: OT: Putting 3 audio apps into the online stores. Compare and contrast with LiveCode might be cool Message-ID: Hi, Marketing type alerts: Interesting article with compare and contrast views. Might be good to pick up what he began and tell the LiveCode story too. https://medium.freecodecamp.org/i-built-a-pwa-and-published-it-in-3-app-stores-heres-what-i-learned-7cb3f56daf9b -- Ta. Mark Rauterkus Mark at Rauterkus.com From alex at tweedly.net Thu Apr 26 10:16:33 2018 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 26 Apr 2018 15:16:33 +0100 Subject: Q on Accessing multi-dimension arrays. Message-ID: <01caf9d7-60af-79b0-bf8c-380448ce509d@tweedly.net> I have a (vague) memory that there is some way to do this ... but can't remember and haven't had any luck searching for it .... I have a multi-dimension array, say created by put "answer" into tArray["firstkey"]["secondkey"] Is there some way or format to specify the array elements using the "path" of the keys, rather than each one at its own level) ? i.e. something like (but obviously not exactly) ? put tArray["firstkey,secondkey"] where each item/part of the key is interpreted s the next level in the multi-dimension. Thanks Alex. From brian at milby7.com Thu Apr 26 10:43:35 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 26 Apr 2018 09:43:35 -0500 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: <01caf9d7-60af-79b0-bf8c-380448ce509d@tweedly.net> References: <01caf9d7-60af-79b0-bf8c-380448ce509d@tweedly.net> Message-ID: on mouseUp put "answer" into tA["firstkey"]["secondkey"] put "firstkey" into tPath[1] put "secondkey" into tPath[2] put tA[tPath] end mouseUp On Thu, Apr 26, 2018 at 9:16 AM, Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > > I have a (vague) memory that there is some way to do this ... but can't > remember and haven't had any luck searching for it .... > > > I have a multi-dimension array, say created by > > put "answer" into tArray["firstkey"]["secondkey"] > > Is there some way or format to specify the array elements using the "path" > of the keys, rather than each one at its own level) ? > > i.e. something like (but obviously not exactly) > > put tArray["firstkey,secondkey"] > > where each item/part of the key is interpreted s the next level in the > multi-dimension. > > 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 rdimola at evergreeninfo.net Thu Apr 26 10:48:21 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 26 Apr 2018 10:48:21 -0400 Subject: Programmatically changing cRevStandaloneSettings was [Q on Accessing multi-dimension arrays.} In-Reply-To: <01caf9d7-60af-79b0-bf8c-380448ce509d@tweedly.net> References: <01caf9d7-60af-79b0-bf8c-380448ce509d@tweedly.net> Message-ID: <003901d3dd6d$a22d5510$e687ff30$@net> This dovetails into some weirdness I am seeing. I'm trying to change the standalone settings Custom property group cRevStandaloneSettings. I want to programmatically fill in the mobile icons/splash pages. The android key has the expansion triangle but all that's there is one blank key. But the more interesting thing is the keys below it are in the format like Alex is asking about (firstkey,secondkey). When you click on one of the keys the value is not there. The value is to the right of the key. I can't make sense of this. What am I missing? 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 Alex Tweedly via use-livecode Sent: Thursday, April 26, 2018 10:17 AM To: How to use LiveCode Cc: Alex Tweedly Subject: Q on Accessing multi-dimension arrays. I have a (vague) memory that there is some way to do this ... but can't remember and haven't had any luck searching for it .... I have a multi-dimension array, say created by put "answer" into tArray["firstkey"]["secondkey"] Is there some way or format to specify the array elements using the "path" of the keys, rather than each one at its own level) ? i.e. something like (but obviously not exactly) put tArray["firstkey,secondkey"] where each item/part of the key is interpreted s the next level in the multi-dimension. 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 chipsm at themartinz.com Thu Apr 26 10:47:01 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Thu, 26 Apr 2018 07:47:01 -0700 Subject: Building for Android in v9 In-Reply-To: References: <6fd6a99d-9534-6292-40dc-55bfe4e60d41@fourthworld.com> Message-ID: <084901d3dd6d$6f918d60$4eb4a820$@themartinz.com> Are you talking about the Map in the inclusions library? If not, what Map API key are you talking about? -----Original Message----- From: use-livecode On Behalf Of Paul Richards via use-livecode Sent: Thursday, April 26, 2018 6:43 AM To: How to use LiveCode Cc: Paul Richards Subject: RE: Building for Android in v9 You wouldn't happen to be using the new Map Widget by any chance? If You haven't entered the Map API key then no APK file is produced, only the build folder - and no error anywhere (for me anyway) -----Original Message----- From: use-livecode On Behalf Of Richard Gaskin via use-livecode Sent: 26 April 2018 07:37 To: How to use LiveCode Cc: Richard Gaskin Subject: Building for Android in v9 Is there a known issue with building Android APKs in v9? Here it goes through the process surprisingly quickly, then reports that it completed successfully - only to find the target build folder empty. :( -- 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 chipsm at themartinz.com Thu Apr 26 10:47:56 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Thu, 26 Apr 2018 07:47:56 -0700 Subject: Building for Android in v9 In-Reply-To: References: <6fd6a99d-9534-6292-40dc-55bfe4e60d41@fourthworld.com> Message-ID: <084b01d3dd6d$908bef60$b1a3ce20$@themartinz.com> Also, is this a new Library? I used to be able to create Android apps before without this. -----Original Message----- From: use-livecode On Behalf Of Paul Richards via use-livecode Sent: Thursday, April 26, 2018 6:43 AM To: How to use LiveCode Cc: Paul Richards Subject: RE: Building for Android in v9 You wouldn't happen to be using the new Map Widget by any chance? If You haven't entered the Map API key then no APK file is produced, only the build folder - and no error anywhere (for me anyway) -----Original Message----- From: use-livecode On Behalf Of Richard Gaskin via use-livecode Sent: 26 April 2018 07:37 To: How to use LiveCode Cc: Richard Gaskin Subject: Building for Android in v9 Is there a known issue with building Android APKs in v9? Here it goes through the process surprisingly quickly, then reports that it completed successfully - only to find the target build folder empty. :( -- 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 Thu Apr 26 10:57:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 14:57:25 +0000 Subject: Open printing to PDF error In-Reply-To: References: Message-ID: Just a guess, check the current default folder. It may have permissions set, or may no longer exist. Bob S > On Apr 26, 2018, at 06:36 , Paul Dupuis via use-livecode wrote: > > I have a user who ran into the error "printing: Unknown destination: > (Line 0, column 0)" when executing a line in my code that was "Open > printing to PDF " > > This error (in fact NO ERRORs) are listed under the "open printing to > PDF" entry in the dictionary. If 'the result is "cancel" ' is the only > dictionary entry reference to an error code. > > I assume this is some kind of permissions error? However, attempts to > replicate (say by trying to save to a read only folder) have proven in > effective. Does anyone know what this error is for real? From bobsneidar at iotecdigital.com Thu Apr 26 11:01:15 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 15:01:15 +0000 Subject: Open printing to PDF error In-Reply-To: References: Message-ID: <3D8D8525-435F-460A-9EFA-D1755998D472@iotecdigital.com> NVM you provide a file path. You may want to check that the folder exists before writing the pdf. Do you ask the end user where they want to put the file first, or do you assume a destination folder? Bob S > On Apr 26, 2018, at 07:57 , Bob Sneidar via use-livecode wrote: > > Just a guess, check the current default folder. It may have permissions set, or may no longer exist. > > Bob S From tfabacher at gmail.com Thu Apr 26 11:12:35 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Thu, 26 Apr 2018 11:12:35 -0400 Subject: use-livecode Digest, Vol 175, Issue 43 In-Reply-To: References: Message-ID: I put in a review of LiveCode at g2crowd.com. But it still says there are none. --Todd On Wed, Apr 25, 2018 at 6:00 AM, wrote: > > Today's Topics: > > 1. Re: Typesetting Fields (Paul Hibbert) > 2. Livecode at g2crowd.com - (Matthias Rebbe) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 24 Apr 2018 20:45:45 -0700 > From: Paul Hibbert > To: How to use LiveCode > Subject: Re: Typesetting Fields > Message-ID: <90D45859-5DBF-4805-AB62-E614C640ED8B at livecode.org> > Content-Type: text/plain; charset=utf-8 > > > > Where does livecode.wikia.com come from? > > I believe it was started by MaxV2, I think he hangs around in the forums > mainly under the handle MaxV. He?s done a great job with the Wikia. > > Paul > > > > > > > > ------------------------------ > > Message: 2 > Date: Wed, 25 Apr 2018 10:46:01 +0200 > From: Matthias Rebbe > To: use-livecode at lists.runrev.com > Subject: Livecode at g2crowd.com - > Message-ID: > Content-Type: text/plain; charset=utf-8 > > Today i noticed that G2Crowd > lists also Livecode (the product not the company). I?ve asked them some > weeks ago to add it to their list of products. > Somehow the heard me or maybe Livecode Ltd. asked also. Who knows. > > But anyway, it is now listed for reviews. So everyone can leave a review > for it now at > https://www.g2crowd.com/products/livecode products/livecode> > > > > > > ------------------------------ > > 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 175, Issue 43 > ********************************************* > From matthias_livecode_150811 at m-r-d.de Thu Apr 26 11:17:45 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 26 Apr 2018 17:17:45 +0200 Subject: use-livecode Digest, Vol 175, Issue 43 In-Reply-To: References: Message-ID: The reviews are previewed by the people of G2Crowd first. I?ve also wrote a review at the time i wrote the post in the mailing list. It take some time. Matthias > Am 26.04.2018 um 17:12 schrieb Todd Fabacher via use-livecode : > > I put in a review of LiveCode at g2crowd.com. But it still says there are > none. > > --Todd > > On Wed, Apr 25, 2018 at 6:00 AM, > wrote: > >> >> Today's Topics: >> >> 1. Re: Typesetting Fields (Paul Hibbert) >> 2. Livecode at g2crowd.com - (Matthias Rebbe) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Tue, 24 Apr 2018 20:45:45 -0700 >> From: Paul Hibbert >> To: How to use LiveCode >> Subject: Re: Typesetting Fields >> Message-ID: <90D45859-5DBF-4805-AB62-E614C640ED8B at livecode.org> >> Content-Type: text/plain; charset=utf-8 >> >> >>> Where does livecode.wikia.com come from? >> >> I believe it was started by MaxV2, I think he hangs around in the forums >> mainly under the handle MaxV. He?s done a great job with the Wikia. >> >> Paul >> >> >> >> >> >> >> >> ------------------------------ >> >> Message: 2 >> Date: Wed, 25 Apr 2018 10:46:01 +0200 >> From: Matthias Rebbe >> To: use-livecode at lists.runrev.com >> Subject: Livecode at g2crowd.com - >> Message-ID: >> Content-Type: text/plain; charset=utf-8 >> >> Today i noticed that G2Crowd >> lists also Livecode (the product not the company). I?ve asked them some >> weeks ago to add it to their list of products. >> Somehow the heard me or maybe Livecode Ltd. asked also. Who knows. >> >> But anyway, it is now listed for reviews. So everyone can leave a review >> for it now at >> https://www.g2crowd.com/products/livecode > products/livecode> >> >> >> >> >> >> ------------------------------ >> >> 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 175, Issue 43 >> ********************************************* >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Thu Apr 26 11:34:34 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 26 Apr 2018 15:34:34 +0000 Subject: Programmatically changing cRevStandaloneSettings was [Q on Accessing multi-dimension arrays.} In-Reply-To: <003901d3dd6d$a22d5510$e687ff30$@net> References: <01caf9d7-60af-79b0-bf8c-380448ce509d@tweedly.net> <003901d3dd6d$a22d5510$e687ff30$@net> Message-ID: The comma in a key is the old way to get multi-dimensional arrays. That is how the standalone keys are formed. The blank key thing is due to an issue with the tree view handling keys with commas. On Thu, Apr 26, 2018 at 9:47 AM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > This dovetails into some weirdness I am seeing. I'm trying to change the > standalone settings Custom property group cRevStandaloneSettings. I want to > programmatically fill in the mobile icons/splash pages. The android key has > the expansion triangle but all that's there is one blank key. But the more > interesting thing is the keys below it are in the format like Alex is > asking about (firstkey,secondkey). When you click on one of the keys the > value is not there. The value is to the right of the key. I can't make > sense of this. What am I missing? > > 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 Alex Tweedly via use-livecode > Sent: Thursday, April 26, 2018 10:17 AM > To: How to use LiveCode > Cc: Alex Tweedly > Subject: Q on Accessing multi-dimension arrays. > > > I have a (vague) memory that there is some way to do this ... but can't > remember and haven't had any luck searching for it .... > > > I have a multi-dimension array, say created by > > put "answer" into tArray["firstkey"]["secondkey"] > > Is there some way or format to specify the array elements using the > "path" of the keys, rather than each one at its own level) ? > > i.e. something like (but obviously not exactly) > > put tArray["firstkey,secondkey"] > > where each item/part of the key is interpreted s the next level in the > multi-dimension. > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 26 11:38:04 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 15:38:04 +0000 Subject: OT: Putting 3 audio apps into the online stores. Compare and contrast with LiveCode might be cool In-Reply-To: References: Message-ID: Yeah, I skimmed over it. I think he is learning the wrong lessons at times. He calls Apple "hostile" in several places partly because they "prevent" his webb app from communicating with other apps on the iphone, and because they charge $99 a year to allow certain features on a real app to do the same. Then he praises Microsoft for being "free". The lesson he apparently has NOT learned yet, is that if there is no gatekeeper someone is going to walk in the gate. There are good reasons Apple doesn't let one app (or especially a WEB PAGE for God's sake!) to communicate with other apps. And anyone offering "free" services are typically not going to spend a lot of resources standing in the gate. Bob S > On Apr 26, 2018, at 06:56 , Mark Rauterkus via use-livecode wrote: > > Hi, > > Marketing type alerts: > > Interesting article with compare and contrast views. Might be good to pick > up what he began and tell the LiveCode story too. > > https://medium.freecodecamp.org/i-built-a-pwa-and-published-it-in-3-app-stores-heres-what-i-learned-7cb3f56daf9b > > > > -- > Ta. > > > Mark Rauterkus Mark at Rauterkus.com From paul at researchware.com Thu Apr 26 12:46:02 2018 From: paul at researchware.com (Paul Dupuis) Date: Thu, 26 Apr 2018 12:46:02 -0400 Subject: Open printing to PDF error In-Reply-To: <3D8D8525-435F-460A-9EFA-D1755998D472@iotecdigital.com> References: <3D8D8525-435F-460A-9EFA-D1755998D472@iotecdigital.com> Message-ID: <3bfc10f8-2c5e-1927-1635-ef0a96977977@researchware.com> The file path is selected by the user through a standard 'answer file ... ' dialog. The code does not currently check to see if the folder the user selected for the file is writable, but tests of trying to save to a read-only (non writable) folder on Windows results in a controlled error dialog being presented by the 'open printing to pdf' statement rather than an code execution error. Presumably the folder exists since it was just selected by the user via the 'answer file' command. Obviously, I can wrap this part of the code in a TRY ... END TRY block to catch any error and present a graceful message of something like "exporting to PDF failed", but I was hoping someone (perhaps a LiveCode employee???) might actually know what the error message of 'printing: Unknown destination' meant. On 4/26/2018 11:01 AM, Bob Sneidar via use-livecode wrote: > NVM you provide a file path. You may want to check that the folder exists before writing the pdf. Do you ask the end user where they want to put the file first, or do you assume a destination folder? > > Bob S > > >> On Apr 26, 2018, at 07:57 , Bob Sneidar via use-livecode wrote: >> >> Just a guess, check the current default folder. It may have permissions set, or may no longer exist. >> >> 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 bobsneidar at iotecdigital.com Thu Apr 26 13:06:39 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 17:06:39 +0000 Subject: Enable/disable Group enables/disables all children Message-ID: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> Hi all. I have a group that contains a number of objects, buttons, menus, fuelds and groups. I just noticed that if I disable a group (so that none of the objects in the group can be interacted with) I get the desired effect. However when re-enabling the group, it *ALSO* re-enables ALL the objects in that group, no matter what their status was prior to disabling the group. Is that the expected behavior? If not I will file a bug report. If so, I will have to find another way to disable all the objects in a group, or else trap for the action, and save the enabled property for every containing object so I can reset them. Bob S From bobsneidar at iotecdigital.com Thu Apr 26 13:16:46 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 17:16:46 +0000 Subject: Open printing to PDF error In-Reply-To: <3bfc10f8-2c5e-1927-1635-ef0a96977977@researchware.com> References: <3D8D8525-435F-460A-9EFA-D1755998D472@iotecdigital.com> <3bfc10f8-2c5e-1927-1635-ef0a96977977@researchware.com> Message-ID: <274F7BE4-5E79-4CA3-8657-9A3383FC32F4@iotecdigital.com> Yeah, error messages can be misleading sometimes. Often the command is simply returning a message the OS or API passed back to it, and that message can be less than helpful. For example, on copiers, when using StartTLS for encryption in SMTP communications, the server may reject the connection for a number of security reasons, but the error the copier always reports is "Login Failure" when in reality, the login information is correct. This can lead the uninitated down a rabbit hole if they try to change the password to what they think it might be. I was having fits getting a newly installed copier to scan to a customer's NAS file server. The error reported was "Login Failure". I verified credentials, did packet captures, sent them off to Konica, etc. Everyone was completely stumped. Turns out the top IT guy for the enterprise had decided to enable ACL's on the NAS devices, and he hadn't entered the MAC addresses for the new copiers yet. One other example: If Outlook attempts to connect to an Exchange server that is currently offline, it will present a login dialog. What percentage of end users do you think will STILL attempt to guess at their logins and passwords, even after telling them numerous times NOT TO GUESS. :-) So this is a problem with virtually everything that is going to interact with someone else's systems. Bob S > On Apr 26, 2018, at 09:46 , Paul Dupuis via use-livecode wrote: > > The file path is selected by the user through a standard 'answer file > ... ' dialog. The code does not currently check to see if the folder the > user selected for the file is writable, but tests of trying to save to a > read-only (non writable) folder on Windows results in a controlled error > dialog being presented by the 'open printing to pdf' statement rather > than an code execution error. > > Presumably the folder exists since it was just selected by the user via > the 'answer file' command. Obviously, I can wrap this part of the code > in a TRY ... END TRY block to catch any error and present a graceful > message of something like "exporting to PDF failed", but I was hoping > someone (perhaps a LiveCode employee???) might actually know what the > error message of 'printing: Unknown destination' meant. From Bernd.Niggemann at uni-wh.de Thu Apr 26 13:17:26 2018 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Thu, 26 Apr 2018 17:17:26 +0000 Subject: Q on Accessing multi-dimension arrays. Message-ID: Alex Tweedly wrote: >Is there some way or format to specify the array elements using the >"path" of the keys, rather than each one at its own level) ? If I understand correctly that you want then ------------------------- put "style,hidden" into tPathToHidden split tPathToHidden by comma put "true" into tScriptA[i][tPathToHidden] ------------------------ lets you put the constant part of the path into a variable I learned this from Mark Wieder Kind regards Bernd From dunbarx at aol.com Thu Apr 26 13:38:27 2018 From: dunbarx at aol.com (dunbarx) Date: Thu, 26 Apr 2018 10:38:27 -0700 (MST) Subject: Enable/disable Group enables/disables all children In-Reply-To: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> Message-ID: <1524764307797-0.post@n4.nabble.com> I think this is expected behavior. If you have a group of three buttons: 1- disable one of them 2- disable the group 3 enable the group You do get all three buttons enabled. But the thinking is likely along the lines of: "That guy enabled the group, right? That means enable the group, which includes all its member controls, right?" Or something like that. I think this has merit, and I would just set a custom property to restore the disabled controls. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From paul at researchware.com Thu Apr 26 13:50:42 2018 From: paul at researchware.com (Paul Dupuis) Date: Thu, 26 Apr 2018 13:50:42 -0400 Subject: Enable/disable Group enables/disables all children In-Reply-To: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> Message-ID: <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> On 4/26/2018 1:06 PM, Bob Sneidar via use-livecode wrote: > Hi all. > > I have a group that contains a number of objects, buttons, menus, fuelds and groups. I just noticed that if I disable a group (so that none of the objects in the group can be interacted with) I get the desired effect. However when re-enabling the group, it *ALSO* re-enables ALL the objects in that group, no matter what their status was prior to disabling the group. > > Is that the expected behavior? If not I will file a bug report. If so, I will have to find another way to disable all the objects in a group, or else trap for the action, and save the enabled property for every containing object so I can reset them. > I don't know if that is the "expected" behavior by LiveCode, but it is NOT the behavior I would expect. I would expect when enabling a group that every object in the group was still in whatever disabled/enabled state it was in BEFORE the group was disabled. From dunbarx at aol.com Thu Apr 26 14:04:02 2018 From: dunbarx at aol.com (dunbarx) Date: Thu, 26 Apr 2018 11:04:02 -0700 (MST) Subject: Enable/disable Group enables/disables all children In-Reply-To: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> Message-ID: <1524765842634-0.post@n4.nabble.com> i would say this is expected behavior. If you disable a control in a group, and then enable the group, LC assumes you want to, er, enable the group, and that means all members of that group. So as you mentioned, make a gadget that stores the states of all the members, and resets when the group is enabled. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From ambassador at fourthworld.com Thu Apr 26 14:45:35 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Apr 2018 11:45:35 -0700 Subject: Enable/disable Group enables/disables all children In-Reply-To: <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> References: <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> Message-ID: <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> Paul Dupuis wrote: > On 4/26/2018 1:06 PM, Bob Sneidar via use-livecode wrote: >> Hi all. >> >> I have a group that contains a number of objects, buttons, menus, >> fuelds and groups. I just noticed that if I disable a group (so >> that none of the objects in the group can be interacted with) I >> get the desired effect. However when re-enabling the group, it >> *ALSO* re-enables ALL the objects in that group, no matter what >> their status was prior to disabling the group. >> >> Is that the expected behavior? If not I will file a bug report. >> If so, I will have to find another way to disable all the objects >> in a group, or else trap for the action, and save the enabled >> property for every containing object so I can reset them. >> > > I don't know if that is the "expected" behavior by LiveCode, but it is > NOT the behavior I would expect. I would expect when enabling a group > that every object in the group was still in whatever disabled/enabled > state it was in BEFORE the group was disabled. I had thought the way you describe it is how it worked. But I just checked in v9 and v6.7 and it works as Bob describes. So if we proposed a change to do what you and I feel is more logical, the current behavior was put into place long enough ago that we'd now have to think about compatibility issues. :( -- 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 richmondmathewson at gmail.com Thu Apr 26 14:16:38 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 26 Apr 2018 21:16:38 +0300 Subject: Forums down: locally or globally? Message-ID: The forums are inaccessible here in Bulgaria at the moment. Richmond. From bobsneidar at iotecdigital.com Thu Apr 26 14:50:42 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 18:50:42 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: <1524765842634-0.post@n4.nabble.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <1524765842634-0.post@n4.nabble.com> Message-ID: You may be correct. This might be the expected behavior. But I am not convinced by the logic. It would be like saying that by dying my hair orange, I obviously wanted all the hair on my body to also be orange, or that I obviously wanted all my children's hair to be orange. Or that by locking me up in a jail cell you wanted all my children to go to jail, or vis versa. Disabling a group would be a great way to globally disable a set of controls, without going through the trouble of disabling each control, or else what other purpose does disabling a group have? The group will not respond to mouse actions. This must mean then, that if for example you set any property of a group, that all the contained objects would inherit that property. This could have some serious consequences, especially if it pertained to custom properties as well. Thankfully it does not! Bob S > On Apr 26, 2018, at 11:04 , dunbarx via use-livecode wrote: > > i would say this is expected behavior. > > If you disable a control in a group, and then enable the group, LC assumes > you want to, er, enable the group, and that means all members of that group. > > So as you mentioned, make a gadget that stores the states of all the > members, and resets when the group is enabled. > > Craig Newman From bobsneidar at iotecdigital.com Thu Apr 26 14:53:22 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 18:53:22 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <1524765842634-0.post@n4.nabble.com> Message-ID: I suppose a better example would be setting the backgroundColor of a group to blue. Should ALL the objects backgroundColor also be set to blue? If not, then why the disabled property? Bob S > On Apr 26, 2018, at 11:50 , Bob Sneidar via use-livecode wrote: > > You may be correct. This might be the expected behavior. But I am not convinced by the logic. It would be like saying that by dying my hair orange, I obviously wanted all the hair on my body to also be orange, or that I obviously wanted all my children's hair to be orange. Or that by locking me up in a jail cell you wanted all my children to go to jail, or vis versa. > > Disabling a group would be a great way to globally disable a set of controls, without going through the trouble of disabling each control, or else what other purpose does disabling a group have? The group will not respond to mouse actions. This must mean then, that if for example you set any property of a group, that all the contained objects would inherit that property. This could have some serious consequences, especially if it pertained to custom properties as well. Thankfully it does not! > > Bob S From ambassador at fourthworld.com Thu Apr 26 14:55:14 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Apr 2018 11:55:14 -0700 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: <01caf9d7-60af-79b0-bf8c-380448ce509d@tweedly.net> References: <01caf9d7-60af-79b0-bf8c-380448ce509d@tweedly.net> Message-ID: <5ef76bb6-6d4d-bdc3-79b6-6e33e4602321@fourthworld.com> Alex Tweedly wrote: > I have a multi-dimension array, say created by > > put "answer" into tArray["firstkey"]["secondkey"] > > Is there some way or format to specify the array elements using the > "path" of the keys, rather than each one at its own level) ? > > i.e. something like (but obviously not exactly) > > put tArray["firstkey,secondkey"] > > where each item/part of the key is interpreted s the next level in the > multi-dimension. You may be thinking of the matrixMultiply function, which requires each array key to be a comma-separated pair of numbers. That was written before LC had multidimensional arrays; not sure if it would have been written that way if deeper arrays were available at the time. All array keys in LC are strings. Whether a number, or a pair of numbers with some punctuation included - all just a string. It would be nice to be able to represent deep arrays with paths, though. That's been a dream of mine for years, to be able to use XPath-like functions on LC arrays. But alas my best efforts at simulating that in script ultimately require dynamic evaluation (do, value, etc.), where the speed loss adds up quickly since this is most worth applying to large arrays. And given that the engine doesn't currently prohibit "/" from being part of an array key (only NULL is prohibited), I haven't bothered submitting a feature request for path syntax for arrays because I can think of no universally-applicable way to expect the engine team to do 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 bonnmike at gmail.com Thu Apr 26 14:58:23 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 26 Apr 2018 12:58:23 -0600 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: References: <01caf9d7-60af-79b0-bf8c-380448ce509d@tweedly.net> Message-ID: I had no clue you could do that! Thank you! On Thu, Apr 26, 2018 at 8:43 AM, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > on mouseUp > put "answer" into tA["firstkey"]["secondkey"] > put "firstkey" into tPath[1] > put "secondkey" into tPath[2] > put tA[tPath] > end mouseUp > > On Thu, Apr 26, 2018 at 9:16 AM, Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > I have a (vague) memory that there is some way to do this ... but can't > > remember and haven't had any luck searching for it .... > > > > > > I have a multi-dimension array, say created by > > > > put "answer" into tArray["firstkey"]["secondkey"] > > > > Is there some way or format to specify the array elements using the > "path" > > of the keys, rather than each one at its own level) ? > > > > i.e. something like (but obviously not exactly) > > > > put tArray["firstkey,secondkey"] > > > > where each item/part of the key is interpreted s the next level in the > > multi-dimension. > > > > 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 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Thu Apr 26 15:06:51 2018 From: paul at researchware.com (Paul Dupuis) Date: Thu, 26 Apr 2018 15:06:51 -0400 Subject: Enable/disable Group enables/disables all children In-Reply-To: <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> References: <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> Message-ID: <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> On 4/26/2018 2:45 PM, Richard Gaskin via use-livecode wrote: > So if we proposed a change to do what you and I feel is more logical, > the current behavior was put into place long enough ago that we'd now > have to think about compatibility issues. :( Bummer :-( I must admit I have never knowingly run across this since in every case I can think of when I disable a group and then enable it, all controls in the group were enabled before hand and should again be enabled after the group is enabled. However, I can imagine all sort of instances where you would definitely want the controls to retain their prior enabled states when enabling/disabling a containing group. From ambassador at fourthworld.com Thu Apr 26 15:07:27 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Apr 2018 12:07:27 -0700 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: References: Message-ID: Mike Bonner wrote: > I had no clue you could do that! Thank you! > > On Thu, Apr 26, 2018 at 8:43 AM, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> on mouseUp >> put "answer" into tA["firstkey"]["secondkey"] >> put "firstkey" into tPath[1] >> put "secondkey" into tPath[2] >> put tA[tPath] >> end mouseUp I'm not entirely sure why it works, but it appears to. tPath is a flat array - what is the logic of treating flat arrays as sequential substitutes for depth queries? -- 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 Thu Apr 26 15:13:20 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Apr 2018 12:13:20 -0700 Subject: Building for Android in v9 In-Reply-To: References: Message-ID: Paul Richards wrote: > From: Richard Gaskin: >> Is there a known issue with building Android APKs in v9? >> >> Here it goes through the process surprisingly quickly, then reports >> that it completed successfully - only to find the target build folder >> empty. :( >> You wouldn't happen to be using the new Map Widget by any chance? > > If You haven't entered the Map API key then no APK file is produced, > only the build folder - and no error anywhere (for me anyway) Thanks - solved that problem. Do you know if there's a but report against the Standalone Builder falsely reporting success under this circumstance? If not I'll file one. Now over that hurdle and onto the next - during build the SB reports: There was an error while saving the standalone application could not build class bundle Been building Android apps for years with LC, but alas hadn't tested in 9. My bad. Apparently many things have changed, and I need to figure them out without having functional docs (I'm on Linux). -- 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 brian at milby7.com Thu Apr 26 15:14:47 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 26 Apr 2018 19:14:47 +0000 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: References: Message-ID: tPath can also be thought of as a (proper) list which makes a little more sense. Mark W would need to answer the why. Not sure I could deduce it from the source all that quickly. On Thu, Apr 26, 2018 at 2:08 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike Bonner wrote: > > > I had no clue you could do that! Thank you! > > > > On Thu, Apr 26, 2018 at 8:43 AM, Brian Milby via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> on mouseUp > >> put "answer" into tA["firstkey"]["secondkey"] > >> put "firstkey" into tPath[1] > >> put "secondkey" into tPath[2] > >> put tA[tPath] > >> end mouseUp > > I'm not entirely sure why it works, but it appears to. > > tPath is a flat array - what is the logic of treating flat arrays as > sequential substitutes for depth queries? > > -- > 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 dunbarx at aol.com Thu Apr 26 15:18:08 2018 From: dunbarx at aol.com (dunbarx) Date: Thu, 26 Apr 2018 12:18:08 -0700 (MST) Subject: Enable/disable Group enables/disables all children In-Reply-To: <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> Message-ID: <1524770288244-0.post@n4.nabble.com> Does it make it more palatable to think about it the other way around? There should be no real difference: You have a group where one button is already enabled, and one already disabled. By disabling the group, should the enabled button stay enabled? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From thatkeith at mac.com Thu Apr 26 15:18:13 2018 From: thatkeith at mac.com (Keith Martin) Date: Thu, 26 Apr 2018 20:18:13 +0100 Subject: Forums down: locally or globally? In-Reply-To: References: Message-ID: On 26 Apr 2018, at 19:16, Richmond Mathewson via use-livecode wrote: > The forums are inaccessible here in Bulgaria at the moment. They were for me too (in London, UK), for a bit. k From ambassador at fourthworld.com Thu Apr 26 15:21:50 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Apr 2018 12:21:50 -0700 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: References: Message-ID: <04c02ae9-8e34-5226-559a-b05546fa42d0@fourthworld.com> As long as this (undocumented?) anomaly exists, might as well put it to good use - this is a step toward xPath-like functionality for array queries: on mouseUp -- Load array: put "something" into tA["this"]["is"][1]["path"] -- put PathQuery("this/is/1/path", tA) end mouseUp function PathQuery pPath, pArray split pPath by "/" return pArray[pPath] end PathQuery Now to find the time to expand on that toward something akin to XQuery.... Thanks, Brian. It's super-weird and appears to defy logic, but very useful. -- Richard Gaskin Fourth World Systems Richard Gaskin wrote: > Mike Bonner wrote: > > > I had no clue you could do that! Thank you! > > > > On Thu, Apr 26, 2018 at 8:43 AM, Brian Milby via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> on mouseUp > >> put "answer" into tA["firstkey"]["secondkey"] > >> put "firstkey" into tPath[1] > >> put "secondkey" into tPath[2] > >> put tA[tPath] > >> end mouseUp > > I'm not entirely sure why it works, but it appears to. > > tPath is a flat array - what is the logic of treating flat arrays as > sequential substitutes for depth queries? From brian at milby7.com Thu Apr 26 15:35:44 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 26 Apr 2018 19:35:44 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: <1524770288244-0.post@n4.nabble.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> <1524770288244-0.post@n4.nabble.com> Message-ID: My guess... it is because disabled is not an inherited property. All of the other examples have been properties that are inherited if not explicitly set. As such a decision was made that setting the enabled property on a group effects all objects in the group. From brian at milby7.com Thu Apr 26 15:35:44 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 26 Apr 2018 19:35:44 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: <1524770288244-0.post@n4.nabble.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> <1524770288244-0.post@n4.nabble.com> Message-ID: My guess... it is because disabled is not an inherited property. All of the other examples have been properties that are inherited if not explicitly set. As such a decision was made that setting the enabled property on a group effects all objects in the group. From bobsneidar at iotecdigital.com Thu Apr 26 16:02:34 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 20:02:34 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: <1524770288244-0.post@n4.nabble.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> <1524770288244-0.post@n4.nabble.com> Message-ID: <510D6CDB-0353-4406-B115-CA1FC1A64368@iotecdigital.com> Not while the group is disabled, but then afterwards, yes. Bob S > On Apr 26, 2018, at 12:18 , dunbarx via use-livecode wrote: > > Does it make it more palatable to think about it the other way around? There > should be no real difference: > > You have a group where one button is already enabled, and one already > disabled. > > By disabling the group, should the enabled button stay enabled? > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Apr 26 17:22:39 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 26 Apr 2018 14:22:39 -0700 Subject: Open printing to PDF error In-Reply-To: <3bfc10f8-2c5e-1927-1635-ef0a96977977@researchware.com> References: <3D8D8525-435F-460A-9EFA-D1755998D472@iotecdigital.com> <3bfc10f8-2c5e-1927-1635-ef0a96977977@researchware.com> Message-ID: <98990909-4b35-7161-2ec7-df1a2255d442@sonic.net> On 04/26/2018 09:46 AM, Paul Dupuis via use-livecode wrote: > Presumably the folder exists since it was just selected by the user via > the 'answer file' command. I assume that was just a typo, but just in case... you really meant 'answer folder' there, right? -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Thu Apr 26 17:33:41 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 26 Apr 2018 14:33:41 -0700 Subject: Enable/disable Group enables/disables all children In-Reply-To: <1524770288244-0.post@n4.nabble.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> <1524770288244-0.post@n4.nabble.com> Message-ID: <6a6d1d2c-2341-cbc6-8c8d-75d7a3cc4bdf@sonic.net> On 04/26/2018 12:18 PM, dunbarx via use-livecode wrote: > Does it make it more palatable to think about it the other way around? There > should be no real difference: > > You have a group where one button is already enabled, and one already > disabled. > > By disabling the group, should the enabled button stay enabled? Stop confusing me with logic! A different example: If I hide a group with some hidden controls, I expect all the controls in the group to be hidden because the enclosing group is. And when I show the group again, I expect the hidden controls to remain hidden. -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Thu Apr 26 17:48:35 2018 From: paul at researchware.com (Paul Dupuis) Date: Thu, 26 Apr 2018 17:48:35 -0400 Subject: Open printing to PDF error In-Reply-To: <98990909-4b35-7161-2ec7-df1a2255d442@sonic.net> References: <3D8D8525-435F-460A-9EFA-D1755998D472@iotecdigital.com> <3bfc10f8-2c5e-1927-1635-ef0a96977977@researchware.com> <98990909-4b35-7161-2ec7-df1a2255d442@sonic.net> Message-ID: On 4/26/2018 5:22 PM, Mark Wieder via use-livecode wrote: > On 04/26/2018 09:46 AM, Paul Dupuis via use-livecode wrote: > >> Presumably the folder exists since it was just selected by the user via >> the 'answer file' command. > > I assume that was just a typo, but just in case... you really meant > 'answer folder' there, right? > Actually, I meant 'ask file ...' to prompt the user for a standard *save* file dialog to get the file path for the 'open printing to pdf tFile' And by folder exists, I mean the containing folder in the path returned by the 'ask file' dialog. When I am typing fast (like in email posts) I get my ask and answers transposed! From livfoss at mac.com Thu Apr 26 17:53:10 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 26 Apr 2018 23:53:10 +0200 Subject: Mac app code signing for beginners Message-ID: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> In response to messages on both lists, this is an explanation of the way I?ve successfully code-signed apps for Mac using the simplest possible methods. I?m talking about desktop apps made in LC to run on Mac OSX - I am currently using LC9.0. This seems to work for me (of course YMMV). There are very much more complex ways of doing this, which I am sure produce a ?purer? version of the app without surplus stuff in the PLIST. I am leaving out a very large quantity of settings and options, and I?m not taking advantage of the many powerful features of the Code Signing utility I use, App Wrapper 3. So if you are feeling mentally strong, I recommend you try to understand these and take advantage of them. App Wrapper 3 is well documented, and one can also write to Support. Probably a lot of things I?ve done, including signing the installer separately, could be done in better ways. Anyway, HTH. Steps: 1 Create your standalone using the Standalone building features of the IDE. Note that you will need to provide an icon in ?.icns? format for the app itself, and if it has documents, a document icon. For the PLIST material, choose the option to let LiveCode write the PLIST for you, You must name the program - this is the name the user sees. If you have documents, again you have to put in the document type and the extension. I leave out the signature (it just stays at ??????). This doesn?t seem to do any harm in modern versions of OSX. You must all fill in all the version information. Of course you need to check the files to be copied - since my apps tend to be ?splash stack? designs, there are other stacks to be included in the app, plus preference files, manuals etc. Don?t forget any inclusions. 2. Run the standalone to make sure it really works. 3. Now, we need to code sign it. I use App Wrapper 3 (the current version appears to be 3.8.5 - sadly this appears to be a 32-bit app, let?s hope it?s upgraded before Apple deprecates them all this Autumn). App Wrapper 3 wants to know a pile of stuff, but some of it can be ignored if you are not planning to distribute via the Apple Store. I found I had to tell it in its ?General? tab : - The Category (Education, etc) - The minimum OSX - I think a pretty recent version is best, say 10.9 - this will mean less squawking in reports later - The copyright notice (I?m not sure you need this, as the Standalone Maker already recorded one) - The version format - I use ?trim to 3 decimal places - - x.x.x? - The About Box credits - this is free text I check Reset Permissions for the entire application, not sure what this means. I have always found permissions deeply mysterious, but on we go? I never have a Help Book, so I don?t know what do do if you don?t leave this blank, sorry The ?Code Signature? needs to point to whatever valid certificate you have - mine is a ?web distribution? one, which means no Apple Store, but I can offer it on a server, and I do. I use Zip File packing, which I think is the default. I set the destination folder for the signed version and leave the tab at that. For the ?Capabilities? tab, I don?t need anything, but most people will need something related to the OS?s facilities such as Open and Save dialogs - so set what you need. The ?info? tab doesn?t really need you to do anything. The ?Other" gives you the opportunity to remove unwanted languages, but apart from that, leave alone. Now click ?wrap? and App Wrapper should produce a code-signed version of your app in a folder created by App Wrapper. At this point you can can go back to the beginning of App Wrapper?s tabs and get a report. This can seem extremely scary, but really the only thing to worry about is if the code-signing has worked or not. What I regret is that I have not yet understood how to supply complete icon families, so the report says various sizes of icon are missing. This will not stop your app working, but it is still regrettable. If you have mastered all this, you can create an installer with Matthias Rebbe?s InstaMaker or directly with DropDMG (this message doesn?t seek to explain how to do this), and you can code sign the installer, which I do. I feel a bit of a fraud writing all this, but it really has worked for me. So, HTH Graham From dick.kriesel at mail.com Thu Apr 26 17:53:36 2018 From: dick.kriesel at mail.com (Dick Kriesel) Date: Thu, 26 Apr 2018 14:53:36 -0700 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: References: Message-ID: <2E03A12C-5757-4DE1-8F11-31167545D814@mail.com> > On Apr 26, 2018, at 12:14 PM, Brian Milby via use-livecode > wrote: > > tPath can also be thought of as a (proper) list which makes a little more > sense. Mark W would need to answer the why. The following excerpts provide a quote from Mark W: > On Mar 12, 2012, at 10:19 AM, Pete wrote: > >> I'm wondering how you found about about this key values array feature? I >> can't find any mention of it in the dictionary or the reference manual and >> it sure seems like something that should be known! > > On Mar 12, 2012, at 1:18 PM, Dick Kriesel > wrote: > > I found it while looking through bug reports for arrays, in > dated 2008-11-28. So, thanks be to Mark Waddingham and David Bovill for that. > > For convenience, here's Mark's reply to David: > > Thanks for the suggestion. > > This is on the list to include for the next version. In that version with: > put tValue into tArray[tKey] > (indeed anywhere you can currently do tArray[tKey]) > > The meaning of 'tKey' will be extended: > 1) If it is a string then it is as it is now > 2) If it is a numerically keyed array starting at 1, then it will mean: > put tValue into tArray[tKey[1]][tKey[2]]...[tKey[n]] > where is the number of elements in tKey > 3) Otherwise it is an error. > > This will allow you to construct an array containing the path to the key you > want to modify/fetch/delete dynamically. > > I agree, the feature's worth adding into the dictionary and manual. > > -- Dick From bobsneidar at iotecdigital.com Thu Apr 26 17:56:04 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 21:56:04 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: <6a6d1d2c-2341-cbc6-8c8d-75d7a3cc4bdf@sonic.net> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> <1524770288244-0.post@n4.nabble.com> <6a6d1d2c-2341-cbc6-8c8d-75d7a3cc4bdf@sonic.net> Message-ID: <02F6A6A4-6390-402A-A098-2229C77E32E0@iotecdigital.com> Exactly. This is not a point of reason as much as it is a decision someone made a long time ago about how to treat certain properties of objects within a group when the same property of the group was modified. Apparently there is a special case for enabled. Someone decided that enabling a group meant enabling everything IN the group, but that this principle should apply to almost nothing else about groups! Bob S > On Apr 26, 2018, at 14:33 , Mark Wieder via use-livecode wrote: > >> Does it make it more palatable to think about it the other way around? There >> should be no real difference: >> You have a group where one button is already enabled, and one already >> disabled. >> By disabling the group, should the enabled button stay enabled? > > Stop confusing me with logic! > > A different example: > > If I hide a group with some hidden controls, I expect all the controls in the group to be hidden because the enclosing group is. And when I show the group again, I expect the hidden controls to remain hidden. > > -- > Mark Wieder > ahsoftware at gmail.com From brian at milby7.com Thu Apr 26 17:56:10 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 26 Apr 2018 21:56:10 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: <6a6d1d2c-2341-cbc6-8c8d-75d7a3cc4bdf@sonic.net> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> <1524770288244-0.post@n4.nabble.com> <6a6d1d2c-2341-cbc6-8c8d-75d7a3cc4bdf@sonic.net> Message-ID: For that to work, ?enabled? would need to be a triple state inherited property. On Thu, Apr 26, 2018 at 4:34 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 04/26/2018 12:18 PM, dunbarx via use-livecode wrote: > > Does it make it more palatable to think about it the other way around? > There > > should be no real difference: > > > > You have a group where one button is already enabled, and one already > > disabled. > > > > By disabling the group, should the enabled button stay enabled? > > Stop confusing me with logic! > > A different example: > > If I hide a group with some hidden controls, I expect all the controls > in the group to be hidden because the enclosing group is. And when I > show the group again, I expect the hidden controls to remain hidden. > > -- > 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 bobsneidar at iotecdigital.com Thu Apr 26 17:58:37 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 21:58:37 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> <1524770288244-0.post@n4.nabble.com> <6a6d1d2c-2341-cbc6-8c8d-75d7a3cc4bdf@sonic.net> Message-ID: Or else not inherited. Bob S > On Apr 26, 2018, at 14:56 , Brian Milby via use-livecode wrote: > > For that to work, ?enabled? would need to be a triple state inherited > property. From ahsoftware at sonic.net Thu Apr 26 18:03:11 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 26 Apr 2018 15:03:11 -0700 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: References: Message-ID: On 04/26/2018 10:17 AM, Niggemann, Bernd via use-livecode wrote: > If I understand correctly that you want then > > ------------------------- > put "style,hidden" into tPathToHidden > split tPathToHidden by comma > > put "true" into tScriptA[i][tPathToHidden] > ------------------------ > lets you put the constant part of the path into a variable ...which is essentially the same thing Brian suggested... -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Thu Apr 26 18:04:38 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 26 Apr 2018 22:04:38 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> <1524770288244-0.post@n4.nabble.com> <6a6d1d2c-2341-cbc6-8c8d-75d7a3cc4bdf@sonic.net> Message-ID: It was probably driven by the data structure more than anything. To upgrade enabled from one bit to two everywhere would have been non-trivial (including the now required parent check for the value). On Thu, Apr 26, 2018 at 4:59 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Or else not inherited. > > Bob S > > > > On Apr 26, 2018, at 14:56 , Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > For that to work, ?enabled? would need to be a triple state inherited > > property. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Apr 26 18:51:48 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 26 Apr 2018 15:51:48 -0700 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: References: <01caf9d7-60af-79b0-bf8c-380448ce509d@tweedly.net> Message-ID: On Thu, Apr 26, 2018 at 11:58 AM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > I had no clue you could do that! Thank you! > Yeah, but if you're doing any level of *serious* matrix multiplication, there's no substitute for Fortran: it's a basic feature of the language. You can approach the speed by optimizing C, but you're putting in work for what could come from "C=MATMUL(A,B)" (and you're not limited to one-dimensional arrays, either). -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Thu Apr 26 18:55:31 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Apr 2018 15:55:31 -0700 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: <2E03A12C-5757-4DE1-8F11-31167545D814@mail.com> References: <2E03A12C-5757-4DE1-8F11-31167545D814@mail.com> Message-ID: Dick Kriesel to the rescue again! Thanks for that background. Comforting to know it's not merely an anomaly, but a well-considered design decision. It's such a cool thing to be able to do. It will change many algos here... -- Richard Gaskin Fourth World Systems Dick Kriesel wrote: >> On Apr 26, 2018, at 12:14 PM, Brian Milby via use-livecode > wrote: >> >> tPath can also be thought of as a (proper) list which makes a little more >> sense. Mark W would need to answer the why. > > The following excerpts provide a quote from Mark W: > >> On Mar 12, 2012, at 10:19 AM, Pete wrote: >> >>> I'm wondering how you found about about this key values array feature? I >>> can't find any mention of it in the dictionary or the reference manual and >>> it sure seems like something that should be known! >> > > >> On Mar 12, 2012, at 1:18 PM, Dick Kriesel > wrote: >> >> I found it while looking through bug reports for arrays, in > dated 2008-11-28. So, thanks be to Mark Waddingham and David Bovill for that. >> >> For convenience, here's Mark's reply to David: >> >> Thanks for the suggestion. >> >> This is on the list to include for the next version. In that version with: >> put tValue into tArray[tKey] >> (indeed anywhere you can currently do tArray[tKey]) >> >> The meaning of 'tKey' will be extended: >> 1) If it is a string then it is as it is now >> 2) If it is a numerically keyed array starting at 1, then it will mean: >> put tValue into tArray[tKey[1]][tKey[2]]...[tKey[n]] >> where is the number of elements in tKey >> 3) Otherwise it is an error. >> >> This will allow you to construct an array containing the path to the key you >> want to modify/fetch/delete dynamically. >> >> I agree, the feature's worth adding into the dictionary and manual. >> >> -- Dick From gcanyon at gmail.com Thu Apr 26 19:00:39 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 26 Apr 2018 16:00:39 -0700 Subject: TOOLS ROUNDUP! TOOLS ROUNDUP! In-Reply-To: References: Message-ID: On Tue, Apr 3, 2018 at 8:30 AM, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > a stack that will build a text file of the scripts of > all of the open (non-IDE) stacks (except itself). ?I just saw this. FYI, in Navigator you can right-click on any selection of items and then select "Scripts > Copy" to set the clipboard to the scripts for the selected objects, or "Scripts > Copy Enclosed" to copy all the scripts for the objects within the selected objects. So to get the behavior you're describing you would select "Stack List" on the Stack menu, then select all the stacks, then right click and select "Scripts > Copy Enclosed". Then paste wherever you like. It doesn't account for behaviors at all at present -- they weren't a thing when I wrote the code. If anyone has suggestions regarding that, or the format of the output, I'm happy to hear them. The output includes the long name and long id of each control, like this: ------------------------------------------------------------ ------------------------------------------------------------ -- scrollbar "Topics" of card id 1003 of stack "/Users/gcanyon/Desktop/relay redux.livecode" -- scrollbar id 1006 of card id 1003 of stack "/Users/gcanyon/Desktop/relay redux.livecode" ------------------------------------------------------------ ------------------------------------------------------------ on scrollbarDrag p put round(2^(p/10)) * 10 into fld (the short name of me) set the endvalue of scrollbar "interest level" to 2 * p div 3 end scrollbarDrag ------------------------------------------------------------ ------------------------------------------------------------ -- card id 1002 of stack "/Users/gcanyon/Desktop/relay redux.livecode" -- card id 1002 of stack "/Users/gcanyon/Desktop/relay redux.livecode" ------------------------------------------------------------ ------------------------------------------------------------ etc. From bobsneidar at iotecdigital.com Thu Apr 26 19:13:36 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Apr 2018 23:13:36 +0000 Subject: Detailed File Information for One File Message-ID: I can't find anything on the forums, which is par for the course, evwn though I know it's been discussed. Is there an LC way to get details about a file without shelling out to do it? I need to get the last modified date of a file so I can check to see if I need to update the version in a database when importing it. I would very much NOT like having to get the detailed files of a folder and filter for the file I am looking for as I already have a path to the actual file, and a folder may contain a lot of files. Bob S From ambassador at fourthworld.com Thu Apr 26 19:25:50 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Apr 2018 16:25:50 -0700 Subject: Detailed File Information for One File In-Reply-To: References: Message-ID: <36403091-b801-a156-7fc5-8c3fb057ee89@fourthworld.com> Bob Sneidar wrote: > I can't find anything on the forums, which is par for the course, evwn > though I know it's been discussed. Is there an LC way to get details > about a file without shelling out to do it? I need to get the last > modified date of a file so I can check to see if I need to update the > version in a database when importing it. I would very much NOT like > having to get the detailed files of a folder and filter for the file I > am looking for as I already have a path to the actual file, and a > folder may contain a lot of files. I do not believe this has been implemented yet: https://quality.livecode.com/show_bug.cgi?id=20384 That said, wasteful as "the detailed files" is it's probably more efficient in most cases than the overhead of initing a shell session. I've had good performance even in directories with tens of thousands of files. -- 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 Thu Apr 26 19:26:53 2018 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 27 Apr 2018 00:26:53 +0100 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: References: <2E03A12C-5757-4DE1-8F11-31167545D814@mail.com> Message-ID: Thanks Brian, Bernd, and everyone else. When I first saw it (in the form described in Brian's email), I thought - hmmm, not sure when anyone would use that. Then I saw an example using split (as described in Bernd's email), and thought - maybe I can use that some day. :-) Well - the day has come. I realized that the "Tree View" widget has a property (hilitedElement) which is the "path" through the array of the highlighted line - and is the ideal use case for this feature. And now that I've started using that, I can find *SO* many other uses for it. My "directory walker" produces an array indexed by folder, then filename - and the values are some useful info about the file; e.g. tArray[tFolder][tFilename] === the info I want to keep I can now put that into a tree view array just by doing *repeat* foreachkeyK intAflat* ?? replace*"/"with"/ "intemp*??? -- trick names to keep folders before files ?? split*temp by"/"* ?? put*tAflat[K] intotA[temp]* end* *repeat* *set the arrayData of widget "Tree" to tA* *Thanks again* *Alex. * On 26/04/2018 23:55, Richard Gaskin via use-livecode wrote: > Dick Kriesel to the rescue again!? Thanks for that background. > Comforting to know it's not merely an anomaly, but a well-considered > design decision. > > It's such a cool thing to be able to do.? It will change many algos > here... > From htorrado at networkdreams.es Thu Apr 26 21:48:23 2018 From: htorrado at networkdreams.es (Heriberto Torrado) Date: Thu, 26 Apr 2018 21:48:23 -0400 Subject: Splitting long elements into two lines in an Option Menu Message-ID: Dear Livecode programmers, I need you good expertise again. I'm development an small app for a French insurance company. I have an option menu button. Some elements in this option menu are very large. Example: /Dialyse r?nale, insuffisance r?nale, maladie r?naleDID, diab?te de type 1//,//diab?te insulino d?pendant/ These elements doesn't fit on a small phone screen. So the question is: How can I divide this item into two different lines? I need that when customer clicking on this object in the "option menu", both lines are selected. In fact: The two lines have to be the same. I tried putting returns, "/", etc. but nothing seems to work. Than you very much in advance. All the best, Heriberto Torrado From dunbarx at aol.com Fri Apr 27 00:32:41 2018 From: dunbarx at aol.com (dunbarx) Date: Thu, 26 Apr 2018 21:32:41 -0700 (MST) Subject: Splitting long elements into two lines in an Option Menu In-Reply-To: References: Message-ID: <1524803561759-0.post@n4.nabble.com> Hi. If I were you, with the task you laid out, I would not use an option menu. It is not good with wide menuItems, and it is not natural, if even possible, to select multiple lines in the way you want. Use a list field instead. A field has many properties that are denied an optionMenu, which is really just a button. You can have multiple lines selected, by trapping "mouseUp", say, and with the clickLine, select the following line as well. Or the following five. Or the previous. That sort of thing. A field just is far more able in this regard. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From terry.judd at unimelb.edu.au Fri Apr 27 00:41:14 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 27 Apr 2018 04:41:14 +0000 Subject: Splitting long elements into two lines in an Option Menu In-Reply-To: <1524803561759-0.post@n4.nabble.com> References: <1524803561759-0.post@n4.nabble.com> Message-ID: <909BF011-5745-4B6D-91EC-471A810300D6@unimelb.edu.au> Or perhaps use a form type datagrid - which will allow you to present and select multi-lined option more readily. Regards, Terry... ?On 27/04/2018 2:33 pm, "use-livecode on behalf of dunbarx via use-livecode" wrote: Hi. If I were you, with the task you laid out, I would not use an option menu. It is not good with wide menuItems, and it is not natural, if even possible, to select multiple lines in the way you want. Use a list field instead. A field has many properties that are denied an optionMenu, which is really just a button. You can have multiple lines selected, by trapping "mouseUp", say, and with the clickLine, select the following line as well. Or the following five. Or the previous. That sort of thing. A field just is far more able in this regard. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html _______________________________________________ use-livecode mailing list use-livecode at 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 Fri Apr 27 01:36:08 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 27 Apr 2018 00:36:08 -0500 Subject: Splitting long elements into two lines in an Option Menu In-Reply-To: <909BF011-5745-4B6D-91EC-471A810300D6@unimelb.edu.au> References: <1524803561759-0.post@n4.nabble.com> <909BF011-5745-4B6D-91EC-471A810300D6@unimelb.edu.au> Message-ID: <1630599fd40.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Or use a normal field as Craig suggested and create soft-wrapped lines by inserting ASCII 11 at line breaks. These select as normal lines but visually appear as separate lines. >From the 5.5 release notes: The engine will now interpret a numToChar(11) character in a field paragraph as an explicit line- break when the (effective) dontWrap of the paragraph is false. This allows multiple ?lines? to be displayed within a single paragraph. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On April 26, 2018 11:43:16 PM Terry Judd via use-livecode wrote: > Or perhaps use a form type datagrid - which will allow you to present and > select multi-lined option more readily. > > Regards, > > Terry... > >?On 27/04/2018 2:33 pm, "use-livecode on behalf of dunbarx via >use-livecode" use-livecode at lists.runrev.com> wrote: > > Hi. > > If I were you, with the task you laid out, I would not use an option menu. > It is not good with wide menuItems, and it is not natural, if even possible, > to select multiple lines in the way you want. > > Use a list field instead. A field has many properties that are denied an > optionMenu, which is really just a button. > > You can have multiple lines selected, by trapping "mouseUp", say, and with > the clickLine, select the following line as well. Or the following five. Or > the previous. That sort of thing. A field just is far more able in this > regard. > > Craig Newman > > > > -- > Sent from: > http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode 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 livecode.com Fri Apr 27 02:15:17 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 27 Apr 2018 08:15:17 +0200 Subject: Enable/disable Group enables/disables all children In-Reply-To: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> Message-ID: On 2018-04-26 19:06, Bob Sneidar via use-livecode wrote: > Hi all. > > I have a group that contains a number of objects, buttons, menus, > fuelds and groups. I just noticed that if I disable a group (so that > none of the objects in the group can be interacted with) I get the > desired effect. However when re-enabling the group, it *ALSO* > re-enables ALL the objects in that group, no matter what their status > was prior to disabling the group. > > Is that the expected behavior? If not I will file a bug report. If so, > I will have to find another way to disable all the objects in a group, > or else trap for the action, and save the enabled property for every > containing object so I can reset them. It has been like that forever - there is an anomaly for it: https://quality.livecode.com/show_bug.cgi?id=14881 The 'disabled' property should be effectively computed as the logical and of all the parent's property values (kind of like inherited properties, but with a different operation merging parent and child values), a bit like visible is - why it was never done that way originally is a question to which I do not have an answer! The problem with 'just' fixing it is that it is not possible to determine with the current behavior what the 'disabled' setting of any control is meant to be. If it is changed, then all controls in disabled groups which exist now will remain disabled - everyone would have to go through all their stacks and set the enablement of children appropriately. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Apr 27 03:04:00 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 27 Apr 2018 09:04:00 +0200 Subject: Enable/disable Group enables/disables all children In-Reply-To: References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> Message-ID: On 2018-04-27 08:15, Mark Waddingham via use-livecode wrote: > The 'disabled' property should be effectively computed as the logical > and of all the parent's property values This should be 'logical or' - i.e. a control is disabled if any one of its parent controls is. It is 'logical and' for the enabled property (which is just the 'not' of disabled, of course). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ali.lloyd at livecode.com Fri Apr 27 03:21:38 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Fri, 27 Apr 2018 07:21:38 +0000 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: References: <2E03A12C-5757-4DE1-8F11-31167545D814@mail.com> Message-ID: Which reminds me - the tree view widget should probably use the list form of a path directly instead of fettling with a path delimiter property On Fri, Apr 27, 2018 at 12:26 AM Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks Brian, Bernd, and everyone else. > > When I first saw it (in the form described in Brian's email), I thought > - hmmm, not sure when anyone would use that. > > Then I saw an example using split (as described in Bernd's email), and > thought - maybe I can use that some day. :-) > > Well - the day has come. I realized that the "Tree View" widget has a > property (hilitedElement) which is the "path" through the array of the > highlighted line - and is the ideal use case for this feature. > > And now that I've started using that, I can find *SO* many other uses > for it. > > My "directory walker" produces an array indexed by folder, then filename > - and the values are some useful info about the file; e.g. > tArray[tFolder][tFilename] === the info I want to keep > > I can now put that into a tree view array just by doing > > *repeat* foreachkeyK intAflat* > replace*"/"with"/ "intemp* -- trick names to keep folders before > files > split*temp by"/"* > put*tAflat[K] intotA[temp]* > end* *repeat* > > *set the arrayData of widget "Tree" to tA* > > *Thanks again* > > *Alex. > * > > > On 26/04/2018 23:55, Richard Gaskin via use-livecode wrote: > > Dick Kriesel to the rescue again! Thanks for that background. > > Comforting to know it's not merely an anomaly, but a well-considered > > design decision. > > > > It's such a cool thing to be able to do. It will change many algos > > here... > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 27 04:50:05 2018 From: camm29 at tesco.net (Camm) Date: Fri, 27 Apr 2018 08:50:05 +0000 (UTC) Subject: Hex to Decimal 2s Complement Message-ID: <1996263773.241403.1524819005319.JavaMail.root@md01.topaz.synacor.com> Hi , Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range 0000 - FFFF Example :- FFCC = -52 014A = 330 Kind Regards Camm From richmondmathewson at gmail.com Fri Apr 27 05:01:17 2018 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 27 Apr 2018 12:01:17 +0300 Subject: Hex to Decimal 2s Complement In-Reply-To: <1996263773.241403.1524819005319.JavaMail.root@md01.topaz.synacor.com> References: <1996263773.241403.1524819005319.JavaMail.root@md01.topaz.synacor.com> Message-ID: Check out *baseConvert* in the dictionary. Richmond. On 27.04.2018 11:50, Camm via use-livecode wrote: > Hi , > > > Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range 0000 - FFFF > > > > > Example :- > > > FFCC = -52 > > > 014A = 330 > > > Kind 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 Fri Apr 27 05:06:08 2018 From: camm29 at tesco.net (Camm) Date: Fri, 27 Apr 2018 09:06:08 +0000 (UTC) Subject: Hex to Decimal 2s Complement In-Reply-To: Message-ID: <1927913315.241613.1524819968031.JavaMail.root@md01.topaz.synacor.com> Richmond , Tried baseconvert but could not get the correct result for 2s Complement. Regards Camm ----- Original Message ----- From: "Richmond via use-livecode" To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:01:17 AM Subject: Re: Hex to Decimal 2s Complement Check out *baseConvert* in the dictionary. Richmond. On 27.04.2018 11:50, Camm via use-livecode wrote: > Hi , > > > Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range 0000 - FFFF > > > > > Example :- > > > FFCC = -52 > > > 014A = 330 > > > Kind 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 richmondmathewson at gmail.com Fri Apr 27 05:09:56 2018 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 27 Apr 2018 12:09:56 +0300 Subject: Splitting long elements into two lines in an Option Menu In-Reply-To: References: Message-ID: <248f7389-aff8-65f8-9bdf-61f74ce3c1f7@gmail.com> I've just set up a stack containing 2 fields; one called "fff" containing your original string, another called "fCHOPPED" that is a scrolling list field. I have a button containing this script: on mouseUp ?? put fld "fff" into FFF ?? set the itemDelimiter to "," ?? put 1 into KOUNT ?? repeat until item KOUNT of FFF is empty ????? put item KOUNT of FFF into line KOUNT of fld "fCHOPPED" ????? add 1 to KOUNT ?? end repeat end mouseUp which puts the string into the scrolling list field like this: /Dialyse r?nale ?insuffisance r?nale ?maladie r?naleDID ?diab?te de type 1// //diab?te insulino d?pendant/ Richmond. On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote: > /Dialyse r?nale, insuffisance r?nale, maladie r?naleDID, diab?te de > type 1//,//diab?te insulino d?pendant/ From richmondmathewson at gmail.com Fri Apr 27 05:11:19 2018 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 27 Apr 2018 12:11:19 +0300 Subject: Hex to Decimal 2s Complement In-Reply-To: <1927913315.241613.1524819968031.JavaMail.root@md01.topaz.synacor.com> References: <1927913315.241613.1524819968031.JavaMail.root@md01.topaz.synacor.com> Message-ID: Well, unless you can explain to me what "2s Complement" means I cannot help you. Richmond. On 27.04.2018 12:06, Camm via use-livecode wrote: > Richmond , > > Tried baseconvert but could not get the correct result for 2s Complement. > > Regards > Camm > > ----- Original Message ----- > From: "Richmond via use-livecode" > To: "Camm via use-livecode" > Cc: "Richmond" > Sent: Friday, 27 April, 2018 10:01:17 AM > Subject: Re: Hex to Decimal 2s Complement > > Check out *baseConvert* in the dictionary. > > Richmond. > > > On 27.04.2018 11:50, Camm via use-livecode wrote: >> Hi , >> >> >> Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range 0000 - FFFF >> >> >> >> >> Example :- >> >> >> FFCC = -52 >> >> >> 014A = 330 >> >> >> Kind 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 27 05:17:42 2018 From: camm29 at tesco.net (Camm) Date: Fri, 27 Apr 2018 09:17:42 +0000 (UTC) Subject: Hex to Decimal 2s Complement In-Reply-To: Message-ID: <1190230958.241753.1524820662414.JavaMail.root@md01.topaz.synacor.com> Two's complement is a mathematical operation on binary numbers, best known for its role in computing as a method of signed number representation. For this reason, it is the most important example of a radix complement. The two's complement of an N-bit number is defined as its complement with respect to 2N. For instance, for the three-bit number 010, the two's complement is 110, because 010 + 110 = 1000. Regards Camm ----- Original Message ----- From: "Richmond via use-livecode" To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:11:19 AM Subject: Re: Hex to Decimal 2s Complement Well, unless you can explain to me what "2s Complement" means I cannot help you. Richmond. On 27.04.2018 12:06, Camm via use-livecode wrote: > Richmond , > > Tried baseconvert but could not get the correct result for 2s Complement. > > Regards > Camm > > ----- Original Message ----- > From: "Richmond via use-livecode" > To: "Camm via use-livecode" > Cc: "Richmond" > Sent: Friday, 27 April, 2018 10:01:17 AM > Subject: Re: Hex to Decimal 2s Complement > > Check out *baseConvert* in the dictionary. > > Richmond. > > > On 27.04.2018 11:50, Camm via use-livecode wrote: >> Hi , >> >> >> Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range 0000 - FFFF >> >> >> >> >> Example :- >> >> >> FFCC = -52 >> >> >> 014A = 330 >> >> >> Kind 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri Apr 27 05:22:36 2018 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 27 Apr 2018 12:22:36 +0300 Subject: Hex to Decimal 2s Complement In-Reply-To: <1190230958.241753.1524820662414.JavaMail.root@md01.topaz.synacor.com> References: <1190230958.241753.1524820662414.JavaMail.root@md01.topaz.synacor.com> Message-ID: I think you will have to perform several operations here: 1. convert Hex number to Binary number. 2. find Complement of Binary number. 3. convert Complement to Decimal number. Your "main problem" is that YOU have to work out the algorhythm to get the complement as LiveCode does not have that built-in to its system. Richmond. On 27.04.2018 12:17, Camm via use-livecode wrote: > Two's complement is a mathematical operation on binary numbers, best known for its role in computing as a method of signed number representation. For this reason, it is the most important example of a radix complement. > > The two's complement of an N-bit number is defined as its complement with respect to 2N. For instance, for the three-bit number 010, the two's complement is 110, because 010 + 110 = 1000. > > Regards > Camm > ----- Original Message ----- > From: "Richmond via use-livecode" > To: "Camm via use-livecode" > Cc: "Richmond" > Sent: Friday, 27 April, 2018 10:11:19 AM > Subject: Re: Hex to Decimal 2s Complement > > Well, unless you can explain to me what "2s Complement" means I cannot > help you. > > Richmond. > > > On 27.04.2018 12:06, Camm via use-livecode wrote: >> Richmond , >> >> Tried baseconvert but could not get the correct result for 2s Complement. >> >> Regards >> Camm >> >> ----- Original Message ----- >> From: "Richmond via use-livecode" >> To: "Camm via use-livecode" >> Cc: "Richmond" >> Sent: Friday, 27 April, 2018 10:01:17 AM >> Subject: Re: Hex to Decimal 2s Complement >> >> Check out *baseConvert* in the dictionary. >> >> Richmond. >> >> >> On 27.04.2018 11:50, Camm via use-livecode wrote: >>> Hi , >>> >>> >>> Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range 0000 - FFFF >>> >>> >>> >>> >>> Example :- >>> >>> >>> FFCC = -52 >>> >>> >>> 014A = 330 >>> >>> >>> Kind 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 camm29 at tesco.net Fri Apr 27 05:27:46 2018 From: camm29 at tesco.net (Camm) Date: Fri, 27 Apr 2018 09:27:46 +0000 (UTC) Subject: Hex to Decimal 2s Complement In-Reply-To: Message-ID: <1786398241.241885.1524821266844.JavaMail.root@md01.topaz.synacor.com> Richmond , Yes , thanks I have seen xor(Hex) +1 , but just asking if anyone has a solution ? FFCC = -52 014A = 330 Anyone ? Regards Camm ----- Original Message ----- From: "Richmond via use-livecode" To: "Camm via use-livecode" Cc: "Richmond" Sent: Friday, 27 April, 2018 10:22:36 AM Subject: Re: Hex to Decimal 2s Complement I think you will have to perform several operations here: 1. convert Hex number to Binary number. 2. find Complement of Binary number. 3. convert Complement to Decimal number. Your "main problem" is that YOU have to work out the algorhythm to get the complement as LiveCode does not have that built-in to its system. Richmond. On 27.04.2018 12:17, Camm via use-livecode wrote: > Two's complement is a mathematical operation on binary numbers, best known for its role in computing as a method of signed number representation. For this reason, it is the most important example of a radix complement. > > The two's complement of an N-bit number is defined as its complement with respect to 2N. For instance, for the three-bit number 010, the two's complement is 110, because 010 + 110 = 1000. > > Regards > Camm > ----- Original Message ----- > From: "Richmond via use-livecode" > To: "Camm via use-livecode" > Cc: "Richmond" > Sent: Friday, 27 April, 2018 10:11:19 AM > Subject: Re: Hex to Decimal 2s Complement > > Well, unless you can explain to me what "2s Complement" means I cannot > help you. > > Richmond. > > > On 27.04.2018 12:06, Camm via use-livecode wrote: >> Richmond , >> >> Tried baseconvert but could not get the correct result for 2s Complement. >> >> Regards >> Camm >> >> ----- Original Message ----- >> From: "Richmond via use-livecode" >> To: "Camm via use-livecode" >> Cc: "Richmond" >> Sent: Friday, 27 April, 2018 10:01:17 AM >> Subject: Re: Hex to Decimal 2s Complement >> >> Check out *baseConvert* in the dictionary. >> >> Richmond. >> >> >> On 27.04.2018 11:50, Camm via use-livecode wrote: >>> Hi , >>> >>> >>> Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range 0000 - FFFF >>> >>> >>> >>> >>> Example :- >>> >>> >>> FFCC = -52 >>> >>> >>> 014A = 330 >>> >>> >>> Kind 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 alex at tweedly.net Fri Apr 27 05:41:27 2018 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 27 Apr 2018 10:41:27 +0100 Subject: Hex to Decimal 2s Complement In-Reply-To: <1786398241.241885.1524821266844.JavaMail.root@md01.topaz.synacor.com> References: <1786398241.241885.1524821266844.JavaMail.root@md01.topaz.synacor.com> Message-ID: I should know this - but don't any more :-) So there may be a corner case to fix up - but in general, something like *put*thetextoffld"F"intotemp* put*baseconvert(temp,16,10) intot1* if* t1 > 32767*then* *put*t1-65536intot1* end* *if* should do it. -- Alex. On 27/04/2018 10:27, Camm via use-livecode wrote: > Richmond , > > Yes , thanks > > I have seen xor(Hex) +1 , but just asking if anyone has a solution ? > > FFCC = -52 > > 014A = 330 > > Anyone ? > > Regards > Camm > > ----- Original Message ----- > From: "Richmond via use-livecode" > To: "Camm via use-livecode" > Cc: "Richmond" > Sent: Friday, 27 April, 2018 10:22:36 AM > Subject: Re: Hex to Decimal 2s Complement > > I think you will have to perform several operations here: > > 1. convert Hex number to Binary number. > > 2. find Complement of Binary number. > > 3. convert Complement to Decimal number. > > Your "main problem" is that YOU have to work out the algorhythm to > > get the complement as LiveCode does not have that built-in to its system. > > Richmond. > > > On 27.04.2018 12:17, Camm via use-livecode wrote: >> Two's complement is a mathematical operation on binary numbers, best known for its role in computing as a method of signed number representation. For this reason, it is the most important example of a radix complement. >> >> The two's complement of an N-bit number is defined as its complement with respect to 2N. For instance, for the three-bit number 010, the two's complement is 110, because 010 + 110 = 1000. >> >> Regards >> Camm >> ----- Original Message ----- >> From: "Richmond via use-livecode" >> To: "Camm via use-livecode" >> Cc: "Richmond" >> Sent: Friday, 27 April, 2018 10:11:19 AM >> Subject: Re: Hex to Decimal 2s Complement >> >> Well, unless you can explain to me what "2s Complement" means I cannot >> help you. >> >> Richmond. >> >> >> On 27.04.2018 12:06, Camm via use-livecode wrote: >>> Richmond , >>> >>> Tried baseconvert but could not get the correct result for 2s Complement. >>> >>> Regards >>> Camm >>> >>> ----- Original Message ----- >>> From: "Richmond via use-livecode" >>> To: "Camm via use-livecode" >>> Cc: "Richmond" >>> Sent: Friday, 27 April, 2018 10:01:17 AM >>> Subject: Re: Hex to Decimal 2s Complement >>> >>> Check out *baseConvert* in the dictionary. >>> >>> Richmond. >>> >>> >>> On 27.04.2018 11:50, Camm via use-livecode wrote: >>>> Hi , >>>> >>>> >>>> Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range 0000 - FFFF >>>> >>>> >>>> >>>> >>>> Example :- >>>> >>>> >>>> FFCC = -52 >>>> >>>> >>>> 014A = 330 >>>> >>>> >>>> Kind 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 >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 lists at mangomultimedia.com Fri Apr 27 07:29:46 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 27 Apr 2018 11:29:46 +0000 Subject: Open printing to PDF error In-Reply-To: References: Message-ID: On Thu, Apr 26, 2018 at 9:36 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a user who ran into the error "printing: Unknown destination: > (Line 0, column 0)" when executing a line in my code that was "Open > printing to PDF " Try testing a filename that has accented characters in it and see if that triggers the error. ? Trevor DeVore ScreenSteps > From camm29 at tesco.net Fri Apr 27 07:33:56 2018 From: camm29 at tesco.net (Camm) Date: Fri, 27 Apr 2018 11:33:56 +0000 (UTC) Subject: Hex to Decimal 2s Complement In-Reply-To: Message-ID: <1696652169.243786.1524828836249.JavaMail.root@md01.topaz.synacor.com> Alex , You got it ! I forgot the > 32767 !! Great thanks Camm ----- Original Message ----- From: "Alex Tweedly via use-livecode" To: use-livecode at lists.runrev.com Cc: "Alex Tweedly" Sent: Friday, 27 April, 2018 10:41:27 AM Subject: Re: Hex to Decimal 2s Complement I should know this - but don't any more :-) So there may be a corner case to fix up - but in general, something like *put*thetextoffld"F"intotemp* put*baseconvert(temp,16,10) intot1* if* t1 > 32767*then* *put*t1-65536intot1* end* *if* should do it. -- Alex. On 27/04/2018 10:27, Camm via use-livecode wrote: > Richmond , > > Yes , thanks > > I have seen xor(Hex) +1 , but just asking if anyone has a solution ? > > FFCC = -52 > > 014A = 330 > > Anyone ? > > Regards > Camm > > ----- Original Message ----- > From: "Richmond via use-livecode" > To: "Camm via use-livecode" > Cc: "Richmond" > Sent: Friday, 27 April, 2018 10:22:36 AM > Subject: Re: Hex to Decimal 2s Complement > > I think you will have to perform several operations here: > > 1. convert Hex number to Binary number. > > 2. find Complement of Binary number. > > 3. convert Complement to Decimal number. > > Your "main problem" is that YOU have to work out the algorhythm to > > get the complement as LiveCode does not have that built-in to its system. > > Richmond. > > > On 27.04.2018 12:17, Camm via use-livecode wrote: >> Two's complement is a mathematical operation on binary numbers, best known for its role in computing as a method of signed number representation. For this reason, it is the most important example of a radix complement. >> >> The two's complement of an N-bit number is defined as its complement with respect to 2N. For instance, for the three-bit number 010, the two's complement is 110, because 010 + 110 = 1000. >> >> Regards >> Camm >> ----- Original Message ----- >> From: "Richmond via use-livecode" >> To: "Camm via use-livecode" >> Cc: "Richmond" >> Sent: Friday, 27 April, 2018 10:11:19 AM >> Subject: Re: Hex to Decimal 2s Complement >> >> Well, unless you can explain to me what "2s Complement" means I cannot >> help you. >> >> Richmond. >> >> >> On 27.04.2018 12:06, Camm via use-livecode wrote: >>> Richmond , >>> >>> Tried baseconvert but could not get the correct result for 2s Complement. >>> >>> Regards >>> Camm >>> >>> ----- Original Message ----- >>> From: "Richmond via use-livecode" >>> To: "Camm via use-livecode" >>> Cc: "Richmond" >>> Sent: Friday, 27 April, 2018 10:01:17 AM >>> Subject: Re: Hex to Decimal 2s Complement >>> >>> Check out *baseConvert* in the dictionary. >>> >>> Richmond. >>> >>> >>> On 27.04.2018 11:50, Camm via use-livecode wrote: >>>> Hi , >>>> >>>> >>>> Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range 0000 - FFFF >>>> >>>> >>>> >>>> >>>> Example :- >>>> >>>> >>>> FFCC = -52 >>>> >>>> >>>> 014A = 330 >>>> >>>> >>>> Kind 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 >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 roger.e.eller at sealedair.com Fri Apr 27 07:46:18 2018 From: roger.e.eller at sealedair.com (Eller, Roger) Date: Fri, 27 Apr 2018 11:46:18 +0000 Subject: Detailed File Information for One File In-Reply-To: <36403091-b801-a156-7fc5-8c3fb057ee89@fourthworld.com> References: , <36403091-b801-a156-7fc5-8c3fb057ee89@fourthworld.com> Message-ID: If you have the path and filename, you could create a subfolder "temp" just for the purpose of reading the details of a single file. ## THIS IS NOT A SCRIPT -- LOL move the file into "temp". get the detailed fiiles. move the file from "temp" back to where you got it from. ~Roger ________________________________ From: use-livecode on behalf of Richard Gaskin via use-livecode Sent: Thursday, April 26, 2018 7:25:50 PM To: use-livecode at lists.runrev.com Cc: Richard Gaskin Subject: Re: Detailed File Information for One File Bob Sneidar wrote: > I can't find anything on the forums, which is par for the course, evwn > though I know it's been discussed. Is there an LC way to get details > about a file without shelling out to do it? I need to get the last > modified date of a file so I can check to see if I need to update the > version in a database when importing it. I would very much NOT like > having to get the detailed files of a folder and filter for the file I > am looking for as I already have a path to the actual file, and a > folder may contain a lot of files. I do not believe this has been implemented yet: https://quality.livecode.com/show_bug.cgi?id=20384 That said, wasteful as "the detailed files" is it's probably more efficient in most cases than the overhead of initing a shell session. I've had good performance even in directories with tens of thousands of files. -- 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 Fri Apr 27 10:40:59 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 Apr 2018 14:40:59 +0000 Subject: Detailed File Information for One File In-Reply-To: <36403091-b801-a156-7fc5-8c3fb057ee89@fourthworld.com> References: <36403091-b801-a156-7fc5-8c3fb057ee89@fourthworld.com> Message-ID: <162126D8-4B9A-48D2-83E5-E5D4D1D59D4F@iotecdigital.com> I added my 2? Bob S > On Apr 26, 2018, at 16:25 , Richard Gaskin via use-livecode wrote: > > I do not believe this has been implemented yet: > https://quality.livecode.com/show_bug.cgi?id=20384 > > That said, wasteful as "the detailed files" is it's probably more efficient in most cases than the overhead of initing a shell session. I've had good performance even in directories with tens of thousands of files. > > -- > Richard Gaskin From bobsneidar at iotecdigital.com Fri Apr 27 10:43:31 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 Apr 2018 14:43:31 +0000 Subject: Detailed File Information for One File In-Reply-To: References: <36403091-b801-a156-7fc5-8c3fb057ee89@fourthworld.com> Message-ID: <30B07E1C-8D22-4179-B731-30B4E13144F2@iotecdigital.com> Funny you should mention that. I thought about doing this, but then I have to think about checking to see if the file is open somewhere else. In some cases it would work though. As an aside, I noticed yesterday that modifying a file on MacOS updates not only the modify date but the CREATION DATE as well!! Who thought that was a good idea?? Bob S > On Apr 27, 2018, at 04:46 , Eller, Roger via use-livecode wrote: > > If you have the path and filename, you could create a subfolder "temp" just for the purpose of reading the details of a single file. > > > ## THIS IS NOT A SCRIPT -- LOL > > move the file into "temp". > > get the detailed fiiles. > > move the file from "temp" back to where you got it from. > > > ~Roger From bobsneidar at iotecdigital.com Fri Apr 27 10:47:39 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 Apr 2018 14:47:39 +0000 Subject: Splitting long elements into two lines in an Option Menu In-Reply-To: <248f7389-aff8-65f8-9bdf-61f74ce3c1f7@gmail.com> References: <248f7389-aff8-65f8-9bdf-61f74ce3c1f7@gmail.com> Message-ID: <1C16B460-A115-4BF7-86B0-AF29444A80AB@iotecdigital.com> On a mobile device?? Bob S > On Apr 27, 2018, at 02:09 , Richmond via use-livecode wrote: > > I've just set up a stack containing 2 fields; one called "fff" containing your > > original string, another called "fCHOPPED" that is a scrolling list field. > > I have a button containing this script: > > on mouseUp > put fld "fff" into FFF > set the itemDelimiter to "," > put 1 into KOUNT > repeat until item KOUNT of FFF is empty > put item KOUNT of FFF into line KOUNT of fld "fCHOPPED" > add 1 to KOUNT > end repeat > end mouseUp > > which puts the string into the scrolling list field like this: > > /Dialyse r?nale > insuffisance r?nale > maladie r?naleDID > diab?te de type 1// > //diab?te insulino d?pendant/ > > Richmond. > > > On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote: >> /Dialyse r?nale, insuffisance r?nale, maladie r?naleDID, diab?te de type 1//,//diab?te insulino d?pendant/ > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 27 10:51:21 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 Apr 2018 14:51:21 +0000 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: References: <2E03A12C-5757-4DE1-8F11-31167545D814@mail.com> Message-ID: <597D4D7E-8B28-4716-8531-AD02E51955EA@iotecdigital.com> Fettling! I'm going to start using that! fet?tle ?fedl/ verb gerund or present participle: fettling ? trim or clean the rough edges of (a metal casting or a piece of pottery) before firing. Apparently appropriate as well. Pronounced like feddle, likely where we get our fiddle with. And I always thought it was a reference to playing a violin-like musical instrument! Bob S > On Apr 27, 2018, at 24:21 , Ali Lloyd via use-livecode wrote: > > Which reminds me - the tree view widget should probably use the list form > of a path directly instead of fettling with a path delimiter property From bobsneidar at iotecdigital.com Fri Apr 27 10:57:22 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 Apr 2018 14:57:22 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> Message-ID: Darned if you do, darned if you don't. I get it. Still, looking at your example, it begs the question, what was the state of the enabled property for the individual objects before the parent group was disabled? The current situation is exactly what your objection describes. :-) I worked around it by resending selectionChanged to the datagrid that these controls reflect, which sets the controls enabled property according to certain conditions. Bob S > On Apr 26, 2018, at 23:15 , Mark Waddingham via use-livecode wrote: > >> Hi all. >> I have a group that contains a number of objects, buttons, menus, >> fuelds and groups. I just noticed that if I disable a group (so that >> none of the objects in the group can be interacted with) I get the >> desired effect. However when re-enabling the group, it *ALSO* >> re-enables ALL the objects in that group, no matter what their status >> was prior to disabling the group. >> Is that the expected behavior? If not I will file a bug report. If so, >> I will have to find another way to disable all the objects in a group, >> or else trap for the action, and save the enabled property for every >> containing object so I can reset them. > > It has been like that forever - there is an anomaly for it: https://quality.livecode.com/show_bug.cgi?id=14881 > > The 'disabled' property should be effectively computed as the logical and of all the parent's property values (kind of like inherited properties, but with a different operation merging parent and child values), a bit like visible is - why it was never done that way originally is a question to which I do not have an answer! > > The problem with 'just' fixing it is that it is not possible to determine with the current behavior what the 'disabled' setting of any control is meant to be. If it is changed, then all controls in disabled groups which exist now will remain disabled - everyone would have to go through all their stacks and set the enablement of children appropriately. > > Warmest Regards, > > Mark. From brian at milby7.com Fri Apr 27 11:07:37 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 27 Apr 2018 15:07:37 +0000 Subject: Detailed File Information for One File In-Reply-To: <30B07E1C-8D22-4179-B731-30B4E13144F2@iotecdigital.com> References: <36403091-b801-a156-7fc5-8c3fb057ee89@fourthworld.com> <30B07E1C-8D22-4179-B731-30B4E13144F2@iotecdigital.com> Message-ID: Are you sure about that? Some apps delete/recreate vice actually modifying an existing file. On Fri, Apr 27, 2018 at 9:44 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Funny you should mention that. I thought about doing this, but then I have > to think about checking to see if the file is open somewhere else. In some > cases it would work though. As an aside, I noticed yesterday that modifying > a file on MacOS updates not only the modify date but the CREATION DATE as > well!! Who thought that was a good idea?? > > Bob S > > > > On Apr 27, 2018, at 04:46 , Eller, Roger via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > If you have the path and filename, you could create a subfolder "temp" > just for the purpose of reading the details of a single file. > > > > > > ## THIS IS NOT A SCRIPT -- LOL > > > > move the file into "temp". > > > > get the detailed fiiles. > > > > move the file from "temp" back to where you got it from. > > > > > > ~Roger > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Fri Apr 27 12:29:00 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 27 Apr 2018 09:29:00 -0700 Subject: Hex to Decimal 2s Complement In-Reply-To: References: <1786398241.241885.1524821266844.JavaMail.root@md01.topaz.synacor.com> Message-ID: <4dedc920-b562-77bf-9b44-77f7645bd10d@sonic.net> On 04/27/2018 02:41 AM, Alex Tweedly via use-livecode wrote: > I should know this - but don't any more :-) > > So there may be a corner case to fix up - but in general, something like > > *put*thetextoffld"F"intotemp* > put*baseconvert(temp,16,10) intot1* > if* t1 > 32767*then* > *put*t1-65536intot1* > end* *if* > > should do it. Bingo. Thanks. I was sitting here trying to remember this stuff. Hermann, of course, would have known this just off the top of his head. -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Fri Apr 27 12:49:50 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 27 Apr 2018 12:49:50 -0400 Subject: Enable/disable Group enables/disables all children In-Reply-To: References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <7fde91c8-6821-702a-41a7-5cc73cd84c88@researchware.com> <560a5f9c-ae43-981f-536d-3a0c1e242660@fourthworld.com> <070496a5-5c4b-ed32-0406-f0051b122400@researchware.com> <1524770288244-0.post@n4.nabble.com> <6a6d1d2c-2341-cbc6-8c8d-75d7a3cc4bdf@sonic.net> Message-ID: <002501d3de47$c53a8f70$4fafae50$@net> I ran into this on a card basis. I have a handler that loops thru all controls and disables(and dims) them so a user can't do anything until some function is complete and a complementary handler that enables them all. This became a problem if one of the controls on the card was disabled. To solve this I put a custom property on the card with all the long IDs of all the controls and their initial "enabled" state before disabling everything. When re-enabling all the controls I look at the array and decide which controls need to be enabled. The same thing could be done for groups. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From mark at livecode.com Fri Apr 27 13:04:32 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 27 Apr 2018 19:04:32 +0200 Subject: Enable/disable Group enables/disables all children In-Reply-To: References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> Message-ID: <54c27b16e01a6df3d4e4da7d3e9e3c03@livecode.com> On 2018-04-27 16:57, Bob Sneidar via use-livecode wrote: > Darned if you do, darned if you don't. I get it. Still, looking at > your example, it begs the question, what was the state of the enabled > property for the individual objects before the parent group was > disabled? The current situation is exactly what your objection > describes. :-) You can't tell what the state of disabled was of a child before the owning group's disabled property is set - that's the problem. Imagine we change this without any regard for backwards compatibility to the preferred (correct!) model. Then when you open your stack, setting the 'disabled' of a group to 'false' will then *only* affect the disabled property of the group - not the children. All the children will remain with disabled 'true' (as it won't be setting the property any more on children). This means that everyone would have to go through every card of every single stack which has groups which are disabled, which contain children which should be enabled/disabled with the group's enablement and change those child controls disabled property to false (as they will be true at present). I get the feeling that a lot of people have a lot of stacks where the group enablement behavior is fine (as they do want their child controls to enable/disable with the group), and so they won't have scripted anything, so they will find a lot of disabled controls! Warmest Regards, Mark. P.S. The engine change (from memory) is relatively straight-forward I think - we already have visible as a pattern - so the main issue is migration forward - which could be a lot of work for large stacks which might have a mixture of scripted and 'by-engine' enablement/disablement. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Fri Apr 27 13:14:58 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 Apr 2018 17:14:58 +0000 Subject: Detailed File Information for One File In-Reply-To: References: Message-ID: <56EDBB55-C2AB-4823-A1A5-8068D52F904D@iotecdigital.com> Not to beat a severely wounded horse, but one reason for implementing a detailed file function (and probably why it hasn't been tackled) is that getting the detailed file information from a command shell is decidedly NOT straightforward. *NIX has an ls function, and also has a date function. The date function cannot it seems accept spaces in the name, but will accept relative paths like ~/Desktop/test.xlsx. ls -r will only give you the year if the date is beyond 6 months from present. Date accepts a path in quotes or not, but if there is a space in the path you must enclose in quotes. ls decidedly CANNOT have a quoted path. Windows gets dicier. Typically you would use WMIC and build a query, but I think it only works with local files, and not network shares (Parallels uses network paths for Mac FolderSharing). It uses back slashes, and these have to be escaped as in \\. There are a number of other gotchas for each platform, but the upshot is that it's a beatch trying to piece together shell commands that work reliably in all use cases for every platform. I am sure that after a half a day and struggling through all the exceptions for each platform I could piece together a way to do it, but it's a real pig I can tell you. Bob S > On Apr 26, 2018, at 16:13 , Bob Sneidar wrote: > > I can't find anything on the forums, which is par for the course, evwn though I know it's been discussed. Is there an LC way to get details about a file without shelling out to do it? I need to get the last modified date of a file so I can check to see if I need to update the version in a database when importing it. I would very much NOT like having to get the detailed files of a folder and filter for the file I am looking for as I already have a path to the actual file, and a folder may contain a lot of files. > > Bob S > From bobsneidar at iotecdigital.com Fri Apr 27 13:23:04 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 Apr 2018 17:23:04 +0000 Subject: Enable/disable Group enables/disables all children In-Reply-To: <54c27b16e01a6df3d4e4da7d3e9e3c03@livecode.com> References: <49049ECA-7A9B-46C4-AB43-B213B4EB28C3@iotecdigital.com> <54c27b16e01a6df3d4e4da7d3e9e3c03@livecode.com> Message-ID: <516B9C1F-04C4-4160-8FFF-5772C9F6C786@iotecdigital.com> > On Apr 27, 2018, at 10:04 , Mark Waddingham via use-livecode wrote: > > You can't tell what the state of disabled was of a child before the owning group's disabled property is set - that's the problem. > > Imagine we change this without any regard for backwards compatibility to the preferred (correct!) model. Then when you open your stack, setting the 'disabled' of a group to 'false' will then *only* affect the disabled property of the group - not the children. All the children will remain with disabled 'true' (as it won't be setting the property any more on children). > > This means that everyone would have to go through every card of every single stack which has groups which are disabled, which contain children which should be enabled/disabled with the group's enablement and change those child controls disabled property to false (as they will be true at present). Unless disabling a group prevented you from interacting with any of the children without actually disabling the children. One scenario you have to disable all the children, the other you have to re-enable them based upon a prior state saved in some fashion. As I said, darned if you do, darned if you don't. One leg is both the same. :-) But it's okay, I can script around it. I'm more interested in a detailed single file function, but again I can work around that too. I will just filter the detailed files of the enclosing folder and hope that in the distant future someone doesn't try to use this function on a folder with 10,000+ files. Of course by then we will probably be storing data in microbes. Bob S From richmondmathewson at gmail.com Fri Apr 27 14:40:53 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 27 Apr 2018 21:40:53 +0300 Subject: create widget Message-ID: <6626feab-08b5-bd3b-60f1-7c3630666004@gmail.com> "Create a widget control of the specified kind" sounds groovy . . . "create widget "My Navbar" as "com.livecode.widget.navbar" even groovier . . . BUT . . . where does one find a catalog of all the kinds of widget available? A catalog of all widgets available would be extremely useful. Richmond. From rdimola at evergreeninfo.net Fri Apr 27 15:17:14 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 27 Apr 2018 15:17:14 -0400 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: <597D4D7E-8B28-4716-8531-AD02E51955EA@iotecdigital.com> References: <2E03A12C-5757-4DE1-8F11-31167545D814@mail.com> <597D4D7E-8B28-4716-8531-AD02E51955EA@iotecdigital.com> Message-ID: <002601d3de5c$5d237a40$176a6ec0$@net> What's the difference between a violin and a fiddle? A violin has strings and a fiddle has straaaannnngs. 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 Bob Sneidar via use-livecode Sent: Friday, April 27, 2018 10:51 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Q on Accessing multi-dimension arrays. Fettling! I'm going to start using that! fet?tle ?fedl/ verb gerund or present participle: fettling ? trim or clean the rough edges of (a metal casting or a piece of pottery) before firing. Apparently appropriate as well. Pronounced like feddle, likely where we get our fiddle with. And I always thought it was a reference to playing a violin-like musical instrument! Bob S > On Apr 27, 2018, at 24:21 , Ali Lloyd via use-livecode wrote: > > Which reminds me - the tree view widget should probably use the list > form of a path directly instead of fettling with a path delimiter > property _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Fri Apr 27 15:25:24 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 27 Apr 2018 12:25:24 -0700 Subject: create widget In-Reply-To: <6626feab-08b5-bd3b-60f1-7c3630666004@gmail.com> References: <6626feab-08b5-bd3b-60f1-7c3630666004@gmail.com> Message-ID: <2341aadc-da80-aa69-d90b-a8ba61b0bfc3@sonic.net> On 04/27/2018 11:40 AM, Richmond Mathewson via use-livecode wrote: > BUT . . . where does one find a catalog of all the kinds of widget > available? > > A catalog of all widgets available would be extremely useful. put revideextensions() into tArray; put the keys of tArray if you just want widgets, not libraries then filter that with "*widget*" -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Fri Apr 27 16:05:40 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 27 Apr 2018 15:05:40 -0500 Subject: create widget In-Reply-To: <2341aadc-da80-aa69-d90b-a8ba61b0bfc3@sonic.net> References: <6626feab-08b5-bd3b-60f1-7c3630666004@gmail.com> <2341aadc-da80-aa69-d90b-a8ba61b0bfc3@sonic.net> Message-ID: Or, if you are among those who have access to a working dictionary, click the "Widget" type in the left sidebar to see the list. On 4/27/18 2:25 PM, Mark Wieder via use-livecode wrote: > On 04/27/2018 11:40 AM, Richmond Mathewson via use-livecode wrote: > >> BUT . . . where does one find a catalog of all the kinds of widget >> available? >> >> A catalog of all widgets available would be extremely useful. > > put revideextensions() into tArray; put the keys of tArray > > if you just want widgets, not libraries then filter that with "*widget*" > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Fri Apr 27 16:39:17 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 27 Apr 2018 13:39:17 -0700 Subject: Detailed File Information for One File In-Reply-To: <56EDBB55-C2AB-4823-A1A5-8068D52F904D@iotecdigital.com> References: <56EDBB55-C2AB-4823-A1A5-8068D52F904D@iotecdigital.com> Message-ID: <267fe3d1-9e17-3385-3153-77e276cc2f66@fourthworld.com> Bob Sneidar wrote: > Not to beat a severely wounded horse, but one reason for implementing > a detailed file function (and probably why it hasn't been tackled) is > that getting the detailed file information from a command shell is > decidedly NOT straightforward. Shell is great for things we can't do in LiveCode Script yet may not warrant writing special C-based API interfaces for in LC Builder. But in addition to the complexity of attempting to rely on such interprocess communication across platforms, it also carries a certain impact on memory and performance. "Why run one process when you can run two at twice the price!" :) In the enhancement request I cited earlier: https://quality.livecode.com/show_bug.cgi?id=20384 ...Trevor raised a good point about instances where apparently macOS sometimes disallows access to a folder even while allowing access to specific files within it. It's hard for me to see how that would not be a configuration error on any other system, but I trust Apple has a good reason for that. And in such cases, we're hosed with any current LC Script solution that needs access to the whole folder's content. But for the other 99.9% of cases, using a scripted handler reduces the task to a one-liner, here made even more convenient by allowing either the detailed info returned in its LC-native comma-delimited format or as an array if preferred: on mouseUp put specialFolderPath("desktop")&"/test/Thisisafilename1000" into tPath put fwFileInfo( tPath, "Array") into tA if the result is not empty then answer the result else put the keys of tA end if end mouseUp function fwFileInfo pFile, pArrayFlag -- Returns info for the file specified in pFile. -- By default, returns the data in comma-delimited -- form in the order specified by "detailed files". -- With any value in the optional pArrayFlag arg -- it will return an array with descriptive keys. -- if there is not a file pFile then return "No such file: "& pFile for error end if set the itemdel to "/" put urlEncode(last item of pFile) into tFileName put item 1 to -2 of pFile into tPath put files(tPath, "detailed") into tFiles if the result is not empty then return "Error getting file info: "& the result & \ " ("&sysError()&")" for error end if put lineoffset(cr& tFileName&",", cr&tFiles) into tLineNum put line tLineNum of tFiles into tInfo if pArrayFlag is empty then return tInfo for value else set the itemdel to "," put 0 into i put "name,size,resourceSize,dateCreated,dataModified,dateAccessed,"& \ "dateBackedUp,owner,group,permissions,MacType" into tFields repeat for each item tItem in tInfo add 1 to i if i = 1 then put urlDecode(tItem) into tItem put tItem into tA[item i of tFields] end repeat return tA for value end if end fwFileInfo Performance isn't bad (times shown in ms on Ubuntu 14.04 with Ext4 file system) - each test was done with the slower form of the function call that uses the array option: Folder with 20 files: 0.000072 Folder with 5,000 files: 0.024766 Folder with 10,000 files: 0.042299 I'll leave it as an exercise for the reader to compare with benchmarks for obtaining the same info via shell. But at a fraction of a millisecond with LC Script even in an insanely large directory, I'll wager the time to write the test would exceed any time saved over one's lifetime. :) -- 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 waprothero at gmail.com Fri Apr 27 17:04:55 2018 From: waprothero at gmail.com (William Prothero) Date: Fri, 27 Apr 2018 14:04:55 -0700 Subject: Question: script only stacks in iOS? In-Reply-To: <56EDBB55-C2AB-4823-A1A5-8068D52F904D@iotecdigital.com> References: <56EDBB55-C2AB-4823-A1A5-8068D52F904D@iotecdigital.com> Message-ID: <4FA92BA8-8799-49E4-AF81-B3C3177C2BF8@gmail.com> Folks: I can?t seem to get an external script only stack to get assigned to the ?Stacks? list for an iOS app in LC 9.0.0. Thus, it appears to me that all stacks must be substacks in iOS. Is this true? Best, Bill William A. Prothero http://earthlearningsolutions.org From richmondmathewson at gmail.com Fri Apr 27 17:11:26 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 28 Apr 2018 00:11:26 +0300 Subject: Splitting long elements into two lines in an Option Menu In-Reply-To: <1C16B460-A115-4BF7-86B0-AF29444A80AB@iotecdigital.com> References: <248f7389-aff8-65f8-9bdf-61f74ce3c1f7@gmail.com> <1C16B460-A115-4BF7-86B0-AF29444A80AB@iotecdigital.com> Message-ID: <19af5898-416f-cf18-8f2d-8d84e57e2847@gmail.com> Well that chopping up doesn't have to take place between fields: it could, say, start with the string in a string-variable, and the chopped-up bits end up in a 2-dimensional array. Richmond. On 27/4/2018 5:47 pm, Bob Sneidar via use-livecode wrote: > On a mobile device?? > > Bob S > > >> On Apr 27, 2018, at 02:09 , Richmond via use-livecode wrote: >> >> I've just set up a stack containing 2 fields; one called "fff" containing your >> >> original string, another called "fCHOPPED" that is a scrolling list field. >> >> I have a button containing this script: >> >> on mouseUp >> put fld "fff" into FFF >> set the itemDelimiter to "," >> put 1 into KOUNT >> repeat until item KOUNT of FFF is empty >> put item KOUNT of FFF into line KOUNT of fld "fCHOPPED" >> add 1 to KOUNT >> end repeat >> end mouseUp >> >> which puts the string into the scrolling list field like this: >> >> /Dialyse r?nale >> insuffisance r?nale >> maladie r?naleDID >> diab?te de type 1// >> //diab?te insulino d?pendant/ >> >> Richmond. >> >> >> On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote: >>> /Dialyse r?nale, insuffisance r?nale, maladie r?naleDID, diab?te de type 1//,//diab?te insulino d?pendant/ >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Fri Apr 27 17:45:39 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 27 Apr 2018 16:45:39 -0500 Subject: Identifying IDE stacks Message-ID: It used to be we could identify IDE stacks because their names started with "rev" but that's not true anymore. I want to scan for and list any open non-IDE stacks. Does anyone know offhand if there's an existing function in the IDE that identifies IDE stacks? Or maybe there's a property to check for? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ali.lloyd at livecode.com Fri Apr 27 17:59:30 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Fri, 27 Apr 2018 21:59:30 +0000 Subject: Identifying IDE stacks In-Reply-To: References: Message-ID: That would be revIDEStackIsIDEStack On Fri, Apr 27, 2018 at 10:45 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > It used to be we could identify IDE stacks because their names started > with "rev" but that's not true anymore. I want to scan for and list any > open non-IDE stacks. Does anyone know offhand if there's an existing > function in the IDE that identifies IDE stacks? Or maybe there's a > property to check for? > > -- > 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 ahsoftware at sonic.net Fri Apr 27 18:09:21 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 27 Apr 2018 15:09:21 -0700 Subject: Identifying IDE stacks In-Reply-To: References: Message-ID: <47228297-8758-f6da-cfc2-2d75699be173@sonic.net> On 04/27/2018 02:45 PM, J. Landman Gay via use-livecode wrote: > It used to be we could identify IDE stacks because their names started > with "rev" but that's not true anymore. I want to scan for and list any > open non-IDE stacks. Does anyone know offhand if there's an existing > function in the IDE that identifies IDE stacks? Or maybe there's a > property to check for? > If you're just looking at the open stacks, you can iterate through them using revStackNameIsIDEStack(tStackName) which will return true if it's a system stack. According to the comments for revIDEStackNameIsIDEStack which call it, A stack is considered part of the IDE if any of the following are satisfied: * Its name begins with "rev" * It was loaded by the initialisation library * Its name begins with "com.livecode." * Its name is "message box, answer dialog, ask dialog, or home" * Its _ideoverride property is true -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Fri Apr 27 18:09:51 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 27 Apr 2018 17:09:51 -0500 Subject: Identifying IDE stacks In-Reply-To: References: Message-ID: <82b04c08-e302-e678-b173-fd1451ccfe5f@hyperactivesw.com> Thanks Ali. :) On 4/27/18 4:59 PM, Ali Lloyd via use-livecode wrote: > That would be revIDEStackIsIDEStack > > On Fri, Apr 27, 2018 at 10:45 PM J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> It used to be we could identify IDE stacks because their names started >> with "rev" but that's not true anymore. I want to scan for and list any >> open non-IDE stacks. Does anyone know offhand if there's an existing >> function in the IDE that identifies IDE stacks? Or maybe there's a >> property to check for? >> >> -- >> 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 ali.lloyd at livecode.com Fri Apr 27 18:17:44 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Fri, 27 Apr 2018 22:17:44 +0000 Subject: Q on Accessing multi-dimension arrays. In-Reply-To: <002601d3de5c$5d237a40$176a6ec0$@net> References: <2E03A12C-5757-4DE1-8F11-31167545D814@mail.com> <597D4D7E-8B28-4716-8531-AD02E51955EA@iotecdigital.com> <002601d3de5c$5d237a40$176a6ec0$@net> Message-ID: I must confess, ?fettle? is very much a Waddingham-ism that I have found myself using increasingly often! On Fri, 27 Apr 2018 at 20:17, Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > What's the difference between a violin and a fiddle? > A violin has strings and a fiddle has straaaannnngs. > > 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 Bob Sneidar via use-livecode > Sent: Friday, April 27, 2018 10:51 AM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Re: Q on Accessing multi-dimension arrays. > > Fettling! I'm going to start using that! > > fet?tle > ?fedl/ > verb > gerund or present participle: fettling > ? trim or clean the rough edges of (a metal casting or a piece of > pottery) before firing. > > Apparently appropriate as well. Pronounced like feddle, likely where we > get our fiddle with. And I always thought it was a reference to playing a > violin-like musical instrument! > > Bob S > > > > On Apr 27, 2018, at 24:21 , Ali Lloyd via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Which reminds me - the tree view widget should probably use the list > > form of a path directly instead of fettling with a path delimiter > > property > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri Apr 27 18:39:31 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 Apr 2018 22:39:31 +0000 Subject: Detailed File Information for One File In-Reply-To: <267fe3d1-9e17-3385-3153-77e276cc2f66@fourthworld.com> References: <56EDBB55-C2AB-4823-A1A5-8068D52F904D@iotecdigital.com> <267fe3d1-9e17-3385-3153-77e276cc2f66@fourthworld.com> Message-ID: > On Apr 27, 2018, at 13:39 , Richard Gaskin via use-livecode wrote: > > Bob Sneidar wrote: > >> Not to beat a severely wounded horse, but one reason for implementing >> a detailed file function (and probably why it hasn't been tackled) is >> that getting the detailed file information from a command shell is >> decidedly NOT straightforward. > > Shell is great for things we can't do in LiveCode Script yet may not warrant writing special C-based API interfaces for in LC Builder. > > But in addition to the complexity of attempting to rely on such interprocess communication across platforms, it also carries a certain impact on memory and performance. > > "Why run one process when you can run two at twice the price!" :) Thanks Richard. I went ahead earlier and implemented the detailed files method and then filtered by filename & *. Works great. I have functions that takes the last modified seconds and converts it to an SQL datetime format. Now I can look at the filename (no matter what the path to the file appears to be to the end user's app) along with the last mod datetime. If those two are identical it is the same file, albeit possibly another copy, which doesn't matter to me. I'm attempting to build into my app a files system with versioning and custom user/group permissions in anticipation of a workflow based interface. That will take the Forms Generator to a whole new level! Wheee! Bob S From bobsneidar at iotecdigital.com Fri Apr 27 18:40:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 Apr 2018 22:40:30 +0000 Subject: Identifying IDE stacks In-Reply-To: References: Message-ID: <6AAA4E90-DFA5-422C-9F69-D15CB5980BA8@iotecdigital.com> Redundantly redundant. Bob S > On Apr 27, 2018, at 14:59 , Ali Lloyd via use-livecode wrote: > > That would be revIDEStackIsIDEStack From jacque at hyperactivesw.com Fri Apr 27 19:04:05 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 27 Apr 2018 18:04:05 -0500 Subject: Identifying IDE stacks In-Reply-To: <47228297-8758-f6da-cfc2-2d75699be173@sonic.net> References: <47228297-8758-f6da-cfc2-2d75699be173@sonic.net> Message-ID: <273730bf-8659-c680-6256-d417d0454c18@hyperactivesw.com> Interesting...so there are two ways. It looks like revIDEStackIsIDEStack needs a long id, and revStackNameIsIDEStack needs only the short name but will also accept a long ID. Thanks for finding the list of qualifications. On 4/27/18 5:09 PM, Mark Wieder via use-livecode wrote: > On 04/27/2018 02:45 PM, J. Landman Gay via use-livecode wrote: >> It used to be we could identify IDE stacks because their names started >> with "rev" but that's not true anymore. I want to scan for and list >> any open non-IDE stacks. Does anyone know offhand if there's an >> existing function in the IDE that identifies IDE stacks? Or maybe >> there's a property to check for? >> > > If you're just looking at the open stacks, you can iterate through them > using > > revStackNameIsIDEStack(tStackName) > > which will return true if it's a system stack. > > According to the comments for revIDEStackNameIsIDEStack which call it, > > A stack is considered part of the IDE if any of the following are > satisfied: > * Its name begins with "rev" > * It was loaded by the initialisation library > * Its name begins with "com.livecode." > * Its name is "message box, answer dialog, ask dialog, or home" > * Its _ideoverride property is true > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Fri Apr 27 19:58:37 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 27 Apr 2018 23:58:37 +0000 Subject: Project Browser - Sort Stack Preferences Message-ID: <57A48C71-86DB-4556-B13D-49C8FEAE39F5@hindu.org> I was trying the Project Browser's prefs. Sort stacks by layer ascending. It reverts to "Name" ? can't keep it stick to "layer" 8.1.10 rc 1 Any else see this? BR From ahsoftware at sonic.net Fri Apr 27 20:23:25 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 27 Apr 2018 17:23:25 -0700 Subject: Identifying IDE stacks In-Reply-To: <6AAA4E90-DFA5-422C-9F69-D15CB5980BA8@iotecdigital.com> References: <6AAA4E90-DFA5-422C-9F69-D15CB5980BA8@iotecdigital.com> Message-ID: <40025039-2926-6307-ac11-409dff7aa39d@sonic.net> On 04/27/2018 03:40 PM, Bob Sneidar via use-livecode wrote: > Redundantly redundant. Heh. There's a hierarchy here: revIDEStackIsIDEStack(id) calls revIDEStackNameIsIDEStack(short name) which calls revStackNameIsIDEStack(short name) ... which may call revInternal__ListLoadedLibraries(), but that's another story. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Fri Apr 27 20:42:11 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 28 Apr 2018 00:42:11 +0000 Subject: Identifying IDE stacks In-Reply-To: <40025039-2926-6307-ac11-409dff7aa39d@sonic.net> References: <6AAA4E90-DFA5-422C-9F69-D15CB5980BA8@iotecdigital.com> <40025039-2926-6307-ac11-409dff7aa39d@sonic.net> Message-ID: If you just want a list then: ideUserMainStacks will provide part of what you are looking for (no sub stacks in my brief test). If you want substacks too, then use: revLoadedStacks (Common library) On Fri, Apr 27, 2018 at 7:24 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 04/27/2018 03:40 PM, Bob Sneidar via use-livecode wrote: > > Redundantly redundant. > > Heh. There's a hierarchy here: > > revIDEStackIsIDEStack(id) calls > revIDEStackNameIsIDEStack(short name) which calls > revStackNameIsIDEStack(short name) > > ... which may call revInternal__ListLoadedLibraries(), but that's > another story. > > -- > 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 jacque at hyperactivesw.com Sat Apr 28 01:17:40 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 28 Apr 2018 00:17:40 -0500 Subject: Identifying IDE stacks In-Reply-To: References: <6AAA4E90-DFA5-422C-9F69-D15CB5980BA8@iotecdigital.com> <40025039-2926-6307-ac11-409dff7aa39d@sonic.net> Message-ID: <049e0328-e392-7905-3fc4-0dff96cefc01@hyperactivesw.com> This has been informative. IDEUserMainStacks() is exactly what I want, I don't care about substacks at the moment. With four or five different ways to get the info, I think all bases are covered. Many thanks to those who have the courage to dig through the IDE scripts. On 4/27/18 7:42 PM, Brian Milby via use-livecode wrote: > If you just want a list then: > ideUserMainStacks > will provide part of what you are looking for (no sub stacks in my brief > test). > > If you want substacks too, then use: > revLoadedStacks > (Common library) > On Fri, Apr 27, 2018 at 7:24 PM Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 04/27/2018 03:40 PM, Bob Sneidar via use-livecode wrote: >>> Redundantly redundant. >> >> Heh. There's a hierarchy here: >> >> revIDEStackIsIDEStack(id) calls >> revIDEStackNameIsIDEStack(short name) which calls >> revStackNameIsIDEStack(short name) >> >> ... which may call revInternal__ListLoadedLibraries(), but that's >> another story. >> >> -- >> 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 jacque at hyperactivesw.com Sat Apr 28 02:12:49 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 28 Apr 2018 01:12:49 -0500 Subject: Question: script only stacks in iOS? In-Reply-To: <4FA92BA8-8799-49E4-AF81-B3C3177C2BF8@gmail.com> References: <56EDBB55-C2AB-4823-A1A5-8068D52F904D@iotecdigital.com> <4FA92BA8-8799-49E4-AF81-B3C3177C2BF8@gmail.com> Message-ID: <4a8dfd66-aa3c-b9bb-54fd-11bc25507a67@hyperactivesw.com> On 4/27/18 4:04 PM, William Prothero via use-livecode wrote: > Folks: > I can?t seem to get an external script only stack to get assigned to the ?Stacks? list for an iOS app in LC 9.0.0. Thus, it appears to me that all stacks must be substacks in iOS. Is this true? You should be able to add them in the Copy Files pane. They aren't really stacks until after they load. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From Mark_Smith at cpe.umanitoba.ca Sat Apr 28 10:21:07 2018 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sat, 28 Apr 2018 07:21:07 -0700 (MST) Subject: Mac app code signing for beginners In-Reply-To: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> References: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> Message-ID: <1524925267699-0.post@n4.nabble.com> graham, do your apps expire and need resigning after a year? -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From Mark_Smith at cpe.umanitoba.ca Sat Apr 28 10:22:17 2018 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sat, 28 Apr 2018 07:22:17 -0700 (MST) Subject: OpenLanguage: abstract syntax trees In-Reply-To: References: <113e079f2342e0d329cdc7153c83a0b6@livecode.com> <1F58074A-D111-485A-94C1-D5E5C0859D44@iotecdigital.com> Message-ID: <1524925337758-0.post@n4.nabble.com> Sign me up :) -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From prothero at earthlearningsolutions.org Sat Apr 28 10:52:08 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Sat, 28 Apr 2018 07:52:08 -0700 Subject: Question: script only stacks in iOS? In-Reply-To: <4a8dfd66-aa3c-b9bb-54fd-11bc25507a67@hyperactivesw.com> References: <56EDBB55-C2AB-4823-A1A5-8068D52F904D@iotecdigital.com> <4FA92BA8-8799-49E4-AF81-B3C3177C2BF8@gmail.com> <4a8dfd66-aa3c-b9bb-54fd-11bc25507a67@hyperactivesw.com> Message-ID: Thanks Jacqueline. I was thinking that might be the case, but got tired of fiddling around and thought I?d ask, to be sure. Best, Bill William Prothero http://earthlearningsolutions.org > On Apr 27, 2018, at 11:12 PM, J. Landman Gay via use-livecode wrote: > >> On 4/27/18 4:04 PM, William Prothero via use-livecode wrote: >> Folks: >> I can?t seem to get an external script only stack to get assigned to the ?Stacks? list for an iOS app in LC 9.0.0. Thus, it appears to me that all stacks must be substacks in iOS. Is this true? > > You should be able to add them in the Copy Files pane. They aren't really stacks until after they load. > > -- > 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 Apr 28 13:34:50 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 28 Apr 2018 20:34:50 +0300 Subject: Down a leafy lane or up queer street? Message-ID: Probably both . . . So, there I am opening an on-going project I have been "somewhat remiss" about of late what with one thing and another. Now this project has a ton of images made via the Object/New Control/Image menu and for their image data in their property panels are referred to a folder called "rez" that resides in the same folder as my stack. Now when I set up the stack the source field in the property panels went something like this: /Users/richmondmathewson/Desktop/myCrap/rez/c7.png and "everything worked perfectly" . . . on reopening the stack the image data does not show up and the source fields contain this sort of thing: rez/c7.png now this "just won't do" as the . . . well, never mind; probably that is too filthy a joke for the Use-List. So . . . presumably, I need a sort of 'set the default file path' script in my openScript thang? Richmond. From richmondmathewson at gmail.com Sat Apr 28 13:38:52 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 28 Apr 2018 20:38:52 +0300 Subject: Down a leafy lane or up queer street? In-Reply-To: References: Message-ID: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> Here I go agin, replying to my own posting: I have this script in the stack: onpreOpenStack setitemDelto"/" setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) endpreOpenStack but it ain't working. Richmond. On 28/4/2018 8:34 pm, Richmond Mathewson wrote: > Probably both . . . > > So, there I am opening an on-going project I have been "somewhat > remiss" about of late > what with one thing and another. > > Now this project has a ton of images made via the Object/New > Control/Image menu > and for their image data in their property panels are referred to a > folder called "rez" > that resides in the same folder as my stack. > > Now when I set up the stack the source field in the property panels > went something > like this: > > /Users/richmondmathewson/Desktop/myCrap/rez/c7.png > > and "everything worked perfectly" . . . > > on reopening the stack the image data does not show up > and the source fields contain this sort of thing: > > rez/c7.png > > now this "just won't do" as the . . . well, never mind; probably that > is too filthy a joke for the Use-List. > > So . . . presumably, I need a sort of 'set the default file path' > script in my openScript thang? > > Richmond. From tore.nilsen at me.com Sat Apr 28 13:42:03 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Sat, 28 Apr 2018 19:42:03 +0200 Subject: Down a leafy lane or up queer street? In-Reply-To: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> Message-ID: <69206540-A054-45A3-8E1D-EA3880547926@me.com> Try this: local sFolderPath on preOpenStack put specialFolderPath("resources")&"/myCrap/rez/" into sFolderPath end preOpenStack specialFolderPath(?resources?) will point to the folder containing the stack when you are in the IDE, and to the resources folder of your compiled application Tore Nilsen > 28. apr. 2018 kl. 19:38 skrev Richmond Mathewson via use-livecode : > > Here I go agin, replying to my own posting: > > I have this script in the stack: > > onpreOpenStack > > setitemDelto"/" > > setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) > > endpreOpenStack > > but it ain't working. > > Richmond. > > > On 28/4/2018 8:34 pm, Richmond Mathewson wrote: >> Probably both . . . >> >> So, there I am opening an on-going project I have been "somewhat remiss" about of late >> what with one thing and another. >> >> Now this project has a ton of images made via the Object/New Control/Image menu >> and for their image data in their property panels are referred to a folder called "rez" >> that resides in the same folder as my stack. >> >> Now when I set up the stack the source field in the property panels went something >> like this: >> >> /Users/richmondmathewson/Desktop/myCrap/rez/c7.png >> >> and "everything worked perfectly" . . . >> >> on reopening the stack the image data does not show up >> and the source fields contain this sort of thing: >> >> rez/c7.png >> >> now this "just won't do" as the . . . well, never mind; probably that is too filthy a joke for the Use-List. >> >> So . . . presumably, I need a sort of 'set the default file path' script in my openScript thang? >> >> 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 irog at mac.com Sat Apr 28 13:48:44 2018 From: irog at mac.com (Roger Guay) Date: Sat, 28 Apr 2018 10:48:44 -0700 Subject: Scott Rossi and TactileMedia Message-ID: <2C5A3B88-D72F-4CB6-AF6C-87B55925706B@mac.com> I am a total fan of Scott and the many contributions he has offered to the LC community over the years. I particularly like his little plugins tmAlign and tmEffects and use them all the time. However, the title bars of these have gone from light on dark to light on light in V9 of LC, to such an extent that one can hardly read the menu items. And, so far, I have been unable to find a resolution on Scott?s TactileMedia website. Can anyone suggest an easy fix for this? I have missed Scott?s frequent participation to this list and hope he is well!! Cheers, Roger From paul at researchware.com Sat Apr 28 13:48:57 2018 From: paul at researchware.com (Paul Dupuis) Date: Sat, 28 Apr 2018 13:48:57 -0400 Subject: Telling the IDE to build a standalone under script control Message-ID: In LiveCode 6.x.x and earlier, I used a line in a script: *send*"revSaveAsStandalone"&"e&tStackName"etostack"revSaveAsStandalone"ofstack"revStandaloneSettings" to build a standalone of a stack (tStackName) under script control In LC9.0.0 this line no longer works. I can dig my way through the IDE code to find out what changes, but can any one on this list save me the time if they have already figured out how to build a standalone under script control under LC9.0.0? From richmondmathewson at gmail.com Sat Apr 28 13:51:32 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 28 Apr 2018 20:51:32 +0300 Subject: Down a leafy lane or up queer street? In-Reply-To: <69206540-A054-45A3-8E1D-EA3880547926@me.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> Message-ID: <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> In theory that should work . . . But what happens is that I end with a grey square rather than the actual picture. Richmond. On 28/4/2018 8:42 pm, Tore Nilsen via use-livecode wrote: > Try this: > > local sFolderPath > > on preOpenStack > > put specialFolderPath("resources")&"/myCrap/rez/" into sFolderPath > > end preOpenStack > > > specialFolderPath(?resources?) will point to the folder containing the stack when you are in the IDE, and to the resources folder of your compiled application > > > Tore Nilsen > >> 28. apr. 2018 kl. 19:38 skrev Richmond Mathewson via use-livecode : >> >> Here I go agin, replying to my own posting: >> >> I have this script in the stack: >> >> onpreOpenStack >> >> setitemDelto"/" >> >> setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) >> >> endpreOpenStack >> >> but it ain't working. >> >> Richmond. >> >> >> On 28/4/2018 8:34 pm, Richmond Mathewson wrote: >>> Probably both . . . >>> >>> So, there I am opening an on-going project I have been "somewhat remiss" about of late >>> what with one thing and another. >>> >>> Now this project has a ton of images made via the Object/New Control/Image menu >>> and for their image data in their property panels are referred to a folder called "rez" >>> that resides in the same folder as my stack. >>> >>> Now when I set up the stack the source field in the property panels went something >>> like this: >>> >>> /Users/richmondmathewson/Desktop/myCrap/rez/c7.png >>> >>> and "everything worked perfectly" . . . >>> >>> on reopening the stack the image data does not show up >>> and the source fields contain this sort of thing: >>> >>> rez/c7.png >>> >>> now this "just won't do" as the . . . well, never mind; probably that is too filthy a joke for the Use-List. >>> >>> So . . . presumably, I need a sort of 'set the default file path' script in my openScript thang? >>> >>> 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 tore.nilsen at me.com Sat Apr 28 13:55:09 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Sat, 28 Apr 2018 19:55:09 +0200 Subject: Down a leafy lane or up queer street? In-Reply-To: <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> Message-ID: <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> What I do in these situations is to use the path stored in the variable sFolderPath like this set fileName of image ?whateverImage? to sFolderPath & ?imageName? or put sFolderPath & ?imageName? into tFilePath set fileName of image ?whateverImage? to tFilePath Tore Nilsen > 28. apr. 2018 kl. 19:51 skrev Richmond Mathewson via use-livecode : > > In theory that should work . . . > > But what happens is that I end with a grey square rather than the actual picture. > > Richmond. > > On 28/4/2018 8:42 pm, Tore Nilsen via use-livecode wrote: >> Try this: >> >> local sFolderPath >> >> on preOpenStack >> >> put specialFolderPath("resources")&"/myCrap/rez/" into sFolderPath >> >> end preOpenStack >> >> >> specialFolderPath(?resources?) will point to the folder containing the stack when you are in the IDE, and to the resources folder of your compiled application >> >> >> Tore Nilsen >> >>> 28. apr. 2018 kl. 19:38 skrev Richmond Mathewson via use-livecode : >>> >>> Here I go agin, replying to my own posting: >>> >>> I have this script in the stack: >>> >>> onpreOpenStack >>> >>> setitemDelto"/" >>> >>> setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) >>> >>> endpreOpenStack >>> >>> but it ain't working. >>> >>> Richmond. >>> >>> >>> On 28/4/2018 8:34 pm, Richmond Mathewson wrote: >>>> Probably both . . . >>>> >>>> So, there I am opening an on-going project I have been "somewhat remiss" about of late >>>> what with one thing and another. >>>> >>>> Now this project has a ton of images made via the Object/New Control/Image menu >>>> and for their image data in their property panels are referred to a folder called "rez" >>>> that resides in the same folder as my stack. >>>> >>>> Now when I set up the stack the source field in the property panels went something >>>> like this: >>>> >>>> /Users/richmondmathewson/Desktop/myCrap/rez/c7.png >>>> >>>> and "everything worked perfectly" . . . >>>> >>>> on reopening the stack the image data does not show up >>>> and the source fields contain this sort of thing: >>>> >>>> rez/c7.png >>>> >>>> now this "just won't do" as the . . . well, never mind; probably that is too filthy a joke for the Use-List. >>>> >>>> So . . . presumably, I need a sort of 'set the default file path' script in my openScript thang? >>>> >>>> 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 Sat Apr 28 14:05:38 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 28 Apr 2018 21:05:38 +0300 Subject: Down a leafy lane or up queer street? In-Reply-To: <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> Message-ID: <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> No joy. What happens then is that, on looking in the properties palette for an image ("p11") having had setthefileNameofimg "p11" tosFolderPath & "c11.png" in the openCard script I see that its source is listed as sFolderPathc11.png Richmond. On 28/4/2018 8:55 pm, Tore Nilsen via use-livecode wrote: > What I do in these situations is to use the path stored in the variable sFolderPath like this > > set fileName of image ?whateverImage? to sFolderPath & ?imageName? > > or > > put sFolderPath & ?imageName? into tFilePath > > set fileName of image ?whateverImage? to tFilePath > > > Tore Nilsen > >> 28. apr. 2018 kl. 19:51 skrev Richmond Mathewson via use-livecode : >> >> In theory that should work . . . >> >> But what happens is that I end with a grey square rather than the actual picture. >> >> Richmond. >> >> On 28/4/2018 8:42 pm, Tore Nilsen via use-livecode wrote: >>> Try this: >>> >>> local sFolderPath >>> >>> on preOpenStack >>> >>> put specialFolderPath("resources")&"/myCrap/rez/" into sFolderPath >>> >>> end preOpenStack >>> >>> >>> specialFolderPath(?resources?) will point to the folder containing the stack when you are in the IDE, and to the resources folder of your compiled application >>> >>> >>> Tore Nilsen >>> >>>> 28. apr. 2018 kl. 19:38 skrev Richmond Mathewson via use-livecode : >>>> >>>> Here I go agin, replying to my own posting: >>>> >>>> I have this script in the stack: >>>> >>>> onpreOpenStack >>>> >>>> setitemDelto"/" >>>> >>>> setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) >>>> >>>> endpreOpenStack >>>> >>>> but it ain't working. >>>> >>>> Richmond. >>>> >>>> >>>> On 28/4/2018 8:34 pm, Richmond Mathewson wrote: >>>>> Probably both . . . >>>>> >>>>> So, there I am opening an on-going project I have been "somewhat remiss" about of late >>>>> what with one thing and another. >>>>> >>>>> Now this project has a ton of images made via the Object/New Control/Image menu >>>>> and for their image data in their property panels are referred to a folder called "rez" >>>>> that resides in the same folder as my stack. >>>>> >>>>> Now when I set up the stack the source field in the property panels went something >>>>> like this: >>>>> >>>>> /Users/richmondmathewson/Desktop/myCrap/rez/c7.png >>>>> >>>>> and "everything worked perfectly" . . . >>>>> >>>>> on reopening the stack the image data does not show up >>>>> and the source fields contain this sort of thing: >>>>> >>>>> rez/c7.png >>>>> >>>>> now this "just won't do" as the . . . well, never mind; probably that is too filthy a joke for the Use-List. >>>>> >>>>> So . . . presumably, I need a sort of 'set the default file path' script in my openScript thang? >>>>> >>>>> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tore.nilsen at me.com Sat Apr 28 14:11:26 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Sat, 28 Apr 2018 20:11:26 +0200 Subject: Down a leafy lane or up queer street? In-Reply-To: <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> Message-ID: Ah, my bad! I always place all my script at the same level, normally the stack level. Then declaring the local variabel at the start of the script make them accessible to all handlers. You can solve this either by declaring the variabel global in all script where you will use it, or place the scripts that will use it at the same level. Regards Tore > 28. apr. 2018 kl. 20:05 skrev Richmond Mathewson via use-livecode : > > No joy. > > What happens then is that, on looking in the properties palette for an image ("p11") > > having had > > setthefileNameofimg "p11" tosFolderPath & "c11.png" > > in the openCard script > > I see that its source is listed as sFolderPathc11.png > > Richmond. > > > On 28/4/2018 8:55 pm, Tore Nilsen via use-livecode wrote: >> What I do in these situations is to use the path stored in the variable sFolderPath like this >> >> set fileName of image ?whateverImage? to sFolderPath & ?imageName? >> >> or >> >> put sFolderPath & ?imageName? into tFilePath >> >> set fileName of image ?whateverImage? to tFilePath >> >> >> Tore Nilsen >> >>> 28. apr. 2018 kl. 19:51 skrev Richmond Mathewson via use-livecode : >>> >>> In theory that should work . . . >>> >>> But what happens is that I end with a grey square rather than the actual picture. >>> >>> Richmond. >>> >>> On 28/4/2018 8:42 pm, Tore Nilsen via use-livecode wrote: >>>> Try this: >>>> >>>> local sFolderPath >>>> >>>> on preOpenStack >>>> >>>> put specialFolderPath("resources")&"/myCrap/rez/" into sFolderPath >>>> >>>> end preOpenStack >>>> >>>> >>>> specialFolderPath(?resources?) will point to the folder containing the stack when you are in the IDE, and to the resources folder of your compiled application >>>> >>>> >>>> Tore Nilsen >>>> >>>>> 28. apr. 2018 kl. 19:38 skrev Richmond Mathewson via use-livecode : >>>>> >>>>> Here I go agin, replying to my own posting: >>>>> >>>>> I have this script in the stack: >>>>> >>>>> onpreOpenStack >>>>> >>>>> setitemDelto"/" >>>>> >>>>> setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) >>>>> >>>>> endpreOpenStack >>>>> >>>>> but it ain't working. >>>>> >>>>> Richmond. >>>>> >>>>> >>>>> On 28/4/2018 8:34 pm, Richmond Mathewson wrote: >>>>>> Probably both . . . >>>>>> >>>>>> So, there I am opening an on-going project I have been "somewhat remiss" about of late >>>>>> what with one thing and another. >>>>>> >>>>>> Now this project has a ton of images made via the Object/New Control/Image menu >>>>>> and for their image data in their property panels are referred to a folder called "rez" >>>>>> that resides in the same folder as my stack. >>>>>> >>>>>> Now when I set up the stack the source field in the property panels went something >>>>>> like this: >>>>>> >>>>>> /Users/richmondmathewson/Desktop/myCrap/rez/c7.png >>>>>> >>>>>> and "everything worked perfectly" . . . >>>>>> >>>>>> on reopening the stack the image data does not show up >>>>>> and the source fields contain this sort of thing: >>>>>> >>>>>> rez/c7.png >>>>>> >>>>>> now this "just won't do" as the . . . well, never mind; probably that is too filthy a joke for the Use-List. >>>>>> >>>>>> So . . . presumably, I need a sort of 'set the default file path' script in my openScript thang? >>>>>> >>>>>> 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Apr 28 14:18:09 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 28 Apr 2018 21:18:09 +0300 Subject: Down a leafy lane or up queer street? In-Reply-To: References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> Message-ID: Thanks. Richmond. On 28/4/2018 9:11 pm, Tore Nilsen via use-livecode wrote: > Ah, my bad! > > I always place all my script at the same level, normally the stack level. Then declaring the local variabel at the start of the script make them accessible to all handlers. You can solve this either by declaring the variabel global in all script where you will use it, or place the scripts that will use it at the same level. > > Regards Tore > >> 28. apr. 2018 kl. 20:05 skrev Richmond Mathewson via use-livecode : >> >> No joy. >> >> What happens then is that, on looking in the properties palette for an image ("p11") >> >> having had >> >> setthefileNameofimg "p11" tosFolderPath & "c11.png" >> >> in the openCard script >> >> I see that its source is listed as sFolderPathc11.png >> >> Richmond. >> >> >> On 28/4/2018 8:55 pm, Tore Nilsen via use-livecode wrote: >>> What I do in these situations is to use the path stored in the variable sFolderPath like this >>> >>> set fileName of image ?whateverImage? to sFolderPath & ?imageName? >>> >>> or >>> >>> put sFolderPath & ?imageName? into tFilePath >>> >>> set fileName of image ?whateverImage? to tFilePath >>> >>> >>> Tore Nilsen >>> >>>> 28. apr. 2018 kl. 19:51 skrev Richmond Mathewson via use-livecode : >>>> >>>> In theory that should work . . . >>>> >>>> But what happens is that I end with a grey square rather than the actual picture. >>>> >>>> Richmond. >>>> >>>> On 28/4/2018 8:42 pm, Tore Nilsen via use-livecode wrote: >>>>> Try this: >>>>> >>>>> local sFolderPath >>>>> >>>>> on preOpenStack >>>>> >>>>> put specialFolderPath("resources")&"/myCrap/rez/" into sFolderPath >>>>> >>>>> end preOpenStack >>>>> >>>>> >>>>> specialFolderPath(?resources?) will point to the folder containing the stack when you are in the IDE, and to the resources folder of your compiled application >>>>> >>>>> >>>>> Tore Nilsen >>>>> >>>>>> 28. apr. 2018 kl. 19:38 skrev Richmond Mathewson via use-livecode : >>>>>> >>>>>> Here I go agin, replying to my own posting: >>>>>> >>>>>> I have this script in the stack: >>>>>> >>>>>> onpreOpenStack >>>>>> >>>>>> setitemDelto"/" >>>>>> >>>>>> setthedefaultFoldertoitem 1 to-2 of(theeffectivefileNameofthis stack) >>>>>> >>>>>> endpreOpenStack >>>>>> >>>>>> but it ain't working. >>>>>> >>>>>> Richmond. >>>>>> >>>>>> >>>>>> On 28/4/2018 8:34 pm, Richmond Mathewson wrote: >>>>>>> Probably both . . . >>>>>>> >>>>>>> So, there I am opening an on-going project I have been "somewhat remiss" about of late >>>>>>> what with one thing and another. >>>>>>> >>>>>>> Now this project has a ton of images made via the Object/New Control/Image menu >>>>>>> and for their image data in their property panels are referred to a folder called "rez" >>>>>>> that resides in the same folder as my stack. >>>>>>> >>>>>>> Now when I set up the stack the source field in the property panels went something >>>>>>> like this: >>>>>>> >>>>>>> /Users/richmondmathewson/Desktop/myCrap/rez/c7.png >>>>>>> >>>>>>> and "everything worked perfectly" . . . >>>>>>> >>>>>>> on reopening the stack the image data does not show up >>>>>>> and the source fields contain this sort of thing: >>>>>>> >>>>>>> rez/c7.png >>>>>>> >>>>>>> now this "just won't do" as the . . . well, never mind; probably that is too filthy a joke for the Use-List. >>>>>>> >>>>>>> So . . . presumably, I need a sort of 'set the default file path' script in my openScript thang? >>>>>>> >>>>>>> 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 >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Sat Apr 28 15:29:20 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 28 Apr 2018 14:29:20 -0500 Subject: Scott Rossi and TactileMedia In-Reply-To: <2C5A3B88-D72F-4CB6-AF6C-87B55925706B@mac.com> References: <2C5A3B88-D72F-4CB6-AF6C-87B55925706B@mac.com> Message-ID: <5c6278d5-a03c-0daa-9446-1273b7b9ee30@hyperactivesw.com> On 4/28/18 12:48 PM, Roger Guay via use-livecode wrote: > I am a total fan of Scott and the many contributions he has offered to the LC community over the years. I particularly like his little plugins tmAlign and tmEffects and use them all the time. However, the title bars of these have gone from light on dark to light on light in V9 of LC, to such an extent that one can hardly read the menu items. And, so far, I have been unable to find a resolution on Scott?s TactileMedia website. Can anyone suggest an easy fix for this? > > I have missed Scott?s frequent participation to this list and hope he is well!! I don't think he reads the list regularly any more, you'd probably get a quicker response if you wrote him directly. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ali.lloyd at livecode.com Sat Apr 28 19:02:18 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sat, 28 Apr 2018 23:02:18 +0000 Subject: Telling the IDE to build a standalone under script control In-Reply-To: References: Message-ID: The revSaveAsStandalone stack is now script-only, and therefore no longer a substack of revStandaloneSettings. So try *send* "revSaveAsStandalone" && quote & tStackName & quote to stack "revSaveAsStandalone" On Sat, Apr 28, 2018 at 6:48 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > In LiveCode 6.x.x and earlier, I used a line in a script: > > > *send*"revSaveAsStandalone"&"e&tStackName"etostack"revSaveAsStandalone"ofstack"revStandaloneSettings" > > to build a standalone of a stack (tStackName) under script control > > In LC9.0.0 this line no longer works. I can dig my way through the IDE > code to find out what changes, but can any one on this list save me the > time if they have already figured out how to build a standalone under > script control under LC9.0.0? > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From irog at mac.com Sat Apr 28 19:02:54 2018 From: irog at mac.com (Roger Guay) Date: Sat, 28 Apr 2018 16:02:54 -0700 Subject: Scott Rossi and TactileMedia In-Reply-To: <5c6278d5-a03c-0daa-9446-1273b7b9ee30@hyperactivesw.com> References: <2C5A3B88-D72F-4CB6-AF6C-87B55925706B@mac.com> <5c6278d5-a03c-0daa-9446-1273b7b9ee30@hyperactivesw.com> Message-ID: <5EC9184C-586F-46F2-B860-52A48522762D@mac.com> Thanks, Jacque. I will try. > On Apr 28, 2018, at 12:29 PM, J. Landman Gay via use-livecode wrote: > > On 4/28/18 12:48 PM, Roger Guay via use-livecode wrote: >> I am a total fan of Scott and the many contributions he has offered to the LC community over the years. I particularly like his little plugins tmAlign and tmEffects and use them all the time. However, the title bars of these have gone from light on dark to light on light in V9 of LC, to such an extent that one can hardly read the menu items. And, so far, I have been unable to find a resolution on Scott?s TactileMedia website. Can anyone suggest an easy fix for this? >> I have missed Scott?s frequent participation to this list and hope he is well!! > > I don't think he reads the list regularly any more, you'd probably get a quicker response if you wrote him directly. > > -- > 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 livfoss at mac.com Sun Apr 29 06:35:23 2018 From: livfoss at mac.com (Graham Samuel) Date: Sun, 29 Apr 2018 11:35:23 +0100 Subject: Mac app code signing for beginners In-Reply-To: <1524925267699-0.post@n4.nabble.com> References: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> <1524925267699-0.post@n4.nabble.com> Message-ID: <94F7C5EA-0764-4FEB-AED5-2B9D7B1B8831@mac.com> Sorry Mark, I?ve just switched countries and I haven?t got all the info to hand, but I think the length of validation depends on the certifcate(s) one buys - you can get them for different lengths of time. From memory, mine are three-year certificates, but you can get shorter and longer ones. HTH Graham > On 28 Apr 2018, at 15:21, Mark Smith via use-livecode wrote: > > graham, do your apps expire and need resigning after a year? > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Sun Apr 29 10:44:23 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Sun, 29 Apr 2018 07:44:23 -0700 Subject: Omegabundle, Scott Rossi and TactileMedia In-Reply-To: Cj7vf3z7HwEY1Cj80f3wAS References: Cj7vf3z7HwEY1Cj80f3wAS Message-ID: <012101d3dfc8$920cc500$b6264f00$@net> I was intrigued by Roger's reference to "tmAlign and "tmEffects" ... always on the lookout for tools to make my programming life easier. In the process I also ran across references to "Omegabudle 2011 for Livecode" ... which sounded like a GREAT deal. HOWEVER, I cannot find anywhere that I can acquire these tools much less more information regarding them. The " paradigmasoft.com" site (referenced in "http://lists.runrev.com/pipermail/use-livecode/2012-February/168494.html") now re-directs to " valentina-db.com" with no reference to this Omegabundle whatsoever. The " omegabundle.com" site does not have any reference to any LC tools (that I can find). I've gone back a few months in THIS list and don't see any recent entry by Lynn Fredricks, who was the President of Paradigma Software in 2012. Scott Rossi's TactileMedia store, when accessed directly, only has "tmControl 1" available and scant info on it. If you Google for "tactilemedia store", you can find a reference to "tmControl 2" but, again with little info. Absolutely NOTHING about "tmAlign" or "tmEffects" or anything else for that matter. I will try to contact Mr. Rossi and Lynn Fredricks directly but, in the meantime, if anyone has any suggestions as to how to acquire these utilities or where they might be available, I'd greatly appreciate the information. Cheers! Doug Douglas Ruisaard Trilogy Software (250) 573-3935 > ------------------------------ > > Message: 7 > Date: Sat, 28 Apr 2018 10:48:44 -0700 > From: Roger Guay > To: use-livecode at lists.runrev.com > Subject: Scott Rossi and TactileMedia > Message-ID: <2C5A3B88-D72F-4CB6-AF6C-87B55925706B at mac.com> > Content-Type: text/plain; charset=utf-8 > > I am a total fan of Scott and the many contributions he has offered to the LC community over the > years. I particularly like his little plugins tmAlign and tmEffects and use them all the time. > However, the title bars of these have gone from light on dark to light on light in V9 of LC, to such > an extent that one can hardly read the menu items. And, so far, I have been unable to find a > resolution on Scott?s TactileMedia website. Can anyone suggest an easy fix for this? > > I have missed Scott?s frequent participation to this list and hope he is well!! > > > Cheers, > > Roger > From prothero at earthlearningsolutions.org Sun Apr 29 10:51:42 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Sun, 29 Apr 2018 07:51:42 -0700 Subject: Mac app code signing for beginners In-Reply-To: <94F7C5EA-0764-4FEB-AED5-2B9D7B1B8831@mac.com> References: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> <1524925267699-0.post@n4.nabble.com> <94F7C5EA-0764-4FEB-AED5-2B9D7B1B8831@mac.com> Message-ID: <7020D074-51C8-4C94-B03F-99C69D48A6D8@earthlearningsolutions.org> I write a couple of apps for myself, that run on Apple iPhone and iPad. I have to buy certificates from the Apple Developer site. They stop working after a year. However, some of the apps I get on the Apple store haven?t been updated for more than a year, yet they still work. I wonder if it has something to do with the way I provision them, as developer apps. Building standalone, provisioning them, etc is always a painful process for me. I think one of the problems is the infrequency that I need to do this, the ever changing way it needs to be done, and the interactions between Xcode, the Apple developer web site, and the keychain. Finding and deleting old certificates seems to be some of the problem for me. They seem to be stored in multiple places and it isn?t obvious which place is accessed by LC when building. Eventually I get it working, but I?m still not sure why always. It seems that there could be more docs on this, but I know it must be an enormous challenge to keep up with this. Perhaps the alerts that come from LC could be more explanative? Or maybe there are simply too many complications. Currently, I create the certificates and provisioning profiles on the developer site, download them to my downloads folder, double click on them and hope they get into Xcode correctly. Certificates load into the keychain. This seems to work for me. When I update from old certificates, I need to delete the old ones. Finding where these are stored (multiple places) seems to change, but eventually I find them. Various postings of procedures by folks here have been extremely helpful. So, I hope my rambling explanation of my experience with some of my challenges with getting my apps on my own devices is informative to those who might be working with the docs. Best, Bill William Prothero http://earthlearningsolutions.org > On Apr 29, 2018, at 3:35 AM, Graham Samuel via use-livecode wrote: > > Sorry Mark, I?ve just switched countries and I haven?t got all the info to hand, but I think the length of validation depends on the certifcate(s) one buys - you can get them for different lengths of time. From memory, mine are three-year certificates, but you can get shorter and longer ones. > > HTH > > Graham > >> On 28 Apr 2018, at 15:21, Mark Smith via use-livecode wrote: >> >> graham, do your apps expire and need resigning after a year? >> >> >> >> -- >> Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 iowahengst at mac.com Sun Apr 29 11:24:08 2018 From: iowahengst at mac.com (Randy Hengst) Date: Sun, 29 Apr 2018 10:24:08 -0500 Subject: Mac app code signing for beginners In-Reply-To: <7020D074-51C8-4C94-B03F-99C69D48A6D8@earthlearningsolutions.org> References: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> <1524925267699-0.post@n4.nabble.com> <94F7C5EA-0764-4FEB-AED5-2B9D7B1B8831@mac.com> <7020D074-51C8-4C94-B03F-99C69D48A6D8@earthlearningsolutions.org> Message-ID: <0CA1C272-0C06-4D4F-9BCC-10457E6394E3@mac.com> Bill, Sounds like you?re loading your apps to your iPhone and iPad via the Xcode Devices and Simulators window? apps loaded in that way will cease to work when your provisioning profile expires. As far as I know (and have experienced), that is the ?normal? way it works. However, those same apps if approved by Apple and made available in the App Store will not cease to work when the profile you used to make the app expires. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Apr 29, 2018, at 9:51 AM, prothero--- via use-livecode wrote: > > I write a couple of apps for myself, that run on Apple iPhone and iPad. I have to buy certificates from the Apple Developer site. They stop working after a year. However, some of the apps I get on the Apple store haven?t been updated for more than a year, yet they still work. I wonder if it has something to do with the way I provision them, as developer apps. > > Building standalone, provisioning them, etc is always a painful process for me. I think one of the problems is the infrequency that I need to do this, the ever changing way it needs to be done, and the interactions between Xcode, the Apple developer web site, and the keychain. Finding and deleting old certificates seems to be some of the problem for me. They seem to be stored in multiple places and it isn?t obvious which place is accessed by LC when building. > > Eventually I get it working, but I?m still not sure why always. It seems that there could be more docs on this, but I know it must be an enormous challenge to keep up with this. Perhaps the alerts that come from LC could be more explanative? Or maybe there are simply too many complications. > > Currently, I create the certificates and provisioning profiles on the developer site, download them to my downloads folder, double click on them and hope they get into Xcode correctly. Certificates load into the keychain. This seems to work for me. When I update from old certificates, I need to delete the old ones. Finding where these are stored (multiple places) seems to change, but eventually I find them. > > Various postings of procedures by folks here have been extremely helpful. > > So, I hope my rambling explanation of my experience with some of my challenges with getting my apps on my own devices is informative to those who might be working with the docs. > > Best, > Bill > > William Prothero > http://earthlearningsolutions.org > >> On Apr 29, 2018, at 3:35 AM, Graham Samuel via use-livecode wrote: >> >> Sorry Mark, I?ve just switched countries and I haven?t got all the info to hand, but I think the length of validation depends on the certifcate(s) one buys - you can get them for different lengths of time. From memory, mine are three-year certificates, but you can get shorter and longer ones. >> >> HTH >> >> Graham >> >>> On 28 Apr 2018, at 15:21, Mark Smith via use-livecode wrote: >>> >>> graham, do your apps expire and need resigning after a year? >>> >>> >>> >>> -- >>> Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Apr 29 12:25:31 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 29 Apr 2018 19:25:31 +0300 Subject: Down a leafy lane or up queer street? In-Reply-To: References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> Message-ID: I am being extremely stupid, and am getting so desperate I don't mind admitting it. I have a stack containing a series of images that are 'empty' images with their sources set to an external folder. Now in my stackScript I have this: |global route66 on preOpenStack put specialFolderPath("resources") & "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card "TITLE" end preOpenStack| and in my cardScript I have this: |on preOpenCard set the lockScreen to true -------- set the filename of img "p1" to empty ------- set the filename of img "p1" to (route66 & "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks set the lockScreen to false end preOpenCard so, WHY cannot I see the target image, merely a horrible grey square? Richmond. | From prothero at earthlearningsolutions.org Sun Apr 29 12:30:00 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Sun, 29 Apr 2018 09:30:00 -0700 Subject: Mac app code signing for beginners In-Reply-To: <0CA1C272-0C06-4D4F-9BCC-10457E6394E3@mac.com> References: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> <1524925267699-0.post@n4.nabble.com> <94F7C5EA-0764-4FEB-AED5-2B9D7B1B8831@mac.com> <7020D074-51C8-4C94-B03F-99C69D48A6D8@earthlearningsolutions.org> <0CA1C272-0C06-4D4F-9BCC-10457E6394E3@mac.com> Message-ID: <79000D75-FD96-4CC3-A2E0-ADBEC8EB0980@earthlearningsolutions.org> Randy Thaks for that info. You are correct that I load them from the ide. I notice that with lc9 I can load directly from the Developer menu. Nice. Maybe I didn?t notice it for older versions. I?ll get that into my notes. Bill William Prothero http://ed.earthednet.org > On Apr 29, 2018, at 8:24 AM, Randy Hengst via use-livecode wrote: > > Bill, > > Sounds like you?re loading your apps to your iPhone and iPad via the Xcode Devices and Simulators window? apps loaded in that way will cease to work when your provisioning profile expires. As far as I know (and have experienced), that is the ?normal? way it works. > > However, those same apps if approved by Apple and made available in the App Store will not cease to work when the profile you used to make the app expires. > > be well, > randy > > Randy Hengst > www.classroomFocusedSoftware.com > > >> On Apr 29, 2018, at 9:51 AM, prothero--- via use-livecode wrote: >> >> I write a couple of apps for myself, that run on Apple iPhone and iPad. I have to buy certificates from the Apple Developer site. They stop working after a year. However, some of the apps I get on the Apple store haven?t been updated for more than a year, yet they still work. I wonder if it has something to do with the way I provision them, as developer apps. >> >> Building standalone, provisioning them, etc is always a painful process for me. I think one of the problems is the infrequency that I need to do this, the ever changing way it needs to be done, and the interactions between Xcode, the Apple developer web site, and the keychain. Finding and deleting old certificates seems to be some of the problem for me. They seem to be stored in multiple places and it isn?t obvious which place is accessed by LC when building. >> >> Eventually I get it working, but I?m still not sure why always. It seems that there could be more docs on this, but I know it must be an enormous challenge to keep up with this. Perhaps the alerts that come from LC could be more explanative? Or maybe there are simply too many complications. >> >> Currently, I create the certificates and provisioning profiles on the developer site, download them to my downloads folder, double click on them and hope they get into Xcode correctly. Certificates load into the keychain. This seems to work for me. When I update from old certificates, I need to delete the old ones. Finding where these are stored (multiple places) seems to change, but eventually I find them. >> >> Various postings of procedures by folks here have been extremely helpful. >> >> So, I hope my rambling explanation of my experience with some of my challenges with getting my apps on my own devices is informative to those who might be working with the docs. >> >> Best, >> Bill >> >> William Prothero >> http://earthlearningsolutions.org >> >>> On Apr 29, 2018, at 3:35 AM, Graham Samuel via use-livecode wrote: >>> >>> Sorry Mark, I?ve just switched countries and I haven?t got all the info to hand, but I think the length of validation depends on the certifcate(s) one buys - you can get them for different lengths of time. From memory, mine are three-year certificates, but you can get shorter and longer ones. >>> >>> HTH >>> >>> Graham >>> >>>> On 28 Apr 2018, at 15:21, Mark Smith via use-livecode wrote: >>>> >>>> graham, do your apps expire and need resigning after a year? >>>> >>>> >>>> >>>> -- >>>> Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 rdimola at evergreeninfo.net Sun Apr 29 12:42:46 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 29 Apr 2018 12:42:46 -0400 Subject: Down a leafy lane or up queer street? In-Reply-To: References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> Message-ID: <001601d3dfd9$1dfbb9d0$59f32d70$@net> Richmond, First of all I never use lockscreens in preopencards. It's redundant unless there are some conditions I'm unaware of. I recently had this problem when I used "file==>Import control from==>image file" and then subsequently set the filename property. It seemed like once the image control was using an image imported to stack I could never set the filename property and get anything other than the "horrible gray square". I don't think it was always this way. What I did to fix it was to delete the control and then added an empty image control from the IDE tools pallet. After that I was able to set the filename property and see the images just fine and dandy. Any chance this is also your problem? 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 Richmond Mathewson via use-livecode Sent: Sunday, April 29, 2018 12:26 PM To: How to use LiveCode Cc: Richmond Mathewson Subject: Re: Down a leafy lane or up queer street? I am being extremely stupid, and am getting so desperate I don't mind admitting it. I have a stack containing a series of images that are 'empty' images with their sources set to an external folder. Now in my stackScript I have this: |global route66 on preOpenStack put specialFolderPath("resources") & "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card "TITLE" end preOpenStack| and in my cardScript I have this: |on preOpenCard set the lockScreen to true -------- set the filename of img "p1" to empty ------- set the filename of img "p1" to (route66 & "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks set the lockScreen to false end preOpenCard so, WHY cannot I see the target image, merely a horrible grey square? 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 jacque at hyperactivesw.com Sun Apr 29 13:01:20 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 29 Apr 2018 12:01:20 -0500 Subject: Down a leafy lane or up queer street? In-Reply-To: References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> Message-ID: <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> In the IDE, specialFolderPath("resources") points to the folder containing the working stack. In a standalone it points to the folder containing files you've included in the Copy Files pane of the standalone builder. Therefore, there will never be a folder specialFolderPath("resources") & "/Desktop/..." unless you have created a Desktop folder inside the one holding your stack. The correct path would be specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/" -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode wrote: > I am being extremely stupid, and am getting so desperate I don't mind > admitting it. > > I have a stack containing a series of images that are 'empty' images > with their > sources set to an external folder. > > Now in my stackScript I have this: > > |global route66 on preOpenStack put specialFolderPath("resources") & > "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card > "TITLE" end preOpenStack| > > and in my cardScript I have this: > > |on preOpenCard set the lockScreen to true -------- set the filename of > img "p1" to empty ------- set the filename of img "p1" to (route66 & > "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks set > the lockScreen to false end preOpenCard so, WHY cannot I see the target > image, merely a horrible grey square? 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 Sun Apr 29 13:07:16 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 29 Apr 2018 20:07:16 +0300 Subject: Down a leafy lane or up queer street? In-Reply-To: <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Still the Queen of xTalk! Thanks. Love, Richmond. On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote: > In the IDE, specialFolderPath("resources") points to the folder > containing the working stack. In a standalone it points to the folder > containing files you've included in the Copy Files pane of the > standalone builder. > > Therefore, there will never be a folder specialFolderPath("resources") > & "/Desktop/..." unless you have created a Desktop folder inside the > one holding your stack. The correct path would be > specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/" > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode > wrote: > >> I am being extremely stupid, and am getting so desperate I don't mind >> admitting it. >> >> I have a stack containing a series of images that are 'empty' images >> with their >> sources set to an external folder. >> >> Now in my stackScript I have this: >> >> |global route66 on preOpenStack put specialFolderPath("resources") & >> "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card >> "TITLE" end preOpenStack| >> >> and in my cardScript I have this: >> >> |on preOpenCard set the lockScreen to true -------- set the filename of >> img "p1" to empty ------- set the filename of img "p1" to (route66 & >> "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks set >> the lockScreen to false end preOpenCard so, WHY cannot I see the target >> image, merely a horrible grey square? 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 Sun Apr 29 13:56:11 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 29 Apr 2018 20:56:11 +0300 Subject: Down a leafy lane or up queer street? In-Reply-To: <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: So, I have corrected the specialFolderPath as per your instructions. But I am still going wrong as my source for the imgData of img "p1" is still listed asroute66p1.png . . . Richmond. On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote: > In the IDE, specialFolderPath("resources") points to the folder > containing the working stack. In a standalone it points to the folder > containing files you've included in the Copy Files pane of the > standalone builder. > > Therefore, there will never be a folder specialFolderPath("resources") > & "/Desktop/..." unless you have created a Desktop folder inside the > one holding your stack. The correct path would be > specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/" > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode > wrote: > >> I am being extremely stupid, and am getting so desperate I don't mind >> admitting it. >> >> I have a stack containing a series of images that are 'empty' images >> with their >> sources set to an external folder. >> >> Now in my stackScript I have this: >> >> |global route66 on preOpenStack put specialFolderPath("resources") & >> "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card >> "TITLE" end preOpenStack| >> >> and in my cardScript I have this: >> >> |on preOpenCard set the lockScreen to true -------- set the filename of >> img "p1" to empty ------- set the filename of img "p1" to (route66 & >> "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks set >> the lockScreen to false end preOpenCard so, WHY cannot I see the target >> image, merely a horrible grey square? 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 Sun Apr 29 14:01:03 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 29 Apr 2018 21:01:03 +0300 Subject: Down a leafy lane or up queer street? In-Reply-To: References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Yet, if I do this in the Message box: put route66 I get the filepath as one would expect. Richmond. On 29/4/2018 8:56 pm, Richmond Mathewson wrote: > So, I have corrected the specialFolderPath as per your instructions. > > But I am still going wrong as my source for the imgData of img "p1" is > still > listed asroute66p1.png . . . > > Richmond. > > On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote: >> In the IDE, specialFolderPath("resources") points to the folder >> containing the working stack. In a standalone it points to the folder >> containing files you've included in the Copy Files pane of the >> standalone builder. >> >> Therefore, there will never be a folder >> specialFolderPath("resources") & "/Desktop/..." unless you have >> created a Desktop folder inside the one holding your stack. The >> correct path would be specialFolderPath("resources") & >> "/Obfuscated/May 2018/assets/img/" >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode >> wrote: >> >>> I am being extremely stupid, and am getting so desperate I don't mind >>> admitting it. >>> >>> I have a stack containing a series of images that are 'empty' images >>> with their >>> sources set to an external folder. >>> >>> Now in my stackScript I have this: >>> >>> |global route66 on preOpenStack put specialFolderPath("resources") & >>> "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card >>> "TITLE" end preOpenStack| >>> >>> and in my cardScript I have this: >>> >>> |on preOpenCard set the lockScreen to true -------- set the filename of >>> img "p1" to empty ------- set the filename of img "p1" to (route66 & >>> "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks set >>> the lockScreen to false end preOpenCard so, WHY cannot I see the target >>> image, merely a horrible grey square? 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 Sun Apr 29 14:15:31 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 29 Apr 2018 21:15:31 +0300 Subject: Down a leafy lane or up queer street? In-Reply-To: References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <5f40c149-0cf1-ffd1-f2b8-13e562c4c75c@gmail.com> OK: finally I have sorted out the problem. It seems that IFF I have this in my cardScript: globalroute66 onpreOpenCard putspecialFolderPath("resources") & "/assets/img/" intoroute66 everything works. What I would like to know is: Why does THAT script & the declaration of a global NOT work when it resides in the stackScript? Richmond. On 29/4/2018 8:56 pm, Richmond Mathewson wrote: > So, I have corrected the specialFolderPath as per your instructions. > > But I am still going wrong as my source for the imgData of img "p1" is > still > listed asroute66p1.png . . . > > Richmond. > > On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote: >> In the IDE, specialFolderPath("resources") points to the folder >> containing the working stack. In a standalone it points to the folder >> containing files you've included in the Copy Files pane of the >> standalone builder. >> >> Therefore, there will never be a folder >> specialFolderPath("resources") & "/Desktop/..." unless you have >> created a Desktop folder inside the one holding your stack. The >> correct path would be specialFolderPath("resources") & >> "/Obfuscated/May 2018/assets/img/" >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode >> wrote: >> >>> I am being extremely stupid, and am getting so desperate I don't mind >>> admitting it. >>> >>> I have a stack containing a series of images that are 'empty' images >>> with their >>> sources set to an external folder. >>> >>> Now in my stackScript I have this: >>> >>> |global route66 on preOpenStack put specialFolderPath("resources") & >>> "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card >>> "TITLE" end preOpenStack| >>> >>> and in my cardScript I have this: >>> >>> |on preOpenCard set the lockScreen to true -------- set the filename of >>> img "p1" to empty ------- set the filename of img "p1" to (route66 & >>> "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks set >>> the lockScreen to false end preOpenCard so, WHY cannot I see the target >>> image, merely a horrible grey square? 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 tore.nilsen at me.com Sun Apr 29 14:28:21 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Sun, 29 Apr 2018 20:28:21 +0200 Subject: Down a leafy lane or up queer street? In-Reply-To: <5f40c149-0cf1-ffd1-f2b8-13e562c4c75c@gmail.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5f40c149-0cf1-ffd1-f2b8-13e562c4c75c@gmail.com> Message-ID: <5EEDA8BE-101C-4283-A4C4-1C16B6C2ED94@me.com> If route66 is declared as a local variabel in the card script (and it must be declared outside any handlers), then all other scripts that uses this variabel must reside in the card script as well. If it is declared as a global variabel, it must be declared in all scripts that uses this variabel. Tore Nilsen > 29. apr. 2018 kl. 20:15 skrev Richmond Mathewson via use-livecode : > > OK: finally I have sorted out the problem. > > It seems that IFF I have this in my cardScript: > > globalroute66 > > onpreOpenCard > > putspecialFolderPath("resources") & "/assets/img/" intoroute66 > > everything works. > > What I would like to know is: > > Why does THAT script & the declaration of a global NOT work when it resides in the stackScript? > > Richmond. > > > On 29/4/2018 8:56 pm, Richmond Mathewson wrote: >> So, I have corrected the specialFolderPath as per your instructions. >> >> But I am still going wrong as my source for the imgData of img "p1" is still >> listed asroute66p1.png . . . >> >> Richmond. >> >> On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote: >>> In the IDE, specialFolderPath("resources") points to the folder containing the working stack. In a standalone it points to the folder containing files you've included in the Copy Files pane of the standalone builder. >>> >>> Therefore, there will never be a folder specialFolderPath("resources") & "/Desktop/..." unless you have created a Desktop folder inside the one holding your stack. The correct path would be specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/" >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode wrote: >>> >>>> I am being extremely stupid, and am getting so desperate I don't mind >>>> admitting it. >>>> >>>> I have a stack containing a series of images that are 'empty' images >>>> with their >>>> sources set to an external folder. >>>> >>>> Now in my stackScript I have this: >>>> >>>> |global route66 on preOpenStack put specialFolderPath("resources") & >>>> "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card >>>> "TITLE" end preOpenStack| >>>> >>>> and in my cardScript I have this: >>>> >>>> |on preOpenCard set the lockScreen to true -------- set the filename of >>>> img "p1" to empty ------- set the filename of img "p1" to (route66 & >>>> "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks set >>>> the lockScreen to false end preOpenCard so, WHY cannot I see the target >>>> image, merely a horrible grey square? 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 bonnmike at gmail.com Sun Apr 29 14:29:20 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 29 Apr 2018 12:29:20 -0600 Subject: Down a leafy lane or up queer street? In-Reply-To: <5f40c149-0cf1-ffd1-f2b8-13e562c4c75c@gmail.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5f40c149-0cf1-ffd1-f2b8-13e562c4c75c@gmail.com> Message-ID: Did you declare it as a global on the card also? You have to declare it for every context that it will be used. Stack, card, if you use it in a button script, wherever. If you've declared it in a card script, and set its value, but then use it WITHOUT declaration all you get back is the text of the name (IE route66) The reason you can see the value when checking it from the message box, is that it is executing the commands as if they were in the context of the stack script. To test what I mean, create a script in a button with the following: on mouseup put "undeclared variable:" && tUndeclared -- shows tUndeclared in the message box local tDeclared put cr & "Declared but un-set variable:" && tDeclared after msg -- no value shown, tDeclared exists but is empty put "value set" into tDeclared put cr & "Declared and value set to: " & tDeclared after msg -- tdeclared exists and now has a value end mouseup On Sun, Apr 29, 2018 at 12:15 PM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > OK: finally I have sorted out the problem. > > It seems that IFF I have this in my cardScript: > > globalroute66 > > onpreOpenCard > > putspecialFolderPath("resources") & "/assets/img/" intoroute66 > > everything works. > > What I would like to know is: > > Why does THAT script & the declaration of a global NOT work when it > resides in the stackScript? > > Richmond. > > > On 29/4/2018 8:56 pm, Richmond Mathewson wrote: > >> So, I have corrected the specialFolderPath as per your instructions. >> >> But I am still going wrong as my source for the imgData of img "p1" is >> still >> listed asroute66p1.png . . . >> >> Richmond. >> >> On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote: >> >>> In the IDE, specialFolderPath("resources") points to the folder >>> containing the working stack. In a standalone it points to the folder >>> containing files you've included in the Copy Files pane of the standalone >>> builder. >>> >>> Therefore, there will never be a folder specialFolderPath("resources") & >>> "/Desktop/..." unless you have created a Desktop folder inside the one >>> holding your stack. The correct path would be >>> specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/" >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> I am being extremely stupid, and am getting so desperate I don't mind >>>> admitting it. >>>> >>>> I have a stack containing a series of images that are 'empty' images >>>> with their >>>> sources set to an external folder. >>>> >>>> Now in my stackScript I have this: >>>> >>>> |global route66 on preOpenStack put specialFolderPath("resources") & >>>> "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card >>>> "TITLE" end preOpenStack| >>>> >>>> and in my cardScript I have this: >>>> >>>> |on preOpenCard set the lockScreen to true -------- set the filename of >>>> img "p1" to empty ------- set the filename of img "p1" to (route66 & >>>> "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks set >>>> the lockScreen to false end preOpenCard so, WHY cannot I see the target >>>> image, merely a horrible grey square? 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 Apr 29 14:37:03 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 29 Apr 2018 21:37:03 +0300 Subject: Down a leafy lane or up queer street? In-Reply-To: <5EEDA8BE-101C-4283-A4C4-1C16B6C2ED94@me.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5f40c149-0cf1-ffd1-f2b8-13e562c4c75c@gmail.com> <5EEDA8BE-101C-4283-A4C4-1C16B6C2ED94@me.com> Message-ID: <560964e7-8161-ac13-eac6-6b08857e02ff@gmail.com> "it must be declared in all scripts that uses this variabel." Aha: *thanks* for that. Richmond. On 29/4/2018 9:28 pm, Tore Nilsen via use-livecode wrote: > If route66 is declared as a local variabel in the card script (and it must be declared outside any handlers), then all other scripts that uses this variabel must reside in the card script as well. If it is declared as a global variabel, it must be declared in all scripts that uses this variabel. > > Tore Nilsen > >> 29. apr. 2018 kl. 20:15 skrev Richmond Mathewson via use-livecode : >> >> OK: finally I have sorted out the problem. >> >> It seems that IFF I have this in my cardScript: >> >> globalroute66 >> >> onpreOpenCard >> >> putspecialFolderPath("resources") & "/assets/img/" intoroute66 >> >> everything works. >> >> What I would like to know is: >> >> Why does THAT script & the declaration of a global NOT work when it resides in the stackScript? >> >> Richmond. >> >> >> On 29/4/2018 8:56 pm, Richmond Mathewson wrote: >>> So, I have corrected the specialFolderPath as per your instructions. >>> >>> But I am still going wrong as my source for the imgData of img "p1" is still >>> listed asroute66p1.png . . . >>> >>> Richmond. >>> >>> On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote: >>>> In the IDE, specialFolderPath("resources") points to the folder containing the working stack. In a standalone it points to the folder containing files you've included in the Copy Files pane of the standalone builder. >>>> >>>> Therefore, there will never be a folder specialFolderPath("resources") & "/Desktop/..." unless you have created a Desktop folder inside the one holding your stack. The correct path would be specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/" >>>> >>>> -- >>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >>>> On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode wrote: >>>> >>>>> I am being extremely stupid, and am getting so desperate I don't mind >>>>> admitting it. >>>>> >>>>> I have a stack containing a series of images that are 'empty' images >>>>> with their >>>>> sources set to an external folder. >>>>> >>>>> Now in my stackScript I have this: >>>>> >>>>> |global route66 on preOpenStack put specialFolderPath("resources") & >>>>> "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card >>>>> "TITLE" end preOpenStack| >>>>> >>>>> and in my cardScript I have this: >>>>> >>>>> |on preOpenCard set the lockScreen to true -------- set the filename of >>>>> img "p1" to empty ------- set the filename of img "p1" to (route66 & >>>>> "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks set >>>>> the lockScreen to false end preOpenCard so, WHY cannot I see the target >>>>> image, merely a horrible grey square? 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Sun Apr 29 14:52:31 2018 From: brian at milby7.com (Brian Milby) Date: Sun, 29 Apr 2018 18:52:31 +0000 Subject: Down a leafy lane or up queer street? In-Reply-To: <560964e7-8161-ac13-eac6-6b08857e02ff@gmail.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5f40c149-0cf1-ffd1-f2b8-13e562c4c75c@gmail.com> <5EEDA8BE-101C-4283-A4C4-1C16B6C2ED94@me.com> <560964e7-8161-ac13-eac6-6b08857e02ff@gmail.com> Message-ID: I imagine that if you had strict mode enabled then the IDE would flag it for you too (if undeclared). On Sun, Apr 29, 2018 at 1:37 PM Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > "it must be declared in all scripts that uses this variabel." > > Aha: *thanks* for that. > > Richmond. > > On 29/4/2018 9:28 pm, Tore Nilsen via use-livecode wrote: > > If route66 is declared as a local variabel in the card script (and it > must be declared outside any handlers), then all other scripts that uses > this variabel must reside in the card script as well. If it is declared as > a global variabel, it must be declared in all scripts that uses this > variabel. > > > > Tore Nilsen > > > >> 29. apr. 2018 kl. 20:15 skrev Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> OK: finally I have sorted out the problem. > >> > >> It seems that IFF I have this in my cardScript: > >> > >> globalroute66 > >> > >> onpreOpenCard > >> > >> putspecialFolderPath("resources") & "/assets/img/" intoroute66 > >> > >> everything works. > >> > >> What I would like to know is: > >> > >> Why does THAT script & the declaration of a global NOT work when it > resides in the stackScript? > >> > >> Richmond. > >> > >> > >> On 29/4/2018 8:56 pm, Richmond Mathewson wrote: > >>> So, I have corrected the specialFolderPath as per your instructions. > >>> > >>> But I am still going wrong as my source for the imgData of img "p1" is > still > >>> listed asroute66p1.png . . . > >>> > >>> Richmond. > >>> > >>> On 29/4/2018 8:01 pm, J. Landman Gay via use-livecode wrote: > >>>> In the IDE, specialFolderPath("resources") points to the folder > containing the working stack. In a standalone it points to the folder > containing files you've included in the Copy Files pane of the standalone > builder. > >>>> > >>>> Therefore, there will never be a folder > specialFolderPath("resources") & "/Desktop/..." unless you have created a > Desktop folder inside the one holding your stack. The correct path would be > specialFolderPath("resources") & "/Obfuscated/May 2018/assets/img/" > >>>> > >>>> -- > >>>> Jacqueline Landman Gay | jacque at hyperactivesw.com > >>>> HyperActive Software | http://www.hyperactivesw.com > >>>> On April 29, 2018 11:27:39 AM Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>>> > >>>>> I am being extremely stupid, and am getting so desperate I don't mind > >>>>> admitting it. > >>>>> > >>>>> I have a stack containing a series of images that are 'empty' images > >>>>> with their > >>>>> sources set to an external folder. > >>>>> > >>>>> Now in my stackScript I have this: > >>>>> > >>>>> |global route66 on preOpenStack put specialFolderPath("resources") & > >>>>> "/Desktop/Obfuscated/May 2018/assets/img/" into route66 go to card > >>>>> "TITLE" end preOpenStack| > >>>>> > >>>>> and in my cardScript I have this: > >>>>> > >>>>> |on preOpenCard set the lockScreen to true -------- set the filename > of > >>>>> img "p1" to empty ------- set the filename of img "p1" to (route66 & > >>>>> "c1.png") set the blendlevel of img "p1" to 0 -------- wait 3 ticks > set > >>>>> the lockScreen to false end preOpenCard so, WHY cannot I see the > target > >>>>> image, merely a horrible grey square? 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 > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 tore.nilsen at me.com Sun Apr 29 14:57:52 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Sun, 29 Apr 2018 20:57:52 +0200 Subject: Down a leafy lane or up queer street? In-Reply-To: <560964e7-8161-ac13-eac6-6b08857e02ff@gmail.com> References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5f40c149-0cf1-ffd1-f2b8-13e562c4c75c@gmail.com> <5EEDA8BE-101C-4283-A4C4-1C16B6C2ED94@me.com> <560964e7-8161-ac13-eac6-6b08857e02ff@gmail.com> Message-ID: The variabel scope can be a bit tricky. The difference between a script local variabel (declared as a local variabel outside any handlers) and a global variabel can be confusing. They act very much the same way when used within one script. The main difference being that a global variabel can be used in any script when it is declared in the same script. Both variabels retain their values between handlers and sessions as long as the application is open. To add to the confusion, temporary variabels (undeclared or declared local within a handler) are referred to as local variabels also. For the convenience of my students I refer to variabels that are undeclared (or declared within a handler) for temporary variabels, with names starting with t-. I only refer to local variabels as local when they are declared outside of handler, and I use names starting with s-. To make sure that global variabels are easily recognised as such I start their name with g-. I use the same naming convention for arrays. I also declare all global and script local variabels at the top of my scripts. Then I am sure they will be available to all handlers in that script. Regards Tore > 29. apr. 2018 kl. 20:37 skrev Richmond Mathewson via use-livecode : > > "it must be declared in all scripts that uses this variabel." > > Aha: *thanks* for that. From tfabacher at gmail.com Sun Apr 29 15:09:53 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Sun, 29 Apr 2018 15:09:53 -0400 Subject: Scott Rossi and TactileMedia Message-ID: Scott was such a talented innovator and I loved the work he did. At Digital Pomegranate we were customers and used TactileMedia controls. Since we are now creating UI widgets, please let us know what controls from TactileMedia you liked the most and we will see if we can make them into now LCB widgets. --Todd From alex at tweedly.net Sun Apr 29 18:56:49 2018 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 29 Apr 2018 23:56:49 +0100 Subject: Scott Rossi and TactileMedia In-Reply-To: References: Message-ID: Hi Todd, can you say if you have any plans to produce versions of your widgets for non-mobile platforms ? Thanks, Alex. On 29/04/2018 20:09, Todd Fabacher via use-livecode wrote: > Scott was such a talented innovator and I loved the work he did. > > At Digital Pomegranate we were customers and used TactileMedia controls. > Since we are now creating UI widgets, please let us know what controls > from TactileMedia you liked the most and we will see if we can make them > into now LCB widgets. > > --Todd > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From htorrado at networkdreams.es Sun Apr 29 19:48:29 2018 From: htorrado at networkdreams.es (Heriberto Torrado) Date: Sun, 29 Apr 2018 19:48:29 -0400 Subject: Splitting long elements into two lines in an Option Menu In-Reply-To: <248f7389-aff8-65f8-9bdf-61f74ce3c1f7@gmail.com> References: <248f7389-aff8-65f8-9bdf-61f74ce3c1f7@gmail.com> Message-ID: <42c6a773-693a-f27b-e97f-4a2b944e311e@networkdreams.es> Thank you very much Richmond. Your answer was very helpful. :-) Best, Hery On 04/27/2018 05:09 AM, Richmond via use-livecode wrote: > I've just set up a stack containing 2 fields; one called "fff" > containing your > > original string, another called "fCHOPPED" that is a scrolling list > field. > > I have a button containing this script: > > on mouseUp > ?? put fld "fff" into FFF > ?? set the itemDelimiter to "," > ?? put 1 into KOUNT > ?? repeat until item KOUNT of FFF is empty > ????? put item KOUNT of FFF into line KOUNT of fld "fCHOPPED" > ????? add 1 to KOUNT > ?? end repeat > end mouseUp > > which puts the string into the scrolling list field like this: > > /Dialyse r?nale > ?insuffisance r?nale > ?maladie r?naleDID > ?diab?te de type 1// > //diab?te insulino d?pendant/ > > Richmond. > > > On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote: >> /Dialyse r?nale, insuffisance r?nale, maladie r?naleDID, diab?te de >> type 1//,//diab?te insulino d?pendant/ > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From htorrado at networkdreams.es Sun Apr 29 19:58:15 2018 From: htorrado at networkdreams.es (Heriberto Torrado) Date: Sun, 29 Apr 2018 19:58:15 -0400 Subject: Splitting long elements into two lines in an Option Menu In-Reply-To: <1630599fd40.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1524803561759-0.post@n4.nabble.com> <909BF011-5745-4B6D-91EC-471A810300D6@unimelb.edu.au> <1630599fd40.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <581e2fc4-9d64-7c5e-6bc8-8158f9f44913@networkdreams.es> Jacqueline, Craig, Terry, Thank you very much for your answers. Best, Hery On 04/27/2018 01:36 AM, J. Landman Gay via use-livecode wrote: > Or use a normal field as Craig suggested and create soft-wrapped lines > by inserting ASCII 11 at line breaks. These select as normal lines but > visually appear as separate lines. > > From the 5.5 release notes: > > The engine will now interpret a numToChar(11) character in a field > paragraph as an explicit line- > break when the (effective) dontWrap of the paragraph is false. This > allows multiple ?lines? to be > displayed within a single paragraph. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On April 26, 2018 11:43:16 PM Terry Judd via use-livecode > wrote: > >> Or perhaps use a form type datagrid - which will allow you to present >> and select multi-lined option more readily. >> >> Regards, >> >> Terry... >> >> ?On 27/04/2018 2:33 pm, "use-livecode on behalf of dunbarx via >> use-livecode" > use-livecode at lists.runrev.com> wrote: >> >> ?? Hi. >> >> ?? If I were you, with the task you laid out, I would not use an >> option menu. >> ?? It is not good with wide menuItems, and it is not natural, if even >> possible, >> ?? to select multiple lines in the way you want. >> >> ?? Use a list field instead. A field has many properties that are >> denied an >> ?? optionMenu, which is really just a button. >> >> ?? You can have multiple lines selected, by trapping "mouseUp", say, >> and with >> ?? the clickLine, select the following line as well. Or the following >> five. Or >> ?? the previous. That sort of thing. A field just is far more able in >> this >> ?? regard. >> >> ?? Craig Newman >> >> >> >> ?? -- >> ?? Sent from: >> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html >> >> ?? _______________________________________________ >> ?? use-livecode mailing list >> ?? use-livecode 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_Smith at cpe.umanitoba.ca Sun Apr 29 23:07:33 2018 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 29 Apr 2018 20:07:33 -0700 (MST) Subject: Mac app code signing for beginners In-Reply-To: <7020D074-51C8-4C94-B03F-99C69D48A6D8@earthlearningsolutions.org> References: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> <1524925267699-0.post@n4.nabble.com> <94F7C5EA-0764-4FEB-AED5-2B9D7B1B8831@mac.com> <7020D074-51C8-4C94-B03F-99C69D48A6D8@earthlearningsolutions.org> Message-ID: <1525057653752-0.post@n4.nabble.com> Hi Bill, reading your message I thought for a second it was something I had written myself. You stole the words out of my mouth. Always challenging, never seems repeatable the same way twice. Eventually i figure it out but there are so many steps (and missteps) that I never feel like i have critical path down straight. Hugely frustrating and wish Apple would fix it so that's it about 100 times easier. And why can't I have one file, just one, that i use to code sign apps from now till eternity? Why do they need to expire at all? Mark -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From prothero at earthlearningsolutions.org Mon Apr 30 01:29:38 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Sun, 29 Apr 2018 22:29:38 -0700 Subject: Mac app code signing for beginners In-Reply-To: <1525057653752-0.post@n4.nabble.com> References: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> <1524925267699-0.post@n4.nabble.com> <94F7C5EA-0764-4FEB-AED5-2B9D7B1B8831@mac.com> <7020D074-51C8-4C94-B03F-99C69D48A6D8@earthlearningsolutions.org> <1525057653752-0.post@n4.nabble.com> Message-ID: <5801B440-F2A1-438F-8B9B-BF2402633A17@earthlearningsolutions.org> Mark, I think we can complain about Apple, but they are going to do what they want. My hope is to make it more clear where we get hung up so hopefully they (whoever writes the docs) can write them in a way that answers the questions we face. I think it?s a big challenge, but it?s the world we live in. Best, Bill William Prothero http://earthlearningsolutions.org > On Apr 29, 2018, at 8:07 PM, Mark Smith via use-livecode wrote: > > Hi Bill, reading your message I thought for a second it was something I had > written myself. You stole the words out of my mouth. Always challenging, > never seems repeatable the same way twice. Eventually i figure it out but > there are so many steps (and missteps) that I never feel like i have > critical path down straight. Hugely frustrating and wish Apple would fix it > so that's it about 100 times easier. And why can't I have one file, just > one, that i use to code sign apps from now till eternity? Why do they need > to expire at all? > > Mark > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Apr 30 06:57:37 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 30 Apr 2018 11:57:37 +0100 Subject: [ANN] This Week in LiveCode 126 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #126 here: https://goo.gl/rFt3P4 This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From thatkeith at mac.com Mon Apr 30 07:26:02 2018 From: thatkeith at mac.com (Keith Martin) Date: Mon, 30 Apr 2018 12:26:02 +0100 Subject: Mac app code signing for beginners In-Reply-To: <1525057653752-0.post@n4.nabble.com> References: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> <1524925267699-0.post@n4.nabble.com> <94F7C5EA-0764-4FEB-AED5-2B9D7B1B8831@mac.com> <7020D074-51C8-4C94-B03F-99C69D48A6D8@earthlearningsolutions.org> <1525057653752-0.post@n4.nabble.com> Message-ID: <634D8AE6-BDF5-45F0-86EA-49F3D08C24A2@mac.com> On 30 Apr 2018, at 4:07, Mark Smith via use-livecode wrote: > Hi Bill, reading your message I thought for a second it was something > I had > written myself. You stole the words out of my mouth. Always > challenging, > never seems repeatable the same way twice. May I second this? Getting things set up to go on the App Store is a !@?$% PITA. If this can be simplified through guides and stuff from the mothership that would (to my mind) be a major USP and argument for using LC. I imagine it's no small undertaking, but it could be significantly helpful. k From thatkeith at mac.com Mon Apr 30 07:26:02 2018 From: thatkeith at mac.com (Keith Martin) Date: Mon, 30 Apr 2018 12:26:02 +0100 Subject: Mac app code signing for beginners In-Reply-To: <1525057653752-0.post@n4.nabble.com> References: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> <1524925267699-0.post@n4.nabble.com> <94F7C5EA-0764-4FEB-AED5-2B9D7B1B8831@mac.com> <7020D074-51C8-4C94-B03F-99C69D48A6D8@earthlearningsolutions.org> <1525057653752-0.post@n4.nabble.com> Message-ID: <634D8AE6-BDF5-45F0-86EA-49F3D08C24A2@mac.com> On 30 Apr 2018, at 4:07, Mark Smith via use-livecode wrote: > Hi Bill, reading your message I thought for a second it was something > I had > written myself. You stole the words out of my mouth. Always > challenging, > never seems repeatable the same way twice. May I second this? Getting things set up to go on the App Store is a !@?$% PITA. If this can be simplified through guides and stuff from the mothership that would (to my mind) be a major USP and argument for using LC. I imagine it's no small undertaking, but it could be significantly helpful. k From bobsneidar at iotecdigital.com Mon Apr 30 11:07:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Apr 2018 15:07:33 +0000 Subject: Down a leafy lane or up queer street? In-Reply-To: References: <7372be38-fab5-bf5a-6466-47048288d3b2@gmail.com> <69206540-A054-45A3-8E1D-EA3880547926@me.com> <98d7f074-1505-0cf8-3e25-26f1b86901fd@gmail.com> <317D5E24-973E-444A-91CF-0990DAE242BD@me.com> <50131f8a-706b-a4fa-5fc1-55ec4be45547@gmail.com> <163125a0700.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5f40c149-0cf1-ffd1-f2b8-13e562c4c75c@gmail.com> <5EEDA8BE-101C-4283-A4C4-1C16B6C2ED94@me.com> <560964e7-8161-ac13-eac6-6b08857e02ff@gmail.com> Message-ID: I avoid global variables as these are visible to any open stack you are working on, so you cannot have 2 stacks open that use the same global names or they will overwrite each other. Instead I use the custom properties of the mainstack as an ad hoc stack global system. I do this with cards and objects too. It means I need to have a line in each script for each property I want to use, but an easy fix for that is to have a handler in the object script that sets the values of script local variables to the values of the custom properties you need. You only have to run this once, say on openCard. Now you have script local variables set to the values of all your properties, AND they have the added virtue of being persistent through app launches. Bob S From bobsneidar at iotecdigital.com Mon Apr 30 11:09:27 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Apr 2018 15:09:27 +0000 Subject: Scott Rossi and TactileMedia In-Reply-To: References: Message-ID: <6325FB86-6475-4983-A98A-BAEB7953DCCC@iotecdigital.com> I really liked TMAlign. I had a problem with it recently in a newer version of LC so I removed it. Bob S > On Apr 29, 2018, at 12:09 , Todd Fabacher via use-livecode wrote: > > Scott was such a talented innovator and I loved the work he did. > > At Digital Pomegranate we were customers and used TactileMedia controls. > Since we are now creating UI widgets, please let us know what controls > from TactileMedia you liked the most and we will see if we can make them > into now LCB widgets. > > --Todd > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 30 11:18:20 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Apr 2018 15:18:20 +0000 Subject: Mac app code signing for beginners In-Reply-To: <1525057653752-0.post@n4.nabble.com> References: <4E4EA1F2-5E26-44D6-8F44-74E4634F6DB8@mac.com> <1524925267699-0.post@n4.nabble.com> <94F7C5EA-0764-4FEB-AED5-2B9D7B1B8831@mac.com> <7020D074-51C8-4C94-B03F-99C69D48A6D8@earthlearningsolutions.org> <1525057653752-0.post@n4.nabble.com> Message-ID: <3A149504-670B-4FBE-81ED-2F783A484C6C@iotecdigital.com> It's the nature of certificates. You can have a certificate last a long time but you cannot create a non-expiring cert to my knowledge. Also, keep in mind that as time progresses, encryption algorithms become dated. Malware forces the modification and sometimes the abandoning of what seemed once to be uncrackable. Bob S > On Apr 29, 2018, at 20:07 , Mark Smith via use-livecode wrote: > > And why can't I have one file, just > one, that i use to code sign apps from now till eternity? Why do they need > to expire at all? > > Mark From irog at mac.com Mon Apr 30 11:35:24 2018 From: irog at mac.com (Roger Guay) Date: Mon, 30 Apr 2018 08:35:24 -0700 Subject: Scott Rossi and TactileMedia In-Reply-To: <6325FB86-6475-4983-A98A-BAEB7953DCCC@iotecdigital.com> References: <6325FB86-6475-4983-A98A-BAEB7953DCCC@iotecdigital.com> Message-ID: Hi Bob, If your problem with tmAlign was the same as mine, namely the title greyed out and no longer readable, I hacked/fixed it by adding "set the blendlevel of grc "header_base" of stack "tmAlign3" to 90? on OpenStack. I did a similar thing with tmEffects. Cheers, Roger > On Apr 30, 2018, at 8:09 AM, Bob Sneidar via use-livecode wrote: > > I really liked TMAlign. I had a problem with it recently in a newer version of LC so I removed it. > > Bob S > > From bobsneidar at iotecdigital.com Mon Apr 30 11:45:20 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Apr 2018 15:45:20 +0000 Subject: Scott Rossi and TactileMedia In-Reply-To: References: <6325FB86-6475-4983-A98A-BAEB7953DCCC@iotecdigital.com> Message-ID: Actually my problem now is that the plugin seems to be a bash shell not a livecode stack. Not sure how that happened. If I try to rename it from malign.rev.sh to malign.rev it won't open saying it is corrupted. In either case it will not load as a plugin. I will have to go back and see if I have an old copy of it. Bob S > On Apr 30, 2018, at 08:35 , Roger Guay via use-livecode wrote: > > Hi Bob, > > If your problem with tmAlign was the same as mine, namely the title greyed out and no longer readable, I hacked/fixed it by adding "set the blendlevel of grc "header_base" of stack "tmAlign3" to 90? on OpenStack. > > I did a similar thing with tmEffects. > > Cheers, > > Roger > > > >> On Apr 30, 2018, at 8:09 AM, Bob Sneidar via use-livecode wrote: >> >> I really liked TMAlign. I had a problem with it recently in a newer version of LC so I removed it. >> >> 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 MikeKerner at roadrunner.com Mon Apr 30 11:45:45 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Apr 2018 15:45:45 +0000 Subject: Scott Rossi and TactileMedia In-Reply-To: References: <6325FB86-6475-4983-A98A-BAEB7953DCCC@iotecdigital.com> Message-ID: Todd, I think every one of the tmc2 controls would be a good start, as would a calendar widget. More customization options are always better. On Mon, Apr 30, 2018 at 11:36 AM Roger Guay via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Bob, > > If your problem with tmAlign was the same as mine, namely the title greyed > out and no longer readable, I hacked/fixed it by adding "set the blendlevel > of grc "header_base" of stack "tmAlign3" to 90? on OpenStack. > > I did a similar thing with tmEffects. > > Cheers, > > Roger > > > > > On Apr 30, 2018, at 8:09 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I really liked TMAlign. I had a problem with it recently in a newer > version of LC so I removed it. > > > > 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 -- 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 bobsneidar at iotecdigital.com Mon Apr 30 11:47:26 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Apr 2018 15:47:26 +0000 Subject: Scott Rossi and TactileMedia In-Reply-To: References: <6325FB86-6475-4983-A98A-BAEB7953DCCC@iotecdigital.com> Message-ID: <324AC3A1-645A-4A02-8591-5C2F767BDCF8@iotecdigital.com> spell correct. I typed tmalign. > On Apr 30, 2018, at 08:45 , Bob Sneidar via use-livecode wrote: > > malign.rev.sh From MikeKerner at roadrunner.com Mon Apr 30 11:50:06 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Apr 2018 15:50:06 +0000 Subject: Scott Rossi and TactileMedia In-Reply-To: <324AC3A1-645A-4A02-8591-5C2F767BDCF8@iotecdigital.com> References: <6325FB86-6475-4983-A98A-BAEB7953DCCC@iotecdigital.com> <324AC3A1-645A-4A02-8591-5C2F767BDCF8@iotecdigital.com> Message-ID: I'm also a huge fan of tmnavigator, that has saved me from screaming and throwing a tantrum on multiple occasions, but that's not a widget. On Mon, Apr 30, 2018 at 11:47 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > spell correct. I typed tmalign. > > > On Apr 30, 2018, at 08:45 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > malign.rev.sh > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 andre at andregarzia.com Mon Apr 30 17:30:00 2018 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 30 Apr 2018 18:30:00 -0300 Subject: LC Web integration is not good enough Message-ID: Hi Friends, This is a bit of a rant because I can't believe no one stopped by these kind of problems before. First of all, the JS Handlers for a browser widget are one way only. There is no way to call a LiveCode function from JS and actually see a response. You need to code two JS functions, one for calling LC and another for receiving the LC response in an analog (even worse) to the old callback hell of JS from early 2000. I find this quite unacceptable, it makes impossible to make multiple calls to LC to retrieve values without devolving into a spiral of callbacks. Besides the only way to execute JS code from LC is to use the do statement, which works with strings making it hard to assemble values compatible with JS. You need to go like building SQL statements in 1990s by concatenating a JS to be executed which is not only error prone, it is error certain. It will fail if you are building something really complext because.... Because LC jsonExport routines are broken, for they will export an array as an object, which makes no sense at all. For example, if you have an array like: t[1]["name"] = "andre" t[2]["name"] = "cleo" jsonExport will output: {"1": {"name": "andre"},"2": {"name": "cleo"}} instead of the correct: [{"name": "andre"}, {"name": "cleo"}] If you pick an array, pass through that jsonExport routine, assemble a correct JS string, send it to the web widget and the JS on the other side is expecting an array, it will fail because that is an object. So, in summary: * We have subpar integration that relies on callback hell * The json routines don't work * The integration to execute JS from LC relies on error-prone hand assembled strings The worst thing for me is the JSON library exporting objects. How did this didn't affected people on this list on the past is a bit beyond me. I am doing a simple round-trip execution of LC + JS here and it is taking me hours because I need to fight the current buggy feature implementations instead of focusing on my own business logic. -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From rdimola at evergreeninfo.net Mon Apr 30 18:15:27 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 30 Apr 2018 18:15:27 -0400 Subject: LC Web integration is not good enough In-Reply-To: References: Message-ID: <002701d3e0d0$c112cad0$43386070$@net> Andre, I'm using JSONToArray and ArrayToJSON for round trip with no problems. I'm storing an LC config array in a JSON text file, then later read the file back into an LC array. The only criticism I have is the formatting of the JSON in the text file could be better for manual changes with a text editor. Other than that it faithfully saves/recreates the LC array. 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 Andre Garzia via use-livecode Sent: Monday, April 30, 2018 5:30 PM To: How to use LiveCode Cc: Andre Garzia Subject: LC Web integration is not good enough Hi Friends, This is a bit of a rant because I can't believe no one stopped by these kind of problems before. First of all, the JS Handlers for a browser widget are one way only. There is no way to call a LiveCode function from JS and actually see a response. You need to code two JS functions, one for calling LC and another for receiving the LC response in an analog (even worse) to the old callback hell of JS from early 2000. I find this quite unacceptable, it makes impossible to make multiple calls to LC to retrieve values without devolving into a spiral of callbacks. Besides the only way to execute JS code from LC is to use the do statement, which works with strings making it hard to assemble values compatible with JS. You need to go like building SQL statements in 1990s by concatenating a JS to be executed which is not only error prone, it is error certain. It will fail if you are building something really complext because.... Because LC jsonExport routines are broken, for they will export an array as an object, which makes no sense at all. For example, if you have an array like: t[1]["name"] = "andre" t[2]["name"] = "cleo" jsonExport will output: {"1": {"name": "andre"},"2": {"name": "cleo"}} instead of the correct: [{"name": "andre"}, {"name": "cleo"}] If you pick an array, pass through that jsonExport routine, assemble a correct JS string, send it to the web widget and the JS on the other side is expecting an array, it will fail because that is an object. So, in summary: * We have subpar integration that relies on callback hell * The json routines don't work * The integration to execute JS from LC relies on error-prone hand assembled strings The worst thing for me is the JSON library exporting objects. How did this didn't affected people on this list on the past is a bit beyond me. I am doing a simple round-trip execution of LC + JS here and it is taking me hours because I need to fight the current buggy feature implementations instead of focusing on my own business logic. -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. _______________________________________________ use-livecode mailing list use-livecode at 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 Apr 30 18:14:14 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Apr 2018 22:14:14 +0000 Subject: LC Web integration is not good enough In-Reply-To: References: Message-ID: > On Apr 30, 2018, at 14:30 , Andre Garzia via use-livecode wrote: > > Hi Friends, > > This is a bit of a rant because I can't believe no one stopped by these > kind of problems before. Sounds like what I went through getting MacOS Livecode to tell Applescript to tell Acrobat to run a Javascript! Talk about convoluted!! But it works so I close my eyes and click my heels and keep repeating, "There's no place like Starbucks! There's no place like Starbucks...) Bob S From ambassador at fourthworld.com Mon Apr 30 19:44:58 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 30 Apr 2018 16:44:58 -0700 Subject: LC on Windows - slow for others or just me? Message-ID: <9dcf85cc-7dd1-7a7a-dec7-93683185bb66@fourthworld.com> Okay, granted, I usually run Win 10 in a VM. But every other program seems pretty snappy, barely distinguishable from a bare-metal install. And then there's LiveCode. I'm running v9, and it's slower than molasses in winter. Is this just my setup, or are other Windows users finding LiveCode 9 at the edge of prohibitively slow on Win10? -- 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 brian at milby7.com Mon Apr 30 19:49:54 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 30 Apr 2018 18:49:54 -0500 Subject: LC on Windows - slow for others or just me? In-Reply-To: <9dcf85cc-7dd1-7a7a-dec7-93683185bb66@fourthworld.com> References: <9dcf85cc-7dd1-7a7a-dec7-93683185bb66@fourthworld.com> Message-ID: Unfortunately I do see similar results (recently switched to a different laptop, so I have not really run prior versions on it). It is also slow to launch. Sent from my iPad > On Apr 30, 2018, at 6:44 PM, Richard Gaskin via use-livecode wrote: > > Okay, granted, I usually run Win 10 in a VM. > > But every other program seems pretty snappy, barely distinguishable from a bare-metal install. > > And then there's LiveCode. I'm running v9, and it's slower than molasses in winter. > > Is this just my setup, or are other Windows users finding LiveCode 9 at the edge of prohibitively slow on Win10? > > -- > 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 Apr 30 20:40:57 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 30 Apr 2018 20:40:57 -0400 Subject: LC on Windows - slow for others or just me? In-Reply-To: <9dcf85cc-7dd1-7a7a-dec7-93683185bb66@fourthworld.com> References: <9dcf85cc-7dd1-7a7a-dec7-93683185bb66@fourthworld.com> Message-ID: <002e01d3e0e5$150184b0$3f048e10$@net> I'm on a Win 10 VM using a raid array for my VHD. At times autocorrect causes editing long scripts(2000+) to get on the other side of prohibitively slow. Other times it's OK. Don't have a recipe yet. How do you turn off autocorrect again? Populating text fields is 5-10% slower than v8. Taking 5 - 10 seconds to Launch LC seems slow until I launch Photoshop or InDesign and lose a few minutes of my life that I will never get back. Launching is not an issue for me. Richard, What is slow for you? PB, control creation, scrolling, editing or running scripts... or yes? 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 Richard Gaskin via use-livecode Sent: Monday, April 30, 2018 7:45 PM To: How to use LiveCode Cc: Richard Gaskin Subject: LC on Windows - slow for others or just me? Okay, granted, I usually run Win 10 in a VM. But every other program seems pretty snappy, barely distinguishable from a bare-metal install. And then there's LiveCode. I'm running v9, and it's slower than molasses in winter. Is this just my setup, or are other Windows users finding LiveCode 9 at the edge of prohibitively slow on Win10? -- 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 Neville.Smythe at optusnet.com.au Mon Apr 30 21:27:02 2018 From: Neville.Smythe at optusnet.com.au (Neville Smythe) Date: Tue, 1 May 2018 11:27:02 +1000 Subject: LC on Windows 10 Message-ID: My users find Windows 10 takes 10 seconds or more to save a 9Mb stack with app compiled under 8.1.x, Mac and Linux save in a fraction of a second. Very annoying as the app freezes while saving. $@%?$@%?$@%?$@%?$@%?$@%? Neville Smythe IGF Director (Oceania) VicePresident, Australian Go Association Sent from my iPad From ahsoftware at sonic.net Mon Apr 30 21:29:42 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 30 Apr 2018 18:29:42 -0700 Subject: LC Web integration is not good enough In-Reply-To: <002701d3e0d0$c112cad0$43386070$@net> References: <002701d3e0d0$c112cad0$43386070$@net> Message-ID: <4ee7231a-ae03-cb93-c291-56964afb5304@sonic.net> On 04/30/2018 03:15 PM, Ralph DiMola via use-livecode wrote: > Andre, > > I'm using JSONToArray and ArrayToJSON for round trip with no problems. I'm > storing an LC config array in a JSON text file, then later read the file > back into an LC array. The only criticism I have is the formatting of the > JSON in the text file could be better for manual changes with a text editor. > Other than that it faithfully saves/recreates the LC array. ... as long as you don't have to deal with JSON lists. https://quality.livecode.com/show_bug.cgi?id=19698 -- Mark Wieder ahsoftware at gmail.com From htorrado at networkdreams.es Mon Apr 30 21:35:07 2018 From: htorrado at networkdreams.es (Heriberto Torrado) Date: Mon, 30 Apr 2018 21:35:07 -0400 Subject: Live search box Message-ID: <6f5a07b8-04bb-da8c-285d-5e3bdbea1897@networkdreams.es> /Dear Livecode programmers, My customer changed his mind and now they would like to have this: "...if you can create a "search like" box when the customer would find his condition by typing the 2 or 3 first letters? and selecting the right one by clicking on it (like the google search results)...". Well, creating something like this with AJAX and PHP is pretty easy, but I don't know how to do it with livecode. Of course I know how to connect with a MySQL database, extract data, insert data, put the data on a grid of field, etc with livecode (I did it for a lot of time and it is pretty easy). But create a "live search" is something I never did with Livecode. Dou you guys have a tip for that? Thank you very much in advance./ Hery // From monte at appisle.net Mon Apr 30 21:42:27 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 1 May 2018 11:42:27 +1000 Subject: LC Web integration is not good enough In-Reply-To: <4ee7231a-ae03-cb93-c291-56964afb5304@sonic.net> References: <002701d3e0d0$c112cad0$43386070$@net> <4ee7231a-ae03-cb93-c291-56964afb5304@sonic.net> Message-ID: <5AA93F4B-D249-4F87-B6D7-7104E3DED4C3@appisle.net> > On 1 May 2018, at 11:29 am, Mark Wieder via use-livecode wrote: > > On 04/30/2018 03:15 PM, Ralph DiMola via use-livecode wrote: >> Andre, >> I'm using JSONToArray and ArrayToJSON for round trip with no problems. I'm >> storing an LC config array in a JSON text file, then later read the file >> back into an LC array. The only criticism I have is the formatting of the >> JSON in the text file could be better for manual changes with a text editor. >> Other than that it faithfully saves/recreates the LC array. > > ... as long as you don't have to deal with JSON lists. > > https://quality.livecode.com/show_bug.cgi?id=19698 ArrayToJSON deals with JSON list differently to JSONExport. ArrayToJSON uses mergJSON which checks if the array keys are a numeric sequence and assumes it?s a list. There is a way to force it to be an object if required. JSONExport on the other hand is done in LCB and LCB has a proper list type. The issue is when passing a LCS array to LCB there is no way for the engine to know for sure if your array is a list or map so it keeps it as a map with string keys. In the long run if we ever get proper lists in LCS then JSONExport will likely do as you are expecting. Cheers Monte From bogdanoff at me.com Mon Apr 30 21:55:44 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 30 Apr 2018 18:55:44 -0700 Subject: Live search box In-Reply-To: <6f5a07b8-04bb-da8c-285d-5e3bdbea1897@networkdreams.es> References: <6f5a07b8-04bb-da8c-285d-5e3bdbea1897@networkdreams.es> Message-ID: <18355B4C-A526-4744-8446-9D45BEAD1614@me.com> Hi Hery, Here?s some possibilities: http://learninglivecode.blogspot.com/2013/11/creating-autofill-option-for-text-entry.html https://forums.livecode.com/viewtopic.php?t=11342 Peter > On Apr 30, 2018, at 6:35 PM, Heriberto Torrado via use-livecode wrote: > > /Dear Livecode programmers, > > My customer changed his mind and now they would like to have this: > > "...if you can create a "search like" box when the customer would find his condition by typing the 2 or 3 first letters and selecting the right one by clicking on it (like the google search results)...". > > Well, creating something like this with AJAX and PHP is pretty easy, but I don't know how to do it with livecode. > Of course I know how to connect with a MySQL database, extract data, insert data, put the data on a grid of field, etc with livecode (I did it for a lot of time and it is pretty easy). > > But create a "live search" is something I never did with Livecode. > > Dou you guys have a tip for that? > > Thank you very much in advance./ > > Hery > // > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 30 22:54:10 2018 From: dunbarx at aol.com (dunbarx) Date: Mon, 30 Apr 2018 19:54:10 -0700 (MST) Subject: Live search box In-Reply-To: <6f5a07b8-04bb-da8c-285d-5e3bdbea1897@networkdreams.es> References: <6f5a07b8-04bb-da8c-285d-5e3bdbea1897@networkdreams.es> Message-ID: <1525143250177-0.post@n4.nabble.com> Hi. This is fun to do. Make two fields. In the target field, the one you will type into, set a custom property "rawText" to some long list of words, perhaps chapter 1 of your favorite novel. It is a good idea to strip all punctation from that text before setting the prop. In that field, place this handler: on keyDown tKey if the length of me > 2 then put line lineOffset(me,the rawText of me) of the rawText of me into fld 2 pass keydown end keyDown Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From tfabacher at gmail.com Mon Apr 30 23:51:42 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Mon, 30 Apr 2018 22:51:42 -0500 Subject: Scott Rossi and TactileMedia Message-ID: Hi Alex, You asked: Can you say if you have any plans to produce versions of your widgets for non-mobile platforms? - YES, 100%. It is true we are looking at mobile for the moment, but we are looking to all platforms if possible. TMAlign - is more an IDE tool and not a widget, but I will take a look Thanks, Todd Fabacher